Vaults

Get a wallet's token balances on Solana

A wallet's balance of each Solana vault asset, and whether it has a token account for it.

GET
/api/solana/vaults/wallet-balances

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

Query Parameters

wallet?string

The wallet to read, as a base58 address. Send this or owner.

owner?string

Another name for wallet.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/solana/vaults/wallet-balances"
{  "owner": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",  "wallet": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",  "balances": [    {      "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",      "tokenAccount": "9fETzruQs6UupgPMW7o7YkKi31DUuxVsj74gbBEQm42E",      "exists": true,      "balance": "250000000"    }  ]}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}