2024-06-14 11:02:42 -07:00
|
|
|
{
|
|
|
|
"$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."
|
|
|
|
],
|
2024-06-28 11:16:32 +09:30
|
|
|
"added": "pre-v0.10.1",
|
2024-06-14 11:02:42 -07:00
|
|
|
"request": {},
|
|
|
|
"response": {
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"funding_msat",
|
|
|
|
"funding_txid",
|
|
|
|
"channel_ready"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "pubkey",
|
|
|
|
"description": [
|
|
|
|
"The id of the peer which opened the channel"
|
|
|
|
],
|
2024-06-28 11:16:32 +09:30
|
|
|
"added": "pre-v0.10.1"
|
2024-06-14 11:02:42 -07:00
|
|
|
},
|
|
|
|
"funding_msat": {
|
|
|
|
"type": "msat",
|
|
|
|
"description": [
|
|
|
|
"The amount of the funding transaction"
|
|
|
|
],
|
2024-06-28 11:16:32 +09:30
|
|
|
"added": "pre-v0.10.1"
|
2024-06-14 11:02:42 -07:00
|
|
|
},
|
|
|
|
"funding_txid": {
|
|
|
|
"type": "txid",
|
|
|
|
"description": [
|
|
|
|
"The transaction id of the funding transaction"
|
|
|
|
],
|
2024-06-28 11:16:32 +09:30
|
|
|
"added": "pre-v0.10.1"
|
2024-06-14 11:02:42 -07:00
|
|
|
},
|
|
|
|
"channel_ready": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": [
|
|
|
|
"true if the channel is ready"
|
|
|
|
],
|
2024-06-28 11:16:32 +09:30
|
|
|
"added": "pre-v0.10.1"
|
2024-06-14 11:02:42 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|