Overview
What is Gas Oracle X402?
Gas Oracle X402 is a live gas price oracle that provides gwei tiers, USD cost estimates, and network congestion levels. It uses the x402 micropayment protocol (USDC on Base L2) for pay-per-call access — no API key, signup, or rate-limit walls. It is part of the klymax402 marketplace of 100 x402 micropayment APIs for AI agents.
How to use Gas Oracle X402?
Add the MCP server URL to your MCP client config (e.g., Claude Desktop, Cursor, ElizaOS) as https://gas-oracle.api.klymax402.com/mcp. For HTTP access, call GET /api/price with any x402‑aware client; the 402 response triggers automatic payment and retry. The primary tool is gas_get_current_price, which accepts an optional chain parameter (default: base).
Key features of Gas Oracle X402
- Live gas prices with slow/standard/fast/instant tiers
- USD cost estimates for ETH transfers and token swaps
- Network congestion level (low/medium/high)
- Pay‑per‑call via x402 (USDC on Base L2)
- No signup, no API key, no rate limits
- Part of the klymax402 marketplace of 100 APIs
Use cases of Gas Oracle X402
- Check current gas prices before submitting an on‑chain transaction
- Pick the right gas tier to balance speed and cost
- Avoid sending transactions during high‑congestion periods
- Automate gas‑aware decision‑making in AI agents
FAQ from Gas Oracle X402
What data does Gas Oracle X402 return?
It returns gas prices in gwei for four tiers (slow, standard, fast, instant), estimated USD cost for a simple ETH transfer and a token swap, and a congestion level (low/medium/high). The default chain is Base.
Do I need an API key or signup?
No. Access is via the x402 micropayment protocol — every call costs $0.001 (USDC on Base L2) and requires no prior registration or API key.
What are the runtime requirements?
You need an x402‑aware client (e.g., @x402/fetch, x402-agent-tools, ATXP) or an MCP‑compatible client. The server runs on Base L2, and payments use USDC.
Is this tool suitable for swap quotes or wallet balances?
No. Gas Oracle X402 is only for gas prices. For swap quotes use dex_get_swap_quote; for wallet balances use wallet_get_portfolio (both available in the klymax402 marketplace).
How is the API accessed and paid?
Two transports: MCP (via client config) or HTTP (direct curl). Payment is enforced via the x402 protocol — a 402 response triggers a signed payment challenge before the request proceeds.