Documentation
¶
Index ¶
- func New(ctx context.Context, params ...Parameter) (execclient.Service, error)
- type Parameter
- type Service
- func (s *Service) Address() string
- func (s *Service) Block(ctx context.Context, blockID string) (*spec.Block, error)
- func (s *Service) ChainHeight(ctx context.Context) (uint32, error)
- func (s *Service) Events(ctx context.Context, filter *api.EventsFilter) ([]*spec.TransactionEvent, error)
- func (s *Service) Issuance(ctx context.Context, blockID string) (*api.Issuance, error)
- func (s *Service) Name() string
- func (s *Service) NetworkID(ctx context.Context) (uint64, error)
- func (s *Service) NewPendingTransactions(ctx context.Context, ch chan *spec.Transaction) (*util.Subscription, error)
- func (s *Service) ReplayBlockTransactions(ctx context.Context, blockID string) ([]*api.TransactionResult, error)
- func (s *Service) Syncing(ctx context.Context) (*api.SyncState, error)
- func (s *Service) Transaction(ctx context.Context, hash types.Hash) (*spec.Transaction, error)
- func (s *Service) TransactionReceipt(ctx context.Context, hash types.Hash) (*spec.TransactionReceipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parameter ¶
type Parameter interface {
// contains filtered or unexported methods
}
Parameter is the interface for service parameters.
func WithAddress ¶
WithAddress provides the address for the endpoint.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithTimeout ¶
WithTimeout sets the maximum duration for all requests to the endpoint.
func WithWebSocketAddress ¶ added in v0.6.0
WithWebSocketAddress provides the address for the websocket endpoint. If not supplied it will use the value supplied as the address.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is an Ethereum execution client service.
func (*Service) ChainHeight ¶
ChainHeight returns the height of the chain as understood by the node.
func (*Service) Events ¶ added in v0.3.0
func (s *Service) Events(ctx context.Context, filter *api.EventsFilter) ([]*spec.TransactionEvent, error)
Events returns the events matching the filter.
func (*Service) NewPendingTransactions ¶ added in v0.6.0
func (s *Service) NewPendingTransactions(ctx context.Context, ch chan *spec.Transaction) (*util.Subscription, error)
NewPendingTransactions returns a subscription for pending transactions.
func (*Service) ReplayBlockTransactions ¶
func (s *Service) ReplayBlockTransactions(ctx context.Context, blockID string) ([]*api.TransactionResult, error)
ReplayBlockTransactions obtains traces for all transactions in a block.
func (*Service) Syncing ¶ added in v0.2.0
Syncing obtains information about the sync state of the node.
func (*Service) Transaction ¶ added in v0.6.0
Transaction returns the transaction for the given transaction hash.
func (*Service) TransactionReceipt ¶
func (s *Service) TransactionReceipt(ctx context.Context, hash types.Hash) (*spec.TransactionReceipt, error)
TransactionReceipt returns the transaction receipt for the given transaction hash.