{"uid":"cap_w63dKksTTBnz9R2KY4zyW","slug":"pro-api-coingecko-com-ab6fb228","name":"CoinGecko Pro On-Chain Token Price – Base Network (WETH 0x4200…0006)","description":"Fetches the on-chain price for a specific token on the Base network by token address using CoinGecko Pro's x402 paid endpoint.","url":"https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x4200000000000000000000000000000000000006?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"include_24hr_vol":{"type":"boolean"},"mcap_fdv_fallback":{"type":"boolean"},"include_market_cap":{"type":"boolean"},"include_inactive_source":{"type":"boolean"},"include_24hr_price_change":{"type":"boolean"},"include_total_reserve_in_usd":{"type":"boolean"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","type","attributes"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"attributes":{"type":"object","required":["token_prices","h24_volume_usd","market_cap_usd","h24_price_change_percentage"],"properties":{"token_prices":{"type":"object","required":["0x4200000000000000000000000000000000000006"],"properties":{"0x4200000000000000000000000000000000000006":{"type":"string"}}},"h24_volume_usd":{"type":"object","required":["0x4200000000000000000000000000000000000006"],"properties":{"0x4200000000000000000000000000000000000006":{"type":"string"}}},"market_cap_usd":{"type":"object","required":["0x4200000000000000000000000000000000000006"],"properties":{"0x4200000000000000000000000000000000000006":{"type":"string"}}},"h24_price_change_percentage":{"type":"object","required":["0x4200000000000000000000000000000000000006"],"properties":{"0x4200000000000000000000000000000000000006":{"type":"string"}}}}}}}}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"include_24hr_vol":true,"include_market_cap":true,"include_24hr_price_change":true}},"output":{"type":"object","example":{"0x4200000000000000000000000000000000000006":{"usd":2450.5,"usd_24h_vol":1250000000,"usd_24h_change":2.35,"usd_market_cap":29500000000}}}},"response":{"data":{"id":"f32e1bb0-d358-4aef-a2fd-23d6120553db","type":"simple_token_price","attributes":{"token_prices":{"0x4200000000000000000000000000000000000006":"1790.95"},"h24_volume_usd":{"0x4200000000000000000000000000000000000006":"648925386.802242"},"market_cap_usd":{"0x4200000000000000000000000000000000000006":"498743380.91738534"},"h24_price_change_percentage":{"0x4200000000000000000000000000000000000006":"4.3373143024"}}}}},"exampleRequest":{"include_24hr_vol":true,"include_market_cap":true,"include_24hr_price_change":true},"tags":["x402"],"displayCostAmount":"0.010000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.010000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HxCQk9ysZ_ieIo1Cw1cqo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current on-chain USD price for the WETH token (0x4200000000000000000000000000000000000006) on the Coinbase Base network via CoinGecko Pro's x402 micropayment endpoint.","exampleAgentPrompt":"What's the current on-chain price of WETH (the Wrapped Ether token at 0x4200000000000000000000000000000000000006) on the Coinbase Base network, including its 24-hour price change and market cap?","exampleUseCases":[{"title":"Real-time WETH pricing for Base DeFi swaps","prompt":"I need to execute a swap on a Base network DEX right now. Can you check the live on-chain price of WETH to make sure I'm getting a fair rate before I proceed?"},{"title":"Monitor WETH volatility across trading sessions","prompt":"Pull the current WETH price on Base along with today's 24-hour price movement and volume so I can track if there's been significant volatility since this morning."},{"title":"Validate collateral value for Base lending protocols","prompt":"I'm about to deposit WETH as collateral on a Base lending protocol. What's the current on-chain USD price and market cap for WETH so I can calculate my borrowing power?"}],"resultDescription":"Returns a JSON object containing the current on-chain USD price for the specified token contract on Base, optionally including 24hr trading volume, market capitalization, 24hr price change percentage, and total reserve in USD — sourced from live DEX liquidity pools via CoinGecko Pro.","failureModes":["Invalid or unsupported token contract address returns 404 or empty result","Payment failure (insufficient USDC balance) blocks the request via x402 protocol","Rate limiting or authentication error if x402 payment is not properly handled","Token exists but has no on-chain liquidity, resulting in missing or null price data","Network outage on Base or CoinGecko data provider returns 503"],"whenToPreferThis":"Choose this endpoint when you need a real-time on-chain price for the WETH token specifically on the Coinbase Base network, especially in automated agent workflows where micropayment via x402 is acceptable. Prefer this over CoinGecko's standard simple/price endpoint when you need on-chain DEX-sourced pricing rather than aggregate CEX/CoinGecko pricing, and when working within Base network DeFi contexts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:48:06.241Z","isFirstParty":false,"canonicalSlug":"pro-api-coingecko-com-ab6fb228"}