Versions in this module Expand all Collapse all v0 v0.0.9 Oct 28, 2019 Changes in this version + const MAX_BATCH_SIZE + var ErrApiRequestFailed = errors.New("etherscan api request failed") + var ErrEmptyHeader = errors.New("empty header returned over RPC") + var ErrInvalidAbiFile = errors.New("invalid abi") + var ErrInvalidStateAttribute = errors.New("invalid state attribute") + var ErrMissingAbiFile = errors.New("missing abi") + func GenURL(network string) string + func ParseAbi(abiString string) (abi.ABI, error) + func ParseAbiFile(abiFilePath string) (abi.ABI, error) + func ReadAbiFile(abiFilePath string) (string, error) + type BlockChain struct + func NewBlockChain(ethClient core.EthClient, rpcClient core.RpcClient, node core.Node, ...) *BlockChain + func (blockChain *BlockChain) FetchContractData(abiJSON string, address string, method string, methodArgs []interface{}, ...) error + func (blockChain *BlockChain) GetAccountBalance(address common.Address, blockNumber *big.Int) (*big.Int, error) + func (blockChain *BlockChain) GetBlockByNumber(blockNumber int64) (block core.Block, err error) + func (blockChain *BlockChain) GetEthLogsWithCustomQuery(query ethereum.FilterQuery) ([]types.Log, error) + func (blockChain *BlockChain) GetFullSyncLogs(contract core.Contract, startingBlockNumber, endingBlockNumber *big.Int) ([]core.FullSyncLog, error) + func (blockChain *BlockChain) GetHeaderByNumber(blockNumber int64) (header core.Header, err error) + func (blockChain *BlockChain) GetHeadersByNumbers(blockNumbers []int64) (header []core.Header, err error) + func (blockChain *BlockChain) GetTransactions(transactionHashes []common.Hash) ([]core.TransactionModel, error) + func (blockChain *BlockChain) LastBlock() (*big.Int, error) + func (blockChain *BlockChain) Node() core.Node + type EtherScanAPI struct + func NewEtherScanClient(url string) *EtherScanAPI + func (e *EtherScanAPI) GetAbi(contractHash string) (string, error) + type Response struct + Message string + Result string + Status string