Vaults

Build a deposit, withdrawal or backing transaction on Solana

Builds a deposit, a withdrawal, a backing (`commit`), its end (`uncommit`) or a token account, for the owner's wallet to sign. The wallet pays the network fee and any rent.

POST
/api/solana/vaults/transactions

Authorization

ApiKeyAuth
X-API-Key<token>

Your API key. Authorizing a swap or opening a market takes a key issued to your integration, and the shared key the docs fill in reads and quotes only.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/solana/vaults/transactions" \  -H "Content-Type: application/json" \  -d '{    "action": "deposit",    "owner": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",    "amount": "1500000000"  }'
{  "requestId": "6f0c2f7e-2a0b-4b8e-9b54-0c2d7f0f5a11",  "transaction": "AQ==",  "expiresAt": "2030-01-01T00:00:00.000Z"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}