# 2s.io EVM Gas Oracle

> 2s.io EVM Gas Oracle is a paid API for AI agents from 2s.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns real-time EVM gas price tiers (slow/standard/fast) derived from recent block priority-fee percentiles plus a transfer cost estimate, for Ethereum, Base, Polygon, Arbitrum, or Optimism.

## Facts

- Endpoint: GET https://2s.io/api/crypto/gas-oracle
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-a6a8de01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_na7kbEGYxmsEjxHh9nAVe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 2s-io-a6a8de01
```

Example prompt: What are the current slow, standard, and fast gas prices on Ethereum right now, and how much would a basic ETH transfer cost?

## When to prefer this

Use this endpoint when you need real-time, multi-tier EVM gas price data (slow/standard/fast tiers) with ~5s freshness across Base, Ethereum, Polygon, Arbitrum, or Optimism. Prefer this over static estimates or training-data-based answers when a live transaction is being prepared and accurate fee estimation matters.

## Known failure modes

- Unsupported chain value returns 400 or validation error
- Network congestion or upstream RPC unavailability may return 5xx
- Missing required 'chain' query parameter causes request rejection
- Rate limiting if usage exceeds quota without valid x402 payment

## How this service works

Live EVM gas oracle. Returns latest block baseFeePerGas + slow/standard/fast tiers derived from priority-fee percentiles (p25/p50/p75) over the trailing 4 blocks, plus a 21,000-gas transfer cost estimate in the chain native unit. Chains: base, ethereum, polygon, arbitrum, optimism. Real-time post-training data, ~5s freshness.

## Output

Returns the latest block baseFeePerGas, three gas price tiers (slow/standard/fast) derived from priority-fee percentiles (p25/p50/p75) over the trailing 4 blocks, and a 21,000-gas transfer cost estimate denominated in the chain's native unit. Data is approximately 5 seconds fresh.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "base"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "polygon",
        "arbitrum",
        "optimism"
       ],
       "type": "string",
       "description": "EVM chain to query: base | ethereum | polygon | arbitrum | optimism."
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-a6a8de01/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
