Skip to main content
OPTIONS
/
sdk
/
{environmentId}
/
balances
Options call for this endpoint
curl --request OPTIONS \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/balances \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "balanceRequests": [
    {
      "address": "<string>",
      "chain": "ETH",
      "networkIds": [
        123
      ],
      "whitelistedContracts": [
        "<string>"
      ]
    }
  ],
  "filterSpamTokens": true
}
'
{
  "error": "<string>"
}

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"

Body

application/json

Array of account addresses with chains and network IDs

balanceRequests
object[]
required
Required array length: 1 - 5 elements
filterSpamTokens
boolean
default:true

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

Response

Empty response