{"uid":"cap_FvKR6FfAo2a403l6W1mKI","slug":"agenttools-wei-eth-unit-converter-88baf0d6","name":"AgentTools Wei/ETH Unit Converter","description":"Convert between wei, kwei, mwei, gwei, microether, milliether and ether with exact BigInt arithmetic. Decimal strings of any magnitude convert without floating-point error. Use this when an agent needs to exact Ethereum unit conversion — no float errors.","url":"https://agenttools-hub.vercel.app/api/v1/crypto/wei-eth-converter?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"],"type":"string"},"queryParams":{"type":"object","required":["value"],"properties":{"to":{"enum":["wei","kwei","mwei","gwei","microeth","millieth","eth"],"type":"string","description":"To"},"from":{"enum":["wei","kwei","mwei","gwei","microeth","millieth","eth"],"type":"string","description":"From"},"value":{"type":"string","description":"Decimal string for exact precision"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_yI2GTEwuWzjWq7jb-Rq8C","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 Ethereum denominations (wei, kwei, mwei, gwei, microether, milliether, ether) using exact BigInt arithmetic with no floating-point error","exampleAgentPrompt":"Can you convert 21000000000000 wei to ether using exact arithmetic — no floating-point rounding?","exampleUseCases":[{"title":"Gas fee estimation in ether","prompt":"I have a gas cost of 42000000000000 wei from a transaction receipt — convert that to ether so I can display it in a human-readable format."},{"title":"Smart contract value denomination","prompt":"I need to pass 2.5 ETH to a contract but it expects the amount in gwei — what is 2.5 eth in gwei exactly?"},{"title":"DeFi slippage display conversion","prompt":"My DeFi app shows a swap fee of 500000 mwei — convert that to ether so I can show the user the actual cost in ETH."}],"resultDescription":"A converted numeric value expressed in the target Ethereum denomination, computed with exact BigInt arithmetic so large or fractional amounts carry no floating-point rounding error.","failureModes":["Missing required 'value' query parameter returns an error","Non-numeric or malformed decimal string in 'value' causes a parse error","Invalid 'from' or 'to' enum value (not one of the seven supported units) returns a bad request","Very large integers beyond BigInt range may fail depending on server implementation"],"whenToPreferThis":"Choose this endpoint when you need exact, lossless Ethereum unit conversion for any combination of wei, kwei, mwei, gwei, microether, milliether, and ether — especially when floating-point precision would introduce errors in smart contract inputs, gas calculations, or financial displays. Prefer it over manual multiplication when the value is a very large integer or a high-precision decimal string.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:16.857Z","isFirstParty":false,"canonicalSlug":"agenttools-wei-eth-unit-converter-88baf0d6"}