gill

getPostInitializeInstructionsForTokenExtensions

function getPostInitializeInstructionsForTokenExtensions(
   token, 
   owner, 
   extensions, 
   multiSigners?): Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>[];

Given a token address, its owner and a list of token extensions, returns a list of instructions that MUST be run after the initializeAccount instruction to properly initialize the given extensions on the token account.

Parameters

ParameterType
tokenAddress
ownerAddress | TransactionSigner
extensionsExtensionArgs[]
multiSigners?TransactionSigner[]

Returns

Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>[]

On this page