{"uid":"cap_A0jNvwrN3a9I1ZW9awAOi","slug":"agentdata-api-gas-prices-base-mainnet-fd95dd00","name":"AgentData API — Gas Prices (Base Mainnet)","description":"Pay-per-request crypto market data API for AI agents. 16 endpoints on Base Mainnet via x402 protocol. No accounts, no API keys. USDC micropayments from $0.001. Works with Claude Desktop, ElizaOS, and any MCP client.","url":"https://agentdata-api.com/api/gas-prices","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","properties":{"data":{"type":"object","properties":{"ts":{"type":"string"},"chains":{"type":"object"}}},"success":{"type":"boolean"}}}}}}},"responseSchema":null,"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_GXRmTS2b78b-qRCA-gBtL","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 current gas price data for blockchain networks, paid via x402 USDC micropayment on Base Mainnet","exampleAgentPrompt":"What are the current slow, standard, and fast gas prices in gwei on Ethereum right now? Pay via USDC micropayment if needed.","exampleUseCases":[{"title":"DeFi transaction cost calculator","prompt":"I'm about to swap some tokens on Uniswap but want to check if gas is reasonable right now. Can you pull the current fast gas price on Ethereum and tell me what my transaction might cost? Use that USDC micropayment if you need to."},{"title":"Multi-chain deployment budget planner","prompt":"We're deploying a smart contract across Ethereum, Polygon, and Arbitrum today. What are the current standard gas prices on each network so I can estimate our total deployment costs? Grab whatever data you need via the micropayment system."},{"title":"Real-time agent gas monitoring","prompt":"Set up monitoring for me — check the fast gas prices on Base Mainnet right now and let me know if we should wait before executing our batch transactions, or if fees are low enough to go ahead immediately. Pay for the lookup with a micro-transaction."}],"resultDescription":"Returns current gas price estimates (slow, standard, fast) in gwei or equivalent units for the requested blockchain network, along with a timestamp of when the data was fetched.","failureModes":["Payment not included or insufficient USDC — returns 402 Payment Required","Invalid or unsupported network identifier — returns 400 Bad Request","Network data temporarily unavailable — returns 503 Service Unavailable","Malformed request body — returns 400 with validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs real-time gas price estimates for blockchain transaction cost planning, DeFi operations, or smart contract interactions, and can pay $0.001 USDC per call via x402 without requiring an API key or account setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:51:53.123Z","isFirstParty":false}