Coinbase Server Wallet icon

Coinbase Server Wallet

Interact with Coinbase Server Wallet API v2 (EVM & Solana)

Actions61

Solana Token Balances → List Solana Token Balances

AI-generated

Summary

List Solana Token Balances for a specified Solana address.

Inputs

  • address (required) — The base58 encoded Solana address to get balances for.
  • network (required) — The human-readable network name to get the balances for. Options include 'Solana' or 'Solana Devnet'.
  • pageSize — The number of balances to return per page, defaulting to 10.
  • pageToken — The token for the next page of balances, used for pagination.
  • requestOptions — Collection of options for the request such as batching, timeout settings, and proxy.

Output shape

a list of token balances for the specified Solana address

Includes pagination support, with the potential for multiple pages of results.

Examples

Example 1: Retrieve the Solana token balances for a given address on the main Solana network.

Set the 'Address' to the desired Solana address, 'Network' to 'Solana', and optionally specify 'Page Size'.

Example 2: Fetch token balances from the Solana Devnet for a testing address with pagination.

Set 'Address' to the devnet address, 'Network' to 'Solana Devnet', specify 'Page Size' for balance counts, and use 'Page Token' for subsequent requests.

Discussion