The amount of tokens being swapped, as string (numberish). Accepts bigint.toString(), number, etc.
OptionalamountOptional minimum amount out for slippage protection.
OptionalhookOptional additional data for the hooks.
Pool key with currency addresses, fee, tick spacing, and hooks.
Direction of the swap. True if swapping from currency0 to currency1.
Extended SwapExactInSingle type that ensures alignment with Uniswap V4 SDK while providing additional flexibility for our use case.
Example