BlockEvent
BlockEvent represents the addition or removal of a BlockIdentifier from storage. Streaming BlockEvents allows lightweight clients to update their own state without needing to implement their own syncing logic.
Properties
Name | Type | Description | Required |
---|---|---|---|
sequence | Int64 (>= 0) | sequence is the unique identifier of a BlockEvent within the context of a NetworkIdentifier. | True |
block_identifier | BlockIdentifier | The block_identifier uniquely identifies a block in a particular network. | True |
type | BlockEventType | BlockEventType determines if a BlockEvent represents the addition or removal of a block. | True |
Example
{
"sequence": 5,
"block_identifier": {
"index": 1123941,
"hash": "0x1f2cc6c5027d2f201a5453ad1119574d2aed23a392654742ac3c78783c071f85"
},
"type": "block_added"
}