Versions in this module Expand all Collapse all v0 v0.0.1 Oct 11, 2024 Changes in this version + type Backend interface + BloomStatus func() (uint64, uint64) + ChainConfig func() *params.ChainConfig + ChainDb func() ethdb.Database + CurrentHeader func() *types.Header + GetBody func(ctx context.Context, hash common.Hash, number rpc.BlockNumber) (*types.Body, error) + GetLogs func(ctx context.Context, blockHash common.Hash, number uint64) ([][]*types.Log, error) + GetReceipts func(ctx context.Context, blockHash common.Hash) (types.Receipts, error) + HeaderByHash func(ctx context.Context, blockHash common.Hash) (*types.Header, error) + HeaderByNumber func(ctx context.Context, blockNr rpc.BlockNumber) (*types.Header, error) + ServiceFilter func(ctx context.Context, session *bloombits.MatcherSession) + SubscribeChainEvent func(ch chan<- core.ChainEvent) event.Subscription + SubscribeLogsEvent func(ch chan<- []*types.Log) event.Subscription + SubscribeNewTxsEvent func(chan<- core.NewTxsEvent) event.Subscription + SubscribeRemovedLogsEvent func(ch chan<- core.RemovedLogsEvent) event.Subscription + type Config struct + LogCacheSize int + Timeout time.Duration + type EventSystem struct + func NewEventSystem(sys *FilterSystem) *EventSystem + func (es *EventSystem) SubscribeLogs(crit ethereum.FilterQuery, logs chan []*types.Log) (*Subscription, error) + func (es *EventSystem) SubscribeNewHeads(headers chan *types.Header) *Subscription + func (es *EventSystem) SubscribePendingTxs(txs chan []*types.Transaction) *Subscription + type Filter struct + func (f *Filter) Logs(ctx context.Context) ([]*types.Log, error) + type FilterAPI struct + func NewFilterAPI(system *FilterSystem) *FilterAPI + func (api *FilterAPI) GetFilterChanges(id rpc.ID) (interface{}, error) + func (api *FilterAPI) GetFilterLogs(ctx context.Context, id rpc.ID) ([]*types.Log, error) + func (api *FilterAPI) GetLogs(ctx context.Context, crit FilterCriteria) ([]*types.Log, error) + func (api *FilterAPI) Logs(ctx context.Context, crit FilterCriteria) (*rpc.Subscription, error) + func (api *FilterAPI) NewBlockFilter() rpc.ID + func (api *FilterAPI) NewFilter(crit FilterCriteria) (rpc.ID, error) + func (api *FilterAPI) NewHeads(ctx context.Context) (*rpc.Subscription, error) + func (api *FilterAPI) NewPendingTransactionFilter(fullTx *bool) rpc.ID + func (api *FilterAPI) NewPendingTransactions(ctx context.Context, fullTx *bool) (*rpc.Subscription, error) + func (api *FilterAPI) UninstallFilter(id rpc.ID) bool + type FilterCriteria ethereum.FilterQuery + func (args *FilterCriteria) UnmarshalJSON(data []byte) error + type FilterSystem struct + func NewFilterSystem(backend Backend, config Config) *FilterSystem + func (sys *FilterSystem) NewBlockFilter(block common.Hash, addresses []common.Address, topics [][]common.Hash) *Filter + func (sys *FilterSystem) NewRangeFilter(begin, end int64, addresses []common.Address, topics [][]common.Hash) *Filter + type Subscription struct + ID rpc.ID + func (sub *Subscription) Err() <-chan error + func (sub *Subscription) Unsubscribe() + type Type byte + const BlocksSubscription + const LastIndexSubscription + const LogsSubscription + const PendingTransactionsSubscription + const UnknownSubscription