gill

getPostInitializeInstructionsForTokenExtensions

function getPostInitializeInstructionsForTokenExtensions(
   token, 
   owner, 
   extensions, 
   multiSigners?): IInstruction<string, readonly (IAccountLookupMeta<string, string> | IAccountMeta<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

IInstruction<string, readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[]>[]

On this page