Overview
getTokenAccounts lists token accounts filtered by owner, by mint, or both. Filter by mint to page through every holder of a token; filter by owner to list a wallet’s token accounts. Unlike getProgramAccounts, it pages, so it works for mints with millions of holders.
Accounts with a zero balance are left out unless you set showZeroBalance.
Parameters
Pass at least one ofowner and mint.
string
Owner wallet (base-58). Also accepted as
ownerAddress.string
Token mint (base-58). Also accepted as
mintAddress.number
Page number, starting at 1. See Pagination.
number
Results per page. Maximum and default 1,000.
string
Cursor from a previous response.
string
Return accounts before this one.
string
Return accounts after this one.
object
Display options:
showZeroBalance. Also accepted as displayOptions.Response
object