GET
/
sdk
/
{environmentId}
/
chains
/
{chainName}
/
balances
Get the token balances for an account
curl --request GET \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/chains/{chainName}/balances \
  --header 'Authorization: Bearer <token>'
[
  {
    "networkId": 123,
    "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
    "name": "<string>",
    "symbol": "<string>",
    "decimals": 123,
    "logoURI": "<string>",
    "balance": 123,
    "rawBalance": 123,
    "price": 123,
    "marketValue": 123,
    "liquidityPoolSizeUsd": 123
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

chainName
enum<string>
required
Available options:
ETH,
EVM,
FLOW,
SOL,
ALGO,
STARK,
COSMOS,
BTC,
ECLIPSE,
SUI

Query Parameters

networkId
number
accountAddress
string
required

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

includePrices
boolean
includeNative
boolean
filterSpamTokens
boolean

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

whitelistedContracts
string[]

Contracts to not filter out in the response

forceRefresh
boolean

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

Response

List of token balances

address
string
required

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

Maximum length: 255
Example:

"0xbF394748301603f18d953C90F0b087CBEC0E1834"

name
string
required
symbol
string
required
decimals
integer
required
logoURI
string
required
balance
number
required
rawBalance
number
required
networkId
integer
price
number
marketValue
number
liquidityPoolSizeUsd
number