Versions in this module Expand all Collapse all v1 v1.10.2 Apr 1, 2021 Changes in this version + var NotFound = errors.New("not found") + type CallMsg struct + AccessList types.AccessList + Data []byte + From common.Address + Gas uint64 + GasPrice *big.Int + To *common.Address + Value *big.Int + type ChainReader interface + BlockByHash func(ctx context.Context, hash common.Hash) (*types.Block, error) + BlockByNumber func(ctx context.Context, number *big.Int) (*types.Block, error) + HeaderByHash func(ctx context.Context, hash common.Hash) (*types.Header, error) + HeaderByNumber func(ctx context.Context, number *big.Int) (*types.Header, error) + SubscribeNewHead func(ctx context.Context, ch chan<- *types.Header) (Subscription, error) + TransactionCount func(ctx context.Context, blockHash common.Hash) (uint, error) + TransactionInBlock func(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error) + type ChainStateReader interface + BalanceAt func(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) + CodeAt func(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error) + NonceAt func(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error) + StorageAt func(ctx context.Context, account common.Address, key common.Hash, ...) ([]byte, error) + type ChainSyncReader interface + SyncProgress func(ctx context.Context) (*SyncProgress, error) + type ContractCaller interface + CallContract func(ctx context.Context, call CallMsg, blockNumber *big.Int) ([]byte, error) + type FilterQuery struct + Addresses []common.Address + BlockHash *common.Hash + FromBlock *big.Int + ToBlock *big.Int + Topics [][]common.Hash + type GasEstimator interface + EstimateGas func(ctx context.Context, call CallMsg) (uint64, error) + type GasPricer interface + SuggestGasPrice func(ctx context.Context) (*big.Int, error) + type LogFilterer interface + FilterLogs func(ctx context.Context, q FilterQuery) ([]types.Log, error) + SubscribeFilterLogs func(ctx context.Context, q FilterQuery, ch chan<- types.Log) (Subscription, error) + type PendingContractCaller interface + PendingCallContract func(ctx context.Context, call CallMsg) ([]byte, error) + type PendingStateEventer interface + SubscribePendingTransactions func(ctx context.Context, ch chan<- *types.Transaction) (Subscription, error) + type PendingStateReader interface + PendingBalanceAt func(ctx context.Context, account common.Address) (*big.Int, error) + PendingCodeAt func(ctx context.Context, account common.Address) ([]byte, error) + PendingNonceAt func(ctx context.Context, account common.Address) (uint64, error) + PendingStorageAt func(ctx context.Context, account common.Address, key common.Hash) ([]byte, error) + PendingTransactionCount func(ctx context.Context) (uint, error) + type Subscription interface + Err func() <-chan error + Unsubscribe func() + type SyncProgress struct + CurrentBlock uint64 + HighestBlock uint64 + KnownStates uint64 + PulledStates uint64 + StartingBlock uint64 + type TransactionReader interface + TransactionByHash func(ctx context.Context, txHash common.Hash) (tx *types.Transaction, isPending bool, err error) + TransactionReceipt func(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + type TransactionSender interface + SendTransaction func(ctx context.Context, tx *types.Transaction) error