{"uid":"cap_6xJ3KJRKBwQsuB5zvj6Lx","slug":"delx-commerce-wei-ether-unit-converter-8827bb88","name":"Delx Commerce — Wei/Ether Unit Converter","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/wei-ether-convert?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount":{"type":"number","description":"Numeric amount to convert (wei count or ether units depending on direction)."},"direction":{"type":"string","description":"wei_to_ether or ether_to_wei."}}},"responseSchema":{"type":"json","example":{"wei":"1000000000000000000","ether":1,"amount":1000000000000000000,"schema":"delx/util-wei-ether-convert/v1","direction":"wei_to_ether"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lVjLSlt8Mp8auUGuR6Nhl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between Ethereum wei and ether denominations in either direction, returning both unit representations.","exampleAgentPrompt":"Convert 1000000000000000000 wei to ether — I need both the wei and ether values back.","exampleUseCases":[{"title":"Display human-readable ETH balance","prompt":"I have a raw balance of 2500000000000000000 wei from an Ethereum RPC call — convert that to ether so I can show it to the user in a readable format."},{"title":"Prepare wei amount for smart contract","prompt":"I need to send 0.75 ETH to a smart contract but the function requires the amount in wei — convert 0.75 ether to wei for me."},{"title":"Validate transaction value denomination","prompt":"This transaction value came back as 5000000000000000 — convert that wei amount to ether so I can confirm it matches the expected 0.005 ETH payment."}],"resultDescription":"A JSON object containing both the wei representation (as a string) and the ether representation (as a number), along with the original amount, the conversion direction used, and a schema identifier (delx/util-wei-ether-convert/v1).","failureModes":["Missing or invalid 'amount' field returns an error","Invalid 'direction' value (not 'wei_to_ether' or 'ether_to_wei') causes a rejection","Non-numeric amount input triggers a validation error","Payment failure via x402 results in a 402 response before conversion is performed"],"whenToPreferThis":"Use this endpoint when an AI agent needs a reliable, pay-per-use wei/ether conversion without setting up any API keys or accounts, especially in automated blockchain workflows where precision and verifiability matter. Prefer it over local library functions when operating in environments without access to web3 libraries or when a canonical, schema-tagged result is needed for auditability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:44.805Z","isFirstParty":false,"canonicalSlug":"delx-commerce-wei-ether-unit-converter-8827bb88"}