Catalog
CryptoPOSTlive

EVM gas price oracle

Return EIP-1559 gas prices, congestion, and timing recommendations for an EVM chain.

$0.001
per call
Success
100%
p50 latency
1.33s
p95 latency
9.00s
Calls (30d)
6

Provider contract

Call path
/routes/
2siodefault
/crypto/gas-prices
Method
POST
Selected provider
2siodefault
Provider price
$0.001
Settlement
Base USDC · x402 · 5% h402 fee

Quickstart

Both commands call the selected provider directly.

cURL
curl -X POST '/routes/2sio/crypto/gas-prices' \
  -H 'content-type: application/json' \
  -d '{}'
CLI
h402 call 'crypto/gas-prices' --provider '2sio' --method POST --json '{}'

Parameters & live test

pays real USDC
2siodefault$0.0010/call

Fill the request fields, quote the exact per-call total, then choose x402 or eligible bonus credit explicitly before sending. Only the selected provider's listed parameters are accepted.

chainstringoptional

EVM chain such as ethereum, base, arbitrum, polygon, or optimism.

e.g.
POST/routes/2sio/crypto/gas-prices
Request body
{}

ResponseExample response
{
  "data": {
    "data": {
      "ok": true,
      "items": [
        {
          "chain": {
            "key": "base",
            "name": "Base",
            "chainId": 8453,
            "nativeSymbol": "ETH"
          },
          "block": {
            "number": 48971725,
            "baseFeePerGasWei": "5000000",
            "baseFeePerGasGwei": 0.005,
            "timestamp": 1784732797000
          },
          "tiers": {
            "slow": {
              "priorityFeePerGasGwei": 0.0008,
              "maxFeePerGasGwei": 0.0058,
              "priorityFeePerGasWei": "812500",
              "maxFeePerGasWei": "5812500",
              "transferNativeCost": 1.2e-7
            },
            "standard": {
              "priorityFeePerGasGwei": 0.0014,
              "maxFeePerGasGwei": 0.0064,
              "priorityFeePerGasWei": "1433437",
              "maxFeePerGasWei": "6433437",
              "transferNativeCost": 1.3e-7
            },
            "fast": {
              "priorityFeePerGasGwei": 0.0061,
              "maxFeePerGasGwei": 0.0111,
              "priorityFeePerGasWei": "6117072",
              "maxFeePerGasWei": "11117072",
              "transferNativeCost": 2.3e-7
            }
          },
          "source": {
            "provider": "public-evm-rpc",
            "rpcEndpoint": "https://base-rpc.publicnode.com",
            "method": "eth_getBlockByNumber + eth_feeHistory",
            "license": "public RPC; no terms beyond fair-use rate limits"
          }
        }
      ],
      "total": 1,
      "source": {
        "provider": "EVM JSON-RPC (eth_feeHistory)",
        "url": "https://2s.io",
        "license": "No upstream license — computed by 2s.io from public RPC"
      }
    },
    "meta": {
      "endpoint": "crypto.gas-oracle",
      "version": null,
      "caller": "x402",
      "cost": {
        "usd": 0.001
      },
      "settlement": {
        "txHash": "0x7764310621a7f899c935168e5ea6cda422ef24401cf00030f35a1f9e35f73cf3",
        "network": "eip155:8453",
        "success": true
      }
    }
  },
  "h402": {
    "routeId": "crypto/gas-prices",
    "provider": "2sio",
    "selectedCandidateId": "crypto/gas-prices/2sio",
    "routing": "manual",
    "paidBy": "x402-exact"
  }
}

Providers

Choose a provider for this task. The catalog recommends the current default from quality, reliability, and price; your selected provider stays pinned. Listed prices are provider prices; settlement adds a 5% h402 fee.

2siodefaultcheapest
x402
100
Success
100%
p50
1.22s
Calls
3
100%
$0.001$0.0010/call
onchainexpat
x402
100
Success
100%
p50
4.98s
Calls
3
100%
$0.01$0.010/call
Last successful call: 27d ago· Aggregated by h402 — not the source provider