{"uid":"cap_pNXFbS8-uV65AU9Lvx1nK","slug":"agenttools-wei-eth-unit-converter-14068234","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://agentstoolshub.com/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.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_5lCB_7YydNn_lqdCU1IOa","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 between Ethereum denomination units (wei, kwei, mwei, gwei, microether, milliether, ether) using exact BigInt arithmetic to avoid floating-point errors.","exampleAgentPrompt":"Convert 1500000000000000000 wei to ether for me — I need the exact value with no floating-point rounding errors.","exampleUseCases":[{"title":"Gas fee estimation in ether","prompt":"I have a gas price of 25 gwei and I need to show the user the cost in ether — can you convert 525000 gwei to ether exactly?"},{"title":"Smart contract value display","prompt":"My smart contract returned a balance of 750000000000000000 wei. What is that in ether, using exact BigInt math so I don't get rounding issues?"},{"title":"DeFi transaction amount sanity check","prompt":"I want to send 0.05 ether but my DEX shows amounts in gwei — convert 0.05 ether to gwei so I can verify the transaction input is correct."}],"resultDescription":"Returns the converted numeric value in the requested target unit as a decimal string, computed with exact BigInt arithmetic to eliminate any floating-point precision loss.","failureModes":["Missing required 'value' query parameter returns an error","Invalid or unsupported unit enum values for 'from' or 'to' return a validation error","Non-numeric or malformed decimal string for 'value' returns a parsing error","Payment not provided or invalid x402 payment header returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need exact, lossless Ethereum unit conversion without floating-point precision errors — especially for large integer values like raw wei amounts. Prefer it over client-side JavaScript Number math (which loses precision above 2^53) or string-based manual computation. Ideal for smart contract integrations, gas fee displays, DeFi UIs, and any context where rounding a wei amount would be incorrect.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:45:49.121Z","isFirstParty":false,"canonicalSlug":"agenttools-wei-eth-unit-converter-14068234"}