Versions in this module Expand all Collapse all v0 v0.0.0 Jul 28, 2023 Changes in this version + func CalcGasCost(gasLimit uint64, gasPrice *big.Int) *big.Int + func FormatAmount(amount *big.Int, decimals int) float64 + func IsContract(addr string) bool + func IsValidAddress(addr interface{}) bool + func IsValidTxHash(txHash string) bool + func IsZeroAddress(addr interface{}) bool + func NewClient() (*ethclient.Client, error) + func NewWssClient() (*ethclient.Client, error) + func SigRSV(isig interface{}) ([32]byte, [32]byte, uint8) + func Sign(privateKeyHex string, msg string) string + func SignWithPrefix(privateKeyHex string, msg string) string + func ToDecimal(val interface{}, decimals int) decimal.Decimal + func ToWei(val interface{}, decimals int) *big.Int + func Verify(fromAddr, signHex, msg string) bool + func VerifyWithPrefix(fromAddr, signHex, msg string) bool + type LogTransfer struct + From common.Address + To common.Address + Value *big.Int