cipher-gas-oracle — x402-gated multi-chain gas oracle

Gas prices across 4 chains, $0.005 per call.

One HTTP call, one JSON response: live slow/standard/fast gwei for Base, Ethereum, Arbitrum, and Optimism. Priced at $0.005 USDC on Base via the x402 protocol. No login, no subscription — your AI agent auto-pays and gets a typed quote for every chain it is about to send on.

Endpoint

GET https://cipher-gas-oracle.vercel.app/api/gas/quote
GET https://cipher-gas-oracle.vercel.app/api/gas/quote?chains=base,arbitrum

# Unpaid: HTTP 402 + accept-list JSON ($0.005 USDC on Base)
# Paid  : HTTP 200 + { fetchedAt, chains: Quote[] }
#   each Quote = {
#     chain, chainId, gasPriceWei, gasPriceGwei,
#     maxPriorityFeeWei, maxPriorityFeeGwei, baseFeeWei, baseFeeGwei,
#     estimates: { slow, standard, fast }   // gwei
#     typicalTransferCostWei, typicalTransferCostEth
#   }

Why

Agents that send transactions across multiple L2s need a single consolidated gas reading to decide where and when to route. Instead of the agent opening 4 RPC connections itself (and needing 4 provider keys), it pays $0.005 once and gets all four in a single, normalized response.

Chains

  • base — chainId 8453 via mainnet.base.org
  • ethereum — chainId 1 via Alchemy (public fallback cloudflare-eth.com)
  • arbitrum — chainId 42161 via arb1.arbitrum.io/rpc
  • optimism — chainId 10 via mainnet.optimism.io

Free resources

Payout

x402 payout wallet (Base / USDC): 0xa0630fAD18C732e94D56d2D5F630963eb8fB9640