TransferInstruction
type TransferInstruction<TProgram, TAccountSource, TAccountDestination, TAccountAuthority, TRemainingAccounts> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountSource extends string ? WritableAccount<TAccountSource> : TAccountSource, TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination, TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority, ...TRemainingAccounts]>;Type Parameters
| Type Parameter | Default type |
|---|---|
TProgram extends string | typeof TOKEN_2022_PROGRAM_ADDRESS |
TAccountSource extends string | AccountMeta<string> | string |
TAccountDestination extends string | AccountMeta<string> | string |
TAccountAuthority extends string | AccountMeta<string> | string |
TRemainingAccounts extends readonly AccountMeta<string>[] | [] |