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

    Function getPool

    • Quotes the amount of output token that can be received for a given input token amount in a single swap.

      Parameters

      Returns Promise<
          {
              address: `0x${string}`;
              fee: number;
              tokenIn: `0x${string}`;
              tokenOut: `0x${string}`;
          },
      >

      An object containing the pool address, input token address, output token address, and fee.

      If the specified chain is not supported.

      If the pool is unavailable for the specified token pair.

      const pool = await client.getPool({
      tokenIn: '0xfff9976782d46cc05630d1f6ebab18b2324d6b14', // WETH
      tokenOut: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238', // USDC
      chain: ETH_SEPOLIA, // Ethereum Sepolia
      });
      // => {
      // address: '0x6Ce0896eAE6D4BD668fDe41BB784548fb8F59b50',
      // tokenIn: '0xfff9976782d46cc05630d1f6ebab18b2324d6b14',
      // tokenOut: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
      // fee: 3000,
      // }