Versions in this module Expand all Collapse all v1 v1.1.0 Aug 14, 2019 v1.0.0 Jun 25, 2019 Changes in this version + var ErrInvalidSubscriptionID = errors.New("invalid id") + type Backend interface + BloomStatus func() (uint64, uint64) + ChainDB func() database.DBManager + EventMux func() *event.TypeMux + GetBlockReceipts func(ctx context.Context, blockHash common.Hash) types.Receipts + GetLogs func(ctx context.Context, blockHash common.Hash) ([][]*types.Log, error) + HeaderByNumber func(ctx context.Context, blockNr rpc.BlockNumber) (*types.Header, error) + ServiceFilter func(ctx context.Context, session *bloombits.MatcherSession) + SubscribeChainEvent func(ch chan<- blockchain.ChainEvent) event.Subscription + SubscribeLogsEvent func(ch chan<- []*types.Log) event.Subscription + SubscribeNewTxsEvent func(chan<- blockchain.NewTxsEvent) event.Subscription + SubscribeRemovedLogsEvent func(ch chan<- blockchain.RemovedLogsEvent) event.Subscription + type EventSystem struct + func NewEventSystem(mux *event.TypeMux, backend Backend, lightMode bool) *EventSystem + func (es *EventSystem) SubscribeLogs(crit klaytn.FilterQuery, logs chan []*types.Log) (*Subscription, error) + func (es *EventSystem) SubscribeNewHeads(headers chan *types.Header) *Subscription + func (es *EventSystem) SubscribePendingTxs(hashes chan []common.Hash) *Subscription + type Filter struct + func New(backend Backend, begin, end int64, addresses []common.Address, ...) *Filter + func (f *Filter) Logs(ctx context.Context) ([]*types.Log, error) + type FilterCriteria klaytn.FilterQuery + func (args *FilterCriteria) UnmarshalJSON(data []byte) error + type PublicFilterAPI struct + func NewPublicFilterAPI(backend Backend, lightMode bool) *PublicFilterAPI + func (api *PublicFilterAPI) GetFilterChanges(id rpc.ID) (interface{}, error) + func (api *PublicFilterAPI) GetFilterLogs(ctx context.Context, id rpc.ID) ([]*types.Log, error) + func (api *PublicFilterAPI) GetLogs(ctx context.Context, crit FilterCriteria) ([]*types.Log, error) + func (api *PublicFilterAPI) Logs(ctx context.Context, crit FilterCriteria) (*rpc.Subscription, error) + func (api *PublicFilterAPI) NewBlockFilter() rpc.ID + func (api *PublicFilterAPI) NewFilter(crit FilterCriteria) (rpc.ID, error) + func (api *PublicFilterAPI) NewHeads(ctx context.Context) (*rpc.Subscription, error) + func (api *PublicFilterAPI) NewPendingTransactionFilter() rpc.ID + func (api *PublicFilterAPI) NewPendingTransactions(ctx context.Context) (*rpc.Subscription, error) + func (api *PublicFilterAPI) UninstallFilter(id rpc.ID) bool + 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 MinedAndPendingLogsSubscription + const PendingLogsSubscription + const PendingTransactionsSubscription + const UnknownSubscription