Fetch all the parsed token accounts owned by the specified account
Better than connection.getTokenAccountsByOwner or connection.getParsedTokenAccountsByOwner as it properly decodes the token accounts using the more modern unpackAccount.
connection.getTokenAccountsByOwner
connection.getParsedTokenAccountsByOwner
unpackAccount
Solana connection object
the token accounts owner
the token program id
the parsed token accounts for the given owner
Generated using TypeDoc
Fetch all the parsed token accounts owned by the specified account
Better than
connection.getTokenAccountsByOwner
orconnection.getParsedTokenAccountsByOwner
as it properly decodes the token accounts using the more modernunpackAccount
.