{"uid":"cap_RpIZW-EVlyS0Xq8WHFFID","slug":"gwei-to-wei-converter-8218044f","name":"Gwei to Wei Converter","description":"Convert gas prices from gwei into wei integer strings for EVM transactions. Call when you hold gas price in gwei and need wei for eth_gasPrice-style fields or tx builders. Returns wei as a decimal integer string plus input gwei 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/gwei-to-wei","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"gwei":{"type":"number","description":"Input field: gwei."}}},"responseSchema":{"type":"json","example":{"wei":"1500000000","gwei":1.5,"schema":"delx/util-gwei-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_MrrMaNuLeVp143qYGOiY4","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 gas price value from gwei to its equivalent wei integer string for use in EVM transaction builders and eth_gasPrice-style fields.","exampleAgentPrompt":"Convert 25 gwei to wei so I can use it in my EVM transaction builder as the gas price field.","exampleUseCases":[{"title":"Set gas price for ETH transfer","prompt":"I'm building a raw Ethereum transaction and need to set the gasPrice field — convert 15 gwei to wei so I can plug it in."},{"title":"Validate gas budget against wei limit","prompt":"My gas oracle returned 30 gwei — what's that in wei so I can compare it against the wei limit in my contract?"},{"title":"Format gas price for RPC call","prompt":"I need to pass a gas price to an eth_gasPrice-style RPC field and my source gives me 10 gwei — can you convert that to the exact wei integer string?"}],"resultDescription":"Returns a JSON object containing the input gwei value echoed back and the equivalent wei expressed as a decimal integer string (e.g. 25 gwei → \"25000000000\"), enabling direct use in EVM transaction fields without further formatting.","failureModes":["Missing or non-numeric gwei input returns a validation error","Negative or zero gwei values may return an error or unexpected result","Payment failure via x402 prevents the conversion from executing","Extremely large gwei values may exceed integer precision bounds"],"whenToPreferThis":"Choose this endpoint when you already have a gas price expressed in gwei and need a precise, correctly-formatted wei integer string for use in EVM transaction builders, eth_gasPrice RPC fields, or on-chain gas budget checks — especially when you want a deterministic, local-math result with no RPC dependency, no API key, and no live market data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:17:00.463Z","isFirstParty":false}