{"uid":"cap_H-bttM8B_MwKtpYEDeim3","slug":"wei-to-gwei-converter-bee79be0","name":"Wei to Gwei Converter","description":"Convert wei integer strings into gwei for readable gas quotes. Call when you need human-readable gas price from a wei field without an RPC call. Returns gwei float plus original wei string 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/wei-to-gwei","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"wei":{"type":"string","description":"Input field: wei."}}},"responseSchema":{"type":"json","example":{"wei":"1500000000","gwei":1.5,"schema":"delx/util-wei-to-gwei/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_f5c9v2Jfe5mxggcZC8Idd","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 wei integer string to a human-readable gwei float value using pure local arithmetic, no RPC call required.","exampleAgentPrompt":"Convert this wei value to gwei so I can show a readable gas price — the wei amount is 1500000000000.","exampleUseCases":[{"title":"Gas price display in wallet UI","prompt":"I have a gas price returned as a wei string — '2500000000' — can you convert that to gwei so I can show it to the user in a readable format?"},{"title":"Quote gas cost before transaction","prompt":"Before I send this transaction, convert the estimated gas fee of '85000000000' wei to gwei so I can present a human-friendly cost estimate."},{"title":"Log readable gas price from on-chain event","prompt":"I just captured a gas price field from an on-chain event that reads '1200000000' wei — convert it to gwei for my log display."}],"resultDescription":"Returns a deterministic JSON object containing the converted gwei float value and the original wei string as provided. No RPC call or live data is involved — purely local arithmetic division (wei / 1e9).","failureModes":["Non-numeric or malformed wei string causes a validation error","Extremely large integer strings beyond float precision may lose accuracy","Missing 'wei' field in request body returns an error","Payment failure via x402 results in a 402 response before processing"],"whenToPreferThis":"Choose this endpoint when you have a raw wei integer string from a smart contract field, transaction receipt, or API response and need to display it as gwei without making an RPC call. Ideal for gas quote rendering, logging, or UI formatting where you want a deterministic, stateless conversion at minimal cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:01:07.920Z","isFirstParty":false}