Documentation ¶
Index ¶
- func GetReceiptFromJson(js string) *collect.Receipt
- func NewService(c *config.Chain, x *xlog.XLog, store collect.StoreTaskInterface, nodeId string, ...) collect.BlockChainInterface
- type Service
- func (s *Service) CheckAddress(tx []byte, addrList 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 GetReceiptFromJson ¶
GetReceiptFromJson *
{ "transactionHash": "0x5917da4788cdc1383215541744beb93fd804c1902e221d2c5555ce99d9bfff42", "blockHash": "0xb49d607f5b80890531e3e1d57798a7573cf8e18048ec0df34e3c81d48115078f", "blockNumber": "0xf3f088", "logs": [ { "transactionHash": "0x5917da4788cdc1383215541744beb93fd804c1902e221d2c5555ce99d9bfff42", "address": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce", "blockHash": "0xb49d607f5b80890531e3e1d57798a7573cf8e18048ec0df34e3c81d48115078f", "blockNumber": "0xf3f088", "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "logIndex": "0x147", "removed": false, "topics": [ "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", "0x000000000000000000000000f4e07370db628044ee8556d1dedb0417bd518970", "0x000000000000000000000000a152f8bb749c55e9943a3a0a3111d18ee2b3f94e" ], "transactionIndex": "0x9a" } ], "contractAddress": null, "effectiveGasPrice": "0x2ea75f237", "cumulativeGasUsed": "0xc2ec5d", "from": "0xf4e07370db628044ee8556d1dedb0417bd518970", "gasUsed": "0xb5d7", "logsBloom": "0x00000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000002000000000100000400000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000002090000000000000200000000000000000000000000000000000000000000000", "status": "0x1", "to": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce", "transactionIndex": "0x9a", "type": "0x2" }
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.