POST
/
account
/
balances
cURL
curl --request POST \
  --url https://core-api-dev.vanish.trade/account/balances \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "timestamp": "<string>",
  "user_address": "<string>",
  "signature": "<string>"
}'
[
  {
    "token_address": "<string>",
    "balance": "<string>",
    "program_id": "<string>"
  }
]

Authorizations

x-api-key
string
header
required

Body

application/json

Request payload for querying balances.

timestamp
required

The current timestamp in milliseconds used for signature verification. Can be provided as a string or a number.

user_address
string
required

The Solana wallet address of the user.

signature
string
required

Signature of the 'read:{timestamp}' string signed using the user's wallet.

Response

A successful response containing the user's token balances.

token_address
string
required

The token address

balance
string<int64>
required

Token balance in the smallest unit (e.g., lamports for SOL).

program_id
string
required

Owner Program