Events API

Streams events from HotShot

This API allows a client, not participating in consensus, to follow along with consensus in a trustless manner, by streaming and verifying events produced by consensus. It is especially useful for block builders, who need to maintain their own view of the internal consensus state at all times, so that they can intelligently propose blocks on top of not-yet-finalized proposed parent blocks.

circle-exclamation

Types

LeafInfo

The specific format of this type is not currently specified, but it can be deserialized and interpreted in Rust using the LeafInfoarrow-up-right type.

DAProposal

The specific format of this type is not currently specified, but it can be deserialized and interpreted in Rust using the Proposalarrow-up-right type.

QuorumProposal

The specific format of this type is not currently specified, but it can be deserialized and interpreted in Rust using the Proposalarrow-up-right type.

Endpoints

GET /hotshot-events/events

circle-info

This is a WebSockets endpoint. The client must be prepared to upgrade the connection to a WebSockets connection, including the proper headers.

Subscribe to consensus events.

Yields

Last updated