mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-25 07:27:23 +01:00
The *schemas* were added in v24.05, but the actual fields are much older. Unfortunately, fixing this required a manual edit of the .msggen.json file, as msggen won't let the added version change (for good reason). Versions when these notifications were originally added: connect: v0.6.3 channel_opened: v0.7.2.1: channel_state_changed: v0.9.1 channel_open_failed: v0.9.3 block_added: v22.11 custommsg: v24.02 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
50 lines
1.2 KiB
JSON
50 lines
1.2 KiB
JSON
{
|
|
"$schema": "../../rpc-schema-draft.json",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"notification": "channel_opened",
|
|
"title": "Notification for channel opening",
|
|
"description": [
|
|
"The **channel_opened** notification is sent whenever the channel opened successfully."
|
|
],
|
|
"added": "pre-v0.10.1",
|
|
"request": {},
|
|
"response": {
|
|
"required": [
|
|
"id",
|
|
"funding_msat",
|
|
"funding_txid",
|
|
"channel_ready"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "pubkey",
|
|
"description": [
|
|
"The id of the peer which opened the channel"
|
|
],
|
|
"added": "pre-v0.10.1"
|
|
},
|
|
"funding_msat": {
|
|
"type": "msat",
|
|
"description": [
|
|
"The amount of the funding transaction"
|
|
],
|
|
"added": "pre-v0.10.1"
|
|
},
|
|
"funding_txid": {
|
|
"type": "txid",
|
|
"description": [
|
|
"The transaction id of the funding transaction"
|
|
],
|
|
"added": "pre-v0.10.1"
|
|
},
|
|
"channel_ready": {
|
|
"type": "boolean",
|
|
"description": [
|
|
"true if the channel is ready"
|
|
],
|
|
"added": "pre-v0.10.1"
|
|
}
|
|
}
|
|
}
|
|
}
|