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
> & IInstructionWithData
<Uint8Array
<ArrayBufferLike
>> & IInstructionWithAccounts
<[TAccountPayer
extends string
? AccountMeta
<TAccountPayer
<TAccountPayer
>> & {
role
: WRITABLE_SIGNER
;
} & IAccountSignerMeta
<TAccountPayer
<TAccountPayer
>> : TAccountPayer
, TAccountNewAccount
extends string
? AccountMeta
<TAccountNewAccount
<TAccountNewAccount
>> & {
role
: WRITABLE_SIGNER
;
} & IAccountSignerMeta
<TAccountNewAccount
<TAccountNewAccount
>> : TAccountNewAccount
]> & IInstructionWithByteDelta