mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 15:00:34 +01:00
35 lines
771 B
JSON
35 lines
771 B
JSON
|
{
|
||
|
"$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."
|
||
|
],
|
||
|
"added": "v24.05",
|
||
|
"request": {},
|
||
|
"response": {
|
||
|
"required": [
|
||
|
"hash",
|
||
|
"height"
|
||
|
],
|
||
|
"properties": {
|
||
|
"hash": {
|
||
|
"type": "hash",
|
||
|
"description": [
|
||
|
"The hash of the block."
|
||
|
],
|
||
|
"added" : "v24.05"
|
||
|
},
|
||
|
"height": {
|
||
|
"type": "u32",
|
||
|
"description": [
|
||
|
"The total block height."
|
||
|
],
|
||
|
"added" : "v24.05"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|