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
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