Function getTwoHopSwapV2Instruction
- getTwoHopSwapV2Instruction<
TAccountWhirlpoolOne extends string,
TAccountWhirlpoolTwo extends string,
TAccountTokenMintInput extends string,
TAccountTokenMintIntermediate extends string,
TAccountTokenMintOutput extends string,
TAccountTokenProgramInput extends string,
TAccountTokenProgramIntermediate extends string,
TAccountTokenProgramOutput extends string,
TAccountTokenOwnerAccountInput extends string,
TAccountTokenVaultOneInput extends string,
TAccountTokenVaultOneIntermediate extends string,
TAccountTokenVaultTwoIntermediate extends string,
TAccountTokenVaultTwoOutput extends string,
TAccountTokenOwnerAccountOutput extends string,
TAccountTokenAuthority extends string,
TAccountTickArrayOne0 extends string,
TAccountTickArrayOne1 extends string,
TAccountTickArrayOne2 extends string,
TAccountTickArrayTwo0 extends string,
TAccountTickArrayTwo1 extends string,
TAccountTickArrayTwo2 extends string,
TAccountOracleOne extends string,
TAccountOracleTwo extends string,
TAccountMemoProgram extends string,
TProgramAddress extends
Address = Address<"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc">,
>(
input: TwoHopSwapV2Input<
TAccountWhirlpoolOne,
TAccountWhirlpoolTwo,
TAccountTokenMintInput,
TAccountTokenMintIntermediate,
TAccountTokenMintOutput,
TAccountTokenProgramInput,
TAccountTokenProgramIntermediate,
TAccountTokenProgramOutput,
TAccountTokenOwnerAccountInput,
TAccountTokenVaultOneInput,
TAccountTokenVaultOneIntermediate,
TAccountTokenVaultTwoIntermediate,
TAccountTokenVaultTwoOutput,
TAccountTokenOwnerAccountOutput,
TAccountTokenAuthority,
TAccountTickArrayOne0,
TAccountTickArrayOne1,
TAccountTickArrayOne2,
TAccountTickArrayTwo0,
TAccountTickArrayTwo1,
TAccountTickArrayTwo2,
TAccountOracleOne,
TAccountOracleTwo,
TAccountMemoProgram,
>,
config?: { programAddress?: TProgramAddress },
): TwoHopSwapV2Instruction<
TProgramAddress,
TAccountWhirlpoolOne,
TAccountWhirlpoolTwo,
TAccountTokenMintInput,
TAccountTokenMintIntermediate,
TAccountTokenMintOutput,
TAccountTokenProgramInput,
TAccountTokenProgramIntermediate,
TAccountTokenProgramOutput,
TAccountTokenOwnerAccountInput,
TAccountTokenVaultOneInput,
TAccountTokenVaultOneIntermediate,
TAccountTokenVaultTwoIntermediate,
TAccountTokenVaultTwoOutput,
TAccountTokenOwnerAccountOutput,
TAccountTokenAuthority,
TAccountTickArrayOne0,
TAccountTickArrayOne1,
TAccountTickArrayOne2,
TAccountTickArrayTwo0,
TAccountTickArrayTwo1,
TAccountTickArrayTwo2,
TAccountOracleOne,
TAccountOracleTwo,
TAccountMemoProgram,
> Type Parameters
- TAccountWhirlpoolOne extends string
- TAccountWhirlpoolTwo extends string
- TAccountTokenMintInput extends string
- TAccountTokenMintIntermediate extends string
- TAccountTokenMintOutput extends string
- TAccountTokenProgramInput extends string
- TAccountTokenProgramIntermediate extends string
- TAccountTokenProgramOutput extends string
- TAccountTokenOwnerAccountInput extends string
- TAccountTokenVaultOneInput extends string
- TAccountTokenVaultOneIntermediate extends string
- TAccountTokenVaultTwoIntermediate extends string
- TAccountTokenVaultTwoOutput extends string
- TAccountTokenOwnerAccountOutput extends string
- TAccountTokenAuthority extends string
- TAccountTickArrayOne0 extends string
- TAccountTickArrayOne1 extends string
- TAccountTickArrayOne2 extends string
- TAccountTickArrayTwo0 extends string
- TAccountTickArrayTwo1 extends string
- TAccountTickArrayTwo2 extends string
- TAccountOracleOne extends string
- TAccountOracleTwo extends string
- TAccountMemoProgram extends string
- TProgramAddress extends Address = Address<"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc">
Parameters
- input: TwoHopSwapV2Input<
TAccountWhirlpoolOne,
TAccountWhirlpoolTwo,
TAccountTokenMintInput,
TAccountTokenMintIntermediate,
TAccountTokenMintOutput,
TAccountTokenProgramInput,
TAccountTokenProgramIntermediate,
TAccountTokenProgramOutput,
TAccountTokenOwnerAccountInput,
TAccountTokenVaultOneInput,
TAccountTokenVaultOneIntermediate,
TAccountTokenVaultTwoIntermediate,
TAccountTokenVaultTwoOutput,
TAccountTokenOwnerAccountOutput,
TAccountTokenAuthority,
TAccountTickArrayOne0,
TAccountTickArrayOne1,
TAccountTickArrayOne2,
TAccountTickArrayTwo0,
TAccountTickArrayTwo1,
TAccountTickArrayTwo2,
TAccountOracleOne,
TAccountOracleTwo,
TAccountMemoProgram,
> Optional
config: { programAddress?: TProgramAddress }