{"uid":"cap_7i4SbmYPNs2JWENDxfhFQ","slug":"delx-commerce-usdc-to-raw-amount-converter-a0c7c1e6","name":"Delx Commerce — USDC to Raw Amount 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/usdc-to-raw?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"usdc":{"type":"number","description":"Input field: usdc."}}},"responseSchema":{"type":"json","example":{"raw":"1500000","usdc":1.5,"schema":"delx/util-usdc-to-raw/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_fsqqtgCa8EoMP2bPRXQnY","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 USDC decimal amount into its raw on-chain integer representation (base units with 6 decimals)","exampleAgentPrompt":"Convert 1.5 USDC to its raw on-chain integer representation so I can use it in a blockchain transaction.","exampleUseCases":[{"title":"Prepare USDC payment for smart contract","prompt":"I need to send 2.5 USDC to a smart contract — can you convert that to the raw integer base unit amount so I can pass it into the transaction?"},{"title":"Validate raw amount before submitting transfer","prompt":"Before I submit this on-chain USDC transfer, can you convert 10 USDC to its raw representation so I can double-check the exact integer value I'll be sending?"},{"title":"Build payment payload for agent-to-agent transaction","prompt":"My agent needs to pay another service exactly 0.001 USDC — what is that in raw on-chain units with 6 decimal places?"}],"resultDescription":"Returns a JSON object containing the raw integer amount (e.g. '1500000' for 1.5 USDC), the original USDC decimal value, the number of decimals used (6 for USDC), and a schema identifier string ('delx/util-usdc-to-raw/v1').","failureModes":["Missing or non-numeric 'usdc' field returns validation error","Negative or zero USDC value may return an error or undefined behavior","Payment failure via x402 if USDC balance is insufficient","Network timeout if Base or Solana payment rails are unavailable"],"whenToPreferThis":"Use this endpoint when an AI agent or automated workflow needs to convert a human-readable USDC decimal amount into the raw integer base units required for on-chain transactions, smart contract calls, or payment protocol payloads. Prefer this over manual arithmetic when you want a verifiable, schema-stamped conversion without setting up your own utility logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:56.951Z","isFirstParty":false,"canonicalSlug":"delx-commerce-usdc-to-raw-amount-converter-a0c7c1e6"}