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) GetBalance(address string, block *types.Number) (*big.Int, error)
- func (c *Client) GetBlock(number int64) (types.Block, error)
- func (c *Client) GetBlockByHash(hash string) (types.BlockHeader, error)
- func (c *Client) GetCode(address string, block *types.Number) (string, error)
- func (c *Client) GetNetworkID() (string, error)
- func (c *Client) GetNonce(address string, block *types.Number) (uint64, error)
- func (c *Client) GetStorageAt(hash string, offset common.Hash, block *types.Number) (*common.Hash, error)
- func (c *Client) GetTransaction(hash string) (types.Transaction, error)
- func (c *Client) GetTransactionCallTrace(hash string) (types.CallTraces, error)
- func (c *Client) GetTransactionReceipt(hash string) (types.TransactionReceipt, error)
- func (c *Client) GetTransactionVMTrace(hash string) (types.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 ¶ 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 (*Client) CurrentBlockNumber ¶ added in v0.6.0
func (*Client) GetBalance ¶ added in v0.6.0
func (*Client) GetBlockByHash ¶ added in v0.6.0
func (c *Client) GetBlockByHash(hash string) (types.BlockHeader, error)
func (*Client) GetNetworkID ¶ added in v0.6.0
func (*Client) GetStorageAt ¶ added in v0.6.0
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)
Click to show internal directories.
Click to hide internal directories.