Fetches a digital asset with its associated token account
This is a convenience function that automatically derives the associated token account (ATA) for the given owner.
The RPC client
The mint address
The token owner address
Optional
Optional fetch configuration
The digital asset with token data
const asset = await fetchDigitalAssetWithAssociatedToken( rpc, mintAddress, walletAddress);console.log('Balance:', asset.token.amount); Copy
const asset = await fetchDigitalAssetWithAssociatedToken( rpc, mintAddress, walletAddress);console.log('Balance:', asset.token.amount);
Fetches a digital asset with its associated token account
This is a convenience function that automatically derives the associated token account (ATA) for the given owner.