Versions in this module Expand all Collapse all v0 v0.6.0 Jan 23, 2020 v0.5.0 Jan 23, 2020 Changes in this version + type EthBlockChainRPC struct + func NewEthRPC(api string) *EthBlockChainRPC + func (rpc EthBlockChainRPC) GetBlockByNum(num uint64) (blockchain.Block, error) + func (rpc EthBlockChainRPC) GetCurrentBlockNum() (uint64, error) + func (rpc EthBlockChainRPC) GetLiteBlockByNum(num uint64) (blockchain.Block, error) + func (rpc EthBlockChainRPC) GetLogs(fromBlockNum, toBlockNum uint64, address string, topics []string) ([]blockchain.IReceiptLog, error) + func (rpc EthBlockChainRPC) GetTransactionReceipt(txHash string) (blockchain.TransactionReceipt, error) + type EthBlockChainRPCWithRetry struct + func NewEthRPCWithRetry(api string, maxRetryCount int) *EthBlockChainRPCWithRetry + func (rpc EthBlockChainRPCWithRetry) GetBlockByNum(num uint64) (rst blockchain.Block, err error) + func (rpc EthBlockChainRPCWithRetry) GetCurrentBlockNum() (rst uint64, err error) + func (rpc EthBlockChainRPCWithRetry) GetLiteBlockByNum(num uint64) (rst blockchain.Block, err error) + func (rpc EthBlockChainRPCWithRetry) GetLogs(fromBlockNum, toBlockNum uint64, address string, topics []string) (rst []blockchain.IReceiptLog, err error) + func (rpc EthBlockChainRPCWithRetry) GetTransactionReceipt(txHash string) (rst blockchain.TransactionReceipt, err error) + type IBlockChainRPC interface + GetBlockByNum func(uint64) (blockchain.Block, error) + GetCurrentBlockNum func() (uint64, error) + GetLiteBlockByNum func(uint64) (blockchain.Block, error) + GetLogs func(from, to uint64, address string, topics []string) ([]blockchain.IReceiptLog, error) + GetTransactionReceipt func(txHash string) (blockchain.TransactionReceipt, error)