Loading capabilities…
Loading capability…
Return provider-native EVM gas pricing for a chain.
Both commands call the selected provider directly.
curl -X POST '/routes/2sio/crypto/gas-prices' \
-H 'content-type: application/json' \
-d '{"chain":"base"}'h402 call 'crypto/gas-prices' --provider '2sio' --method POST --json '{"chain":"base"}'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.
chainstringrequiredEVM chain supported by the 2s.io gas oracle.
{
"chain": "base"
}{ "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" } }
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.