How do you get the owner's public key of an associated token account using web3.js?
On SolScan, it very clearly displays it.
https://solscan.io/account/5StXNPyFF9UugaCodSqcAU6wcUpZSkgPNMHRJYffqL6w
Solana Stack Exchange is a question and answer site for Solana software users and developers. It only takes a minute to sign up.
Sign up to join this communityHow do you get the owner's public key of an associated token account using web3.js?
On SolScan, it very clearly displays it.
https://solscan.io/account/5StXNPyFF9UugaCodSqcAU6wcUpZSkgPNMHRJYffqL6w
you can use @solana/spl-token there is a method to pass in a token account ID and then you can check the owner field on it. Here is the code snipper from @solana/spl-token@.2.0