blockchain_client_wrapper

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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