2024-06-14 11:02:42 -07:00
|
|
|
{
|
|
|
|
"$schema": "../../rpc-schema-draft.json",
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"notification": "block_added",
|
|
|
|
"title": "Notification that a block has been added to the blockchain",
|
|
|
|
"description": [
|
|
|
|
"The **block_added** notification is sent whenever the node receives a new block from the blockchain."
|
|
|
|
],
|
2024-06-28 11:16:32 +09:30
|
|
|
"added": "v22.11",
|
2024-06-14 11:02:42 -07:00
|
|
|
"request": {},
|
|
|
|
"response": {
|
|
|
|
"required": [
|
|
|
|
"hash",
|
|
|
|
"height"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"hash": {
|
|
|
|
"type": "hash",
|
|
|
|
"description": [
|
|
|
|
"The hash of the block."
|
|
|
|
],
|
2024-06-28 11:16:32 +09:30
|
|
|
"added": "v22.11"
|
2024-06-14 11:02:42 -07:00
|
|
|
},
|
|
|
|
"height": {
|
|
|
|
"type": "u32",
|
|
|
|
"description": [
|
|
|
|
"The total block height."
|
|
|
|
],
|
2024-06-28 11:16:32 +09:30
|
|
|
"added": "v22.11"
|
2024-06-14 11:02:42 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|