{"uid":"cap_MtfYUWMzdrO2rghe_CsTV","slug":"polyform-crypto-gas-price-api-31a97657","name":"Polyform Crypto Gas Price API","description":"Pay-per-call data endpoints for AI agents. USDC on Base via x402. No account, no API key — one micropayment per call.","url":"https://api.polyform.org/v1/crypto/gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"chain":"base","gasPriceWei":"6000000","gasPriceGwei":0.006}},"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_Othu-LN8TCQsrHwQEOik9","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 the current gas price on the Base blockchain in both wei and gwei units","exampleAgentPrompt":"What's the current gas price on Base right now — give me the value in both wei and gwei?","exampleUseCases":[{"title":"Pre-transaction gas estimation","prompt":"Before I send this USDC transfer on Base, what's the current gas price so I can estimate my total transaction cost?"},{"title":"Gas price monitoring for cost optimization","prompt":"Check the current gas price on Base for me — I want to know if it's cheap enough right now to batch my on-chain transactions."},{"title":"DeFi bot fee calculation","prompt":"What's the gas price on Base in gwei right now? I need to factor it into my arbitrage profit calculation before executing a swap."}],"resultDescription":"Returns a JSON object with the chain name ('base'), the current gas price in wei as a string, and the gas price in gwei as a decimal number. Example: {chain: 'base', gasPriceWei: '6000000', gasPriceGwei: 0.006}.","failureModes":["Base RPC node unavailable or congested — may return a 502 or timeout","Payment not received or malformed x402 header — returns 402 Payment Required","Rate-limiting or transient network issues causing 503 responses","Stale gas price data if upstream node is lagging behind the chain tip"],"whenToPreferThis":"Choose this endpoint when you need a quick, no-account gas price lookup specifically for the Base L2 network and want to pay per call with USDC micropayments rather than managing API keys or subscriptions. Ideal for AI agents that need on-demand blockchain fee data without provisioning credentials.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:42:00.156Z","isFirstParty":false,"canonicalSlug":"polyform-crypto-gas-price-api-31a97657"}