# Normalized Gas Price Oracle (lab.paidapis.net)

> Normalized Gas Price Oracle (lab.paidapis.net) is a paid API for AI agents from lab.paidapis.net, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns normalized, cross-chain gas price snapshots in Gwei, including block number and timestamp, for use in gas estimation and fee planning.

## Facts

- Endpoint: GET https://lab.paidapis.net/api/normalized-gas
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/normalized-gas-price-oracle-lab-paidapis-net-a161539e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tPc16iKZbmKBnvs6yKwJW

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 normalized-gas-price-oracle-lab-paidapis-net-a161539e
```

Example prompt: What's the current normalized gas price in Gwei on Base mainnet right now, including the latest block number and timestamp?

## When to prefer this

Choose this endpoint when you need a quick, normalized gas price reading in Gwei across EVM chains (especially Base mainnet) without setting up your own RPC infrastructure. It is ideal for agents that need to estimate transaction fees before execution, build gas dashboards, or trigger conditional logic based on current gas conditions. The $0.01 USDC per call pricing via x402 makes it suitable for occasional lookups or low-frequency monitoring.

## Known failure modes

- Payment not attached or invalid USDC payment returns HTTP 402
- Network or RPC errors fetching on-chain data may return 5xx errors
- Stale data if the underlying chain RPC is lagging — check 'dataAsOf' field
- Empty snapshots array if no chain data is currently available

## How this service works

Normalization: Ethereum and Base both return gas price and block data as raw hex (wei, Unix seconds) with no shared shape. This cleans both into one consistent schema per chain — decimal Gwei, ISO 8601 timestamps.

## Output

A JSON object containing a 'dataAsOf' timestamp and a 'snapshots' array, where each snapshot includes the chain name, current block number, gas price in Gwei (as a floating-point number), and the block timestamp. This provides a normalized, ready-to-use view of current gas conditions across one or more EVM chains.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {}
    }
   }
  },
  "output": {
   "properties": {
    "example": {
     "type": "object",
     "properties": {
      "dataAsOf": {
       "type": "string"
      },
      "snapshots": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "chain": {
          "type": "string"
         },
         "blockNumber": {
          "type": "integer"
         },
         "gasPriceGwei": {
          "type": "number"
         },
         "blockTimestamp": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/normalized-gas-price-oracle-lab-paidapis-net-a161539e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lab.paidapis.net](https://www.zero.xyz/host/lab.paidapis.net/llms.txt)
