# Base Gas Price

> Base Gas Price is a paid API for AI agents from earn-pulse.haiqingm58.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the current Base chain gas price in both wei and gwei via eth_gasPrice

## Facts

- Endpoint: GET https://earn-pulse.haiqingm58.workers.dev/gas
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-gas-price-5a09d4b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u6_Ro9II4GsdflWZWc947

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 base-gas-price-5a09d4b3
```

Example prompt: What's the current gas price on Base right now — give me both the wei and gwei values so I can decide whether to submit my transaction.

## When to prefer this

Choose this endpoint when you need a quick, no-parameter lookup of Base chain gas prices in both wei and gwei. Ideal for agents automating Base transactions who need to check fee conditions before submitting. Prefer this over general blockchain APIs if you specifically need Base L2 gas data at low cost ($0.005 per call).

## Known failure modes

- Base RPC node unavailable — returns 5xx error
- Payment not included or invalid — returns 402 Payment Required
- Rate limiting — returns 429 Too Many Requests
- Upstream eth_gasPrice call fails — may return stale or error response

## How this service works

Base chain eth_gasPrice in wei and gwei. No parameters.

## Output

Returns the current Base chain gas price as reported by eth_gasPrice, expressed in both wei (raw integer) and gwei (human-readable decimal). No parameters required.

## 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-gas-price-5a09d4b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from earn-pulse.haiqingm58.workers.dev](https://www.zero.xyz/host/earn-pulse.haiqingm58.workers.dev/llms.txt)
