eth_utils

package module
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 9 Imported by: 0

README

eth-utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromEther added in v0.3.0

func FromEther(ether string) (*big.Int, bool)

func SignTx added in v0.2.0

func SignTx(
	signer *ecdsa.PrivateKey, chainId *big.Int, nonce uint64,
	to *common.Address, value *big.Int, data []byte,
	maxPriorityFeePerGas, maxFeePerGas *big.Int, gasLimit uint64,
) (*types.Transaction, error)

func ToEther

func ToEther(wei *big.Int) string

func ToGwei

func ToGwei(wei *big.Int) string

func WaitConfirm added in v0.5.0

func WaitConfirm(ctx context.Context, ec *ethclient.Client, txHash common.Hash, timeout time.Duration) error

Types

This section is empty.

Directories

Path Synopsis
address

Jump to

Keyboard shortcuts

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