gill
gill/programs/system/Type aliases

CreateAccountInstruction

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

Type Parameters

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

On this page