Solana Token Balances

List Solana token balances

Changed on

Lists the token balances of a Solana address on a given network. The balances include SPL tokens and the native SOL token. The response is paginated, and by default, returns 20 balances per page.

Note: This endpoint is still under development and does not yet provide strong availability or freshness guarantees. Freshness and availability of new token balances will improve over the coming weeks.

get/v2/solana/token-balances/{network}/{address}

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Path parameters

address, string required

The base58 encoded Solana address to get balances for.

network, 'solana' | 'solana-devnet' required

The name of the supported Solana networks in human-readable format.

Example:solana

The human-readable network name to get the balances for.

Query parameters

pageSize, integer

The number of balances to return per page.

pageToken, string

The token for the next page of balances. Will be empty if there are no more balances to fetch.

Response

Successfully listed token balances.

intersection required
object
balances, SolanaTokenBalance[] required

The list of Solana token balances.

Example response

{
  "balances": [
    {
      "amount": {
        "amount": "1250000000",
        "decimals": 9
      },
      "token": {
        "symbol": "SOL",
        "name": "Solana",
        "mintAddress": "So11111111111111111111111111111111111111111"
      }
    },
    {
      "amount": {
        "amount": "123456000",
        "decimals": 6
      },
      "token": {
        "symbol": "USDC",
        "name": "USD Coin",
        "mintAddress": "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"
      }
    }
  ],
  "nextPageToken": "eyJsYXN0X2lkIjogImFiYzEyMyIsICJ0aW1lc3RhbXAiOiAxNzA3ODIzNzAxfQ=="
}

Changes

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    2 more changes in this revision