getUniswapV3Pool

Finds the Uniswap V3 pools for the two tokens.

Example

import { getUniswapV3Pool } from "thirdweb/extensions/uniswap";
const pools = await getUniswapV3Pool({
tokenA: "0x...",
tokenB: "0x...",
contract: factoryContract,
});
function getUniswapV3Pool(
): Promise<Array<GetUniswapV3PoolResult>>;

Parameters

The token pair to find any pools for any Uniswap contract that implements getPool.

Type

Returns

let returnType: {
poolAddress: Address;
poolFee: (typeof UniswapFee)[keyof typeof UniswapFee];
};

The pools' addresses and fees.