{"uid":"cap_bYoGINtyvwfPJ6E0O2iCu","slug":"ether-to-wei-converter-6099423c","name":"Ether to Wei Converter","description":"Scale ether amounts into wei integer strings for transfers and tx value. Call when preparing value fields, allowances, or transfers denominated in ETH. Returns wei integer string and eth input as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/eth-to-wei","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"eth":{"type":"number","description":"Input field: eth."}}},"responseSchema":{"type":"json","example":{"eth":0.05,"wei":"50000000000000000","schema":"delx/util-eth-to-wei/v1"}},"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_j2M1qbOlXKVqMtMMUARqC","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 an ETH amount (decimal) into its equivalent wei integer string for use in blockchain transaction value fields and allowances.","exampleAgentPrompt":"Convert 0.75 ETH to wei so I can use the result as the value field in an Ethereum transfer transaction.","exampleUseCases":[{"title":"Preparing ERC20 transfer value","prompt":"I need to send 1.25 ETH in a transaction — what's that in wei so I can set the value field correctly?"},{"title":"Setting smart contract allowance","prompt":"I'm approving a DeFi contract to spend 0.05 ETH on my behalf — convert that to wei for the allowance parameter."},{"title":"Validating tx value before broadcast","prompt":"Before I broadcast this transaction, can you convert 2.3 ETH to wei so I can double-check the value field is right?"}],"resultDescription":"A deterministic JSON object containing the wei integer string equivalent of the input ETH amount and the original ETH input echoed back — computed locally with no RPC or external data.","failureModes":["Missing or non-numeric 'eth' field returns an error response","Negative ETH values may produce unexpected results","Extremely large ETH values may hit floating-point precision limits","Payment failure over x402 protocol blocks the call"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, offline conversion of an ETH decimal amount to a wei integer string — particularly when preparing transaction value fields, ERC20 allowances, or transfer amounts in a pipeline where no RPC call is needed. Prefer this over manual multiplication when you need a reliable, correctly-scaled integer string with no rounding errors from floating-point math.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:56:50.995Z","isFirstParty":false}