{"uid":"cap_qdf0eejCuZr3TXdWoAC0f","slug":"usdc-raw-to-amount-converter-93cf1156","name":"USDC Raw to Amount Converter","description":"Convert 6-decimal USDC raw units into human USDC amounts. Call when displaying USDC balances or payment receipts stored as raw integers. Returns USDC amount with decimals=6 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/usdc-raw-to-amount","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"raw":{"type":"string","description":"Input field: raw."}}},"responseSchema":{"type":"json","example":{"raw":"1500000","usdc":1.5,"schema":"delx/util-usdc-raw-to-amount/v1","decimals":6}},"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_riRGrv2RUFOIThRqwyg9O","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 raw USDC integer (6-decimal units) into a human-readable USDC amount using deterministic local math.","exampleAgentPrompt":"Convert the raw USDC value 1500000 into a human-readable USDC amount — I need to display it on a payment receipt.","exampleUseCases":[{"title":"Display wallet USDC balance","prompt":"My on-chain USDC balance came back as 42500000 raw units — can you convert that to a readable dollar amount so I can show it in the app?"},{"title":"Format payment receipt amount","prompt":"A payment was received and stored as raw USDC integer 250000. Convert it to a human-readable USDC amount so I can put it on the receipt."},{"title":"Decode smart contract USDC output","prompt":"The smart contract returned a USDC value of 10000000 in raw form. What is that in actual USDC so I can display it to the user?"}],"resultDescription":"Returns a deterministic JSON object containing the human-readable USDC amount derived from the input raw integer, with a decimals field set to 6, computed entirely via local math with no external API calls or RPC lookups.","failureModes":["Missing or empty 'raw' field returns a validation error","Non-numeric string input may cause a parse or conversion error","Extremely large integers may exceed precision limits","Malformed JSON body returns a 400 bad request"],"whenToPreferThis":"Use this endpoint when you have a USDC balance or payment amount stored as a raw 6-decimal integer (e.g. from a blockchain or payment system) and need to convert it to a human-readable decimal for display purposes. It is ideal for agents handling USDC on Base without requiring API keys, RPC access, or live market data — purely deterministic local math.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:06:41.522Z","isFirstParty":false}