gill

getCreateAccountInstruction

function getCreateAccountInstruction<TAccountPayer, TAccountNewAccount, TProgramAddress>(input, config?): IInstruction<TProgramAddress, readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[]> & IInstructionWithData<Uint8Array<ArrayBufferLike>> & IInstructionWithAccounts<[TAccountPayer extends string ? IAccountMeta<TAccountPayer<TAccountPayer>> & {
  role: WRITABLE_SIGNER;
} & IAccountSignerMeta<TAccountPayer<TAccountPayer>, TransactionSigner<TAccountPayer<TAccountPayer>>> : TAccountPayer, TAccountNewAccount extends string ? IAccountMeta<TAccountNewAccount<TAccountNewAccount>> & {
  role: WRITABLE_SIGNER;
} & IAccountSignerMeta<TAccountNewAccount<TAccountNewAccount>, TransactionSigner<TAccountNewAccount<TAccountNewAccount>>> : TAccountNewAccount]> & IInstructionWithByteDelta;

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

IInstruction<TProgramAddress, readonly (IAccountLookupMeta<string, string> | IAccountMeta<string>)[]> & IInstructionWithData<Uint8Array<ArrayBufferLike>> & IInstructionWithAccounts<[TAccountPayer extends string ? IAccountMeta<TAccountPayer<TAccountPayer>> & { role: WRITABLE_SIGNER; } & IAccountSignerMeta<TAccountPayer<TAccountPayer>, TransactionSigner<TAccountPayer<TAccountPayer>>> : TAccountPayer, TAccountNewAccount extends string ? IAccountMeta<TAccountNewAccount<TAccountNewAccount>> & { role: WRITABLE_SIGNER; } & IAccountSignerMeta<TAccountNewAccount<TAccountNewAccount>, TransactionSigner<TAccountNewAccount<TAccountNewAccount>>> : TAccountNewAccount]> & IInstructionWithByteDelta

On this page