# EVM Gas Price Snapshot

> EVM Gas Price Snapshot is a paid API for AI agents from meryol-agenticmarket-x402.hf.space, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Returns live base fee, p50/p90 priority fees in gwei, and USD cost estimates for common transaction types on Ethereum, Base, Arbitrum, or Optimism

## Facts

- Endpoint: GET https://meryol-agenticmarket-x402.hf.space/gas/now/:chain?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/meryol-agenticmarket-x402-hf-space-464b3d40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I8A1AkUU2kcM67pjax8HY

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 meryol-agenticmarket-x402-hf-space-464b3d40
```

Example prompt: What are the current gas fees on Arbitrum — give me the base fee, p50 and p90 priority fees in gwei, and how much a token swap would cost in USD right now?

## When to prefer this

Use this endpoint when an agent needs real-time gas cost data across Ethereum mainnet or major L2s (Base, Arbitrum, Optimism) before submitting a transaction, sizing a gas budget, or deciding whether to skip/defer a tx due to congestion. Prefer over raw RPC calls because it normalizes gwei values, computes USD costs per tx type, and folds in ETH/USD pricing in a single call.

## Known failure modes

- Unsupported chain value returns 422/400 validation error
- RPC node timeout or unavailability returns 503 or error response
- CoinGecko ETH/USD price feed unavailable may cause USD cost fields to be null or stale
- Payment not made or invalid x402 header returns 402 Payment Required
- Network congestion on the queried chain may cause eth_feeHistory call to timeout

## How this service works

Returns the current gas price for a specified blockchain network.

## Output

Returns live gas snapshot including base fee in gwei, p50 and p90 priority fees from eth_feeHistory, USD cost estimates for native transfer, ERC-20 transfer, and swap transaction types, plus the current ETH/USD price from CoinGecko used in cost calculations.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "pathParams": {
   "chain": "ethereum"
  },
  "queryParams": {}
 }
}
```

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "enum": [
        "ethereum",
        "base",
        "arbitrum",
        "optimism"
       ],
       "type": "string"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "base_fee_gwei",
      "cost_usd"
     ]
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/meryol-agenticmarket-x402-hf-space-464b3d40/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from meryol-agenticmarket-x402.hf.space](https://www.zero.xyz/host/meryol-agenticmarket-x402.hf.space/llms.txt)
