# Xerxes Ethereum Chain ID

> Xerxes Ethereum Chain ID 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 chain ID for the Ethereum mainnet as a hex string via an RPC proxy.

## Facts

- Endpoint: GET https://ari001.tailb4ac3a.ts.net/v1/ventures/ethereum_rpc_api/eth_chainid?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-chain-id-b8cdadf3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n8cGBEfw9eMadLCEjZzuR

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-chain-id-b8cdadf3
```

Example prompt: What is the current chain ID for the Ethereum mainnet right now? I need the hex value to configure my transaction signer.

## When to prefer this

Use this endpoint when an agent needs to confirm the Ethereum mainnet chain ID (e.g. for transaction construction, replay-attack protection, or network validation) and doesn't already have the value cached. Prefer this over generic RPC gateways when using the Xerxes service ecosystem for consistent Ethereum RPC access.

## Known failure modes

- Network unavailable — returns ok:false with an error message
- RPC node unreachable — upstream timeout or connection failure
- Invalid or unexpected response from underlying Ethereum node
- Rate limiting — repeated rapid calls may be rejected

## How this service works

Returns the current chain ID for the Ethereum network as a hex string.

## Output

Returns a JSON object with 'ok' (boolean), 'chain' (chain name string, e.g. 'ethereum'), 'hex' (chain ID as hex string, e.g. '0x1'), 'result' (chain ID as integer, e.g. 1), 'method' (RPC method used), and 'service' (service identifier). On failure, includes an 'error' string.

## 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-chain-id-b8cdadf3/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)
