ethereum

package
v0.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetworkFromString

func NetworkFromString(networkStr string) ethereum.Network

NetworkFromString converts a string to an ethereum.Network.

Types

type BaseChain

type BaseChain struct {
	// contains filtered or unexported fields
}

BaseChain represents a base, non-application-specific chain handle. It provides the implementation of generic features like balance monitor, block counter and similar.

func Connect

func Connect(
	ctx context.Context,
	config ethereum.Config,
) (
	*BaseChain,
	error,
)

Connect creates Ethereum chain handle.

func (*BaseChain) BlockCounter

func (bc *BaseChain) BlockCounter() *ethereum.BlockCounter

func (*BaseChain) Client

func (bc *BaseChain) Client() ethutil.EthereumClient

func (*BaseChain) FinalizedBlock

func (bc *BaseChain) FinalizedBlock(ctx context.Context) (*big.Int, error)

Directories

Path Synopsis
bindings
cli

Jump to

Keyboard shortcuts

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