Versions in this module Expand all Collapse all v0 v0.5.6 Jul 16, 2024 v0.0.1 Jun 28, 2024 Changes in this version + var NotFound = errors.New("not found") + type AcceptedContractCaller interface + AcceptedCallContract func(ctx context.Context, call CallMsg) ([]byte, error) + type AcceptedStateReader interface + AcceptedCodeAt func(ctx context.Context, account common.Address) ([]byte, error) + AcceptedNonceAt func(ctx context.Context, account common.Address) (uint64, error) + type CallMsg struct + AccessList types.AccessList + Data []byte + From common.Address + Gas uint64 + GasFeeCap *big.Int + GasPrice *big.Int + GasTipCap *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 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 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 PendingStateEventer interface + SubscribePendingTransactions func(ctx context.Context, ch chan<- *types.Transaction) (Subscription, error) + type Subscription interface + Err func() <-chan error + Unsubscribe func() + 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