Documentation ¶
Index ¶
- Variables
- func BlockByTime(client *ethclient.Client, t time.Time) (*types.Block, error)
- func CancelTx(client *ethclient.Client, transactOpts *bind.TransactOpts) (*types.Transaction, error)
- func GetGasPrice(client *ethclient.Client, addon *big.Int, limit *big.Int) (*big.Int, error)
- func GweiToWei(gwei int64) (*big.Int, error)
- func IsContractAddress(client *ethclient.Client, address common.Address) (bool, error)
- func NewEthClient(rpc string) (*ethclient.Client, error)
- func NewTransactorFromECDSA(filePath string) (*bind.TransactOpts, error)
- func NewTransactorFromKeystore(keystore, passphrase string) (*bind.TransactOpts, error)
- func SendEther(client *ethclient.Client, transactOpts *bind.TransactOpts, to common.Address, ...) (*types.Transaction, error)
- func ToEther(wei *big.Int) *big.Float
- func ToGwei(wei *big.Int) *big.Float
- func ToWei(ether *big.Float) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var AverageBlockGenerationTime = int64(15)
View Source
var NilAddress = common.HexToAddress("0x0")
View Source
var TrialCount = 10
Functions ¶
func CancelTx ¶
func CancelTx(client *ethclient.Client, transactOpts *bind.TransactOpts) (*types.Transaction, error)
func GetGasPrice ¶
func IsContractAddress ¶
func NewTransactorFromECDSA ¶
func NewTransactorFromECDSA(filePath string) (*bind.TransactOpts, error)
func NewTransactorFromKeystore ¶
func NewTransactorFromKeystore(keystore, passphrase string) (*bind.TransactOpts, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.