{"uid":"cap_IVl7HYwWYA-EX-VcTuC4f","slug":"ethereum-unit-converter-24k-labs-23a6aebd","name":"Ethereum Unit Converter (24K Labs)","description":"Convert amounts between Ethereum denominations (wei, kwei, mwei, gwei, szabo, finney, ether) with exact integer/decimal math -- no float error.","url":"https://api.24klabs.ai/api/eth-unit-convert","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"value":{"type":"string"}}},"responseSchema":{"type":"json","example":{"wei":"1500000000000000000","result":"1500000000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rDkVRKV7xQZlmIWMD0ufb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts amounts between Ethereum denominations (wei, kwei, mwei, gwei, szabo, finney, ether) using exact integer/decimal arithmetic with no floating-point errors.","exampleAgentPrompt":"Convert 1500000000 gwei to ether using exact integer math — no floating point errors.","exampleUseCases":[{"title":"Display gas price in gwei","prompt":"I have a raw gas price of 21000000000 wei from the Ethereum node — convert it to gwei so I can show it in the UI."},{"title":"Wallet balance display in ether","prompt":"I got back a balance of 4500000000000000000 wei from the Ethereum RPC call — what is that in ether, exactly?"},{"title":"DeFi transaction fee calculation","prompt":"Convert 0.005 ether to gwei so I can set the max fee for this transaction without any rounding errors."}],"resultDescription":"Returns the converted amount in the target Ethereum denomination as an exact value (using integer or high-precision decimal math), along with the source unit, target unit, and the original input amount — no floating-point rounding errors.","failureModes":["Invalid denomination name returns an error indicating unsupported unit","Non-numeric amount input returns a validation error","Missing required fields (amount or units) returns a 400-level error","Negative or zero amounts may return a validation error depending on implementation"],"whenToPreferThis":"Choose this endpoint when you need precise, lossless Ethereum unit conversion — especially when float rounding errors would cause issues, such as in financial calculations, smart contract interactions, gas fee estimation, or displaying wallet balances. Prefer this over ad-hoc JavaScript/Python float math which can produce subtle rounding errors with large wei values.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:56:45.837Z","isFirstParty":false}