@circle-fin/usdckit - v0.18.0
    Preparing search index...

    Function exactInputSingle

    • Executes an exact input single swap on Uniswap V3.

      Parameters

      Returns Promise<`0x${string}`>

      A promise that resolves to the transaction hash of the executed swap.

      If the specified chain is not supported.

      const txHash = await client.exactInputSingle({
      tokenIn: '0xfff9976782d46cc05630d1f6ebab18b2324d6b14', // WETH
      amountIn: '1', // 1 WETH
      tokenOut: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238', // USDC
      account: '0xYourAccountAddress', // Your account address
      chain: ETH_SEPOLIA, // Ethereum Sepolia
      });
      // => '0xTransactionHash'