Chains

Get Token Balances for a User or Token

This endpoint retrieves all token balances for a GM Chain. Results can be optionally filtered by tokenAddress, userAddress, or both parameters together. If no filters are provided, all balances on the chain will be returned.

For caching details on this endpoint, please see: Endpoint Caching.

get/v1/chains/{chainId}/balances

Request

  • Base URL
    https://api.gm.ondo.finance
  • URL
    https://api.gm.ondo.finance/v1/chains/{chainId}/balances
  • Auth
    API key in header x-api-key

Path parameters

chainId'ethereum-1' | 'bsc-56' | 'solana-900' required

The chain's identifier including the chain name and chain id.

Query parameters

tokenAddressstring

Filter by a token contract address (optional).

userAddressstring

Filter by a user wallet address (optional).

Response

OK

Changes

No recorded changes to this operation across all 2 revisions of this API.