{"uid":"cap_BStv0JU-wYJ9qEDtSrzP3","slug":"bot-bazaar-token-decimal-normalizer-d98783e4","name":"Bot Bazaar Token Decimal Normalizer","description":"Convert token amounts between human decimal strings and exact atomic integer units across 6, 8, or 18 decimals.","url":"https://bot-bazaar.fly.dev/v1/x402/token-decimal-normalizer?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"amount":{"type":"string","description":"Decimal token amount string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ymviitNxrRCXuQ3rQjrIM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts token amounts between human-readable decimal strings and exact atomic integer units for tokens with 6, 8, or 18 decimal places.","exampleAgentPrompt":"Convert the decimal token amount 1.5 to its exact atomic integer units for a token with 18 decimals, like ETH or a standard ERC-20.","exampleUseCases":[{"title":"ERC-20 transfer amount encoding","prompt":"I need to send 250.75 USDC to a smart contract — can you convert that decimal amount to the exact atomic integer units using 6 decimals so I can pass it to the contract?"},{"title":"DeFi swap input normalization","prompt":"I'm building a DEX swap transaction and need to pass the raw integer value for 0.001 WBTC — can you convert that to its atomic units with 8 decimals?"},{"title":"ETH amount to wei conversion","prompt":"What is 3.14159 ETH expressed in wei? Convert that decimal string to the exact integer with 18 decimal places for me."}],"resultDescription":"Returns the atomic integer unit representation of the given decimal token amount (and/or the reverse human decimal form), accounting for the token's specified decimal precision (6, 8, or 18).","failureModes":["Missing or invalid 'amount' query parameter returns an error","Unsupported decimal precision outside 6, 8, or 18 may return an error or unexpected result","Malformed decimal string (e.g. multiple dots, non-numeric characters) returns a parse error","Network or server error on the fly.dev host returns 5xx","Payment not sent or invalid x402 payment header returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a reliable, on-demand conversion between human-readable token decimal strings and exact on-chain atomic integer units for common token precisions (6 for USDC/USDT, 8 for WBTC, 18 for ETH/ERC-20). Prefer it over manual arithmetic when building agent-driven DeFi transactions, encoding contract calldata, or validating token amounts where precision errors would be costly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-04T00:47:03.913Z","isFirstParty":false,"canonicalSlug":"bot-bazaar-token-decimal-normalizer-d98783e4"}