utils

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromWei

func FromWei(data interface{}) float64

convert wei

func GetDefaultCallOpts

func GetDefaultCallOpts(address common.Address) *bind.CallOpts

Get default CallOpts

func GetDefautlTransactionOpts

func GetDefautlTransactionOpts(client *ethclient.Client, privateKeyStr string, chainId uint64, gasLimit uint64, gasPriceThreshold uint64) (*bind.TransactOpts, error)

Get default TransactionOpts

func GetGasFee added in v1.5.2

func GetGasFee(client *ethclient.Client, txHash common.Hash) (float64, error)

Get gas fee

Types

This section is empty.

Jump to

Keyboard shortcuts

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