{"uid":"cap_6bOx5Y8_s2-TP4M1itorr","slug":"agent402-caip-2-chain-id-parser-769ba3bc","name":"Agent402 CAIP-2 Chain ID Parser","description":"Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.","url":"https://agent402.co.uk/v1/chain/caip2","method":"GET","headers":{},"bodySchema":{"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":"CAIP-2 chain id"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"label":"Base","valid":true,"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_dNB0vgU3B_BmU_vWQ2_9U","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 and validates CAIP-2 chain identifiers (e.g. eip155:8453, solana:mainnet) into their namespace, reference, and human-readable label components","exampleAgentPrompt":"Can you parse the CAIP-2 chain ID eip155:8453 and tell me what chain it refers to and whether it's valid?","exampleUseCases":[{"title":"Resolve chain before multi-chain routing","prompt":"I'm about to route a transaction and I have the chain ID eip155:137 — can you tell me what blockchain that is and confirm it's a valid CAIP-2 identifier?"},{"title":"Validate user-submitted chain ID","prompt":"A user just submitted the chain ID solana:mainnet in a form — can you check if that's a valid CAIP-2 ID and break it down into its namespace and reference?"},{"title":"Label chain for display in UI","prompt":"I need a human-readable label for the chain eip155:1 so I can show it in the UI — can you look it up and give me the name?"}],"resultDescription":"Returns a JSON object with fields: label (human-readable chain name, e.g. 'Base'), valid (boolean indicating if the CAIP-2 ID is recognized and well-formed), namespace (e.g. 'eip155'), and reference (e.g. '8453').","failureModes":["Missing or malformed 'id' query parameter returns an error","Unrecognized CAIP-2 chain returns valid:false or an error","Incorrect format (e.g. missing colon separator) may yield invalid parse result","Network timeout on rare occasions"],"whenToPreferThis":"Use this endpoint whenever an agent needs to programmatically parse, validate, or label a CAIP-2 chain identifier during multi-chain workflows — especially when routing transactions, displaying chain names to users, or validating chain IDs submitted by users. Prefer this over manual string splitting when authoritative namespace/reference extraction and validity confirmation are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:52:10.753Z","isFirstParty":false}