Documentation ¶ Index ¶ func IsValidAddress(iaddress any) bool func IsZeroAddress(iaddress any) bool func ShowSignificant(amount *big.Int, decimals uint8, significantDigits uint, opt ...number.Option) string func ToDecimal(ivalue any, decimals uint8) decimal.Decimal func ToWei(iamount any, decimals uint8) *big.Int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IsValidAddress ¶ func IsValidAddress(iaddress any) bool IsValidAddress validate hex address. func IsZeroAddress ¶ func IsZeroAddress(iaddress any) bool IsZeroAddress validate if it's a 0 address. func ShowSignificant ¶ func ShowSignificant(amount *big.Int, decimals uint8, significantDigits uint, opt ...number.Option) string func ToDecimal ¶ func ToDecimal(ivalue any, decimals uint8) decimal.Decimal ToDecimal wei to decimals. func ToWei ¶ func ToWei(iamount any, decimals uint8) *big.Int ToWei decimals to wei. Types ¶ This section is empty. Source Files ¶ View all Source files ethutils.go Click to show internal directories. Click to hide internal directories.