Versions in this module Expand all Collapse all v1 v1.20.8 Aug 4, 2026 Changes in this version + const GweiPerEth + const WeiPerEth + const WeiPerGwei + const WeiPerMilliEth + var Abs = math.Abs + var Ceil = math.Ceil + var Floor = math.Floor + var Pow = math.Pow + func EthToWei(eth float64) *big.Int + func EthToWeiWithDecimals(amountRaw float64, decimals uint8) *big.Int + func GetPowerOfTwoCeil(x uint64) uint64 + func GweiToEth(gwei uint64) float64 + func GweiToWei(gwei float64) *big.Int + func MilliEthToWei(milliEth float64) *big.Int + func RoundDown(val float64, places int) float64 + func RoundUp(val float64, places int) float64 + func WeiToEth(wei *big.Int) float64 + func WeiToEthWithDecimals(amount *big.Int, decimals uint8) float64 + func WeiToGwei(wei *big.Int) float64