{"uid":"cap_wzMz2qolMKQwWaA6E4-kU","slug":"xerxes-eth-chainid-rpc-7daa4e41","name":"Xerxes eth_chainId RPC","description":"Returns the chain ID of the Ethereum network. No inputs. Output: chain ID as a hex string.","url":"https://ari001.tailb4ac3a.ts.net/v1/ventures/ethereum_contract_abi_service/rpc_read_eth_chainid?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean"},"hex":{"type":["string","null"]},"chain":{"type":"string"},"error":{"type":"string","description":"present when ok is false"},"method":{"type":"string"},"result":{"type":"integer"},"service":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZO9-fw7njZDSuRBAwJy5m","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current chain ID of the connected Ethereum network as a hex string (e.g., '0x1' for mainnet).","exampleAgentPrompt":"What chain ID is the Xerxes Ethereum RPC node currently connected to — give me the hex value so I can confirm it's mainnet before I proceed.","exampleUseCases":[{"title":"Confirm mainnet before transaction","prompt":"Before I sign and broadcast this transaction, check what chain ID the RPC is on and tell me if it's Ethereum mainnet (0x1) or something else."},{"title":"Automated network sanity check","prompt":"At the start of my deployment script, verify that the Xerxes Ethereum RPC node is connected to mainnet by fetching the current chain ID."},{"title":"Debugging unexpected network","prompt":"My contract calls are behaving strangely — can you check what Ethereum network the Xerxes RPC endpoint is actually connected to right now by pulling the chain ID?"}],"resultDescription":"Returns a JSON object with an 'ok' boolean, a 'hex' string (e.g. '0x1' for mainnet), a 'chain' string label, a 'result' integer (decimal chain ID), and a 'service' identifier. On failure, includes an 'error' field and ok=false.","failureModes":["RPC node unreachable — ok=false with error message","Network timeout causing no response","Unexpected chain ID if node is misconfigured or switched networks","Payment failure (x402) if USDC balance insufficient"],"whenToPreferThis":"Use this endpoint when an agent needs to programmatically verify which Ethereum network a Xerxes RPC node is connected to before executing transactions or contract calls — especially useful for safety checks, automated deployment pipelines, and multi-chain routing logic where chain identity must be confirmed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:34:53.531Z","isFirstParty":false,"canonicalSlug":"xerxes-eth-chainid-rpc-7daa4e41"}