Versions in this module Expand all Collapse all v1 v1.0.0 Sep 20, 2023 Changes in this version + const Ether + const GWei + const Wei + var Big0 = big.NewInt(0) + var Big1 = big.NewInt(1) + var Big2 = big.NewInt(2) + var Big256 = big.NewInt(256) + var Big257 = big.NewInt(257) + var Big3 = big.NewInt(3) + var Big32 = big.NewInt(32) + var ErrStopped = errors.New("stopped") + var ErrUnwind = errors.New("unwound") + func BitLenToByteLen(bitLen int) (byteLen int) + func ByteCount(b uint64) string + func CliString2Array(input string) []string + func Copy(b []byte) []byte + func EnsureEnoughSize(in []byte, size int) []byte + func FromHex(in string) []byte + func IsHexAddress(s string) bool + func MBToGB(b uint64) (float64, int) + func PrioritizedSend(ch chan t, msg t) + func RootContext() (context.Context, context.CancelFunc) + func SafeClose(ch chan struct{}) + func Stopped(ch <-chan struct{}) error + type Address [length.Addr]byte + func BigToAddress(b *big.Int) Address + func BytesToAddress(b []byte) Address + func HexToAddress(s string) Address + func (a *Address) Scan(src interface{}) error + func (a *Address) SetBytes(b []byte) + func (a *Address) UnmarshalJSON(input []byte) error + func (a *Address) UnmarshalText(input []byte) error + func (a Address) Bytes() []byte + func (a Address) Format(s fmt.State, c rune) + func (a Address) Hash() Hash + func (a Address) Hex() string + func (a Address) MarshalText() ([]byte, error) + func (a Address) String() string + func (a Address) Value() (driver.Value, error) + type Bytes4 [length.Bytes4]byte + func (b *Bytes4) SetBytes(i []byte) + func (b *Bytes4) UnmarshalJSON(input []byte) error + func (b *Bytes4) UnmarshalText(input []byte) error + func (b Bytes4) Format(s fmt.State, c rune) + func (b Bytes4) Generate(rand *rand.Rand, size int) reflect.Value + func (b Bytes4) Hex() string + func (b Bytes4) MarshalText() ([]byte, error) + func (b Bytes4) String() string + func (b Bytes4) TerminalString() string + func (b Bytes4) Value() (driver.Value, error) + type Bytes48 [length.Bytes48]byte + func (b *Bytes48) SetBytes(i []byte) + func (b *Bytes48) UnmarshalJSON(input []byte) error + func (b *Bytes48) UnmarshalText(input []byte) error + func (b Bytes48) Format(s fmt.State, c rune) + func (b Bytes48) Generate(rand *rand.Rand, size int) reflect.Value + func (b Bytes48) Hex() string + func (b Bytes48) MarshalText() ([]byte, error) + func (b Bytes48) String() string + func (b Bytes48) TerminalString() string + func (b Bytes48) Value() (driver.Value, error) + type Bytes64 [length.Bytes64]byte + func (b *Bytes64) SetBytes(i []byte) + func (b *Bytes64) UnmarshalJSON(input []byte) error + func (b *Bytes64) UnmarshalText(input []byte) error + func (b Bytes64) Format(s fmt.State, c rune) + func (b Bytes64) Hex() string + func (b Bytes64) MarshalText() ([]byte, error) + func (b Bytes64) String() string + func (b Bytes64) TerminalString() string + func (b Bytes64) Value() (driver.Value, error) + type Bytes96 [length.Bytes96]byte + func (b *Bytes96) SetBytes(i []byte) + func (b *Bytes96) UnmarshalJSON(input []byte) error + func (b *Bytes96) UnmarshalText(input []byte) error + func (b Bytes96) Format(s fmt.State, c rune) + func (b Bytes96) Generate(rand *rand.Rand, size int) reflect.Value + func (b Bytes96) Hex() string + func (b Bytes96) MarshalText() ([]byte, error) + func (b Bytes96) String() string + func (b Bytes96) TerminalString() string + func (b Bytes96) Value() (driver.Value, error) + type CodeRecord struct + BlockNumber uint64 + CodeHash Hash + TxNumber uint64 + type Hash [length.Hash]byte + func BigToHash(b *big.Int) Hash + func BytesToHash(b []byte) Hash + func CastToHash(b []byte) Hash + func HexToHash(s string) Hash + func (h *Hash) Scan(src interface{}) error + func (h *Hash) SetBytes(b []byte) + func (h *Hash) UnmarshalJSON(input []byte) error + func (h *Hash) UnmarshalText(input []byte) error + func (h Hash) Big() *big.Int + func (h Hash) Bytes() []byte + func (h Hash) Format(s fmt.State, c rune) + func (h Hash) Generate(rand *rand.Rand, size int) reflect.Value + func (h Hash) Hex() string + func (h Hash) MarshalText() ([]byte, error) + func (h Hash) String() string + func (h Hash) TerminalString() string + func (h Hash) Value() (driver.Value, error)