curl --request POST \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/users/{userId}/balances \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"balanceRequests": [
{
"address": "<string>",
"chain": "ETH",
"networkIds": [
123
],
"whitelistedContracts": [
"<string>"
]
}
],
"filterSpamTokens": true
}
'{
"chainBalances": [
{
"walletAddress": "<string>",
"chain": "ETH",
"networks": [
{
"networkId": 123,
"balances": [
{
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"name": "<string>",
"symbol": "<string>",
"decimals": 123,
"logoURI": "<string>",
"balance": 123,
"rawBalance": 123,
"networkId": 123,
"price": 123,
"marketValue": 123,
"liquidityPoolSizeUsd": 123,
"totalSupply": "<string>",
"isNative": true
}
]
}
]
}
]
}curl --request POST \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/users/{userId}/balances \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"balanceRequests": [
{
"address": "<string>",
"chain": "ETH",
"networkIds": [
123
],
"whitelistedContracts": [
"<string>"
]
}
],
"filterSpamTokens": true
}
'{
"chainBalances": [
{
"walletAddress": "<string>",
"chain": "ETH",
"networks": [
{
"networkId": 123,
"balances": [
{
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"name": "<string>",
"symbol": "<string>",
"decimals": 123,
"logoURI": "<string>",
"balance": 123,
"rawBalance": 123,
"networkId": 123,
"price": 123,
"marketValue": 123,
"liquidityPoolSizeUsd": 123,
"totalSupply": "<string>",
"isNative": true
}
]
}
]
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the environment
36"95b11417-f18f-457f-8804-68e361f9164f"
UUID of the user
36"95b11417-f18f-457f-8804-68e361f9164f"
Array of account addresses with chains and network IDs
Token balances organized by chain and network
Show child attributes
Was this page helpful?