Versions in this module Expand all Collapse all v0 v0.0.9 Oct 28, 2019 v0.0.8 Oct 3, 2019 Changes in this version type RpcClient + Subscribe func(namespace string, payloadChan interface{}, args ...interface{}) (*rpc.ClientSubscription, error) v0.0.7 Sep 23, 2019 Changes in this version type BlockChain + GetFullSyncLogs func(contract Contract, startingBlockNumber *big.Int, endingBlockNumber *big.Int) ([]FullSyncLog, error) + type FullSyncLog struct + Address string + BlockNumber int64 + Data string + Index int64 + TxHash string + type HeaderSyncLog struct + HeaderID int64 + ID int64 + Log types.Log + Transformed bool v0.0.6 Aug 26, 2019 v0.0.5 Aug 6, 2019 v0.0.4 Jul 23, 2019 v0.0.3 Jun 17, 2019 Changes in this version type BlockChain + GetHeadersByNumbers func(blockNumbers []int64) ([]Header, error) v0.0.2 May 2, 2019 v0.0.1 Apr 9, 2019 Changes in this version + const KOVAN_NETWORK_ID + type AccountDataFetcher interface + GetAccountBalance func(address common.Address, blockNumber *big.Int) (*big.Int, error) + type Block struct + Difficulty int64 + ExtraData string + GasLimit uint64 + GasUsed uint64 + Hash string + IsFinal bool + Miner string + Nonce string + Number int64 + ParentHash string + Reward string + Size string + Time int64 + Transactions []TransactionModel + UncleHash string + Uncles []Uncle + UnclesReward string + type BlockChain interface + GetBlockByNumber func(blockNumber int64) (Block, error) + GetEthLogsWithCustomQuery func(query ethereum.FilterQuery) ([]types.Log, error) + GetHeaderByNumber func(blockNumber int64) (Header, error) + GetHeaderByNumbers func(blockNumbers []int64) ([]Header, error) + GetLogs func(contract Contract, startingBlockNumber *big.Int, endingBlockNumber *big.Int) ([]Log, error) + GetTransactions func(transactionHashes []common.Hash) ([]TransactionModel, error) + LastBlock func() (*big.Int, error) + Node func() Node + type Contract struct + Abi string + Hash string + Transactions []TransactionModel + type ContractDataFetcher interface + FetchContractData func(abiJSON string, address string, method string, methodArgs []interface{}, ...) error + type EthClient interface + BalanceAt func(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) + BlockByNumber func(ctx context.Context, number *big.Int) (*types.Block, error) + CallContract func(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) + FilterLogs func(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error) + HeaderByNumber func(ctx context.Context, number *big.Int) (*types.Header, error) + TransactionReceipt func(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + TransactionSender func(ctx context.Context, tx *types.Transaction, block common.Hash, index uint) (common.Address, error) + type Header struct + BlockNumber int64 + Hash string + Id int64 + Raw []byte + Timestamp string + type Log struct + Address string + BlockNumber int64 + Data string + Index int64 + TxHash string + type Node struct + ClientName string + GenesisBlock string + ID string + NetworkID float64 + type NodeType int + const GANACHE + const GETH + const INFURA + const PARITY + type POAHeader struct + Bloom types.Bloom + Coinbase common.Address + Difficulty *hexutil.Big + Extra hexutil.Bytes + GasLimit hexutil.Uint64 + GasUsed hexutil.Uint64 + Hash common.Hash + Number *hexutil.Big + ParentHash common.Hash + ReceiptHash common.Hash + Root common.Hash + Time *hexutil.Big + TxHash common.Hash + UncleHash common.Hash + type ParityNodeInfo struct + Hash string + Track string + func (pn ParityNodeInfo) String() string + type ParityVersion struct + Major int + Minor int + Patch int + type Receipt struct + Bloom string + ContractAddress string + CumulativeGasUsed uint64 + GasUsed uint64 + Logs []Log + Rlp []byte + StateRoot string + Status int + TxHash string + type RpcClient interface + BatchCall func(batch []client.BatchElem) error + CallContext func(ctx context.Context, result interface{}, method string, args ...interface{}) error + IpcPath func() string + SupportedModules func() (map[string]string, error) + type RpcTransaction struct + Amount string + From string + GasLimit string + GasPrice string + Hash string + Nonce string + Payload string + R string + Recipient string + S string + TransactionIndex string + V string + type Topics [4]string + type TransactionModel struct + Data []byte + From string + GasLimit uint64 + GasPrice int64 + Hash string + Nonce uint64 + Raw []byte + To string + TxIndex int64 + Value string + type Uncle struct + Hash string + Id int64 + Miner string + Raw []byte + Reward string + Timestamp string + type WatchedEvent struct + Address string + BlockNumber int64 + Data string + Index int64 + LogID int64 + Name string + Topic0 string + Topic1 string + Topic2 string + Topic3 string + TxHash string