Documentation ¶
Index ¶
- func NewService(c *config.Chain, x *xlog.XLog, store collect.StoreTaskInterface, nodeId string, ...) collect.BlockChainInterface
- type Service
- func (s *Service) CheckAddress(txValue []byte, monitorAddress map[string]int64) bool
- func (s *Service) GetBlockByHash(blockHash string, eLog *logrus.Entry, flag bool) (*collect.BlockInterface, []*collect.TxInterface)
- func (s *Service) GetBlockByNumber(blockNumber string, eLog *logrus.Entry, flag bool) (*collect.BlockInterface, []*collect.TxInterface)
- func (s *Service) GetMultiBlockByNumber(blockNumber string, log *logrus.Entry, flag bool) ([]*collect.BlockInterface, []*collect.TxInterface)
- func (s *Service) GetReceipt(txHash string, eLog *logrus.Entry) (*collect.ReceiptInterface, error)
- func (s *Service) GetReceiptByBlock(blockHash, number string, eLog *logrus.Entry) ([]*collect.ReceiptInterface, error)
- func (s *Service) GetTx(txHash string, eLog *logrus.Entry) *collect.TxInterface
- func (s *Service) Monitor()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(c *config.Chain, x *xlog.XLog, store collect.StoreTaskInterface, nodeId string, transferTopic string) collect.BlockChainInterface
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CheckAddress ¶
func (*Service) GetBlockByHash ¶
func (s *Service) GetBlockByHash(blockHash string, eLog *logrus.Entry, flag bool) (*collect.BlockInterface, []*collect.TxInterface)
func (*Service) GetBlockByNumber ¶
func (s *Service) GetBlockByNumber(blockNumber string, eLog *logrus.Entry, flag bool) (*collect.BlockInterface, []*collect.TxInterface)
func (*Service) GetMultiBlockByNumber ¶
func (s *Service) GetMultiBlockByNumber(blockNumber string, log *logrus.Entry, flag bool) ([]*collect.BlockInterface, []*collect.TxInterface)
func (*Service) GetReceipt ¶
func (*Service) GetReceiptByBlock ¶
Click to show internal directories.
Click to hide internal directories.