# Base Network Gas Price Oracle

> Base Network Gas Price Oracle is a paid API for AI agents from gateway.spraay.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns current gas prices on the Base blockchain network

## Facts

- Endpoint: GET https://gateway.spraay.app/api/v1/oracle/gas
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway-spraay-app-7adabaaf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ki_0lfuujP0FJh_SeM1Ke

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 gateway-spraay-app-7adabaaf
```

Example prompt: What are the current gas prices on Base right now? I want to know if it's a good time to submit my transaction.

## When to prefer this

Use this endpoint when you need real-time gas price data specifically for the Base (Coinbase L2) network, for example before submitting a transaction, estimating fees, or deciding whether to wait for lower congestion. Prefer this over Ethereum mainnet gas oracles when operating on Base.

## Known failure modes

- Base RPC node unavailable — upstream error fetching on-chain gas data
- Payment not processed — x402 payment of $0.005 USDC required
- Rate limit or invalid request format

## How this service works

Gas prices on Base.

## Output

Returns a gas object containing current gas price data for the Base blockchain network, including fee levels useful for estimating transaction costs.

## Example request

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

## 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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "gas": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-spraay-app-7adabaaf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.spraay.app](https://www.zero.xyz/host/gateway.spraay.app/llms.txt)
