{"uid":"cap_Y1JXpKmSMDfpLzonR2DxC","slug":"grokzilla-token-price-oracle-8e395fcf","name":"Grokzilla Token Price Oracle","description":"Verified USD price for a Base ERC-20: DeFiLlama cross-checked against the deepest on-chain Uniswap/Aerodrome pool. Returns price, spread, staleness, confidence. Refused, not charged, if sources disagree over 2.5% or one is missing. Data only, not investment advice.","url":"https://grokzilla.shop/api/skills/token-price?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["base"],"type":"string","default":"base"},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Base ERC-20 contract address"},"request_id":{"type":"string","pattern":"^[A-Za-z0-9._:-]+$","maxLength":64,"minLength":1,"description":"Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once."}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"agree":true,"chain":"base","token":"0x4200000000000000000000000000000000000006","symbol":"WETH","decimals":18,"by_source":{"onchain":{"pool":{"dex":"uniswap_v3","quote":"USDC","address":"0x6c561b446416e1a00e8e93e221854d6ea4171372","variant":"fee 3000","quote_side_usd":60045166.09},"block":52723111,"price_usd":"2431.203","weth_usd_onchain":2431.202812620857},"defillama":{"as_of":"2026-10-17T11:11:51Z","price_usd":"2434.91","confidence":0.99,"staleness_s":58}},"price_usd":"2433.056","disclaimer":"Data only, not investment advice. Spot prices from public sources at one point in time; they can be stale, manipulated in thin pools, or wrong. No buy/sell signal is given or implied.","spread_pct":0.1524,"sources_agree_within_pct":2.5},"next":["token_risk"],"skill":"token_price","charged":true,"service":"token_price","sources":[{"url":"https://coins.llama.fi/prices/current/base:0x4200000000000000000000000000000000000006","name":"DeFiLlama coins API","fetched_at":"2026-10-17T11:12:48Z"},{"url":"https://basescan.org/address/0x6c561b446416e1a00e8e93e221854d6ea4171372","name":"Base on-chain pool (public RPC)","block":52723111,"fetched_at":"2026-10-17T11:12:48Z"}],"summary":"WETH $2433.056 (2 sources, spread 0.15%) - data only, not advice","version":"1.0.0","warnings":[],"confidence":0.975,"data_as_of":"2026-10-17T11:11:51Z","disclaimer":"Data only, not investment advice. Spot prices from public sources at one point in time; they can be stale, manipulated in thin pools, or wrong. No buy/sell signal is given or implied.","generated_at":"2026-10-17T11:12:49Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9YeEoZzZduV2nqDADbrdl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a cross-validated USD price for a Base ERC-20 token, sourced from DeFiLlama and the deepest on-chain Uniswap/Aerodrome pool, with spread, staleness, and confidence metrics.","exampleAgentPrompt":"What's the current USD price of the Base ERC-20 token at contract address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, and how confident is the source agreement?","exampleUseCases":[{"title":"DeFi portfolio valuation agent","prompt":"I need the current USD price for the Base ERC-20 at 0x4200000000000000000000000000000000000006 — include spread, staleness, and confidence so I know how reliable the quote is."},{"title":"On-chain arbitrage signal check","prompt":"Can you fetch the cross-validated price for Base token 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb and tell me the spread between DeFiLlama and the on-chain pool?"},{"title":"Token price gate for a smart contract action","prompt":"Before I approve this swap, get me the validated USD price for 0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22 on Base — I only want to proceed if DeFiLlama and the Uniswap pool agree within 2.5%."}],"resultDescription":"Returns a JSON object containing the USD price of the requested Base ERC-20 token, the spread between DeFiLlama and the on-chain pool, a staleness indicator, and a confidence score. If the two sources disagree by more than 2.5% or one source is unavailable, the request is refused and no charge is applied.","failureModes":["Source disagreement over 2.5%: request refused, no charge applied","One price source missing or unavailable: request refused, no charge applied","Invalid contract address format: validation error returned","Unsupported chain (non-Base): rejected at input validation","Token not found in either DeFiLlama or on-chain pool: data unavailable error"],"whenToPreferThis":"Choose this endpoint when you need a USD price for a Base ERC-20 token that is cross-validated against both DeFiLlama and the deepest on-chain pool (Uniswap/Aerodrome), and you want built-in protection against stale or divergent data. It is especially valuable when price reliability and confidence metrics matter — e.g. before executing a swap, valuing a portfolio, or gating an action on price. It refuses gracefully rather than returning a bad price, making it safer than single-source oracles.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T12:43:28.843Z","isFirstParty":false,"canonicalSlug":"grokzilla-token-price-oracle-8e395fcf"}