Documentation ¶
Overview ¶
File: blockchain_client_wrapper/geth_wrapper.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGethClientWrapper ¶
func NewGethClientWrapper(client *ethclient.Client) api.BlockchainClient
NewGethClientWrapper wraps an existing Geth client.
Types ¶
type GethWrapper ¶
type GethWrapper struct {
// contains filtered or unexported fields
}
GethWrapper wraps a Geth client to implement the BlockchainClient interface.
func (*GethWrapper) BlockNumber ¶
func (g *GethWrapper) BlockNumber(ctx context.Context) (uint64, error)
BlockNumber retrieves the latest block number.
func (*GethWrapper) FilterLogs ¶
func (g *GethWrapper) FilterLogs(ctx context.Context, query api.FilterQuery) ([]api.Log, error)
BlockByNumber retrieves a block by number.
Click to show internal directories.
Click to hide internal directories.