Alchemy Logo

getTokenAccountsByOwner

POST
/{apiKey}

Returns all SPL Token accounts owned by the specified token owner.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

Token owner Pubkeystringrequired

The Pubkey of the account owner to query.

Token filterobjectoptional

A filter object containing either the Mint Pubkey or the Token program Pubkey.

Configurationobjectoptional

Optional configuration object containing additional settings.

Responses

200

An array of JSON objects representing the token accounts owned by the specified Pubkey.

Was this page helpful?