getCreateAccountInstruction
Type Parameters
| Type Parameter | Default type |
|---|---|
TAccountPayer extends string | - |
TAccountNewAccount extends string | - |
TProgramAddress extends Address | Address<"11111111111111111111111111111111"> |
Parameters
| Parameter | Type |
|---|---|
input | CreateAccountInput<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