{"uid":"cap_u0ddxXFCQbRBDMFfxoHte","slug":"usdc-to-raw-6-decimals-converter-eb820468","name":"USDC to Raw (6 Decimals) Converter","description":"Convert USDC human amounts into 6-decimal raw units used on-chain. Call when quoting or building USDC transfers/payments at 6 decimals. Returns raw units string 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-to-raw","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_wOhKjw3o3FSIe9HOYm6uo","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 human-readable USDC amount into its 6-decimal raw on-chain integer representation (e.g. 1.5 USDC → 1500000).","exampleAgentPrompt":"Convert 12.50 USDC into its 6-decimal raw on-chain units so I can use it in a USDC transfer transaction on Base.","exampleUseCases":[{"title":"Quote USDC payment for smart contract","prompt":"I need to send 25 USDC via a smart contract on Base — what's the raw 6-decimal integer I should use in the transaction?"},{"title":"Build USDC transfer for DeFi protocol","prompt":"I'm constructing a USDC token transfer and need the atomic units for 0.50 USDC — can you give me the raw on-chain value?"},{"title":"Verify correct raw amount before signing","prompt":"Before I sign this Base transaction, can you double-check what 100 USDC looks like in raw 6-decimal units so I know the calldata is right?"}],"resultDescription":"Returns a deterministic JSON object containing the raw on-chain integer string for the given USDC amount and a decimals field set to 6 (e.g. {\"raw\": \"1500000\", \"decimals\": 6} for 1.5 USDC). No external calls are made; the result is pure local arithmetic.","failureModes":["Invalid or missing 'usdc' field returns an error response","Negative or non-numeric input may cause a validation error","Extremely large float values may cause precision loss if not handled carefully","Payment failure via x402 protocol if USDC micropayment not sent correctly"],"whenToPreferThis":"Choose this endpoint when you need a reliable, deterministic conversion of a USDC human-readable amount to its 6-decimal raw on-chain integer — especially useful when building ERC-20 USDC transfer calldata on Base or any EVM chain using USDC at 6 decimals. Prefer over manual math when you want advisory confirmation of the scaling factor without relying on any RPC node, price feed, or external state.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:20:00.983Z","isFirstParty":false}