ethutils

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL