{"uid":"cap_qycQ4WX4LKva6olaFQjW1","slug":"delx-commerce-hex-to-integer-converter-e5082e7f","name":"Delx Commerce — Hex to Integer Converter","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/hex-to-int?utm_source=zero.xyz","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_slMaw5GDsxjNgSQCodBne","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 hexadecimal string (e.g. '0xff') to its decimal integer equivalent, paid per-call via USDC on Base or Solana using the x402 protocol.","exampleAgentPrompt":"Can you convert the hex value 0xff to its decimal integer for me?","exampleUseCases":[{"title":"Decode blockchain hex value","prompt":"I'm getting a hex-encoded number back from a smart contract — it's 0x1a2b3c. Can you convert that to a regular decimal integer for me?"},{"title":"Parse hex color to numeric value","prompt":"What's the decimal integer equivalent of the hex value 0xFFAA00? I need the raw number, not an RGB breakdown."},{"title":"Debug low-level protocol output","prompt":"I've got a hex string 0x4d2 coming out of a serial device and I need to know what integer it represents — can you decode it?"}],"resultDescription":"Returns a JSON object containing the original hex input, the decoded decimal integer as a string (e.g. '255'), and a schema identifier ('delx/util-hex-to-int/v1') confirming the response format.","failureModes":["Invalid or malformed hex string input returns an error response","Missing 'hex' field in request body causes a validation error","Non-prefixed hex strings (without '0x') may or may not be accepted — behavior unclear from schema","Network or payment failures via x402 protocol result in no conversion being performed"],"whenToPreferThis":"Use this endpoint when an AI agent needs a lightweight, pay-per-use hex-to-integer conversion without setting up any account or authentication — ideal for agentic pipelines that need on-demand, verifiable utility calls paid in USDC. Prefer it over implementing local logic when the agent runtime does not have direct access to numeric parsing functions, or when auditability and verifiable delivery of the result is important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:02.968Z","isFirstParty":false,"canonicalSlug":"delx-commerce-hex-to-integer-converter-e5082e7f"}