{"uid":"cap_n8cGBEfw9eMadLCEjZzuR","slug":"xerxes-ethereum-chain-id-b8cdadf3","name":"Xerxes Ethereum Chain ID","description":"Returns the current chain ID for the Ethereum network as a hex string.","url":"https://ari001.tailb4ac3a.ts.net/v1/ventures/ethereum_rpc_api/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_ym8YDmTLNPxXp7kYWxCL5","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 for the Ethereum mainnet as a hex string via an RPC proxy.","exampleAgentPrompt":"What is the current chain ID for the Ethereum mainnet right now? I need the hex value to configure my transaction signer.","exampleUseCases":[{"title":"Transaction replay attack prevention","prompt":"Before I sign this transaction, can you fetch the current Ethereum chain ID so I can include it and prevent replay attacks on other networks?"},{"title":"Wallet network verification","prompt":"My wallet app needs to confirm it's talking to Ethereum mainnet — can you grab the chain ID and tell me if it matches 0x1?"},{"title":"DApp network configuration","prompt":"I'm configuring my dApp's network settings — what's the current Ethereum chain ID in hex so I can hardcode it correctly?"}],"resultDescription":"Returns a JSON object with 'ok' (boolean), 'chain' (chain name string, e.g. 'ethereum'), 'hex' (chain ID as hex string, e.g. '0x1'), 'result' (chain ID as integer, e.g. 1), 'method' (RPC method used), and 'service' (service identifier). On failure, includes an 'error' string.","failureModes":["Network unavailable — returns ok:false with an error message","RPC node unreachable — upstream timeout or connection failure","Invalid or unexpected response from underlying Ethereum node","Rate limiting — repeated rapid calls may be rejected"],"whenToPreferThis":"Use this endpoint when an agent needs to confirm the Ethereum mainnet chain ID (e.g. for transaction construction, replay-attack protection, or network validation) and doesn't already have the value cached. Prefer this over generic RPC gateways when using the Xerxes service ecosystem for consistent Ethereum RPC access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T01:13:32.129Z","isFirstParty":false,"canonicalSlug":"xerxes-ethereum-chain-id-b8cdadf3"}