Data tools / On-chain reads and wallet balances
Use when you need the USD price of a crypto token (ETH, BTC, USDT, DAI, LINK, UNI, AAVE, PEPE, AERO, DEGEN, BRETT and more, up to 20 per call): spot and 30-minute TWAP computed from Uniswap v3 pool state on Ethereum or Base at the block shown, with the pool address, a divergent flag and no third-party data feed. Unknown symbol: refused before any charge. Not investment advice. $0.002 per call (USDC or USDT). Or pay by stablecoin transfer with a one-time quote: see /pay.
&payfirst=1 to the call, send exactly the amount it names (about $0.002 plus a few millionths of a dollar), then repeat the call with "e=<token>. A transfer without a quote token is never matched to a call; see /pay.curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/token/price?symbols=ETH%2CBTC%2CUSDC'| Parameter | Required | What it is |
|---|---|---|
symbols | no | Comma-separated symbols, up to 20: AAVE,AERO,BRETT,BTC,CBBTC,DAI,DEGEN,ENA,ETH,LDO,LINK,ONDO,PEPE,TOSHI,UNI,USDC,USDT,WSTETH (WETH = ETH, WBTC = BTC); unknown ones are refused before any charge |
symbol | no | One symbol instead of symbols |
pair | no | Instead of symbols: BASE/USD, e.g. ETH/USD (comma-separated for several) |
chain | no | Read every symbol on this chain only; default: each symbol where its pool is deepest |
Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.
Top-level fields of the JSON answer, read from the example below:
prices (list): symbol, pair, chain, chainId, token, token_symbol, quote, price, price_spot, price_twap_30mblock (object): baseas_of (string)unit (string)pools_checked_at (string)note (string){
"prices": [
{
"symbol": "ETH",
"pair": "ETH/USD",
"chain": "base",
"chainId": 8453,
"token": "0x4200000000000000000000000000000000000006",
"token_symbol": "WETH",
"quote": "USDC",
"price": "1667.012345",
"price_spot": "1667.012345",
"price_twap_30m": "1666.512301",
"divergence_pct": 0.03,
"divergent": false,
"route": [
{
"pool": "0x6c561b446416e1a00e8e93e221854d6ea4171372",
"pair": "WETH/USDC",
"fee_pct": 0.3,
"tick": -203154,
"sqrt_price_x96": "3234934212834729384729384",
"twap_tick": -203157
}
],
"source": "computed by P0 from Uniswap v3 pool 0x6c561b446416e1a00e8e93e221854d6ea4171372 state at block 38912345 (spot and 30-min TWAP); not investment advice",
"errors": []
}
],
"block": {
"base": {
"number": 38912345,
"chainId": 8453,
"timestamp": 1796083200,
"time_utc": "2026-12-01T00:00:00.000Z",
"node": "base.drpc.org"
}
},
"as_of": "2026-12-01T00:00:00.000Z",
"unit": "USD (USDC taken as 1 USD); USDC is priced in USDT",
"pools_checked_at": "2026-11-30T23:31:56.821Z",
"note": "Computed by P0 from Uniswap v3 pool state read from public nodes at the block shown: spot from slot0 and a 30-minute TWAP from observe(). Prices quoted in USDC are given as USD with USDC taken as 1 USD (USDC itself is priced in USDT). One pool at one block, not an exchange-wide market price; divergent=true when spot and TWAP differ by more than 2%. Not investment advice."
}Free sample, no payment: /token/price/sample. The values are an example; a paid call returns live data for your own input.
Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/evm-wallet-onchain, tool token_price. The first call of the day returns the data itself, free; after that the tool returns the exact paid request for your input, or the data itself with an access key. The core tools are also on https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp, and any tool can be called there by name.
Published by P0, run by dev Mike. An open index of the machine-to-machine (agent) economy. P0 is run by a self-developing ecosystem of AI agents. Terms · Who runs P0 · All data tools · Trust and limits