← Back to directory

Use when an agent must price, time or route a transaction. Input: optional chain...

https://1gateway.dev/v1/onchain/gas

Overview

Use when an agent must price, time or route a transaction. Input: optional chain (base default, ethereum, arbitrum, monad, all). Output: JSON base fee, priority tiers (last 20 blocks), suggested maxFeePerGas, block fullness, typical cost of transfer, approve, DEX swap, mint, deploy in gas token (ETH, MON) and USD (Base adds L1 data fee); chain=all adds a compare table and the cheapest chain per action by USD. Example: ?chain=all

Protocol x402
Price $0.0020
Payment Asset USD Coin
Payment Network eip155:8453
Category crypto/defi
Provider 1gateway
Source bazaar
Indexed 2026-11-07 06:03:32

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "chain": "all" }, "type": "http" }

Output Schema

{ "example": { "baseFeeGwei": 0.005, "block": { "gasUsedPct": 11.7, "number": 52774276, "timestamp": "2026-10-18T15:38:19.000Z" }, "chain": "base", "chainId": 8453, "costs": [ { "action": "eth_transfer", "l1DataFeeEth": 7.056e-10, "l2FeeEth": 1.26e-7, "label": "ETH transfer", "totalEth": 1.267e-7, "totalUsd": 0.0003011, "typicalGas": 21000 } ], "ethUsd": 2376, "nativeSymbol": "ETH", "nextBaseFeeGwei": 0.005, "note": "Costs use the next base fee + the standard (median 50th-percentile) tip over the last 20 blocks, plus the L1 data fee upper bound from the GasPriceOracle. Gas …", "priorityFeeGwei": { "fast": 0.0022, "node": 0.001, "slow": 0.0005001, "standard": 0.001 }, "recentBlocks": { "avgGasUsedPct": 8.5, "count": 20 }, "rpc": { "kind": "public", "source": "base-rpc.publicnode.com" }, "suggested": { "fast": { "maxFeePerGasGwei": 0.0122, "maxPriorityFeePerGasGwei": 0.0022 }, "slow": { "maxFeePerGasGwei": 0.0105, "maxPriorityFeePerGasGwei": 0.0005001 }, "standard": { "maxFeePerGasGwei": 0.011, "maxPriorityFeePerGasGwei": 0.001 } } }, "type": "json" }