Function getSwapInstruction
- getSwapInstruction<
TAccountTokenProgram extends string,
TAccountTokenAuthority extends string,
TAccountWhirlpool 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: SwapInput<
TAccountTokenProgram,
TAccountTokenAuthority,
TAccountWhirlpool,
TAccountTokenOwnerAccountA,
TAccountTokenVaultA,
TAccountTokenOwnerAccountB,
TAccountTokenVaultB,
TAccountTickArray0,
TAccountTickArray1,
TAccountTickArray2,
TAccountOracle,
>,
config?: { programAddress?: TProgramAddress },
): SwapInstruction<
TProgramAddress,
TAccountTokenProgram,
TAccountTokenAuthority,
TAccountWhirlpool,
TAccountTokenOwnerAccountA,
TAccountTokenVaultA,
TAccountTokenOwnerAccountB,
TAccountTokenVaultB,
TAccountTickArray0,
TAccountTickArray1,
TAccountTickArray2,
TAccountOracle,
> Type Parameters
- TAccountTokenProgram extends string
- TAccountTokenAuthority extends string
- TAccountWhirlpool 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: SwapInput<
TAccountTokenProgram,
TAccountTokenAuthority,
TAccountWhirlpool,
TAccountTokenOwnerAccountA,
TAccountTokenVaultA,
TAccountTokenOwnerAccountB,
TAccountTokenVaultB,
TAccountTickArray0,
TAccountTickArray1,
TAccountTickArray2,
TAccountOracle,
> Optional
config: { programAddress?: TProgramAddress }