Endpoints
Vault server provide Wallet Service between Api servers and Hashicorp Vault
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
400
Bad Request
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"
}
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
400
Bad Request
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"
}
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
400
Bad Request
application/json
500
Internal Server Error
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"
}
Registers a new wallet for the user ID provided.
Header parameters
AutorizationstringRequired
API Key
Body
user_idintegerOptional
Responses
200
OK
application/json
400
Bad Request
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
}
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
400
Bad Request
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