chainclient

package
v0.0.0-...-d9fdf4f Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainClient

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

func NewChainClient

func NewChainClient(nodeconfig config.NodeConfig) (*ChainClient, error)

func (*ChainClient) CurrentBlock

func (client *ChainClient) CurrentBlock() (*types.Block, error)

func (*ChainClient) GetBalance

func (client *ChainClient) GetBalance(addr common.Address) *big.Int

func (*ChainClient) GetBlock

func (client *ChainClient) GetBlock(hash common.Hash, number uint64) *types.Block

func (*ChainClient) NonceAt

func (client *ChainClient) NonceAt(addr common.Address) uint64

func (*ChainClient) NonceAtHeight

func (client *ChainClient) NonceAtHeight(addr common.Address, height *big.Int) uint64

func (*ChainClient) Start

func (client *ChainClient) Start()

func (*ChainClient) SubscribeChainHeadEvent

func (client *ChainClient) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription

Jump to

Keyboard shortcuts

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