# Ethereum Mainnet Gas Price API

> Ethereum Mainnet Gas Price API is a paid API for AI agents from hlrisk.paidapis.net, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-30).

Returns the current Ethereum mainnet gas price in Gwei

## Facts

- Endpoint: GET https://hlrisk.paidapis.net/api/gas-price?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ethereum-mainnet-gas-price-api-099ad1d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QCvzrkUHytG5uh73lI-Gi

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-api-099ad1d0
```

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

## When to prefer this

Choose this endpoint when you need a simple, real-time Ethereum mainnet gas price in Gwei without building your own Ethereum node connection or managing RPC infrastructure. It is especially useful for agents that need to gate transactions on current fee levels, estimate costs, or monitor gas trends as part of a DeFi or on-chain automation workflow. The pay-per-call x402 micropayment model makes it suitable for low-frequency lookups without subscription overhead.

## Known failure modes

- Network or upstream RPC node unavailability returning a 5xx error
- Stale data if the upstream Ethereum node is lagging behind the chain tip
- Payment failure if the x402 USDC micropayment of $0.005 is not correctly provided
- Rate limiting or authentication errors if payment is malformed

## How this service works

Current Ethereum mainnet gas price, in Gwei

## Output

Returns the current Ethereum mainnet gas price expressed in Gwei, reflecting real-time network congestion and demand for block space.

## 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/ethereum-mainnet-gas-price-api-099ad1d0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hlrisk.paidapis.net](https://www.zero.xyz/host/hlrisk.paidapis.net/llms.txt)
