Some API end points accept

<string> - Pubkey of Token account to query, as base-58 encoded string

as an account address.

What's "Pubkey of Token account"?

And how to get one programmatically given a wallet or account address? That is, how to do it in curl? Or at least in JS and Rust.

1 Answer 1


The token account for a given wallet address is simply a program-derived account consisting of the wallet address itself and the token mint.

This might help: https://spl.solana.com/associated-token-account

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.