Versions in this module Expand all Collapse all v1 v1.17.3 Jul 6, 2026 Changes in this version + var NotFound = errors.New("not found") + type BlockNumberReader interface + BlockNumber func(ctx context.Context) (uint64, error) + type BlockOverrides struct + BaseFee *big.Int + Coinbase common.Address + Difficulty *big.Int + GasLimit uint64 + Number *big.Int + Random common.Hash + Time uint64 + func (o BlockOverrides) MarshalJSON() ([]byte, error) + type CallMsg struct + AccessList types.AccessList + AuthorizationList []types.SetCodeAuthorization + BlobGasFeeCap *big.Int + BlobHashes []common.Hash + Data []byte + From common.Address + Gas uint64 + GasFeeCap *big.Int + GasPrice *big.Int + GasTipCap *big.Int + To *common.Address + Value *big.Int + type ChainIDReader interface + ChainID func(ctx context.Context) (*big.Int, error) + 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 FeeHistory struct + BaseFee []*big.Int + GasUsedRatio []float64 + OldestBlock *big.Int + Reward [][]*big.Int + type FeeHistoryReader interface + FeeHistory func(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...) (*FeeHistory, 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 GasPricer1559 interface + SuggestGasTipCap 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 OverrideAccount struct + Balance *big.Int + Code []byte + Nonce uint64 + State map[common.Hash]common.Hash + StateDiff map[common.Hash]common.Hash + func (a OverrideAccount) MarshalJSON() ([]byte, 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 + HealedBytecodeBytes uint64 + HealedBytecodes uint64 + HealedTrienodeBytes uint64 + HealedTrienodes uint64 + HealingBytecode uint64 + HealingTrienodes uint64 + HighestBlock uint64 + KnownStates uint64 + PulledStates uint64 + StartingBlock uint64 + StateIndexRemaining uint64 + SyncedAccessLists uint64 + SyncedAccountBytes uint64 + SyncedAccounts uint64 + SyncedBytecodeBytes uint64 + SyncedBytecodes uint64 + SyncedStorage uint64 + SyncedStorageBytes uint64 + TotalAccessLists uint64 + TrieGenProgress uint64 + TrienodeIndexRemaining uint64 + TxIndexFinishedBlocks uint64 + TxIndexRemainingBlocks uint64 + func (prog SyncProgress) Done() bool + type TransactionReader interface + SubscribeTransactionReceipts func(ctx context.Context, q *TransactionReceiptsQuery, ch chan<- []*types.Receipt) (Subscription, error) + 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 TransactionReceiptsQuery struct + TransactionHashes []common.Hash + type TransactionSender interface + SendTransaction func(ctx context.Context, tx *types.Transaction) error