# Axiom Works Chain ID Lookup

> Axiom Works Chain ID Lookup is a paid API for AI agents from api.axiomworks.co.uk, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-12).

Returns the EIP-155 chain ID for a named EVM network by querying eth_chainId and net_version directly from the RPC

## Facts

- Endpoint: GET https://api.axiomworks.co.uk/chain/chain-id?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/axiom-works-chain-id-lookup-52f70b81
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JNpQzJKN9a2Y6fW7lik9b

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 axiom-works-chain-id-lookup-52f70b81
```

Example prompt: What is the EIP-155 chain ID for the Base network? I want to confirm I'm signing on the right chain before submitting a transaction.

## When to prefer this

Use this endpoint when you need to programmatically confirm the EIP-155 chain ID of a named EVM network before signing or broadcasting a transaction, or when building agents that must validate the target network identity. It is cheaper and faster than calling an RPC node directly, and returns structured output including CAIP-2 format and a confirmation boolean. Prefer this over manual RPC calls or hardcoded chain ID tables when you want live verification from the actual RPC.

## Known failure modes

- Unsupported chain name returns a 400 or validation error — only base, ethereum, arbitrum, optimism, polygon are accepted
- RPC endpoint unavailable may result in a timeout or 5xx error
- Payment not provided or invalid x402 payment header results in a 402 Payment Required response
- matches_expected may return false if the RPC node is misconfigured or on the wrong network

## How this service works

EIP-155 chain ID straight from the RPC (eth_chainId + net_version) — confirm which network you are about to sign on. Example: {chain:"base"} → {chain_id:8453}. $0.001.

## Output

A JSON object containing the numeric chain ID (e.g. 8453 for Base), its hex representation (e.g. 0x2105), the CAIP-2 identifier (e.g. eip155:8453), the chain name, the RPC source method used (eth_chainId), and a boolean confirming whether the returned ID matches the expected value for the requested network.

## 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": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string",
       "description": "EVM chain (default base)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "hex": {
       "type": "string"
      },
      "chain_id": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "0x2105",
  "caip2": "eip155:8453",
  "chain": "base",
  "source": "eth_chainId",
  "chain_id": 8453,
  "matches_expected": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/axiom-works-chain-id-lookup-52f70b81/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.axiomworks.co.uk](https://www.zero.xyz/host/api.axiomworks.co.uk/llms.txt)
