Get Account Balance

Get token balance information based on Solana account address.

Request

Method:

GET ./api/v2/balance

Parameters:

Parameter
Type
Description

ownerAddress

string

Address to fetch token balance details.

Request example:

curl --header "Authorization: $AUTH_HEADER" \
'https://ny.solana.dex.blxrbdn.com/api/v2/balance

Response:

Fields:

Fields
Type
Description

tokens

array

See below for details

Fields
Type
Description

symbol

string

Symbol of the token.

tokenMin

string

Token program address.

settledAmount

number

The token amount available. This is what you are looking for in most cases.

unsettledAmount

number

Token amount which is unsettled. *Apply only to Openbook.

openOrderAmount

number

Token amount which is in open order. *Apply only to Openbook.

Response Example:

{
   "tokens":[
      {
         "symbol":"SRM",
         "token_mint":"SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt",
         "settled_amount":0.0,
         "unsettled_amount":0.0,
         "open_orders_amount":0.0
      },
      {
         "symbol":"SOL",
         "token_mint":"So11111111111111111111111111111111111111112",
         "settled_amount":3.435929722,
         "unsettled_amount":0.0,
         "open_orders_amount":0.0
      }
   ]
}

Last updated