Fetch all SPL Token accounts owned by the given address.
HTTP transport instance
Base-58 encoded owner public key
Filter by either { mint } or { programId }
{ mint }
{ programId }
Commitment, data-slice, and call options
Array of token accounts wrapped in RPC context
const { value } = await getTokenAccountsByOwner(transport, owner, { mint }); Copy
const { value } = await getTokenAccountsByOwner(transport, owner, { mint });
1.0.0
Fetch all SPL Token accounts owned by the given address.