Function getSwapV2Instruction
- getSwapV2Instruction<
TAccountTokenProgramA extends string,
TAccountTokenProgramB extends string,
TAccountMemoProgram extends string,
TAccountTokenAuthority extends string,
TAccountWhirlpool extends string,
TAccountTokenMintA extends string,
TAccountTokenMintB extends string,
TAccountTokenOwnerAccountA extends string,
TAccountTokenVaultA extends string,
TAccountTokenOwnerAccountB extends string,
TAccountTokenVaultB extends string,
TAccountTickArray0 extends string,
TAccountTickArray1 extends string,
TAccountTickArray2 extends string,
TAccountOracle extends string,
TProgramAddress extends
Address = Address<"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc">,
>(
input: SwapV2Input<
TAccountTokenProgramA,
TAccountTokenProgramB,
TAccountMemoProgram,
TAccountTokenAuthority,
TAccountWhirlpool,
TAccountTokenMintA,
TAccountTokenMintB,
TAccountTokenOwnerAccountA,
TAccountTokenVaultA,
TAccountTokenOwnerAccountB,
TAccountTokenVaultB,
TAccountTickArray0,
TAccountTickArray1,
TAccountTickArray2,
TAccountOracle,
>,
config?: { programAddress?: TProgramAddress },
): SwapV2Instruction<
TProgramAddress,
TAccountTokenProgramA,
TAccountTokenProgramB,
TAccountMemoProgram,
TAccountTokenAuthority,
TAccountWhirlpool,
TAccountTokenMintA,
TAccountTokenMintB,
TAccountTokenOwnerAccountA,
TAccountTokenVaultA,
TAccountTokenOwnerAccountB,
TAccountTokenVaultB,
TAccountTickArray0,
TAccountTickArray1,
TAccountTickArray2,
TAccountOracle,
> Type Parameters
- TAccountTokenProgramA extends string
- TAccountTokenProgramB extends string
- TAccountMemoProgram extends string
- TAccountTokenAuthority extends string
- TAccountWhirlpool extends string
- TAccountTokenMintA extends string
- TAccountTokenMintB extends string
- TAccountTokenOwnerAccountA extends string
- TAccountTokenVaultA extends string
- TAccountTokenOwnerAccountB extends string
- TAccountTokenVaultB extends string
- TAccountTickArray0 extends string
- TAccountTickArray1 extends string
- TAccountTickArray2 extends string
- TAccountOracle extends string
- TProgramAddress extends Address = Address<"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc">
Parameters
- input: SwapV2Input<
TAccountTokenProgramA,
TAccountTokenProgramB,
TAccountMemoProgram,
TAccountTokenAuthority,
TAccountWhirlpool,
TAccountTokenMintA,
TAccountTokenMintB,
TAccountTokenOwnerAccountA,
TAccountTokenVaultA,
TAccountTokenOwnerAccountB,
TAccountTokenVaultB,
TAccountTickArray0,
TAccountTickArray1,
TAccountTickArray2,
TAccountOracle,
> Optional
config: { programAddress?: TProgramAddress }