gill
gill/programs/system/Type aliases

AllocateInstruction

type AllocateInstruction<TProgram, TAccountNewAccount, TRemainingAccounts> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountNewAccount extends string ? WritableSignerAccount<TAccountNewAccount> & AccountSignerMeta<TAccountNewAccount> : TAccountNewAccount, ...TRemainingAccounts]>;

Type Parameters

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

On this page