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

200
application/json

List of token balances

The response is of type object[].