On-chain DEX pool data API
On-chain DEX pool data API: reads Uniswap v2/v3-compatible liquidity pools from Ethereum, Base, Polygon, Arbitrum, Optimism, BSC, and Avalanche 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. Cached up to 30 seconds.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://gateway.stride20k.com/dex/pool/:chain/:poolAddress
| Category | Market data |
|---|---|
| Provider host | gateway.stride20k.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 3 from 2 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-24 | valid payment request | 402 | $0.01 | 397 ms |
Example input (from the provider)
{
"method": "GET",
"pathParams": {
"chain": "base",
"poolAddress": "0xd0b53D9277642d899DF5C87A3966A349A798F224"
},
"queryParams": {},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"pathParams": {
"properties": {
"chain": {
"aliases": {
"1": "ethereum",
"10": "optimism",
"137": "polygon",
"42161": "arbitrum",
"43114": "avalanche",
"56": "bsc",
"8453": "base",
"arb": "arbitrum",
"avax": "avalanche",
"bnb": "bsc",
"eth": "ethereum",
"matic": "polygon",
"op": "optimism"
},
"description": "Chain to read from. Shorthands accepted: 1, 10, 56, 137, 8453, 42161, 43114, eth, arb, op, matic, avax, bnb.",
"enum": [
"ethereum",
"base",
"polygon",
"arbitrum",
"optimism",
"bsc",
"avalanche"
],
"missTrack": true,
"normalize": "lower",
"type": "string"
},
"poolAddress": {
"description": "Pool (pair) contract address, 0x-prefixed.",
"pattern": "0x[a-fA-F0-9]{40}",
"type": "string"
}
},
"required": [
"chain",
"poolAddress"
],
"type": "object"
},
"queryParams": {
"properties": {},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"data": {
"properties": {
"chain": {
"description": "Chain queried.",
"type": "string"
},
"feeTierBps": {
"description": "v3 only: fee tier in basis points (e.g. 30 = 0.3%).",
"type": "number"
},
"inRangeLiquidity": {
"description": "v3 only: current in-range liquidity, as decimal string.",
"type": "string"
},
"pool": {
"description": "Pool contract address.",
"type": "string"
},
"poolType": {
"description": "'uniswap-v3-compatible' or 'uniswap-v2-compatible'.",
"type": "string"
},
"price": {
"description": "Decimal-adjusted spot price: { token1PerToken0, token0PerToken1 }.",
"type": "object"
},
"reserves": {
"description": "v2 only: decimal-adjusted { token0, token1 } reserves.",
"type": "object"
},
"sqrtPriceX96": {
"description": "v3 only: raw sqrt price, Q64.96, as decimal string.",
"type": "string"
},
"token0": {
"description": "First pool token: { address, symbol, decimals }.",
"type": "object"
},
"token1": {
"description": "Second pool token: { address, symbol, decimals }.",
"type": "object"
}
},
"required": [
"chain",
"pool",
"poolType",
"token0",
"token1",
"price"
],
"type": "object"
},
"endpoint": {
"description": "Always \"/dex/pool/:chain/:poolAddress\".",
"type": "string"
},
"meta": {
"properties": {
"attribution": {
"description": "Licensing attribution when the source requires it.",
"type": [
"string",
"null"
]
},
"cached": {
"description": "Whether this response was served from cache.",
"type": "boolean"
},
"fetchedAt": {
"description": "ISO 8601 time the data was actually retrieved from the upstream.",
"type": "string"
},
"source": {
"description": "Upstream source: on-chain (PublicNode/dRPC JSON-RPC).",
"type": "string"
}
},
"required": [
"source",
"cached",
"fetchedAt"
],
"type": "object"
},
"ok": {
"description": "true on success.",
"type": "boolean"
}
},
"required": [
"ok",
"endpoint",
"data",
"meta"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}