ether

package
v0.0.0-...-855f182 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(c *config.Chain, taskDb *config.TaskDb, sourceDb *config.SourceDb, x *xlog.XLog) service.BlockChainInterface

Types

type Service

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

func (*Service) BalanceCluster

func (s *Service) BalanceCluster(key string, clusterList []*config.FromCluster) (*config.FromCluster, error)

func (*Service) GetBlockByHash

func (s *Service) GetBlockByHash(blockHash string, cfg *config.BlockTask, eLog *logrus.Entry) (*service.Block, []*service.Tx)

func (*Service) GetBlockByNumber

func (s *Service) GetBlockByNumber(blockNumber string, task *config.BlockTask, eLog *logrus.Entry) (*service.Block, []*service.Tx)

func (*Service) GetReceipt

func (s *Service) GetReceipt(txHash string, task *config.ReceiptTask, eLog *logrus.Entry) *service.Receipt

func (*Service) GetReceiptByBlock

func (s *Service) GetReceiptByBlock(blockHash, number string, task *config.ReceiptTask, eLog *logrus.Entry) []*service.Receipt

func (*Service) GetTx

func (s *Service) GetTx(txHash string, task *config.TxTask, eLog *logrus.Entry) *service.Tx

func (*Service) Monitor

func (s *Service) Monitor()

Jump to

Keyboard shortcuts

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