{"slug":"1gateway-dev-v1-onchain-prices-b9a745","title":"Use when an agent needs a token's USD price without a third-party price feed","host":"1gateway.dev","method":"GET","resource":"https://1gateway.dev/v1/onchain/prices","category":"market","description":"Use when an agent needs a token's USD price without a third-party price feed. Input: tokens (up to 10, base:0x… or sol:<mint>). Output: per token priceUsd, confidence, the pool used (Uniswap v3 / Aerodrome on Base, Orca Whirlpool on Solana; fee tier, depth in USD), path (direct USDC or via WETH/SOL)","price_listed":0.003,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:137","eip155:143","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"tokens":"base:0x940181a94A35A4569E4529A3CDfB74e38FD98631"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"tokens":{"description":"Comma-separated chain:address list, max 10 (base:0x… ERC-20, sol:<mint> base58), or tickers BTC, ET…","pattern":"^(?:(?:base|sol|solana):[0-9A-Za-z]{32,44}|[A-Za-z]{2,6})(?:,(?:(?:base|sol|solana):[0-9A-Za-z]{32,44}|[A-Za-z]{2,6})){0,9}$","type":"string"}},"required":["tokens"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"asOf":{"additionalProperties":true,"properties":{"at":{"type":"string"},"baseBlock":{"type":"integer"},"solanaSlot":{"type":"integer"}},"type":"object"},"method":{"additionalProperties":true,"properties":{"depthUsd":{"type":"string"},"dexes":{"additionalProperties":true,"type":"object"},"floorUsd":{"type":"integer"},"lowConfidenceBelowUsd":{"type":"integer"}},"type":"object"},"notes":{"items":{"type":"string"},"type":"array"},"prices":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"rpc":{"additionalProperties":true,"properties":{"kind":{"type":"string"},"source":{"type":"string"}},"type":"object"}},"required":["prices","asOf","method","notes","rpc"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Use when an agent needs a token's USD price without a third-party price feed. Input: tokens (up to 10, base:0x… or sol:<mint>). Output: per token priceUsd, confidence, the pool used (Uniswap v3 / Aerodrome on Base, Orca Whirlpool on Solana; fee tier, depth in USD), path (direct USDC or via WETH/SOL), warnings; no price below $1,000 depth. Spot, not TWAP. Example: ?tokens=base:0x940181a94A35A4569E4529A3CDfB74e38FD98631","last_updated":"2026-11-23T00:52:49.876Z","schemes":["exact"]}