{"uid":"cap_JNpQzJKN9a2Y6fW7lik9b","slug":"axiom-works-chain-id-lookup-52f70b81","name":"Axiom Works Chain ID Lookup","description":"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.","url":"https://api.axiomworks.co.uk/chain/chain-id?utm_source=zero.xyz","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","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"}}}}}}},"responseSchema":{"type":"json","example":{"hex":"0x2105","caip2":"eip155:8453","chain":"base","source":"eth_chainId","chain_id":8453,"matches_expected":true}},"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_lNYKspJMpDhfJQw0-uieN","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":"Returns the EIP-155 chain ID for a named EVM network by querying eth_chainId and net_version directly from the RPC","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Confirm chain before signing transaction","prompt":"Before I sign this transaction, can you confirm the chain ID for Base? I want to make sure I'm on the right network and not accidentally signing on Ethereum mainnet."},{"title":"Resolve chain ID for DApp integration","prompt":"I'm integrating with Arbitrum and need to know its official EIP-155 chain ID, including the hex value and CAIP-2 format."},{"title":"Verify network identity for wallet setup","prompt":"Can you fetch the chain ID for Polygon directly from the RPC and confirm it matches what I expect? I want the hex and numeric ID both."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:36:25.571Z","isFirstParty":false,"canonicalSlug":"axiom-works-chain-id-lookup-52f70b81"}