{"uid":"cap_7LQdkBqGi5ww15ZwCJa0e","slug":"pro-api-coingecko-com-3addd771","name":"CoinGecko On-Chain Token Price — Base Network (Contract 0xacfe6019)","description":"Fetches the on-chain price for a token on the Base network (by contract address) and returns supported payment options.","url":"https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf","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":["0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf"],"properties":{"0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf":{"type":"string"}}},"h24_volume_usd":{"type":"object","required":["0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf"],"properties":{"0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf":{"type":"string"}}},"market_cap_usd":{"type":"object","required":["0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf"],"properties":{"0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf":{"type":"string"}}},"h24_price_change_percentage":{"type":"object","required":["0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf"],"properties":{"0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf":{"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":{"0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf":{"usd":0,"usd_24h_vol":0,"usd_24h_change":0,"usd_market_cap":0}}}},"response":{"data":{"id":"7f225d45-c9dd-4a45-9e55-3b83a12c38bd","type":"simple_token_price","attributes":{"token_prices":{"0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf":"15.79271514429"},"h24_volume_usd":{"0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf":"9960528.00374063"},"market_cap_usd":{"0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf":"733492902.4711884"},"h24_price_change_percentage":{"0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf":"-2.4813975114651328"}}}}},"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_kzSq1-L0H34JhjIiHlRVd","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 a specific ERC-20 token at contract address 0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf on the Coinbase Base network via CoinGecko's DEX data.","exampleAgentPrompt":"What's the current on-chain price of the token at contract address 0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf on the Base network, including its 24-hour price change and market cap?","exampleUseCases":null,"resultDescription":"Returns the real-time on-chain USD price for the specified token contract on Base, along with optional fields such as 24hr trading volume, market cap, 24hr price change percentage, and total reserve in USD. Also includes supported payment options for the x402 micropayment protocol.","failureModes":["Invalid or unrecognized contract address returns 404 or empty price data","Token not tracked by CoinGecko DEX data returns null price","Network connectivity issues return 5xx errors","Insufficient USDC payment ($0.01 required) results in 402 Payment Required","Inactive token with no recent liquidity may return stale or missing data"],"whenToPreferThis":"Use this endpoint when you need the real-time on-chain DEX price for the specific token at 0xacfe6019 on Coinbase's Base network. Prefer this over CoinGecko's general coin price endpoint when you have a contract address rather than a coin ID, or when you need DEX-sourced on-chain price data rather than aggregated exchange prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:47:00.885Z","isFirstParty":false}