gill
gill/programs/token/Type aliases

GetTransferTokensInstructionsArgs

type GetTransferTokensInstructionsArgs = TokenInstructionBase & {
  amount: bigint | number;
  authority: TransactionSigner | Address;
  destination: TransactionSigner | Address;
  destinationAta: Address;
  sourceAta: Address;
};

Type declaration

NameTypeDescription
amountbigint | numberAmount of tokens to be transferred to the destination via their destinationAta
authorityTransactionSigner | AddressThe source account's owner/delegate or its multi-signature account: - this should normally by a TransactionSigner - only for multi-sig authorities (like Squads Protocol), should you supply an Address
destinationTransactionSigner | AddressWallet address to receive the tokens, via their associated token account: destinationAta
destinationAtaAddressAssociated token account (ata) address for destination and this mint See getAssociatedTokenAccountAddress Example getAssociatedTokenAccountAddress(mint, destination, tokenProgram);
sourceAtaAddressAssociated token account (ata) address for authority and this mint See getAssociatedTokenAccountAddress Example getAssociatedTokenAccountAddress(mint, authority, tokenProgram);

On this page