Endpoints

Vault server provide Wallet Service between Api servers and Hashicorp Vault

Execute a transaction

post

Executes a transaction on the Solana blockchain using the provided transaction data and user ID.

Header parameters
AutorizationstringRequired

API Key

Body
tx_datastringOptional
user_idintegerOptional
Responses
200
OK
application/json
post
POST //execute HTTP/1.1
Host: vault-domain.com
Autorization: text
Content-Type: application/json
Accept: */*
Content-Length: 30

{
  "tx_data": "text",
  "user_id": 1
}
{
  "hash": "text"
}

Export wallet private key

post

Retrieves the private key of the wallet associated with the provided user ID.

Header parameters
AutorizationstringRequired

API Key

Body
user_idintegerOptional
Responses
200
OK
application/json
post
POST //export HTTP/1.1
Host: vault-domain.com
Autorization: text
Content-Type: application/json
Accept: */*
Content-Length: 13

{
  "user_id": 1
}
{
  "private_key": "text"
}

Get public key

post

Retrieves the public key for the wallet associated with the provided user ID.

Header parameters
AutorizationstringRequired

API Key

Body
user_idintegerOptional
Responses
200
OK
application/json
post
POST //pubkey HTTP/1.1
Host: vault-domain.com
Autorization: text
Content-Type: application/json
Accept: */*
Content-Length: 13

{
  "user_id": 1
}
{
  "public_key": "text"
}

Register wallet

post

Registers a new wallet for the user ID provided.

Header parameters
AutorizationstringRequired

API Key

Body
user_idintegerOptional
Responses
200
OK
application/json
post
POST //register HTTP/1.1
Host: vault-domain.com
Autorization: text
Content-Type: application/json
Accept: */*
Content-Length: 13

{
  "user_id": 1
}
{
  "public_key": "text",
  "user_id": 1
}

Revoke wallet

post

Revokes the existing wallet and generates a new one for the user ID provided.

Header parameters
AutorizationstringRequired

API Key

Body
user_idintegerOptional
Responses
200
OK
application/json
post
POST //revoke HTTP/1.1
Host: vault-domain.com
Autorization: text
Content-Type: application/json
Accept: */*
Content-Length: 13

{
  "user_id": 1
}
{
  "public_key": "text",
  "user_id": 1
}

Last updated