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) Name() string
- func (s *Service) NetworkID(ctx context.Context) (uint64, 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) TransactionReceipt(ctx context.Context, hash []byte) (*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.
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) 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) TransactionReceipt ¶
func (s *Service) TransactionReceipt(ctx context.Context, hash []byte) (*spec.TransactionReceipt, error)
TransactionReceipt returns the transaction receipt for the given transaction hash.
Click to show internal directories.
Click to hide internal directories.