The client instance to use for the operation.
Parameters for the quote
An object containing the pool address, input token address, output token address, and fee.
const pool = await client.getPool({
tokenIn: '0xfff9976782d46cc05630d1f6ebab18b2324d6b14', // WETH
tokenOut: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238', // USDC
chain: ETH_SEPOLIA, // Ethereum Sepolia
});
// => {
// address: '0x6Ce0896eAE6D4BD668fDe41BB784548fb8F59b50',
// tokenIn: '0xfff9976782d46cc05630d1f6ebab18b2324d6b14',
// tokenOut: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
// fee: 3000,
// }
Quotes the amount of output token that can be received for a given input token amount in a single swap.