{"uid":"cap_yYTixDgArfpddKovOykSg","slug":"ethereum-unit-converter-24k-labs-daed5159","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/v1/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_tuAPu5C3GnxY93jW7LdVe","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 exactly — I need the result without any floating-point rounding errors.","exampleUseCases":[{"title":"Gas fee display in DeFi dashboard","prompt":"I have a gas fee of 21000000000000 wei from a transaction — can you convert that to gwei so I can display it in a human-readable format?"},{"title":"Smart contract value verification","prompt":"My smart contract returned 2500000000000000000 wei — convert that to ether so I can verify the user is being charged 2.5 ETH."},{"title":"Wallet UI denomination formatting","prompt":"The user entered 0.0025 ether in the send field. Convert that to wei so I can pass the exact integer value to the blockchain transaction."}],"resultDescription":"Returns the converted amount as an exact value (using integer or decimal math to avoid floating-point precision loss), along with the source and target denomination labels.","failureModes":["Invalid denomination name provided — returns error indicating unsupported unit","Non-numeric or malformed amount input — returns validation error","Missing required fields (amount or unit) — returns 400-level error","Negative or zero amounts may be rejected depending on validation rules"],"whenToPreferThis":"Use this endpoint when you need precise, float-error-free Ethereum denomination conversions in agent workflows, smart contract UIs, transaction displays, or DeFi tooling. Prefer this over implementing conversion logic manually to avoid common floating-point precision bugs with large wei values.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:51:01.815Z","isFirstParty":false}