dex_pool
Read live on-chain state of Uniswap v2/v3 DEX pools. Get token addresses, spot prices, and liquidity directly from Ethereum, Base, or Polygon via trustless JSON-RPC.
Instructions
[costs $0.01 USDC per call] Read live on-chain state of a Uniswap v2/v3-compatible DEX pool. On-chain DEX pool data API: reads Uniswap v2/v3-compatible liquidity pools directly from Ethereum, Base, or Polygon via JSON-RPC — no third-party data vendor. Auto-detects pool type; returns token addresses, symbols, decimals, spot price both directions, v3 fee tier, sqrtPriceX96 and in-range liquidity, or v2 decimal-adjusted reserves. For price discovery, liquidity checks, and trading agents needing trustless pair state at the latest block. Cached up to 30 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain to read from. | |
| poolAddress | Yes | Pool (pair) contract address, 0x-prefixed. |