# Ethereum Mainnet Gas Price

> Ethereum Mainnet Gas Price is a paid API for AI agents from x402-seller-0ay3.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns the current gas price on Ethereum mainnet in both wei and gwei, fetched live from a public RPC endpoint with no API key required.

## Facts

- Endpoint: GET https://x402-seller-0ay3.onrender.com/api/gas/ethereum
- 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/ethereum-mainnet-gas-price-d6b26b69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fAW2V0nKgLQD_jo_WrhC1

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 ethereum-mainnet-gas-price-d6b26b69
```

Example prompt: What's the current gas price on Ethereum mainnet right now, in gwei?

## When to prefer this

Choose this endpoint when you need a simple, no-configuration, no-API-key live gas price read from Ethereum mainnet. It is ideal for lightweight agents that need a quick gwei value without setting up Web3 infrastructure or paying for a premium gas oracle. It is not suitable when you need EIP-1559 base fee + priority fee breakdown, historical gas data, or gas price predictions.

## Known failure modes

- Public RPC endpoint may be rate-limited or temporarily unavailable, resulting in a 5xx error
- Stale data if the RPC node is lagging behind the chain tip
- No fallback or aggregation — single RPC source means no redundancy
- Cold-start latency on Render free tier may cause initial request to be slow

## How this service works

Current gas price on Ethereum mainnet, read live via a public RPC endpoint — no API key, no aggregator. No parameters.

## Output

A JSON object containing the chain name ('ethereum'), the gas price in wei as a string, the gas price in gwei as a number, and the ISO 8601 timestamp of when the data was fetched from the RPC endpoint.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "ethereum",
  "fetched_at": "2026-09-01T12:00:00.000Z",
  "gas_price_wei": "8000000000",
  "gas_price_gwei": 8
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ethereum-mainnet-gas-price-d6b26b69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-0ay3.onrender.com](https://www.zero.xyz/host/x402-seller-0ay3.onrender.com/llms.txt)
