Skip to content
Fourohtwo

Read on-chain state of a Uniswap V3 pool

agent402.tools/api/dex-pool

Read on-chain state of a Uniswap V3 pool: token0/token1 addresses + decimals, fee tier, current sqrtPriceX96, tick, in-range liquidity, and the decoded human-readable spot price (token1 per token0). One $0.002 call replaces ~6 RPC roundtrips on the caller's side.

SolanaBaseAnswering
POSThttps://agent402.tools/api/dex-pool

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent402.tools/api/dex-pool", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"network":"base","poolAddress":"0xd0b53d9277642d899df5c87a3966a349a798f224"}),
});
console.log(await res.json());

Example input

{
  "network": "base",
  "poolAddress": "0xd0b53d9277642d899df5c87a3966a349a798f224"
}