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 viamainnet.base.orgethereum— chainId 1 via Alchemy (public fallbackcloudflare-eth.com)arbitrum— chainId 42161 viaarb1.arbitrum.io/rpcoptimism— chainId 10 viamainnet.optimism.io
Free resources
- Playbook: cryptomotifs/cipher-starter
- More x402 endpoints: cipher-x402.vercel.app
Payout
x402 payout wallet (Base / USDC): 0xa0630fAD18C732e94D56d2D5F630963eb8fB9640