ethclient

package
v0.0.0-...-f7b1169 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: GPL-3.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthClient

type EthClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, wsURL string, maxRetry int) *EthClient

func (EthClient) BlockNumber

func (c EthClient) BlockNumber() uint64

func (EthClient) ChainID

func (c EthClient) ChainID() *big.Int

func (EthClient) FilterLogs

func (c EthClient) FilterLogs(query ethereum.FilterQuery) []types.Log

func (EthClient) GetEthereumClient

func (c EthClient) GetEthereumClient() *ethclient.Client

func (EthClient) NetworkID

func (c EthClient) NetworkID() *big.Int

func (EthClient) PendingNonceAt

func (c EthClient) PendingNonceAt(account common.Address) uint64

func (EthClient) SendTransaction

func (c EthClient) SendTransaction(tx *types.Transaction)

func (EthClient) SuggestGasPrice

func (c EthClient) SuggestGasPrice() *big.Int

func (EthClient) TransactionReceipt

func (c EthClient) TransactionReceipt(txHash common.Hash) *types.Receipt

Jump to

Keyboard shortcuts

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