Documentation ¶
Index ¶
- type Client
- func (c *Client) Call(message *jsonrpc2.Message) error
- func (c *Client) Close() error
- func (c *Client) CurrentBlockNumber() (int64, error)
- func (c *Client) GetBlock(number int64) (ethereum.Block, error)
- func (c *Client) GetCode(address string) (*string, error)
- func (c *Client) GetNetworkID() (string, error)
- func (c *Client) GetTransaction(hash string) (ethereum.Transaction, error)
- func (c *Client) GetTransactionCallTrace(hash string) (ethereum.CallTraces, error)
- func (c *Client) GetTransactionReceipt(hash string) (ethereum.TransactionReceipt, error)
- func (c *Client) GetTransactionVMTrace(hash string) (ethereum.TransactionStates, error)
- func (c *Client) Subscribe(forcePoll bool) (chan int64, error)
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 (*Client) CurrentBlockNumber ¶
func (*Client) GetNetworkID ¶
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)
Click to show internal directories.
Click to hide internal directories.