EventsBlocksResponse
EventsBlocksResponse contains an ordered collection of BlockEvents and the max retrievable sequence.
Properties
Name | Type | Description | Required |
---|---|---|---|
max_sequence | Int64 (>= 0) | max_sequence is the maximum available sequence number to fetch. | True |
events | []BlockEvent | events is an array of BlockEvents indicating the order to add and remove blocks to maintain a canonical view of blockchain state. Lightweight clients can use this event stream to update state without implementing their own block syncing logic. | True |
Example
{
"max_sequence": 5,
"events": [
{
"sequence": 5,
"block_identifier": {
"index": 1123941,
"hash": "0x1f2cc6c5027d2f201a5453ad1119574d2aed23a392654742ac3c78783c071f85"
},
"type": "block_added"
}
]
}