{"uid":"cap_ivmhSnhMqF7pQQjYzusml","slug":"eth-unit-converter-with-usd-valuation-ca10343b","name":"ETH Unit Converter with USD Valuation","description":"Convert between wei, gwei and ether (or arbitrary-decimal ERC20 amounts) with big-integer precision; optional USD valuation from a caller-supplied price.","url":"https://api.24klabs.ai/api/eth-unit-converter","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount":{"type":"string"},"to_unit":{"type":"string"},"from_unit":{"type":"string"},"usd_price":{"type":"number"}}},"responseSchema":{"type":"json","example":{"result":"1500000000","usd_value":4800}},"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_zcUEdgONQU7LIKqxHjQif","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 between wei, gwei, and ether (or arbitrary-decimal ERC20 token amounts) with big-integer precision, and optionally computes USD value from a caller-supplied price.","exampleAgentPrompt":"Convert 1500000000000000000 wei to ether and also tell me its USD value — the current ETH price is $3,200.","exampleUseCases":[{"title":"DeFi dashboard balance display","prompt":"I have a raw ERC20 USDC balance of 5000000000 from the blockchain — USDC has 6 decimal places and the current price is $1.00. Can you convert that to a human-readable amount and show me the USD value?"},{"title":"Gas fee estimation in ether","prompt":"Convert 21 gwei to both ether and wei so I can show users the actual ETH cost of a standard transfer transaction."},{"title":"Wallet transaction history formatting","prompt":"I got a transaction value of 750000000000000000 wei from the Ethereum node — convert it to ether and tell me the USD value assuming ETH is priced at $3,450 right now."}],"resultDescription":"Returns the input amount expressed in all three Ethereum units (wei, gwei, ether) with big-integer precision, plus an optional USD valuation if a price was supplied. The response preserves full numeric accuracy without floating-point rounding errors.","failureModes":["Invalid or non-numeric input amount returns a 400 error","Missing required source unit or amount field causes validation failure","Supplying a negative decimal count for ERC20 tokens may return an error","Extremely large integers beyond supported precision may be rejected","USD valuation omitted if price parameter is not provided"],"whenToPreferThis":"Choose this endpoint when you need precise, big-integer-safe conversion between Ethereum denominations (wei, gwei, ether) or when handling raw ERC20 balances with arbitrary decimal places. It is ideal for blockchain applications, wallets, or DeFi dashboards where floating-point imprecision would cause incorrect amounts. Use it over general-purpose math APIs when you need the full wei/gwei/ether triad output plus optional USD valuation in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:15.516Z","isFirstParty":false}