gill
gill/programs/system/Type aliases

CreateAccountInstruction

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

Type Parameters

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

On this page