Is there a way to get all associated token account under a public key? Is there a Solana sdk do that for ys?

2 Answers 2


You can fetch all token accounts by using https://solana-labs.github.io/solana-web3.js/classes/Connection.html#getTokenAccountsByOwner


I am also looking for same thing, I am creating a website dapp in which user connect his wallet and see his tokens and NFTs present in it, but I am also not finding a way to do it in js in browser.

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.