utils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EstimateGas

func EstimateGas(client ethclient.Client, from, to common.Address, data []byte) (uint64, error)

func GenerateCallDataFromAbi

func GenerateCallDataFromAbi(meta *bind.MetaData, method string, args ...interface{}) ([]byte, error)

func GetPrivateKey

func GetPrivateKey(private string) (*ecdsa.PrivateKey, error)

func IsContract

func IsContract(client *ethclient.Client, address common.Address) bool

func IsValidAddress

func IsValidAddress(iaddress interface{}) bool

IsValidAddress validate hex address

Types

This section is empty.

Jump to

Keyboard shortcuts

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