client

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: GPL-3.0 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 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

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

func (*Client) Call

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

func (*Client) Close

func (c *Client) Close() error

func (*Client) CurrentBlockNumber

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

func (*Client) GetBlock

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

func (*Client) GetCode

func (c *Client) GetCode(address string) (*string, error)

func (*Client) GetNetworkID

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

func (*Client) GetTransaction

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

func (*Client) GetTransactionCallTrace

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

func (*Client) GetTransactionReceipt

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

func (*Client) GetTransactionVMTrace

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

func (*Client) Subscribe

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

Jump to

Keyboard shortcuts

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