{"uid":"cap_x-wrNgCFgFjNtfHXJFVg0","slug":"delx-commerce-evm-chain-id-hex-normalizer-596ebcda","name":"Delx Commerce — EVM Chain ID Hex Normalizer","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/evm-chain-id-hex-normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain_id":{"type":"string","maxLength":8192,"description":"Chain Id supplied to EVM Chain Id Hex Normalize; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"hex":"0x2105","decimal":8453},"schema":"delx/util-evm-chain-id-hex-normalize/v1","status":"pass","evidence":{"retained":false,"input_sha256":"be323df1e1cdb84b28aeaec9e86e6786c27277b63126d7361e444f5d6fce0979","external_calls":0},"operation":"evm_preflight:evm_chain_id_hex_normalize"}},"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_K-mGTCMoFQ3LwkqqttUHM","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":"Converts an EVM chain ID (in any format) to its canonical hex and decimal representations in a single in-memory, stateless computation.","exampleAgentPrompt":"Normalize chain ID 8453 to its canonical hex format so I can use it in my EVM transaction preflight.","exampleUseCases":[{"title":"Pre-flight EVM transaction formatting","prompt":"Before I submit this transaction to Base mainnet, normalize chain ID 8453 to its 0x-prefixed hex format for me."},{"title":"Multi-chain wallet chain validation","prompt":"My wallet just received chain ID '137' as a plain decimal — can you convert it to the canonical hex format Polygon uses in EVM calls?"},{"title":"Cross-chain agent routing","prompt":"I need the hex chain ID for Ethereum mainnet (chain ID 1) so my agent can correctly route the next EVM RPC request."}],"resultDescription":"Returns a JSON object with the normalized chain ID in both hex (0x-prefixed) and decimal forms, plus an evidence block confirming no data was retained and no external calls were made, along with a pass/fail status and schema identifier.","failureModes":["Invalid or non-numeric chain_id string returns an error or unexpected result","chain_id exceeding 8192 characters may be rejected","Malformed input (empty string, null) may cause a 400 or processing error","Payment failure via x402 (insufficient USDC balance) blocks the call"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, verifiable conversion of an EVM chain ID to its canonical hex representation with cryptographic evidence of no data retention — ideal for privacy-sensitive agent pipelines or pre-flight EVM transaction validation where auditability matters. Prefer over a local utility when you need the evidence receipt or are already operating within the Delx x402 micropayment flow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:05.138Z","isFirstParty":false,"canonicalSlug":"delx-commerce-evm-chain-id-hex-normalizer-596ebcda"}