# Web3 Tools CAIP ID Parser

> Web3 Tools CAIP ID Parser is a paid API for AI agents from web3-tools.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Parses and validates CAIP-2 chain IDs, CAIP-10 account IDs, and CAIP-19 asset IDs, returning namespace, reference, known chain name, and address details.

## Facts

- Endpoint: GET https://web3-tools.x402tookit.com/caip-parse?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web3-tools-caip-id-parser-85f674a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KsdT8iWJvVrzsTXd0U6w2

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 web3-tools-caip-id-parser-85f674a4
```

Example prompt: Can you parse the CAIP-10 account ID eip155:1:0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B and tell me the namespace, reference, chain name, and whether the address looks valid?

## When to prefer this

Use this endpoint when you need to programmatically parse or validate any CAIP-2, CAIP-10, or CAIP-19 identifier in a multi-chain context. Prefer it over ad-hoc string splitting when you need reliable namespace/reference extraction, human-readable chain names, or address validity checks — especially in cross-chain dApps, wallets, or agent workflows that handle identifiers from multiple blockchains.

## Known failure modes

- Malformed CAIP ID (missing colons, wrong delimiter) returns a non-passing verdict with reasons
- Unknown or unsupported namespace returns null chainName
- Unrecognized chain reference returns null numericChainId
- Address checksum failures reflected in verdict/reasons
- Missing required 'id' query parameter returns an error response

## How this service works

Parse CAIP-2 chain ids, CAIP-10 account ids and CAIP-19 asset ids: namespace, reference, known chain name, address check.

## Output

Returns a structured object with namespace, reference, chainId, numericChainId, chainName, kind (chain/account/asset), verdict, summary, reasons, and degraded/disclaimer flags. The 'kind' field distinguishes CAIP-2 (chain), CAIP-10 (account), or CAIP-19 (asset) identifiers. The 'verdict' field indicates validity, with 'reasons' listing any issues.

## 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",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "eip155:8453, eip155:1:0xAbc..., or eip155:1/erc20:0xA0b8..."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "kind": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "chainId": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "chainName": {
       "type": [
        "null",
        "string"
       ]
      },
      "namespace": {
       "type": [
        "null",
        "string"
       ]
      },
      "reference": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "numericChainId": {
       "type": [
        "null",
        "number"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web3-tools-caip-id-parser-85f674a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web3-tools.x402tookit.com](https://www.zero.xyz/host/web3-tools.x402tookit.com/llms.txt)
