ethereum

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

README

Ethereum Client

Ethereum client is supposed to be a general interface over any ethereum node.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.6.0

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

Client represents an implementation agnostic interface to the Ethereum node. It is able connect to both different protocols (http, ws) and implementations (geth, parity).

func Dial added in v0.6.0

func Dial(target string, protocol string) (*Client, error)

func (*Client) Call added in v0.6.0

func (c *Client) Call(message *jsonrpc2.Message) error

func (*Client) Close added in v0.6.0

func (c *Client) Close() error

func (*Client) CurrentBlockNumber added in v0.6.0

func (c *Client) CurrentBlockNumber() (int64, error)

func (*Client) GetBalance added in v0.6.0

func (c *Client) GetBalance(address string, block *types.Number) (*big.Int, error)

func (*Client) GetBlock added in v0.6.0

func (c *Client) GetBlock(number int64) (types.Block, error)

func (*Client) GetBlockByHash added in v0.6.0

func (c *Client) GetBlockByHash(hash string) (types.BlockHeader, error)

func (*Client) GetCode added in v0.6.0

func (c *Client) GetCode(address string, block *types.Number) (string, error)

func (*Client) GetNetworkID added in v0.6.0

func (c *Client) GetNetworkID() (string, error)

func (*Client) GetNonce added in v0.6.0

func (c *Client) GetNonce(address string, block *types.Number) (uint64, error)

func (*Client) GetStorageAt added in v0.6.0

func (c *Client) GetStorageAt(hash string, offset common.Hash, block *types.Number) (*common.Hash, error)

func (*Client) GetTransaction added in v0.6.0

func (c *Client) GetTransaction(hash string) (types.Transaction, error)

func (*Client) GetTransactionCallTrace added in v0.6.0

func (c *Client) GetTransactionCallTrace(hash string) (types.CallTraces, error)

func (*Client) GetTransactionReceipt added in v0.6.0

func (c *Client) GetTransactionReceipt(hash string) (types.TransactionReceipt, error)

func (*Client) GetTransactionVMTrace added in v0.6.0

func (c *Client) GetTransactionVMTrace(hash string) (types.TransactionStates, error)

func (*Client) Subscribe added in v0.6.0

func (c *Client) Subscribe(forcePoll bool) (chan int64, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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