Wei to gwei converter
Convert wei, the base unit of ether, into gwei. One gwei equals 10^9 wei, so this tool divides your wei input by 1,000,000,000 to give the gwei value.
完全在浏览器中运行。无需 API 密钥,数据不离开本页面。
The exact relationship
1 gwei = 10^9 wei, so to convert wei to gwei you divide by 1,000,000,000. That makes 1000000000 wei equal to 1 gwei and 25000000000 wei equal to 25 gwei. Since wei is the smallest unit, the result may carry decimals for values that are not exact multiples of 10^9.
Where you hit this in real work
RPC responses report gas prices in wei, hex-encoded. When eth_gasPrice returns 0x4a817c800 you decode 20000000000 wei, which is 20 gwei. Converting the raw wei figure into gwei turns an opaque number into the gas price you actually reason about.
常见问题
What is 1000000000 wei in gwei?
It is exactly 1 gwei, because one gwei is defined as 10^9 wei.
Why do RPC calls return gas prices in wei?
Wei is the canonical base unit for all ether amounts on chain, so nodes report every value, including gas prices, in wei for consistency.
相关工具
充值、拿密钥、上线。
自助开通。支持加密货币或银行卡。按额度计费——重型原语更贵,简单调用很便宜。
获取 API 密钥