gill

getAssociatedTokenAccountAddress

function getAssociatedTokenAccountAddress(
   mint, 
   owner, 
tokenProgram?): Promise<Address>;

Derive the associated token account (ata) address for an owner and mint/tokenProgram

Parameters

ParameterType
mintAddress | TransactionSigner
ownerAddress | TransactionSigner
tokenProgram?Address

Returns

Promise<Address>

Argument

mint - the token mint itself

Argument

owner - destination wallet address to own tokens from mint

Argument

tokenProgram - token program that the token mint was created with

On this page