GET
/
chain
/
{chain-id}
/
account
/
{account-address}
/
token-balances
curl --request GET \
  --url https://evm.preview-api.modular.cloud/v1/chain/{chain-id}/account/{account-address}/token-balances
{
  "result": {
    "balances": [
      {
        "tokenType": "ERC20",
        "data": {
          "tokenData": {
            "address": "<string>",
            "name": "<string>",
            "symbol": "<string>",
            "decimals": 123
          },
          "tokenBalance": {
            "value": "<string>"
          }
        }
      }
    ],
    "nativeTokenBalance": "<string>"
  },
  "error": {
    "message": "<string>"
  }
}

Path Parameters

chain-id
string
required
account-address
string
required

Query Parameters

maxResults
integer

default is 30

nextToken
string
tokenType
enum<string>
Available options:
ERC20,
NFT

Response

200 - application/json
result
object
error
object