{"uid":"cap_wFZ_MHlJGlJJjls2dl95T","slug":"ethereum-unit-converter-wei-gwei-ether-token-9e9962ba","name":"Ethereum Unit Converter (wei / gwei / ether / token)","description":"Convert between wei, gwei, ether and token units — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/eth-units?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"from":{"type":"string"},"amount":{"type":"string"},"decimals":{"type":"integer","minimum":0}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"eth-units","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.001,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"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_B-NtP9X0nY4FPxtEJsjw-","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 a numeric amount between Ethereum denomination units — wei, gwei, ether, and arbitrary ERC-20 token units with configurable decimals","exampleAgentPrompt":"Convert 1500000000 wei to ether for me — I need to know what that raw amount works out to in human-readable ETH.","exampleUseCases":[{"title":"Display ETH balance in readable form","prompt":"I'm getting a wallet balance back as 2350000000000000000 wei — can you convert that to ether so I can show it to the user properly?"},{"title":"Normalize USDC token amount for DeFi calc","prompt":"I have a raw USDC token amount of 5000000 and USDC has 6 decimals — convert that to a human-readable number for me."},{"title":"Compute gas cost in gwei from wei","prompt":"The gas fee came back as 420000000000 wei — what is that in gwei so I can display it as a gas price?"}],"resultDescription":"Returns a JSON object indicating success, the conversion type ('eth-units'), a payment receipt with transaction hash, USD amount, and receipt ID, plus a generated_at ISO 8601 timestamp. The primary conversion output is confirmed by the 'ok: true' field along with the converted values embedded in the response.","failureModes":["Invalid or unrecognized 'from' unit string returns an error response","Non-numeric or malformed 'amount' string causes a parse failure","Negative or non-integer 'decimals' value (below 0) is rejected by schema validation","Missing required params object may return a 400-style error","Payment failure or insufficient USDC balance blocks the request before conversion runs"],"whenToPreferThis":"Choose this endpoint when you need a quick, paid microservice to convert between Ethereum denominations (wei, gwei, ether) or arbitrary ERC-20 token units without running local BigNumber math. It is especially useful in agent pipelines that already use x402 micropayment infrastructure and need a reliable, hosted conversion step. Prefer it over writing custom BigNumber logic when precision and correctness are critical and a $0.001 per-call cost is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:44:00.163Z","isFirstParty":false,"canonicalSlug":"ethereum-unit-converter-wei-gwei-ether-token-9e9962ba"}