# x402.shizu.me Gas Price Oracle

> x402.shizu.me Gas Price Oracle is a paid API for AI agents from x402.shizu.me, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns real-time gas prices (legacy, EIP-1559 base fee, priority fee in gwei) and latest block number for Base or Ethereum mainnet

## Facts

- Endpoint: GET https://x402.shizu.me/gas
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-shizu-me-gas-price-oracle-45ed78be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZFQqfEpNkC8POmkT2bYIg

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 x402-shizu-me-gas-price-oracle-45ed78be
```

Example prompt: What are the current gas prices on Base mainnet right now — give me the base fee, priority fee, and latest block number so I can decide whether to submit my transaction.

## When to prefer this

Use this endpoint when you need real-time gas fee data for Base or Ethereum mainnet to time transactions, estimate costs, or detect fee spikes. Prefer this over general blockchain explorers when you need clean, structured gwei values (legacy, base fee, priority fee) and block number in a single lightweight call.

## Known failure modes

- Unsupported chain value returns error — only 'base' or 'ethereum' accepted
- RPC node temporarily unavailable causing fetch failure
- Payment of 0.003 USDC not fulfilled, returning 402 Payment Required
- Stale data if public RPC is lagging behind chain tip

## How this service works

Current gas prices for Base or Ethereum mainnet: legacy gas price, EIP-1559 base fee and suggested priority fee (all gwei), plus the latest block number. Query: chain (base | ethereum, default base). Real-time from public RPC. Use to time on-chain transactions, estimate costs, and monitor fee spikes.

## Output

Returns the current legacy gas price, EIP-1559 base fee, and suggested priority fee all in gwei, plus the latest block number for the requested chain (Base or Ethereum mainnet).

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "method"
   ],
   "properties": {
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "block": 27100000,
  "chain": "base",
  "base_fee_gwei": 0.008,
  "gas_price_gwei": 0.012,
  "priority_fee_gwei": 0.001
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-shizu-me-gas-price-oracle-45ed78be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.shizu.me](https://www.zero.xyz/host/x402.shizu.me/llms.txt)
