getTokenAccounts
Returns token accounts based on the specified filters. At least one of ownerAddress or mintAddress is required.
Path Parameters
docs-demoFor higher throughput, create your own API key
Request
The owner (wallet) address whose token accounts you want to list. Either ownerAddress or mintAddress must be provided; ownerAddress is the common case (passing a wallet pubkey, getting back its token holdings).
The mint address to filter token accounts by. Pass this INSTEAD OF ownerAddress when you want to list every token account for a given mint, or alongside ownerAddress to narrow a wallet's holdings to a specific mint. Leave empty if you only want results scoped by owner.
1The page of results to return (1-indexed). Use either page-based pagination (page) or cursor-based pagination (cursor/before/after), not both.
100The maximum number of token accounts to retrieve.
Cursor for pagination. Returned in the previous response.
Returns results before the specified cursor.
Returns results after the specified cursor.
Optional response shaping flags. The server also accepts displayOptions as an alias of this field, but only one of options or displayOptions may be present per request.
Responses
200
Returns token accounts matching the specified criteria.