Fetches detailed information about one or more liquidity pools across Uniswap V2, V3, and V4. Returns pool state including token addresses, reserves, liquidity, current tick, sqrtRatioX96, fee tier, tick spacing, and hook addresses (V4).
Provide one of poolParameters or poolReferences (not both):
poolParameters: Look up pools by token pair. Provide token addresses and optional fee/tickSpacing/hooks to find matching pools.poolReferences: Look up specific known pools by their reference identifier (pool address for V3, pool ID for V4, pair address for V2).poolParameters — Look up pools by token pair. Provide token addresses and optional fee/tickSpacing/hooks to find pools matching those parameters. Useful when you know the token pair but not the pool address.
poolReferences — Look up specific known pools. Provide an array of PoolReferenceByProtocol objects, each containing a protocol, chainId, and referenceIdentifier (pool address for V3, pool ID for V4, pair address for V2).
protocol — The Uniswap protocol version (V2, V3, or V4)chainId — The blockchain network (numeric chain ID)pageSize / currentPage — Optional pagination parameterspools, each containing:
poolReferenceIdentifier — The pool address (V3), pool ID (V4), or pair address (V2)poolProtocol — The protocol versiontokenAddressA / tokenAddressB — The token pair addressesfee — The fee tiertickSpacing — The tick spacinghookAddress — The hook address (V4 only)poolLiquidity — Current pool liquiditysqrtRatioX96 — Current sqrtPriceX96currentTick — Current ticktokenAmountA / tokenAmountB — Token amounts in the pooltokenDecimalsA / tokenDecimalsB — Token decimalstokenAReserves / tokenBReserves — Pool reserves (V2)The protocols to use for the swap/order. If the protocols field is defined, then you can only set the routingPreference to BEST_PRICE. Note that the value UNISWAPX is deprecated and will be removed in a future release.
The protocol to use for the swap/order.
V2, V3, V4, UNISWAPX, UNISWAPX_V2, UNISWAPX_V3 Array of pool reference identifiers to query. Each reference should include the protocol, chainId, and either the pool address (V3), pool id (V4), or pair address (V2).