{"uid":"cap_Ewlrdt_dZw-WvytdapqP4","slug":"hex-to-integer-converter-cc480905","name":"Hex to Integer Converter","description":"Parse 0x-hex strings into decimal integer strings for agents. Call when decoding calldata, logs, or block fields without a full ABI stack. Returns decimal integer string from hex as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/hex-to-int","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"hex":{"type":"string","description":"Input field: hex."}}},"responseSchema":{"type":"json","example":{"hex":"0xff","value":"255","schema":"delx/util-hex-to-int/v1"}},"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_f4fsfAdp00AnHlEOQiiuH","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 a 0x-prefixed hexadecimal string into its decimal integer string representation using local deterministic math","exampleAgentPrompt":"Can you convert the hex value 0x1a4 into a decimal integer for me?","exampleUseCases":[{"title":"Decoding EVM calldata field","prompt":"I pulled a raw transaction calldata hex field from an Ethereum log — it's 0x0000000000000000000000000000000000000000000000000de0b6b3a7640000 — can you convert that to a decimal integer so I can see the actual value?"},{"title":"Parsing block number from RPC response","prompt":"The RPC returned the current block number as 0x11e8480, can you decode that hex string into a regular decimal number for me?"},{"title":"Reading token amount from contract return","prompt":"My contract returned 0x2386f26fc10000 as a balance value — what is that as a decimal integer?"}],"resultDescription":"A deterministic JSON response containing the decimal integer string representation of the input hex value, computed locally without any RPC calls or external dependencies","failureModes":["Invalid or malformed hex string input (non-hex characters, missing 0x prefix) returns an error","Overflow for extremely large hex values beyond integer limits","Payment failure via x402 protocol prevents execution","Empty or missing hex field in request body"],"whenToPreferThis":"Choose this endpoint when you need a quick, deterministic, no-key-required hex-to-decimal conversion without spinning up a full ABI decoder or making RPC calls — ideal for lightweight agents decoding individual fields from calldata, logs, or block headers where a full EVM stack is overkill","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:56:31.084Z","isFirstParty":false}