{"uid":"cap_F8twed9R1Yxzr2g18sXWT","slug":"agent-rest-stop-unitscale-decimal-converter-158dc75c","name":"Agent Rest Stop – UnitScale Decimal Converter","description":"Integer amount in another decimal unit.","url":"https://agent-gas-station.agent-gas-station.workers.dev/v1/UnitScale?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount":{"type":"string"},"to_decimals":{"type":"string"},"from_decimals":{"type":"string"}}},"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_K7hzSB0Y15D2jP1iVeKRb","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 an integer amount from one decimal unit to another (e.g. wei to ether, satoshis to BTC)","exampleAgentPrompt":"Convert 1500000 from 6 decimals to 18 decimals — I need the scaled integer result.","exampleUseCases":[{"title":"Wei to Ether conversion for display","prompt":"I have the raw amount 2500000000000000000 in 18 decimals and I want to display it as ether (0 decimals) — what's the scaled value?"},{"title":"Cross-token decimal normalization","prompt":"I'm comparing a USDC amount (6 decimals) of 5000000 with a WBTC amount (8 decimals) — can you rescale the USDC amount to 8 decimals so they're on the same basis?"},{"title":"Basis unit to display unit for DeFi UI","prompt":"My contract returned 750000 in base units with 6 decimal places — convert that to the 2-decimal display unit so I can show the dollar value to the user."}],"resultDescription":"A scaled integer amount representing the input value redenominated from the source decimal precision to the target decimal precision, returned as a string or numeric value suitable for further computation or display.","failureModes":["Non-numeric or malformed 'amount' string causes a parsing error","Negative or non-integer decimal values for from_decimals or to_decimals may be rejected","Very large integer amounts beyond safe integer range may cause precision loss","Missing required fields returns a 400-level error","Network or worker timeout on the Cloudflare edge"],"whenToPreferThis":"Use this endpoint when you need to scale a raw integer token or currency amount between decimal precisions — for example when bridging between blockchain token units (wei/gwei/ether), normalizing amounts across tokens with different decimal places, or converting a raw contract value to a human-readable display unit. Prefer this over manual arithmetic when precision matters and the amount is represented as a string to avoid floating-point errors.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:33.549Z","isFirstParty":false,"canonicalSlug":"agent-rest-stop-unitscale-decimal-converter-158dc75c"}