Documentation ¶
Index ¶
- func AddressEqual(address1, address2 string) (bool, error)
- func AddressFormatByEIP55(address string) (string, error)
- func FormatUnits2Float64(iWei interface{}, decimals uint8) (float64, error)
- func GetAddressTxNonceWithClient(client *ethclient.Client, userAddress string) (*uint64, error)
- func GetAddressTxNonceWithRPC(rpc string, userAddress string) (*uint64, error)
- func GetChainIdWithClient(client *ethclient.Client) (uint64, error)
- func GetChainIdWithRPC(rpc string) (uint64, error)
- func GetLatestBlockNumWithClient(client *ethclient.Client) (uint64, error)
- func GetLatestBlockNumWithRPC(rpc string) (uint64, error)
- func GetNativeBalanceWithClient(client *ethclient.Client, address string) (float64, error)
- func GetNativeBalanceWithRPC(rpc string, address string) (float64, error)
- func IsAddressFormatByEIP55(address string) (bool, error)
- func IsHexAddressValid(address string) bool
- func MergeEventMessage(src, dest []*chainModel.EthereumEventMessage) []*chainModel.EthereumEventMessage
- func ParseUnits2String(iValue interface{}, decimals uint8) (string, error)
- func String2BigInt(src string) *big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressEqual ¶
func AddressFormatByEIP55 ¶
func FormatUnits2Float64 ¶
func GetChainIdWithRPC ¶
func GetNativeBalanceWithRPC ¶
func IsAddressFormatByEIP55 ¶
func IsHexAddressValid ¶
func MergeEventMessage ¶
func MergeEventMessage(src, dest []*chainModel.EthereumEventMessage) []*chainModel.EthereumEventMessage
func ParseUnits2String ¶
func String2BigInt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.