Versions in this module Expand all Collapse all v1 v1.0.0 Mar 26, 2021 Changes in this version + type Backend interface + BlockNumber func() (hexutil.Uint64, error) + BloomStatus func() (uint64, uint64) + GetBlockByHash func(hash common.Hash, fullTx bool) (map[string]interface{}, error) + GetBlockByNumber func(blockNum rpctypes.BlockNumber, fullTx bool) (map[string]interface{}, error) + GetLogs func(blockHash common.Hash) ([][]*ethtypes.Log, error) + GetTransactionLogs func(txHash common.Hash) ([]*ethtypes.Log, error) + HeaderByHash func(blockHash common.Hash) (*ethtypes.Header, error) + HeaderByNumber func(blockNum rpctypes.BlockNumber) (*ethtypes.Header, error) + LatestBlockNumber func() (int64, error) + PendingTransactions func() ([]*rpctypes.Transaction, error) + type EthermintBackend struct + func New(clientCtx clientcontext.CLIContext) *EthermintBackend + func (b *EthermintBackend) BlockNumber() (hexutil.Uint64, error) + func (b *EthermintBackend) BloomStatus() (uint64, uint64) + func (b *EthermintBackend) GetBlockByHash(hash common.Hash, fullTx bool) (map[string]interface{}, error) + func (b *EthermintBackend) GetBlockByNumber(blockNum rpctypes.BlockNumber, fullTx bool) (map[string]interface{}, error) + func (b *EthermintBackend) GetLogs(blockHash common.Hash) ([][]*ethtypes.Log, error) + func (b *EthermintBackend) GetTransactionLogs(txHash common.Hash) ([]*ethtypes.Log, error) + func (b *EthermintBackend) HeaderByHash(blockHash common.Hash) (*ethtypes.Header, error) + func (b *EthermintBackend) HeaderByNumber(blockNum rpctypes.BlockNumber) (*ethtypes.Header, error) + func (b *EthermintBackend) LatestBlockNumber() (int64, error) + func (b *EthermintBackend) PendingTransactions() ([]*rpctypes.Transaction, error)