# Gas Price Comparator for EVM Chains

> Gas Price Comparator for EVM Chains is a paid API for AI agents from gas-price-comparator.pdfextractapi.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Fetches and compares live gas prices and estimated transfer costs across major EVM-compatible blockchains in a single call.

## Facts

- Endpoint: POST https://gas-price-comparator.pdfextractapi.workers.dev/compare
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gas-price-comparator-for-evm-chains-715a2c17
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZwPXXT0gyM5qezPV6WlB6

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 gas-price-comparator-for-evm-chains-715a2c17 -d '<json body>'
```

Example prompt: Can you compare live gas prices across all major EVM chains right now and tell me which one has the cheapest estimated transfer cost?

## When to prefer this

Use this endpoint when you need a simultaneous, real-time gas price comparison across multiple EVM-compatible chains in a single API call, especially when optimizing for transaction cost efficiency across Layer 1 and Layer 2 networks. Prefer this over querying individual chain RPC nodes separately when you want a normalized, aggregated view without managing multiple connections.

## Known failure modes

- Unsupported chain key provided — endpoint may ignore or return error for unrecognized chain identifiers
- Upstream RPC node unavailability — gas data for some chains may be stale or missing
- Rate limiting or payment failure — x402 payment not processed, request rejected
- Empty chains array — behavior may vary (all chains or error)
- Network timeout — real-time price fetch from multiple chains may occasionally time out

## How this service works

Compare live gas prices and estimated transfer cost across major EVM chains.

## Output

Returns a comparison of live gas prices and estimated transfer costs for each requested EVM chain (or all supported chains if none specified), allowing the caller to identify the cheapest or most efficient chain for a transaction.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {
      "chains": {
       "type": "array",
       "items": {
        "type": "string"
       },
       "description": "Optional subset of chain keys. Omit for all supported chains."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "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/gas-price-comparator-for-evm-chains-715a2c17/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gas-price-comparator.pdfextractapi.workers.dev](https://www.zero.xyz/host/gas-price-comparator.pdfextractapi.workers.dev/llms.txt)
