v2

latestOpenAPI 3.0.12026-07-26334612609.5 KB
SDK

Get the token balances for an account

get/sdk/{environmentId}/chains/{chainName}/balances

Path parameters

environmentIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f

ID of the environment

chainName'ETH' | 'EVM' | 'FLOW' | 'SOL' | 'ALGO' | 'STARK' | 'COSMOS' | 'BTC' | 'ECLIPSE' | 'SUI' | 'SPARK' | 'TRON' | 'APTOS' | 'TON' | 'STELLAR' required

Query parameters

networkIdnumber
accountAddressstring required

Valid Eth, Solana, Btc, Sui, Flow, Cosmos, and TRON wallet addresses

includePricesboolean
includeNativeboolean
filterSpamTokensboolean

If false, the balance requests will not be filtered for spam tokens

whitelistedContractsstring[]

Contracts to not filter out in the response

forceRefreshboolean

If true, the balance requests will be refreshed within rate limits

Response

List of token balances

networkIdinteger
addressstring required

Valid blockchain wallet address, must be an alphanumeric string without any special characters

namestring required
symbolstring required
decimalsinteger required
logoURIstring required
balancenumber required
rawBalancenumber required
pricenumber
marketValuenumber
liquidityPoolSizeUsdnumber
totalSupplystring
isNativeboolean

Example response

[
  {
    "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
  }
]