# Base Mainnet Gas Price API

> Base Mainnet Gas Price API is a paid API for AI agents from x402-data-api.sigrunner.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Returns current Base mainnet gas price in wei/gwei, EIP-1559 base fee and priority fee, and gas price in USD

## Facts

- Endpoint: GET https://x402-data-api.sigrunner.workers.dev/chain/gas-price
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-mainnet-gas-price-api-e7d4487c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FEcVFGf-OtYWXB8yS5LFY

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-mainnet-gas-price-api-e7d4487c
```

Example prompt: What are the current gas fees on Base mainnet right now — give me the base fee, priority fee in gwei, and what that works out to in USD?

## When to prefer this

Use this endpoint when you need real-time Base mainnet gas prices with EIP-1559 breakdown (base fee + priority fee) and USD cost conversion in a single call, especially for transaction cost estimation or gas monitoring on the Base L2 network

## Known failure modes

- Base RPC node unavailable — may return 5xx error
- Stale data if underlying node is syncing
- USDC payment not processed — returns 402 Payment Required
- Rate limit exceeded for the payment tier

## How this service works

Current Base mainnet gas price (wei/gwei), EIP-1559 base_fee_gwei/priority_fee_gwei, and gas_price_usd.

## Output

Returns current Base mainnet gas price as wei and gwei values, plus EIP-1559 breakdown with base_fee_gwei and priority_fee_gwei, and the gas_price_usd conversion for cost estimation

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "base_fee_gwei": 0.018,
  "gas_price_usd": 3.93e-8,
  "gas_price_wei": "21284349",
  "gas_price_gwei": 0.021284349,
  "priority_fee_gwei": 0.0032
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-mainnet-gas-price-api-e7d4487c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.sigrunner.workers.dev](https://www.zero.xyz/host/x402-data-api.sigrunner.workers.dev/llms.txt)
