{"uid":"cap_S971oZOxrNNbsBCdY2gNs","slug":"delx-wei-ether-convert-bd1a68ab","name":"Delx Wei Ether Convert","description":"Convert between wei and ether using fixed 1e18 scaling without RPC — call when converting wei↔ether with fixed 1e18 scaling. Use for chain input hygiene without live RPC—adjacent to OneSource-class small chain reads, but static/local only so rights and margin stay clear. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web searc…","url":"https://api.delx.ai/api/v1/x402/wei-ether-convert","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_ihBhiXCQ3QgPGvzXtvFig","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 a numeric amount between wei and ether units using fixed 1e18 scaling, locally and without any RPC call","exampleAgentPrompt":"Convert 1500000000000000000 wei to ether for me — direction is wei_to_ether.","exampleUseCases":[{"title":"Display ether balance from raw wei","prompt":"I have a raw balance of 2750000000000000000 wei from a contract read — convert that to ether so I can show it to the user."},{"title":"Prepare ether-to-wei input for transaction","prompt":"I need to send 0.05 ether but the contract expects wei — convert 0.05 ether to wei for me using ether_to_wei."},{"title":"Normalize gas fee amount for reporting","prompt":"The gas fee came back as 21000000000000 wei — convert that to ether so I can log it in a human-readable format."}],"resultDescription":"A deterministic JSON object containing the converted numeric value in the target unit (ether or wei), computed locally using fixed 1e18 scaling with no live chain dependency.","failureModes":["Missing or null amount field returns validation error","Invalid direction value (not wei_to_ether or ether_to_wei) returns error","Non-numeric amount causes parsing failure","Extremely large numbers may hit floating-point precision limits","Payment failure (insufficient USDC balance or x402 auth issue) blocks execution"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, offline-safe wei↔ether unit conversion without spinning up an RPC connection. It is ideal for input sanitization pipelines, display formatting, and transaction preparation where you only need the fixed 1e18 scaling math and not live chain state. Prefer alternatives if you need live balance lookups, gas estimation, or on-chain data alongside the conversion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:00:20.882Z","isFirstParty":false}