# Xerxes Ethereum Gas Price

> Xerxes Ethereum Gas Price is a paid API for AI agents from ari001.tailb4ac3a.ts.net, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-23).

Returns the current gas price on Ethereum mainnet as a hex string and integer value.

## Facts

- Endpoint: GET https://ari001.tailb4ac3a.ts.net/v1/ventures/ethereum_rpc_api/ethereum_gas_price?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xerxes-ethereum-gas-price-275ea59a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JyNG4KU08vlbt7SHlYano

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 xerxes-ethereum-gas-price-275ea59a
```

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

## When to prefer this

Use this endpoint when you need a quick, low-latency lookup of the current Ethereum mainnet gas price without running your own node. Ideal for pre-flight cost estimation before submitting transactions, gas monitoring workflows, or building fee calculators. The x402 micropayment model ($0.002/call) makes it cost-effective for sporadic queries without a subscription.

## Known failure modes

- RPC node unavailable — ok: false with error message
- Network timeout returning null hex and error
- Invalid or unreachable Ethereum node returning error string
- Rate limiting or payment failure resulting in 402 response

## How this service works

Returns the current gas price on Ethereum mainnet.

## Output

Returns a JSON object with 'ok' (boolean success flag), 'result' (gas price as integer in wei), 'hex' (gas price as hex string), 'chain' (network identifier), 'method' (RPC method used), and 'service' (service name). On failure, returns 'ok: false' with an 'error' field.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "service"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "hex": {
       "type": [
        "string",
        "null"
       ]
      },
      "chain": {
       "type": "string"
      },
      "error": {
       "type": "string",
       "description": "present when ok is false"
      },
      "method": {
       "type": "string"
      },
      "result": {
       "type": "integer"
      },
      "service": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xerxes-ethereum-gas-price-275ea59a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ari001.tailb4ac3a.ts.net](https://www.zero.xyz/host/ari001.tailb4ac3a.ts.net/llms.txt)
