Theme

Methods & Playground

Get Token Accounts

Returns a list of token accounts filtered by owner address, mint address, or both. Useful for finding all token accounts associated with a wallet or all accounts holding a specific token.

Parameters

NameRequiredDescription
ownerAddress(only required if mintAddress is not provided)Filter by owner address.
mintAddress(only required if ownerAddress is not provided)Filter by mint address.
cursorCursor for pagination.
pagePage number for pagination.
limitMaximum number of token accounts to return.
beforeReturn accounts before this cursor.
afterReturn accounts after this cursor.
optionsAdditional display options.

Response

The response includes:

  • token_accounts - Array of token account objects containing:
    • address - The token account address
    • amount - Token balance in the account
    • mint - The mint address of the token
    • owner - The owner address of the account
    • delegate - Delegate address (if any)
    • delegated_amount - Amount delegated to the delegate
    • frozen - Whether the account is frozen
    • close_authority - Close authority address (if any)
    • extensions - Token extensions data
  • errors - Array of any errors encountered during processing
  • Pagination fields: cursor, page, limit, before, after, total

Playground

Previous
Get NFT Editions