rpcfilters

package
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2018 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicAPI

type PublicAPI struct {
	// contains filtered or unexported fields
}

PublicAPI represents filter API that is exported to `eth` namespace

func NewPublicAPI

func NewPublicAPI(latestBlockChangedEvent *latestBlockChangedEvent,
	transactionSentToUpstreamEvent *transactionSentToUpstreamEvent) *PublicAPI

NewPublicAPI returns a reference to the PublicAPI object

func (*PublicAPI) GetFilterChanges

func (api *PublicAPI) GetFilterChanges(id rpc.ID) ([]common.Hash, error)

GetFilterChanges returns the hashes for the filter with the given id since last time it was called. This can be used for polling.

https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getfilterchanges

func (*PublicAPI) NewBlockFilter

func (api *PublicAPI) NewBlockFilter() rpc.ID

NewBlockFilter is an implemenation of `eth_newBlockFilter` API https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newblockfilter

func (*PublicAPI) NewPendingTransactionFilter

func (api *PublicAPI) NewPendingTransactionFilter() rpc.ID

NewPendingTransactionFilter is an implementation of `eth_newPendingTransactionFilter` API https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newpendingtransactionfilter

func (*PublicAPI) UninstallFilter

func (api *PublicAPI) UninstallFilter(id rpc.ID) bool

UninstallFilter is an implemenation of `eth_uninstallFilter` API https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_uninstallfilter

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service represents out own implementation of personal sign operations.

func New

func New(rpc rpcProvider) *Service

New returns a new Service.

func (*Service) APIs

func (s *Service) APIs() []rpc.API

APIs returns a list of new APIs.

func (*Service) Protocols

func (s *Service) Protocols() []p2p.Protocol

Protocols returns a new protocols list. In this case, there are none.

func (*Service) Start

func (s *Service) Start(server *p2p.Server) error

Start is run when a service is started.

func (*Service) Stop

func (s *Service) Stop() error

Stop is run when a service is stopped.

func (*Service) TriggerTransactionSentToUpstreamEvent

func (s *Service) TriggerTransactionSentToUpstreamEvent(transactionHash common.Hash)

TriggerTransactionSentToUpstreamEvent notifies the subscribers of the TransactionSentToUpstream event

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL