{"uid":"cap_MCmJ_xyCDZILNhAbNl3An","slug":"caip-2-chain-id-parser-38b731b8","name":"CAIP-2 Chain ID Parser","description":"Parse CAIP-2 chain identifiers into namespace and reference parts. Call when normalizing multi-chain IDs from agent configs or wallets. Returns namespace, reference, and raw caip2 as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/caip2-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"caip2":{"type":"string","description":"Input field: caip2."}}},"responseSchema":{"type":"json","example":{"ok":true,"caip2":"eip155:8453","schema":"delx/util-caip2-parse/v1","namespace":"eip155","reference":"8453"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_e3cBw21DOq8Xb0NxpaeKE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a CAIP-2 chain identifier string into its constituent namespace and reference components as deterministic JSON","exampleAgentPrompt":"Parse the CAIP-2 chain identifier 'eip155:1' into its namespace and reference parts so I can normalize it across my multi-chain agent config.","exampleUseCases":[{"title":"Normalizing wallet chain IDs","prompt":"I'm getting chain identifiers like 'eip155:137' and 'cosmos:cosmoshub-4' from different wallets — can you parse each one into namespace and reference so I can standardize them in my agent config?"},{"title":"Agent cross-chain routing setup","prompt":"My agent needs to route transactions based on chain namespace. Parse 'solana:mainnet' into its namespace and reference components so I can use them to pick the right RPC endpoint."},{"title":"Validating CAIP-2 format from user input","prompt":"A user submitted 'bip122:000000000019d6689c085ae165831e93' as their chain ID — can you parse it into namespace and reference to confirm it's a valid CAIP-2 structure?"}],"resultDescription":"Returns a deterministic JSON object containing the namespace (e.g. 'eip155'), the reference (e.g. '1'), and the original raw caip2 string as provided. No external calls are made — the result is computed locally from string parsing logic.","failureModes":["Malformed CAIP-2 string (missing colon separator) returns an error or unexpected output","Empty string input may return null or error fields","Non-CAIP-2 strings (e.g. plain chain names) may not parse correctly","Payment failure via x402 prevents the call from completing"],"whenToPreferThis":"Use this endpoint when you need a lightweight, deterministic, zero-dependency way to decompose CAIP-2 chain identifiers into namespace and reference — especially in agent pipelines normalizing multi-chain configs or wallet data. Prefer it over custom string-splitting logic when you want a consistent, paid-gated microservice contract with predictable JSON output. Not suitable if you need live chain data, RPC calls, or chain validation against a registry.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:12:29.802Z","isFirstParty":false}