Documentation ¶
Index ¶
- type ChainEvent
- type ContextCaller
- type PendingTxInfo
- type PublicAPI
- func (api *PublicAPI) GetFilterChanges(id getrpc.ID) (interface{}, error)
- func (api *PublicAPI) GetFilterLogs(ctx context.Context, id getrpc.ID) ([]types.Log, error)
- func (api *PublicAPI) NewBlockFilter() getrpc.ID
- func (api *PublicAPI) NewFilter(crit filters.FilterCriteria) (getrpc.ID, error)
- func (api *PublicAPI) NewPendingTransactionFilter() getrpc.ID
- func (api *PublicAPI) UninstallFilter(id getrpc.ID) bool
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainEvent ¶ added in v0.161.6
type ContextCaller ¶ added in v0.35.0
type ContextCaller interface {
CallContext(ctx context.Context, result interface{}, chainID uint64, method string, args ...interface{}) error
}
ContextCaller provides CallContext method as ethereums rpc.Client.
type PendingTxInfo ¶ added in v0.161.6
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 ¶ added in v0.35.0
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) TransactionSentToUpstreamEvent ¶ added in v0.161.6
func (s *Service) TransactionSentToUpstreamEvent() ChainEvent
func (*Service) TriggerTransactionSentToUpstreamEvent ¶
func (s *Service) TriggerTransactionSentToUpstreamEvent(txInfo *PendingTxInfo)