gill

getCreateAccountInstruction

function getCreateAccountInstruction<TAccountPayer, TAccountNewAccount, TProgramAddress>(input, config?): Instruction<TProgramAddress, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPayer extends string ? AccountMeta<TAccountPayer<TAccountPayer>> & {
  role: WRITABLE_SIGNER;
} & AccountSignerMeta<TAccountPayer<TAccountPayer>, TransactionSigner<TAccountPayer<TAccountPayer>>> : TAccountPayer, TAccountNewAccount extends string ? AccountMeta<TAccountNewAccount<TAccountNewAccount>> & {
  role: WRITABLE_SIGNER;
} & AccountSignerMeta<TAccountNewAccount<TAccountNewAccount>, TransactionSigner<TAccountNewAccount<TAccountNewAccount>>> : TAccountNewAccount]> & InstructionWithByteDelta;

Type Parameters

Type ParameterDefault type
TAccountPayer extends string-
TAccountNewAccount extends string-
TProgramAddress extends AddressAddress<"11111111111111111111111111111111">

Parameters

ParameterType
inputCreateAccountInput<TAccountPayer, TAccountNewAccount>
config?{ programAddress?: TProgramAddress; }
config.programAddress?TProgramAddress

Returns

Instruction<TProgramAddress, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPayer extends string ? AccountMeta<TAccountPayer<TAccountPayer>> & { role: WRITABLE_SIGNER; } & AccountSignerMeta<TAccountPayer<TAccountPayer>, TransactionSigner<TAccountPayer<TAccountPayer>>> : TAccountPayer, TAccountNewAccount extends string ? AccountMeta<TAccountNewAccount<TAccountNewAccount>> & { role: WRITABLE_SIGNER; } & AccountSignerMeta<TAccountNewAccount<TAccountNewAccount>, TransactionSigner<TAccountNewAccount<TAccountNewAccount>>> : TAccountNewAccount]> & InstructionWithByteDelta

On this page