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
Name | Required | Description |
---|---|---|
ownerAddress | (only required if mintAddress is not provided) | Filter by owner address. |
mintAddress | (only required if ownerAddress is not provided) | Filter by mint address. |
cursor | Cursor for pagination. | |
page | Page number for pagination. | |
limit | Maximum number of token accounts to return. | |
before | Return accounts before this cursor. | |
after | Return accounts after this cursor. | |
options | Additional display options. |
Response
The response includes:
token_accounts
- Array of token account objects containing:address
- The token account addressamount
- Token balance in the accountmint
- The mint address of the tokenowner
- The owner address of the accountdelegate
- Delegate address (if any)delegated_amount
- Amount delegated to the delegatefrozen
- Whether the account is frozenclose_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