{"uid":"cap_AYHyxZTLtfx9z2WoqSz_n","slug":"delx-commerce-base-usdc-decimal-rounding-82f5901d","name":"Delx Commerce — Base USDC Decimal Rounding","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/base-usdc-decimal-rounding?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount":{"type":"string","maxLength":8192,"description":"Amount supplied to Base USDC Decimal Rounding; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"raw":"1000","amount":"0.001000","fits_six_decimals":true,"fractional_digits":6},"schema":"delx/util-base-usdc-decimal-rounding/v1","status":"pass","evidence":{"retained":false,"input_sha256":"7df2f11804e0c841c0289c3480df8b5b401744e62702bb9731b22eaac70967ab","external_calls":0},"operation":"evm_preflight:base_usdc_decimal_rounding"}},"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_1Dr8VuHFSsL2GKp6IPwpR","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":"Validates and normalizes a USDC amount string to 6-decimal Base USDC precision, returning the rounded value and conformance result.","exampleAgentPrompt":"Before sending 0.001234567 USDC on Base, check whether that amount fits within 6 decimal places and tell me what the rounded value would be.","exampleUseCases":[{"title":"Pre-flight check before USDC transfer","prompt":"I'm about to send 1.0000001 USDC on Base — can you verify if that amount is representable with 6 decimal places and what the exact rounded value will be?"},{"title":"Validating agent-generated payment amount","prompt":"My agent calculated a fee of 0.0000001234 USDC — check whether that fits into Base USDC's 6-decimal precision before I try to submit the transaction."},{"title":"Normalizing user-entered token amount","prompt":"A user typed in '2.500000000001' as their USDC amount — can you normalize it to the 6-decimal Base USDC format and tell me if it conforms?"}],"resultDescription":"Returns a JSON object with the raw integer USDC amount, the formatted decimal string, a boolean indicating whether the amount fits within 6 decimal places, the number of fractional digits, and a verifiable evidence block including input hash and confirmation that no data is retained and no external calls were made.","failureModes":["Invalid or non-numeric amount string returns an error","Amount string exceeding 8192 characters rejected","Malformed JSON body returns 400","Payment not received results in 402 response blocking execution"],"whenToPreferThis":"Use this endpoint when an AI agent needs to preflight-check or normalize a USDC amount before submitting an EVM transaction on Base, especially when deterministic, auditable rounding with verifiable delivery is required. Prefer it over manual calculation when you need a signed evidence record confirming no data retention.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:50.993Z","isFirstParty":false,"canonicalSlug":"delx-commerce-base-usdc-decimal-rounding-82f5901d"}