ethclient

package
v0.0.0-...-fb28cc1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client wraps the Ethereum client.

func NewClient

func NewClient(nodeURL string) *Client

NewClient creates a new Ethereum client.

func (*Client) GetAccountBalance

func (c *Client) GetAccountBalance(accountAddress string) (*big.Int, error)

GetAccountBalance returns the balance of the specified account.

func (*Client) GetChainID

func (c *Client) GetChainID(address common.Address) (chainID *big.Int, err error)

GetChainID returns the chain id.

func (*Client) GetCurrentBlockNumber

func (c *Client) GetCurrentBlockNumber() (uint64, error)

GetCurrentBlockNumber returns the current block number.

func (*Client) GetNonce

func (c *Client) GetNonce(address common.Address) (*big.Int, error)

GetNodeIDs returns the nonce.

Jump to

Keyboard shortcuts

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