# x402 Bazaar Base Gas Oracle

> x402 Bazaar Base Gas Oracle is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns live Base network gas fees (baseFee, maxPriorityFee) and slow/normal/fast tiered suggestions in Gwei from the Base RPC

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/gas-oracle
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-base-gas-oracle-3180f292
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_StCcdn20zM5ixuZbRqJB9

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-bazaar-base-gas-oracle-3180f292 -d '<json body>'
```

Example prompt: What are the current gas fees on Base right now — give me the slow, normal, and fast suggestions in Gwei so I can decide when to submit my transaction.

## When to prefer this

Use this endpoint when an AI agent needs real-time gas fee data specifically for the Base L2 network (eip155:8453) and can handle x402 micropayment flows. Ideal for agents that need to cost-estimate, time, or dynamically price Base transactions without maintaining their own RPC connection.

## Known failure modes

- 402 Payment Required — endpoint requires x402 USDC payment on Base before data is returned; pay and retry
- 503/timeout — Base RPC may be temporarily unreachable, resulting in failed gas oracle fetch
- Invalid or expired payment header — payment rejected, returns 402 again
- Rate limit or relay error from relai.fi intermediary

## How this service works

Returns current Base gas fees (baseFee, maxPriorityFee) and three tiered suggestions (slow, normal, fast) in Gwei, derived live from the Base RPC. Built for agents that time or cost-estimate transactions. Paid via x402: $0.005 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

Returns a JSON object with the current Base network baseFee and maxPriorityFee in Gwei, plus three tiered gas price suggestions (slow, normal, fast) derived live from the Base RPC, suitable for transaction cost estimation and timing decisions.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-bazaar-base-gas-oracle-3180f292/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
