{"uid":"cap_jrXqjBYbr0mtvy_iAwTJb","slug":"delx-evm-hex-quantity-normalize-f0caa508","name":"Delx EVM Hex Quantity Normalize","description":"EVM Hex Quantity Normalize: EVM Hex Quantity Normalize normalizes an EVM hex quantity without redundant leading zeroes from bounded caller-supplied values without an external provider. Call EVM Hex Quantity Normalize before signing, submitting, replacing, or accepting an EVM/Base transaction assembled from caller-owned data. Returns normalized transaction evidence, calculated budget or shape findings, and a fail-closed preflight status for EVM Hex Quantity Normalize as versioned deterministic J…","url":"https://api.delx.ai/api/v1/x402/evm-hex-quantity-normalize","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"quantity":{"type":"string","maxLength":8192,"description":"Quantity supplied to EVM Hex Quantity Normalize; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"decimal":"10","hex_quantity":"0xa"},"schema":"delx/util-evm-hex-quantity-normalize/v1","status":"pass","evidence":{"retained":false,"input_sha256":"e715e2d41dde2bc72a6903549169204d8a7eafa7a87caa81118d29f63959a203","external_calls":0},"operation":"evm_preflight:evm_hex_quantity_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_AoSlhIHbi6eJ7WGtVUvMz","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":"Normalizes an EVM hex quantity string (e.g. '0xa') to both its decimal and canonical hex-quantity representations.","exampleAgentPrompt":"Normalize the EVM hex quantity '0xa' for me — give me both the decimal value and the canonical hex-quantity form before I send it in a transaction.","exampleUseCases":[{"title":"Preflight Ethereum transaction quantity","prompt":"Before I submit this Ethereum transaction, normalize the hex quantity '0x1bc16d674ec80000' to decimal so I can confirm the amount is correct."},{"title":"Parse EVM RPC hex response","prompt":"I just got back '0x4b9aca00' from an eth_getBalance RPC call — can you normalize that hex quantity to decimal so I know the actual value?"},{"title":"Canonicalize hex quantity for agent workflow","prompt":"My agent pipeline needs to store a canonical hex quantity for '255' — convert it to the proper EVM hex-quantity format and give me the decimal equivalent too."}],"resultDescription":"Returns a JSON object with the decimal representation and canonical hex-quantity string (e.g. '0xa'), an operation status of 'pass', and evidence metadata including whether input was retained (always false), the SHA-256 hash of the input, and the number of external calls made (always 0).","failureModes":["Invalid or non-numeric quantity string returns an error status","Quantity string exceeding 8192 characters is rejected","Malformed hex string (missing '0x' prefix or invalid characters) may return an error","Empty input string returns a validation error"],"whenToPreferThis":"Use this endpoint when your EVM/Ethereum agent workflow needs to normalize hex quantity strings to decimal or canonical hex form before constructing or validating transactions. Prefer it over manual parsing when you need auditable, stateless conversion with an SHA-256 input hash for traceability and zero data retention guarantees.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:18:15.675Z","isFirstParty":false}