{"uid":"cap_rO8qFs3H29t2BI1I-ezIB","slug":"basegas-oracle-x402-5289d877","name":"BaseGas Oracle x402","description":"Real-Time EIP-1559 Gas Estimation and Fee History Oracle for Base Mainnet, payable via x402.","url":"https://baseshield-x402-ojil.vercel.app/v1/gas","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","properties":{"type":{"const":"json"},"example":{"type":"object","required":["success","network","source","suggestions","base_fee_wei","timestamp"],"properties":{"source":{"type":"string"},"network":{"type":"string"},"success":{"type":"boolean"},"chain_id":{"type":"integer"},"timestamp":{"type":"string","format":"date-time"},"suggestions":{"type":"object","required":["slow","standard","fast","instant"],"properties":{"fast":{"type":"object","required":["max_priority_fee_per_gas_gwei","max_fee_per_gas_gwei","max_priority_fee_wei","max_fee_wei","estimated_wait_blocks"],"properties":{"max_fee_wei":{"type":"integer"},"max_fee_per_gas_gwei":{"type":"number"},"max_priority_fee_wei":{"type":"integer"},"estimated_wait_blocks":{"type":"integer"},"max_priority_fee_per_gas_gwei":{"type":"number"}}},"slow":{"type":"object","required":["max_priority_fee_per_gas_gwei","max_fee_per_gas_gwei","max_priority_fee_wei","max_fee_wei","estimated_wait_blocks"],"properties":{"max_fee_wei":{"type":"integer"},"max_fee_per_gas_gwei":{"type":"number"},"max_priority_fee_wei":{"type":"integer"},"estimated_wait_blocks":{"type":"integer"},"max_priority_fee_per_gas_gwei":{"type":"number"}}},"instant":{"type":"object","required":["max_priority_fee_per_gas_gwei","max_fee_per_gas_gwei","max_priority_fee_wei","max_fee_wei","estimated_wait_blocks"],"properties":{"max_fee_wei":{"type":"integer"},"max_fee_per_gas_gwei":{"type":"number"},"max_priority_fee_wei":{"type":"integer"},"estimated_wait_blocks":{"type":"integer"},"max_priority_fee_per_gas_gwei":{"type":"number"}}},"standard":{"type":"object","required":["max_priority_fee_per_gas_gwei","max_fee_per_gas_gwei","max_priority_fee_wei","max_fee_wei","estimated_wait_blocks"],"properties":{"max_fee_wei":{"type":"integer"},"max_fee_per_gas_gwei":{"type":"number"},"max_priority_fee_wei":{"type":"integer"},"estimated_wait_blocks":{"type":"integer"},"max_priority_fee_per_gas_gwei":{"type":"number"}}}}},"base_fee_wei":{"type":"integer"},"base_fee_gwei":{"type":"number"},"congestion_level":{"type":"string"},"congestion_ratio":{"type":"number"},"blob_base_fee_wei":{"type":["integer","null"]},"blob_base_fee_gwei":{"type":["number","null"]}}}}}}},"responseSchema":{"type":"object","properties":{"network":{"type":"string"},"base_fee_gwei":{"type":"number"},"suggested_max_fee_gwei":{"type":"number"},"suggested_priority_fee_gwei":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/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_AHFUHg55kXn0tQyAdsWBs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time EIP-1559 gas fee estimates (base fee, max fee, priority fee) for Base Mainnet at a requested speed tier, payable via x402.","exampleAgentPrompt":"What's the current EIP-1559 gas estimate on Base Mainnet for a fast transaction — give me the base fee, max fee, and priority fee in gwei?","exampleUseCases":[{"title":"Pre-flight gas check for DeFi trade","prompt":"Before I submit this swap on Base, what are the current fast-speed gas fees — base fee, max fee, and priority fee — so I can set my transaction parameters correctly?"},{"title":"Cost-sensitive slow transaction batching","prompt":"I want to batch some low-urgency transactions on Base. What are the slow-speed gas fees right now so I can minimize costs?"},{"title":"Real-time gas monitoring for a trading bot","prompt":"Pull the instant-speed EIP-1559 gas estimates from Base Mainnet right now — I need the suggested max fee and priority fee in gwei to feed into my trading bot."}],"resultDescription":"Returns a JSON object with the network identifier ('base'), the current base fee in gwei, the suggested maxFeePerGas in gwei, and the suggested maxPriorityFeePerGas in gwei — all calibrated to the requested speed tier (slow, standard, fast, or instant).","failureModes":["Invalid speed enum value returns an error","x402 payment failure if USDC balance is insufficient or payment header is malformed","Network RPC unavailability causes stale or missing fee data","Rate limiting if payment is not properly attached"],"whenToPreferThis":"Use this endpoint when you need live, EIP-1559-compatible gas fee estimates specifically for Base Mainnet and want a speed-tiered recommendation (slow/standard/fast/instant) rather than computing fees from raw RPC data yourself. Prefer it over generic gas trackers when building agents or bots that transact on Base and need reliable, structured gwei values ready to plug into transaction parameters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-18T06:40:57.017Z","isFirstParty":false}