Documentation ¶
Overview ¶
Package events defines a gRPC events service implementation, following the official API standards https://ethereum.github.io/beacon-apis/#/. This package includes the events endpoint.
Index ¶
Constants ¶
View Source
const ( // HeadTopic represents a new chain head event topic. HeadTopic = "head" // BlockTopic represents a new produced block event topic. BlockTopic = "block" // AttestationTopic represents a new submitted attestation event topic. AttestationTopic = "attestation" // VoluntaryExitTopic represents a new performed voluntary exit event topic. VoluntaryExitTopic = "voluntary_exit" // FinalizedCheckpointTopic represents a new finalized checkpoint event topic. FinalizedCheckpointTopic = "finalized_checkpoint" // ChainReorgTopic represents a chain reorganization event topic. ChainReorgTopic = "chain_reorg" // SyncCommitteeContributionTopic represents a new sync committee contribution event topic. SyncCommitteeContributionTopic = "contribution_and_proof" // BLSToExecutionChangeTopic represents a new received BLS to execution change event topic. BLSToExecutionChangeTopic = "bls_to_execution_change" // PayloadAttributesTopic represents a new payload attributes for execution payload building event topic. PayloadAttributesTopic = "payload_attributes" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Ctx context.Context StateNotifier statefeed.Notifier BlockNotifier blockfeed.Notifier OperationNotifier opfeed.Notifier HeadFetcher blockchain.HeadFetcher ChainInfoFetcher blockchain.ChainInfoFetcher }
Server defines a server implementation of the gRPC events service, providing RPC endpoints to subscribe to events from the beacon node.
func (*Server) StreamEvents ¶
func (s *Server) StreamEvents( req *ethpb.StreamEventsRequest, stream ethpbservice.Events_StreamEventsServer, ) error
StreamEvents allows requesting all events from a set of topics defined in the Ethereum consensus API standard. The topics supported include block events, attestations, chain reorgs, voluntary exits, chain finality, and more.
Click to show internal directories.
Click to hide internal directories.