# Base Gas Oracle

> Base Gas Oracle is a paid API for AI agents from seeker.4itools.store, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-15).

Returns current Base chain gas price, base fee, priority fee, and estimated ETH cost for common transaction types (plain transfer, ERC-20 approve, swap).

## Facts

- Endpoint: GET https://seeker.4itools.store/paid/chain.gas?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-gas-oracle-6bf5ba0e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__jAFYG9sGD5HdQX4_ilvl

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 base-gas-oracle-6bf5ba0e
```

Example prompt: Before I send this swap on Base, can you check the current gas price, base fee, and priority fee, and tell me roughly how much ETH it'll cost for the swap versus a plain transfer?

## When to prefer this

Use this endpoint when an agent is about to send, route, or cost-estimate any transaction on the Base chain and needs current gas data without manually querying an RPC node. It is especially useful when the agent needs quick cost estimates for common transaction types (transfer, approve, swap) in one call, avoiding the need to calculate gas units separately.

## Known failure modes

- Base RPC node unavailable — may return an error or stale data
- Network congestion causing delayed gas data
- Invalid format query parameter returns a 400 or unexpected response
- Payment not processed (x402 micropayment failure) — request rejected before gas data is returned

## How this service works

Base gas oracle. Use before sending or routing a transaction: returns current gas price, base fee, priority fee and estimated ETH cost for a plain transfer, an ERC-20 approve and a swap.

## Output

A JSON object containing the current gas price, base fee, priority fee on the Base chain, and pre-calculated estimated ETH costs for three common transaction types: a plain ETH transfer, an ERC-20 approve, and a swap.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "format": {
       "enum": [
        "json"
       ],
       "type": "string"
      },
      "chainId": {
       "type": "integer",
       "description": "Chain ID to price gas for; currently only 8453 (Base mainnet)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "properties": {
   "task": {
    "type": "string"
   },
   "chainId": {
    "type": "integer"
   },
   "checkedAt": {
    "type": "string"
   },
   "estimates": {
    "type": "object",
    "properties": {
     "swap": {
      "type": "object",
      "properties": {
       "eth": {
        "type": "number"
       },
       "gasLimit": {
        "type": "integer"
       }
      }
     },
     "transfer": {
      "type": "object",
      "properties": {
       "eth": {
        "type": "number"
       },
       "gasLimit": {
        "type": "integer"
       }
      }
     },
     "erc20Approve": {
      "type": "object",
      "properties": {
       "eth": {
        "type": "number"
       },
       "gasLimit": {
        "type": "integer"
       }
      }
     }
    }
   },
   "baseFeeGwei": {
    "type": "number"
   },
   "blockNumber": {
    "type": "integer"
   },
   "gasPriceGwei": {
    "type": "number"
   },
   "priorityFeeGwei": {
    "type": "number"
   }
  }
 },
 "example": {
  "task": "chain.gas",
  "chainId": 8453,
  "checkedAt": "2026-11-01T12:00:00.000Z",
  "estimates": {
   "swap": {
    "eth": 0.0000033,
    "gasLimit": 300000
   },
   "transfer": {
    "eth": 2.3e-7,
    "gasLimit": 21000
   },
   "erc20Approve": {
    "eth": 6.1e-7,
    "gasLimit": 55000
   }
  },
  "baseFeeGwei": 0.01,
  "blockNumber": 12345678,
  "gasPriceGwei": 0.011,
  "priorityFeeGwei": 0.001
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-gas-oracle-6bf5ba0e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from seeker.4itools.store](https://www.zero.xyz/host/seeker.4itools.store/llms.txt)
