# api2ls.com EVM Gas Pricing

> api2ls.com EVM Gas Pricing is a paid API for AI agents from api2ls.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns live EVM gas prices with EIP-1559 breakdown (base fee, priority fee, max fee) and USD cost estimates for one or more EVM chains

## Facts

- Endpoint: GET https://api2ls.com/api/gas
- 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/api2ls-com-evm-gas-pricing-8238cf41
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3akEkYuCjoSbUYEaDDbT2

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 api2ls-com-evm-gas-pricing-8238cf41
```

Example prompt: What are the current gas prices on Ethereum and Arbitrum right now — give me the EIP-1559 breakdown with base fee, priority fee, and USD cost estimates for both chains.

## When to prefer this

Use this endpoint when you need real-time EVM gas prices with EIP-1559 detail (base fee + priority fee + max fee) and USD cost context, especially when comparing across multiple chains (Base, Ethereum, Optimism, Arbitrum, Polygon) in a single call. Prefer this over generic blockchain explorers when you need structured, machine-readable gas data with USD estimates ready for agent decision-making.

## Known failure modes

- Unsupported chain name returns an error or empty result
- More than 5 chains in the 'chains' parameter may be rejected
- Upstream RPC node unavailability may cause stale or failed responses
- Network timeout if EVM node is slow to respond
- Invalid query parameter format may return a 400-level error

## How this service works

Get live EVM gas pricing with EIP-1559 breakdown and USD cost estimates

## Output

Returns a JSON object with success status, chain name, gas price in Gwei, EIP-1559 breakdown (baseFeeGwei, priorityFeeGwei, maxFeeGwei), native token USD price, USD cost estimates for common transaction types, and a timestamp. When multiple chains are queried, returns an array of such objects.

## 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": {
      "chain": {
       "type": "string",
       "description": "EVM network: base (default), ethereum, optimism, arbitrum, or polygon"
      },
      "chains": {
       "type": "string",
       "description": "Comma-separated list of chains (max 5) to compare in one call"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "chain",
      "gasPriceGwei"
     ],
     "properties": {
      "asOf": {
       "type": "string"
      },
      "chain": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "nativeUsd": {
       "type": "number"
      },
      "maxFeeGwei": {
       "type": "number"
      },
      "baseFeeGwei": {
       "type": "number"
      },
      "nativeToken": {
       "type": "string"
      },
      "gasPriceGwei": {
       "type": "number"
      },
      "costEstimates": {
       "type": "object"
      },
      "priorityFeeGwei": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api2ls-com-evm-gas-pricing-8238cf41/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api2ls.com](https://www.zero.xyz/host/api2ls.com/llms.txt)
