Documentation ¶
Index ¶
- type Client
- func (c *Client) BlockByNumber(ctx context.Context, number types.BlockNumber) (*types.BlockTxHashes, error)
- func (c *Client) BlockNumber(ctx context.Context) (uint64, error)
- func (c *Client) FilterLogs(ctx context.Context, q types.FilterLogsQuery) ([]types.Log, error)
- func (c *Client) FullBlockByNumber(ctx context.Context, number types.BlockNumber) (*types.BlockTxObjects, error)
- func (c *Client) GetStorageAt(ctx context.Context, account types.Address, key types.Hash, ...) (*types.Hash, error)
- func (c *Client) GetTransactionCount(ctx context.Context, acc types.Address, block types.BlockNumber) (uint64, error)
- func (c *Client) SendRawTransaction(ctx context.Context, data types.Bytes) (*types.Hash, 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 is a lightweight Ethereum RPC client that aims to be compatible with different Ethereum based blockchains.
Unlike the official go-ethereum client, this client does not verify responses from the server. This is necessary because responses from some blockchains (such as Arbitrum) are not compatible with the go-ethereum client, so they do not pass verification.
func (*Client) BlockByNumber ¶
func (c *Client) BlockByNumber(ctx context.Context, number types.BlockNumber) (*types.BlockTxHashes, error)
BlockByNumber implements the ethereumv2.Client.
func (*Client) BlockNumber ¶
BlockNumber implements the ethereumv2.Client.
func (*Client) FilterLogs ¶
FilterLogs implements the ethereumv2.Client.
func (*Client) FullBlockByNumber ¶
func (c *Client) FullBlockByNumber(ctx context.Context, number types.BlockNumber) (*types.BlockTxObjects, error)
FullBlockByNumber implements the ethereumv2.Client.
func (*Client) GetStorageAt ¶
func (c *Client) GetStorageAt( ctx context.Context, account types.Address, key types.Hash, block types.BlockNumber) (*types.Hash, error)
GetStorageAt implements the ethereumv2.Client.
Click to show internal directories.
Click to hide internal directories.