Documentation ¶
Index ¶
- type ContextCaller
- type PublicAPI
- func (api *PublicAPI) GetFilterChanges(id rpc.ID) (interface{}, error)
- func (api *PublicAPI) GetFilterLogs(ctx context.Context, id rpc.ID) ([]types.Log, error)
- func (api *PublicAPI) NewBlockFilter() rpc.ID
- func (api *PublicAPI) NewFilter(crit filters.FilterCriteria) (rpc.ID, error)
- func (api *PublicAPI) NewPendingTransactionFilter() rpc.ID
- func (api *PublicAPI) UninstallFilter(id rpc.ID) bool
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextCaller ¶
type ContextCaller interface {
CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
}
ContextCaller provides CallContext method as ethereums rpc.Client.
type PublicAPI ¶
type PublicAPI struct {
// contains filtered or unexported fields
}
PublicAPI represents filter API that is exported to `eth` namespace
func NewPublicAPI ¶
NewPublicAPI returns a reference to the PublicAPI object
func (*PublicAPI) GetFilterChanges ¶
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) GetFilterLogs ¶
GetFilterLogs returns the logs for the filter with the given id. If the filter could not be found an empty array of logs is returned.
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getfilterlogs
func (*PublicAPI) NewBlockFilter ¶
NewBlockFilter is an implemenation of `eth_newBlockFilter` API https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newblockfilter
func (*PublicAPI) NewPendingTransactionFilter ¶
NewPendingTransactionFilter is an implementation of `eth_newPendingTransactionFilter` API https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newpendingtransactionfilter
func (*PublicAPI) UninstallFilter ¶
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 (*Service) TriggerTransactionSentToUpstreamEvent ¶
TriggerTransactionSentToUpstreamEvent notifies the subscribers of the TransactionSentToUpstream event