# DESK LEAD x402 — Gas Price Oracle

> DESK LEAD x402 — Gas Price Oracle is a paid API for AI agents from desk-x402.desk-x402-gh.workers.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Returns current gas prices in gwei for BSC and/or Base blockchain networks

## Facts

- Endpoint: GET https://desk-x402.desk-x402-gh.workers.dev/v1/gas
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/desk-lead-x402-gas-price-oracle-0766039d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9sy7g20rBDlSK7dsP00I4

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 desk-lead-x402-gas-price-oracle-0766039d
```

Example prompt: What are the current gas prices on both Base and BSC right now in gwei? I need to decide which chain to use for a transaction.

## When to prefer this

Choose this endpoint when you need real-time gas price data for Base or BSC (or both) in a single micropayment-gated API call. It is ideal for agents that need to estimate transaction costs, compare chain fees, or dynamically route transactions to the cheapest available network. It supports the x402 micropayment protocol, making it suitable for autonomous agents with on-chain payment capabilities.

## Known failure modes

- Payment not provided or invalid x402 payment headers — returns 402 Payment Required
- Invalid `network` query parameter value — may return 400 or default behavior
- Network connectivity issues to BSC/Base RPC nodes — may return error or stale data
- Rate limiting if payment is not included — endpoint requires $0.1 USDC per call

## How this service works

Micropay research APIs (x402 v2 + bazaar). Free catalog at /.well-known/x402.json. Primary v2 accepts: Base eip155:8453 only. Legacy X-PAYMENT-TX still supports bsc|base via acceptsV1. Headers: X-PAYMENT-TX, X-PAYMENT-NETWORK, PAYMENT-SIGNATURE. No financial advice.

## Output

A JSON object with a boolean `ok` field, a `gas` object containing per-network gwei prices (e.g. `{bsc: {gwei: 1}, base: {gwei: 0.01}}`), and a `product` field set to `"gas"`. The response is fast and reflects real-time network conditions.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "network": {
       "enum": [
        "bsc",
        "base",
        "both"
       ],
       "type": "string",
       "description": "Which rail(s) to quote"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "gas": {
   "bsc": {
    "gwei": 1
   },
   "base": {
    "gwei": 0.01
   }
  },
  "product": "gas"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/desk-lead-x402-gas-price-oracle-0766039d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from desk-x402.desk-x402-gh.workers.dev](https://www.zero.xyz/host/desk-x402.desk-x402-gh.workers.dev/llms.txt)
