Fetches a digital asset along with a specific token account
This function fetches the mint, metadata, edition, token account, and token record (if applicable) in a single RPC call.
The RPC client
The mint address
The token account address
Optional
Optional fetch configuration
The digital asset with token data
const asset = await fetchDigitalAssetWithToken(rpc, mintAddress, tokenAddress);console.log('Owner:', asset.token.owner);console.log('Amount:', asset.token.amount); Copy
const asset = await fetchDigitalAssetWithToken(rpc, mintAddress, tokenAddress);console.log('Owner:', asset.token.owner);console.log('Amount:', asset.token.amount);
Fetches a digital asset along with a specific token account
This function fetches the mint, metadata, edition, token account, and token record (if applicable) in a single RPC call.