gill
gill/programs/system/Type aliases

AllocateInstruction

type AllocateInstruction<TProgram, TAccountNewAccount, TRemainingAccounts> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[TAccountNewAccount extends string ? WritableSignerAccount<TAccountNewAccount> & IAccountSignerMeta<TAccountNewAccount> : TAccountNewAccount, ...TRemainingAccounts]>;

Type Parameters

Type ParameterDefault type
TProgram extends stringtypeof SYSTEM_PROGRAM_ADDRESS
TAccountNewAccount extends string | IAccountMeta<string>string
TRemainingAccounts extends readonly IAccountMeta<string>[][]

On this page