From 932396e2b3c7eda1532fe128117c6295dd46bf6b Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Wed, 7 Feb 2024 11:20:36 +0100 Subject: [PATCH 01/24] Add schema's notifications I've added the schema for a couple of notifications. --- .../notification/block_added.request.json | 10 ++ .../notification/block_added.schema.json | 17 ++++ .../channel_open_failed.request.json | 7 ++ .../channel_open_failed.schema.json | 13 +++ .../notification/channel_opened.request.json | 9 ++ .../notification/channel_opened.schema.json | 34 +++++++ .../channel_state_changed.request.json | 9 ++ .../channel_state_changed.schema.json | 92 +++++++++++++++++++ doc/schemas/notification/connect.request.json | 10 ++ doc/schemas/notification/connect.schema.json | 30 ++++++ .../notification/custommsg.request.json | 9 ++ .../notification/custommsg.schema.json | 22 +++++ 12 files changed, 262 insertions(+) create mode 100644 doc/schemas/notification/block_added.request.json create mode 100644 doc/schemas/notification/block_added.schema.json create mode 100644 doc/schemas/notification/channel_open_failed.request.json create mode 100644 doc/schemas/notification/channel_open_failed.schema.json create mode 100644 doc/schemas/notification/channel_opened.request.json create mode 100644 doc/schemas/notification/channel_opened.schema.json create mode 100644 doc/schemas/notification/channel_state_changed.request.json create mode 100644 doc/schemas/notification/channel_state_changed.schema.json create mode 100644 doc/schemas/notification/connect.request.json create mode 100644 doc/schemas/notification/connect.schema.json create mode 100644 doc/schemas/notification/custommsg.request.json create mode 100644 doc/schemas/notification/custommsg.schema.json diff --git a/doc/schemas/notification/block_added.request.json b/doc/schemas/notification/block_added.request.json new file mode 100644 index 000000000000..77eef5a3556f --- /dev/null +++ b/doc/schemas/notification/block_added.request.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added" : "v24.05", + "properties": {} +} + + + diff --git a/doc/schemas/notification/block_added.schema.json b/doc/schemas/notification/block_added.schema.json new file mode 100644 index 000000000000..6b361f33eaf4 --- /dev/null +++ b/doc/schemas/notification/block_added.schema.json @@ -0,0 +1,17 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", + "required" : ["hash", "height"], + "properties": { + "hash": { + "type": "hash", + "added" : "v24.05" + }, + "height" : { + "type" : "u32", + "added" : "v24.05" + } + } +} \ No newline at end of file diff --git a/doc/schemas/notification/channel_open_failed.request.json b/doc/schemas/notification/channel_open_failed.request.json new file mode 100644 index 000000000000..5f275939c1c1 --- /dev/null +++ b/doc/schemas/notification/channel_open_failed.request.json @@ -0,0 +1,7 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added" : "v24.05", + "properties": {} +} diff --git a/doc/schemas/notification/channel_open_failed.schema.json b/doc/schemas/notification/channel_open_failed.schema.json new file mode 100644 index 000000000000..769222b75e23 --- /dev/null +++ b/doc/schemas/notification/channel_open_failed.schema.json @@ -0,0 +1,13 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", + "required" : ["channel_id"], + "properties": { + "channel_id": { + "type": "hash", + "added" : "v24.05" + } + } +} \ No newline at end of file diff --git a/doc/schemas/notification/channel_opened.request.json b/doc/schemas/notification/channel_opened.request.json new file mode 100644 index 000000000000..4c696cffbb93 --- /dev/null +++ b/doc/schemas/notification/channel_opened.request.json @@ -0,0 +1,9 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added" : "v24.05", + "properties": {} +} + + diff --git a/doc/schemas/notification/channel_opened.schema.json b/doc/schemas/notification/channel_opened.schema.json new file mode 100644 index 000000000000..88c435c2d66a --- /dev/null +++ b/doc/schemas/notification/channel_opened.schema.json @@ -0,0 +1,34 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", + "required" : [ + "pubkey", + "funding_msat", + "funding_txid", + "channel_ready" + ], + "properties": { + "id": { + "type": "pubkey", + "added" : "v24.05", + "description" : "The id of the peer which opened the channel" + }, + "funding_msat": { + "type": "msat", + "added" : "v24.05", + "description" : "The amount of the funding transaction" + }, + "funding_txid" : { + "type" : "txid", + "added" : "v24.05", + "description" : "The transaction id of the funding transaction" + }, + "channel_ready" : { + "type" : "boolean", + "added" : "v24.05", + "description" : "true if the channel is ready" + } + } +} \ No newline at end of file diff --git a/doc/schemas/notification/channel_state_changed.request.json b/doc/schemas/notification/channel_state_changed.request.json new file mode 100644 index 000000000000..2d489ca7caff --- /dev/null +++ b/doc/schemas/notification/channel_state_changed.request.json @@ -0,0 +1,9 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [], + "additionalProperties": false, + "added" : "v24.05", + "properties": {} +} + diff --git a/doc/schemas/notification/channel_state_changed.schema.json b/doc/schemas/notification/channel_state_changed.schema.json new file mode 100644 index 000000000000..44b7259d26f1 --- /dev/null +++ b/doc/schemas/notification/channel_state_changed.schema.json @@ -0,0 +1,92 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", + "required" : [ + "peer_id", + "channel_id", + "short_channel_id", + "timestamp", + "old_state", + "new_state", + "cause", + "message" + ], + "properties": { + "peer_id": { + "type": "pubkey", + "added": "v24.05" + }, + "channel_id": { + "type": "hash", + "added": "v24.05" + }, + "short_channel_id" : { + "type" : "short_channel_id", + "added": "v24.05" + }, + "timestamp" : { + "type" : "string", + "added": "v24.05" + }, + "old_state" : { + "type": "string", + "enum": [ + "OPENINGD", + "CHANNELD_AWAITING_LOCKIN", + "CHANNELD_NORMAL", + "CHANNELD_SHUTTING_DOWN", + "CLOSINGD_SIGEXCHANGE", + "CLOSINGD_COMPLETE", + "AWAITING_UNILATERAL", + "FUNDING_SPEND_SEEN", + "ONCHAIN", + "DUALOPEND_OPEN_INIT", + "DUALOPEND_AWAITING_LOCKIN", + "CHANNELD_AWAITING_SPLICE", + "DUALOPEND_OPEN_COMMITTED", + "DUALOPEND_OPEN_COMMIT_READY" + ], + "description": "the channel state, in particular \"CHANNELD_NORMAL\" means the channel can be used normally", + "added": "v24.05" + }, + "new_state" : { + "type": "string", + "enum": [ + "OPENINGD", + "CHANNELD_AWAITING_LOCKIN", + "CHANNELD_NORMAL", + "CHANNELD_SHUTTING_DOWN", + "CLOSINGD_SIGEXCHANGE", + "CLOSINGD_COMPLETE", + "AWAITING_UNILATERAL", + "FUNDING_SPEND_SEEN", + "ONCHAIN", + "DUALOPEND_OPEN_INIT", + "DUALOPEND_AWAITING_LOCKIN", + "CHANNELD_AWAITING_SPLICE", + "DUALOPEND_OPEN_COMMITTED", + "DUALOPEND_OPEN_COMMIT_READY" + ], + "description": "the channel state, in particular \"CHANNELD_NORMAL\" means the channel can be used normally", + "added": "v24.05" + }, + "cause" : { + "type" : "string", + "enum" : [ + "unknown", + "local", + "user", + "remote", + "protocol", + "onchain" + ], + "added": "v24.05" + }, + "message" : { + "type" : "string", + "added": "v24.05" + } + } +} diff --git a/doc/schemas/notification/connect.request.json b/doc/schemas/notification/connect.request.json new file mode 100644 index 000000000000..98cb556fbd77 --- /dev/null +++ b/doc/schemas/notification/connect.request.json @@ -0,0 +1,10 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [], + "additionalProperties": false, + "added" : "v24.05", + "properties": {} +} + + diff --git a/doc/schemas/notification/connect.schema.json b/doc/schemas/notification/connect.schema.json new file mode 100644 index 000000000000..f5405650a7d1 --- /dev/null +++ b/doc/schemas/notification/connect.schema.json @@ -0,0 +1,30 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", + "required" : [ + "id", + "direction", + "address" + ], + "properties": { + "id": { + "type": "pubkey", + "description" : "The id of the peer which sent the custom message", + "added" : "v24.05" + }, + "direction": { + "type": "string", + "enum": [ + "in", + "out" + ], + "added" : "v24.05" + }, + "address" : { + "type" : "string", + "added" : "v24.05" + } + } +} diff --git a/doc/schemas/notification/custommsg.request.json b/doc/schemas/notification/custommsg.request.json new file mode 100644 index 000000000000..b22c340cefb1 --- /dev/null +++ b/doc/schemas/notification/custommsg.request.json @@ -0,0 +1,9 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [], + "additionalProperties": false, + "added": "v24.05", + "properties": {} +} + diff --git a/doc/schemas/notification/custommsg.schema.json b/doc/schemas/notification/custommsg.schema.json new file mode 100644 index 000000000000..8f31affd0a35 --- /dev/null +++ b/doc/schemas/notification/custommsg.schema.json @@ -0,0 +1,22 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", + "required" : [ + "peer_id", "payload" + ], + "properties": { + "peer_id": { + "type": "pubkey", + "description" : "The id of the peer which sent the custom message", + "added" : "v24.05" + }, + "payload": { + "type": "hex", + "description" : "The hex-encoded payload. The first 2 bytes represent the BOLT-8 message type followed by the message content", + "added" : "v24.05" + } + } +} + From 92f8832536301e77dc0739a19bd6473b41e56145 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Wed, 7 Feb 2024 13:01:35 +0100 Subject: [PATCH 02/24] msggen: Add notifications to the `Model` Included a `notifications`-field in the `Service` and wrote the code to parse them. Add block-added to utils.py --- .msggen.json | 68 + contrib/msggen/msggen/model.py | 23 +- contrib/msggen/msggen/patch.py | 3 + contrib/msggen/msggen/schema.json | 58242 +++++++++++++------------ contrib/msggen/msggen/utils/utils.py | 69 +- 5 files changed, 29406 insertions(+), 28999 deletions(-) diff --git a/.msggen.json b/.msggen.json index fb057448ba89..ba45a76083b1 100644 --- a/.msggen.json +++ b/.msggen.json @@ -9027,6 +9027,74 @@ "added": "pre-v0.10.1", "deprecated": false }, + "block_added": { + "added": "v24.05", + "deprecated": null + }, + "block_added.hash": { + "added": "v24.05", + "deprecated": false + }, + "block_added.height": { + "added": "v24.05", + "deprecated": false + }, + "channel_open_failed": { + "added": "v24.05", + "deprecated": null + }, + "channel_open_failed.channel_id": { + "added": "v24.05", + "deprecated": false + }, + "channel_opened": { + "added": "v24.05", + "deprecated": null + }, + "channel_opened.channel_ready": { + "added": "v24.05", + "deprecated": false + }, + "channel_opened.funding_msat": { + "added": "v24.05", + "deprecated": false + }, + "channel_opened.funding_txid": { + "added": "v24.05", + "deprecated": false + }, + "channel_opened.id": { + "added": "v24.05", + "deprecated": false + }, + "connect": { + "added": "v24.05", + "deprecated": null + }, + "connect.address": { + "added": "v24.05", + "deprecated": false + }, + "connect.direction": { + "added": "v24.05", + "deprecated": false + }, + "connect.id": { + "added": "v24.05", + "deprecated": false + }, + "custommsg": { + "added": "v24.05", + "deprecated": null + }, + "custommsg.payload": { + "added": "v24.05", + "deprecated": false + }, + "custommsg.peer_id": { + "added": "v24.05", + "deprecated": false + }, "multifundchannel": { "added": "pre-v0.10.1", "deprecated": null diff --git a/contrib/msggen/msggen/model.py b/contrib/msggen/msggen/model.py index 215a1613fad3..a08afbe83512 100644 --- a/contrib/msggen/msggen/model.py +++ b/contrib/msggen/msggen/model.py @@ -135,9 +135,10 @@ def override(self, default: Optional[str] = None) -> Optional[str]: class Service: """Top level class that wraps all the RPC methods. """ - def __init__(self, name: str, methods=None): - self.name = name - self.methods = [] if methods is None else methods + def __init__(self, name: str, methods=None, notifications=None): + self.name: str = name + self.methods: List[Method] = [] if methods is None else methods + self.notifications: List[Notification] = [] if notifications is None else notifications # If we require linking with some external files we'll add # them here so the generator can use them. @@ -166,9 +167,25 @@ def gather_subfields(field: Field) -> List[Field]: types.extend(gather_subfields(field)) for field in method.response.fields: types.extend(gather_subfields(field)) + + for notification in self.notifications: + types.extend([notification.request]) + for field in notification.request.fields: + types.extend(gather_subfields(field)) + for field in notification.response.fields: + types.extend(gather_subfields(field)) + return types +class Notification: + def __init__(self, name: str, typename: str, request: Field, response: Field): + self.name = name + self.typename = typename + self.request = request + self.response = response + + class Method: def __init__(self, name: str, request: Field, response: Field): self.name = name diff --git a/contrib/msggen/msggen/patch.py b/contrib/msggen/msggen/patch.py index 3443637b5708..4281333c6ba2 100644 --- a/contrib/msggen/msggen/patch.py +++ b/contrib/msggen/msggen/patch.py @@ -34,6 +34,9 @@ def recurse(f: model.Field): for m in service.methods: recurse(m.request) recurse(m.response) + for n in service.notifications: + recurse(n.request) + recurse(n.response) class VersionAnnotationPatch(Patch): diff --git a/contrib/msggen/msggen/schema.json b/contrib/msggen/msggen/schema.json index af0f58a32554..50ea176fc24c 100644 --- a/contrib/msggen/msggen/schema.json +++ b/contrib/msggen/msggen/schema.json @@ -1,31074 +1,31336 @@ { - "lightning-addgossip.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "addgossip", - "title": "Command for injecting a gossip message (low-level)", - "description": [ - "The **addgossip** RPC command injects a hex-encoded gossip message into the gossip daemon. It may return an error if it is malformed, or may update its internal state using the gossip message.", - "", - "Note that currently some paths will still silently reject the gossip: it is best effort.", - "", - "This is particularly used by plugins which may receive channel_update messages within error replies." - ], - "request": { - "required": [ - "message" + "methods": { + "lightning-addgossip.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "addgossip", + "title": "Command for injecting a gossip message (low-level)", + "description": [ + "The **addgossip** RPC command injects a hex-encoded gossip message into the gossip daemon. It may return an error if it is malformed, or may update its internal state using the gossip message.", + "", + "Note that currently some paths will still silently reject the gossip: it is best effort.", + "", + "This is particularly used by plugins which may receive channel_update messages within error replies." ], - "properties": { - "message": { - "type": "hex", - "description": [ - "The raw, hex-encoded, gossip message to add to the local gossip view." - ] - } - } - }, - "response": { - "properties": {} - }, - "json_example": [ - { - "request": { - "id": "example:addgossip#1", - "method": "addgossip", - "params": { - "message": "010078c3314666731e339c0b8434f7824797a084ed7ca3655991a672da068e2c44cb53b57b53a296c133bc879109a8931dc31e6913a4bda3d58559b99b95663e6d52775579447ef5526300e1bb89bc6af8557aa1c3810a91814eafad6d103f43182e17b16644cb38c1d58a8edd094303959a9f1f9d42ff6c32a21f9c118531f512c8679cabaccc6e39dbd95a4dac90e75a258893c3aa3f733d1b8890174d5ddea8003cadffe557773c54d2c07ca1d535c4bf85885f879ae466c16a516e8ffcfec1740e3f5c98ca9ce13f452e867befef5517f306ed6aa5119b79059bcc6f68f329986b665d16de7bc7df64e3537504c91eeabe0e59d3a2b68e4216ead2b0f6e3ef7c000006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f0000670000010000022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d590266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351802e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5702324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b" + "request": { + "required": [ + "message" + ], + "properties": { + "message": { + "type": "hex", + "description": [ + "The raw, hex-encoded, gossip message to add to the local gossip view." + ] } - }, - "response": {} + } }, - { - "request": { - "id": "example:addgossip#2", - "method": "addgossip", - "params": { - "message": "0102420526c8eb62ec6999bbee5f1de4841cab734374ec642b7deeb0259e76220bf82e97a241c907d5ff52019655f7f9a614c285bb35690f3a1a2b928d7b2349a79e06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f000067000001000065b32a0e010100060000000000000000000000010000000a000000003b023380" - } - }, - "response": {} - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-pay(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-addpsbtoutput.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.11", - "rpc": "addpsbtoutput", - "title": "Command to populate PSBT outputs from the wallet", - "description": [ - "`addpsbtoutput` is a low-level RPC command which creates or modifies a PSBT by adding a single output of amount *satoshi*.", - "", - "This is used to receive funds into the on-chain wallet interactively using PSBTs." - ], - "request": { - "required": [ - "satoshi" - ], - "properties": { - "satoshi": { - "type": "sat", - "description": [ - "The satoshi value of the output. It can be a whole number, a whole number ending in *sat*, or a number with 1 to 8 decimal places ending in *btc*." - ] - }, - "initialpsbt": { - "type": "string", - "description": [ - "Base 64 encoded PSBT to add the output to. If not specified, one will be generated automatically." - ] - }, - "locktime": { - "type": "u32", - "description": [ - "If not set, it is set to a recent block height (if no initial psbt is specified)." - ] + "response": { + "properties": {} + }, + "json_example": [ + { + "request": { + "id": "example:addgossip#1", + "method": "addgossip", + "params": { + "message": "010078c3314666731e339c0b8434f7824797a084ed7ca3655991a672da068e2c44cb53b57b53a296c133bc879109a8931dc31e6913a4bda3d58559b99b95663e6d52775579447ef5526300e1bb89bc6af8557aa1c3810a91814eafad6d103f43182e17b16644cb38c1d58a8edd094303959a9f1f9d42ff6c32a21f9c118531f512c8679cabaccc6e39dbd95a4dac90e75a258893c3aa3f733d1b8890174d5ddea8003cadffe557773c54d2c07ca1d535c4bf85885f879ae466c16a516e8ffcfec1740e3f5c98ca9ce13f452e867befef5517f306ed6aa5119b79059bcc6f68f329986b665d16de7bc7df64e3537504c91eeabe0e59d3a2b68e4216ead2b0f6e3ef7c000006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f0000670000010000022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d590266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351802e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5702324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b" + } + }, + "response": {} }, - "destination": { - "type": "string", - "description": [ - "If it is not set, an internal address is generated." - ] + { + "request": { + "id": "example:addgossip#2", + "method": "addgossip", + "params": { + "message": "0102420526c8eb62ec6999bbee5f1de4841cab734374ec642b7deeb0259e76220bf82e97a241c907d5ff52019655f7f9a614c285bb35690f3a1a2b928d7b2349a79e06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f000067000001000065b32a0e010100060000000000000000000000010000000a000000003b023380" + } + }, + "response": {} } - } - }, - "response": { - "required": [ - "psbt", - "estimated_added_weight", - "outnum" ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "Unsigned PSBT which fulfills the parameters given." - ] - }, - "estimated_added_weight": { - "type": "u32", - "description": [ - "The estimated weight of the added output." - ] - }, - "outnum": { - "type": "u32", - "description": [ - "The 0-based number where the output was placed." - ] - } - } + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-pay(7)" + ], + "resources": [ + "Main web site: " + ] }, - "example_usage": [ - "Here is a command to make a PSBT with a 100,000 sat output that leads to the on-chain wallet.", - "", - "```shell", - "lightning-cli addpsbtoutput 100000sat", - "```" - ], - "json_example": [ - { - "request": { - "id": "example:addpsbtoutput#1", - "method": "addpsbtoutput", - "params": { - "satoshi": 100000, - "initialpsbt": null, - "locktime": null, - "destination": null + "lightning-addpsbtoutput.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.11", + "rpc": "addpsbtoutput", + "title": "Command to populate PSBT outputs from the wallet", + "description": [ + "`addpsbtoutput` is a low-level RPC command which creates or modifies a PSBT by adding a single output of amount *satoshi*.", + "", + "This is used to receive funds into the on-chain wallet interactively using PSBTs." + ], + "request": { + "required": [ + "satoshi" + ], + "properties": { + "satoshi": { + "type": "sat", + "description": [ + "The satoshi value of the output. It can be a whole number, a whole number ending in *sat*, or a number with 1 to 8 decimal places ending in *btc*." + ] + }, + "initialpsbt": { + "type": "string", + "description": [ + "Base 64 encoded PSBT to add the output to. If not specified, one will be generated automatically." + ] + }, + "locktime": { + "type": "u32", + "description": [ + "If not set, it is set to a recent block height (if no initial psbt is specified)." + ] + }, + "destination": { + "type": "string", + "description": [ + "If it is not set, an internal address is generated." + ] } - }, - "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIoIYBAAAAAAABBCJRIHg2NV/cioLcTLAKdyxVVBUdBjhKTdZejT9orAhWa4S+AA==", - "estimated_added_weight": 172, - "outnum": 0 } }, - { - "request": { - "id": "example:addpsbtoutput#2", - "method": "addpsbtoutput", - "params": { - "satoshi": 1000000, - "initialpsbt": null, - "locktime": 111, - "destination": null + "response": { + "required": [ + "psbt", + "estimated_added_weight", + "outnum" + ], + "properties": { + "psbt": { + "type": "string", + "description": [ + "Unsigned PSBT which fulfills the parameters given." + ] + }, + "estimated_added_weight": { + "type": "u32", + "description": [ + "The estimated weight of the added output." + ] + }, + "outnum": { + "type": "u32", + "description": [ + "The 0-based number where the output was placed." + ] } - }, - "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIJd6ICNAQALFOMhoUHuSVSuzcaUdkDKlk4K+A+DR9+4uAA==", - "estimated_added_weight": 172, - "outnum": 0 } }, - { - "request": { - "id": "example:addpsbtoutput#3", - "method": "addpsbtoutput", - "params": { - "satoshi": 974343, - "initialpsbt": "cHNidP8BAF4CAAAAAfwbEpvpi6D14YV4VLnuVB47Y0uF41kXEyJRL4IusySSAQAAAAD9////ASICAAAAAAAAIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL5nAAAAAAEA9gIAAAAAAQFEkxvLatohY6mw5gr5qG1aiArSrziFPR2YoqD21Hv+RAAAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNrz8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIEu1nfVRt9i+rFM219mwhMqdwJsqygWSWTFUS+cemdh6AiBG3Qo8g9J/aAMO2RHDsIBScscj6pTTIwZp7Gw8G3EOKAEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPZgAAAAEBK68/DwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oAAA==", - "locktime": null, - "destination": "bcrt1q9tc6q49l6wrrtp8ul45rj92hsleehwwxty32zu" - } - }, - "response": { - "psbt": "cHNidP8BAH0CAAAAAfwbEpvpi6D14YV4VLnuVB47Y0uF41kXEyJRL4IusySSAQAAAAD9////AiICAAAAAAAAIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4H3g4AAAAAABYAFCrxoFS/04Y1hPz9aDkVV4fzm7nGZwAAAAABAPYCAAAAAAEBRJMby2raIWOpsOYK+ahtWogK0q84hT0dmKKg9tR7/kQAAAAAAP3///8CQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAza8/DwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oCRzBEAiBLtZ31UbfYvqxTNtfZsITKncCbKsoFklkxVEvnHpnYegIgRt0KPIPSf2gDDtkRw7CAUnLHI+qU0yMGaexsPBtxDigBIQPXRURck2JmXyLg2W6edm8nPzJg3qOcina/oF3SaE3cz2YAAAABASuvPw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAAAA", - "estimated_added_weight": 172, - "outnum": 1 - } - } - ], - "author": [ - "Dusty <<@dusty_daemon>> is mainly responsible." - ], - "see_also": [ - "lightning-fundpsbt(7)", - "lightning-utxopsbt(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-autoclean-once.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "autoclean-once", - "title": "A single deletion of old invoices/payments/forwards", - "description": [ - "The **autoclean-once** RPC command tell the `autoclean` plugin to do a single sweep to delete old entries. This is a manual alternative (or addition) to the various `autoclean-...-age` parameters which cause autoclean to run once per hour: see lightningd-config(5)." - ], - "request": { - "required": [ - "subsystem", - "age" - ], - "properties": { - "subsystem": { - "type": "string", - "enum": [ - "succeededforwards", - "failedforwards", - "succeededpays", - "failedpays", - "paidinvoices", - "expiredinvoices" - ], - "description": [ - "What subsystem to clean. Currently supported subsystems are:", - " * `failedforwards`: routed payments which did not succeed (`failed` or `local_failed` in listforwards `status`).", - " * `succeededforwards`: routed payments which succeeded (`settled` in listforwards `status`).", - " * `failedpays`: payment attempts which did not succeed (`failed` in listpays `status`).", - " * `succeededpays`: payment attempts which succeeded (`complete` in listpays `status`).", - " * `expiredinvoices`: invoices which were not paid (and cannot be) (`expired` in listinvoices `status`).", - " * `paidinvoices`: invoices which were paid (`paid` in listinvoices `status)." - ] - }, - "age": { - "type": "u64", - "description": [ - "Non-zero number in seconds. How many seconds old an entry must be to delete it." - ] - } - } - }, - "response": { - "required": [ - "autoclean" + "example_usage": [ + "Here is a command to make a PSBT with a 100,000 sat output that leads to the on-chain wallet.", + "", + "```shell", + "lightning-cli addpsbtoutput 100000sat", + "```" ], - "properties": { - "autoclean": { - "type": "object", - "additionalProperties": false, - "properties": { - "succeededforwards": { - "type": "object", - "additionalProperties": false, - "required": [ - "cleaned", - "uncleaned" - ], - "properties": { - "cleaned": { - "type": "u64", - "description": [ - "Total number of deletions done this run." - ] - }, - "uncleaned": { - "type": "u64", - "description": [ - "The total number of entries *not* deleted this run." - ] - } - } - }, - "failedforwards": { - "type": "object", - "additionalProperties": false, - "required": [ - "cleaned", - "uncleaned" - ], - "properties": { - "cleaned": { - "type": "u64", - "description": [ - "Total number of deletions done this run." - ] - }, - "uncleaned": { - "type": "u64", - "description": [ - "The total number of entries *not* deleted this run." - ] - } - } - }, - "succeededpays": { - "type": "object", - "additionalProperties": false, - "required": [ - "cleaned", - "uncleaned" - ], - "properties": { - "cleaned": { - "type": "u64", - "description": [ - "Total number of deletions done this run." - ] - }, - "uncleaned": { - "type": "u64", - "description": [ - "The total number of entries *not* deleted this run." - ] - } - } - }, - "failedpays": { - "type": "object", - "additionalProperties": false, - "required": [ - "cleaned", - "uncleaned" - ], - "properties": { - "cleaned": { - "type": "u64", - "description": [ - "Total number of deletions done this run." - ] - }, - "uncleaned": { - "type": "u64", - "description": [ - "The total number of entries *not* deleted this run." - ] - } - } - }, - "paidinvoices": { - "type": "object", - "additionalProperties": false, - "required": [ - "cleaned", - "uncleaned" - ], - "properties": { - "cleaned": { - "type": "u64", - "description": [ - "Total number of deletions done this run." - ] - }, - "uncleaned": { - "type": "u64", - "description": [ - "The total number of entries *not* deleted this run." - ] - } - } - }, - "expiredinvoices": { - "type": "object", - "additionalProperties": false, - "required": [ - "cleaned", - "uncleaned" - ], - "properties": { - "cleaned": { - "type": "u64", - "description": [ - "Total number of deletions done this run." - ] - }, - "uncleaned": { - "type": "u64", - "description": [ - "The total number of entries *not* deleted this run." - ] - } - } + "json_example": [ + { + "request": { + "id": "example:addpsbtoutput#1", + "method": "addpsbtoutput", + "params": { + "satoshi": 100000, + "initialpsbt": null, + "locktime": null, + "destination": null } + }, + "response": { + "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIoIYBAAAAAAABBCJRIHg2NV/cioLcTLAKdyxVVBUdBjhKTdZejT9orAhWa4S+AA==", + "estimated_added_weight": 172, + "outnum": 0 } - } - } - }, - "json_example": [ - { - "request": { - "id": "example:autoclean-once#1", - "method": "autoclean-once", - "params": [ - "failedpays", - 1 - ] }, - "response": { - "autoclean": { - "failedpays": { - "cleaned": 1, - "uncleaned": 1 + { + "request": { + "id": "example:addpsbtoutput#2", + "method": "addpsbtoutput", + "params": { + "satoshi": 1000000, + "initialpsbt": null, + "locktime": 111, + "destination": null } + }, + "response": { + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIJd6ICNAQALFOMhoUHuSVSuzcaUdkDKlk4K+A+DR9+4uAA==", + "estimated_added_weight": 172, + "outnum": 0 } - } - }, - { - "request": { - "id": "example:autoclean-once#2", - "method": "autoclean-once", - "params": [ - "succeededpays", - 1 - ] }, - "response": { - "autoclean": { - "succeededpays": { - "cleaned": 1, - "uncleaned": 0 + { + "request": { + "id": "example:addpsbtoutput#3", + "method": "addpsbtoutput", + "params": { + "satoshi": 974343, + "initialpsbt": "cHNidP8BAF4CAAAAAfwbEpvpi6D14YV4VLnuVB47Y0uF41kXEyJRL4IusySSAQAAAAD9////ASICAAAAAAAAIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL5nAAAAAAEA9gIAAAAAAQFEkxvLatohY6mw5gr5qG1aiArSrziFPR2YoqD21Hv+RAAAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNrz8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIEu1nfVRt9i+rFM219mwhMqdwJsqygWSWTFUS+cemdh6AiBG3Qo8g9J/aAMO2RHDsIBScscj6pTTIwZp7Gw8G3EOKAEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPZgAAAAEBK68/DwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oAAA==", + "locktime": null, + "destination": "bcrt1q9tc6q49l6wrrtp8ul45rj92hsleehwwxty32zu" } + }, + "response": { + "psbt": "cHNidP8BAH0CAAAAAfwbEpvpi6D14YV4VLnuVB47Y0uF41kXEyJRL4IusySSAQAAAAD9////AiICAAAAAAAAIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4H3g4AAAAAABYAFCrxoFS/04Y1hPz9aDkVV4fzm7nGZwAAAAABAPYCAAAAAAEBRJMby2raIWOpsOYK+ahtWogK0q84hT0dmKKg9tR7/kQAAAAAAP3///8CQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAza8/DwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oCRzBEAiBLtZ31UbfYvqxTNtfZsITKncCbKsoFklkxVEvnHpnYegIgRt0KPIPSf2gDDtkRw7CAUnLHI+qU0yMGaexsPBtxDigBIQPXRURck2JmXyLg2W6edm8nPzJg3qOcina/oF3SaE3cz2YAAAABASuvPw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAAAA", + "estimated_added_weight": 172, + "outnum": 1 } } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightningd-config(5)", - "lightning-autoclean-status(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-autoclean-status.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "autoclean-status", - "title": "Examine auto-delete of old invoices/payments/forwards", - "description": [ - "The **autoclean-status** RPC command tells you about the status of the autclean plugin, optionally for only one subsystem." - ], - "request": { - "required": [], - "properties": { - "subsystem": { - "type": "string", - "enum": [ - "succeededforwards", - "failedforwards", - "succeededpays", - "failedpays", - "paidinvoices", - "expiredinvoices" - ], - "description": [ - "What subsystem to ask about. Currently supported subsystems are:", - " * `failedforwards`: routed payments which did not succeed (`failed` or `local_failed` in listforwards `status`).", - " * `succeededforwards`: routed payments which succeeded (`settled` in listforwards `status`).", - " * `failedpays`: payment attempts which did not succeed (`failed` in listpays `status`).", - " * `succeededpays`: payment attempts which succeeded (`complete` in listpays `status`).", - " * `expiredinvoices`: invoices which were not paid (and cannot be) (`expired` in listinvoices `status`).", - " * `paidinvoices`: invoices which were paid (`paid` in listinvoices `status)." - ] - } - } + ], + "author": [ + "Dusty <<@dusty_daemon>> is mainly responsible." + ], + "see_also": [ + "lightning-fundpsbt(7)", + "lightning-utxopsbt(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "autoclean" + "lightning-autoclean-once.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "autoclean-once", + "title": "A single deletion of old invoices/payments/forwards", + "description": [ + "The **autoclean-once** RPC command tell the `autoclean` plugin to do a single sweep to delete old entries. This is a manual alternative (or addition) to the various `autoclean-...-age` parameters which cause autoclean to run once per hour: see lightningd-config(5)." ], - "properties": { - "autoclean": { - "type": "object", - "additionalProperties": false, - "properties": { - "succeededforwards": { - "type": "object", - "additionalProperties": true, - "required": [ - "enabled", - "cleaned" - ], - "properties": { - "enabled": { - "type": "boolean", - "description": [ - "Whether autocleaning is enabled for successful listforwards." - ] - }, - "cleaned": { - "type": "u64", - "description": [ - "Total number of deletions done (ever)." - ] - } - }, - "if": { + "request": { + "required": [ + "subsystem", + "age" + ], + "properties": { + "subsystem": { + "type": "string", + "enum": [ + "succeededforwards", + "failedforwards", + "succeededpays", + "failedpays", + "paidinvoices", + "expiredinvoices" + ], + "description": [ + "What subsystem to clean. Currently supported subsystems are:", + " * `failedforwards`: routed payments which did not succeed (`failed` or `local_failed` in listforwards `status`).", + " * `succeededforwards`: routed payments which succeeded (`settled` in listforwards `status`).", + " * `failedpays`: payment attempts which did not succeed (`failed` in listpays `status`).", + " * `succeededpays`: payment attempts which succeeded (`complete` in listpays `status`).", + " * `expiredinvoices`: invoices which were not paid (and cannot be) (`expired` in listinvoices `status`).", + " * `paidinvoices`: invoices which were paid (`paid` in listinvoices `status)." + ] + }, + "age": { + "type": "u64", + "description": [ + "Non-zero number in seconds. How many seconds old an entry must be to delete it." + ] + } + } + }, + "response": { + "required": [ + "autoclean" + ], + "properties": { + "autoclean": { + "type": "object", + "additionalProperties": false, + "properties": { + "succeededforwards": { + "type": "object", + "additionalProperties": false, + "required": [ + "cleaned", + "uncleaned" + ], "properties": { - "enabled": { - "type": "boolean", - "enum": [ - true + "cleaned": { + "type": "u64", + "description": [ + "Total number of deletions done this run." + ] + }, + "uncleaned": { + "type": "u64", + "description": [ + "The total number of entries *not* deleted this run." ] } } }, - "then": { + "failedforwards": { + "type": "object", "additionalProperties": false, "required": [ - "enabled", - "age", - "cleaned" + "cleaned", + "uncleaned" ], "properties": { - "enabled": {}, - "cleaned": {}, - "age": { + "cleaned": { + "type": "u64", + "description": [ + "Total number of deletions done this run." + ] + }, + "uncleaned": { "type": "u64", "description": [ - "Age (in seconds) to delete successful listforwards." + "The total number of entries *not* deleted this run." ] } } }, - "else": { + "succeededpays": { + "type": "object", "additionalProperties": false, "required": [ - "enabled", - "cleaned" + "cleaned", + "uncleaned" ], "properties": { - "enabled": {}, - "cleaned": {} - } - } - }, - "failedforwards": { - "type": "object", - "additionalProperties": true, - "required": [ - "enabled", - "cleaned" - ], - "properties": { - "enabled": { - "type": "boolean", - "description": [ - "Whether autocleaning is enabled for failed listforwards." - ] - }, - "cleaned": { - "type": "u64", - "description": [ - "Total number of deletions done (ever)." - ] - } - }, - "if": { - "properties": { - "enabled": { - "type": "boolean", - "enum": [ - true + "cleaned": { + "type": "u64", + "description": [ + "Total number of deletions done this run." + ] + }, + "uncleaned": { + "type": "u64", + "description": [ + "The total number of entries *not* deleted this run." ] } } }, - "then": { + "failedpays": { + "type": "object", "additionalProperties": false, "required": [ - "enabled", - "age", - "cleaned" + "cleaned", + "uncleaned" ], "properties": { - "enabled": {}, - "cleaned": {}, - "age": { + "cleaned": { + "type": "u64", + "description": [ + "Total number of deletions done this run." + ] + }, + "uncleaned": { "type": "u64", "description": [ - "Age (in seconds) to delete failed listforwards." + "The total number of entries *not* deleted this run." ] } } }, - "else": { + "paidinvoices": { + "type": "object", "additionalProperties": false, "required": [ - "enabled", - "cleaned" + "cleaned", + "uncleaned" ], "properties": { - "enabled": {}, - "cleaned": {} - } - } - }, - "succeededpays": { - "type": "object", - "additionalProperties": true, - "required": [ - "enabled", - "cleaned" - ], - "properties": { - "enabled": { - "type": "boolean", - "description": [ - "Whether autocleaning is enabled for successful listpays/listsendpays." - ] - }, - "cleaned": { - "type": "u64", - "description": [ - "Total number of deletions done (ever)." - ] - } - }, - "if": { - "properties": { - "enabled": { - "type": "boolean", - "enum": [ - true + "cleaned": { + "type": "u64", + "description": [ + "Total number of deletions done this run." + ] + }, + "uncleaned": { + "type": "u64", + "description": [ + "The total number of entries *not* deleted this run." ] } } }, - "then": { + "expiredinvoices": { + "type": "object", "additionalProperties": false, "required": [ - "enabled", - "age", - "cleaned" + "cleaned", + "uncleaned" ], "properties": { - "enabled": {}, - "cleaned": {}, - "age": { + "cleaned": { + "type": "u64", + "description": [ + "Total number of deletions done this run." + ] + }, + "uncleaned": { "type": "u64", "description": [ - "Age (in seconds) to delete successful listpays/listsendpays." + "The total number of entries *not* deleted this run." ] } } - }, - "else": { - "additionalProperties": false, + } + } + } + } + }, + "json_example": [ + { + "request": { + "id": "example:autoclean-once#1", + "method": "autoclean-once", + "params": [ + "failedpays", + 1 + ] + }, + "response": { + "autoclean": { + "failedpays": { + "cleaned": 1, + "uncleaned": 1 + } + } + } + }, + { + "request": { + "id": "example:autoclean-once#2", + "method": "autoclean-once", + "params": [ + "succeededpays", + 1 + ] + }, + "response": { + "autoclean": { + "succeededpays": { + "cleaned": 1, + "uncleaned": 0 + } + } + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightningd-config(5)", + "lightning-autoclean-status(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-autoclean-status.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "autoclean-status", + "title": "Examine auto-delete of old invoices/payments/forwards", + "description": [ + "The **autoclean-status** RPC command tells you about the status of the autclean plugin, optionally for only one subsystem." + ], + "request": { + "required": [], + "properties": { + "subsystem": { + "type": "string", + "enum": [ + "succeededforwards", + "failedforwards", + "succeededpays", + "failedpays", + "paidinvoices", + "expiredinvoices" + ], + "description": [ + "What subsystem to ask about. Currently supported subsystems are:", + " * `failedforwards`: routed payments which did not succeed (`failed` or `local_failed` in listforwards `status`).", + " * `succeededforwards`: routed payments which succeeded (`settled` in listforwards `status`).", + " * `failedpays`: payment attempts which did not succeed (`failed` in listpays `status`).", + " * `succeededpays`: payment attempts which succeeded (`complete` in listpays `status`).", + " * `expiredinvoices`: invoices which were not paid (and cannot be) (`expired` in listinvoices `status`).", + " * `paidinvoices`: invoices which were paid (`paid` in listinvoices `status)." + ] + } + } + }, + "response": { + "required": [ + "autoclean" + ], + "properties": { + "autoclean": { + "type": "object", + "additionalProperties": false, + "properties": { + "succeededforwards": { + "type": "object", + "additionalProperties": true, "required": [ "enabled", "cleaned" ], - "properties": { - "enabled": {}, - "cleaned": {} - } - } - }, - "failedpays": { - "type": "object", - "additionalProperties": true, - "required": [ - "enabled", - "cleaned" - ], - "properties": { - "enabled": { - "type": "boolean", - "description": [ - "Whether autocleaning is enabled for failed listpays/listsendpays." - ] - }, - "cleaned": { - "type": "u64", - "description": [ - "Total number of deletions done (ever)." - ] - } - }, - "if": { "properties": { "enabled": { "type": "boolean", - "enum": [ - true + "description": [ + "Whether autocleaning is enabled for successful listforwards." ] + }, + "cleaned": { + "type": "u64", + "description": [ + "Total number of deletions done (ever)." + ] + } + }, + "if": { + "properties": { + "enabled": { + "type": "boolean", + "enum": [ + true + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "enabled", + "age", + "cleaned" + ], + "properties": { + "enabled": {}, + "cleaned": {}, + "age": { + "type": "u64", + "description": [ + "Age (in seconds) to delete successful listforwards." + ] + } + } + }, + "else": { + "additionalProperties": false, + "required": [ + "enabled", + "cleaned" + ], + "properties": { + "enabled": {}, + "cleaned": {} } } }, - "then": { - "additionalProperties": false, + "failedforwards": { + "type": "object", + "additionalProperties": true, "required": [ "enabled", - "age", "cleaned" ], "properties": { - "enabled": {}, - "cleaned": {}, - "age": { + "enabled": { + "type": "boolean", + "description": [ + "Whether autocleaning is enabled for failed listforwards." + ] + }, + "cleaned": { "type": "u64", "description": [ - "Age (in seconds) to delete failed listpays/listsendpays." + "Total number of deletions done (ever)." ] } - } - }, - "else": { - "additionalProperties": false, - "required": [ - "enabled", - "cleaned" - ], - "properties": { - "enabled": {}, - "cleaned": {} - } - } - }, - "paidinvoices": { - "type": "object", - "additionalProperties": true, - "required": [ - "enabled", - "cleaned" - ], - "properties": { - "enabled": { - "type": "boolean", - "description": [ - "Whether autocleaning is enabled for paid listinvoices." - ] }, - "cleaned": { - "type": "u64", - "description": [ - "Total number of deletions done (ever)." - ] - } - }, - "if": { - "properties": { - "enabled": { - "type": "boolean", - "enum": [ - true - ] + "if": { + "properties": { + "enabled": { + "type": "boolean", + "enum": [ + true + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "enabled", + "age", + "cleaned" + ], + "properties": { + "enabled": {}, + "cleaned": {}, + "age": { + "type": "u64", + "description": [ + "Age (in seconds) to delete failed listforwards." + ] + } + } + }, + "else": { + "additionalProperties": false, + "required": [ + "enabled", + "cleaned" + ], + "properties": { + "enabled": {}, + "cleaned": {} } } }, - "then": { - "additionalProperties": false, + "succeededpays": { + "type": "object", + "additionalProperties": true, "required": [ "enabled", - "age", "cleaned" ], "properties": { - "enabled": {}, - "cleaned": {}, - "age": { + "enabled": { + "type": "boolean", + "description": [ + "Whether autocleaning is enabled for successful listpays/listsendpays." + ] + }, + "cleaned": { "type": "u64", "description": [ - "Age (in seconds) to paid listinvoices." + "Total number of deletions done (ever)." ] } + }, + "if": { + "properties": { + "enabled": { + "type": "boolean", + "enum": [ + true + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "enabled", + "age", + "cleaned" + ], + "properties": { + "enabled": {}, + "cleaned": {}, + "age": { + "type": "u64", + "description": [ + "Age (in seconds) to delete successful listpays/listsendpays." + ] + } + } + }, + "else": { + "additionalProperties": false, + "required": [ + "enabled", + "cleaned" + ], + "properties": { + "enabled": {}, + "cleaned": {} + } } }, - "else": { - "additionalProperties": false, + "failedpays": { + "type": "object", + "additionalProperties": true, "required": [ "enabled", "cleaned" ], - "properties": { - "enabled": {}, - "cleaned": {} - } - } - }, - "expiredinvoices": { - "type": "object", - "additionalProperties": true, - "required": [ - "enabled", - "cleaned" - ], - "properties": { - "enabled": { - "type": "boolean", - "description": [ - "Whether autocleaning is enabled for expired (unpaid) listinvoices." - ] - }, - "cleaned": { - "type": "u64", - "description": [ - "Total number of deletions done (ever)." - ] - } - }, - "if": { "properties": { "enabled": { "type": "boolean", - "enum": [ - true + "description": [ + "Whether autocleaning is enabled for failed listpays/listsendpays." + ] + }, + "cleaned": { + "type": "u64", + "description": [ + "Total number of deletions done (ever)." ] } + }, + "if": { + "properties": { + "enabled": { + "type": "boolean", + "enum": [ + true + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "enabled", + "age", + "cleaned" + ], + "properties": { + "enabled": {}, + "cleaned": {}, + "age": { + "type": "u64", + "description": [ + "Age (in seconds) to delete failed listpays/listsendpays." + ] + } + } + }, + "else": { + "additionalProperties": false, + "required": [ + "enabled", + "cleaned" + ], + "properties": { + "enabled": {}, + "cleaned": {} + } } }, - "then": { - "additionalProperties": false, + "paidinvoices": { + "type": "object", + "additionalProperties": true, "required": [ "enabled", - "age", "cleaned" ], "properties": { - "enabled": {}, - "cleaned": {}, - "age": { + "enabled": { + "type": "boolean", + "description": [ + "Whether autocleaning is enabled for paid listinvoices." + ] + }, + "cleaned": { "type": "u64", "description": [ - "Age (in seconds) to expired listinvoices." + "Total number of deletions done (ever)." ] } + }, + "if": { + "properties": { + "enabled": { + "type": "boolean", + "enum": [ + true + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "enabled", + "age", + "cleaned" + ], + "properties": { + "enabled": {}, + "cleaned": {}, + "age": { + "type": "u64", + "description": [ + "Age (in seconds) to paid listinvoices." + ] + } + } + }, + "else": { + "additionalProperties": false, + "required": [ + "enabled", + "cleaned" + ], + "properties": { + "enabled": {}, + "cleaned": {} + } } }, - "else": { - "additionalProperties": false, + "expiredinvoices": { + "type": "object", + "additionalProperties": true, "required": [ "enabled", "cleaned" ], "properties": { - "enabled": {}, - "cleaned": {} + "enabled": { + "type": "boolean", + "description": [ + "Whether autocleaning is enabled for expired (unpaid) listinvoices." + ] + }, + "cleaned": { + "type": "u64", + "description": [ + "Total number of deletions done (ever)." + ] + } + }, + "if": { + "properties": { + "enabled": { + "type": "boolean", + "enum": [ + true + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "enabled", + "age", + "cleaned" + ], + "properties": { + "enabled": {}, + "cleaned": {}, + "age": { + "type": "u64", + "description": [ + "Age (in seconds) to expired listinvoices." + ] + } + } + }, + "else": { + "additionalProperties": false, + "required": [ + "enabled", + "cleaned" + ], + "properties": { + "enabled": {}, + "cleaned": {} + } } } } } - } + }, + "pre_return_value_notes": [ + "Note that the ages parameters are set by various `autoclean-...-age` parameters in your configuration: see lightningd-config(5)." + ] }, - "pre_return_value_notes": [ - "Note that the ages parameters are set by various `autoclean-...-age` parameters in your configuration: see lightningd-config(5)." - ] - }, - "json_example": [ - { - "request": { - "id": "example:autoclean-status#1", - "method": "autoclean-status", - "params": { - "subsystem": "expiredinvoices" + "json_example": [ + { + "request": { + "id": "example:autoclean-status#1", + "method": "autoclean-status", + "params": { + "subsystem": "expiredinvoices" + } + }, + "response": { + "autoclean": { + "expiredinvoices": { + "enabled": false, + "cleaned": 0 + } + } } }, - "response": { - "autoclean": { - "expiredinvoices": { - "enabled": false, - "cleaned": 0 + { + "request": { + "id": "example:autoclean-status#2", + "method": "autoclean-status", + "params": { + "subsystem": null + } + }, + "response": { + "autoclean": { + "succeededforwards": { + "enabled": false, + "cleaned": 0 + }, + "failedforwards": { + "enabled": false, + "cleaned": 0 + }, + "succeededpays": { + "enabled": false, + "cleaned": 0 + }, + "failedpays": { + "enabled": false, + "cleaned": 0 + }, + "paidinvoices": { + "enabled": false, + "cleaned": 0 + }, + "expiredinvoices": { + "enabled": true, + "age": 2, + "cleaned": 0 + } } } } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightningd-config(5)", + "lightning-listinvoices(7)", + "lightning-listpays(7)", + "lightning-listforwards(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-autocleaninvoice.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "setchannel", + "title": "Command for configuring fees / htlc range advertized for a channel", + "description": [], + "request": { + "required": [], + "properties": { + "expired_by": { + "type": "u64", + "description": [ + "How long an invoice must be expired (seconds) before we delete it." + ] + }, + "cycle_seconds": { + "type": "u64", + "description": [ + "The interval (in seconds) between cleaning expired invoices." + ] + } + } }, - { - "request": { - "id": "example:autoclean-status#2", - "method": "autoclean-status", - "params": { - "subsystem": null + "response": { + "required": [ + "enabled" + ], + "properties": { + "enabled": { + "type": "boolean", + "description": [ + "Whether invoice autocleaning is active." + ] } }, - "response": { - "autoclean": { - "succeededforwards": { - "enabled": false, - "cleaned": 0 + "allOf": [ + { + "if": { + "properties": { + "enabled": { + "type": "boolean", + "enum": [ + true + ] + } + } }, - "failedforwards": { - "enabled": false, - "cleaned": 0 - }, - "succeededpays": { - "enabled": false, - "cleaned": 0 - }, - "failedpays": { - "enabled": false, - "cleaned": 0 - }, - "paidinvoices": { - "enabled": false, - "cleaned": 0 + "then": { + "additionalProperties": false, + "required": [ + "expired_by", + "cycle_seconds" + ], + "properties": { + "enabled": {}, + "expired_by": { + "type": "u64", + "description": [ + "How long an invoice must be expired (seconds) before we delete it." + ] + }, + "cycle_seconds": { + "type": "u64", + "description": [ + "How long an invoice must be expired (seconds) before we delete it." + ] + } + } }, - "expiredinvoices": { - "enabled": true, - "age": 2, - "cleaned": 0 + "else": { + "additionalProperties": false, + "properties": { + "enabled": {} + } } } - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightningd-config(5)", - "lightning-listinvoices(7)", - "lightning-listpays(7)", - "lightning-listforwards(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-autocleaninvoice.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "setchannel", - "title": "Command for configuring fees / htlc range advertized for a channel", - "description": [], - "request": { - "required": [], - "properties": { - "expired_by": { - "type": "u64", - "description": [ - "How long an invoice must be expired (seconds) before we delete it." - ] - }, - "cycle_seconds": { - "type": "u64", - "description": [ - "The interval (in seconds) between cleaning expired invoices." - ] - } - } - }, - "response": { - "required": [ - "enabled" - ], - "properties": { - "enabled": { - "type": "boolean", - "description": [ - "Whether invoice autocleaning is active." - ] - } + ] }, - "allOf": [ + "json_example": [ { - "if": { - "properties": { - "enabled": { - "type": "boolean", - "enum": [ - true - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "expired_by", - "cycle_seconds" - ], - "properties": { - "enabled": {}, - "expired_by": { - "type": "u64", - "description": [ - "How long an invoice must be expired (seconds) before we delete it." - ] - }, - "cycle_seconds": { - "type": "u64", - "description": [ - "How long an invoice must be expired (seconds) before we delete it." - ] - } + "request": { + "id": "example:autocleaninvoice#1", + "method": "autocleaninvoice", + "params": { + "cycle_seconds": 8, + "expired_by": 2 } }, - "else": { - "additionalProperties": false, - "properties": { - "enabled": {} - } - } - } - ] - }, - "json_example": [ - { - "request": { - "id": "example:autocleaninvoice#1", - "method": "autocleaninvoice", - "params": { + "response": { + "enabled": true, "cycle_seconds": 8, "expired_by": 2 } }, - "response": { - "enabled": true, - "cycle_seconds": 8, - "expired_by": 2 - } - }, - { - "request": { - "id": "example:autocleaninvoice#2", - "method": "autocleaninvoice", - "params": { + { + "request": { + "id": "example:autocleaninvoice#2", + "method": "autocleaninvoice", + "params": { + "cycle_seconds": 1, + "expired_by": 1 + } + }, + "response": { + "enabled": true, "cycle_seconds": 1, "expired_by": 1 } - }, - "response": { - "enabled": true, - "cycle_seconds": 1, - "expired_by": 1 } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightningd-config(5)", - "lightning-listinvoices(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-batching.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "batching", - "title": "Command to allow database batching.", - "description": [ - "The **batching** RPC command allows (but does not guarantee!) database commitments to be deferred when multiple commands are issued on this RPC connection. This is only useful if many commands are being given at once, in which case it can offer a performance improvement (the cost being that if there is a crash, it's unclear how many of the commands will have been persisted)." - ], - "request": { - "required": [ - "enable" ], - "properties": { - "enable": { - "type": "boolean", - "description": [ - "Whether to enable or disable transaction batching." - ], - "default": "False" - } - } - }, - "response": { - "properties": {} - }, - "json_example": [ - { - "request": { - "id": "example:batching#1", - "method": "batching", - "params": { - "enable": true - } - }, - "response": {} - } - ], - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32602: Error in given parameters." - ], - "author": [ - "Rusty Russell <> wrote the initial version of this man page." - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-bkpr-channelsapy.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "bkpr-channelsapy", - "title": "Command to list stats on channel earnings", - "description": [ - "The **bkpr-channelsapy** RPC command lists stats on routing income, leasing income, and various calculated APYs for channel routed funds." - ], - "request": { - "required": [], - "properties": { - "start_time": { - "type": "u64", - "description": [ - "UNIX timestamp (in seconds) to filter events after the provided timestamp." - ], - "default": "zero" - }, - "end_time": { - "type": "u64", - "description": [ - "UNIX timestamp (in seconds) to filter events up to and at the provided timestamp." - ], - "default": "max-int" - } - } + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightningd-config(5)", + "lightning-listinvoices(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "channels_apy" + "lightning-batching.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "batching", + "title": "Command to allow database batching.", + "description": [ + "The **batching** RPC command allows (but does not guarantee!) database commitments to be deferred when multiple commands are issued on this RPC connection. This is only useful if many commands are being given at once, in which case it can offer a performance improvement (the cost being that if there is a crash, it's unclear how many of the commands will have been persisted)." ], - "properties": { - "channels_apy": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "account", - "routed_out_msat", - "routed_in_msat", - "lease_fee_paid_msat", - "lease_fee_earned_msat", - "pushed_out_msat", - "pushed_in_msat", - "our_start_balance_msat", - "channel_start_balance_msat", - "fees_out_msat", - "utilization_out", - "utilization_in", - "apy_out", - "apy_in", - "apy_total" + "request": { + "required": [ + "enable" + ], + "properties": { + "enable": { + "type": "boolean", + "description": [ + "Whether to enable or disable transaction batching." ], - "properties": { - "account": { - "type": "string", - "description": [ - "The account name. If the account is a channel, the channel_id. The 'net' entry is the rollup of all channel accounts." - ] - }, - "routed_out_msat": { - "type": "msat", - "description": [ - "Sats routed (outbound)." - ] - }, - "routed_in_msat": { - "type": "msat", - "description": [ - "Sats routed (inbound)." - ] - }, - "lease_fee_paid_msat": { - "type": "msat", - "description": [ - "Sats paid for leasing inbound (liquidity ads)." - ] - }, - "lease_fee_earned_msat": { - "type": "msat", - "description": [ - "Sats earned for leasing outbound (liquidity ads)." - ] - }, - "pushed_out_msat": { - "type": "msat", - "description": [ - "Sats pushed to peer at open." - ] - }, - "pushed_in_msat": { - "type": "msat", - "description": [ - "Sats pushed in from peer at open." - ] - }, - "our_start_balance_msat": { - "type": "msat", - "description": [ - "Starting balance in channel at funding. Note that if our start balance is zero, any _initial field will be omitted (can't divide by zero)." - ] - }, - "channel_start_balance_msat": { - "type": "msat", - "description": [ - "Total starting balance at funding." - ] - }, - "fees_out_msat": { - "type": "msat", - "description": [ - "Fees earned on routed outbound." - ] - }, - "fees_in_msat": { - "type": "msat", - "description": [ - "Fees earned on routed inbound." - ] - }, - "utilization_out": { - "type": "string", - "description": [ - "Sats routed outbound / total start balance." - ] - }, - "utilization_out_initial": { - "type": "string", - "description": [ - "Sats routed outbound / our start balance." - ] - }, - "utilization_in": { - "type": "string", - "description": [ - "Sats routed inbound / total start balance." - ] - }, - "utilization_in_initial": { - "type": "string", - "description": [ - "Sats routed inbound / our start balance." - ] - }, - "apy_out": { - "type": "string", - "description": [ - "Fees earned on outbound routed payments / total start balance for the length of time this channel has been open amortized to a year (APY)." - ] - }, - "apy_out_initial": { - "type": "string", - "description": [ - "Fees earned on outbound routed payments / our start balance for the length of time this channel has been open amortized to a year (APY)." - ] - }, - "apy_in": { - "type": "string", - "description": [ - "Fees earned on inbound routed payments / total start balance for the length of time this channel has been open amortized to a year (APY)." - ] - }, - "apy_in_initial": { - "type": "string", - "description": [ - "Fees earned on inbound routed payments / our start balance for the length of time this channel has been open amortized to a year (APY)." - ] - }, - "apy_total": { - "type": "string", - "description": [ - "Total fees earned on routed payments / total start balance for the length of time this channel has been open amortized to a year (APY)." - ] - }, - "apy_total_initial": { - "type": "string", - "description": [ - "Total fees earned on routed payments / our start balance for the length of time this channel has been open amortized to a year (APY)." - ] - }, - "apy_lease": { - "type": "string", - "description": [ - "Lease fees earned over total amount leased for the lease term, amortized to a year (APY). Only appears if channel was leased out by us." - ] - } - } + "default": "False" } } - } - }, - "json_example": [ - { - "request": { - "id": "example:bkpr-channelsapy#1", - "method": "bkpr-channelsapy", - "params": "{}" - }, - "response": { - "channels_apy": [ - { - "account": "e41b2ec83e9139a9fd8f1d89b01e5d7df73099494e6b91504c39445e37485b0d", - "routed_out_msat": 1431440, - "routed_in_msat": 0, - "lease_fee_paid_msat": 0, - "lease_fee_earned_msat": 0, - "pushed_out_msat": 0, - "pushed_in_msat": 0, - "our_start_balance_msat": 1000000000, - "channel_start_balance_msat": 1000000000, - "fees_out_msat": 0, - "fees_in_msat": 0, - "utilization_out": "0.1431%", - "utilization_out_initial": "0.1431%", - "utilization_in": "0.0000%", - "apy_out": "0.0000%", - "apy_out_initial": "0.0000%", - "apy_in": "0.0000%", - "apy_total": "0.0000%", - "apy_total_initial": "0.0000%" - }, - { - "account": "net", - "routed_out_msat": 1431440, - "routed_in_msat": 0, - "lease_fee_paid_msat": 0, - "lease_fee_earned_msat": 0, - "pushed_out_msat": 0, - "pushed_in_msat": 0, - "our_start_balance_msat": 1000000000, - "channel_start_balance_msat": 1000000000, - "fees_out_msat": 0, - "fees_in_msat": 0, - "utilization_out": "0.1431%", - "utilization_out_initial": "0.1431%", - "utilization_in": "0.0000%", - "apy_out": "0.0000%", - "apy_out_initial": "0.0000%", - "apy_in": "0.0000%", - "apy_total": "0.0000%", - "apy_total_initial": "0.0000%" + }, + "response": { + "properties": {} + }, + "json_example": [ + { + "request": { + "id": "example:batching#1", + "method": "batching", + "params": { + "enable": true } - ] + }, + "response": {} } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-bkpr-listincome(7)", - "lightning-bkpr-listfunds(7)", - "lightning-bkpr-listaccountevents(7)", - "lightning-bkpr-dumpincomecsv(7)", - "lightning-listpeers(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-bkpr-dumpincomecsv.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "bkpr-dumpincomecsv", - "title": "Command to emit a CSV of income events", - "description": [ - "The **bkpr-dumpincomcsv** RPC command writes a CSV file to disk at *csv_file* location. This is a formatted output of the **listincome** RPC command." - ], - "request": { - "required": [ - "csv_format" ], - "properties": { - "csv_format": { - "type": "string", - "description": [ - "CSV format to use. See RETURN VALUE for options." - ] - }, - "csv_file": { - "type": "string", - "description": [ - "On-disk destination of the generated CSV file." - ] - }, - "consolidate_fees": { - "type": "boolean", - "description": [ - "If true, we emit a single, consolidated event for any onchain-fees for a txid and account. Otherwise, events for every update to the onchain fee calculation for this account and txid will be printed. Note that this means that the events emitted are non-stable, i.e. calling **dumpincomecsv** twice may result in different onchain fee events being emitted, depending on how much information we've logged for that transaction." - ], - "default": "True" - }, - "start_time": { - "type": "u64", - "description": [ - "UNIX timestamp (in seconds) that filters events after the provided timestamp." - ], - "default": "zero" - }, - "end_time": { - "type": "u64", - "description": [ - "UNIX timestamp (in seconds) that filters events up to and at the provided timestamp." - ], - "default": "max-int" - } - } - }, - "response": { - "required": [ - "csv_file", - "csv_format" + "errors": [ + "On failure, one of the following error codes may be returned:", + "", + "- -32602: Error in given parameters." ], - "properties": { - "csv_file": { - "type": "string", - "description": [ - "File that the csv was generated to." - ] - }, - "csv_format": { - "type": "string", - "enum": [ - "cointracker", - "koinly", - "harmony", - "quickbooks" - ], - "description": [ - "Format to print csv as." - ] - } - } + "author": [ + "Rusty Russell <> wrote the initial version of this man page." + ], + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:bkpr-dumpincomecsv#1", - "method": "bkpr-dumpincomecsv", - "params": [ - "koinly", - "koinly.csv" - ] - }, - "response": { - "csv_file": "koinly.csv", - "csv_format": "koinly" - } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-bkpr-listincome(7)", - "lightning-bkpr-listfunds(7)", - "lightning-bkpr-listaccountevents(7)", - "lightning-bkpr-channelsapy(7)", - "lightning-listpeers(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-bkpr-inspect.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "bkpr-inspect", - "title": "Command to show onchain footprint of a channel", - "description": [ - "The **bkpr-inspect** RPC command lists all known on-chain transactions and associated events for the provided account. Useful for inspecting unilateral closes for a given channel account. Only valid for channel accounts." - ], - "request": { - "required": [ - "account" - ], - "properties": { - "account": { - "type": "string", - "description": [ - "Channel account to inspect." - ] - } - } - }, - "response": { - "required": [ - "txs" + "lightning-bkpr-channelsapy.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "bkpr-channelsapy", + "title": "Command to list stats on channel earnings", + "description": [ + "The **bkpr-channelsapy** RPC command lists stats on routing income, leasing income, and various calculated APYs for channel routed funds." ], - "properties": { - "txs": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "txid", - "fees_paid_msat", - "outputs" + "request": { + "required": [], + "properties": { + "start_time": { + "type": "u64", + "description": [ + "UNIX timestamp (in seconds) to filter events after the provided timestamp." ], - "properties": { - "txid": { - "type": "txid", - "description": [ - "Transaction id." - ] - }, - "blockheight": { - "type": "u32", - "description": [ - "Blockheight of transaction." - ] - }, - "fees_paid_msat": { - "type": "msat", - "description": [ - "Amount paid in sats for this tx." - ] - }, - "outputs": { - "type": "array", - "items": { - "type": "object", - "required": [ - "account", - "outnum", - "output_value_msat", - "currency" - ], - "additionalProperties": false, - "properties": { - "account": { - "type": "string", - "description": [ - "Account this output affected." - ] - }, - "outnum": { - "type": "u32", - "description": [ - "Index of output." - ] - }, - "output_value_msat": { - "type": "msat", - "description": [ - "Value of the output." - ] - }, - "currency": { - "type": "string", - "description": [ - "Human-readable bech32 part for this coin type." - ] - }, - "credit_msat": { - "type": "msat", - "description": [ - "Amount credited to account." - ] - }, - "debit_msat": { - "type": "msat", - "description": [ - "Amount debited from account." - ] - }, - "originating_account": { - "type": "string", - "description": [ - "Account this output originated from." - ] - }, - "output_tag": { - "type": "string", - "description": [ - "Description of output creation event." - ] - }, - "spend_tag": { - "type": "string", - "description": [ - "Description of output spend event." - ] - }, - "spending_txid": { - "type": "txid", - "description": [ - "Transaction this output was spent in." - ] - }, - "payment_id": { - "type": "hex", - "description": [ - "Lightning payment identifier. For an htlc, this will be the preimage." - ] - } - }, - "allOf": [ - { - "if": { - "required": [ - "credit_msat" - ] - }, - "then": { - "required": [ - "output_tag" - ], - "additionalProperties": false, - "properties": { - "account": {}, - "outnum": {}, - "output_value_msat": {}, - "currency": {}, - "credit_msat": {}, - "originating_account": {}, - "debit_msat": {}, - "output_tag": {}, - "spend_tag": {}, - "spending_txid": {}, - "payment_id": {} - } - } - }, - { - "if": { - "required": [ - "spending_txid" - ] - }, - "then": { - "required": [ - "spend_tag", - "debit_msat" - ], - "additionalProperties": false, - "properties": { - "account": {}, - "outnum": {}, - "output_value_msat": {}, - "currency": {}, - "credit_msat": {}, - "originating_account": {}, - "debit_msat": {}, - "output_tag": {}, - "spend_tag": {}, - "spending_txid": {}, - "payment_id": {} - } - } - } + "default": "zero" + }, + "end_time": { + "type": "u64", + "description": [ + "UNIX timestamp (in seconds) to filter events up to and at the provided timestamp." + ], + "default": "max-int" + } + } + }, + "response": { + "required": [ + "channels_apy" + ], + "properties": { + "channels_apy": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "account", + "routed_out_msat", + "routed_in_msat", + "lease_fee_paid_msat", + "lease_fee_earned_msat", + "pushed_out_msat", + "pushed_in_msat", + "our_start_balance_msat", + "channel_start_balance_msat", + "fees_out_msat", + "utilization_out", + "utilization_in", + "apy_out", + "apy_in", + "apy_total" + ], + "properties": { + "account": { + "type": "string", + "description": [ + "The account name. If the account is a channel, the channel_id. The 'net' entry is the rollup of all channel accounts." + ] + }, + "routed_out_msat": { + "type": "msat", + "description": [ + "Sats routed (outbound)." + ] + }, + "routed_in_msat": { + "type": "msat", + "description": [ + "Sats routed (inbound)." + ] + }, + "lease_fee_paid_msat": { + "type": "msat", + "description": [ + "Sats paid for leasing inbound (liquidity ads)." + ] + }, + "lease_fee_earned_msat": { + "type": "msat", + "description": [ + "Sats earned for leasing outbound (liquidity ads)." + ] + }, + "pushed_out_msat": { + "type": "msat", + "description": [ + "Sats pushed to peer at open." + ] + }, + "pushed_in_msat": { + "type": "msat", + "description": [ + "Sats pushed in from peer at open." + ] + }, + "our_start_balance_msat": { + "type": "msat", + "description": [ + "Starting balance in channel at funding. Note that if our start balance is zero, any _initial field will be omitted (can't divide by zero)." + ] + }, + "channel_start_balance_msat": { + "type": "msat", + "description": [ + "Total starting balance at funding." + ] + }, + "fees_out_msat": { + "type": "msat", + "description": [ + "Fees earned on routed outbound." + ] + }, + "fees_in_msat": { + "type": "msat", + "description": [ + "Fees earned on routed inbound." + ] + }, + "utilization_out": { + "type": "string", + "description": [ + "Sats routed outbound / total start balance." + ] + }, + "utilization_out_initial": { + "type": "string", + "description": [ + "Sats routed outbound / our start balance." + ] + }, + "utilization_in": { + "type": "string", + "description": [ + "Sats routed inbound / total start balance." + ] + }, + "utilization_in_initial": { + "type": "string", + "description": [ + "Sats routed inbound / our start balance." + ] + }, + "apy_out": { + "type": "string", + "description": [ + "Fees earned on outbound routed payments / total start balance for the length of time this channel has been open amortized to a year (APY)." + ] + }, + "apy_out_initial": { + "type": "string", + "description": [ + "Fees earned on outbound routed payments / our start balance for the length of time this channel has been open amortized to a year (APY)." + ] + }, + "apy_in": { + "type": "string", + "description": [ + "Fees earned on inbound routed payments / total start balance for the length of time this channel has been open amortized to a year (APY)." + ] + }, + "apy_in_initial": { + "type": "string", + "description": [ + "Fees earned on inbound routed payments / our start balance for the length of time this channel has been open amortized to a year (APY)." + ] + }, + "apy_total": { + "type": "string", + "description": [ + "Total fees earned on routed payments / total start balance for the length of time this channel has been open amortized to a year (APY)." + ] + }, + "apy_total_initial": { + "type": "string", + "description": [ + "Total fees earned on routed payments / our start balance for the length of time this channel has been open amortized to a year (APY)." + ] + }, + "apy_lease": { + "type": "string", + "description": [ + "Lease fees earned over total amount leased for the lease term, amortized to a year (APY). Only appears if channel was leased out by us." ] } } } } } - } - }, - "json_example": [ - { - "request": { - "id": "example:bkpr-inspect#1", - "method": "bkpr-inspect", - "params": [ - "f30a7bab1ec077622d8fe877634bc6dd38bb08122ad49606199c565e0383b2ab" - ] - }, - "response": { - "txs": [ - { - "txid": "abb283035e569c190696d42a1208bb38ddc64b6377e88f2d6277c01eab7b0af3", - "fees_paid_msat": 0, - "outputs": [ - { - "account": "f30a7bab1ec077622d8fe877634bc6dd38bb08122ad49606199c565e0383b2ab", - "outnum": 0, - "output_tag": "channel_proposed", - "output_value_msat": 996363000, - "credit_msat": 996363000, - "currency": "bcrt" - } - ] - } - ] - } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-listbalances(7)", - "lightning-listfunds(7)", - "lightning-listpeers(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-bkpr-listaccountevents.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "bkpr-listaccountevents", - "title": "Command for listing recorded bookkeeping events", - "description": [ - "The **bkpr-listaccountevents** RPC command is a list of all bookkeeping events that have been recorded for this node.", - "", - "If the optional parameter **account** is set, we only emit events for the specified account, if exists.", - "", - "Note that the type **onchain_fees** that are emitted are of opposite credit/debit than as they appear in **listincome**, as **listincome** shows all events from the perspective of the node, whereas **listaccountevents** just dumps the event data as we've got it. Onchain fees are updated/recorded as we get more information about input and output spends -- the total onchain fees that were recorded for a transaction for an account can be found by summing all onchain fee events and taking the difference between the **credit_msat** and **debit_msat** for these events. We do this so that successive calls to **listaccountevents** always produce the same list of events -- no previously emitted event will be subsequently updated, rather we add a new event to the list." - ], - "request": { - "required": [], - "properties": { - "account": { - "type": "string", - "description": [ - "Receive events for the specified account." - ] + }, + "json_example": [ + { + "request": { + "id": "example:bkpr-channelsapy#1", + "method": "bkpr-channelsapy", + "params": "{}" + }, + "response": { + "channels_apy": [ + { + "account": "e41b2ec83e9139a9fd8f1d89b01e5d7df73099494e6b91504c39445e37485b0d", + "routed_out_msat": 1431440, + "routed_in_msat": 0, + "lease_fee_paid_msat": 0, + "lease_fee_earned_msat": 0, + "pushed_out_msat": 0, + "pushed_in_msat": 0, + "our_start_balance_msat": 1000000000, + "channel_start_balance_msat": 1000000000, + "fees_out_msat": 0, + "fees_in_msat": 0, + "utilization_out": "0.1431%", + "utilization_out_initial": "0.1431%", + "utilization_in": "0.0000%", + "apy_out": "0.0000%", + "apy_out_initial": "0.0000%", + "apy_in": "0.0000%", + "apy_total": "0.0000%", + "apy_total_initial": "0.0000%" + }, + { + "account": "net", + "routed_out_msat": 1431440, + "routed_in_msat": 0, + "lease_fee_paid_msat": 0, + "lease_fee_earned_msat": 0, + "pushed_out_msat": 0, + "pushed_in_msat": 0, + "our_start_balance_msat": 1000000000, + "channel_start_balance_msat": 1000000000, + "fees_out_msat": 0, + "fees_in_msat": 0, + "utilization_out": "0.1431%", + "utilization_out_initial": "0.1431%", + "utilization_in": "0.0000%", + "apy_out": "0.0000%", + "apy_out_initial": "0.0000%", + "apy_in": "0.0000%", + "apy_total": "0.0000%", + "apy_total_initial": "0.0000%" + } + ] + } } - } + ], + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-bkpr-listincome(7)", + "lightning-bkpr-listfunds(7)", + "lightning-bkpr-listaccountevents(7)", + "lightning-bkpr-dumpincomecsv(7)", + "lightning-listpeers(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "events" + "lightning-bkpr-dumpincomecsv.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "bkpr-dumpincomecsv", + "title": "Command to emit a CSV of income events", + "description": [ + "The **bkpr-dumpincomcsv** RPC command writes a CSV file to disk at *csv_file* location. This is a formatted output of the **listincome** RPC command." ], - "properties": { - "events": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "account", - "type", - "tag", - "credit_msat", - "debit_msat", - "currency", - "timestamp" + "request": { + "required": [ + "csv_format" + ], + "properties": { + "csv_format": { + "type": "string", + "description": [ + "CSV format to use. See RETURN VALUE for options." + ] + }, + "csv_file": { + "type": "string", + "description": [ + "On-disk destination of the generated CSV file." + ] + }, + "consolidate_fees": { + "type": "boolean", + "description": [ + "If true, we emit a single, consolidated event for any onchain-fees for a txid and account. Otherwise, events for every update to the onchain fee calculation for this account and txid will be printed. Note that this means that the events emitted are non-stable, i.e. calling **dumpincomecsv** twice may result in different onchain fee events being emitted, depending on how much information we've logged for that transaction." ], - "properties": { - "account": { - "type": "string", - "description": [ - "The account name. If the account is a channel, the channel_id." - ] - }, - "type": { - "type": "string", - "enum": [ - "onchain_fee", - "chain", - "channel" - ], - "description": [ - "Coin movement type." - ] - }, - "tag": { - "type": "string", - "description": [ - "Description of movement." - ] - }, - "credit_msat": { - "type": "msat", - "description": [ - "Amount credited." - ] - }, - "debit_msat": { - "type": "msat", - "description": [ - "Amount debited." - ] - }, - "currency": { - "type": "string", - "description": [ - "Human-readable bech32 part for this coin type." - ] - }, - "timestamp": { - "type": "u32", - "description": [ - "Timestamp this event was recorded by the node. For consolidated events such as onchain_fees, the most recent timestamp." - ] - } - }, - "allOf": [ - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "chain" - ] - } - } - }, - "then": { - "properties": { - "account": {}, - "type": {}, - "tag": {}, - "credit_msat": {}, - "debit_msat": {}, - "currency": {}, - "timestamp": {}, - "outpoint": { - "type": "string", - "description": [ - "The txid:outnum for this event." - ] - }, - "blockheight": { - "type": "u32", - "description": [ - "For chain events, blockheight this occured at." - ] - }, - "origin": { - "type": "string", - "description": [ - "The account this movement originated from." - ] - }, - "payment_id": { - "type": "hex", - "description": [ - "Lightning payment identifier. For an htlc, this will be the preimage." - ] - }, - "txid": { - "type": "txid", - "description": [ - "The txid of the transaction that created this event." - ] - }, - "description": { - "type": "string", - "description": [ - "The description of this event." - ] - } - }, - "required": [ - "outpoint", - "blockheight" - ], - "additionalProperties": false - } - }, - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "onchain_fee" - ] - } - } - }, - "then": { - "properties": { - "account": {}, - "type": {}, - "tag": {}, - "credit_msat": {}, - "debit_msat": {}, - "currency": {}, - "timestamp": {}, - "description": {}, - "txid": { - "type": "txid", - "description": [ - "The txid of the transaction that created this event." - ] - } - }, - "required": [ - "txid" - ], - "additionalProperties": false - } - }, - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "channel" - ] - } - } - }, - "then": { - "properties": { - "account": {}, - "type": {}, - "tag": {}, - "credit_msat": {}, - "debit_msat": {}, - "currency": {}, - "timestamp": {}, - "description": {}, - "fees_msat": { - "type": "msat", - "description": [ - "Amount paid in fees." - ] - }, - "is_rebalance": { - "type": "boolean", - "description": [ - "Is this payment part of a rebalance." - ] - }, - "payment_id": { - "type": "hex", - "description": [ - "Lightning payment identifier. For an htlc, this will be the preimage." - ] - }, - "part_id": { - "type": "u32", - "description": [ - "Counter for multi-part payments." - ] - } - }, - "additionalProperties": false - } - } - ] + "default": "True" + }, + "start_time": { + "type": "u64", + "description": [ + "UNIX timestamp (in seconds) that filters events after the provided timestamp." + ], + "default": "zero" + }, + "end_time": { + "type": "u64", + "description": [ + "UNIX timestamp (in seconds) that filters events up to and at the provided timestamp." + ], + "default": "max-int" } } - } - }, - "json_example": [ - { - "request": { - "id": "example:bkpr-listaccountevents#1", - "method": "bkpr-listaccountevents", - "params": "{}" - }, - "response": { - "events": [ - { - "account": "wallet", - "type": "channel", - "tag": "journal_entry", - "credit_msat": 0, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1706152911, - "is_rebalance": false - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 2000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "7e202b3b1016e8eb6f4e936215ed6b5bdc63c17e6ebb5e6bce2f98e6757ba44c:0", - "timestamp": 1706152914, - "blockheight": 102 - }, - { - "account": "wallet", - "type": "chain", - "tag": "withdrawal", - "credit_msat": 0, - "debit_msat": 2000000000, - "currency": "bcrt", - "outpoint": "7e202b3b1016e8eb6f4e936215ed6b5bdc63c17e6ebb5e6bce2f98e6757ba44c:0", - "txid": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b", - "timestamp": 1706152921, - "blockheight": 103 - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 995073000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b:1", - "timestamp": 1706152921, - "blockheight": 103 - }, - { - "account": "wallet", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 1004927000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1706152921, - "txid": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b" - }, - { - "account": "wallet", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 1004927000, - "currency": "bcrt", - "timestamp": 1706152921, - "txid": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b" - }, - { - "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", - "type": "chain", - "tag": "channel_open", - "credit_msat": 1000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b:0", - "timestamp": 1706152922, - "blockheight": 103 - }, - { - "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 4927000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1706152922, - "txid": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b" - }, - { - "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", - "type": "channel", - "tag": "invoice", - "credit_msat": 0, - "debit_msat": 11000000, - "currency": "bcrt", - "payment_id": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", - "part_id": 0, - "timestamp": 1706152934, - "description": [ - "XEoCR94SIz6UIRUEkxum." - ], - "is_rebalance": false - }, - { - "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", - "type": "chain", - "tag": "channel_close", - "credit_msat": 0, - "debit_msat": 989000000, - "currency": "bcrt", - "outpoint": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b:0", - "txid": "7178638c13a0573f440d9516a23901874b6138338d378b3291cb306c90b3f998", - "timestamp": 1706152938, - "blockheight": 104 - }, - { - "account": "external", - "origin": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", - "type": "chain", - "tag": "to_them", - "credit_msat": 10899000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "7178638c13a0573f440d9516a23901874b6138338d378b3291cb306c90b3f998:0", - "timestamp": 1706152938, - "blockheight": 104 - }, - { - "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 7967000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1706152938, - "txid": "7178638c13a0573f440d9516a23901874b6138338d378b3291cb306c90b3f998" - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 980912000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "85477738281c1afd652c350025f1d28658fe541c83adc9a7d5276c30cf715a11:0", - "timestamp": 1706152941, - "blockheight": 109 - }, - { - "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", - "type": "chain", - "tag": "delayed_to_us", - "credit_msat": 981033000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "7178638c13a0573f440d9516a23901874b6138338d378b3291cb306c90b3f998:1", - "timestamp": 1706152941, - "blockheight": 104 - }, - { - "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", - "type": "chain", - "tag": "to_wallet", - "credit_msat": 0, - "debit_msat": 981033000, - "currency": "bcrt", - "outpoint": "7178638c13a0573f440d9516a23901874b6138338d378b3291cb306c90b3f998:1", - "txid": "85477738281c1afd652c350025f1d28658fe541c83adc9a7d5276c30cf715a11", - "timestamp": 1706152941, - "blockheight": 109 - }, - { - "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 121000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1706152941, - "txid": "85477738281c1afd652c350025f1d28658fe541c83adc9a7d5276c30cf715a11" - } - ] + }, + "response": { + "required": [ + "csv_file", + "csv_format" + ], + "properties": { + "csv_file": { + "type": "string", + "description": [ + "File that the csv was generated to." + ] + }, + "csv_format": { + "type": "string", + "enum": [ + "cointracker", + "koinly", + "harmony", + "quickbooks" + ], + "description": [ + "Format to print csv as." + ] + } } }, - { - "request": { - "id": "example:bkpr-listaccountevents#2", - "method": "bkpr-listaccountevents", - "params": [ - "f30a7bab1ec077622d8fe877634bc6dd38bb08122ad49606199c565e0383b2ab" - ] - }, - "response": { - "events": [ - { - "account": "f30a7bab1ec077622d8fe877634bc6dd38bb08122ad49606199c565e0383b2ab", - "type": "chain", - "tag": "channel_proposed", - "credit_msat": 996363000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "abb283035e569c190696d42a1208bb38ddc64b6377e88f2d6277c01eab7b0af3:0", - "timestamp": 1706246949, - "blockheight": 0 - }, - { - "account": "f30a7bab1ec077622d8fe877634bc6dd38bb08122ad49606199c565e0383b2ab", - "type": "channel", - "tag": "pushed", - "credit_msat": 0, - "debit_msat": 20000000, - "currency": "bcrt", - "timestamp": 1706246949, - "is_rebalance": false - } - ] + "json_example": [ + { + "request": { + "id": "example:bkpr-dumpincomecsv#1", + "method": "bkpr-dumpincomecsv", + "params": [ + "koinly", + "koinly.csv" + ] + }, + "response": { + "csv_file": "koinly.csv", + "csv_format": "koinly" + } } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-bkpr-listincome(7)", - "lightning-listfunds(7)", - "lightning-bkpr-listbalances(7)", - "lightning-bkpr-channelsapy(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-bkpr-listbalances.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "bkpr-listbalances", - "title": "Command for listing current channel + wallet balances", - "description": [ - "The **bkpr-listbalances** RPC command is a list of all current and historical account balances. An account is either the on-chain *wallet* or a channel balance. Any funds sent to an *external* account will not be accounted for here.", - "", - "Note that any channel that was recorded will be listed. Closed channel balances will be 0msat." - ], - "request": { - "required": [], - "properties": {} + ], + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-bkpr-listincome(7)", + "lightning-bkpr-listfunds(7)", + "lightning-bkpr-listaccountevents(7)", + "lightning-bkpr-channelsapy(7)", + "lightning-listpeers(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "accounts" + "lightning-bkpr-inspect.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "bkpr-inspect", + "title": "Command to show onchain footprint of a channel", + "description": [ + "The **bkpr-inspect** RPC command lists all known on-chain transactions and associated events for the provided account. Useful for inspecting unilateral closes for a given channel account. Only valid for channel accounts." ], - "properties": { - "accounts": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "account", - "balances" - ], - "properties": { - "account": { - "type": "string", - "description": [ - "The account name. If the account is a channel, the channel_id." - ] - }, - "balances": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "balance_msat", - "coin_type" - ], - "properties": { - "balance_msat": { - "type": "msat", - "description": [ - "Current account balance." - ] - }, - "coin_type": { - "type": "string", - "description": [ - "Coin type, same as HRP for bech32." - ] - } - } - } - } - }, - "if": { - "required": [ - "peer_id" - ] - }, - "then": { + "request": { + "required": [ + "account" + ], + "properties": { + "account": { + "type": "string", + "description": [ + "Channel account to inspect." + ] + } + } + }, + "response": { + "required": [ + "txs" + ], + "properties": { + "txs": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, "required": [ - "account", - "balances", - "peer_id", - "we_opened", - "account_closed", - "account_resolved" + "txid", + "fees_paid_msat", + "outputs" ], - "additionalProperties": false, "properties": { - "account": {}, - "balances": {}, - "peer_id": { - "type": "pubkey", - "description": [ - "Node id for the peer this account is with." - ] - }, - "we_opened": { - "type": "boolean", + "txid": { + "type": "txid", "description": [ - "Did we initiate this account open (open the channel)." + "Transaction id." ] }, - "account_closed": { - "type": "boolean", + "blockheight": { + "type": "u32", "description": [ - "", - "" + "Blockheight of transaction." ] }, - "account_resolved": { - "type": "boolean", + "fees_paid_msat": { + "type": "msat", "description": [ - "Has this channel been closed and all outputs resolved?" + "Amount paid in sats for this tx." ] }, - "resolved_at_block": { - "type": "u32", - "description": [ - "Blockheight account resolved on chain." - ] - } - } - }, - "else": { - "properties": { - "account": {}, - "balances": {} - }, - "additionalProperties": false - } - } - } - } - }, - "json_example": [ - { - "request": { - "id": "example:bkpr-listbalances#1", - "method": "bkpr-listbalances", - "params": "{}" - }, - "response": { - "accounts": [ - { - "account": "wallet", - "balances": [ - { - "balance_msat": 2222222000, - "coin_type": "bcrt" + "outputs": { + "type": "array", + "items": { + "type": "object", + "required": [ + "account", + "outnum", + "output_value_msat", + "currency" + ], + "additionalProperties": false, + "properties": { + "account": { + "type": "string", + "description": [ + "Account this output affected." + ] + }, + "outnum": { + "type": "u32", + "description": [ + "Index of output." + ] + }, + "output_value_msat": { + "type": "msat", + "description": [ + "Value of the output." + ] + }, + "currency": { + "type": "string", + "description": [ + "Human-readable bech32 part for this coin type." + ] + }, + "credit_msat": { + "type": "msat", + "description": [ + "Amount credited to account." + ] + }, + "debit_msat": { + "type": "msat", + "description": [ + "Amount debited from account." + ] + }, + "originating_account": { + "type": "string", + "description": [ + "Account this output originated from." + ] + }, + "output_tag": { + "type": "string", + "description": [ + "Description of output creation event." + ] + }, + "spend_tag": { + "type": "string", + "description": [ + "Description of output spend event." + ] + }, + "spending_txid": { + "type": "txid", + "description": [ + "Transaction this output was spent in." + ] + }, + "payment_id": { + "type": "hex", + "description": [ + "Lightning payment identifier. For an htlc, this will be the preimage." + ] + } + }, + "allOf": [ + { + "if": { + "required": [ + "credit_msat" + ] + }, + "then": { + "required": [ + "output_tag" + ], + "additionalProperties": false, + "properties": { + "account": {}, + "outnum": {}, + "output_value_msat": {}, + "currency": {}, + "credit_msat": {}, + "originating_account": {}, + "debit_msat": {}, + "output_tag": {}, + "spend_tag": {}, + "spending_txid": {}, + "payment_id": {} + } + } + }, + { + "if": { + "required": [ + "spending_txid" + ] + }, + "then": { + "required": [ + "spend_tag", + "debit_msat" + ], + "additionalProperties": false, + "properties": { + "account": {}, + "outnum": {}, + "output_value_msat": {}, + "currency": {}, + "credit_msat": {}, + "originating_account": {}, + "debit_msat": {}, + "output_tag": {}, + "spend_tag": {}, + "spending_txid": {}, + "payment_id": {} + } + } + } + ] + } } - ] - } - ] - } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-bkpr-listincome(7)", - "lightning-listfunds(7)", - "lightning-bkpr-listaccountevents(7)", - "lightning-bkpr-channelsapy(7)", - "lightning-listpeers(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-bkpr-listincome.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "pre-v0.10.1", - "rpc": "bkpr-listincome", - "title": "Command for listing all income impacting events", - "description": [ - "The **bkpr-listincome** RPC command is a list of all income impacting events that the bookkeeper plugin has recorded for this node." - ], - "request": { - "required": [], - "properties": { - "consolidate_fees": { - "type": "boolean", - "description": [ - "If true, we emit a single, consolidated event for any onchain-fees for a txid and account. Otherwise, events for every update to the onchain fee calculation for this account and txid will be printed. Note that this means that the events emitted are non-stable, i.e. calling **listincome** twice may result in different onchain fee events being emitted, depending on how much information we've logged for that transaction." - ], - "default": "True" - }, - "start_time": { - "type": "u32", - "description": [ - "UNIX timestamp (in seconds) that filters events after the provided timestamp." - ], - "default": "zero" - }, - "end_time": { - "type": "u32", - "description": [ - "UNIX timestamp (in seconds) that filters events up to and at the provided timestamp." - ], - "default": "max-int" - } - } - }, - "response": { - "required": [ - "income_events" - ], - "properties": { - "income_events": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "account", - "tag", - "credit_msat", - "debit_msat", - "currency", - "timestamp" - ], - "properties": { - "account": { - "type": "string", - "description": [ - "The account name. If the account is a channel, the channel_id." - ] - }, - "tag": { - "type": "string", - "description": [ - "Type of income event." - ] - }, - "credit_msat": { - "type": "msat", - "description": [ - "Amount earned (income)." - ] - }, - "debit_msat": { - "type": "msat", - "description": [ - "Amount spent (expenses)." - ] - }, - "currency": { - "type": "string", - "description": [ - "Human-readable bech32 part for this coin type." - ] - }, - "timestamp": { - "type": "u32", - "description": [ - "Timestamp this event was recorded by the node. For consolidated events such as onchain_fees, the most recent timestamp." - ] - }, - "description": { - "type": "string", - "description": [ - "More information about this event. If a `invoice` type, typically the bolt11/bolt12 description." - ] - }, - "outpoint": { - "type": "string", - "description": [ - "The txid:outnum for this event, if applicable." - ] - }, - "txid": { - "type": "txid", - "description": [ - "The txid of the transaction that created this event, if applicable." - ] - }, - "payment_id": { - "type": "hex", - "description": [ - "Lightning payment identifier. For an htlc, this will be the preimage." - ] } } } } - } - }, - "json_example": [ - { - "request": { - "id": "example:bkpr-listincome#1", - "method": "bkpr-listincome", - "params": "{}" - }, - "response": { - "income_events": [ - { - "account": "wallet", - "tag": "deposit", - "credit_msat": 1111111000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1706153060, - "outpoint": "6d813d2e99ae7181b61e59ff224c43de698bd08b8ca5b8034ccc13aa7b6428ef:0" - }, - { - "account": "wallet", - "tag": "deposit", - "credit_msat": 1111111000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1706153060, - "outpoint": "0bbbe965f76525af3876ae6f1520d91047d4be04cb4e46b7229120a60c5dc9c5:0" - } - ] - } - }, - { - "request": { - "id": "example:bkpr-listincome#2", - "method": "bkpr-listincome", - "params": { - "consolidate_fees": false - } - }, - "response": { - "income_events": [ - { - "account": "wallet", - "tag": "deposit", - "credit_msat": 1111111000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1708624181, - "outpoint": "895b5eaad4544d24c99628883b4d84b2c6024d6a2da4c1de54098d985f280943:1" - }, - { - "account": "wallet", - "tag": "withdrawal", - "credit_msat": 0, - "debit_msat": 555555000, - "currency": "bcrt", - "timestamp": 1708624182, - "outpoint": "d28a2cba55da10700ddd7f1f23618160dafb3134650055654551d9b0382dcd71:0" - }, - { - "account": "wallet", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 555556000, - "currency": "bcrt", - "timestamp": 1708624183, - "txid": "d28a2cba55da10700ddd7f1f23618160dafb3134650055654551d9b0382dcd71" - }, - { - "account": "wallet", - "tag": "onchain_fee", - "credit_msat": 554947000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1708624183, - "txid": "d28a2cba55da10700ddd7f1f23618160dafb3134650055654551d9b0382dcd71" - } - ] - } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-bkpr-listaccountevents(7)", - "lightning-listfunds(7)", - "lightning-bkpr-listbalances(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-blacklistrune.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.08", - "rpc": "blacklistrune", - "title": "Command to prevent a rune from working", - "description": [ - "The **blacklistrune** RPC command allows you to effectively revoke the rune you have created (and any runes derived from that rune with additional restictions). Attempting to use these runes will be resulted in a `Blacklisted rune` error message.", - "", - "Destroy a rune like in olden times with the **destroyrune** command.", - "", - "All runes created by lightning have a unique sequential id within them and can be blacklisted in ranges for efficiency. The command always returns the blacklisted ranges on success. If no parameters are specified, no changes have been made. If start specified without end, that single rune is blacklisted. If end is also specified, every rune from start till end inclusive is blacklisted." - ], - "request": { - "required": [], - "properties": { - "start": { - "type": "u64", - "description": [ - "First rune unique id to blacklist." - ] - }, - "end": { - "type": "u64", - "description": [ - "Final rune unique id to blacklist (defaults to start)." - ] - } }, - "dependentUpon": { - "start": [ - "end" - ] - } - }, - "response": { - "required": [ - "blacklist" - ], - "properties": { - "blacklist": { - "type": "array", - "description": [ - "The resulting blacklist ranges after the command." - ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "start", - "end" - ], - "properties": { - "start": { - "type": "u64", - "description": [ - "Unique id of first rune in this blacklist range." - ] - }, - "end": { - "type": "u64", - "description": [ - "Unique id of last rune in this blacklist range." + "json_example": [ + { + "request": { + "id": "example:bkpr-inspect#1", + "method": "bkpr-inspect", + "params": [ + "f30a7bab1ec077622d8fe877634bc6dd38bb08122ad49606199c565e0383b2ab" + ] + }, + "response": { + "txs": [ + { + "txid": "abb283035e569c190696d42a1208bb38ddc64b6377e88f2d6277c01eab7b0af3", + "fees_paid_msat": 0, + "outputs": [ + { + "account": "f30a7bab1ec077622d8fe877634bc6dd38bb08122ad49606199c565e0383b2ab", + "outnum": 0, + "output_tag": "channel_proposed", + "output_value_msat": 996363000, + "credit_msat": 996363000, + "currency": "bcrt" + } ] } - } + ] } } - } + ], + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-listbalances(7)", + "lightning-listfunds(7)", + "lightning-listpeers(7)" + ], + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:blacklistrune#1", - "method": "blacklistrune", - "params": { - "start": 2 - } - }, - "response": { - "blacklist": [ - { - "start": 2, - "end": 2 - } - ] - } - }, - { - "request": { - "id": "example:blacklistrune#2", - "method": "blacklistrune", - "params": { - "start": 5, - "end": 7 + "lightning-bkpr-listaccountevents.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "bkpr-listaccountevents", + "title": "Command for listing recorded bookkeeping events", + "description": [ + "The **bkpr-listaccountevents** RPC command is a list of all bookkeeping events that have been recorded for this node.", + "", + "If the optional parameter **account** is set, we only emit events for the specified account, if exists.", + "", + "Note that the type **onchain_fees** that are emitted are of opposite credit/debit than as they appear in **listincome**, as **listincome** shows all events from the perspective of the node, whereas **listaccountevents** just dumps the event data as we've got it. Onchain fees are updated/recorded as we get more information about input and output spends -- the total onchain fees that were recorded for a transaction for an account can be found by summing all onchain fee events and taking the difference between the **credit_msat** and **debit_msat** for these events. We do this so that successive calls to **listaccountevents** always produce the same list of events -- no previously emitted event will be subsequently updated, rather we add a new event to the list." + ], + "request": { + "required": [], + "properties": { + "account": { + "type": "string", + "description": [ + "Receive events for the specified account." + ] } - }, - "response": { - "blacklist": [ - { - "start": 2, - "end": 2 - }, - { - "start": 5, - "end": 7 - } - ] } }, - { - "request": { - "id": "example:blacklistrune#3", - "method": "blacklistrune", - "params": { - "start": 3, - "end": 4 - } - }, - "response": { - "blacklist": [ - { - "start": 2, - "end": 7 - } - ] - } - } - ], - "author": [ - "Shahana Farooqui <> is mainly responsible." - ], - "see_also": [ - "lightning-commando-blacklist(7)", - "lightning-showrunes(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-check.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "check", - "title": "Command for verifying parameters", - "description": [ - "The **check** RPC command verifies another command without actually making any changes.", - "", - "This is guaranteed to be safe, and will do all checks up to the point where something in the system would need to be altered (such as checking that channels are in the right state, peers connected, etc).", - "", - "It does not guarantee successful execution of the command in all cases. For example, a call to lightning-getroute(7) may still fail to find a route even if checking the parameters succeeds." - ], - "request": { - "required": [ - "command_to_check" - ], - "properties": { - "command_to_check": { - "type": "string", - "description": [ - "Name of the relevant command." - ] - } - } - }, - "response": { - "properties": { - "command_to_check": { - "type": "string", - "description": [ - "The *command_to_check* argument." - ] + "response": { + "required": [ + "events" + ], + "properties": { + "events": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "account", + "type", + "tag", + "credit_msat", + "debit_msat", + "currency", + "timestamp" + ], + "properties": { + "account": { + "type": "string", + "description": [ + "The account name. If the account is a channel, the channel_id." + ] + }, + "type": { + "type": "string", + "enum": [ + "onchain_fee", + "chain", + "channel" + ], + "description": [ + "Coin movement type." + ] + }, + "tag": { + "type": "string", + "description": [ + "Description of movement." + ] + }, + "credit_msat": { + "type": "msat", + "description": [ + "Amount credited." + ] + }, + "debit_msat": { + "type": "msat", + "description": [ + "Amount debited." + ] + }, + "currency": { + "type": "string", + "description": [ + "Human-readable bech32 part for this coin type." + ] + }, + "timestamp": { + "type": "u32", + "description": [ + "Timestamp this event was recorded by the node. For consolidated events such as onchain_fees, the most recent timestamp." + ] + } + }, + "allOf": [ + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "chain" + ] + } + } + }, + "then": { + "properties": { + "account": {}, + "type": {}, + "tag": {}, + "credit_msat": {}, + "debit_msat": {}, + "currency": {}, + "timestamp": {}, + "outpoint": { + "type": "string", + "description": [ + "The txid:outnum for this event." + ] + }, + "blockheight": { + "type": "u32", + "description": [ + "For chain events, blockheight this occured at." + ] + }, + "origin": { + "type": "string", + "description": [ + "The account this movement originated from." + ] + }, + "payment_id": { + "type": "hex", + "description": [ + "Lightning payment identifier. For an htlc, this will be the preimage." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The txid of the transaction that created this event." + ] + }, + "description": { + "type": "string", + "description": [ + "The description of this event." + ] + } + }, + "required": [ + "outpoint", + "blockheight" + ], + "additionalProperties": false + } + }, + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "onchain_fee" + ] + } + } + }, + "then": { + "properties": { + "account": {}, + "type": {}, + "tag": {}, + "credit_msat": {}, + "debit_msat": {}, + "currency": {}, + "timestamp": {}, + "description": {}, + "txid": { + "type": "txid", + "description": [ + "The txid of the transaction that created this event." + ] + } + }, + "required": [ + "txid" + ], + "additionalProperties": false + } + }, + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "channel" + ] + } + } + }, + "then": { + "properties": { + "account": {}, + "type": {}, + "tag": {}, + "credit_msat": {}, + "debit_msat": {}, + "currency": {}, + "timestamp": {}, + "description": {}, + "fees_msat": { + "type": "msat", + "description": [ + "Amount paid in fees." + ] + }, + "is_rebalance": { + "type": "boolean", + "description": [ + "Is this payment part of a rebalance." + ] + }, + "payment_id": { + "type": "hex", + "description": [ + "Lightning payment identifier. For an htlc, this will be the preimage." + ] + }, + "part_id": { + "type": "u32", + "description": [ + "Counter for multi-part payments." + ] + } + }, + "additionalProperties": false + } + } + ] + } + } } }, - "required": [ - "command_to_check" - ] - }, - "json_example": [ - { - "request": { - "id": "example:check#1", - "method": "check", - "params": { - "command_to_check": "sendpay", - "route": [ + "json_example": [ + { + "request": { + "id": "example:bkpr-listaccountevents#1", + "method": "bkpr-listaccountevents", + "params": "{}" + }, + "response": { + "events": [ { - "amount_msat": 1011, - "msatoshi": 1011, - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "delay": 20, - "channel": "1x1x1" + "account": "wallet", + "type": "channel", + "tag": "journal_entry", + "credit_msat": 0, + "debit_msat": 0, + "currency": "bcrt", + "timestamp": 1706152911, + "is_rebalance": false }, { - "amount_msat": 1000, - "msatoshi": 1000, - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "delay": 10, - "channel": "2x2x2" + "account": "wallet", + "type": "chain", + "tag": "deposit", + "credit_msat": 2000000000, + "debit_msat": 0, + "currency": "bcrt", + "outpoint": "7e202b3b1016e8eb6f4e936215ed6b5bdc63c17e6ebb5e6bce2f98e6757ba44c:0", + "timestamp": 1706152914, + "blockheight": 102 + }, + { + "account": "wallet", + "type": "chain", + "tag": "withdrawal", + "credit_msat": 0, + "debit_msat": 2000000000, + "currency": "bcrt", + "outpoint": "7e202b3b1016e8eb6f4e936215ed6b5bdc63c17e6ebb5e6bce2f98e6757ba44c:0", + "txid": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b", + "timestamp": 1706152921, + "blockheight": 103 + }, + { + "account": "wallet", + "type": "chain", + "tag": "deposit", + "credit_msat": 995073000, + "debit_msat": 0, + "currency": "bcrt", + "outpoint": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b:1", + "timestamp": 1706152921, + "blockheight": 103 + }, + { + "account": "wallet", + "type": "onchain_fee", + "tag": "onchain_fee", + "credit_msat": 1004927000, + "debit_msat": 0, + "currency": "bcrt", + "timestamp": 1706152921, + "txid": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b" + }, + { + "account": "wallet", + "type": "onchain_fee", + "tag": "onchain_fee", + "credit_msat": 0, + "debit_msat": 1004927000, + "currency": "bcrt", + "timestamp": 1706152921, + "txid": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b" + }, + { + "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", + "type": "chain", + "tag": "channel_open", + "credit_msat": 1000000000, + "debit_msat": 0, + "currency": "bcrt", + "outpoint": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b:0", + "timestamp": 1706152922, + "blockheight": 103 + }, + { + "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", + "type": "onchain_fee", + "tag": "onchain_fee", + "credit_msat": 4927000, + "debit_msat": 0, + "currency": "bcrt", + "timestamp": 1706152922, + "txid": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b" + }, + { + "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", + "type": "channel", + "tag": "invoice", + "credit_msat": 0, + "debit_msat": 11000000, + "currency": "bcrt", + "payment_id": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", + "part_id": 0, + "timestamp": 1706152934, + "description": [ + "XEoCR94SIz6UIRUEkxum." + ], + "is_rebalance": false + }, + { + "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", + "type": "chain", + "tag": "channel_close", + "credit_msat": 0, + "debit_msat": 989000000, + "currency": "bcrt", + "outpoint": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b:0", + "txid": "7178638c13a0573f440d9516a23901874b6138338d378b3291cb306c90b3f998", + "timestamp": 1706152938, + "blockheight": 104 + }, + { + "account": "external", + "origin": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", + "type": "chain", + "tag": "to_them", + "credit_msat": 10899000, + "debit_msat": 0, + "currency": "bcrt", + "outpoint": "7178638c13a0573f440d9516a23901874b6138338d378b3291cb306c90b3f998:0", + "timestamp": 1706152938, + "blockheight": 104 + }, + { + "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", + "type": "onchain_fee", + "tag": "onchain_fee", + "credit_msat": 7967000, + "debit_msat": 0, + "currency": "bcrt", + "timestamp": 1706152938, + "txid": "7178638c13a0573f440d9516a23901874b6138338d378b3291cb306c90b3f998" + }, + { + "account": "wallet", + "type": "chain", + "tag": "deposit", + "credit_msat": 980912000, + "debit_msat": 0, + "currency": "bcrt", + "outpoint": "85477738281c1afd652c350025f1d28658fe541c83adc9a7d5276c30cf715a11:0", + "timestamp": 1706152941, + "blockheight": 109 + }, + { + "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", + "type": "chain", + "tag": "delayed_to_us", + "credit_msat": 981033000, + "debit_msat": 0, + "currency": "bcrt", + "outpoint": "7178638c13a0573f440d9516a23901874b6138338d378b3291cb306c90b3f998:1", + "timestamp": 1706152941, + "blockheight": 104 + }, + { + "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", + "type": "chain", + "tag": "to_wallet", + "credit_msat": 0, + "debit_msat": 981033000, + "currency": "bcrt", + "outpoint": "7178638c13a0573f440d9516a23901874b6138338d378b3291cb306c90b3f998:1", + "txid": "85477738281c1afd652c350025f1d28658fe541c83adc9a7d5276c30cf715a11", + "timestamp": 1706152941, + "blockheight": 109 + }, + { + "account": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", + "type": "onchain_fee", + "tag": "onchain_fee", + "credit_msat": 121000, + "debit_msat": 0, + "currency": "bcrt", + "timestamp": 1706152941, + "txid": "85477738281c1afd652c350025f1d28658fe541c83adc9a7d5276c30cf715a11" } - ], - "payment_hash": "0000000000000000000000000000000000000000000000000000000000000000" - } - }, - "response": { - "command_to_check": "sendpay" - } - }, - { - "request": { - "id": "example:check#2", - "method": "check", - "params": { - "command_to_check": "dev", - "subcommand": "slowcmd", - "msec": 1000 + ] } }, - "response": { - "command_to_check": "dev" - } - }, - { - "request": { - "id": "example:check#3", - "method": "check", - "params": { - "command_to_check": "recover", - "hsmsecret": "6c696768746e696e672d31000000000000000000000000000000000000000000" + { + "request": { + "id": "example:bkpr-listaccountevents#2", + "method": "bkpr-listaccountevents", + "params": [ + "f30a7bab1ec077622d8fe877634bc6dd38bb08122ad49606199c565e0383b2ab" + ] + }, + "response": { + "events": [ + { + "account": "f30a7bab1ec077622d8fe877634bc6dd38bb08122ad49606199c565e0383b2ab", + "type": "chain", + "tag": "channel_proposed", + "credit_msat": 996363000, + "debit_msat": 0, + "currency": "bcrt", + "outpoint": "abb283035e569c190696d42a1208bb38ddc64b6377e88f2d6277c01eab7b0af3:0", + "timestamp": 1706246949, + "blockheight": 0 + }, + { + "account": "f30a7bab1ec077622d8fe877634bc6dd38bb08122ad49606199c565e0383b2ab", + "type": "channel", + "tag": "pushed", + "credit_msat": 0, + "debit_msat": 20000000, + "currency": "bcrt", + "timestamp": 1706246949, + "is_rebalance": false + } + ] } - }, - "response": { - "command_to_check": "recover" } - } - ], - "author": [ - "Mark Beckwith <> and Rusty Russell <> are mainly responsible." - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-checkmessage.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "checkmessage", - "title": "Command to check if a signature is from a node", - "description": [ - "The **checkmessage** RPC command is the counterpart to **signmessage**: given a node id (*pubkey*), signature (*zbase*) and a *message*, it verifies that the signature was generated by that node for that message (more technically: by someone who knows that node's secret).", - "", - "As a special case, if *pubkey* is not specified, we will try every known node key (as per *listnodes*), and verification succeeds if it matches for any one of them. Note: this is implemented far more efficiently than trying each one, so performance is not a concern." - ], - "request": { - "required": [ - "message", - "zbase" ], - "properties": { - "message": { - "type": "string", - "description": [ - "Message to be checked against the signature." - ] - }, - "zbase": { - "type": "string", - "description": [ - "The Zbase32 encoded signature to verify." - ] - }, - "pubkey": { - "type": "pubkey", - "description": [ - "The Zbase32 encoded signature to verify." - ] - } - } - }, - "response": { - "required": [ - "verified", - "pubkey" + "author": [ + "Lisa Neigut <> is mainly responsible." ], - "properties": { - "verified": { - "type": "boolean", - "enum": [ - true - ], - "description": [ - "Whether the signature was valid." - ] - }, - "pubkey": { - "type": "pubkey", - "description": [ - "The *pubkey* parameter, or the pubkey found by looking for known nodes." - ] - } - } + "see_also": [ + "lightning-bkpr-listincome(7)", + "lightning-listfunds(7)", + "lightning-bkpr-listbalances(7)", + "lightning-bkpr-channelsapy(7)" + ], + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:checkmessage#1", - "method": "checkmessage", - "params": { - "message": "testcase to check new rpc error", - "zbase": "d66bqz3qsku5fxtqsi37j11pci47ydxa95iusphutggz9ezaxt56neh77kxe5hyr41kwgkncgiu94p9ecxiexgpgsz8daoq4tw8kj8yx", - "pubkey": "03be3b0e9992153b1d5a6e1623670b6c3663f72ce6cf2e0dd39c0a373a7de5a3b7" - } - }, - "response": { - "pubkey": "03be3b0e9992153b1d5a6e1623670b6c3663f72ce6cf2e0dd39c0a373a7de5a3b7", - "verified": true - } - }, - { - "request": { - "id": "example:checkmessage#2", - "method": "checkmessage", - "params": { - "message": "this is a test!", - "zbase": "d6tqaeuonjhi98mmont9m4wag7gg4krg1f4txonug3h31e9h6p6k6nbwjondnj46dkyausobstnk7fhyy998bhgc1yr98dfmhb4k54d7", - "pubkey": null - } - }, - "response": { - "pubkey": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "verified": true - } - } - ], - "errors": [ - "On failure, an error is returned and core lightning exit with the following error code:", - "", - "- -32602: Parameter missed or malformed;", - "- 1301: *pubkey* not found in the graph." - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-signmessage(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-checkrune.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.08", - "rpc": "checkrune", - "title": "Command to Validate Rune", - "description": [ - "The **checkrune** RPC command checks the validity/authorization rights of specified rune for the given nodeid, method, and params.", - "", - "If successful, the rune \"usage\" counter (used for ratelimiting) is incremented.", - "", - "See lightning-createrune(7) for the fields in the rune which are checked." - ], - "request": { - "required": [ - "rune" + "lightning-bkpr-listbalances.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "bkpr-listbalances", + "title": "Command for listing current channel + wallet balances", + "description": [ + "The **bkpr-listbalances** RPC command is a list of all current and historical account balances. An account is either the on-chain *wallet* or a channel balance. Any funds sent to an *external* account will not be accounted for here.", + "", + "Note that any channel that was recorded will be listed. Closed channel balances will be 0msat." ], - "properties": { - "rune": { - "type": "string", - "description": [ - "Rune to check for authorization." - ] - }, - "nodeid": { - "type": "string", - "description": [ - "Node id of requesting node *(required until v23.11)*." - ] - }, - "method": { - "type": "string", - "description": [ - "Method for which rune needs to be validated *(required until v23.11)*." - ] - }, - "params": { - "oneOf": [ - { - "type": "array", - "description": [ - "Array of positional parameters." - ] - }, - { + "request": { + "required": [], + "properties": {} + }, + "response": { + "required": [ + "accounts" + ], + "properties": { + "accounts": { + "type": "array", + "items": { "type": "object", - "description": [ - "Parameters for method." - ] - } - ] - } - } - }, - "response": { - "required": [ - "valid" - ], - "properties": { - "valid": { - "type": "boolean", - "description": [ - "True if the rune is valid." - ] - } - } - }, - "errors": [ - "The following error codes may occur:", - "", - "- 1501 (RUNE_NOT_AUTHORIZED): rune is not for this node (or perhaps completely invalid)", - "- 1502 (RUNE_NOT_PERMITTED): rune does not allow this usage (includes a detailed reason why)", - "- 1503 (RUNE_BLACKLISTED): rune has been explicitly blacklisted." - ], - "json_example": [ - { - "request": { - "id": "example:checkrune#1", - "method": "checkrune", - "params": { - "nodeid": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "rune": "617Obfct0oRBj_uqGFQxDk3XZ1sDFiC2Q5ltm5z1i_k9NSZtZXRob2Q9aW52b2ljZSZwbmFtZWRlc2NyaXB0aW9uPUB0aXBqYXJcfGpiNTVAc2VuZHNhdHMubG9s", - "method": "invoice", - "params": { - "amount_msat": "any", - "label": "lbl", - "description": [ - "@tipjar|jb55@sendsats.lol." - ] + "additionalProperties": true, + "required": [ + "account", + "balances" + ], + "properties": { + "account": { + "type": "string", + "description": [ + "The account name. If the account is a channel, the channel_id." + ] + }, + "balances": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "balance_msat", + "coin_type" + ], + "properties": { + "balance_msat": { + "type": "msat", + "description": [ + "Current account balance." + ] + }, + "coin_type": { + "type": "string", + "description": [ + "Coin type, same as HRP for bech32." + ] + } + } + } + } + }, + "if": { + "required": [ + "peer_id" + ] + }, + "then": { + "required": [ + "account", + "balances", + "peer_id", + "we_opened", + "account_closed", + "account_resolved" + ], + "additionalProperties": false, + "properties": { + "account": {}, + "balances": {}, + "peer_id": { + "type": "pubkey", + "description": [ + "Node id for the peer this account is with." + ] + }, + "we_opened": { + "type": "boolean", + "description": [ + "Did we initiate this account open (open the channel)." + ] + }, + "account_closed": { + "type": "boolean", + "description": [ + "", + "" + ] + }, + "account_resolved": { + "type": "boolean", + "description": [ + "Has this channel been closed and all outputs resolved?" + ] + }, + "resolved_at_block": { + "type": "u32", + "description": [ + "Blockheight account resolved on chain." + ] + } + } + }, + "else": { + "properties": { + "account": {}, + "balances": {} + }, + "additionalProperties": false + } } } - }, - "response": { - "valid": true - } - }, - { - "request": { - "id": "example:checkrune#2", - "method": "checkrune", - "params": { - "nodeid": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "rune": "OSqc7ixY6F-gjcigBfxtzKUI54uzgFSA6YfBQoWGDV89MA==", - "method": "listpeers", - "params": {} - } - }, - "response": { - "valid": true } }, - { - "request": { - "id": "example:checkrune#3", - "method": "checkrune", - "params": { - "nodeid": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "rune": "617Obfct0oRBj_uqGFQxDk3XZ1sDFiC2Q5ltm5z1i_k9NSZtZXRob2Q9aW52b2ljZSZwbmFtZWRlc2NyaXB0aW9uPUB0aXBqYXJcfGpiNTVAc2VuZHNhdHMubG9s", - "method": "invoice", - "params": { - "amount_msat": "any", - "label": "lbl", - "description": "@tipjar|jb55@sendsats.lol" - } + "json_example": [ + { + "request": { + "id": "example:bkpr-listbalances#1", + "method": "bkpr-listbalances", + "params": "{}" + }, + "response": { + "accounts": [ + { + "account": "wallet", + "balances": [ + { + "balance_msat": 2222222000, + "coin_type": "bcrt" + } + ] + } + ] } - }, - "response": { - "valid": true } - } - ], - "author": [ - "Shahana Farooqui <> is mainly responsible for consolidating logic from commando." - ], - "see_also": [ - "lightning-createrune(7)", - "lightning-blacklistrune(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-close.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "close", - "title": "Command for closing channels with direct peers", - "description": [ - "The **close** RPC command attempts to close the channel cooperatively with the peer, or unilaterally after *unilateraltimeout*, and the to-local output will be sent to the address specified in *destination*.", - "", - "The peer needs to be live and connected in order to negotiate a mutual close. The default of unilaterally closing after 48 hours is usually a reasonable indication that you can no longer contact the peer." - ], - "request": { - "required": [ - "id" ], - "properties": { - "id": { - "type": "string", - "description": [ - "Peer id, channel id or short_channel_id. If the given *id* is a peer ID (66 hex digits as a string), then it applies to the active channel of the direct peer corresponding to the given peer ID. If the given *id* is a channel ID (64 hex digits as a string, or the short channel ID *blockheight:txindex:outindex* form), then it applies to that channel." - ] - }, - "unilateraltimeout": { - "type": "u32", - "description": [ - "If it is not zero, the command will unilaterally close the channel when that number of seconds is reached. If *unilateraltimeout* is zero, then the command will wait indefinitely until the peer is online and can negotiate a mutual close." - ], - "default": "2 days (172800 seconds)" - }, - "destination": { - "type": "string", - "description": [ - "Any Bitcoin bech32 type. If the peer hasn't offered the option_shutdown_anysegwit feature, then taproot addresses (or other v1+ segwit) are not allowed. Tell your friends to upgrade!" - ], - "default": "a Core Lightning wallet address" - }, - "fee_negotiation_step": { - "type": "string", - "description": [ - "It controls how closing fee negotiation is performed assuming the peer proposes a fee that is different than our estimate. (Note that modern peers use the quick-close protocol which does not allow negotiation: see *feerange* instead).", - "", - "On every negotiation step we must give up some amount from our proposal towards the peer's proposal. This parameter can be an integer in which case it is interpreted as number of satoshis to step at a time. Or it can be an integer followed by `%` to designate a percentage of the interval to give up. A few examples, assuming the peer proposes a closing fee of 3000 satoshi and our estimate shows it must be 4000:", - " * `10`: our next proposal will be 4000-10=3990.", - " * `10%`: our next proposal will be 4000-(10% of (4000-3000))=3900.", - " * '1': our next proposal will be 3999. This is the most extreme case when we insist on our fee as much as possible.", - " * `100%`: our next proposal will be 3000. This is the most relaxed case when we quickly accept the peer's proposal." - ], - "default": "`50%`" - }, - "wrong_funding": { - "type": "outpoint", - "description": [ - "It can only be specified if both sides have offered the `shutdown_wrong_funding` feature (enabled by the **experimental-shutdown-wrong-funding** option). It must be a transaction id followed by a colon then the output number. Instead of negotiating a shutdown to spend the expected funding transaction, the shutdown transaction will spend this output instead. This is only allowed if this peer opened the channel and the channel is unused: it can rescue openings which have been manually miscreated." - ] - }, - "force_lease_closed": { - "type": "boolean", - "description": [ - "If the channel has funds leased to the peer (option_will_fund), we prevent initiation of a mutual close unless this flag is passed in." - ], - "default": "False" - }, - "feerange": { - "type": "array", - "items": { - "type": "feerate" - }, - "description": [ - "An optional array [ *min*, *max* ], indicating the minimum and maximum feerates to offer: the peer will obey these if it supports the quick-close protocol. *slow* and *unilateral_close* are the defaults. Note that the maximum fee will be capped at the final commitment transaction fee (unless the experimental anchor-outputs option is negotiated)." - ] - } - } + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-bkpr-listincome(7)", + "lightning-listfunds(7)", + "lightning-bkpr-listaccountevents(7)", + "lightning-bkpr-channelsapy(7)", + "lightning-listpeers(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "type" + "lightning-bkpr-listincome.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "pre-v0.10.1", + "rpc": "bkpr-listincome", + "title": "Command for listing all income impacting events", + "description": [ + "The **bkpr-listincome** RPC command is a list of all income impacting events that the bookkeeper plugin has recorded for this node." ], - "properties": { - "type": { - "type": "string", - "enum": [ - "mutual", - "unilateral", - "unopened" - ], - "description": [ - "Whether we successfully negotiated a mutual close, closed without them, or discarded not-yet-opened channel." - ] + "request": { + "required": [], + "properties": { + "consolidate_fees": { + "type": "boolean", + "description": [ + "If true, we emit a single, consolidated event for any onchain-fees for a txid and account. Otherwise, events for every update to the onchain fee calculation for this account and txid will be printed. Note that this means that the events emitted are non-stable, i.e. calling **listincome** twice may result in different onchain fee events being emitted, depending on how much information we've logged for that transaction." + ], + "default": "True" + }, + "start_time": { + "type": "u32", + "description": [ + "UNIX timestamp (in seconds) that filters events after the provided timestamp." + ], + "default": "zero" + }, + "end_time": { + "type": "u32", + "description": [ + "UNIX timestamp (in seconds) that filters events up to and at the provided timestamp." + ], + "default": "max-int" + } } }, - "allOf": [ - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "mutual", - "unilateral" - ] + "response": { + "required": [ + "income_events" + ], + "properties": { + "income_events": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "account", + "tag", + "credit_msat", + "debit_msat", + "currency", + "timestamp" + ], + "properties": { + "account": { + "type": "string", + "description": [ + "The account name. If the account is a channel, the channel_id." + ] + }, + "tag": { + "type": "string", + "description": [ + "Type of income event." + ] + }, + "credit_msat": { + "type": "msat", + "description": [ + "Amount earned (income)." + ] + }, + "debit_msat": { + "type": "msat", + "description": [ + "Amount spent (expenses)." + ] + }, + "currency": { + "type": "string", + "description": [ + "Human-readable bech32 part for this coin type." + ] + }, + "timestamp": { + "type": "u32", + "description": [ + "Timestamp this event was recorded by the node. For consolidated events such as onchain_fees, the most recent timestamp." + ] + }, + "description": { + "type": "string", + "description": [ + "More information about this event. If a `invoice` type, typically the bolt11/bolt12 description." + ] + }, + "outpoint": { + "type": "string", + "description": [ + "The txid:outnum for this event, if applicable." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The txid of the transaction that created this event, if applicable." + ] + }, + "payment_id": { + "type": "hex", + "description": [ + "Lightning payment identifier. For an htlc, this will be the preimage." + ] + } } } + } + } + }, + "json_example": [ + { + "request": { + "id": "example:bkpr-listincome#1", + "method": "bkpr-listincome", + "params": "{}" }, - "then": { - "additionalProperties": false, - "required": [ - "tx", - "txid" - ], - "properties": { - "type": {}, - "tx": { - "type": "hex", - "description": [ - "The raw bitcoin transaction used to close the channel (if it was open)." - ] + "response": { + "income_events": [ + { + "account": "wallet", + "tag": "deposit", + "credit_msat": 1111111000, + "debit_msat": 0, + "currency": "bcrt", + "timestamp": 1706153060, + "outpoint": "6d813d2e99ae7181b61e59ff224c43de698bd08b8ca5b8034ccc13aa7b6428ef:0" }, - "txid": { - "type": "txid", - "description": [ - "The transaction id of the *tx* field." - ] + { + "account": "wallet", + "tag": "deposit", + "credit_msat": 1111111000, + "debit_msat": 0, + "currency": "bcrt", + "timestamp": 1706153060, + "outpoint": "0bbbe965f76525af3876ae6f1520d91047d4be04cb4e46b7229120a60c5dc9c5:0" } + ] + } + }, + { + "request": { + "id": "example:bkpr-listincome#2", + "method": "bkpr-listincome", + "params": { + "consolidate_fees": false } }, - "else": { - "additionalProperties": false, - "properties": { - "type": {} - } + "response": { + "income_events": [ + { + "account": "wallet", + "tag": "deposit", + "credit_msat": 1111111000, + "debit_msat": 0, + "currency": "bcrt", + "timestamp": 1708624181, + "outpoint": "895b5eaad4544d24c99628883b4d84b2c6024d6a2da4c1de54098d985f280943:1" + }, + { + "account": "wallet", + "tag": "withdrawal", + "credit_msat": 0, + "debit_msat": 555555000, + "currency": "bcrt", + "timestamp": 1708624182, + "outpoint": "d28a2cba55da10700ddd7f1f23618160dafb3134650055654551d9b0382dcd71:0" + }, + { + "account": "wallet", + "tag": "onchain_fee", + "credit_msat": 0, + "debit_msat": 555556000, + "currency": "bcrt", + "timestamp": 1708624183, + "txid": "d28a2cba55da10700ddd7f1f23618160dafb3134650055654551d9b0382dcd71" + }, + { + "account": "wallet", + "tag": "onchain_fee", + "credit_msat": 554947000, + "debit_msat": 0, + "currency": "bcrt", + "timestamp": 1708624183, + "txid": "d28a2cba55da10700ddd7f1f23618160dafb3134650055654551d9b0382dcd71" + } + ] } } ], - "post_return_value_notes": [ - "A unilateral close may still occur at any time if the peer did not behave correctly during the close negotiation.", - "", - "Unilateral closes will return your funds after a delay. The delay will vary based on the peer *to_self_delay* setting, not your own setting." + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-bkpr-listaccountevents(7)", + "lightning-listfunds(7)", + "lightning-bkpr-listbalances(7)" + ], + "resources": [ + "Main web site: " ] }, - "notes": [ - "Prior to 0.7.2, **close** took two parameters: *force* and *timeout*. *timeout* was the number of seconds before *force* took effect (default, 30), and *force* determined whether the result was a unilateral close or an RPC error (default). Even after the timeout, the channel would be closed if the peer reconnected." - ], - "notifications": [ - "Notifications may be returned indicating what is going on, especially if the peer is offline and we are waiting." - ], - "json_example": [ - { - "request": { - "id": "example:close#1", - "method": "close", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "unilateraltimeout": 1, - "destination": null, - "fee_negotiation_step": null, - "force_lease_closed": null, - "feerange": null - } - }, - "response": { - "tx": "020000000001018d388ffcd216c92d25163a62096ce47d5c9bbd6270ced51c5a1484f89df33e5700000000009db0e28002a00f00000000000016001445503fa4b65ade3ffdb1a92057688456c9ffae1380130f0000000000220020be82765fdb17fd5568f2dd31c6cf1aabc620ef338995ec5d9a2f3e42f43ae4870400473044022058dcde893655f40fc8162a79596440ef3e304273f8d530401fc17bc92c58159b0220428900ca6537538ba237d569a4a09003d663a991aeb331a9f18dfe807ee78806014730440220111270eeed8b4b1a231d3ce6e0e0daad718623ad159a0fd3781fb18118a8fec70220539826ee7c76cad4116d1d8852329f80314b3434cf21c765d8004186451a4cd50147522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae9c3ed620", - "txid": "5d8d917dd7d39fe5a12f121457fc6d712b5e393ed4f16bc8f5976fc08cbbfecd", - "type": "unilateral" - } - }, - { - "request": { - "id": "example:close#2", - "method": "close", - "params": { - "id": "103x1x0", - "unilateraltimeout": null, - "destination": "bcrt1qeyyk6sl5pr49ycpqyckvmttus5ttj25pd0zpvg", - "fee_negotiation_step": null, - "force_lease_closed": null, - "feerange": null - } - }, - "response": { - "tx": "0200000000010132cbce7d5f96b4003c3b5c0eab2a29fef90bb6abb833ff312fa122f31e8301810000000000ffffffff02a0860100000000002251205779a060f200d40e8f871a40eb91614cc5bfa6d0a5f852e053400a7feff8615005b10d0000000000160014c9096d43f408ea526020262ccdad7c8516b92a81040047304402207e171d056e81cf8ad2d5a613ecbaa212d5dcbd0bf713145d18911d2cbe9d858802206222911660a26d7ffddc2563ae6d41d6ffad9fbd2fc26cf40eab501a31153b9e0147304402204ae7cdc68dc7966eab73f16a1978643336333d54ae0b6f87bc11a2c19174a9710220601e5276aee0825466cc272c4eb7d353b393ef0dd230d303f46772790dee19190147522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae00000000", - "txid": "4a08e0508e2e39ea033fab5f77b318337f345550421799f6e0eb1b15a892eda4", - "type": "mutual" - } - }, - { - "request": { - "id": "example:close#3", - "method": "close", - "params": [ - "107x1x0", - null, - "bcrt1qeyyk6sl5pr49ycpqyckvmttus5ttj25pd0zpvg" - ] - }, - "response": { - "tx": "02000000000101233b513665836d240423f45ffcd1fe19aeb08d62303fa5382ad3285f770683a60000000000ffffffff02a086010000000000225120b47216ab60a0fad97de0ba9b8b370d281dfe55f552d82034e2a8d054c2246e4405b10d0000000000160014c9096d43f408ea526020262ccdad7c8516b92a81040047304402207a9e3ca258861b33827d91514690a757e76730ba8c15dd222340bb13d993a1a502204d0ae329273b69abe62df1ffccce808d5f1a29101a8ee95dae99888376dbaef801473044022033c03f406db9f1c9d924cfd8f6ea42d0962f0ab02e3217aef518aea517ca5ba40220076e2af9d40c676316a2765a86f9efd481de3fc4465ceba33b0782c505ae3452014752210212284c004a3d24146e54b2a24db48f650370a08e1fe9abe8ff41f92b09cd50542102a3032ef980cc735579aa5295d927b9a1bdbafc459f2da14163dc9bd530e0a21152ae00000000", - "txid": "d44a1374a30c1a936d2d4fdbe73c0ffff42fec8c27c6cbaec2758b3042f61d08", - "type": "mutual" - } - } - ], - "author": [ - "ZmnSCPxj <> is mainly responsible." - ], - "see_also": [ - "lightning-disconnect(7)", - "lightning-fundchannel(7)", - "lightningd-config(5)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-commando-blacklist.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.05", - "deprecated": [ - "v23.08", - "v24.08" - ], - "rpc": "commando-blacklist", - "title": "Command to prevent a rune from working", - "description": [ - "The **commando-blacklist** RPC command allows you to effectively revoke the rune you have created (and any runes derived from that rune with additional restictions). Attempting to use these runes will be resulted in a `Blacklisted rune` error message.", - "", - "All runes created by commando have a unique sequential id within them and can be blacklisted in ranges for efficiency. The command always returns the blacklisted ranges on success. If no parameters are specified, no changes have been made. If start specified without end, that single rune is blacklisted. If end is also specified, every rune from start till end inclusive is blacklisted." - ], - "request": { - "required": [], - "properties": { - "start": { - "type": "u64", - "description": [ - "First rune unique id to blacklist." - ] + "lightning-blacklistrune.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.08", + "rpc": "blacklistrune", + "title": "Command to prevent a rune from working", + "description": [ + "The **blacklistrune** RPC command allows you to effectively revoke the rune you have created (and any runes derived from that rune with additional restictions). Attempting to use these runes will be resulted in a `Blacklisted rune` error message.", + "", + "Destroy a rune like in olden times with the **destroyrune** command.", + "", + "All runes created by lightning have a unique sequential id within them and can be blacklisted in ranges for efficiency. The command always returns the blacklisted ranges on success. If no parameters are specified, no changes have been made. If start specified without end, that single rune is blacklisted. If end is also specified, every rune from start till end inclusive is blacklisted." + ], + "request": { + "required": [], + "properties": { + "start": { + "type": "u64", + "description": [ + "First rune unique id to blacklist." + ] + }, + "end": { + "type": "u64", + "description": [ + "Final rune unique id to blacklist (defaults to start)." + ] + } }, - "end": { - "type": "u64", - "description": [ - "Final rune unique id to blacklist (defaults to start)." + "dependentUpon": { + "start": [ + "end" ] } }, - "dependentUpon": { - "start": [ - "end" - ] - } - }, - "response": { - "required": [ - "blacklist" - ], - "properties": { - "blacklist": { - "type": "array", - "description": [ - "The resulting blacklist ranges after the command." - ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "start", - "end" + "response": { + "required": [ + "blacklist" + ], + "properties": { + "blacklist": { + "type": "array", + "description": [ + "The resulting blacklist ranges after the command." ], - "properties": { - "start": { - "type": "u64", - "description": [ - "Unique id of first rune in this blacklist range." - ] - }, - "end": { - "type": "u64", - "description": [ - "Unique id of last rune in this blacklist range." - ] + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "start", + "end" + ], + "properties": { + "start": { + "type": "u64", + "description": [ + "Unique id of first rune in this blacklist range." + ] + }, + "end": { + "type": "u64", + "description": [ + "Unique id of last rune in this blacklist range." + ] + } } } } } - } - }, - "json_example": [ - { - "request": { - "id": "example:commando-blacklist#1", - "method": "commando-blacklist", - "params": { - "start": 2 - } - }, - "response": { - "blacklist": [ - { - "start": 2, - "end": 2 - } - ] - } }, - { - "request": { - "id": "example:commando-blacklist#2", - "method": "commando-blacklist", - "params": { - "start": 5, - "end": 7 + "json_example": [ + { + "request": { + "id": "example:blacklistrune#1", + "method": "blacklistrune", + "params": { + "start": 2 + } + }, + "response": { + "blacklist": [ + { + "start": 2, + "end": 2 + } + ] } }, - "response": { - "blacklist": [ - { - "start": 2, - "end": 2 - }, - { + { + "request": { + "id": "example:blacklistrune#2", + "method": "blacklistrune", + "params": { "start": 5, "end": 7 } - ] - } - }, - { - "request": { - "id": "example:commando-blacklist#3", - "method": "commando-blacklist", - "params": { - "start": 3, - "end": 4 + }, + "response": { + "blacklist": [ + { + "start": 2, + "end": 2 + }, + { + "start": 5, + "end": 7 + } + ] } }, - "response": { - "blacklist": [ - { - "start": 2, - "end": 7 + { + "request": { + "id": "example:blacklistrune#3", + "method": "blacklistrune", + "params": { + "start": 3, + "end": 4 } - ] - } - } - ], - "author": [ - "Shahana Farooqui <> is mainly responsible." - ], - "see_also": [ - "lightning-commando-listrunes(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-commando-listrunes.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.05", - "deprecated": [ - "v23.08", - "v24.05" - ], - "rpc": "commando-listrunes", - "title": "Command to list previously generated runes", - "description": [ - "The **commando-listrunes** RPC command either lists runes that we stored as we generate them (see lightning-commando-rune(7)) or decodes the rune given on the command line.", - "", - "NOTE: Runes generated prior to v23.05 were not stored, so will not appear in this list." - ], - "request": { - "required": [], - "properties": { - "rune": { - "type": "string", - "description": [ - "Optional rune to list." - ] - } - } - }, - "response": { - "required": [ - "runes" - ], - "properties": { - "runes": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "rune", - "unique_id", - "restrictions", - "restrictions_as_english" - ], - "properties": { - "rune": { - "type": "string", - "description": [ - "Base64 encoded rune." - ] - }, - "unique_id": { - "type": "string", - "description": [ - "Unique id assigned when the rune was generated; this is always a u64 for commando runes." - ] - }, - "restrictions": { - "type": "array", - "description": [ - "The restrictions on what commands this rune can authorize." - ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "alternatives", - "english" - ], - "properties": { - "alternatives": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "fieldname", - "value", - "condition", - "english" - ], - "properties": { - "fieldname": { - "type": "string", - "description": [ - "The field this restriction applies to; see commando-rune(7)." - ] - }, - "value": { - "type": "string", - "description": [ - "The value accepted for this field." - ] - }, - "condition": { - "type": "string", - "description": [ - "The way to compare fieldname and value." - ] - }, - "english": { - "type": "string", - "description": [ - "English readable description of this alternative." - ] - } - } - } - }, - "english": { - "type": "string", - "description": [ - "English readable summary of alternatives above." - ] - } - } - } - }, - "restrictions_as_english": { - "type": "string", - "description": [ - "English readable description of the restrictions array above." - ] - }, - "stored": { - "type": "boolean", - "enum": [ - false - ], - "description": [ - "This is false if the rune does not appear in our datastore (only possible when `rune` is specified)." - ] - }, - "blacklisted": { - "type": "boolean", - "enum": [ - true - ], - "description": [ - "The rune has been blacklisted; see commando-blacklist(7)." - ] - }, - "last_used": { - "type": "number", - "description": [ - "The last time this rune was successfully used." - ], - "added": "23.11" - }, - "our_rune": { - "type": "boolean", - "enum": [ - false - ], - "description": [ - "This is not a rune for this node (only possible when `rune` is specified)." - ] + }, + "response": { + "blacklist": [ + { + "start": 2, + "end": 7 } - } + ] } } - } + ], + "author": [ + "Shahana Farooqui <> is mainly responsible." + ], + "see_also": [ + "lightning-commando-blacklist(7)", + "lightning-showrunes(7)" + ], + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:commando-listrunes#1", - "method": "commando-listrunes", - "params": "{}" - }, - "response": { - "runes": [ - { - "rune": "OSqc7ixY6F-gjcigBfxtzKUI54uzgFSA6YfBQoWGDV89MA==", - "unique_id": "0", - "restrictions": [], - "restrictions_as_english": "" - }, - { - "rune": "Am3W_wI0PRn4qVNEsJ2iInHyFPQK8wfdqEXztm8-icQ9MA==", - "stored": false, - "our_rune": false, - "unique_id": "1", - "restrictions": [], - "restrictions_as_english": "" - } - ] - } - }, - { - "request": { - "id": "example:commando-listrunes#2", - "method": "commando-listrunes", - "params": { - "rune": "Am3W_wI0PRn4qVNEsJ2iInHyFPQK8wfdqEXztm8-icQ9MA==" + "lightning-check.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "check", + "title": "Command for verifying parameters", + "description": [ + "The **check** RPC command verifies another command without actually making any changes.", + "", + "This is guaranteed to be safe, and will do all checks up to the point where something in the system would need to be altered (such as checking that channels are in the right state, peers connected, etc).", + "", + "It does not guarantee successful execution of the command in all cases. For example, a call to lightning-getroute(7) may still fail to find a route even if checking the parameters succeeds." + ], + "request": { + "required": [ + "command_to_check" + ], + "properties": { + "command_to_check": { + "type": "string", + "description": [ + "Name of the relevant command." + ] } - }, - "response": { - "runes": [ - { - "rune": "Am3W_wI0PRn4qVNEsJ2iInHyFPQK8wfdqEXztm8-icQ9MA==", - "stored": false, - "our_rune": false, - "unique_id": "1", - "restrictions": [], - "restrictions_as_english": "" - } - ] } }, - { - "request": { - "id": "example:commando-listrunes#3", - "method": "commando-listrunes", - "params": { - "rune": "m_tyR0qqHUuLEbFJW6AhmBg-9npxVX2yKocQBFi9cvY9MyZpZF4wMjJkMjIzNjIwYTM1OWE0N2ZmNyZtZXRob2Q9bGlzdHBlZXJzJnBuYW1lbGV2ZWwhfHBuYW1lbGV2ZWwvaW8mcGFycjEhfHBhcnIxL2lv" + "response": { + "properties": { + "command_to_check": { + "type": "string", + "description": [ + "The *command_to_check* argument." + ] } }, - "response": { - "runes": [ - { - "rune": "m_tyR0qqHUuLEbFJW6AhmBg-9npxVX2yKocQBFi9cvY9MyZpZF4wMjJkMjIzNjIwYTM1OWE0N2ZmNyZtZXRob2Q9bGlzdHBlZXJzJnBuYW1lbGV2ZWwhfHBuYW1lbGV2ZWwvaW8mcGFycjEhfHBhcnIxL2lv", - "stored": false, - "unique_id": "3", - "restrictions": [ - { - "alternatives": [ - { - "fieldname": "id", - "value": "022d223620a359a47ff7", - "condition": "^", - "english": "id starts with 022d223620a359a47ff7" - } - ], - "english": "id starts with 022d223620a359a47ff7" - }, - { - "alternatives": [ - { - "fieldname": "method", - "value": "listpeers", - "condition": "=", - "english": "method equal to listpeers" - } - ], - "english": "method equal to listpeers" - }, + "required": [ + "command_to_check" + ] + }, + "json_example": [ + { + "request": { + "id": "example:check#1", + "method": "check", + "params": { + "command_to_check": "sendpay", + "route": [ { - "alternatives": [ - { - "fieldname": "pnamelevel", - "value": "", - "condition": "!", - "english": "pnamelevel is missing" - }, - { - "fieldname": "pnamelevel", - "value": "io", - "condition": "/", - "english": "pnamelevel unequal to io" - } - ], - "english": "pnamelevel is missing OR pnamelevel unequal to io" + "amount_msat": 1011, + "msatoshi": 1011, + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "delay": 20, + "channel": "1x1x1" }, { - "alternatives": [ - { - "fieldname": "parr1", - "value": "", - "condition": "!", - "english": "parr1 is missing" - }, - { - "fieldname": "parr1", - "value": "io", - "condition": "/", - "english": "parr1 unequal to io" - } - ], - "english": "parr1 is missing OR parr1 unequal to io" + "amount_msat": 1000, + "msatoshi": 1000, + "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "delay": 10, + "channel": "2x2x2" } ], - "restrictions_as_english": "id starts with 022d223620a359a47ff7 AND method equal to listpeers AND pnamelevel is missing OR pnamelevel unequal to io AND parr1 is missing OR parr1 unequal to io" + "payment_hash": "0000000000000000000000000000000000000000000000000000000000000000" } - ] - } - } - ], - "author": [ - "Shahana Farooqui <> is mainly responsible." - ], - "see_also": [ - "lightning-commando-rune(7)", - "lightning-commando-blacklist(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-commando-rune.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "deprecated": [ - "v23.08", - "v23.05" - ], - "rpc": "commando-rune", - "title": "Command to Authorize Remote Peer Access", - "description": [ - "The **commando-rune** RPC command creates a base64 string called a *rune* which can be used to access commands on this node. Each *rune* contains a unique id (a number starting at 0), and can have restrictions inside it. Nobody can remove restrictions from a rune: if you try, the rune will be rejected. There is no limit on how many runes you can issue; the node simply decodes and checks them as they are received (we do store them for lightning-commando- listrunes(7) however)." - ], - "request": { - "required": [], - "properties": { - "rune": { - "type": "string", - "description": [ - "If supplied, the restrictions are simple appended to that *rune* (it doesn't need to be a rune belonging to this node). If not supplied, a new *rune* is constructed, with a new unique id." - ] + }, + "response": { + "command_to_check": "sendpay" + } }, - "restrictions": { - "description": [ - "It can be the string `readonly`, or an array of restrictions.", - "Each restriction is an array of one or more alternatives, such as \"method is listpeers\", or \"method is listpeers OR time is before 2023\"." - ], - "oneOf": [ - { - "type": "array", - "description": [ - "Alternatives use a simple language to examine the command which is being run:", - " * time: the current UNIX time, e.g. \"time<1656759180\".", - " * id: the node_id of the peer, e.g. \"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\".", - " * method: the command being run, e.g. \"method=withdraw\".", - " * per: how often the rune can be used, with suffix \"sec\" (default), \"min\", \"hour\", \"day\" or \"msec\", \"usec\" or \"nsec\". e.g. \"per=5sec\".", - " * rate: the rate limit, per minute, e.g. \"rate=60\" is equivalent to \"per=1sec\".", - " * pnum: the number of parameters. e.g. \"pnum<2\".", - " * pnameX: the parameter named X (with any punctuation like `_` removed). e.g. \"pnamedestination=1RustyRX2oai4EYYDpQGWvEL62BBGqN9T\".", - " * parrN: the N'th parameter. e.g. \"parr0=1RustyRX2oai4EYYDpQGWvEL62BBGqN9T\"." - ], - "items": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "type": "string", - "enum": [ - "readonly" - ], - "description": [ - "A rune which allows most *get* and *list* commands, and the *summary* command." - ] + { + "request": { + "id": "example:check#2", + "method": "check", + "params": { + "command_to_check": "dev", + "subcommand": "slowcmd", + "msec": 1000 } - ] - } - } - }, - "response": { - "required": [ - "rune", - "unique_id" - ], - "properties": { - "rune": { - "type": "string", - "description": [ - "The resulting rune." - ] - }, - "unique_id": { - "type": "string", - "description": [ - "The id of this rune: this is set at creation and cannot be changed (even as restrictions are added)." - ] + }, + "response": { + "command_to_check": "dev" + } }, - "warning_unrestricted_rune": { - "type": "string", - "description": [ - "A warning shown when runes are created with powers that could drain your node." - ] + { + "request": { + "id": "example:check#3", + "method": "check", + "params": { + "command_to_check": "recover", + "hsmsecret": "6c696768746e696e672d31000000000000000000000000000000000000000000" + } + }, + "response": { + "command_to_check": "recover" + } } - } + ], + "author": [ + "Mark Beckwith <> and Rusty Russell <> are mainly responsible." + ], + "resources": [ + "Main web site: " + ] }, - "restriction_format": [ - "Restrictions are one or more alternatives. Each alternative is *name* *operator* *value*. The valid names are shown above.", - "", - "Note that if a value contains `\\`, it must be preceeded by another `\\` to form valid JSON:", - "* `=`: passes if equal ie. identical. e.g. `method=withdraw`", - "* `/`: not equals, e.g. `method/withdraw`", - "* `^`: starts with, e.g. `id^024b9a1fa8e006f1e3937f`", - "* `$`: ends with, e.g. `id$381df1cc449605`.", - "* `~`: contains, e.g. `id~006f1e3937f65f66c40`.", - "* `<`: is a decimal integer, and is less than. e.g. `time<1656759180`", - "* `>`: is a decimal integer, and is greater than. e.g. `time>1656759180`", - "* `{`: preceeds in alphabetical order (or matches but is shorter),", - " e.g. `id{02ff`.", - "* `}`: follows in alphabetical order (or matches but is longer),", - " e.g. `id}02ff`.", - "* `#`: a comment, ignored, e.g. `dumb example#`.", - "* `!`: only passes if the *name* does *not* exist. e.g. `pnamedestination!`.", - "Every other operator except `#` fails if *name* does not exist!" - ], - "example_usage": [ - "This creates a fresh rune which can do anything:", - "", - "```shell", - "$ lightning-cli commando-rune", - "{", - " \"rune\": \"KUhZzNlECC7pYsz3QVbF1TqjIUYi3oyESTI7n60hLMs9MA==\",", - " \"unique_id\": \"0\"", - "}", - "```", - "We can add restrictions to that rune, like so:", - "", - "```shell", - "$ lightning-cli commando-rune rune=KUhZzNlECC7pYsz3QVbF1TqjIUYi3oyESTI7n60hLMs9MA== restrictions=readonly", - "{", - " \"rune\": \"NbL7KkXcPQsVseJ9TdJNjJK2KsPjnt_q4cE_wvc873I9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl\",", - " \"unique_id\": \"0\"", - "}", - "```", - "The \"readonly\" restriction is a short-cut for two restrictions:", - "", - "1. `[\"method^list\", \"method^get\", \"method=summary\"]`: You may call list, get or summary.", - "2. `[\"method/listdatastore\"]`: But not listdatastore: that contains sensitive stuff!", - "", - "We can do the same manually, like so:", - "", - "```shell", - "$ lightning-cli commando-rune rune=KUhZzNlECC7pYsz3QVbF1TqjIUYi3oyESTI7n60hLMs9MA== restrictions='[[\"method^list\", \"method^get\", \"method=summary\"],[\"method/listdatastore\"]]'", - "{", - " \"rune\": \"NbL7KkXcPQsVseJ9TdJNjJK2KsPjnt_q4cE_wvc873I9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl\",", - " \"unique_id\": \"0\"", - "}", - "```", - "Let's create a rune which lets a specific peer (024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605) run \"listpeers\" on themselves:", - "", - "```shell", - "$ lightning-cli commando-rune restrictions='[[\"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"],[\"method=listpeers\"],[\"pnum=1\"],[\"pnameid=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\",\"parr0=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"]]'", - "{", - " \"rune\": \"FE8GHiGVvxcFqCQcClVRRiNE_XEeLYQzyG2jmqto4jM9MiZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDV8cGFycjA9MDI0YjlhMWZhOGUwMDZmMWUzOTM3ZjY1ZjY2YzQwOGU2ZGE4ZTFjYTcyOGVhNDMyMjJhNzM4MWRmMWNjNDQ5NjA1\",", - " \"unique_id\": \"2\"", - "}", - "```", - "This allows `listpeers` with 1 argument (`pnum=1`), which is either by name (`pnameid`), or position (`parr0`). We could shorten this in several ways: either allowing only positional or named parameters, or by testing the start of the parameters only. Here's an example which only checks the first 9 bytes of the `listpeers` parameter:", - "", - "```shell", - "$ lightning-cli commando-rune restrictions='[[\"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"],[\"method=listpeers\"],[\"pnum=1\"],[\"pnameid^024b9a1fa8e006f1e393\", \"parr0^024b9a1fa8e006f1e393\"]'", - " {", - " \"rune\": \"fTQnfL05coEbiBO8SS0cvQwCcPLxE9c02pZCC6HRVEY9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5Mw==\",", - " \"unique_id\": \"3\"", - "}", - "```", - "Before we give this to our peer, let's add two more restrictions: that it only be usable for 24 hours from now (`time<`), and that it can only be used twice a minute (`rate=2`). `date +%s` can give us the current time in seconds:", - "", - "```shell", - "$ lightning-cli commando-rune rune=fTQnfL05coEbiBO8SS0cvQwCcPLxE9c02pZCC6HRVEY9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5Mw== restrictions='[[\"time<'$(($(date +%s) + 24*60*60))'\",\"rate=2\"]]'", - "{", - " \"rune\": \"tU-RLjMiDpY2U0o3W1oFowar36RFGpWloPbW9-RuZdo9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5MyZ0aW1lPDE2NTY5MjA1MzgmcmF0ZT0y\",", - " \"unique_id\": \"3\"", - "}", - "```", - "You can also use lightning-decode(7) to examine runes you have been given:", - "", - "```shell", - "$ lightning-cli decode tU-RLjMiDpY2U0o3W1oFowar36RFGpWloPbW9-RuZdo9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5MyZ0aW1lPDE2NTY5MjA1MzgmcmF0ZT0y", - "{", - " \"type\": \"rune\",", - " \"unique_id\": \"3\",", - " \"string\": \"b54f912e33220e9636534a375b5a05a306abdfa4451a95a5a0f6d6f7e46e65da:=3&id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605&method=listpeers&pnum=1&pnameid^024b9a1fa8e006f1e393|parr0^024b9a1fa8e006f1e393&time<1656920538&rate=2\",", - " \"restrictions\": [", - " {", - " \"alternatives\": [", - " \"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"", - " ],", - " \"summary\": \"id (of commanding peer) equal to '024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605'\"", - " },", - " {", - " \"alternatives\": [", - " \"method=listpeers\"", - " ],", - " \"summary\": \"method (of command) equal to 'listpeers'\"", - " },", - " {", - " \"alternatives\": [", - " \"pnum=1\"", - " ],", - " \"summary\": \"pnum (number of command parameters) equal to 1\"", - " },", - " {", - " \"alternatives\": [", - " \"pnameid^024b9a1fa8e006f1e393\",", - " \"parr0^024b9a1fa8e006f1e393\"", - " ],", - " \"summary\": \"pnameid (object parameter 'id') starts with '024b9a1fa8e006f1e393' OR parr0 (array parameter #0) starts with '024b9a1fa8e006f1e393'\"", - " },", - " {", - " \"alternatives\": [", - " \"time<1656920538\"", - " ],", - " \"summary\": \"time (in seconds since 1970) less than 1656920538 (approximately 19 hours 18 minutes from now)\"", - " },", - " {", - " \"alternatives\": [", - " \"rate=2\"", - " ],", - " \"summary\": \"rate (max per minute) equal to 2\"", - " }", - " ],", - " \"valid\": true", - "}", - "```" - ], - "sharing_runes": [ - "Because anyone can add a restriction to a rune, you can always turn a normal rune into a read-only rune, or restrict access for 30 minutes from the time you give it to someone. Adding restrictions before sharing runes is best practice.", - "", - "If a rune has a ratelimit, any derived rune will have the same id, and thus will compete for that ratelimit. You might want to consider adding a tighter ratelimit to a rune before sharing it, so you will keep the remainder. For example, if you rune has a limit of 60 times per minute, adding a limit of 5 times per minute and handing that rune out means you can still use your original rune 55 times per minute." - ], - "json_example": [ - { - "request": { - "id": "example:commando-rune#1", - "method": "commando-rune", - "params": "{}" - }, - "response": { - "rune": "OSqc7ixY6F-gjcigBfxtzKUI54uzgFSA6YfBQoWGDV89MA==", - "unique_id": "0", - "warning_unrestricted_rune": "WARNING: This rune has no restrictions! Anyone who has access to this rune could drain funds from your node. Be careful when giving this to apps that you don't trust. Consider using the restrictions parameter to only allow access to specific rpc methods." - } - }, - { - "request": { - "id": "example:commando-rune#2", - "method": "commando-rune", - "params": { - "restrictions": "readonly" + "lightning-checkmessage.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "checkmessage", + "title": "Command to check if a signature is from a node", + "description": [ + "The **checkmessage** RPC command is the counterpart to **signmessage**: given a node id (*pubkey*), signature (*zbase*) and a *message*, it verifies that the signature was generated by that node for that message (more technically: by someone who knows that node's secret).", + "", + "As a special case, if *pubkey* is not specified, we will try every known node key (as per *listnodes*), and verification succeeds if it matches for any one of them. Note: this is implemented far more efficiently than trying each one, so performance is not a concern." + ], + "request": { + "required": [ + "message", + "zbase" + ], + "properties": { + "message": { + "type": "string", + "description": [ + "Message to be checked against the signature." + ] + }, + "zbase": { + "type": "string", + "description": [ + "The Zbase32 encoded signature to verify." + ] + }, + "pubkey": { + "type": "pubkey", + "description": [ + "The Zbase32 encoded signature to verify." + ] } - }, - "response": { - "rune": "zm0x_eLgHexaTvZn3Cz7gb_YlvrlYGDo_w4BYlR9SS09MSZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl", - "unique_id": "1" } }, - { - "request": { - "id": "example:commando-rune#3", - "method": "commando-rune", - "params": { - "restrictions": [ - [ - "id^022d223620a359a47ff7" - ], - [ - "method=listpeers" - ] + "response": { + "required": [ + "verified", + "pubkey" + ], + "properties": { + "verified": { + "type": "boolean", + "enum": [ + true + ], + "description": [ + "Whether the signature was valid." + ] + }, + "pubkey": { + "type": "pubkey", + "description": [ + "The *pubkey* parameter, or the pubkey found by looking for known nodes." ] } - }, - "response": { - "rune": "YPojv9qgHPa3im0eiqRb-g8aRq76OasyfltGGqdFUOU9MyZpZF4wMjJkMjIzNjIwYTM1OWE0N2ZmNyZtZXRob2Q9bGlzdHBlZXJz", - "unique_id": "2" } }, - { - "request": { - "id": "example:commando-rune#4", - "method": "commando-rune", - "params": { - "restrictions": [ - [ - "method=pay" - ], - [ - "pnameamountmsat<10000" - ] - ] + "json_example": [ + { + "request": { + "id": "example:checkmessage#1", + "method": "checkmessage", + "params": { + "message": "testcase to check new rpc error", + "zbase": "d66bqz3qsku5fxtqsi37j11pci47ydxa95iusphutggz9ezaxt56neh77kxe5hyr41kwgkncgiu94p9ecxiexgpgsz8daoq4tw8kj8yx", + "pubkey": "03be3b0e9992153b1d5a6e1623670b6c3663f72ce6cf2e0dd39c0a373a7de5a3b7" + } + }, + "response": { + "pubkey": "03be3b0e9992153b1d5a6e1623670b6c3663f72ce6cf2e0dd39c0a373a7de5a3b7", + "verified": true } }, - "response": { - "rune": "b3hXuEM7Pqzk-C7HUw83xzvHOV7fmuGaWjdo-wHdfg89MCZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", - "unique_id": "3" - } - } - ], - "author": [ - "Rusty Russell <> wrote the original Python commando.py plugin, the in-tree commando plugin, and this manual page.", - "", - "Christian Decker came up with the name \"commando\", which almost excuses his previous adoption of the name \"Eltoo\"." - ], - "see_also": [ - "lightning-commando(7)", - "lightning-decode(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-commando.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "commando", - "title": "Command to Send a Command to a Remote Peer", - "description": [ - "The **commando** RPC command is a homage to bad 80s movies. It also sends a directly-connected *peer_id* a custom message, containing a request to run *method* (with an optional dictionary of *params*); generally the peer will only allow you to run a command if it has provided you with a *rune* which allows it." - ], - "request": { - "required": [ - "peer_id", - "method" - ], - "properties": { - "peer_id": { - "type": "pubkey", - "description": [ - "Peer to command." - ] - }, - "method": { - "type": "string", - "description": [ - "Method to invoke on peer." - ] - }, - "params": { - "oneOf": [ - { - "type": "array", - "description": [ - "Array of positional parameters." - ] - }, - { - "type": "object", - "description": [ - "Parameters for method." - ] + { + "request": { + "id": "example:checkmessage#2", + "method": "checkmessage", + "params": { + "message": "this is a test!", + "zbase": "d6tqaeuonjhi98mmont9m4wag7gg4krg1f4txonug3h31e9h6p6k6nbwjondnj46dkyausobstnk7fhyy998bhgc1yr98dfmhb4k54d7", + "pubkey": null } - ] - }, - "rune": { - "type": "string", - "description": [ - "Rune to authorize the command." - ] - }, - "filter": { - "type": "object", - "description": [ - "Filter to peer to apply to any successful result." - ] + }, + "response": { + "pubkey": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "verified": true + } } - } - }, - "response": { - "required": [], - "properties": {}, - "pre_return_value_notes": [ - "On success, the return depends on the *method* invoked." + ], + "errors": [ + "On failure, an error is returned and core lightning exit with the following error code:", + "", + "- -32602: Parameter missed or malformed;", + "- 1301: *pubkey* not found in the graph." + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-signmessage(7)" + ], + "resources": [ + "Main web site: " ] }, - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32600: Usually means peer is not connected", - "- 19535: the local commando plugin discovered an error.", - "- 19536: the remote commando plugin discovered an error.", - "- 19537: the remote commando plugin said we weren't authorized.", - "", - "It can also fail if the peer does not respond, in which case it will simply hang awaiting a response." - ], - "json_example": [ - { - "request": { - "id": "example:commando#1", - "method": "commando", + "lightning-checkrune.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.08", + "rpc": "checkrune", + "title": "Command to Validate Rune", + "description": [ + "The **checkrune** RPC command checks the validity/authorization rights of specified rune for the given nodeid, method, and params.", + "", + "If successful, the rune \"usage\" counter (used for ratelimiting) is incremented.", + "", + "See lightning-createrune(7) for the fields in the rune which are checked." + ], + "request": { + "required": [ + "rune" + ], + "properties": { + "rune": { + "type": "string", + "description": [ + "Rune to check for authorization." + ] + }, + "nodeid": { + "type": "string", + "description": [ + "Node id of requesting node *(required until v23.11)*." + ] + }, + "method": { + "type": "string", + "description": [ + "Method for which rune needs to be validated *(required until v23.11)*." + ] + }, "params": { - "peer_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "rune": "zm0x_eLgHexaTvZn3Cz7gb_YlvrlYGDo_w4BYlR9SS09MSZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl", - "method": "getinfo", - "params": {} - } - }, - "response": { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "alias": "JUNIORBEAM-v23.11-415-gd120eba", - "color": "0266e4", - "num_peers": 1, - "num_pending_channels": 0, - "num_active_channels": 0, - "num_inactive_channels": 0, - "address": [], - "binding": [ - { - "type": "ipv4", - "address": "127.0.0.1", - "port": 42513 - } - ], - "version": "v23.11-415-gd120eba", - "blockheight": 101, - "network": "regtest", - "fees_collected_msat": 0, - "lightning-dir": "/tmp/ltests-7u_8_rtu/test_commando_rune_1/lightning-1/regtest", - "our_features": { - "init": "08a0000a8a5961", - "node": "88a0000a8a5961", - "channel": "", - "invoice": "02000002024100" + "oneOf": [ + { + "type": "array", + "description": [ + "Array of positional parameters." + ] + }, + { + "type": "object", + "description": [ + "Parameters for method." + ] + } + ] } } }, - { - "request": { - "id": "example:commando#2", - "method": "commando", - "params": { - "peer_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "rune": "m_tyR0qqHUuLEbFJW6AhmBg-9npxVX2yKocQBFi9cvY9MyZpZF4wMjJkMjIzNjIwYTM1OWE0N2ZmNyZtZXRob2Q9bGlzdHBlZXJzJnBuYW1lbGV2ZWwhfHBuYW1lbGV2ZWwvaW8mcGFycjEhfHBhcnIxL2lv", - "method": "listpeers", - "params": [ - "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "broken" + "response": { + "required": [ + "valid" + ], + "properties": { + "valid": { + "type": "boolean", + "description": [ + "True if the rune is valid." ] } - }, - "response": { - "peers": [ - { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "connected": true, - "num_channels": 0, - "netaddr": [ - "127.0.0.1:40119" - ], - "features": "08a0000a8a5961", - "log": [ - { - "type": "SKIPPED", - "num_skipped": 30 - } - ] - } - ] } }, - { - "request": { - "id": "example:commando#3", - "method": "commando", - "params": { - "peer_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "rune": "b3hXuEM7Pqzk-C7HUw83xzvHOV7fmuGaWjdo-wHdfg89MCZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", - "method": "pay", + "errors": [ + "The following error codes may occur:", + "", + "- 1501 (RUNE_NOT_AUTHORIZED): rune is not for this node (or perhaps completely invalid)", + "- 1502 (RUNE_NOT_PERMITTED): rune does not allow this usage (includes a detailed reason why)", + "- 1503 (RUNE_BLACKLISTED): rune has been explicitly blacklisted." + ], + "json_example": [ + { + "request": { + "id": "example:checkrune#1", + "method": "checkrune", "params": { - "bolt11": "lnbcrt1pja05v6sp5n6gnm380ckkrnhzvytz0hvym0vcf0mlrk586nlp72cq7e2hhhffspp5cwhuvl4jhlqep3st2703z89jp7j6wucm8ytlj7rk9ckk0mv7whysdq5v3jhxcmjd9c8g6t0dceqxqyjw5qcqp99qxpqysgq40udwjtktkry0yyq9408q5vtmj534h88j5nn562lamam0rtfqfu3093t2dhhc63qnqe5maa5jc9ad5pm08q2k2udvp6skw9f6ez9c9qptatlau", - "amount_msat": 9999 + "nodeid": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "rune": "617Obfct0oRBj_uqGFQxDk3XZ1sDFiC2Q5ltm5z1i_k9NSZtZXRob2Q9aW52b2ljZSZwbmFtZWRlc2NyaXB0aW9uPUB0aXBqYXJcfGpiNTVAc2VuZHNhdHMubG9s", + "method": "invoice", + "params": { + "amount_msat": "any", + "label": "lbl", + "description": [ + "@tipjar|jb55@sendsats.lol." + ] + } } + }, + "response": { + "valid": true } }, - "response": { - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payment_hash": "c3afc67eb2bfc190c60b579f111cb20fa5a7731b3917f978762e2d67ed9e75c9", - "created_at": 1708642714.8110592, - "parts": 1, - "amount_msat": 9999, - "amount_sent_msat": 9999, - "payment_preimage": "17632717785b1a833a296ba1831cb968602872e68881c2f324e06e87979296dc", - "status": "complete" - } - } - ], - "author": [ - "Rusty Russell <> wrote the original Python commando.py plugin, the in-tree commando plugin, and this manual page.", - "", - "Christian Decker came up with the name \"commando\", which almost excuses his previous adoption of the name \"Eltoo\"." - ], - "see_also": [ - "lightning-commando-rune(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-connect.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "connect", - "title": "Command for connecting to another lightning node", - "description": [ - "The **connect** RPC command establishes a new connection with another node in the Lightning Network.", - "", - "Connecting to a node is just the first step in opening a channel with another node. Once the peer is connected a channel can be opened with lightning-fundchannel(7).", - "", - "If there are active channels with the peer, **connect** returns once all the subdaemons are in place to handle the channels, not just once it's connected." - ], - "request": { - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string", - "description": [ - "The target node's public key. As a convenience, *id* may be of the form *id@host* or *id@host:port*. In this case, the *host* and *port* parameters must be omitted. This can fail if your C-lightning node is a fresh install that has not connected to any peers yet (your node has no gossip yet), or if the target *id* is a fresh install that has no channels yet (nobody will gossip about a node until it has one published channel)." - ] - }, - "host": { - "type": "string", - "description": [ - "The peer's hostname or IP address. If *host* is not specified (or doesn't work), the connection will be attempted to an IP belonging to *id* obtained through gossip with other already connected peers. If *host* begins with a `/` it is interpreted as a local path and the connection will be made to that local socket (see **bind-addr** in lightningd-config(5))." - ] + { + "request": { + "id": "example:checkrune#2", + "method": "checkrune", + "params": { + "nodeid": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "rune": "OSqc7ixY6F-gjcigBfxtzKUI54uzgFSA6YfBQoWGDV89MA==", + "method": "listpeers", + "params": {} + } + }, + "response": { + "valid": true + } }, - "port": { - "type": "u16", - "description": [ - "The peer's port number. If not specified, the *port* depends on the current network:", - " * bitcoin **mainnet**: 9735.", - " * bitcoin **testnet**: 19735.", - " * bitcoin **signet**: 39735.", - " * bitcoin **regtest**: 19846." - ] + { + "request": { + "id": "example:checkrune#3", + "method": "checkrune", + "params": { + "nodeid": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "rune": "617Obfct0oRBj_uqGFQxDk3XZ1sDFiC2Q5ltm5z1i_k9NSZtZXRob2Q9aW52b2ljZSZwbmFtZWRlc2NyaXB0aW9uPUB0aXBqYXJcfGpiNTVAc2VuZHNhdHMubG9s", + "method": "invoice", + "params": { + "amount_msat": "any", + "label": "lbl", + "description": "@tipjar|jb55@sendsats.lol" + } + } + }, + "response": { + "valid": true + } } - } + ], + "author": [ + "Shahana Farooqui <> is mainly responsible for consolidating logic from commando." + ], + "see_also": [ + "lightning-createrune(7)", + "lightning-blacklistrune(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "id", - "features", - "direction", - "address" + "lightning-close.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "close", + "title": "Command for closing channels with direct peers", + "description": [ + "The **close** RPC command attempts to close the channel cooperatively with the peer, or unilaterally after *unilateraltimeout*, and the to-local output will be sent to the address specified in *destination*.", + "", + "The peer needs to be live and connected in order to negotiate a mutual close. The default of unilaterally closing after 48 hours is usually a reasonable indication that you can no longer contact the peer." ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "The peer we connected to." - ] - }, - "features": { - "type": "hex", - "description": [ - "BOLT 9 features bitmap offered by peer." - ] - }, - "direction": { - "type": "string", - "enum": [ - "in", - "out" - ], - "description": [ - "Whether they initiated connection or we did." - ] - }, - "address": { - "type": "object", - "description": [ - "Address information (mainly useful if **direction** is *out*)." - ], - "additionalProperties": true, - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "local socket", - "ipv4", - "ipv6", - "torv2", - "torv3" - ], - "description": [ - "Type of connection (*torv2*/*torv3* only if **direction** is *out*)." - ] - } + "request": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string", + "description": [ + "Peer id, channel id or short_channel_id. If the given *id* is a peer ID (66 hex digits as a string), then it applies to the active channel of the direct peer corresponding to the given peer ID. If the given *id* is a channel ID (64 hex digits as a string, or the short channel ID *blockheight:txindex:outindex* form), then it applies to that channel." + ] }, - "allOf": [ - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "local socket" - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "socket" - ], - "properties": { - "type": {}, - "socket": { - "type": "string", - "description": [ - "Socket filename." - ] - } + "unilateraltimeout": { + "type": "u32", + "description": [ + "If it is not zero, the command will unilaterally close the channel when that number of seconds is reached. If *unilateraltimeout* is zero, then the command will wait indefinitely until the peer is online and can negotiate a mutual close." + ], + "default": "2 days (172800 seconds)" + }, + "destination": { + "type": "string", + "description": [ + "Any Bitcoin bech32 type. If the peer hasn't offered the option_shutdown_anysegwit feature, then taproot addresses (or other v1+ segwit) are not allowed. Tell your friends to upgrade!" + ], + "default": "a Core Lightning wallet address" + }, + "fee_negotiation_step": { + "type": "string", + "description": [ + "It controls how closing fee negotiation is performed assuming the peer proposes a fee that is different than our estimate. (Note that modern peers use the quick-close protocol which does not allow negotiation: see *feerange* instead).", + "", + "On every negotiation step we must give up some amount from our proposal towards the peer's proposal. This parameter can be an integer in which case it is interpreted as number of satoshis to step at a time. Or it can be an integer followed by `%` to designate a percentage of the interval to give up. A few examples, assuming the peer proposes a closing fee of 3000 satoshi and our estimate shows it must be 4000:", + " * `10`: our next proposal will be 4000-10=3990.", + " * `10%`: our next proposal will be 4000-(10% of (4000-3000))=3900.", + " * '1': our next proposal will be 3999. This is the most extreme case when we insist on our fee as much as possible.", + " * `100%`: our next proposal will be 3000. This is the most relaxed case when we quickly accept the peer's proposal." + ], + "default": "`50%`" + }, + "wrong_funding": { + "type": "outpoint", + "description": [ + "It can only be specified if both sides have offered the `shutdown_wrong_funding` feature (enabled by the **experimental-shutdown-wrong-funding** option). It must be a transaction id followed by a colon then the output number. Instead of negotiating a shutdown to spend the expected funding transaction, the shutdown transaction will spend this output instead. This is only allowed if this peer opened the channel and the channel is unused: it can rescue openings which have been manually miscreated." + ] + }, + "force_lease_closed": { + "type": "boolean", + "description": [ + "If the channel has funds leased to the peer (option_will_fund), we prevent initiation of a mutual close unless this flag is passed in." + ], + "default": "False" + }, + "feerange": { + "type": "array", + "items": { + "type": "feerate" + }, + "description": [ + "An optional array [ *min*, *max* ], indicating the minimum and maximum feerates to offer: the peer will obey these if it supports the quick-close protocol. *slow* and *unilateral_close* are the defaults. Note that the maximum fee will be capped at the final commitment transaction fee (unless the experimental anchor-outputs option is negotiated)." + ] + } + } + }, + "response": { + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "mutual", + "unilateral", + "unopened" + ], + "description": [ + "Whether we successfully negotiated a mutual close, closed without them, or discarded not-yet-opened channel." + ] + } + }, + "allOf": [ + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "mutual", + "unilateral" + ] } } }, - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "ipv4", - "ipv6", - "torv2", - "torv3" - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "address", - "port" - ], - "properties": { - "type": {}, - "address": { - "type": "string", - "description": [ - "Address in expected format for **type**." - ] - }, - "port": { - "type": "u16", - "description": [ - "Port number." - ] - } + "then": { + "additionalProperties": false, + "required": [ + "tx", + "txid" + ], + "properties": { + "type": {}, + "tx": { + "type": "hex", + "description": [ + "The raw bitcoin transaction used to close the channel (if it was open)." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The transaction id of the *tx* field." + ] } } + }, + "else": { + "additionalProperties": false, + "properties": { + "type": {} + } } - ] - } - } - }, - "errors": [ - "On failure, one of the following errors will be returned:", - "", - "- 400: Unable to connect, no address known for peer", - "- 401: If some addresses are known but connecting to all of them failed, the message will contain details about the failures", - "- 402: If the peer disconnected while we were connecting", - "- -32602: If the given parameters are wrong" - ], - "json_example": [ - { - "request": { - "id": "example:connect#1", - "method": "connect", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "host": "localhost", - "port": 44619 - } - }, - "response": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "features": "08a0000a0a69a2", - "direction": "out", - "address": { - "type": "ipv4", - "address": "127.0.0.1", - "port": 44619 } - } + ], + "post_return_value_notes": [ + "A unilateral close may still occur at any time if the peer did not behave correctly during the close negotiation.", + "", + "Unilateral closes will return your funds after a delay. The delay will vary based on the peer *to_self_delay* setting, not your own setting." + ] }, - { - "request": { - "id": "example:connect#2", - "method": "connect", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "host": "127.0.0.1", - "port": 42839 - } - }, - "response": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "features": "08a0000a8a5961", - "direction": "out", - "address": { - "type": "ipv4", - "address": "127.0.0.1", - "port": 42839 - } - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible. Felix <> is the original author of this manpage." - ], - "see_also": [ - "lightning-fundchannel(7)", - "lightning-listpeers(7)", - "lightning-listchannels(7)", - "lightning-disconnect(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-createinvoice.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "createinvoice", - "title": "Low-level invoice creation", - "description": [ - "The **createinvoice** RPC command signs and saves an invoice into the database." - ], - "request": { - "required": [ - "invstring", - "label", - "preimage" + "notes": [ + "Prior to 0.7.2, **close** took two parameters: *force* and *timeout*. *timeout* was the number of seconds before *force* took effect (default, 30), and *force* determined whether the result was a unilateral close or an RPC error (default). Even after the timeout, the channel would be closed if the peer reconnected." ], - "properties": { - "invstring": { - "type": "string", - "description": [ - "The bolt11 form, but the final signature is ignored. Minimal sanity checks are done. (Note: if **experimental-offers** is enabled, *invstring* can actually be an unsigned bolt12 invoice)." - ] + "notifications": [ + "Notifications may be returned indicating what is going on, especially if the peer is offline and we are waiting." + ], + "json_example": [ + { + "request": { + "id": "example:close#1", + "method": "close", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "unilateraltimeout": 1, + "destination": null, + "fee_negotiation_step": null, + "force_lease_closed": null, + "feerange": null + } + }, + "response": { + "tx": "020000000001018d388ffcd216c92d25163a62096ce47d5c9bbd6270ced51c5a1484f89df33e5700000000009db0e28002a00f00000000000016001445503fa4b65ade3ffdb1a92057688456c9ffae1380130f0000000000220020be82765fdb17fd5568f2dd31c6cf1aabc620ef338995ec5d9a2f3e42f43ae4870400473044022058dcde893655f40fc8162a79596440ef3e304273f8d530401fc17bc92c58159b0220428900ca6537538ba237d569a4a09003d663a991aeb331a9f18dfe807ee78806014730440220111270eeed8b4b1a231d3ce6e0e0daad718623ad159a0fd3781fb18118a8fec70220539826ee7c76cad4116d1d8852329f80314b3434cf21c765d8004186451a4cd50147522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae9c3ed620", + "txid": "5d8d917dd7d39fe5a12f121457fc6d712b5e393ed4f16bc8f5976fc08cbbfecd", + "type": "unilateral" + } }, - "label": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "integer" + { + "request": { + "id": "example:close#2", + "method": "close", + "params": { + "id": "103x1x0", + "unilateraltimeout": null, + "destination": "bcrt1qeyyk6sl5pr49ycpqyckvmttus5ttj25pd0zpvg", + "fee_negotiation_step": null, + "force_lease_closed": null, + "feerange": null } - ], - "description": [ - "A unique string or number (which is treated as a string, so `01` is different from `1`); it is never revealed to other nodes on the lightning network, but it can be used to query the status of this invoice." - ] + }, + "response": { + "tx": "0200000000010132cbce7d5f96b4003c3b5c0eab2a29fef90bb6abb833ff312fa122f31e8301810000000000ffffffff02a0860100000000002251205779a060f200d40e8f871a40eb91614cc5bfa6d0a5f852e053400a7feff8615005b10d0000000000160014c9096d43f408ea526020262ccdad7c8516b92a81040047304402207e171d056e81cf8ad2d5a613ecbaa212d5dcbd0bf713145d18911d2cbe9d858802206222911660a26d7ffddc2563ae6d41d6ffad9fbd2fc26cf40eab501a31153b9e0147304402204ae7cdc68dc7966eab73f16a1978643336333d54ae0b6f87bc11a2c19174a9710220601e5276aee0825466cc272c4eb7d353b393ef0dd230d303f46772790dee19190147522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae00000000", + "txid": "4a08e0508e2e39ea033fab5f77b318337f345550421799f6e0eb1b15a892eda4", + "type": "mutual" + } }, - "preimage": { - "type": "hex", - "description": [ - "The preimage to supply upon successful payment of the invoice." - ] + { + "request": { + "id": "example:close#3", + "method": "close", + "params": [ + "107x1x0", + null, + "bcrt1qeyyk6sl5pr49ycpqyckvmttus5ttj25pd0zpvg" + ] + }, + "response": { + "tx": "02000000000101233b513665836d240423f45ffcd1fe19aeb08d62303fa5382ad3285f770683a60000000000ffffffff02a086010000000000225120b47216ab60a0fad97de0ba9b8b370d281dfe55f552d82034e2a8d054c2246e4405b10d0000000000160014c9096d43f408ea526020262ccdad7c8516b92a81040047304402207a9e3ca258861b33827d91514690a757e76730ba8c15dd222340bb13d993a1a502204d0ae329273b69abe62df1ffccce808d5f1a29101a8ee95dae99888376dbaef801473044022033c03f406db9f1c9d924cfd8f6ea42d0962f0ab02e3217aef518aea517ca5ba40220076e2af9d40c676316a2765a86f9efd481de3fc4465ceba33b0782c505ae3452014752210212284c004a3d24146e54b2a24db48f650370a08e1fe9abe8ff41f92b09cd50542102a3032ef980cc735579aa5295d927b9a1bdbafc459f2da14163dc9bd530e0a21152ae00000000", + "txid": "d44a1374a30c1a936d2d4fdbe73c0ffff42fec8c27c6cbaec2758b3042f61d08", + "type": "mutual" + } } - } + ], + "author": [ + "ZmnSCPxj <> is mainly responsible." + ], + "see_also": [ + "lightning-disconnect(7)", + "lightning-fundchannel(7)", + "lightningd-config(5)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "label", - "created_index", - "payment_hash", - "status", - "description", - "expires_at" + "lightning-commando-blacklist.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.05", + "deprecated": [ + "v23.08", + "v24.08" ], - "properties": { - "label": { - "type": "string", - "description": [ - "The label for the invoice." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "The bolt11 string (always present unless **bolt12** is)." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 string instead of **bolt11** (**experimental-offers** only)." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount of the invoice (if it has one)." - ] - }, - "status": { - "type": "string", - "enum": [ - "paid", - "expired", - "unpaid" - ], - "description": [ - "Whether it has been paid, or can no longer be paid." - ] - }, - "description": { - "type": "string", - "description": [ - "Description extracted from **bolt11** or **bolt12**." - ] - }, - "expires_at": { - "type": "u64", - "description": [ - "UNIX timestamp of when invoice expires (or expired)." - ] - }, - "created_index": { - "type": "u64", - "added": "v23.08", - "description": [ - "1-based index indicating order this invoice was created in." - ] - }, - "pay_index": { - "type": "u64", - "description": [ - "Incrementing id for when this was paid (**status** *paid* only)." - ] - }, - "amount_received_msat": { - "type": "msat", - "description": [ - "Amount actually received (**status** *paid* only)." - ] - }, - "paid_at": { - "type": "u64", - "description": [ - "UNIX timestamp of when invoice was paid (**status** *paid* only)." - ] - }, - "paid_outpoint": { - "type": "object", - "description": [ - "Outpoint this invoice was paid with (**status** *paid* only)." - ], - "added": "v23.11", - "additionalProperties": false, - "required": [ - "txid", - "outnum" - ], - "properties": { - "txid": { - "added": "v23.11", - "type": "txid", - "description": [ - "ID of the transaction that paid the invoice (**status** *paid* only)." - ] - }, - "outnum": { - "added": "v23.11", - "type": "u32", - "description": [ - "The 0-based output number of the transaction that paid the invoice (**status** *paid* only)." - ] - } + "rpc": "commando-blacklist", + "title": "Command to prevent a rune from working", + "description": [ + "The **commando-blacklist** RPC command allows you to effectively revoke the rune you have created (and any runes derived from that rune with additional restictions). Attempting to use these runes will be resulted in a `Blacklisted rune` error message.", + "", + "All runes created by commando have a unique sequential id within them and can be blacklisted in ranges for efficiency. The command always returns the blacklisted ranges on success. If no parameters are specified, no changes have been made. If start specified without end, that single rune is blacklisted. If end is also specified, every rune from start till end inclusive is blacklisted." + ], + "request": { + "required": [], + "properties": { + "start": { + "type": "u64", + "description": [ + "First rune unique id to blacklist." + ] + }, + "end": { + "type": "u64", + "description": [ + "Final rune unique id to blacklist (defaults to start)." + ] } }, - "payment_preimage": { - "type": "secret", - "description": [ - "The proof of payment: SHA256 of this **payment_hash**." - ] - }, - "local_offer_id": { - "type": "hex", - "description": [ - "The *id* of our offer which created this invoice (**experimental-offers** only)." - ], - "maxLength": 64, - "minLength": 64 - }, - "invreq_payer_note": { - "type": "string", - "description": [ - "The optional *invreq_payer_note* from invoice_request which created this invoice (**experimental-offers** only)." + "dependentUpon": { + "start": [ + "end" ] } }, - "pre_return_value_notes": [ - "(Note: the return format is the same as lightning-listinvoices(7))." - ] - }, - "errors": [ - "On failure, an error is returned and no invoice is created. If the lightning process fails before responding, the caller should use lightning-listinvoices(7) to query whether this invoice was created or not.", - "", - "The following error codes may occur:", - "", - "- -1: Catchall nonspecific error.", - "- 900: An invoice with the given *label* already exists." - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-invoice(7)", - "lightning-listinvoices(7)", - "lightning-delinvoice(7)", - "lightning-getroute(7)", - "lightning-sendpay(7)", - "lightning-offer(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-createonion.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "createonion", - "title": "Low-level command to create a custom onion", - "description": [ - "The **createonion** RPC command allows the caller to create a custom onion with custom payloads at each hop in the route. A custom onion can be used to implement protocol extensions that are not supported by Core Lightning directly." - ], - "request": { - "required": [ - "hops", - "assocdata" - ], - "properties": { - "hops": { - "type": "array", - "description": [ - "A JSON list of dicts, each specifying a node and the payload destined for that node." - ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "pubkey", - "payload" + "response": { + "required": [ + "blacklist" + ], + "properties": { + "blacklist": { + "type": "array", + "description": [ + "The resulting blacklist ranges after the command." ], - "properties": { - "pubkey": { - "type": "pubkey", - "description": [ - "Node pubkey." - ] - }, - "payload": { - "type": "hex", - "description": [ - "Payload to be sent to the node." - ] + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "start", + "end" + ], + "properties": { + "start": { + "type": "u64", + "description": [ + "Unique id of first rune in this blacklist range." + ] + }, + "end": { + "type": "u64", + "description": [ + "Unique id of last rune in this blacklist range." + ] + } } } } - }, - "assocdata": { - "type": "hex", - "description": [ - "The associated data that the onion should commit to. If the onion is to be used to send a payment later it MUST match the `payment_hash` of the payment in order to be valid." - ] - }, - "session_key": { - "type": "secret", - "description": [ - "Can be used to specify a secret that is used to generate the shared secrets used to encrypt the onion for each hop. It should only be used for testing or if a specific shared secret is important. If not specified it will be securely generated internally, and the shared secrets will be returned." - ] - }, - "onion_size": { - "type": "u16", - "description": [ - "A size different from the default payment onion (1300 bytes). May be used for custom protocols like trampoline routing." - ] } - } - }, - "response": { - "required": [ - "onion", - "shared_secrets" - ], - "properties": { - "onion": { - "type": "hex", - "description": [ - "The onion packet (*onion_size* bytes)." - ] - }, - "shared_secrets": { - "type": "array", - "description": [ - "One shared secret for each node in the *hops* parameter." - ], - "items": { - "type": "secret", - "description": [ - "The shared secret with this hop." + }, + "json_example": [ + { + "request": { + "id": "example:commando-blacklist#1", + "method": "commando-blacklist", + "params": { + "start": 2 + } + }, + "response": { + "blacklist": [ + { + "start": 2, + "end": 2 + } ] } - } - } - }, - "example_usage": [ - "The following is an example of a 3 hop onion:", - "", - "```json", - "[", - " {", - " \"pubkey\": \"022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59\",", - " \"payload\": \"11020203e904017b06080000670000010001\"", - " }, {", - " \"pubkey\": \"035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d\",", - " \"payload\": \"11020203e804017506080000670000030001\"", - " }, {", - " \"pubkey\": \"0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199\",", - " \"payload\": \"07020203e8040175\"", - " }", - "]", - "```", - "", - "The *hops* parameter is very similar to the result from `getroute` however it needs to be modified slightly. The following is the `getroute` response from which the above *hops* parameter was generated:", - "", - "```json", - "[", - " {", - " \"id\": \"022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59\",", - " \"channel\": \"103x2x1\",", - " \"direction\": 1,", - " \"msatoshi\": 1002,", - " \"amount_msat\": \"1002msat\",", - " \"delay\": 21,", - " }, {", - " \"id\": \"035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d\",", - " \"channel\": \"103x1x1\",", - " \"direction\": 0,", - " \"msatoshi\": 1001,", - " \"amount_msat\": \"1001msat\",", - " \"delay\": 15,", - " }, {", - " \"id\": \"0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199\",", - " \"channel\": \"103x3x1\",", - " \"direction\": 0,", - " \"msatoshi\": 1000,", - " \"amount_msat\": \"1000msat\",", - " \"delay\": 9,", - " }", - "]", - "```", - "", - " - Notice that the payload in the *hops* parameter is the hex-encoded TLV of the parameters in the `getroute` response, with length prepended as a `bigsize_t`.", - " - Except for the pubkey, the values are shifted left by one, i.e., the 1st payload in `createonion` corresponds to the 2nd set of values from `getroute`.", - " - The final payload is a copy of the last payload sans `channel`", - "", - "These rules are directly derived from the onion construction. Please refer BOLT 04 for details and rationale.", - "", - "The following example is the result of calling *createonion* with the above hops parameter:", - "", - " ```json", - " {", - " \"onion\": \"0003f3f80d2142b953319336d2fe4097[...]6af33fcf4fb113bce01f56dd62248a9e5fcbbfba35c\",", - " \"shared_secrets\": [", - " \"88ce98c73e4d9293ab1797b0a913fe9bca0213a566252047d01b8af6da871f3e\",", - " \"4474d296810e57bd460ef8b83d2e7d288321f8a99ff7686f87384699747bcfc4\",", - " \"2a862e4123e01799a732be487fbce297f7dc7cc1467e410f18369cfee476adc2\"", - " ]", - " }", - "```", - "", - "The `onion` corresponds to 1366 hex-encoded bytes. Each shared secret consists of 32 hex-encoded bytes. Both arguments can be passed on to **sendonion**." - ], - "json_example": [ - { - "request": { - "id": "example:createonion#1", - "method": "createonion", - "params": { - "hops": [ - { - "pubkey": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "payload": "e4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" - }, - { - "pubkey": "0324653eac434488002cc06bbfb7f10fe18991e35f9fe4302dbea6d2353dc0ab1c", - "payload": "e30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" - }, - { - "pubkey": "027f31ebc5462c1fdce1b737ecff52d37d75dea43ce11c74d25aa297165faa2007", - "payload": "e30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" - }, + }, + { + "request": { + "id": "example:commando-blacklist#2", + "method": "commando-blacklist", + "params": { + "start": 5, + "end": 7 + } + }, + "response": { + "blacklist": [ { - "pubkey": "032c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991", - "payload": "e30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "start": 2, + "end": 2 }, { - "pubkey": "02edabbd16b41c8371b92ef2f04c1185b4f03b6dcd52ba9b78d9d7c89c8f221145", - "payload": "e30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "start": 5, + "end": 7 } - ], - "assocdata": "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB", - "onion_size": 1301 + ] } }, - "response": { - "onion": "00034c3f9e11d92555260db3ee4ba0378a645d01c2556451f4289a1d9b43c7afa9a4f9ecc7010dafb26787bb583c514c3b3990d40c8168b1046659d7bc2512d2f1ee0afd2b87c42de2b70102b649634d211b38049593dbb6ed8ee8f93f0b9ff23cd9654c1341137711ce67751d40867cc90c290a9446be2b8a5a43641d4549505b13e807b4240b5b82ffaf22cb534cff01be46db3985ac83b7db465fbd86d4c8d472f60678946c71eca97dd5db732fe5a6d3765e5a5afad72f035207173e7eaaa0da4f0a4540472c7dd269a030428ae586a61b2a70a428055c3848427d2a2e8bd521aadbaf79d56ea39df63c059772e026d57f0b6844c1ab99e936beadf42aaa78193b05f7380e242258deeaa90db316a943d311ef4f2a08f422422c9da454f9666742ad61c6ae003bce83cf6243adf64a728ea50bdaf129ab2ac70e1988a117609cbefc01c884f86b2494349d1067f5cf17760cdab6ae076631693147e8712412d4f0b17cf288b394fd9e29419156ee629966553c2e7598631cbf7493820388eef1ae9f4d2f9da88872e8afbbedb3b46cd7c461cbe4c5491dc6f4a68bc244584bc79b1bb227c869fae16dab4b16412523c984d3ed2b872f63b95a62f66563d2b03c3d1b5fff0290411b293569ce8435b96b447be776b49395a8d94f48cb2f7699a38e8de58d6fff04075d226dcac07668512b6d2c20d4c49d03ad300a52769e4ebbacf97378633126958df1817effc12fd679723123df244fd9b5421f8a2aedb9a8b6fb4049e3a7cae3985059081239bea38351f0c90ed5a0ff45cc492e6ab353e4c13d22ff48912d6ecfda711edfb88dc0767ecfc5dddf8fb0e112a538aeee55c0f73b3b8afc4f40ef3588eabde5b95344a4525adf67841dd67b1db10da180fb346e0bd2958f095d011827063c42361964f8ac2c356d2ec1868a9498dcd6b5915a4df4601c58fcbeb688e14de61300f13183c154b3320cc8e80042a46f22d796f56ff1fdd7e28440c05f14b960c1d0a7c627b09295112bcb635b0e2447a9374fafc4a23ceaf9de4d10b29b2f6cabd7f0c7706cf0404452681d7372d559b644627b2695960deb3b4ae57028e0164b29d5ef9e701d3122b6a5715c502e1dca5252e8c215ed754b01a193041ad9751ed2fff1b55991e256edd6099a38004a367ad097c7caf953da302201263715517f6d32cff57969be994df42fd6cadb649e3c738be798f779aaf4c07cada6bf1e4115b74e2670baf4b1592c70b10a6c043b6606b428b3f79545dc8e9783c876e5402909858f9c604963c37fbc477137c8908e6cfa11ece18c8784a6f25428a5ee1e91d0095fe310d6a91139a7c5c6624bbfcaa15ee847a25b06f57332917f68526a6317f575792e9bcba8576a96bc5859b1f2a00fd8ab08a5ac4ab71833b0b711d1f120cbdb374bcedcdcbeba3806644f5082ec737a945221f5d99562fcbb02a43beeafb16ceecd4e35f06a04c9ff9f4f33725ab62cf22c36650280e4cfb9e150a2c4ebee7785108522e8ecb4682d2d751168e7597299346c3a5e885e36eda66b9a1112997111135767972d771b02c1a36c1d1fb1ce539ecfb98e9e1d8f8fdbf89aec28ad34ff5c00c1a4a8c59848dc8b64c0e65f6f10122e60b4adc1cfc602f49d6cfbdd54be6b0951d3f9cafe8cdd0428f9ce6994844e92d8b72d44edda623bad428b398f88643c3904bda16dd15e886ca4ef6ea7f1450744ac38ffce902569d2e9026bcedd6d0ee54aceabda22bf2de72cba89e6c274064619e32a1192cf2d78b56cf497f7785a6d599de9f8383d1f66f47fc385dc569ee1f08ddbbc7f1aeb0a0126fc4020d948dda10255f11e776db7a037059a40fde38a2ee0c0ce49c7f3df175881bf12371fa72fec3fba657107892a97efe41dcc18aeecd99f3e46c33cf42c2a0ba8b75cf000", - "shared_secrets": [ - "ccf2512684e2508cb4a842393757e6040b7d25e29d3a2031f29d00a000af6128", - "d4cec39fe6287d41165bf5c608b0c720a411208a83c64c805a012c86662a2e5a", - "91bc712ebd4a900e05830394ca8b1f1168777ecdd6996029d96ec8838b9903b9", - "93c373dcb14dc36ababa3e0c5c55869a667ca175e09913a98c3be67e6af97e16", - "b2642a5770a6b61ade071fdf69d3ea365cf48434fc2a2c399512778821a33e5c" - ] - } - }, - { - "request": { - "id": "example:createonion#2", - "method": "createonion", - "params": { - "hops": [ + { + "request": { + "id": "example:commando-blacklist#3", + "method": "commando-blacklist", + "params": { + "start": 3, + "end": 4 + } + }, + "response": { + "blacklist": [ { - "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payload": "0cfdb000084869207468657265" + "start": 2, + "end": 7 } - ], - "assocdata": "36bf44cc8d80498b95eb05e36ae5811206d3a1d8b5c8d59bbcad035d386a4de8" + ] } - }, - "response": { - "onion": "0002cdce4bfaa9faa2c060afafe001b80bde07fc670e882c063a80b4738d5f78c9351825c6461cdfcd4fe4144d3b51f63da6351b28dd49c7bfdb0b4f7d8bda4ad0d99699eda39e551084c0a095746c358d1dc6d2eec8082f2aa2f69ae8f61b1f1437ae0ed673078fec6c0510a34058167ad1a34e819a3813d4cf27b2c4917a8c6ca3d70c3381a2a41b4c1b4540adf0e922e25f57d1cfc3064f29cfec4c17244160121975cab59b44c83b4a4905bf7ebfbd308de376334bf86d8aa92c674f7bcfec85680d73e9fee72642c98c603128e358c86e0bc88a60aaebc2637441a57261c61c6be145f00f2fc56164a6495f4b52d3172cb0ef52e91fa0d32a9ae2502d17433bda58d93fbc24a70ec6b5e740952a61404c7370eafe52599c7ee52e77b1cda87c46da98d2ff0d02fe09db5adcb2d2e9bcd083ef58392907b8a21681fa4ea1e4806b4676656457fea000fa504f9b4d159fe8b241266ac91dcc0351053c6dcc1493a6b02bed652cc8b92a8470c98924ebfde6ddc5cf7fd75f6e83a7350642053b70d4834179c30eb56d8c86656cda784daf3b6cd125779bec51099301e3f79f78d85d0454aef8bf5f9058491881b73e99b662b64080cd3eb16fd7f9d9640c18738736cfc15f391232b7df92f46ceb5abf08732ff833e9409ee541d7c926f7a0fe3e233d3eee4a63b65ab23b7c835b7cdd809ddfac8abb1df471fa66a54092815aa41e6fc1a026b86c5675d39c4e8c5c4b4acd48534165239f5634b9e828a7f9df94efcd2a39045efdee4d2f006a63ae828e6e90e3610c522085da6e0198141d6e501d83aba32057f4e59f9b7dfb0bf949c5ef91917cb54561d45a9e7ead049c57deb62d14ba6e18f5d7b0fb9f15e97bf5bd9f909f99c86c787357946654b87c489d34245d07fbb72119166e338b608a4178b452695235dd96bf7fd338e29a9f054ec1a63a442e12602d2329834297f6a197d8a377d608f402f0bcc936f45f33c8d2f9d40e5aef41816dd883add81ca20f1e0631457fe00aa2bd75c9165ffcd96c100c1db83a53aeee23d59f2a542ee3ba39ba62298ddfbd9ecfafd6b5d2121eb003ee23a2ebb8c6b6b687f42492c962510c5acf5231ff96635eba37354559ba39b042d9b6883cac662f418d7c62f9908b2a67964af5e5471804f7684e0d582b8bfec99816bb3442cca1d1fe4efd75d573ebf09fa9cad811063864fb14be4a7768ec2ddb118a77969e986c6584c4b20f8622941ca73d73562857d36e17a46a68d6e10147aaefff1ffb9809f0652a5f760148ed33550661b63c8176d5679e701c221d8a49d4062eb04010ea74cc1132fbeb8934c6e582ba2a16162b7e9171f95bce4ec3e339e70c781f95aaca406cd718b74397658fdefdd093486664be7ed13efa437012f1f57f9f1f4fb4eef7501ccf0e0ac4edc01fde138038c4dd65cb5c3291ad02a6728d6761b1afa35d49bd6ef117012bdd9bd6ee8a175620feb2249aa18d6175351b4bfc2b2b4fd57ff52f5969b109aa9b6cb2cde8f350917c0da2da1bc3d52eb0c7e6080b8f69c5783f2ed26feceb05ba4e7ed66676041d03d0acd3dd6343a85ac0b9c36f9640ddd0db884822f98dc42ea7911a6938dc14ba19d3d25a2b2f82794a2b5dd751dc856d7a9ccdb2d351a0b84e7030fa925ac949a37594f3aa2ba28ae5155b0aaac9c6820b8888d0b8a9db148513b9e3dbde68333ac30a0720289b6a0145d88629d49e76a6d3538330c5aececc9d54127b0a5a0e92d5a5a73beb71132c208b589cab61d53ed357c907929198c559426ae729b374a803dd3321a45ccca39efd39eddaba6e79a2f8911bdf74e18733dc7efc51132b5608d97fd2d0f22fa8961de04cdf6d0dbfbab21e362e7abaef3976f993088aa97ed3f1f4bcf3fffb012f583558bd2f15face9cba20b3e6754b70", - "shared_secrets": [ - "3f53c03f98eb83db88ff97c2c4004051ce23265ed2414a7aebf7a3e7078839ab" - ] - } - } - ], - "author": [ - "Christian Decker <> is mainly responsible." - ], - "see_also": [ - "lightning-sendonion(7)", - "lightning-getroute(7)" - ], - "resources": [ - "Main web site: ", - "", - "[BOLT 04](https://github.com/lightning/bolts/blob/master/04-onion-routing.md)" - ] - }, - "lightning-createrune.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.08", - "rpc": "createrune", - "title": "Command to Create/Update Rune for Authorizing Remote Peer Access", - "description": [ - "The **createrune** RPC command creates a base64 string called a *rune* which can be used to access commands on this node. Each *rune* contains a unique id (a number starting at 0), and can have restrictions inside it. Nobody can remove restrictions from a rune: if you try, the rune will be rejected. There is no limit on how many runes you can issue; the node simply decodes and checks them as they are received.", - "", - "Oh, I almost forgot. Runes can also be invoked like in ancient times with the **invokerune** command. Feel the magical powers of a rune by invoking it." - ], - "request": { - "required": [], - "properties": { - "rune": { - "type": "string", - "description": [ - "If supplied, the restrictions are simple appended to that *rune* (it doesn't need to be a rune belonging to this node). If not supplied, a new *rune* is constructed, with a new unique id." - ] - }, - "restrictions": { - "description": [ - "It can be the string `readonly`, or an array of restrictions.", - "Each restriction is an array of one or more alternatives, such as \"method is listpeers\", or \"method is listpeers OR time is before 2023\"." - ], - "oneOf": [ - { - "type": "array", - "description": [ - "Alternatives use a simple language to examine the command which is being run:", - " * time: the current UNIX time, e.g. \"time<1656759180\".", - " * id: the node_id of the peer, e.g. \"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\".", - " * method: the command being run, e.g. \"method=withdraw\".", - " * per: how often the rune can be used, with suffix \"sec\" (default), \"min\", \"hour\", \"day\" or \"msec\", \"usec\" or \"nsec\". e.g. \"per=5sec\".", - " * rate: the rate limit, per minute, e.g. \"rate=60\" is equivalent to \"per=1sec\".", - " * pnum: the number of parameters. e.g. \"pnum<2\".", - " * pnameX: the parameter named X e.g. \"pnamedestination=1RustyRX2oai4EYYDpQGWvEL62BBGqN9T\". NOTE: until v24.05, X had to remove underscores from the parameter name (e.g. `pnameamount_msat` had to be specified as `pnameamountmsat`) but that is now fixed.", - " * parrN: the N'th parameter. e.g. \"parr0=1RustyRX2oai4EYYDpQGWvEL62BBGqN9T\".", - " * pinvX_N: parse the parameter X as an invoice (bolt11 or bolt12) and extract field N for comparison. Fails if parameter X is not present, does not parse, or N is not one of the following field names:", - " * amount", - " * description", - " * node" - ], - "items": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "type": "string", - "enum": [ - "readonly" - ], - "description": [ - "A rune which allows most *get* and *list* commands, and the *summary* command." - ] - } - ] } - } - }, - "response": { - "required": [ - "rune", - "unique_id" ], - "properties": { - "rune": { - "type": "string", - "description": [ - "The resulting rune." - ] - }, - "unique_id": { - "type": "string", - "description": [ - "The id of this rune: this is set at creation and cannot be changed (even as restrictions are added)." - ] - }, - "warning_unrestricted_rune": { - "type": "string", - "description": [ - "A warning shown when runes are created with powers that could drain your node." - ] - } - } + "author": [ + "Shahana Farooqui <> is mainly responsible." + ], + "see_also": [ + "lightning-commando-listrunes(7)" + ], + "resources": [ + "Main web site: " + ] }, - "restriction_format": [ - "Restrictions are one or more alternatives. Each alternative is *name* *operator* *value*. The valid names are shown above.", - "", - "Note that if a value contains `\\`, it must be preceeded by another `\\` to form valid JSON:", - "* `=`: passes if equal ie. identical. e.g. `method=withdraw`", - "* `/`: not equals, e.g. `method/withdraw`", - "* `^`: starts with, e.g. `id^024b9a1fa8e006f1e3937f`", - "* `$`: ends with, e.g. `id$381df1cc449605`.", - "* `~`: contains, e.g. `id~006f1e3937f65f66c40`.", - "* `<`: is a decimal integer, and is less than. e.g. `time<1656759180`", - "* `>`: is a decimal integer, and is greater than. e.g. `time>1656759180`", - "* `{`: preceeds in alphabetical order (or matches but is shorter),", - " e.g. `id{02ff`.", - "* `}`: follows in alphabetical order (or matches but is longer),", - " e.g. `id}02ff`.", - "* `#`: a comment, ignored, e.g. `dumb example#`.", - "* `!`: only passes if the *name* does *not* exist. e.g. `pnamedestination!`.", - "Every other operator except `#` fails if *name* does not exist!" - ], - "example_usage": [ - "This creates a fresh rune which can do anything:", - "", - "```shell", - "$ lightning-cli commando-rune", - "{", - " \"rune\": \"KUhZzNlECC7pYsz3QVbF1TqjIUYi3oyESTI7n60hLMs9MA==\",", - " \"unique_id\": \"0\"", - "}", - "```", - "We can add restrictions to that rune, like so:", - "", - "```shell", - "$ lightning-cli commando-rune rune=KUhZzNlECC7pYsz3QVbF1TqjIUYi3oyESTI7n60hLMs9MA== restrictions=readonly", - "{", - " \"rune\": \"NbL7KkXcPQsVseJ9TdJNjJK2KsPjnt_q4cE_wvc873I9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl\",", - " \"unique_id\": \"0\"", - "}", - "```", - "The \"readonly\" restriction is a short-cut for two restrictions:", - "", - "1. `[\"method^list\", \"method^get\", \"method=summary\"]`: You may call list, get or summary.", - "2. `[\"method/listdatastore\"]`: But not listdatastore: that contains sensitive stuff!", - "", - "We can do the same manually, like so:", - "", - "```shell", - "$ lightning-cli commando-rune rune=KUhZzNlECC7pYsz3QVbF1TqjIUYi3oyESTI7n60hLMs9MA== restrictions='[[\"method^list\", \"method^get\", \"method=summary\"],[\"method/listdatastore\"]]'", - "{", - " \"rune\": \"NbL7KkXcPQsVseJ9TdJNjJK2KsPjnt_q4cE_wvc873I9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl\",", - " \"unique_id\": \"0\"", - "}", - "```", - "Let's create a rune which lets a specific peer (024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605) run \"listpeers\" on themselves:", - "", - "```shell", - "$ lightning-cli commando-rune restrictions='[[\"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"],[\"method=listpeers\"],[\"pnum=1\"],[\"pnameid=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\",\"parr0=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"]]'", - "{", - " \"rune\": \"FE8GHiGVvxcFqCQcClVRRiNE_XEeLYQzyG2jmqto4jM9MiZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDV8cGFycjA9MDI0YjlhMWZhOGUwMDZmMWUzOTM3ZjY1ZjY2YzQwOGU2ZGE4ZTFjYTcyOGVhNDMyMjJhNzM4MWRmMWNjNDQ5NjA1\",", - " \"unique_id\": \"2\"", - "}", - "```", - "This allows `listpeers` with 1 argument (`pnum=1`), which is either by name (`pnameid`), or position (`parr0`). We could shorten this in several ways: either allowing only positional or named parameters, or by testing the start of the parameters only. Here's an example which only checks the first 9 bytes of the `listpeers` parameter:", - "", - "```shell", - "$ lightning-cli commando-rune restrictions='[[\"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"],[\"method=listpeers\"],[\"pnum=1\"],[\"pnameid^024b9a1fa8e006f1e393\", \"parr0^024b9a1fa8e006f1e393\"]'", - " {", - " \"rune\": \"fTQnfL05coEbiBO8SS0cvQwCcPLxE9c02pZCC6HRVEY9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5Mw==\",", - " \"unique_id\": \"3\"", - "}", - "```", - "Before we give this to our peer, let's add two more restrictions: that it only be usable for 24 hours from now (`time<`), and that it can only be used twice a minute (`rate=2`). `date +%s` can give us the current time in seconds:", - "", - "```shell", - "$ lightning-cli commando-rune rune=fTQnfL05coEbiBO8SS0cvQwCcPLxE9c02pZCC6HRVEY9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5Mw== restrictions='[[\"time<'$(($(date +%s) + 24*60*60))'\",\"rate=2\"]]'", - "{", - " \"rune\": \"tU-RLjMiDpY2U0o3W1oFowar36RFGpWloPbW9-RuZdo9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5MyZ0aW1lPDE2NTY5MjA1MzgmcmF0ZT0y\",", - " \"unique_id\": \"3\"", - "}", - "```", - "You can also use lightning-decode(7) to examine runes you have been given:", - "", - "```shell", - "$ lightning-cli decode tU-RLjMiDpY2U0o3W1oFowar36RFGpWloPbW9-RuZdo9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5MyZ0aW1lPDE2NTY5MjA1MzgmcmF0ZT0y", - "{", - " \"type\": \"rune\",", - " \"unique_id\": \"3\",", - " \"string\": \"b54f912e33220e9636534a375b5a05a306abdfa4451a95a5a0f6d6f7e46e65da:=3&id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605&method=listpeers&pnum=1&pnameid^024b9a1fa8e006f1e393|parr0^024b9a1fa8e006f1e393&time<1656920538&rate=2\",", - " \"restrictions\": [", - " {", - " \"alternatives\": [", - " \"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"", - " ],", - " \"summary\": \"id (of commanding peer) equal to '024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605'\"", - " },", - " {", - " \"alternatives\": [", - " \"method=listpeers\"", - " ],", - " \"summary\": \"method (of command) equal to 'listpeers'\"", - " },", - " {", - " \"alternatives\": [", - " \"pnum=1\"", - " ],", - " \"summary\": \"pnum (number of command parameters) equal to 1\"", - " },", - " {", - " \"alternatives\": [", - " \"pnameid^024b9a1fa8e006f1e393\",", - " \"parr0^024b9a1fa8e006f1e393\"", - " ],", - " \"summary\": \"pnameid (object parameter 'id') starts with '024b9a1fa8e006f1e393' OR parr0 (array parameter #0) starts with '024b9a1fa8e006f1e393'\"", - " },", - " {", - " \"alternatives\": [", - " \"time<1656920538\"", - " ],", - " \"summary\": \"time (in seconds since 1970) less than 1656920538 (approximately 19 hours 18 minutes from now)\"", - " },", - " {", - " \"alternatives\": [", - " \"rate=2\"", - " ],", - " \"summary\": \"rate (max per minute) equal to 2\"", - " }", - " ],", - " \"valid\": true", - "}", - "```" - ], - "sharing_runes": [ - "Because anyone can add a restriction to a rune, you can always turn a normal rune into a read-only rune, or restrict access for 30 minutes from the time you give it to someone. Adding restrictions before sharing runes is best practice.", - "", - "If a rune has a ratelimit, any derived rune will have the same id, and thus will compete for that ratelimit. You might want to consider adding a tighter ratelimit to a rune before sharing it, so you will keep the remainder. For example, if you rune has a limit of 60 times per minute, adding a limit of 5 times per minute and handing that rune out means you can still use your original rune 55 times per minute." - ], - "json_example": [ - { - "request": { - "id": "example:createrune#1", - "method": "createrune", - "params": { - "restrictions": [ - [ - "method/getinfo" - ] + "lightning-commando-listrunes.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.05", + "deprecated": [ + "v23.08", + "v24.05" + ], + "rpc": "commando-listrunes", + "title": "Command to list previously generated runes", + "description": [ + "The **commando-listrunes** RPC command either lists runes that we stored as we generate them (see lightning-commando-rune(7)) or decodes the rune given on the command line.", + "", + "NOTE: Runes generated prior to v23.05 were not stored, so will not appear in this list." + ], + "request": { + "required": [], + "properties": { + "rune": { + "type": "string", + "description": [ + "Optional rune to list." ] } - }, - "response": { - "rune": "S5f-BKt3rR-cvJmujdpDCUQm_XLahfB4iQuDlwqMJiQ9MCZtZXRob2QvZ2V0aW5mbw==", - "unique_id": "0" } }, - { - "request": { - "id": "example:createrune#2", - "method": "createrune", - "params": { - "restrictions": "readonly" + "response": { + "required": [ + "runes" + ], + "properties": { + "runes": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "rune", + "unique_id", + "restrictions", + "restrictions_as_english" + ], + "properties": { + "rune": { + "type": "string", + "description": [ + "Base64 encoded rune." + ] + }, + "unique_id": { + "type": "string", + "description": [ + "Unique id assigned when the rune was generated; this is always a u64 for commando runes." + ] + }, + "restrictions": { + "type": "array", + "description": [ + "The restrictions on what commands this rune can authorize." + ], + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "alternatives", + "english" + ], + "properties": { + "alternatives": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "fieldname", + "value", + "condition", + "english" + ], + "properties": { + "fieldname": { + "type": "string", + "description": [ + "The field this restriction applies to; see commando-rune(7)." + ] + }, + "value": { + "type": "string", + "description": [ + "The value accepted for this field." + ] + }, + "condition": { + "type": "string", + "description": [ + "The way to compare fieldname and value." + ] + }, + "english": { + "type": "string", + "description": [ + "English readable description of this alternative." + ] + } + } + } + }, + "english": { + "type": "string", + "description": [ + "English readable summary of alternatives above." + ] + } + } + } + }, + "restrictions_as_english": { + "type": "string", + "description": [ + "English readable description of the restrictions array above." + ] + }, + "stored": { + "type": "boolean", + "enum": [ + false + ], + "description": [ + "This is false if the rune does not appear in our datastore (only possible when `rune` is specified)." + ] + }, + "blacklisted": { + "type": "boolean", + "enum": [ + true + ], + "description": [ + "The rune has been blacklisted; see commando-blacklist(7)." + ] + }, + "last_used": { + "type": "number", + "description": [ + "The last time this rune was successfully used." + ], + "added": "23.11" + }, + "our_rune": { + "type": "boolean", + "enum": [ + false + ], + "description": [ + "This is not a rune for this node (only possible when `rune` is specified)." + ] + } + } + } } - }, - "response": { - "rune": "oVkzoiQ67VCU1h_aRjPqCeWktGX54ARDsqqQgDL-uMs9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl", - "unique_id": "1" } }, - { - "request": { - "id": "example:createrune#3", - "method": "createrune", - "params": [ - "enX0sTpHB8y1ktyTAF80CnEvGetG340Ne3AGItudBS49NCZwbnVtPTA=", - [ - [ - "rate=3" - ] + "json_example": [ + { + "request": { + "id": "example:commando-listrunes#1", + "method": "commando-listrunes", + "params": "{}" + }, + "response": { + "runes": [ + { + "rune": "OSqc7ixY6F-gjcigBfxtzKUI54uzgFSA6YfBQoWGDV89MA==", + "unique_id": "0", + "restrictions": [], + "restrictions_as_english": "" + }, + { + "rune": "Am3W_wI0PRn4qVNEsJ2iInHyFPQK8wfdqEXztm8-icQ9MA==", + "stored": false, + "our_rune": false, + "unique_id": "1", + "restrictions": [], + "restrictions_as_english": "" + } ] - ] + } }, - "response": { - "rune": "_h2eKjoK7ITAF-JQ1S5oum9oMQesrz-t1FR9kDChRB49NCZwbnVtPTAmcmF0ZT0z", - "unique_id": "2" - } - } - ], - "author": [ - "Rusty Russell <> wrote the original Python commando.py plugin, the in-tree commando plugin, and this manual page.", - "", - "Shahana Farooqui <> is mainly responsible for migrating commando-rune to createrune." - ], - "see_also": [ - "lightning-commando-rune(7)", - "lightning-checkrune(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-datastore.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "datastore", - "title": "Command for storing (plugin) data", - "description": [ - "The **datastore** RPC command allows plugins to store data in the Core Lightning database, for later retrieval." - ], - "request": { - "required": [ - "key" - ], - "properties": { - "key": { - "description": [ - "A key can either have children or a value, never both: parents are created and removed automatically." - ], - "oneOf": [ - { - "type": "array", - "description": [ - "An array of values to form a hierarchy (though a single value is treated as a one-element array). Using the first element of the key as the plugin name (e.g. `[ 'summary' ]`) is recommended." - ], - "items": { - "type": "string" - } - }, - { - "type": "string" + { + "request": { + "id": "example:commando-listrunes#2", + "method": "commando-listrunes", + "params": { + "rune": "Am3W_wI0PRn4qVNEsJ2iInHyFPQK8wfdqEXztm8-icQ9MA==" } - ] - }, - "string": { - "type": "string", - "description": [ - "Data to be saved in string format." - ] - }, - "hex": { - "type": "hex", - "description": [ - "Data to be saved in hex format." - ] + }, + "response": { + "runes": [ + { + "rune": "Am3W_wI0PRn4qVNEsJ2iInHyFPQK8wfdqEXztm8-icQ9MA==", + "stored": false, + "our_rune": false, + "unique_id": "1", + "restrictions": [], + "restrictions_as_english": "" + } + ] + } }, - "mode": { - "type": "string", - "description": [ - "Write mode to determine how the record is updated:", - " * `must-create`: fails if it already exists.", - " * `must-replace`: fails if it doesn't already exist.", - " * `create-or-replace`: never fails.", - " * `must-append`: must already exist, append this to what's already there.", - " * `create-or-append`: append if anything is there, otherwise create." - ], - "enum": [ - "must-create", - "must-replace", - "create-or-replace", - "must-append", - "create-or-append" - ], - "default": "`must-create`" - }, - "generation": { - "type": "u64", - "description": [ - "If specified, means that the update will fail if the previously-existing data is not exactly that generation. This allows for simple atomicity. This is only legal with *mode* `must-replace` or `must-append`." - ] + { + "request": { + "id": "example:commando-listrunes#3", + "method": "commando-listrunes", + "params": { + "rune": "m_tyR0qqHUuLEbFJW6AhmBg-9npxVX2yKocQBFi9cvY9MyZpZF4wMjJkMjIzNjIwYTM1OWE0N2ZmNyZtZXRob2Q9bGlzdHBlZXJzJnBuYW1lbGV2ZWwhfHBuYW1lbGV2ZWwvaW8mcGFycjEhfHBhcnIxL2lv" + } + }, + "response": { + "runes": [ + { + "rune": "m_tyR0qqHUuLEbFJW6AhmBg-9npxVX2yKocQBFi9cvY9MyZpZF4wMjJkMjIzNjIwYTM1OWE0N2ZmNyZtZXRob2Q9bGlzdHBlZXJzJnBuYW1lbGV2ZWwhfHBuYW1lbGV2ZWwvaW8mcGFycjEhfHBhcnIxL2lv", + "stored": false, + "unique_id": "3", + "restrictions": [ + { + "alternatives": [ + { + "fieldname": "id", + "value": "022d223620a359a47ff7", + "condition": "^", + "english": "id starts with 022d223620a359a47ff7" + } + ], + "english": "id starts with 022d223620a359a47ff7" + }, + { + "alternatives": [ + { + "fieldname": "method", + "value": "listpeers", + "condition": "=", + "english": "method equal to listpeers" + } + ], + "english": "method equal to listpeers" + }, + { + "alternatives": [ + { + "fieldname": "pnamelevel", + "value": "", + "condition": "!", + "english": "pnamelevel is missing" + }, + { + "fieldname": "pnamelevel", + "value": "io", + "condition": "/", + "english": "pnamelevel unequal to io" + } + ], + "english": "pnamelevel is missing OR pnamelevel unequal to io" + }, + { + "alternatives": [ + { + "fieldname": "parr1", + "value": "", + "condition": "!", + "english": "parr1 is missing" + }, + { + "fieldname": "parr1", + "value": "io", + "condition": "/", + "english": "parr1 unequal to io" + } + ], + "english": "parr1 is missing OR parr1 unequal to io" + } + ], + "restrictions_as_english": "id starts with 022d223620a359a47ff7 AND method equal to listpeers AND pnamelevel is missing OR pnamelevel unequal to io AND parr1 is missing OR parr1 unequal to io" + } + ] + } } - } + ], + "author": [ + "Shahana Farooqui <> is mainly responsible." + ], + "see_also": [ + "lightning-commando-rune(7)", + "lightning-commando-blacklist(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "key" + "lightning-commando-rune.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "deprecated": [ + "v23.08", + "v23.05" ], - "properties": { - "key": { - "type": "array", - "items": { + "rpc": "commando-rune", + "title": "Command to Authorize Remote Peer Access", + "description": [ + "The **commando-rune** RPC command creates a base64 string called a *rune* which can be used to access commands on this node. Each *rune* contains a unique id (a number starting at 0), and can have restrictions inside it. Nobody can remove restrictions from a rune: if you try, the rune will be rejected. There is no limit on how many runes you can issue; the node simply decodes and checks them as they are received (we do store them for lightning-commando- listrunes(7) however)." + ], + "request": { + "required": [], + "properties": { + "rune": { "type": "string", "description": [ - "Part of the key added to the datastore." + "If supplied, the restrictions are simple appended to that *rune* (it doesn't need to be a rune belonging to this node). If not supplied, a new *rune* is constructed, with a new unique id." ] - } - }, - "generation": { - "type": "u64", - "description": [ - "The number of times this has been updated." - ] - }, - "hex": { - "type": "hex", - "description": [ - "The hex data which has been added to the datastore." - ] - }, - "string": { - "type": "string", - "description": [ - "The data as a string, if it's valid utf-8." - ] - } - } - }, - "errors": [ - "The following error codes may occur:", - "", - "- 1202: The key already exists (and mode said it must not)", - "- 1203: The key does not exist (and mode said it must)", - "- 1204: The generation was wrong (and generation was specified)", - "- 1205: The key has children already.", - "- 1206: One of the parents already exists with a value.", - "- -32602: invalid parameters" - ], - "json_example": [ - { - "request": { - "id": "example:datastore#1", - "method": "datastore", - "params": { - "key": [ - "test_libplugin", - "name" + }, + "restrictions": { + "description": [ + "It can be the string `readonly`, or an array of restrictions.", + "Each restriction is an array of one or more alternatives, such as \"method is listpeers\", or \"method is listpeers OR time is before 2023\"." ], - "string": "foobar", - "hex": null, - "mode": "must-replace", - "generation": null + "oneOf": [ + { + "type": "array", + "description": [ + "Alternatives use a simple language to examine the command which is being run:", + " * time: the current UNIX time, e.g. \"time<1656759180\".", + " * id: the node_id of the peer, e.g. \"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\".", + " * method: the command being run, e.g. \"method=withdraw\".", + " * per: how often the rune can be used, with suffix \"sec\" (default), \"min\", \"hour\", \"day\" or \"msec\", \"usec\" or \"nsec\". e.g. \"per=5sec\".", + " * rate: the rate limit, per minute, e.g. \"rate=60\" is equivalent to \"per=1sec\".", + " * pnum: the number of parameters. e.g. \"pnum<2\".", + " * pnameX: the parameter named X (with any punctuation like `_` removed). e.g. \"pnamedestination=1RustyRX2oai4EYYDpQGWvEL62BBGqN9T\".", + " * parrN: the N'th parameter. e.g. \"parr0=1RustyRX2oai4EYYDpQGWvEL62BBGqN9T\"." + ], + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "string", + "enum": [ + "readonly" + ], + "description": [ + "A rune which allows most *get* and *list* commands, and the *summary* command." + ] + } + ] } - }, - "response": { - "key": [ - "test_libplugin", - "name" - ], - "generation": 1, - "hex": "666f6f626172", - "string": "foobar" } }, - { - "request": { - "id": "example:datastore#2", - "method": "datastore", - "params": { - "key": "somekey", - "string": null, - "hex": "61", - "mode": "create-or-append", - "generation": null + "response": { + "required": [ + "rune", + "unique_id" + ], + "properties": { + "rune": { + "type": "string", + "description": [ + "The resulting rune." + ] + }, + "unique_id": { + "type": "string", + "description": [ + "The id of this rune: this is set at creation and cannot be changed (even as restrictions are added)." + ] + }, + "warning_unrestricted_rune": { + "type": "string", + "description": [ + "A warning shown when runes are created with powers that could drain your node." + ] } - }, - "response": { - "key": [ - "somekey" - ], - "generation": 3, - "hex": "736f6d6564617461", - "string": "somedata" } }, - { - "request": { - "id": "example:datastore#3", - "method": "datastore", - "params": { - "key": [ - "a", - "d", - "e", - "f", - "g" - ], - "string": "somedatatostoreinthedatastore", - "hex": null, - "mode": null, - "generation": null + "restriction_format": [ + "Restrictions are one or more alternatives. Each alternative is *name* *operator* *value*. The valid names are shown above.", + "", + "Note that if a value contains `\\`, it must be preceeded by another `\\` to form valid JSON:", + "* `=`: passes if equal ie. identical. e.g. `method=withdraw`", + "* `/`: not equals, e.g. `method/withdraw`", + "* `^`: starts with, e.g. `id^024b9a1fa8e006f1e3937f`", + "* `$`: ends with, e.g. `id$381df1cc449605`.", + "* `~`: contains, e.g. `id~006f1e3937f65f66c40`.", + "* `<`: is a decimal integer, and is less than. e.g. `time<1656759180`", + "* `>`: is a decimal integer, and is greater than. e.g. `time>1656759180`", + "* `{`: preceeds in alphabetical order (or matches but is shorter),", + " e.g. `id{02ff`.", + "* `}`: follows in alphabetical order (or matches but is longer),", + " e.g. `id}02ff`.", + "* `#`: a comment, ignored, e.g. `dumb example#`.", + "* `!`: only passes if the *name* does *not* exist. e.g. `pnamedestination!`.", + "Every other operator except `#` fails if *name* does not exist!" + ], + "example_usage": [ + "This creates a fresh rune which can do anything:", + "", + "```shell", + "$ lightning-cli commando-rune", + "{", + " \"rune\": \"KUhZzNlECC7pYsz3QVbF1TqjIUYi3oyESTI7n60hLMs9MA==\",", + " \"unique_id\": \"0\"", + "}", + "```", + "We can add restrictions to that rune, like so:", + "", + "```shell", + "$ lightning-cli commando-rune rune=KUhZzNlECC7pYsz3QVbF1TqjIUYi3oyESTI7n60hLMs9MA== restrictions=readonly", + "{", + " \"rune\": \"NbL7KkXcPQsVseJ9TdJNjJK2KsPjnt_q4cE_wvc873I9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl\",", + " \"unique_id\": \"0\"", + "}", + "```", + "The \"readonly\" restriction is a short-cut for two restrictions:", + "", + "1. `[\"method^list\", \"method^get\", \"method=summary\"]`: You may call list, get or summary.", + "2. `[\"method/listdatastore\"]`: But not listdatastore: that contains sensitive stuff!", + "", + "We can do the same manually, like so:", + "", + "```shell", + "$ lightning-cli commando-rune rune=KUhZzNlECC7pYsz3QVbF1TqjIUYi3oyESTI7n60hLMs9MA== restrictions='[[\"method^list\", \"method^get\", \"method=summary\"],[\"method/listdatastore\"]]'", + "{", + " \"rune\": \"NbL7KkXcPQsVseJ9TdJNjJK2KsPjnt_q4cE_wvc873I9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl\",", + " \"unique_id\": \"0\"", + "}", + "```", + "Let's create a rune which lets a specific peer (024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605) run \"listpeers\" on themselves:", + "", + "```shell", + "$ lightning-cli commando-rune restrictions='[[\"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"],[\"method=listpeers\"],[\"pnum=1\"],[\"pnameid=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\",\"parr0=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"]]'", + "{", + " \"rune\": \"FE8GHiGVvxcFqCQcClVRRiNE_XEeLYQzyG2jmqto4jM9MiZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDV8cGFycjA9MDI0YjlhMWZhOGUwMDZmMWUzOTM3ZjY1ZjY2YzQwOGU2ZGE4ZTFjYTcyOGVhNDMyMjJhNzM4MWRmMWNjNDQ5NjA1\",", + " \"unique_id\": \"2\"", + "}", + "```", + "This allows `listpeers` with 1 argument (`pnum=1`), which is either by name (`pnameid`), or position (`parr0`). We could shorten this in several ways: either allowing only positional or named parameters, or by testing the start of the parameters only. Here's an example which only checks the first 9 bytes of the `listpeers` parameter:", + "", + "```shell", + "$ lightning-cli commando-rune restrictions='[[\"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"],[\"method=listpeers\"],[\"pnum=1\"],[\"pnameid^024b9a1fa8e006f1e393\", \"parr0^024b9a1fa8e006f1e393\"]'", + " {", + " \"rune\": \"fTQnfL05coEbiBO8SS0cvQwCcPLxE9c02pZCC6HRVEY9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5Mw==\",", + " \"unique_id\": \"3\"", + "}", + "```", + "Before we give this to our peer, let's add two more restrictions: that it only be usable for 24 hours from now (`time<`), and that it can only be used twice a minute (`rate=2`). `date +%s` can give us the current time in seconds:", + "", + "```shell", + "$ lightning-cli commando-rune rune=fTQnfL05coEbiBO8SS0cvQwCcPLxE9c02pZCC6HRVEY9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5Mw== restrictions='[[\"time<'$(($(date +%s) + 24*60*60))'\",\"rate=2\"]]'", + "{", + " \"rune\": \"tU-RLjMiDpY2U0o3W1oFowar36RFGpWloPbW9-RuZdo9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5MyZ0aW1lPDE2NTY5MjA1MzgmcmF0ZT0y\",", + " \"unique_id\": \"3\"", + "}", + "```", + "You can also use lightning-decode(7) to examine runes you have been given:", + "", + "```shell", + "$ lightning-cli decode tU-RLjMiDpY2U0o3W1oFowar36RFGpWloPbW9-RuZdo9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5MyZ0aW1lPDE2NTY5MjA1MzgmcmF0ZT0y", + "{", + " \"type\": \"rune\",", + " \"unique_id\": \"3\",", + " \"string\": \"b54f912e33220e9636534a375b5a05a306abdfa4451a95a5a0f6d6f7e46e65da:=3&id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605&method=listpeers&pnum=1&pnameid^024b9a1fa8e006f1e393|parr0^024b9a1fa8e006f1e393&time<1656920538&rate=2\",", + " \"restrictions\": [", + " {", + " \"alternatives\": [", + " \"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"", + " ],", + " \"summary\": \"id (of commanding peer) equal to '024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605'\"", + " },", + " {", + " \"alternatives\": [", + " \"method=listpeers\"", + " ],", + " \"summary\": \"method (of command) equal to 'listpeers'\"", + " },", + " {", + " \"alternatives\": [", + " \"pnum=1\"", + " ],", + " \"summary\": \"pnum (number of command parameters) equal to 1\"", + " },", + " {", + " \"alternatives\": [", + " \"pnameid^024b9a1fa8e006f1e393\",", + " \"parr0^024b9a1fa8e006f1e393\"", + " ],", + " \"summary\": \"pnameid (object parameter 'id') starts with '024b9a1fa8e006f1e393' OR parr0 (array parameter #0) starts with '024b9a1fa8e006f1e393'\"", + " },", + " {", + " \"alternatives\": [", + " \"time<1656920538\"", + " ],", + " \"summary\": \"time (in seconds since 1970) less than 1656920538 (approximately 19 hours 18 minutes from now)\"", + " },", + " {", + " \"alternatives\": [", + " \"rate=2\"", + " ],", + " \"summary\": \"rate (max per minute) equal to 2\"", + " }", + " ],", + " \"valid\": true", + "}", + "```" + ], + "sharing_runes": [ + "Because anyone can add a restriction to a rune, you can always turn a normal rune into a read-only rune, or restrict access for 30 minutes from the time you give it to someone. Adding restrictions before sharing runes is best practice.", + "", + "If a rune has a ratelimit, any derived rune will have the same id, and thus will compete for that ratelimit. You might want to consider adding a tighter ratelimit to a rune before sharing it, so you will keep the remainder. For example, if you rune has a limit of 60 times per minute, adding a limit of 5 times per minute and handing that rune out means you can still use your original rune 55 times per minute." + ], + "json_example": [ + { + "request": { + "id": "example:commando-rune#1", + "method": "commando-rune", + "params": "{}" + }, + "response": { + "rune": "OSqc7ixY6F-gjcigBfxtzKUI54uzgFSA6YfBQoWGDV89MA==", + "unique_id": "0", + "warning_unrestricted_rune": "WARNING: This rune has no restrictions! Anyone who has access to this rune could drain funds from your node. Be careful when giving this to apps that you don't trust. Consider using the restrictions parameter to only allow access to specific rpc methods." } }, - "response": { - "key": [ - "a", - "d", - "e", - "f", - "g" - ], - "generation": 0, - "hex": "736f6d6564617461746f73746f7265696e7468656461746173746f7265", - "string": "somedatatostoreinthedatastore" - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-listdatastore(7)", - "lightning-deldatastore(7)", - "lightning-datastoreusage(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-datastoreusage.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.11", - "rpc": "datastoreusage", - "title": "Command for listing datastore usage info", - "description": [ - "The **datastoreusage** RPC command allows the caller to fetch the total bytes that are stored under a certain *key* (or from the root), including the size of the *key*.", - "", - "All descendants of the *key* (or root) are taken into account." - ], - "request": { - "required": [], - "properties": { - "key": { - "oneOf": [ - { - "type": "array", - "description": [ - "Key is an array of values (though a single value is treated as a one-element array). Used as the starting point to traverse the datastore." - ], - "items": { - "type": "string" - } - }, - { - "type": "string" + { + "request": { + "id": "example:commando-rune#2", + "method": "commando-rune", + "params": { + "restrictions": "readonly" } - ] - } - } - }, - "response": { - "required": [ - "datastoreusage" - ], - "properties": { - "datastoreusage": { - "type": "object", - "additionalProperties": false, - "required": [ - "key", - "total_bytes" - ], - "properties": { - "key": { - "type": "string", - "added": "v23.11", - "description": [ - "The key from which the database was traversed." + }, + "response": { + "rune": "zm0x_eLgHexaTvZn3Cz7gb_YlvrlYGDo_w4BYlR9SS09MSZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl", + "unique_id": "1" + } + }, + { + "request": { + "id": "example:commando-rune#3", + "method": "commando-rune", + "params": { + "restrictions": [ + [ + "id^022d223620a359a47ff7" + ], + [ + "method=listpeers" + ] ] - }, - "total_bytes": { - "type": "u64", - "added": "v23.11", - "description": [ - "The total bytes that are stored under the *key*, including the all descendants data and the size of the keys themselves." + } + }, + "response": { + "rune": "YPojv9qgHPa3im0eiqRb-g8aRq76OasyfltGGqdFUOU9MyZpZF4wMjJkMjIzNjIwYTM1OWE0N2ZmNyZtZXRob2Q9bGlzdHBlZXJz", + "unique_id": "2" + } + }, + { + "request": { + "id": "example:commando-rune#4", + "method": "commando-rune", + "params": { + "restrictions": [ + [ + "method=pay" + ], + [ + "pnameamountmsat<10000" + ] ] } + }, + "response": { + "rune": "b3hXuEM7Pqzk-C7HUw83xzvHOV7fmuGaWjdo-wHdfg89MCZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", + "unique_id": "3" } } - } + ], + "author": [ + "Rusty Russell <> wrote the original Python commando.py plugin, the in-tree commando plugin, and this manual page.", + "", + "Christian Decker came up with the name \"commando\", which almost excuses his previous adoption of the name \"Eltoo\"." + ], + "see_also": [ + "lightning-commando(7)", + "lightning-decode(7)" + ], + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:datastoreusage#1", - "method": "datastoreusage", + "lightning-commando.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "commando", + "title": "Command to Send a Command to a Remote Peer", + "description": [ + "The **commando** RPC command is a homage to bad 80s movies. It also sends a directly-connected *peer_id* a custom message, containing a request to run *method* (with an optional dictionary of *params*); generally the peer will only allow you to run a command if it has provided you with a *rune* which allows it." + ], + "request": { + "required": [ + "peer_id", + "method" + ], + "properties": { + "peer_id": { + "type": "pubkey", + "description": [ + "Peer to command." + ] + }, + "method": { + "type": "string", + "description": [ + "Method to invoke on peer." + ] + }, "params": { - "key": null - } - }, - "response": { - "datastoreusage": { - "key": "[]", - "total_bytes": 0 + "oneOf": [ + { + "type": "array", + "description": [ + "Array of positional parameters." + ] + }, + { + "type": "object", + "description": [ + "Parameters for method." + ] + } + ] + }, + "rune": { + "type": "string", + "description": [ + "Rune to authorize the command." + ] + }, + "filter": { + "type": "object", + "description": [ + "Filter to peer to apply to any successful result." + ] } } }, - { - "request": { - "id": "example:datastoreusage#2", - "method": "datastoreusage", - "params": { - "key": "a" + "response": { + "required": [], + "properties": {}, + "pre_return_value_notes": [ + "On success, the return depends on the *method* invoked." + ] + }, + "errors": [ + "On failure, one of the following error codes may be returned:", + "", + "- -32600: Usually means peer is not connected", + "- 19535: the local commando plugin discovered an error.", + "- 19536: the remote commando plugin discovered an error.", + "- 19537: the remote commando plugin said we weren't authorized.", + "", + "It can also fail if the peer does not respond, in which case it will simply hang awaiting a response." + ], + "json_example": [ + { + "request": { + "id": "example:commando#1", + "method": "commando", + "params": { + "peer_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "rune": "zm0x_eLgHexaTvZn3Cz7gb_YlvrlYGDo_w4BYlR9SS09MSZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl", + "method": "getinfo", + "params": {} + } + }, + "response": { + "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "alias": "JUNIORBEAM-v23.11-415-gd120eba", + "color": "0266e4", + "num_peers": 1, + "num_pending_channels": 0, + "num_active_channels": 0, + "num_inactive_channels": 0, + "address": [], + "binding": [ + { + "type": "ipv4", + "address": "127.0.0.1", + "port": 42513 + } + ], + "version": "v23.11-415-gd120eba", + "blockheight": 101, + "network": "regtest", + "fees_collected_msat": 0, + "lightning-dir": "/tmp/ltests-7u_8_rtu/test_commando_rune_1/lightning-1/regtest", + "our_features": { + "init": "08a0000a8a5961", + "node": "88a0000a8a5961", + "channel": "", + "invoice": "02000002024100" + } } }, - "response": { - "datastoreusage": { - "key": "[a]", - "total_bytes": 32 - } - } - }, - { - "request": { - "id": "example:datastoreusage#3", - "method": "datastoreusage", - "params": { - "key": [ - "a", - "thisissomelongkeythattriestostore46bytesofdata" + { + "request": { + "id": "example:commando#2", + "method": "commando", + "params": { + "peer_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "rune": "m_tyR0qqHUuLEbFJW6AhmBg-9npxVX2yKocQBFi9cvY9MyZpZF4wMjJkMjIzNjIwYTM1OWE0N2ZmNyZtZXRob2Q9bGlzdHBlZXJzJnBuYW1lbGV2ZWwhfHBuYW1lbGV2ZWwvaW8mcGFycjEhfHBhcnIxL2lv", + "method": "listpeers", + "params": [ + "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "broken" + ] + } + }, + "response": { + "peers": [ + { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "connected": true, + "num_channels": 0, + "netaddr": [ + "127.0.0.1:40119" + ], + "features": "08a0000a8a5961", + "log": [ + { + "type": "SKIPPED", + "num_skipped": 30 + } + ] + } ] } }, - "response": { - "datastoreusage": { - "key": "[a,thisissomelongkeythattriestostore46bytesofdata]", - "total_bytes": 77 + { + "request": { + "id": "example:commando#3", + "method": "commando", + "params": { + "peer_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "rune": "b3hXuEM7Pqzk-C7HUw83xzvHOV7fmuGaWjdo-wHdfg89MCZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", + "method": "pay", + "params": { + "bolt11": "lnbcrt1pja05v6sp5n6gnm380ckkrnhzvytz0hvym0vcf0mlrk586nlp72cq7e2hhhffspp5cwhuvl4jhlqep3st2703z89jp7j6wucm8ytlj7rk9ckk0mv7whysdq5v3jhxcmjd9c8g6t0dceqxqyjw5qcqp99qxpqysgq40udwjtktkry0yyq9408q5vtmj534h88j5nn562lamam0rtfqfu3093t2dhhc63qnqe5maa5jc9ad5pm08q2k2udvp6skw9f6ez9c9qptatlau", + "amount_msat": 9999 + } + } + }, + "response": { + "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "payment_hash": "c3afc67eb2bfc190c60b579f111cb20fa5a7731b3917f978762e2d67ed9e75c9", + "created_at": 1708642714.8110592, + "parts": 1, + "amount_msat": 9999, + "amount_sent_msat": 9999, + "payment_preimage": "17632717785b1a833a296ba1831cb968602872e68881c2f324e06e87979296dc", + "status": "complete" } } - } - ], - "author": [ - "Peter Neuroth <> is mainly responsible." - ], - "see_also": [ - "lightning-datastore(7)", - "lightning-deldatastore(7)", - "lightning-listdatastore(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-decode.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.05", - "rpc": "decode", - "title": "Command for decoding an invoice string (low-level)", - "description": [ - "The **decode** RPC command checks and parses `bolt11`, `bolt12`, `rune` or `emergency_recover`. It may decode other formats in future." - ], - "request": { - "required": [ - "string" ], - "properties": { - "string": { - "type": "string", - "description": [ - "Value to be decoded:", - " * a *bolt11* or *bolt12* string (optionally prefixed by `lightning:` or `LIGHTNING:`) as specified by the BOLT 11 and BOLT 12 specifications.", - " * a *rune* as created by lightning-commando-rune(7).", - " * an *emergency_recover* string generated by hsmtool like `lightning-hsmtool getemergencyrecover `. It holds `emergency.recover` contents and starts with `clnemerg1`." - ] - } - } + "author": [ + "Rusty Russell <> wrote the original Python commando.py plugin, the in-tree commando plugin, and this manual page.", + "", + "Christian Decker came up with the name \"commando\", which almost excuses his previous adoption of the name \"Eltoo\"." + ], + "see_also": [ + "lightning-commando-rune(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "type", - "valid" + "lightning-connect.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "connect", + "title": "Command for connecting to another lightning node", + "description": [ + "The **connect** RPC command establishes a new connection with another node in the Lightning Network.", + "", + "Connecting to a node is just the first step in opening a channel with another node. Once the peer is connected a channel can be opened with lightning-fundchannel(7).", + "", + "If there are active channels with the peer, **connect** returns once all the subdaemons are in place to handle the channels, not just once it's connected." ], - "properties": { - "type": { - "type": "string", - "enum": [ - "bolt12 offer", - "bolt12 invoice", - "bolt12 invoice_request", - "bolt11 invoice", - "rune", - "emergency recover" - ], - "description": [ - "What kind of object it decoded to." - ] - }, - "valid": { - "type": "boolean", - "description": [ - "If this is false, you *MUST* not use the result except for diagnostics!" - ] + "request": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string", + "description": [ + "The target node's public key. As a convenience, *id* may be of the form *id@host* or *id@host:port*. In this case, the *host* and *port* parameters must be omitted. This can fail if your C-lightning node is a fresh install that has not connected to any peers yet (your node has no gossip yet), or if the target *id* is a fresh install that has no channels yet (nobody will gossip about a node until it has one published channel)." + ] + }, + "host": { + "type": "string", + "description": [ + "The peer's hostname or IP address. If *host* is not specified (or doesn't work), the connection will be attempted to an IP belonging to *id* obtained through gossip with other already connected peers. If *host* begins with a `/` it is interpreted as a local path and the connection will be made to that local socket (see **bind-addr** in lightningd-config(5))." + ] + }, + "port": { + "type": "u16", + "description": [ + "The peer's port number. If not specified, the *port* depends on the current network:", + " * bitcoin **mainnet**: 9735.", + " * bitcoin **testnet**: 19735.", + " * bitcoin **signet**: 39735.", + " * bitcoin **regtest**: 19846." + ] + } } }, - "allOf": [ - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "bolt12 offer" - ] - }, - "valid": { - "type": "boolean", - "enum": [ - true - ] - } - } + "response": { + "required": [ + "id", + "features", + "direction", + "address" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "The peer we connected to." + ] + }, + "features": { + "type": "hex", + "description": [ + "BOLT 9 features bitmap offered by peer." + ] + }, + "direction": { + "type": "string", + "enum": [ + "in", + "out" + ], + "description": [ + "Whether they initiated connection or we did." + ] }, - "then": { + "address": { + "type": "object", + "description": [ + "Address information (mainly useful if **direction** is *out*)." + ], + "additionalProperties": true, "required": [ - "offer_id", - "offer_node_id", - "offer_description" + "type" ], - "additionalProperties": false, "properties": { - "type": {}, - "valid": {}, - "offer_id": { - "type": "hex", - "description": [ - "The id we use to identify this offer." - ], - "maxLength": 64, - "minLength": 64 - }, - "offer_chains": { - "type": "array", - "description": [ - "Which blockchains this offer is for (missing implies bitcoin mainnet only)." - ], - "items": { - "type": "hash", - "description": [ - "The genesis blockhash." - ] - } - }, - "offer_metadata": { - "type": "hex", - "description": [ - "Any metadata the creator of the offer includes." - ] - }, - "offer_currency": { + "type": { "type": "string", - "description": [ - "ISO 4217 code of the currency (missing implies Bitcoin)." + "enum": [ + "local socket", + "ipv4", + "ipv6", + "torv2", + "torv3" ], - "maxLength": 3, - "minLength": 3 - }, - "warning_unknown_offer_currency": { - "type": "string", - "description": [ - "The currency code is unknown (so no `currency_minor_unit`)." - ] - }, - "currency_minor_unit": { - "type": "u32", - "description": [ - "The number of decimal places to apply to amount (if currency known)." - ] - }, - "offer_amount": { - "type": "u64", - "description": [ - "The amount in the `offer_currency` adjusted by `currency_minor_unit`, if any." - ] - }, - "offer_amount_msat": { - "type": "msat", - "description": [ - "The amount in bitcoin (if specified, and no `offer_currency`)." - ] - }, - "offer_description": { - "type": "string", - "description": [ - "The description of the purpose of the offer." - ] - }, - "offer_issuer": { - "type": "string", - "description": [ - "The description of the creator of the offer." - ] - }, - "offer_features": { - "type": "hex", - "description": [ - "The feature bits of the offer." - ] - }, - "offer_absolute_expiry": { - "type": "u64", - "description": [ - "UNIX timestamp of when this offer expires." - ] - }, - "offer_quantity_max": { - "type": "u64", "description": [ - "The maximum quantity (or, if 0, means any quantity)." + "Type of connection (*torv2*/*torv3* only if **direction** is *out*)." ] - }, - "offer_paths": { - "type": "array", - "description": [ - "Paths to the destination." - ], - "items": { - "type": "object", + } + }, + "allOf": [ + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "local socket" + ] + } + } + }, + "then": { + "additionalProperties": false, "required": [ - "blinding", - "path" + "socket" ], - "additionalProperties": false, "properties": { - "first_node_id": { - "type": "pubkey", + "type": {}, + "socket": { + "type": "string", "description": [ - "The (presumably well-known) public key of the start of the path." + "Socket filename." ] - }, - "first_scid": { - "added": "v23.05", - "type": "short_channel_id", - "description": "the short channel id of the start of the path (alternative to first_n ode_id)" - }, - "first_scid_dir": { - "added": "v23.05", - "type": "u32", - "description": "which end of the first_scid is the start of the path" - }, - "blinding": { - "type": "pubkey", + } + } + } + }, + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "ipv4", + "ipv6", + "torv2", + "torv3" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "address", + "port" + ], + "properties": { + "type": {}, + "address": { + "type": "string", "description": [ - "Blinding factor for this path." + "Address in expected format for **type**." ] }, - "path": { - "type": "array", + "port": { + "type": "u16", "description": [ - "An individual path." - ], - "items": { - "type": "object", - "required": [ - "blinded_node_id", - "encrypted_recipient_data" - ], - "additionalProperties": false, - "properties": { - "blinded_node_id": { - "type": "pubkey", - "description": [ - "Node_id of the hop." - ] - }, - "encrypted_recipient_data": { - "type": "hex", - "description": [ - "Encrypted TLV entry for this hop." - ] - } - } - } + "Port number." + ] } } } + } + ] + } + } + }, + "errors": [ + "On failure, one of the following errors will be returned:", + "", + "- 400: Unable to connect, no address known for peer", + "- 401: If some addresses are known but connecting to all of them failed, the message will contain details about the failures", + "- 402: If the peer disconnected while we were connecting", + "- -32602: If the given parameters are wrong" + ], + "json_example": [ + { + "request": { + "id": "example:connect#1", + "method": "connect", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "host": "localhost", + "port": 44619 + } + }, + "response": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "features": "08a0000a0a69a2", + "direction": "out", + "address": { + "type": "ipv4", + "address": "127.0.0.1", + "port": 44619 + } + } + }, + { + "request": { + "id": "example:connect#2", + "method": "connect", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "host": "127.0.0.1", + "port": 42839 + } + }, + "response": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "features": "08a0000a8a5961", + "direction": "out", + "address": { + "type": "ipv4", + "address": "127.0.0.1", + "port": 42839 + } + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible. Felix <> is the original author of this manpage." + ], + "see_also": [ + "lightning-fundchannel(7)", + "lightning-listpeers(7)", + "lightning-listchannels(7)", + "lightning-disconnect(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-createinvoice.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "createinvoice", + "title": "Low-level invoice creation", + "description": [ + "The **createinvoice** RPC command signs and saves an invoice into the database." + ], + "request": { + "required": [ + "invstring", + "label", + "preimage" + ], + "properties": { + "invstring": { + "type": "string", + "description": [ + "The bolt11 form, but the final signature is ignored. Minimal sanity checks are done. (Note: if **experimental-offers** is enabled, *invstring* can actually be an unsigned bolt12 invoice)." + ] + }, + "label": { + "oneOf": [ + { + "type": "string" }, - "offer_node_id": { - "type": "pubkey", - "description": [ - "Public key of the offering node." - ] - }, - "offer_recurrence": { - "type": "object", - "description": [ - "How often to this offer should be used." - ], - "required": [ - "period", - "time_unit" - ], - "additionalProperties": false, - "properties": { - "time_unit": { - "type": "u32", - "description": [ - "The BOLT12 time unit." - ] - }, - "time_unit_name": { - "type": "string", - "description": [ - "The name of `time_unit` (if valid)." - ] - }, - "period": { - "type": "u32", - "description": [ - "How many `time_unit` per payment period." - ] - }, - "basetime": { - "type": "u64", - "description": [ - "Period starts at this UNIX timestamp." - ] - }, - "start_any_period": { - "type": "u64", - "description": [ - "You can start at any period (only if `basetime` present)." - ] - }, - "limit": { - "type": "u32", - "description": [ - "Maximum period number for recurrence." - ] - }, - "paywindow": { - "type": "object", - "description": [ - "When within a period will payment be accepted." - ], - "default": "prior and during the period", - "required": [ - "seconds_before", - "seconds_after" - ], - "additionalProperties": false, - "properties": { - "seconds_before": { - "type": "u32", - "description": [ - "Seconds prior to period start." - ] - }, - "seconds_after": { - "type": "u32", - "description": [ - "Seconds after to period start." - ] - }, - "proportional_amount": { - "type": "boolean", - "enum": [ - true - ], - "description": [ - "Amount should be scaled if paid after period start." - ] - } - } - } - } - }, - "unknown_offer_tlvs": { - "type": "array", - "description": [ - "Any extra fields we didn't know how to parse." - ], - "items": { - "type": "object", - "required": [ - "type", - "length", - "value" - ], - "additionalProperties": false, - "properties": { - "type": { - "type": "u64", - "description": [ - "The type." - ] - }, - "length": { - "type": "u64", - "description": [ - "The length." - ] - }, - "value": { - "type": "hex", - "description": [ - "The value." - ] - } - } - } + { + "type": "integer" } - } + ], + "description": [ + "A unique string or number (which is treated as a string, so `01` is different from `1`); it is never revealed to other nodes on the lightning network, but it can be used to query the status of this invoice." + ] + }, + "preimage": { + "type": "hex", + "description": [ + "The preimage to supply upon successful payment of the invoice." + ] } - }, - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "bolt12 offer" - ] - }, - "valid": { - "type": "boolean", - "enum": [ - false - ] - } - } + } + }, + "response": { + "required": [ + "label", + "created_index", + "payment_hash", + "status", + "description", + "expires_at" + ], + "properties": { + "label": { + "type": "string", + "description": [ + "The label for the invoice." + ] }, - "then": { - "required": [], + "bolt11": { + "type": "string", + "description": [ + "The bolt11 string (always present unless **bolt12** is)." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The bolt12 string instead of **bolt11** (**experimental-offers** only)." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount of the invoice (if it has one)." + ] + }, + "status": { + "type": "string", + "enum": [ + "paid", + "expired", + "unpaid" + ], + "description": [ + "Whether it has been paid, or can no longer be paid." + ] + }, + "description": { + "type": "string", + "description": [ + "Description extracted from **bolt11** or **bolt12**." + ] + }, + "expires_at": { + "type": "u64", + "description": [ + "UNIX timestamp of when invoice expires (or expired)." + ] + }, + "created_index": { + "type": "u64", + "added": "v23.08", + "description": [ + "1-based index indicating order this invoice was created in." + ] + }, + "pay_index": { + "type": "u64", + "description": [ + "Incrementing id for when this was paid (**status** *paid* only)." + ] + }, + "amount_received_msat": { + "type": "msat", + "description": [ + "Amount actually received (**status** *paid* only)." + ] + }, + "paid_at": { + "type": "u64", + "description": [ + "UNIX timestamp of when invoice was paid (**status** *paid* only)." + ] + }, + "paid_outpoint": { + "type": "object", + "description": [ + "Outpoint this invoice was paid with (**status** *paid* only)." + ], + "added": "v23.11", "additionalProperties": false, + "required": [ + "txid", + "outnum" + ], "properties": { - "type": {}, - "valid": {}, - "offer_id": {}, - "node_id": {}, - "signature": {}, - "chains": {}, - "currency": {}, - "minor_unit": {}, - "warning_unknown_offer_currency": {}, - "amount": {}, - "amount_msat": {}, - "send_invoice": {}, - "description": {}, - "vendor": {}, - "features": {}, - "absolute_expiry": {}, - "paths": {}, - "quantity_max": {}, - "unknown_offer_tlvs": {}, - "recurrence": {}, - "warning_missing_offer_node_id": { - "type": "string", - "description": [ - "`offer_node_id` is not present." - ] - }, - "warning_invalid_offer_description": { - "type": "string", - "description": [ - "`offer_description` is not valid UTF8." - ] - }, - "warning_missing_offer_description": { - "type": "string", - "description": [ - "`offer_description` is not present." - ] - }, - "warning_invalid_offer_currency": { - "type": "string", + "txid": { + "added": "v23.11", + "type": "txid", "description": [ - "`offer_currency_code` is not valid UTF8." + "ID of the transaction that paid the invoice (**status** *paid* only)." ] }, - "warning_invalid_offer_issuer": { - "type": "string", + "outnum": { + "added": "v23.11", + "type": "u32", "description": [ - "`offer_issuer` is not valid UTF8." + "The 0-based output number of the transaction that paid the invoice (**status** *paid* only)." ] } } + }, + "payment_preimage": { + "type": "secret", + "description": [ + "The proof of payment: SHA256 of this **payment_hash**." + ] + }, + "local_offer_id": { + "type": "hex", + "description": [ + "The *id* of our offer which created this invoice (**experimental-offers** only)." + ], + "maxLength": 64, + "minLength": 64 + }, + "invreq_payer_note": { + "type": "string", + "description": [ + "The optional *invreq_payer_note* from invoice_request which created this invoice (**experimental-offers** only)." + ] } }, - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "bolt12 invoice_request" - ] - }, - "valid": { - "type": "boolean", - "enum": [ - true - ] - } - } - }, - "then": { - "required": [ - "offer_node_id", - "offer_description", - "invreq_metadata", - "invreq_payer_id", - "signature" + "pre_return_value_notes": [ + "(Note: the return format is the same as lightning-listinvoices(7))." + ] + }, + "errors": [ + "On failure, an error is returned and no invoice is created. If the lightning process fails before responding, the caller should use lightning-listinvoices(7) to query whether this invoice was created or not.", + "", + "The following error codes may occur:", + "", + "- -1: Catchall nonspecific error.", + "- 900: An invoice with the given *label* already exists." + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-invoice(7)", + "lightning-listinvoices(7)", + "lightning-delinvoice(7)", + "lightning-getroute(7)", + "lightning-sendpay(7)", + "lightning-offer(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-createonion.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "createonion", + "title": "Low-level command to create a custom onion", + "description": [ + "The **createonion** RPC command allows the caller to create a custom onion with custom payloads at each hop in the route. A custom onion can be used to implement protocol extensions that are not supported by Core Lightning directly." + ], + "request": { + "required": [ + "hops", + "assocdata" + ], + "properties": { + "hops": { + "type": "array", + "description": [ + "A JSON list of dicts, each specifying a node and the payload destined for that node." ], - "additionalProperties": false, - "properties": { - "type": {}, - "valid": {}, - "offer_id": { - "type": "hex", - "description": [ - "The id we use to identify this offer." - ], - "maxLength": 64, - "minLength": 64 - }, - "offer_chains": { - "type": "array", - "description": [ - "Which blockchains this offer is for (missing implies bitcoin mainnet only)." - ], - "items": { + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "pubkey", + "payload" + ], + "properties": { + "pubkey": { + "type": "pubkey", + "description": [ + "Node pubkey." + ] + }, + "payload": { "type": "hex", "description": [ - "The genesis blockhash." - ], - "maxLength": 64, - "minLength": 64 + "Payload to be sent to the node." + ] } - }, - "offer_metadata": { - "type": "hex", - "description": [ - "Any metadata the creator of the offer includes." - ] - }, - "offer_currency": { - "type": "string", - "description": [ - "ISO 4217 code of the currency (missing implies Bitcoin)." - ], - "maxLength": 3, - "minLength": 3 - }, - "warning_unknown_offer_currency": { - "type": "string", - "description": [ - "The currency code is unknown (so no `currency_minor_unit`)." - ] - }, - "currency_minor_unit": { - "type": "u32", - "description": [ - "The number of decimal places to apply to amount (if currency known)." - ] - }, - "offer_amount": { - "type": "u64", - "description": [ - "The amount in the `offer_currency` adjusted by `currency_minor_unit`, if any." - ] - }, - "offer_amount_msat": { - "type": "msat", - "description": [ - "The amount in bitcoin (if specified, and no `offer_currency`)." - ] - }, - "offer_description": { - "type": "string", + } + } + }, + "assocdata": { + "type": "hex", + "description": [ + "The associated data that the onion should commit to. If the onion is to be used to send a payment later it MUST match the `payment_hash` of the payment in order to be valid." + ] + }, + "session_key": { + "type": "secret", + "description": [ + "Can be used to specify a secret that is used to generate the shared secrets used to encrypt the onion for each hop. It should only be used for testing or if a specific shared secret is important. If not specified it will be securely generated internally, and the shared secrets will be returned." + ] + }, + "onion_size": { + "type": "u16", + "description": [ + "A size different from the default payment onion (1300 bytes). May be used for custom protocols like trampoline routing." + ] + } + } + }, + "response": { + "required": [ + "onion", + "shared_secrets" + ], + "properties": { + "onion": { + "type": "hex", + "description": [ + "The onion packet (*onion_size* bytes)." + ] + }, + "shared_secrets": { + "type": "array", + "description": [ + "One shared secret for each node in the *hops* parameter." + ], + "items": { + "type": "secret", + "description": [ + "The shared secret with this hop." + ] + } + } + } + }, + "example_usage": [ + "The following is an example of a 3 hop onion:", + "", + "```json", + "[", + " {", + " \"pubkey\": \"022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59\",", + " \"payload\": \"11020203e904017b06080000670000010001\"", + " }, {", + " \"pubkey\": \"035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d\",", + " \"payload\": \"11020203e804017506080000670000030001\"", + " }, {", + " \"pubkey\": \"0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199\",", + " \"payload\": \"07020203e8040175\"", + " }", + "]", + "```", + "", + "The *hops* parameter is very similar to the result from `getroute` however it needs to be modified slightly. The following is the `getroute` response from which the above *hops* parameter was generated:", + "", + "```json", + "[", + " {", + " \"id\": \"022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59\",", + " \"channel\": \"103x2x1\",", + " \"direction\": 1,", + " \"msatoshi\": 1002,", + " \"amount_msat\": \"1002msat\",", + " \"delay\": 21,", + " }, {", + " \"id\": \"035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d\",", + " \"channel\": \"103x1x1\",", + " \"direction\": 0,", + " \"msatoshi\": 1001,", + " \"amount_msat\": \"1001msat\",", + " \"delay\": 15,", + " }, {", + " \"id\": \"0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199\",", + " \"channel\": \"103x3x1\",", + " \"direction\": 0,", + " \"msatoshi\": 1000,", + " \"amount_msat\": \"1000msat\",", + " \"delay\": 9,", + " }", + "]", + "```", + "", + " - Notice that the payload in the *hops* parameter is the hex-encoded TLV of the parameters in the `getroute` response, with length prepended as a `bigsize_t`.", + " - Except for the pubkey, the values are shifted left by one, i.e., the 1st payload in `createonion` corresponds to the 2nd set of values from `getroute`.", + " - The final payload is a copy of the last payload sans `channel`", + "", + "These rules are directly derived from the onion construction. Please refer BOLT 04 for details and rationale.", + "", + "The following example is the result of calling *createonion* with the above hops parameter:", + "", + " ```json", + " {", + " \"onion\": \"0003f3f80d2142b953319336d2fe4097[...]6af33fcf4fb113bce01f56dd62248a9e5fcbbfba35c\",", + " \"shared_secrets\": [", + " \"88ce98c73e4d9293ab1797b0a913fe9bca0213a566252047d01b8af6da871f3e\",", + " \"4474d296810e57bd460ef8b83d2e7d288321f8a99ff7686f87384699747bcfc4\",", + " \"2a862e4123e01799a732be487fbce297f7dc7cc1467e410f18369cfee476adc2\"", + " ]", + " }", + "```", + "", + "The `onion` corresponds to 1366 hex-encoded bytes. Each shared secret consists of 32 hex-encoded bytes. Both arguments can be passed on to **sendonion**." + ], + "json_example": [ + { + "request": { + "id": "example:createonion#1", + "method": "createonion", + "params": { + "hops": [ + { + "pubkey": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "payload": "e4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "pubkey": "0324653eac434488002cc06bbfb7f10fe18991e35f9fe4302dbea6d2353dc0ab1c", + "payload": "e30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "pubkey": "027f31ebc5462c1fdce1b737ecff52d37d75dea43ce11c74d25aa297165faa2007", + "payload": "e30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "pubkey": "032c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991", + "payload": "e30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + { + "pubkey": "02edabbd16b41c8371b92ef2f04c1185b4f03b6dcd52ba9b78d9d7c89c8f221145", + "payload": "e30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + } + ], + "assocdata": "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB", + "onion_size": 1301 + } + }, + "response": { + "onion": "00034c3f9e11d92555260db3ee4ba0378a645d01c2556451f4289a1d9b43c7afa9a4f9ecc7010dafb26787bb583c514c3b3990d40c8168b1046659d7bc2512d2f1ee0afd2b87c42de2b70102b649634d211b38049593dbb6ed8ee8f93f0b9ff23cd9654c1341137711ce67751d40867cc90c290a9446be2b8a5a43641d4549505b13e807b4240b5b82ffaf22cb534cff01be46db3985ac83b7db465fbd86d4c8d472f60678946c71eca97dd5db732fe5a6d3765e5a5afad72f035207173e7eaaa0da4f0a4540472c7dd269a030428ae586a61b2a70a428055c3848427d2a2e8bd521aadbaf79d56ea39df63c059772e026d57f0b6844c1ab99e936beadf42aaa78193b05f7380e242258deeaa90db316a943d311ef4f2a08f422422c9da454f9666742ad61c6ae003bce83cf6243adf64a728ea50bdaf129ab2ac70e1988a117609cbefc01c884f86b2494349d1067f5cf17760cdab6ae076631693147e8712412d4f0b17cf288b394fd9e29419156ee629966553c2e7598631cbf7493820388eef1ae9f4d2f9da88872e8afbbedb3b46cd7c461cbe4c5491dc6f4a68bc244584bc79b1bb227c869fae16dab4b16412523c984d3ed2b872f63b95a62f66563d2b03c3d1b5fff0290411b293569ce8435b96b447be776b49395a8d94f48cb2f7699a38e8de58d6fff04075d226dcac07668512b6d2c20d4c49d03ad300a52769e4ebbacf97378633126958df1817effc12fd679723123df244fd9b5421f8a2aedb9a8b6fb4049e3a7cae3985059081239bea38351f0c90ed5a0ff45cc492e6ab353e4c13d22ff48912d6ecfda711edfb88dc0767ecfc5dddf8fb0e112a538aeee55c0f73b3b8afc4f40ef3588eabde5b95344a4525adf67841dd67b1db10da180fb346e0bd2958f095d011827063c42361964f8ac2c356d2ec1868a9498dcd6b5915a4df4601c58fcbeb688e14de61300f13183c154b3320cc8e80042a46f22d796f56ff1fdd7e28440c05f14b960c1d0a7c627b09295112bcb635b0e2447a9374fafc4a23ceaf9de4d10b29b2f6cabd7f0c7706cf0404452681d7372d559b644627b2695960deb3b4ae57028e0164b29d5ef9e701d3122b6a5715c502e1dca5252e8c215ed754b01a193041ad9751ed2fff1b55991e256edd6099a38004a367ad097c7caf953da302201263715517f6d32cff57969be994df42fd6cadb649e3c738be798f779aaf4c07cada6bf1e4115b74e2670baf4b1592c70b10a6c043b6606b428b3f79545dc8e9783c876e5402909858f9c604963c37fbc477137c8908e6cfa11ece18c8784a6f25428a5ee1e91d0095fe310d6a91139a7c5c6624bbfcaa15ee847a25b06f57332917f68526a6317f575792e9bcba8576a96bc5859b1f2a00fd8ab08a5ac4ab71833b0b711d1f120cbdb374bcedcdcbeba3806644f5082ec737a945221f5d99562fcbb02a43beeafb16ceecd4e35f06a04c9ff9f4f33725ab62cf22c36650280e4cfb9e150a2c4ebee7785108522e8ecb4682d2d751168e7597299346c3a5e885e36eda66b9a1112997111135767972d771b02c1a36c1d1fb1ce539ecfb98e9e1d8f8fdbf89aec28ad34ff5c00c1a4a8c59848dc8b64c0e65f6f10122e60b4adc1cfc602f49d6cfbdd54be6b0951d3f9cafe8cdd0428f9ce6994844e92d8b72d44edda623bad428b398f88643c3904bda16dd15e886ca4ef6ea7f1450744ac38ffce902569d2e9026bcedd6d0ee54aceabda22bf2de72cba89e6c274064619e32a1192cf2d78b56cf497f7785a6d599de9f8383d1f66f47fc385dc569ee1f08ddbbc7f1aeb0a0126fc4020d948dda10255f11e776db7a037059a40fde38a2ee0c0ce49c7f3df175881bf12371fa72fec3fba657107892a97efe41dcc18aeecd99f3e46c33cf42c2a0ba8b75cf000", + "shared_secrets": [ + "ccf2512684e2508cb4a842393757e6040b7d25e29d3a2031f29d00a000af6128", + "d4cec39fe6287d41165bf5c608b0c720a411208a83c64c805a012c86662a2e5a", + "91bc712ebd4a900e05830394ca8b1f1168777ecdd6996029d96ec8838b9903b9", + "93c373dcb14dc36ababa3e0c5c55869a667ca175e09913a98c3be67e6af97e16", + "b2642a5770a6b61ade071fdf69d3ea365cf48434fc2a2c399512778821a33e5c" + ] + } + }, + { + "request": { + "id": "example:createonion#2", + "method": "createonion", + "params": { + "hops": [ + { + "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "payload": "0cfdb000084869207468657265" + } + ], + "assocdata": "36bf44cc8d80498b95eb05e36ae5811206d3a1d8b5c8d59bbcad035d386a4de8" + } + }, + "response": { + "onion": "0002cdce4bfaa9faa2c060afafe001b80bde07fc670e882c063a80b4738d5f78c9351825c6461cdfcd4fe4144d3b51f63da6351b28dd49c7bfdb0b4f7d8bda4ad0d99699eda39e551084c0a095746c358d1dc6d2eec8082f2aa2f69ae8f61b1f1437ae0ed673078fec6c0510a34058167ad1a34e819a3813d4cf27b2c4917a8c6ca3d70c3381a2a41b4c1b4540adf0e922e25f57d1cfc3064f29cfec4c17244160121975cab59b44c83b4a4905bf7ebfbd308de376334bf86d8aa92c674f7bcfec85680d73e9fee72642c98c603128e358c86e0bc88a60aaebc2637441a57261c61c6be145f00f2fc56164a6495f4b52d3172cb0ef52e91fa0d32a9ae2502d17433bda58d93fbc24a70ec6b5e740952a61404c7370eafe52599c7ee52e77b1cda87c46da98d2ff0d02fe09db5adcb2d2e9bcd083ef58392907b8a21681fa4ea1e4806b4676656457fea000fa504f9b4d159fe8b241266ac91dcc0351053c6dcc1493a6b02bed652cc8b92a8470c98924ebfde6ddc5cf7fd75f6e83a7350642053b70d4834179c30eb56d8c86656cda784daf3b6cd125779bec51099301e3f79f78d85d0454aef8bf5f9058491881b73e99b662b64080cd3eb16fd7f9d9640c18738736cfc15f391232b7df92f46ceb5abf08732ff833e9409ee541d7c926f7a0fe3e233d3eee4a63b65ab23b7c835b7cdd809ddfac8abb1df471fa66a54092815aa41e6fc1a026b86c5675d39c4e8c5c4b4acd48534165239f5634b9e828a7f9df94efcd2a39045efdee4d2f006a63ae828e6e90e3610c522085da6e0198141d6e501d83aba32057f4e59f9b7dfb0bf949c5ef91917cb54561d45a9e7ead049c57deb62d14ba6e18f5d7b0fb9f15e97bf5bd9f909f99c86c787357946654b87c489d34245d07fbb72119166e338b608a4178b452695235dd96bf7fd338e29a9f054ec1a63a442e12602d2329834297f6a197d8a377d608f402f0bcc936f45f33c8d2f9d40e5aef41816dd883add81ca20f1e0631457fe00aa2bd75c9165ffcd96c100c1db83a53aeee23d59f2a542ee3ba39ba62298ddfbd9ecfafd6b5d2121eb003ee23a2ebb8c6b6b687f42492c962510c5acf5231ff96635eba37354559ba39b042d9b6883cac662f418d7c62f9908b2a67964af5e5471804f7684e0d582b8bfec99816bb3442cca1d1fe4efd75d573ebf09fa9cad811063864fb14be4a7768ec2ddb118a77969e986c6584c4b20f8622941ca73d73562857d36e17a46a68d6e10147aaefff1ffb9809f0652a5f760148ed33550661b63c8176d5679e701c221d8a49d4062eb04010ea74cc1132fbeb8934c6e582ba2a16162b7e9171f95bce4ec3e339e70c781f95aaca406cd718b74397658fdefdd093486664be7ed13efa437012f1f57f9f1f4fb4eef7501ccf0e0ac4edc01fde138038c4dd65cb5c3291ad02a6728d6761b1afa35d49bd6ef117012bdd9bd6ee8a175620feb2249aa18d6175351b4bfc2b2b4fd57ff52f5969b109aa9b6cb2cde8f350917c0da2da1bc3d52eb0c7e6080b8f69c5783f2ed26feceb05ba4e7ed66676041d03d0acd3dd6343a85ac0b9c36f9640ddd0db884822f98dc42ea7911a6938dc14ba19d3d25a2b2f82794a2b5dd751dc856d7a9ccdb2d351a0b84e7030fa925ac949a37594f3aa2ba28ae5155b0aaac9c6820b8888d0b8a9db148513b9e3dbde68333ac30a0720289b6a0145d88629d49e76a6d3538330c5aececc9d54127b0a5a0e92d5a5a73beb71132c208b589cab61d53ed357c907929198c559426ae729b374a803dd3321a45ccca39efd39eddaba6e79a2f8911bdf74e18733dc7efc51132b5608d97fd2d0f22fa8961de04cdf6d0dbfbab21e362e7abaef3976f993088aa97ed3f1f4bcf3fffb012f583558bd2f15face9cba20b3e6754b70", + "shared_secrets": [ + "3f53c03f98eb83db88ff97c2c4004051ce23265ed2414a7aebf7a3e7078839ab" + ] + } + } + ], + "author": [ + "Christian Decker <> is mainly responsible." + ], + "see_also": [ + "lightning-sendonion(7)", + "lightning-getroute(7)" + ], + "resources": [ + "Main web site: ", + "", + "[BOLT 04](https://github.com/lightning/bolts/blob/master/04-onion-routing.md)" + ] + }, + "lightning-createrune.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.08", + "rpc": "createrune", + "title": "Command to Create/Update Rune for Authorizing Remote Peer Access", + "description": [ + "The **createrune** RPC command creates a base64 string called a *rune* which can be used to access commands on this node. Each *rune* contains a unique id (a number starting at 0), and can have restrictions inside it. Nobody can remove restrictions from a rune: if you try, the rune will be rejected. There is no limit on how many runes you can issue; the node simply decodes and checks them as they are received.", + "", + "Oh, I almost forgot. Runes can also be invoked like in ancient times with the **invokerune** command. Feel the magical powers of a rune by invoking it." + ], + "request": { + "required": [], + "properties": { + "rune": { + "type": "string", + "description": [ + "If supplied, the restrictions are simple appended to that *rune* (it doesn't need to be a rune belonging to this node). If not supplied, a new *rune* is constructed, with a new unique id." + ] + }, + "restrictions": { + "description": [ + "It can be the string `readonly`, or an array of restrictions.", + "Each restriction is an array of one or more alternatives, such as \"method is listpeers\", or \"method is listpeers OR time is before 2023\"." + ], + "oneOf": [ + { + "type": "array", "description": [ - "The description of the purpose of the offer." - ] + "Alternatives use a simple language to examine the command which is being run:", + " * time: the current UNIX time, e.g. \"time<1656759180\".", + " * id: the node_id of the peer, e.g. \"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\".", + " * method: the command being run, e.g. \"method=withdraw\".", + " * per: how often the rune can be used, with suffix \"sec\" (default), \"min\", \"hour\", \"day\" or \"msec\", \"usec\" or \"nsec\". e.g. \"per=5sec\".", + " * rate: the rate limit, per minute, e.g. \"rate=60\" is equivalent to \"per=1sec\".", + " * pnum: the number of parameters. e.g. \"pnum<2\".", + " * pnameX: the parameter named X e.g. \"pnamedestination=1RustyRX2oai4EYYDpQGWvEL62BBGqN9T\". NOTE: until v24.05, X had to remove underscores from the parameter name (e.g. `pnameamount_msat` had to be specified as `pnameamountmsat`) but that is now fixed.", + " * parrN: the N'th parameter. e.g. \"parr0=1RustyRX2oai4EYYDpQGWvEL62BBGqN9T\".", + " * pinvX_N: parse the parameter X as an invoice (bolt11 or bolt12) and extract field N for comparison. Fails if parameter X is not present, does not parse, or N is not one of the following field names:", + " * amount", + " * description", + " * node" + ], + "items": { + "type": "array", + "items": { + "type": "string" + } + } }, - "offer_issuer": { + { "type": "string", + "enum": [ + "readonly" + ], "description": [ - "The description of the creator of the offer." - ] - }, - "offer_features": { - "type": "hex", - "description": [ - "The feature bits of the offer." + "A rune which allows most *get* and *list* commands, and the *summary* command." ] - }, - "offer_absolute_expiry": { - "type": "u64", - "description": [ - "UNIX timestamp of when this offer expires." + } + ] + } + } + }, + "response": { + "required": [ + "rune", + "unique_id" + ], + "properties": { + "rune": { + "type": "string", + "description": [ + "The resulting rune." + ] + }, + "unique_id": { + "type": "string", + "description": [ + "The id of this rune: this is set at creation and cannot be changed (even as restrictions are added)." + ] + }, + "warning_unrestricted_rune": { + "type": "string", + "description": [ + "A warning shown when runes are created with powers that could drain your node." + ] + } + } + }, + "restriction_format": [ + "Restrictions are one or more alternatives. Each alternative is *name* *operator* *value*. The valid names are shown above.", + "", + "Note that if a value contains `\\`, it must be preceeded by another `\\` to form valid JSON:", + "* `=`: passes if equal ie. identical. e.g. `method=withdraw`", + "* `/`: not equals, e.g. `method/withdraw`", + "* `^`: starts with, e.g. `id^024b9a1fa8e006f1e3937f`", + "* `$`: ends with, e.g. `id$381df1cc449605`.", + "* `~`: contains, e.g. `id~006f1e3937f65f66c40`.", + "* `<`: is a decimal integer, and is less than. e.g. `time<1656759180`", + "* `>`: is a decimal integer, and is greater than. e.g. `time>1656759180`", + "* `{`: preceeds in alphabetical order (or matches but is shorter),", + " e.g. `id{02ff`.", + "* `}`: follows in alphabetical order (or matches but is longer),", + " e.g. `id}02ff`.", + "* `#`: a comment, ignored, e.g. `dumb example#`.", + "* `!`: only passes if the *name* does *not* exist. e.g. `pnamedestination!`.", + "Every other operator except `#` fails if *name* does not exist!" + ], + "example_usage": [ + "This creates a fresh rune which can do anything:", + "", + "```shell", + "$ lightning-cli commando-rune", + "{", + " \"rune\": \"KUhZzNlECC7pYsz3QVbF1TqjIUYi3oyESTI7n60hLMs9MA==\",", + " \"unique_id\": \"0\"", + "}", + "```", + "We can add restrictions to that rune, like so:", + "", + "```shell", + "$ lightning-cli commando-rune rune=KUhZzNlECC7pYsz3QVbF1TqjIUYi3oyESTI7n60hLMs9MA== restrictions=readonly", + "{", + " \"rune\": \"NbL7KkXcPQsVseJ9TdJNjJK2KsPjnt_q4cE_wvc873I9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl\",", + " \"unique_id\": \"0\"", + "}", + "```", + "The \"readonly\" restriction is a short-cut for two restrictions:", + "", + "1. `[\"method^list\", \"method^get\", \"method=summary\"]`: You may call list, get or summary.", + "2. `[\"method/listdatastore\"]`: But not listdatastore: that contains sensitive stuff!", + "", + "We can do the same manually, like so:", + "", + "```shell", + "$ lightning-cli commando-rune rune=KUhZzNlECC7pYsz3QVbF1TqjIUYi3oyESTI7n60hLMs9MA== restrictions='[[\"method^list\", \"method^get\", \"method=summary\"],[\"method/listdatastore\"]]'", + "{", + " \"rune\": \"NbL7KkXcPQsVseJ9TdJNjJK2KsPjnt_q4cE_wvc873I9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl\",", + " \"unique_id\": \"0\"", + "}", + "```", + "Let's create a rune which lets a specific peer (024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605) run \"listpeers\" on themselves:", + "", + "```shell", + "$ lightning-cli commando-rune restrictions='[[\"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"],[\"method=listpeers\"],[\"pnum=1\"],[\"pnameid=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\",\"parr0=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"]]'", + "{", + " \"rune\": \"FE8GHiGVvxcFqCQcClVRRiNE_XEeLYQzyG2jmqto4jM9MiZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDV8cGFycjA9MDI0YjlhMWZhOGUwMDZmMWUzOTM3ZjY1ZjY2YzQwOGU2ZGE4ZTFjYTcyOGVhNDMyMjJhNzM4MWRmMWNjNDQ5NjA1\",", + " \"unique_id\": \"2\"", + "}", + "```", + "This allows `listpeers` with 1 argument (`pnum=1`), which is either by name (`pnameid`), or position (`parr0`). We could shorten this in several ways: either allowing only positional or named parameters, or by testing the start of the parameters only. Here's an example which only checks the first 9 bytes of the `listpeers` parameter:", + "", + "```shell", + "$ lightning-cli commando-rune restrictions='[[\"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"],[\"method=listpeers\"],[\"pnum=1\"],[\"pnameid^024b9a1fa8e006f1e393\", \"parr0^024b9a1fa8e006f1e393\"]'", + " {", + " \"rune\": \"fTQnfL05coEbiBO8SS0cvQwCcPLxE9c02pZCC6HRVEY9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5Mw==\",", + " \"unique_id\": \"3\"", + "}", + "```", + "Before we give this to our peer, let's add two more restrictions: that it only be usable for 24 hours from now (`time<`), and that it can only be used twice a minute (`rate=2`). `date +%s` can give us the current time in seconds:", + "", + "```shell", + "$ lightning-cli commando-rune rune=fTQnfL05coEbiBO8SS0cvQwCcPLxE9c02pZCC6HRVEY9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5Mw== restrictions='[[\"time<'$(($(date +%s) + 24*60*60))'\",\"rate=2\"]]'", + "{", + " \"rune\": \"tU-RLjMiDpY2U0o3W1oFowar36RFGpWloPbW9-RuZdo9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5MyZ0aW1lPDE2NTY5MjA1MzgmcmF0ZT0y\",", + " \"unique_id\": \"3\"", + "}", + "```", + "You can also use lightning-decode(7) to examine runes you have been given:", + "", + "```shell", + "$ lightning-cli decode tU-RLjMiDpY2U0o3W1oFowar36RFGpWloPbW9-RuZdo9MyZpZD0wMjRiOWExZmE4ZTAwNmYxZTM5MzdmNjVmNjZjNDA4ZTZkYThlMWNhNzI4ZWE0MzIyMmE3MzgxZGYxY2M0NDk2MDUmbWV0aG9kPWxpc3RwZWVycyZwbnVtPTEmcG5hbWVpZF4wMjRiOWExZmE4ZTAwNmYxZTM5M3xwYXJyMF4wMjRiOWExZmE4ZTAwNmYxZTM5MyZ0aW1lPDE2NTY5MjA1MzgmcmF0ZT0y", + "{", + " \"type\": \"rune\",", + " \"unique_id\": \"3\",", + " \"string\": \"b54f912e33220e9636534a375b5a05a306abdfa4451a95a5a0f6d6f7e46e65da:=3&id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605&method=listpeers&pnum=1&pnameid^024b9a1fa8e006f1e393|parr0^024b9a1fa8e006f1e393&time<1656920538&rate=2\",", + " \"restrictions\": [", + " {", + " \"alternatives\": [", + " \"id=024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605\"", + " ],", + " \"summary\": \"id (of commanding peer) equal to '024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605'\"", + " },", + " {", + " \"alternatives\": [", + " \"method=listpeers\"", + " ],", + " \"summary\": \"method (of command) equal to 'listpeers'\"", + " },", + " {", + " \"alternatives\": [", + " \"pnum=1\"", + " ],", + " \"summary\": \"pnum (number of command parameters) equal to 1\"", + " },", + " {", + " \"alternatives\": [", + " \"pnameid^024b9a1fa8e006f1e393\",", + " \"parr0^024b9a1fa8e006f1e393\"", + " ],", + " \"summary\": \"pnameid (object parameter 'id') starts with '024b9a1fa8e006f1e393' OR parr0 (array parameter #0) starts with '024b9a1fa8e006f1e393'\"", + " },", + " {", + " \"alternatives\": [", + " \"time<1656920538\"", + " ],", + " \"summary\": \"time (in seconds since 1970) less than 1656920538 (approximately 19 hours 18 minutes from now)\"", + " },", + " {", + " \"alternatives\": [", + " \"rate=2\"", + " ],", + " \"summary\": \"rate (max per minute) equal to 2\"", + " }", + " ],", + " \"valid\": true", + "}", + "```" + ], + "sharing_runes": [ + "Because anyone can add a restriction to a rune, you can always turn a normal rune into a read-only rune, or restrict access for 30 minutes from the time you give it to someone. Adding restrictions before sharing runes is best practice.", + "", + "If a rune has a ratelimit, any derived rune will have the same id, and thus will compete for that ratelimit. You might want to consider adding a tighter ratelimit to a rune before sharing it, so you will keep the remainder. For example, if you rune has a limit of 60 times per minute, adding a limit of 5 times per minute and handing that rune out means you can still use your original rune 55 times per minute." + ], + "json_example": [ + { + "request": { + "id": "example:createrune#1", + "method": "createrune", + "params": { + "restrictions": [ + [ + "method/getinfo" ] - }, - "offer_quantity_max": { - "type": "u64", - "description": [ - "The maximum quantity (or, if 0, means any quantity)." + ] + } + }, + "response": { + "rune": "S5f-BKt3rR-cvJmujdpDCUQm_XLahfB4iQuDlwqMJiQ9MCZtZXRob2QvZ2V0aW5mbw==", + "unique_id": "0" + } + }, + { + "request": { + "id": "example:createrune#2", + "method": "createrune", + "params": { + "restrictions": "readonly" + } + }, + "response": { + "rune": "oVkzoiQ67VCU1h_aRjPqCeWktGX54ARDsqqQgDL-uMs9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl", + "unique_id": "1" + } + }, + { + "request": { + "id": "example:createrune#3", + "method": "createrune", + "params": [ + "enX0sTpHB8y1ktyTAF80CnEvGetG340Ne3AGItudBS49NCZwbnVtPTA=", + [ + [ + "rate=3" ] - }, - "offer_paths": { + ] + ] + }, + "response": { + "rune": "_h2eKjoK7ITAF-JQ1S5oum9oMQesrz-t1FR9kDChRB49NCZwbnVtPTAmcmF0ZT0z", + "unique_id": "2" + } + } + ], + "author": [ + "Rusty Russell <> wrote the original Python commando.py plugin, the in-tree commando plugin, and this manual page.", + "", + "Shahana Farooqui <> is mainly responsible for migrating commando-rune to createrune." + ], + "see_also": [ + "lightning-commando-rune(7)", + "lightning-checkrune(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-datastore.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "datastore", + "title": "Command for storing (plugin) data", + "description": [ + "The **datastore** RPC command allows plugins to store data in the Core Lightning database, for later retrieval." + ], + "request": { + "required": [ + "key" + ], + "properties": { + "key": { + "description": [ + "A key can either have children or a value, never both: parents are created and removed automatically." + ], + "oneOf": [ + { "type": "array", "description": [ - "Paths to the destination." + "An array of values to form a hierarchy (though a single value is treated as a one-element array). Using the first element of the key as the plugin name (e.g. `[ 'summary' ]`) is recommended." ], "items": { - "type": "object", - "required": [ - "blinding", - "path" - ], - "additionalProperties": false, - "properties": { - "first_node_id": { - "type": "pubkey", - "description": [ - "The (presumably well-known) public key of the start of the path." - ] - }, - "first_scid": { - "added": "v23.05", - "type": "short_channel_id", - "description": "the short channel id of the start of the path (alternative to first_n ode_id)" - }, - "first_scid_dir": { - "added": "v23.05", - "type": "u32", - "description": "which end of the first_scid is the start of the path" - }, - "blinding": { - "type": "pubkey", - "description": [ - "Blinding factor for this path." - ] - }, - "path": { - "type": "array", - "description": [ - "An individual path." - ], - "items": { - "type": "object", - "required": [ - "blinded_node_id", - "encrypted_recipient_data" - ], - "additionalProperties": false, - "properties": { - "blinded_node_id": { - "type": "pubkey", - "description": [ - "Node_id of the hop." - ] - }, - "encrypted_recipient_data": { - "type": "hex", - "description": [ - "Encrypted TLV entry for this hop." - ] - } - } - } - } - } + "type": "string" } }, - "offer_node_id": { - "type": "pubkey", - "description": [ - "Public key of the offering node." - ] - }, - "offer_recurrence": { - "type": "object", - "description": [ - "How often to this offer should be used." - ], - "required": [ - "period", - "time_unit" - ], - "additionalProperties": false, - "properties": { - "time_unit": { - "type": "u32", - "description": [ - "The BOLT12 time unit." - ] - }, - "time_unit_name": { - "type": "string", - "description": [ - "The name of `time_unit` (if valid)." - ] - }, - "period": { - "type": "u32", - "description": [ - "How many `time_unit` per payment period." - ] - }, - "basetime": { - "type": "u64", - "description": [ - "Period starts at this UNIX timestamp." - ] - }, - "start_any_period": { - "type": "u64", - "description": [ - "You can start at any period (only if `basetime` present)." - ] - }, - "limit": { - "type": "u32", - "description": [ - "Maximum period number for recurrence." - ] - }, - "paywindow": { - "type": "object", - "description": [ - "When within a period will payment be accepted." - ], - "default": "prior and during the period", - "required": [ - "seconds_before", - "seconds_after" - ], - "additionalProperties": false, - "properties": { - "seconds_before": { - "type": "u32", - "description": [ - "Seconds prior to period start." - ] - }, - "seconds_after": { - "type": "u32", - "description": [ - "Seconds after to period start." - ] - }, - "proportional_amount": { - "type": "boolean", - "enum": [ - true - ], - "description": [ - "Amount should be scaled if paid after period start." - ] - } - } - } - } - }, - "invreq_metadata": { - "type": "hex", - "description": [ - "The payer-provided blob to derive invreq_payer_id." - ] - }, - "invreq_payer_id": { - "type": "hex", - "description": [ - "The payer-provided key." - ] - }, - "invreq_chain": { - "type": "hex", - "description": [ - "Which blockchain this offer is for (missing implies bitcoin mainnet only)." - ], - "maxLength": 64, - "minLength": 64 - }, - "invreq_amount_msat": { - "type": "msat", - "description": [ - "The amount the invoice should be for." - ] - }, - "invreq_features": { - "type": "hex", - "description": [ - "The feature bits of the invoice_request." - ] - }, - "invreq_quantity": { - "type": "u64", - "description": [ - "The number of items to invoice for." - ] - }, - "invreq_payer_note": { - "type": "string", - "description": [ - "A note attached by the payer." - ] - }, - "invreq_recurrence_counter": { - "type": "u32", - "description": [ - "Which number request this is for the same invoice." - ] - }, - "invreq_recurrence_start": { - "type": "u32", - "description": [ - "When we're requesting to start an invoice at a non-zero period." - ] - }, - "signature": { - "type": "bip340sig", - "description": [ - "BIP-340 signature of the `invreq_payer_id` on this invoice_request." - ] - }, - "unknown_invoice_request_tlvs": { - "type": "array", - "description": [ - "Any extra fields we didn't know how to parse." - ], - "items": { - "type": "object", - "required": [ - "type", - "length", - "value" - ], - "additionalProperties": false, - "properties": { - "type": { - "type": "u64", - "description": [ - "The type." - ] - }, - "length": { - "type": "u64", - "description": [ - "The length." - ] - }, - "value": { - "type": "hex", - "description": [ - "The value." - ] - } - } - } + { + "type": "string" } + ] + }, + "string": { + "type": "string", + "description": [ + "Data to be saved in string format." + ] + }, + "hex": { + "type": "hex", + "description": [ + "Data to be saved in hex format." + ] + }, + "mode": { + "type": "string", + "description": [ + "Write mode to determine how the record is updated:", + " * `must-create`: fails if it already exists.", + " * `must-replace`: fails if it doesn't already exist.", + " * `create-or-replace`: never fails.", + " * `must-append`: must already exist, append this to what's already there.", + " * `create-or-append`: append if anything is there, otherwise create." + ], + "enum": [ + "must-create", + "must-replace", + "create-or-replace", + "must-append", + "create-or-append" + ], + "default": "`must-create`" + }, + "generation": { + "type": "u64", + "description": [ + "If specified, means that the update will fail if the previously-existing data is not exactly that generation. This allows for simple atomicity. This is only legal with *mode* `must-replace` or `must-append`." + ] + } + } + }, + "response": { + "required": [ + "key" + ], + "properties": { + "key": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Part of the key added to the datastore." + ] + } + }, + "generation": { + "type": "u64", + "description": [ + "The number of times this has been updated." + ] + }, + "hex": { + "type": "hex", + "description": [ + "The hex data which has been added to the datastore." + ] + }, + "string": { + "type": "string", + "description": [ + "The data as a string, if it's valid utf-8." + ] + } + } + }, + "errors": [ + "The following error codes may occur:", + "", + "- 1202: The key already exists (and mode said it must not)", + "- 1203: The key does not exist (and mode said it must)", + "- 1204: The generation was wrong (and generation was specified)", + "- 1205: The key has children already.", + "- 1206: One of the parents already exists with a value.", + "- -32602: invalid parameters" + ], + "json_example": [ + { + "request": { + "id": "example:datastore#1", + "method": "datastore", + "params": { + "key": [ + "test_libplugin", + "name" + ], + "string": "foobar", + "hex": null, + "mode": "must-replace", + "generation": null } + }, + "response": { + "key": [ + "test_libplugin", + "name" + ], + "generation": 1, + "hex": "666f6f626172", + "string": "foobar" } }, { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "bolt12 invoice_request" - ] - }, - "valid": { - "type": "boolean", - "enum": [ - false - ] - } + "request": { + "id": "example:datastore#2", + "method": "datastore", + "params": { + "key": "somekey", + "string": null, + "hex": "61", + "mode": "create-or-append", + "generation": null } }, - "then": { - "required": [], - "additionalProperties": false, - "properties": { - "type": {}, - "valid": {}, - "offer_id": {}, - "offer_chains": {}, - "offer_metadata": {}, - "offer_currency": {}, - "warning_unknown_offer_currency": {}, - "currency_minor_unit": {}, - "offer_amount": {}, - "offer_amount_msat": {}, - "offer_description": {}, - "offer_issuer": {}, - "offer_features": {}, - "offer_absolute_expiry": {}, - "offer_quantity_max": {}, - "offer_paths": {}, - "offer_node_id": {}, - "offer_recurrence": {}, - "invreq_metadata": {}, - "invreq_payer_id": {}, - "invreq_chain": {}, - "invreq_amount_msat": {}, - "invreq_features": {}, - "invreq_quantity": {}, - "invreq_payer_note": {}, - "invreq_recurrence_counter": {}, - "invreq_recurrence_start": {}, - "warning_invalid_offer_description": { - "type": "string", - "description": [ - "`offer_description` is not valid UTF8." - ] - }, - "warning_missing_offer_description": { - "type": "string", - "description": [ - "`offer_description` is not present." - ] - }, - "warning_invalid_offer_currency": { - "type": "string", - "description": [ - "`offer_currency_code` is not valid UTF8." - ] - }, - "warning_invalid_offer_issuer": { - "type": "string", - "description": [ - "`offer_issuer` is not valid UTF8." - ] - }, - "warning_missing_invreq_metadata": { - "type": "string", - "description": [ - "`invreq_metadata` is not present." - ] - }, - "warning_missing_invreq_payer_id": { - "type": "string", - "description": [ - "`invreq_payer_id` is not present." - ] - }, - "warning_invalid_invreq_payer_note": { - "type": "string", + "response": { + "key": [ + "somekey" + ], + "generation": 3, + "hex": "736f6d6564617461", + "string": "somedata" + } + }, + { + "request": { + "id": "example:datastore#3", + "method": "datastore", + "params": { + "key": [ + "a", + "d", + "e", + "f", + "g" + ], + "string": "somedatatostoreinthedatastore", + "hex": null, + "mode": null, + "generation": null + } + }, + "response": { + "key": [ + "a", + "d", + "e", + "f", + "g" + ], + "generation": 0, + "hex": "736f6d6564617461746f73746f7265696e7468656461746173746f7265", + "string": "somedatatostoreinthedatastore" + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-listdatastore(7)", + "lightning-deldatastore(7)", + "lightning-datastoreusage(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-datastoreusage.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.11", + "rpc": "datastoreusage", + "title": "Command for listing datastore usage info", + "description": [ + "The **datastoreusage** RPC command allows the caller to fetch the total bytes that are stored under a certain *key* (or from the root), including the size of the *key*.", + "", + "All descendants of the *key* (or root) are taken into account." + ], + "request": { + "required": [], + "properties": { + "key": { + "oneOf": [ + { + "type": "array", "description": [ - "`invreq_payer_note` is not valid UTF8." - ] + "Key is an array of values (though a single value is treated as a one-element array). Used as the starting point to traverse the datastore." + ], + "items": { + "type": "string" + } }, - "warning_missing_invoice_request_signature": { + { + "type": "string" + } + ] + } + } + }, + "response": { + "required": [ + "datastoreusage" + ], + "properties": { + "datastoreusage": { + "type": "object", + "additionalProperties": false, + "required": [ + "key", + "total_bytes" + ], + "properties": { + "key": { "type": "string", + "added": "v23.11", "description": [ - "`signature` is not present." + "The key from which the database was traversed." ] }, - "warning_invalid_invoice_request_signature": { - "type": "string", + "total_bytes": { + "type": "u64", + "added": "v23.11", "description": [ - "Incorrect `signature`." + "The total bytes that are stored under the *key*, including the all descendants data and the size of the keys themselves." ] } } } + } + }, + "json_example": [ + { + "request": { + "id": "example:datastoreusage#1", + "method": "datastoreusage", + "params": { + "key": null + } + }, + "response": { + "datastoreusage": { + "key": "[]", + "total_bytes": 0 + } + } }, { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "bolt12 invoice" - ] - }, - "valid": { - "type": "boolean", - "enum": [ - true - ] - } + "request": { + "id": "example:datastoreusage#2", + "method": "datastoreusage", + "params": { + "key": "a" } }, - "then": { - "required": [ - "offer_node_id", - "offer_description", - "invreq_metadata", - "invreq_payer_id", - "invoice_paths", - "invoice_created_at", - "invoice_payment_hash", - "invoice_amount_msat", - "signature" - ], - "additionalProperties": false, - "properties": { - "type": {}, - "valid": {}, - "offer_id": { - "type": "hex", - "description": [ - "The id we use to identify this offer." - ], - "maxLength": 64, - "minLength": 64 - }, - "offer_chains": { - "type": "array", - "description": [ - "Which blockchains this offer is for (missing implies bitcoin mainnet only)." - ], - "items": { + "response": { + "datastoreusage": { + "key": "[a]", + "total_bytes": 32 + } + } + }, + { + "request": { + "id": "example:datastoreusage#3", + "method": "datastoreusage", + "params": { + "key": [ + "a", + "thisissomelongkeythattriestostore46bytesofdata" + ] + } + }, + "response": { + "datastoreusage": { + "key": "[a,thisissomelongkeythattriestostore46bytesofdata]", + "total_bytes": 77 + } + } + } + ], + "author": [ + "Peter Neuroth <> is mainly responsible." + ], + "see_also": [ + "lightning-datastore(7)", + "lightning-deldatastore(7)", + "lightning-listdatastore(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-decode.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.05", + "rpc": "decode", + "title": "Command for decoding an invoice string (low-level)", + "description": [ + "The **decode** RPC command checks and parses `bolt11`, `bolt12`, `rune` or `emergency_recover`. It may decode other formats in future." + ], + "request": { + "required": [ + "string" + ], + "properties": { + "string": { + "type": "string", + "description": [ + "Value to be decoded:", + " * a *bolt11* or *bolt12* string (optionally prefixed by `lightning:` or `LIGHTNING:`) as specified by the BOLT 11 and BOLT 12 specifications.", + " * a *rune* as created by lightning-commando-rune(7).", + " * an *emergency_recover* string generated by hsmtool like `lightning-hsmtool getemergencyrecover `. It holds `emergency.recover` contents and starts with `clnemerg1`." + ] + } + } + }, + "response": { + "required": [ + "type", + "valid" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "bolt12 offer", + "bolt12 invoice", + "bolt12 invoice_request", + "bolt11 invoice", + "rune", + "emergency recover" + ], + "description": [ + "What kind of object it decoded to." + ] + }, + "valid": { + "type": "boolean", + "description": [ + "If this is false, you *MUST* not use the result except for diagnostics!" + ] + } + }, + "allOf": [ + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "bolt12 offer" + ] + }, + "valid": { + "type": "boolean", + "enum": [ + true + ] + } + } + }, + "then": { + "required": [ + "offer_id", + "offer_node_id", + "offer_description" + ], + "additionalProperties": false, + "properties": { + "type": {}, + "valid": {}, + "offer_id": { "type": "hex", "description": [ - "The genesis blockhash." + "The id we use to identify this offer." ], "maxLength": 64, "minLength": 64 - } - }, - "offer_metadata": { - "type": "hex", - "description": [ - "Any metadata the creator of the offer includes." - ] - }, - "offer_currency": { - "type": "string", - "description": [ - "ISO 4217 code of the currency (missing implies Bitcoin)." - ], - "maxLength": 3, - "minLength": 3 - }, - "warning_unknown_offer_currency": { - "type": "string", - "description": [ - "The currency code is unknown (so no `currency_minor_unit`)." - ] - }, - "currency_minor_unit": { - "type": "u32", - "description": [ - "The number of decimal places to apply to amount (if currency known)." - ] - }, - "offer_amount": { - "type": "u64", - "description": [ - "The amount in the `offer_currency` adjusted by `currency_minor_unit`, if any." - ] - }, - "offer_amount_msat": { - "type": "msat", - "description": [ - "The amount in bitcoin (if specified, and no `offer_currency`)." - ] - }, - "offer_description": { - "type": "string", - "description": [ - "The description of the purpose of the offer." - ] - }, - "offer_issuer": { - "type": "string", - "description": [ - "The description of the creator of the offer." - ] - }, - "offer_features": { - "type": "hex", - "description": [ - "The feature bits of the offer." - ] - }, - "offer_absolute_expiry": { - "type": "u64", - "description": [ - "UNIX timestamp of when this offer expires." - ] - }, - "offer_quantity_max": { - "type": "u64", - "description": [ - "The maximum quantity (or, if 0, means any quantity)." - ] - }, - "offer_paths": { - "type": "array", - "description": [ - "Paths to the destination." - ], - "items": { - "type": "object", - "required": [ - "blinding", - "path" + }, + "offer_chains": { + "type": "array", + "description": [ + "Which blockchains this offer is for (missing implies bitcoin mainnet only)." ], - "additionalProperties": false, - "properties": { - "first_node_id": { - "type": "pubkey", - "description": [ - "The (presumably well-known) public key of the start of the path." - ] - }, - "first_scid": { - "added": "v23.05", - "type": "short_channel_id", - "description": "the short channel id of the start of the path (alternative to first_n ode_id)" - }, - "first_scid_dir": { - "added": "v23.05", - "type": "u32", - "description": "which end of the first_scid is the start of the path" - }, - "blinding": { - "type": "pubkey", - "description": [ - "Blinding factor for this path." - ] - }, - "path": { - "type": "array", - "description": [ - "An individual path." - ], - "items": { - "type": "object", - "required": [ - "blinded_node_id", - "encrypted_recipient_data" - ], - "additionalProperties": false, - "properties": { - "blinded_node_id": { - "type": "pubkey", - "description": [ - "Node_id of the hop." - ] - }, - "encrypted_recipient_data": { - "type": "hex", - "description": [ - "Encrypted TLV entry for this hop." - ] - } - } - } - } - } - } - }, - "offer_node_id": { - "type": "pubkey", - "description": [ - "Public key of the offering node." - ] - }, - "offer_recurrence": { - "type": "object", - "description": [ - "How often to this offer should be used." - ], - "required": [ - "period", - "time_unit" - ], - "additionalProperties": false, - "properties": { - "time_unit": { - "type": "u32", - "description": [ - "The BOLT12 time unit." - ] - }, - "time_unit_name": { - "type": "string", - "description": [ - "The name of `time_unit` (if valid)." - ] - }, - "period": { - "type": "u32", - "description": [ - "How many `time_unit` per payment period." - ] - }, - "basetime": { - "type": "u64", - "description": [ - "Period starts at this UNIX timestamp." - ] - }, - "start_any_period": { - "type": "u64", - "description": [ - "You can start at any period (only if `basetime` present)." - ] - }, - "limit": { - "type": "u32", + "items": { + "type": "hash", "description": [ - "Maximum period number for recurrence." + "The genesis blockhash." ] - }, - "paywindow": { + } + }, + "offer_metadata": { + "type": "hex", + "description": [ + "Any metadata the creator of the offer includes." + ] + }, + "offer_currency": { + "type": "string", + "description": [ + "ISO 4217 code of the currency (missing implies Bitcoin)." + ], + "maxLength": 3, + "minLength": 3 + }, + "warning_unknown_offer_currency": { + "type": "string", + "description": [ + "The currency code is unknown (so no `currency_minor_unit`)." + ] + }, + "currency_minor_unit": { + "type": "u32", + "description": [ + "The number of decimal places to apply to amount (if currency known)." + ] + }, + "offer_amount": { + "type": "u64", + "description": [ + "The amount in the `offer_currency` adjusted by `currency_minor_unit`, if any." + ] + }, + "offer_amount_msat": { + "type": "msat", + "description": [ + "The amount in bitcoin (if specified, and no `offer_currency`)." + ] + }, + "offer_description": { + "type": "string", + "description": [ + "The description of the purpose of the offer." + ] + }, + "offer_issuer": { + "type": "string", + "description": [ + "The description of the creator of the offer." + ] + }, + "offer_features": { + "type": "hex", + "description": [ + "The feature bits of the offer." + ] + }, + "offer_absolute_expiry": { + "type": "u64", + "description": [ + "UNIX timestamp of when this offer expires." + ] + }, + "offer_quantity_max": { + "type": "u64", + "description": [ + "The maximum quantity (or, if 0, means any quantity)." + ] + }, + "offer_paths": { + "type": "array", + "description": [ + "Paths to the destination." + ], + "items": { "type": "object", - "description": [ - "When within a period will payment be accepted." - ], - "default": "prior and during the period", "required": [ - "seconds_before", - "seconds_after" + "blinding", + "path" ], "additionalProperties": false, "properties": { - "seconds_before": { - "type": "u32", + "first_node_id": { + "type": "pubkey", "description": [ - "Seconds prior to period start." + "The (presumably well-known) public key of the start of the path." ] }, - "seconds_after": { + "first_scid": { + "added": "v23.05", + "type": "short_channel_id", + "description": "the short channel id of the start of the path (alternative to first_n ode_id)" + }, + "first_scid_dir": { + "added": "v23.05", "type": "u32", + "description": "which end of the first_scid is the start of the path" + }, + "blinding": { + "type": "pubkey", "description": [ - "Seconds after to period start." + "Blinding factor for this path." ] }, - "proportional_amount": { - "type": "boolean", - "enum": [ - true - ], + "path": { + "type": "array", "description": [ - "Amount should be scaled if paid after period start." - ] - } + "An individual path." + ], + "items": { + "type": "object", + "required": [ + "blinded_node_id", + "encrypted_recipient_data" + ], + "additionalProperties": false, + "properties": { + "blinded_node_id": { + "type": "pubkey", + "description": [ + "Node_id of the hop." + ] + }, + "encrypted_recipient_data": { + "type": "hex", + "description": [ + "Encrypted TLV entry for this hop." + ] + } + } + } + } } } - } - }, - "invreq_metadata": { - "type": "hex", - "description": [ - "The payer-provided blob to derive invreq_payer_id." - ] - }, - "invreq_payer_id": { - "type": "hex", - "description": [ - "The payer-provided key." - ] - }, - "invreq_chain": { - "type": "hex", - "description": [ - "Which blockchain this offer is for (missing implies bitcoin mainnet only)." - ], - "maxLength": 64, - "minLength": 64 - }, - "invreq_amount_msat": { - "type": "msat", - "description": [ - "The amount the invoice should be for." - ] - }, - "invreq_features": { - "type": "hex", - "description": [ - "The feature bits of the invoice_request." - ] - }, - "invreq_quantity": { - "type": "u64", - "description": [ - "The number of items to invoice for." - ] - }, - "invreq_payer_note": { - "type": "string", - "description": [ - "A note attached by the payer." - ] - }, - "invreq_recurrence_counter": { - "type": "u32", - "description": [ - "Which number request this is for the same invoice." - ] - }, - "invreq_recurrence_start": { - "type": "u32", - "description": [ - "When we're requesting to start an invoice at a non-zero period." - ] - }, - "invoice_paths": { - "type": "array", - "description": [ - "Paths to pay the destination." - ], - "items": { + }, + "offer_node_id": { + "type": "pubkey", + "description": [ + "Public key of the offering node." + ] + }, + "offer_recurrence": { "type": "object", + "description": [ + "How often to this offer should be used." + ], "required": [ - "blinding", - "payinfo", - "path" + "period", + "time_unit" ], "additionalProperties": false, "properties": { - "first_node_id": { - "type": "pubkey", + "time_unit": { + "type": "u32", "description": [ - "The (presumably well-known) public key of the start of the path." + "The BOLT12 time unit." ] }, - "first_scid": { - "added": "v23.05", - "type": "short_channel_id", - "description": "the short channel id of the start of the path (alternative to first_n ode_id)" + "time_unit_name": { + "type": "string", + "description": [ + "The name of `time_unit` (if valid)." + ] }, - "first_scid_dir": { - "added": "v23.05", + "period": { "type": "u32", - "description": "which end of the first_scid is the start of the path" + "description": [ + "How many `time_unit` per payment period." + ] + }, + "basetime": { + "type": "u64", + "description": [ + "Period starts at this UNIX timestamp." + ] + }, + "start_any_period": { + "type": "u64", + "description": [ + "You can start at any period (only if `basetime` present)." + ] }, - "blinding": { - "type": "pubkey", + "limit": { + "type": "u32", "description": [ - "Blinding factor for this path." + "Maximum period number for recurrence." ] }, - "payinfo": { + "paywindow": { "type": "object", + "description": [ + "When within a period will payment be accepted." + ], + "default": "prior and during the period", "required": [ - "fee_base_msat", - "fee_proportional_millionths", - "cltv_expiry_delta", - "features" + "seconds_before", + "seconds_after" ], "additionalProperties": false, "properties": { - "fee_base_msat": { - "type": "msat", - "description": [ - "Basefee for path." - ] - }, - "fee_proportional_millionths": { + "seconds_before": { "type": "u32", "description": [ - "Proportional fee for path." + "Seconds prior to period start." ] }, - "cltv_expiry_delta": { + "seconds_after": { "type": "u32", "description": [ - "CLTV delta for path." + "Seconds after to period start." ] }, - "features": { - "type": "hex", + "proportional_amount": { + "type": "boolean", + "enum": [ + true + ], "description": [ - "Features allowed for path." + "Amount should be scaled if paid after period start." ] } } - }, - "path": { - "type": "array", - "description": [ - "An individual path." - ], - "items": { - "type": "object", - "required": [ - "blinded_node_id", - "encrypted_recipient_data" - ], - "additionalProperties": false, - "properties": { - "blinded_node_id": { - "type": "pubkey", - "description": [ - "Node_id of the hop." - ] - }, - "encrypted_recipient_data": { - "type": "hex", - "description": [ - "Encrypted TLV entry for this hop." - ] - } - } - } - } - } - } - }, - "invoice_created_at": { - "type": "u64", - "description": [ - "The UNIX timestamp of invoice creation." - ] - }, - "invoice_relative_expiry": { - "type": "u32", - "description": [ - "The number of seconds after *invoice_created_at* when this expires." - ] - }, - "invoice_payment_hash": { - "type": "hex", - "description": [ - "The hash of the *payment_preimage*." - ], - "maxLength": 64, - "minLength": 64 - }, - "invoice_amount_msat": { - "type": "msat", - "description": [ - "The amount required to fulfill invoice." - ] - }, - "invoice_fallbacks": { - "type": "array", - "description": [ - "Onchain addresses." - ], - "items": { - "type": "object", - "required": [ - "version", - "hex" - ], - "additionalProperties": false, - "properties": { - "version": { - "type": "u8", - "description": [ - "Segwit address version." - ] - }, - "hex": { - "type": "hex", - "description": [ - "Raw encoded segwit address." - ] - }, - "address": { - "type": "string", - "description": [ - "Bech32 segwit address." - ] } } - } - }, - "invoice_features": { - "type": "hex", - "description": [ - "The feature bits of the invoice." - ] - }, - "invoice_node_id": { - "type": "pubkey", - "description": [ - "The id to pay (usually the same as offer_node_id)." - ] - }, - "invoice_recurrence_basetime": { - "type": "u64", - "description": [ - "The UNIX timestamp to base the invoice periods on." - ] - }, - "signature": { - "type": "bip340sig", - "description": [ - "BIP-340 signature of the `offer_node_id` on this invoice." - ] - }, - "unknown_invoice_tlvs": { - "type": "array", - "description": [ - "Any extra fields we didn't know how to parse." - ], - "items": { - "type": "object", - "required": [ - "type", - "length", - "value" + }, + "unknown_offer_tlvs": { + "type": "array", + "description": [ + "Any extra fields we didn't know how to parse." ], - "additionalProperties": false, - "properties": { - "type": { - "type": "u64", - "description": [ - "The type." - ] - }, - "length": { - "type": "u64", - "description": [ - "The length." - ] - }, - "value": { - "type": "hex", - "description": [ - "The value." - ] + "items": { + "type": "object", + "required": [ + "type", + "length", + "value" + ], + "additionalProperties": false, + "properties": { + "type": { + "type": "u64", + "description": [ + "The type." + ] + }, + "length": { + "type": "u64", + "description": [ + "The length." + ] + }, + "value": { + "type": "hex", + "description": [ + "The value." + ] + } } } } } } - } - }, - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "bolt12 invoice" - ] - }, - "valid": { - "type": "boolean", - "enum": [ - false - ] + }, + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "bolt12 offer" + ] + }, + "valid": { + "type": "boolean", + "enum": [ + false + ] + } + } + }, + "then": { + "required": [], + "additionalProperties": false, + "properties": { + "type": {}, + "valid": {}, + "offer_id": {}, + "node_id": {}, + "signature": {}, + "chains": {}, + "currency": {}, + "minor_unit": {}, + "warning_unknown_offer_currency": {}, + "amount": {}, + "amount_msat": {}, + "send_invoice": {}, + "description": {}, + "vendor": {}, + "features": {}, + "absolute_expiry": {}, + "paths": {}, + "quantity_max": {}, + "unknown_offer_tlvs": {}, + "recurrence": {}, + "warning_missing_offer_node_id": { + "type": "string", + "description": [ + "`offer_node_id` is not present." + ] + }, + "warning_invalid_offer_description": { + "type": "string", + "description": [ + "`offer_description` is not valid UTF8." + ] + }, + "warning_missing_offer_description": { + "type": "string", + "description": [ + "`offer_description` is not present." + ] + }, + "warning_invalid_offer_currency": { + "type": "string", + "description": [ + "`offer_currency_code` is not valid UTF8." + ] + }, + "warning_invalid_offer_issuer": { + "type": "string", + "description": [ + "`offer_issuer` is not valid UTF8." + ] + } } } }, - "then": { - "required": [], - "additionalProperties": false, - "properties": { - "type": {}, - "valid": {}, - "offer_id": {}, - "offer_chains": {}, - "offer_metadata": {}, - "offer_currency": {}, - "warning_unknown_offer_currency": {}, - "currency_minor_unit": {}, - "offer_amount": {}, - "offer_amount_msat": {}, - "offer_description": {}, - "offer_issuer": {}, - "offer_features": {}, - "offer_absolute_expiry": {}, - "offer_quantity_max": {}, - "offer_paths": {}, - "offer_node_id": {}, - "offer_recurrence": {}, - "invreq_metadata": {}, - "invreq_payer_id": {}, - "invreq_chain": {}, - "invreq_amount_msat": {}, - "invreq_features": {}, - "invreq_quantity": {}, - "invreq_payer_note": {}, - "invreq_node_id": {}, - "invreq_recurrence_counter": {}, - "invreq_recurrence_start": {}, - "warning_invalid_offer_description": { - "type": "string", - "description": [ - "`offer_description` is not valid UTF8." - ] - }, - "warning_missing_offer_description": { - "type": "string", - "description": [ - "`offer_description` is not present." - ] - }, - "warning_invalid_offer_currency": { - "type": "string", - "description": [ - "`offer_currency_code` is not valid UTF8." - ] - }, - "warning_invalid_offer_issuer": { - "type": "string", - "description": [ - "`offer_issuer` is not valid UTF8." - ] - }, - "warning_missing_invreq_metadata": { - "type": "string", - "description": [ - "`invreq_metadata` is not present." - ] - }, - "warning_invalid_invreq_payer_note": { - "type": "string", - "description": [ - "`invreq_payer_note` is not valid UTF8." - ] - }, - "warning_missing_invoice_paths": { - "type": "string", - "description": [ - "`invoice_paths` is not present." - ] - }, - "warning_missing_invoice_blindedpay": { - "type": "string", - "description": [ - "`invoice_blindedpay` is not present." - ] - }, - "warning_missing_invoice_created_at": { - "type": "string", - "description": [ - "`invoice_created_at` is not present." - ] - }, - "warning_missing_invoice_payment_hash": { - "type": "string", - "description": [ - "`invoice_payment_hash` is not present." - ] - }, - "warning_missing_invoice_amount": { - "type": "string", - "description": [ - "`invoice_amount` is not present." - ] - }, - "warning_missing_invoice_recurrence_basetime": { - "type": "string", - "description": [ - "`invoice_recurrence_basetime` is not present." - ] - }, - "warning_missing_invoice_node_id": { - "type": "string", - "description": [ - "`invoice_node_id` is not present." - ] - }, - "warning_missing_invoice_signature": { - "type": "string", - "description": [ - "`signature` is not present." - ] - }, - "warning_invalid_invoice_signature": { - "type": "string", - "description": [ - "Incorrect `signature`." - ] - }, - "fallbacks": { - "type": "array", - "items": { - "type": "object", - "required": [ - "version", - "hex" - ], - "properties": { - "version": {}, - "hex": {}, - "address": {}, - "warning_invoice_fallbacks_version_invalid": { - "type": "string", - "description": [ - "`version` is > 16." - ] - } - } + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "bolt12 invoice_request" + ] + }, + "valid": { + "type": "boolean", + "enum": [ + true + ] } } - } - } - }, - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "bolt11 invoice" - ] - }, - "valid": { - "type": "boolean", - "enum": [ - true - ] - } - } - }, - "then": { - "required": [ - "currency", - "created_at", - "expiry", - "payee", - "min_final_cltv_expiry", - "payment_hash", - "signature" - ], - "additionalProperties": false, - "properties": { - "type": {}, - "valid": {}, - "currency": { - "type": "string", - "description": [ - "The BIP173 name for the currency." - ] - }, - "created_at": { - "type": "u64", - "description": [ - "The UNIX-style timestamp of the invoice." - ] - }, - "expiry": { - "type": "u64", - "description": [ - "The number of seconds this is valid after `created_at`." - ] - }, - "payee": { - "type": "pubkey", - "description": [ - "The public key of the recipient." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Amount the invoice asked for." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage*." - ] - }, - "signature": { - "type": "signature", - "description": [ - "Signature of the *payee* on this invoice." - ] - }, - "description": { - "type": "string", - "description": [ - "The description of the purpose of the purchase." - ] - }, - "description_hash": { - "type": "hash", - "description": [ - "The hash of the description, in place of *description*." - ] - }, - "min_final_cltv_expiry": { - "type": "u32", - "description": [ - "The minimum CLTV delay for the final node." - ] - }, - "payment_secret": { - "type": "secret", - "description": [ - "The secret to hand to the payee node." - ] - }, - "features": { - "type": "hex", - "description": [ - "The features bitmap for this invoice." - ] - }, - "payment_metadata": { - "type": "hex", - "description": [ - "The payment_metadata to put in the payment." - ] - }, - "fallbacks": { - "type": "array", - "description": [ - "Onchain addresses." - ], - "items": { - "type": "object", - "required": [ - "type", - "hex" + }, + "then": { + "required": [ + "offer_node_id", + "offer_description", + "invreq_metadata", + "invreq_payer_id", + "signature" + ], + "additionalProperties": false, + "properties": { + "type": {}, + "valid": {}, + "offer_id": { + "type": "hex", + "description": [ + "The id we use to identify this offer." ], - "additionalProperties": false, - "properties": { - "type": { - "type": "string", - "description": [ - "The address type (if known)." - ], - "enum": [ - "P2PKH", - "P2SH", - "P2WPKH", - "P2WSH", - "P2TR" - ] - }, - "addr": { - "type": "string", - "description": [ - "The address in appropriate format for *type*." - ] - }, - "hex": { - "type": "hex", - "description": [ - "Raw encoded address." - ] - } + "maxLength": 64, + "minLength": 64 + }, + "offer_chains": { + "type": "array", + "description": [ + "Which blockchains this offer is for (missing implies bitcoin mainnet only)." + ], + "items": { + "type": "hex", + "description": [ + "The genesis blockhash." + ], + "maxLength": 64, + "minLength": 64 } - } - }, - "routes": { - "type": "array", - "description": [ - "Route hints to the *payee*." - ], - "items": { + }, + "offer_metadata": { + "type": "hex", + "description": [ + "Any metadata the creator of the offer includes." + ] + }, + "offer_currency": { + "type": "string", + "description": [ + "ISO 4217 code of the currency (missing implies Bitcoin)." + ], + "maxLength": 3, + "minLength": 3 + }, + "warning_unknown_offer_currency": { + "type": "string", + "description": [ + "The currency code is unknown (so no `currency_minor_unit`)." + ] + }, + "currency_minor_unit": { + "type": "u32", + "description": [ + "The number of decimal places to apply to amount (if currency known)." + ] + }, + "offer_amount": { + "type": "u64", + "description": [ + "The amount in the `offer_currency` adjusted by `currency_minor_unit`, if any." + ] + }, + "offer_amount_msat": { + "type": "msat", + "description": [ + "The amount in bitcoin (if specified, and no `offer_currency`)." + ] + }, + "offer_description": { + "type": "string", + "description": [ + "The description of the purpose of the offer." + ] + }, + "offer_issuer": { + "type": "string", + "description": [ + "The description of the creator of the offer." + ] + }, + "offer_features": { + "type": "hex", + "description": [ + "The feature bits of the offer." + ] + }, + "offer_absolute_expiry": { + "type": "u64", + "description": [ + "UNIX timestamp of when this offer expires." + ] + }, + "offer_quantity_max": { + "type": "u64", + "description": [ + "The maximum quantity (or, if 0, means any quantity)." + ] + }, + "offer_paths": { "type": "array", "description": [ - "Hops in the route." + "Paths to the destination." ], "items": { "type": "object", "required": [ - "pubkey", - "short_channel_id", - "fee_base_msat", - "fee_proportional_millionths", - "cltv_expiry_delta" + "blinding", + "path" ], "additionalProperties": false, "properties": { - "pubkey": { + "first_node_id": { "type": "pubkey", "description": [ - "The public key of the node." + "The (presumably well-known) public key of the start of the path." ] }, - "short_channel_id": { + "first_scid": { + "added": "v23.05", "type": "short_channel_id", - "description": [ - "A channel to the next peer." - ] - }, - "fee_base_msat": { - "type": "msat", - "description": [ - "The base fee for payments." - ] + "description": "the short channel id of the start of the path (alternative to first_n ode_id)" }, - "fee_proportional_millionths": { + "first_scid_dir": { + "added": "v23.05", "type": "u32", + "description": "which end of the first_scid is the start of the path" + }, + "blinding": { + "type": "pubkey", "description": [ - "The parts-per-million fee for payments." + "Blinding factor for this path." ] }, - "cltv_expiry_delta": { - "type": "u32", + "path": { + "type": "array", "description": [ - "The CLTV delta across this hop." - ] + "An individual path." + ], + "items": { + "type": "object", + "required": [ + "blinded_node_id", + "encrypted_recipient_data" + ], + "additionalProperties": false, + "properties": { + "blinded_node_id": { + "type": "pubkey", + "description": [ + "Node_id of the hop." + ] + }, + "encrypted_recipient_data": { + "type": "hex", + "description": [ + "Encrypted TLV entry for this hop." + ] + } + } + } } } } - } - }, - "extra": { - "type": "array", - "description": [ - "Any extra fields we didn't know how to parse." - ], - "items": { + }, + "offer_node_id": { + "type": "pubkey", + "description": [ + "Public key of the offering node." + ] + }, + "offer_recurrence": { "type": "object", + "description": [ + "How often to this offer should be used." + ], "required": [ - "tag", - "data" + "period", + "time_unit" ], "additionalProperties": false, "properties": { - "tag": { - "type": "string", + "time_unit": { + "type": "u32", "description": [ - "The bech32 letter which identifies this field." - ], - "maxLength": 1, - "minLength": 1 + "The BOLT12 time unit." + ] }, - "data": { + "time_unit_name": { "type": "string", "description": [ - "The bech32 data for this field." + "The name of `time_unit` (if valid)." + ] + }, + "period": { + "type": "u32", + "description": [ + "How many `time_unit` per payment period." + ] + }, + "basetime": { + "type": "u64", + "description": [ + "Period starts at this UNIX timestamp." + ] + }, + "start_any_period": { + "type": "u64", + "description": [ + "You can start at any period (only if `basetime` present)." + ] + }, + "limit": { + "type": "u32", + "description": [ + "Maximum period number for recurrence." ] + }, + "paywindow": { + "type": "object", + "description": [ + "When within a period will payment be accepted." + ], + "default": "prior and during the period", + "required": [ + "seconds_before", + "seconds_after" + ], + "additionalProperties": false, + "properties": { + "seconds_before": { + "type": "u32", + "description": [ + "Seconds prior to period start." + ] + }, + "seconds_after": { + "type": "u32", + "description": [ + "Seconds after to period start." + ] + }, + "proportional_amount": { + "type": "boolean", + "enum": [ + true + ], + "description": [ + "Amount should be scaled if paid after period start." + ] + } + } } } - } - } - } - } - }, - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "rune" - ] - }, - "valid": { - "type": "boolean", - "enum": [ - true - ] - } - } - }, - "then": { - "required": [ - "string", - "restrictions", - "valid" - ], - "additionalProperties": false, - "properties": { - "unique_id": { - "type": "string", - "description": [ - "Unique id (always a numeric id on runes we create)." - ] - }, - "version": { - "type": "string", - "description": [ - "Rune version, not currently set on runes we create." - ] - }, - "valid": { - "type": "boolean", - "enum": [ - true - ] - }, - "type": {}, - "string": { - "type": "string", - "description": [ - "The string encoding of the rune." - ] - }, - "restrictions": { - "type": "array", - "description": [ - "Restrictions built into the rune: all must pass." - ], - "items": { - "type": "object", - "required": [ - "alternatives", - "summary" + }, + "invreq_metadata": { + "type": "hex", + "description": [ + "The payer-provided blob to derive invreq_payer_id." + ] + }, + "invreq_payer_id": { + "type": "hex", + "description": [ + "The payer-provided key." + ] + }, + "invreq_chain": { + "type": "hex", + "description": [ + "Which blockchain this offer is for (missing implies bitcoin mainnet only)." ], - "additionalProperties": false, - "properties": { - "alternatives": { - "type": "array", - "description": [ - "Each way restriction can be met: any can pass." - ], - "items": { - "type": "string", + "maxLength": 64, + "minLength": 64 + }, + "invreq_amount_msat": { + "type": "msat", + "description": [ + "The amount the invoice should be for." + ] + }, + "invreq_features": { + "type": "hex", + "description": [ + "The feature bits of the invoice_request." + ] + }, + "invreq_quantity": { + "type": "u64", + "description": [ + "The number of items to invoice for." + ] + }, + "invreq_payer_note": { + "type": "string", + "description": [ + "A note attached by the payer." + ] + }, + "invreq_recurrence_counter": { + "type": "u32", + "description": [ + "Which number request this is for the same invoice." + ] + }, + "invreq_recurrence_start": { + "type": "u32", + "description": [ + "When we're requesting to start an invoice at a non-zero period." + ] + }, + "signature": { + "type": "bip340sig", + "description": [ + "BIP-340 signature of the `invreq_payer_id` on this invoice_request." + ] + }, + "unknown_invoice_request_tlvs": { + "type": "array", + "description": [ + "Any extra fields we didn't know how to parse." + ], + "items": { + "type": "object", + "required": [ + "type", + "length", + "value" + ], + "additionalProperties": false, + "properties": { + "type": { + "type": "u64", + "description": [ + "The type." + ] + }, + "length": { + "type": "u64", + "description": [ + "The length." + ] + }, + "value": { + "type": "hex", "description": [ - "The alternative of form fieldname condition fieldname." + "The value." ] } - }, - "summary": { - "type": "string", - "description": [ - "Human-readable summary of this restriction." - ] } } } } } - } - }, - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "rune" - ] - }, - "valid": { - "type": "boolean", - "enum": [ - false - ] - } - } - }, - "then": { - "required": [ - "valid" - ], - "additionalProperties": false, - "properties": { - "valid": { - "type": "boolean", - "enum": [ - false - ] - }, - "type": {}, - "warning_rune_invalid_utf8": { - "type": "string", - "description": [ - "The rune contains invalid UTF-8 strings." - ] - }, - "hex": { - "type": "hex", - "description": [ - "The raw rune in hex." - ] - } - } - } - }, - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "emergency recover" - ] - }, - "valid": { - "type": "boolean", - "enum": [ - true - ] - } - } }, - "then": { - "required": [ - "decrypted" - ], - "additionalProperties": false, - "properties": { - "type": {}, - "valid": {}, - "decrypted": { - "type": "hex", - "description": [ - "The decrypted value of the provided bech32 of emergency.recover." - ], - "added": "v23.11" + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "bolt12 invoice_request" + ] + }, + "valid": { + "type": "boolean", + "enum": [ + false + ] + } } - } - } - } - ] - }, - "json_example": [ - { - "request": { - "id": "example:decode#1", - "method": "decode", - "params": [ - "zm0x_eLgHexaTvZn3Cz7gb_YlvrlYGDo_w4BYlR9SS09MSZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl" - ] - }, - "response": { - "type": "rune", - "unique_id": "1", - "string": "ce6d31fde2e01dec5a4ef667dc2cfb81bfd896fae56060e8ff0e0162547d492d:=1&method^list|method^get|method=summary&method/listdatastore", - "restrictions": [ - { - "alternatives": [ - "method^list", - "method^get", - "method=summary" - ], - "summary": "method (of command) starts with 'list' OR method (of command) starts with 'get' OR method (of command) equal to 'summary'" }, - { - "alternatives": [ - "method/listdatastore" - ], - "summary": "method (of command) unequal to 'listdatastore'" - } - ], - "valid": true - } - }, - { - "request": { - "id": "example:decode#2", - "method": "decode", - "params": [ - "lnbcrt1m1pja0f2hsp5xyssdvdsu24dmmesrt6x84wfrm4mscsnzq7hl2suzeu90wy6g53qpp5zyyu3anwfsfl64pewe0tg7j28map2wwnhvaam5nt70rlwxa0cegqdqjv3jhxcmjd9c8g6t0dcxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqvuqqqqgqqqqqqqlgqqqq86qqqc9qxpqysgq7u4f99u4kepagme27t5c3gdl7czlnjaw7kxryxgm87w2j02j3g94r2vrukhpgedhcdkcdec27m7jrl2lvcr6uh3rdv9lgpz0vc0zcfcqnugjdw" - ] - }, - "response": { - "type": "bolt11 invoice", - "currency": "bcrt", - "created_at": 1708631383, - "expiry": 604800, - "payee": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "amount_msat": 100000000, - "description": "description", - "min_final_cltv_expiry": 5, - "payment_secret": "312106b1b0e2aaddef301af463d5c91eebb86213103d7faa1c167857b89a4522", - "features": "02024100", - "routes": [ - [ - { - "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "short_channel_id": "103x1x0", - "fee_base_msat": 1000, - "fee_proportional_millionths": 1000, - "cltv_expiry_delta": 6 - } - ] - ], - "payment_hash": "1109c8f66e4c13fd5439765eb47a4a3efa1539d3bb3bddd26bf3c7f71bafc650", - "signature": "3045022100f72a929795b643d46f2af2e988a1bff605f9cbaef58c32191b3f9ca93d528a0b022051a983e5ae1465b7c36d86e70af6fd21fd5f6607ae5e236b0bf4044f661e2c27", - "valid": true - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-pay(7)", - "lightning-offer(7)", - "lightning-fetchinvoice(7)", - "lightning-sendinvoice(7)", - "lightning-commando-rune(7)" - ], - "resources": [ - "[BOLT #11](https://github.com/lightning/bolts/blob/master/11-payment-encoding.md)", - "", - "[BOLT #12](https://github.com/rustyrussell/lightning-rfc/blob/guilt/offers/12-offer-encoding.md)", - "(experimental, [bolt](https://github.com/lightning/bolts) #798)", - "", - "Main web site: " - ] - }, - "lightning-decodepay.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.05", - "rpc": "decodepay", - "title": "Command for decoding a bolt11 string (low-level)", - "description": [ - "The **decodepay** RPC command checks and parses a *bolt11* string as specified by the BOLT 11 specification." - ], - "request": { - "required": [ - "bolt11" - ], - "properties": { - "bolt11": { - "type": "string", - "description": [ - "Bolt11 invoice to decode." - ] - }, - "description": { - "type": "string", - "description": [ - "Description of the invoice to decode." - ] - } - } - }, - "response": { - "required": [ - "currency", - "created_at", - "expiry", - "payee", - "min_final_cltv_expiry", - "payment_hash", - "signature" - ], - "properties": { - "currency": { - "type": "string", - "description": [ - "The BIP173 name for the currency." - ] - }, - "created_at": { - "type": "u64", - "description": [ - "The UNIX-style timestamp of the invoice." - ] - }, - "expiry": { - "type": "u64", - "description": [ - "The number of seconds this is valid after *timestamp*." - ] - }, - "payee": { - "type": "pubkey", - "description": [ - "The public key of the recipient." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Amount the invoice asked for." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage*." - ] - }, - "signature": { - "type": "signature", - "description": [ - "Signature of the *payee* on this invoice." - ] - }, - "description": { - "type": "string", - "description": [ - "The description of the purpose of the purchase." - ] - }, - "description_hash": { - "type": "hash", - "description": [ - "The hash of the description, in place of *description*." - ] - }, - "min_final_cltv_expiry": { - "type": "u32", - "description": [ - "The minimum CLTV delay for the final node." - ] - }, - "payment_secret": { - "type": "hash", - "description": [ - "The secret to hand to the payee node." - ] - }, - "features": { - "type": "hex", - "description": [ - "The features bitmap for this invoice." - ] - }, - "payment_metadata": { - "type": "hex", - "description": [ - "The payment_metadata to put in the payment." - ] - }, - "fallbacks": { - "type": "array", - "description": [ - "Onchain addresses." - ], - "items": { - "type": "object", - "required": [ - "type", - "hex" - ], - "additionalProperties": false, - "properties": { - "type": { - "type": "string", - "description": [ - "The address type (if known)." - ], - "enum": [ - "P2PKH", - "P2SH", - "P2WPKH", - "P2WSH", - "P2TR" - ] - }, - "addr": { - "type": "string", - "description": [ - "The address in appropriate format for *type*." - ] - }, - "hex": { - "type": "hex", - "description": [ - "Raw encoded address." - ] - } - } - } - }, - "routes": { - "type": "array", - "description": [ - "Route hints to the *payee*." - ], - "items": { - "type": "array", - "description": [ - "Hops in the route." - ], - "items": { - "type": "object", - "required": [ - "pubkey", - "short_channel_id", - "fee_base_msat", - "fee_proportional_millionths", - "cltv_expiry_delta" - ], + "then": { + "required": [], "additionalProperties": false, "properties": { - "pubkey": { - "type": "pubkey", + "type": {}, + "valid": {}, + "offer_id": {}, + "offer_chains": {}, + "offer_metadata": {}, + "offer_currency": {}, + "warning_unknown_offer_currency": {}, + "currency_minor_unit": {}, + "offer_amount": {}, + "offer_amount_msat": {}, + "offer_description": {}, + "offer_issuer": {}, + "offer_features": {}, + "offer_absolute_expiry": {}, + "offer_quantity_max": {}, + "offer_paths": {}, + "offer_node_id": {}, + "offer_recurrence": {}, + "invreq_metadata": {}, + "invreq_payer_id": {}, + "invreq_chain": {}, + "invreq_amount_msat": {}, + "invreq_features": {}, + "invreq_quantity": {}, + "invreq_payer_note": {}, + "invreq_recurrence_counter": {}, + "invreq_recurrence_start": {}, + "warning_invalid_offer_description": { + "type": "string", "description": [ - "The public key of the node." + "`offer_description` is not valid UTF8." ] }, - "short_channel_id": { - "type": "short_channel_id", + "warning_missing_offer_description": { + "type": "string", "description": [ - "A channel to the next peer." + "`offer_description` is not present." ] }, - "fee_base_msat": { - "type": "msat", + "warning_invalid_offer_currency": { + "type": "string", "description": [ - "The base fee for payments." + "`offer_currency_code` is not valid UTF8." ] }, - "fee_proportional_millionths": { - "type": "u32", + "warning_invalid_offer_issuer": { + "type": "string", "description": [ - "The parts-per-million fee for payments." + "`offer_issuer` is not valid UTF8." ] }, - "cltv_expiry_delta": { - "type": "u32", + "warning_missing_invreq_metadata": { + "type": "string", + "description": [ + "`invreq_metadata` is not present." + ] + }, + "warning_missing_invreq_payer_id": { + "type": "string", + "description": [ + "`invreq_payer_id` is not present." + ] + }, + "warning_invalid_invreq_payer_note": { + "type": "string", + "description": [ + "`invreq_payer_note` is not valid UTF8." + ] + }, + "warning_missing_invoice_request_signature": { + "type": "string", + "description": [ + "`signature` is not present." + ] + }, + "warning_invalid_invoice_request_signature": { + "type": "string", "description": [ - "The CLTV delta across this hop." + "Incorrect `signature`." ] } } } - } - }, - "extra": { - "type": "array", - "description": [ - "Any extra fields we didn't know how to parse." - ], - "items": { - "type": "object", - "required": [ - "tag", - "data" - ], - "additionalProperties": false, - "properties": { - "tag": { - "type": "string", - "description": [ - "The bech32 letter which identifies this field." - ], - "maxLength": 1, - "minLength": 1 - }, - "data": { - "type": "string", - "description": [ - "The bech32 data for this field." - ] - } - } - } - } - }, - "post_return_value_notes": [ - "Technically, the *description* field is optional if a *description_hash* field is given, but in this case **decodepay** will only succeed if the optional *description* field is passed and matches the *description_hash*. In practice, these are currently unused." - ] - }, - "json_example": [ - { - "request": { - "id": "example:decodepay#1", - "method": "decodepay", - "params": { - "bolt11": "lnbcrt110u1pjmr5lzsp5sfjyj3xn7ux592k36hmmt4ax98n6lgct22wvj54yck0upcmep63qpp5qu436g855lr40ftdt7csatk5pdvtdzzfmfqluwtvm0fds95jsadqdpq0pzk7s6j8y69xjt6xe25j5j4g44hsatdxqyjw5qcqp99qxpqysgquwma3zrw4cd8e8j4u9uh4gxukaacckse64kx2l9dqv8rvrysdq5r5dt38t9snqj9u5ar07h2exr4fg56wpudkhkk7gtxlyt72ku5fpqqd4fnlk", - "description": null - } - }, - "response": { - "currency": "bcrt", - "created_at": 1706152930, - "expiry": 604800, - "payee": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount_msat": 11000000, - "description": [ - "XEoCR94SIz6UIRUEkxum." - ], - "min_final_cltv_expiry": 5, - "payment_secret": "82644944d3f70d42aad1d5f7b5d7a629e7afa30b529cc952a4c59fc0e3790ea2", - "features": "02024100", - "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", - "signature": "3045022100e3b7d8886eae1a7c9e55e1797aa0dcb77b8c5a19d56c657cad030e360c90682802203a35713acb098245e53a37faeac98754a29a7078db5ed6f2166f917e55b94484" - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-pay(7)", - "lightning-getroute(7)", - "lightning-sendpay(7)" - ], - "resources": [ - "[BOLT #11](https://github.com/lightning/bolts/blob/master/11-payment-encoding.md)", - "", - "Main web site: " - ] - }, - "lightning-deldatastore.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "deldatastore", - "title": "Command for removing (plugin) data", - "description": [ - "The **deldatastore** RPC command allows plugins to delete data it has stored in the Core Lightning database.", - "", - "The command fails if the *key* isn't present, or if *generation* is specified and the generation of the data does not exactly match." - ], - "request": { - "required": [ - "key" - ], - "properties": { - "key": { - "oneOf": [ - { - "type": "array", - "description": [ - "Key is an array of values (though a single value is treated as a one-element array), to form a heirarchy. Using the first element of the key as the plugin name (e.g. [ 'summary' ]) is recommended. A key can either have children or a value, never both: parents are created and removed automatically." - ], - "items": { - "type": "string" + }, + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "bolt12 invoice" + ] + }, + "valid": { + "type": "boolean", + "enum": [ + true + ] + } } }, - { - "type": "string" - } - ] - }, - "generation": { - "type": "u64", - "description": [ - "If specified, means that the update will fail if the previously-existing data is not exactly that generation. This allows for simple atomicity. This is only legal with mode `must-replace` or `must-append`." - ] - } - } - }, - "response": { - "required": [ - "key" - ], - "properties": { - "key": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Part of the key added to the datastore." - ] - } - }, - "generation": { - "type": "u64", - "description": [ - "The number of times this has been updated." - ] - }, - "hex": { - "type": "hex", - "description": [ - "The hex data which has removed from the datastore." - ] - }, - "string": { - "type": "string", - "description": [ - "The data as a string, if it's valid utf-8." - ] - } - } - }, - "errors": [ - "The following error codes may occur:", - "", - "- 1200: the key does not exist", - "- 1201: the key does exist, but the generation is wrong", - "- -32602: invalid parameters" - ], - "json_example": [ - { - "request": { - "id": "example:deldatastore#1", - "method": "deldatastore", - "params": { - "key": "otherkey", - "generation": 1 - } - }, - "response": { - "key": [ - "otherkey" - ], - "generation": 1, - "hex": "6f746865726461746161", - "string": "otherdataa" - } - }, - { - "request": { - "id": "example:deldatastore#2", - "method": "deldatastore", - "params": { - "key": [ - "a" - ], - "generation": null - } - }, - "response": { - "key": [ - "a" - ], - "generation": 0, - "hex": "6176616c", - "string": "aval" - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-listdatastore(7)", - "lightning-datastore(7)", - "lightning-datastoreusage(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-delforward.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "delforward", - "title": "Command for removing a forwarding entry", - "description": [ - "The **delforward** RPC command removes a single forward from **listforwards**, using the uniquely-identifying *in_channel* and *in_htlc_id* (and, as a sanity check, the *status*) given by that command.", - "", - "This command is mainly used by the *autoclean* plugin (see lightningd- config(7)), As these database entries are only kept for your own analysis, removing them has no effect on the running of your node." - ], - "request": { - "required": [ - "in_channel", - "in_htlc_id", - "status" - ], - "properties": { - "in_channel": { - "type": "short_channel_id", - "description": [ - "Only the matching forwards on the given inbound channel are deleted. Note: for **listforwards** entries without an *in_htlc_id* entry (no longer created in v22.11, but can exist from older versions), a value of 18446744073709551615 can be used, but then it will delete *all* entries without *in_htlc_id* for this *in_channel* and *status*." - ] - }, - "in_htlc_id": { - "type": "u64", - "description": [ - "The unique HTLC id the sender gave this (not present if incoming channel was closed before upgrade to v22.11)." - ] - }, - "status": { - "type": "string", - "description": [ - "The status of the forward to delete. You cannot delete forwards which have status *offered* (i.e. are currently active)." - ], - "enum": [ - "settled", - "local_failed", - "failed" - ] - } - } - }, - "response": { - "required": [], - "properties": {} - }, - "errors": [ - "The following errors may be reported:", - "", - "- 1401: The forward specified does not exist." - ], - "json_example": [ - { - "request": { - "id": "example:delforward#1", - "method": "delforward", - "params": { - "in_channel": "103x1x0", - "in_htlc_id": 2, - "status": "local_failed" - } - }, - "response": {} - }, - { - "request": { - "id": "example:delforward#2", - "method": "delforward", - "params": [ - "103x1x0", - 1, - "failed" - ] - }, - "response": {} - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-autoclean(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-delinvoice.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "delinvoice", - "title": "Command for removing an invoice (or just its description)", - "description": [ - "The **delinvoice** RPC command removes an invoice with *status* as given in **listinvoices**, or with *desconly* set, removes its description." - ], - "request": { - "required": [ - "label", - "status" - ], - "properties": { - "label": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "u64" - } - ], - "description": [ - "Label of the invoice to be deleted." - ] - }, - "status": { - "type": "string", - "description": [ - "Label of the invoice to be deleted. The caller should be particularly aware of the error case caused by the *status* changing just before this command is invoked!" - ], - "enum": [ - "paid", - "expired", - "unpaid" - ] - }, - "desconly": { - "type": "boolean", - "description": [ - "If set to True, the invoice is not deleted, but has its description removed (this can save space with very large descriptions, as would be used with lightning-invoice(7) *deschashonly*." - ] - } - } - }, - "response": { - "required": [ - "label", - "payment_hash", - "status", - "created_index", - "expires_at" - ], - "properties": { - "label": { - "type": "string", - "description": [ - "Unique label given at creation time." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "BOLT11 string." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "BOLT12 string." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount required to pay this invoice." - ] - }, - "description": { - "type": "string", - "description": [ - "Description used in the invoice." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "created_index": { - "type": "u64", - "added": "v23.08", - "description": [ - "1-based index indicating order this invoice was created in." - ] - }, - "updated_index": { - "type": "u64", - "added": "v23.08", - "description": [ - "1-based index indicating order this invoice was changed (only present if it has changed since creation)." - ] - }, - "status": { - "type": "string", - "description": [ - "State of invoice." - ], - "enum": [ - "paid", - "expired", - "unpaid" - ] - }, - "expires_at": { - "type": "u64", - "description": [ - "UNIX timestamp when invoice expires (or expired)." - ] - } - }, - "allOf": [ - { - "if": { - "required": [ - "bolt12" - ] - }, - "then": { - "required": [], - "additionalProperties": false, - "properties": { - "label": {}, - "bolt12": {}, - "status": {}, - "expires_at": {}, - "msatoshi": {}, - "amount_msat": {}, - "description": {}, - "payment_hash": {}, - "pay_index": {}, - "created_index": {}, - "updated_index": {}, - "amount_received_msat": {}, - "paid_at": {}, - "payment_preimage": {}, - "local_offer_id": { - "type": "hex", - "description": [ - "Offer for which this invoice was created." - ] - }, - "invreq_payer_note": { - "type": "string", - "description": [ - "The optional *invreq_payer_note* from invoice_request which created this invoice." - ] - } - } - }, - "else": { - "required": [ - "bolt11" - ], - "additionalProperties": false, - "properties": { - "label": {}, - "bolt11": {}, - "status": {}, - "expires_at": {}, - "msatoshi": {}, - "amount_msat": {}, - "description": {}, - "payment_hash": {}, - "pay_index": {}, - "created_index": {}, - "updated_index": {}, - "amount_received_msat": {}, - "msatoshi_received": {}, - "paid_at": {}, - "payment_preimage": {} - } - } - }, - { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "paid" - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "pay_index", - "amount_received_msat", - "paid_at", - "payment_preimage" - ], - "properties": { - "label": {}, - "bolt11": {}, - "bolt12": {}, - "status": {}, - "expires_at": {}, - "msatoshi": {}, - "amount_msat": {}, - "description": {}, - "payment_hash": {}, - "invreq_payer_note": {}, - "local_offer_id": {}, - "created_index": {}, - "updated_index": {}, - "pay_index": { - "type": "u64", - "description": [ - "Unique index for this invoice payment." - ] - }, - "amount_received_msat": { - "type": "msat", - "description": [ - "How much was actually received." - ] - }, - "paid_at": { - "type": "u64", - "description": [ - "UNIX timestamp of when payment was received." - ] - }, - "payment_preimage": { - "type": "secret", - "description": [ - "SHA256 of this is the *payment_hash* offered in the invoice." - ] - } - } - }, - "else": { - "additionalProperties": false, - "properties": { - "label": {}, - "bolt11": {}, - "bolt12": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "description": {}, - "payment_hash": {}, - "expires_at": {}, - "created_index": {}, - "updated_index": {}, - "pay_index": {}, - "invreq_payer_note": {}, - "local_offer_id": {} - } - } - } - ], - "pre_return_value_notes": [ - "Note: The return is the same as an object from lightning-listinvoices(7)." - ] - }, - "errors": [ - "The following errors may be reported:", - "", - "- -1: Database error.", - "- 905: An invoice with that label does not exist.", - "- 906: The invoice *status* does not match the parameter. An error object will be returned as error *data*, containing *current_status* and *expected_status* fields. This is most likely due to the *status* of the invoice changing just before this command is invoked.", - "- 908: The invoice already has no description, and *desconly* was set." - ], - "json_example": [ - { - "request": { - "id": "example:delinvoice#1", - "method": "delinvoice", - "params": { - "label": "invlabel2", - "status": "unpaid", - "desconly": true - } - }, - "response": { - "label": "invlabel2", - "bolt11": "lnbcrt420p1pja0tefsp5vvzg40t4g24l0eqk0jch7mc6jm3ec52ts8w8gwzpwtx9c8nv05rspp533e9csxurt7j9sn2cx7hsn6m00475qgrau8sux5r7djpdedwy2fshp5xqsmrtgfcwsnhxcxmf3tuc65kl6fxvqhvujfmxw2kpeh95yy2x8sxqyjw5qcqp99qxpqysgqgfjrz4q5zcq2lluxxg9h475mq2d3w0tpdstm5274zmhadjl8cqapylfskzk96apka5599a2flm90rmavsk7q8mhh87yle3sgh5vrlycq72fern", - "payment_hash": "8c725c40dc1afd22c26ac1bd784f5b7bebea0103ef0f0e1a83f36416e5ae2293", - "amount_msat": 42, - "status": "unpaid", - "expires_at": 1709238697, - "created_index": 3 - } - }, - { - "request": { - "id": "example:delinvoice#2", - "method": "delinvoice", - "params": { - "label": "keysend-1708640419.666098582", - "status": "paid", - "desconly": null - } - }, - "response": { - "label": "keysend-1708640419.666098582", - "bolt11": "lnbcrt1pja0j9rsp5tg3zvj846gcdzw394njazq40s946sq2ur3hkl4xu4xudtjdtckxspp5fuunrfzsnyz2uxjmg2n95mqhghv4fpvv2kud3kvq4fkys3vmzu5sdqvddjhjum9dejqxqyjw5qcqp99qxpqysgqwt7r0gjlgt7zrfldc3um9myfc36acpqnsdn77c2m42facjtps30yufc5nsmwzhgexlj59f6xa5hess6e3tqrxynt9fejzj3rrshddtcqnappmj", - "payment_hash": "4f3931a4509904ae1a5b42a65a6c1745d954858c55b8d8d980aa6c48459b1729", - "status": "paid", - "pay_index": 1, - "amount_received_msat": 10000000, - "paid_at": 1708640419, - "payment_preimage": "b760af47f456a217e8dfda21a282f1f78c903487c1b21b3b318135f75aa3bf11", - "description": "keysend", - "expires_at": 1709245219, - "created_index": 1, - "updated_index": 1 - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-listinvoices(7)", - "lightning-waitinvoice(7)", - "lightning-invoice(7)", - "lightning-autoclean-status(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-delpay.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "delpay", - "title": "Command for removing a completed or failed payment", - "description": [ - "The **delpay** RPC command deletes a payment with the given `payment_hash` if its status is either `complete` or `failed`. If *partid* and *groupid* are not specified, all payment parts with matchin status are deleted." - ], - "request": { - "required": [ - "payment_hash", - "status" - ], - "properties": { - "payment_hash": { - "type": "hash", - "description": [ - "The unique identifier of a payment." - ] - }, - "status": { - "type": "string", - "description": [ - "Expected status of the payment. Only deletes if the payment status matches. Deleting a `pending` payment will return an error." - ], - "enum": [ - "complete", - "failed" - ] - }, - "partid": { - "type": "u64", - "description": [ - "Specific partid to delete (must be paired with *groupid*)." - ] - }, - "groupid": { - "type": "u64", - "description": [ - "Specific groupid to delete (must be paired with *partid*)." - ] - } - }, - "pairedWith": [ - [ - "partid", - "groupid" - ] - ] - }, - "response": { - "required": [ - "payments" - ], - "properties": { - "payments": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "created_index", - "id", - "payment_hash", - "status", - "amount_sent_msat", - "created_at" - ], - "properties": { - "created_index": { - "added": "v23.11", - "type": "u64", - "description": [ - "1-based index indicating order this payment was created in." - ] - }, - "id": { - "type": "u64", - "description": [ - "Old synonym for created_index." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "status": { - "type": "string", - "enum": [ - "pending", - "failed", - "complete" - ], - "description": [ - "Status of the payment." - ] - }, - "amount_sent_msat": { - "type": "msat", - "description": [ - "The amount we actually sent, including fees." - ] - }, - "partid": { - "type": "u64", - "description": [ - "Unique ID within this (multi-part) payment." - ] - }, - "destination": { - "type": "pubkey", - "description": [ - "The final destination of the payment if known." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount the destination received, if known." - ] - }, - "created_at": { - "type": "u64", - "description": [ - "The UNIX timestamp showing when this payment was initiated." - ] - }, - "updated_index": { - "added": "v23.11", - "type": "u64", - "description": [ - "1-based index indicating order this payment was changed (only present if it has changed since creation)." - ] - }, - "completed_at": { - "type": "u64", - "description": [ - "The UNIX timestamp showing when this payment was completed." - ] - }, - "groupid": { - "type": "u64", - "description": [ - "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash." - ] - }, - "payment_preimage": { - "type": "secret", - "description": [ - "Proof of payment." - ] - }, - "label": { - "type": "string", - "description": [ - "The label, if given to sendpay." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "The bolt11 string (if pay supplied one)." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 string (if supplied for pay: **experimental-offers** only)." - ] - }, - "erroronion": { - "type": "hex", - "description": [ - "The error onion returned on failure, if any." - ] - } - } - } - } - }, - "pre_return_value_notes": [ - "The returned format is the same as lightning-listsendpays(7). If the payment is a multi-part payment (MPP) the command return a list of payments will be returned -- one payment object for each partid." - ] - }, - "json_example": [ - { - "request": { - "id": "example:delpay#1", - "method": "delpay", - "params": { - "payment_hash": "4fa2f1b001067ec06d7f95b8695b8acd9ef04c1b4d1110e3b94e1fa0687bb1e0", - "status": "complete" - } - }, - "response": { - "payments": [ - { - "id": 1, - "payment_hash": "8dfd6538eeb33811c9114a75f792a143728d7f05643f38c3d574d3097e8910c0", - "destination": "0219f8900ee78a89f050c24d8b69492954f9fdbabed753710845eb75d3a75a5880", - "msatoshi": 1000, - "amount_msat": "1000msat", - "msatoshi_sent": 1000, - "amount_sent_msat": "1000msat", - "created_at": 1596224858, - "status": "complete", - "payment_preimage": "35bd4e2b481a1a84a22215b5372672cf81460a671816960ddb206464359e1822", - "bolt11": "lntb10n1p0jga20pp53h7k2w8wkvuprjg3ff6l0y4pgdeg6lc9vsln3s74wnfsjl5fzrqqdqdw3jhxazldahx2xqyjw5qcqp2sp5wut5jnhr6n7jd5747ky2g5flmw7hgx9yjnqzu60ps2jf6f7tc0us9qy9qsqu2a0k37nckl62005p69xavlkydkvhnypk4dphffy4x09zltwh9437ad7xkl83tefdarzhu5t30ju5s56wlrg97qkx404pq3srfc425cq3ke9af" - } - ] - } - }, - { - "request": { - "id": "example:delpay#2", - "method": "delpay", - "params": [ - "c9d4547473d0d646f1fdd8ca7f01803e4d31ceab01df33c79456f9c24b04034e", - "failed" - ] - }, - "response": { - "payments": [ - { - "created_index": 2, - "id": 2, - "payment_hash": "c9d4547473d0d646f1fdd8ca7f01803e4d31ceab01df33c79456f9c24b04034e", - "groupid": 1, - "updated_index": 2, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "amount_msat": 100000, - "amount_sent_msat": 100002, - "created_at": 1706316468, - "completed_at": 1706316471, - "status": "failed", - "bolt11": "lnbcrt1u1pjmg54nsp5ke626txv6wwwmqmpuy63t3jnu9hqxwj880zsfkkj7jjqagdaz2sqpp5e829garn6rtydu0amr987qvq8exnrn4tq80n83u52muuyjcyqd8qdq8v3jhxccxqyjw5qcqp99qxpqysgqalktfwy9svsamvvvrzzzzpdaa4rh7n6s5p7t9lx7qv0raz4vnm9knkh5ury3u5cmnhx2gms98nxkclm3833uhjrlnzmftc685vz2f0gpfnjy4y" - } - ] - } - }, - { - "request": { - "id": "example:delpay#3", - "method": "delpay", - "params": { - "payment_hash": "bbc35e0a46d1483292a4ff8d4daaceaab8c3c084dd835be4128785b52e469c64", - "status": "complete", - "groupid": 1, - "partid": 1 - } - }, - "response": { - "payments": [ - { - "created_index": 3, - "id": 3, - "payment_hash": "bbc35e0a46d1483292a4ff8d4daaceaab8c3c084dd835be4128785b52e469c64", - "groupid": 1, - "updated_index": 3, - "partid": 1, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "amount_msat": 100000, - "amount_sent_msat": 102100, - "created_at": 1708641193, - "completed_at": 1708641194, - "status": "complete", - "payment_preimage": "a6ebb1cfbf69e76200f196f1eafd28a3d850633499c223a7eb7a7dba3b995286" - } - ] - } - } - ], - "errors": [ - "On failure, an error is returned. If the lightning process fails before responding, the", - "caller should use lightning-listsentpays(7) or lightning-listpays(7) to query whether this payment was deleted or not.", - "", - "The following error codes may occur:", - "", - "- -32602: Parameter missed or malformed;", - "- 211: Payment status mismatch. Check the correct status via **paystatus**;", - "- 208: Payment with payment_hash not found." - ], - "author": [ - "Vincenzo Palazzo <> is mainly responsible." - ], - "see_also": [ - "lightning-listpays(7)", - "lightning-listsendpays(7)", - "lightning-paystatus(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-deprecations.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v24.02", - "rpc": "deprecations", - "title": "Command to enable/disable deprecated APIs", - "description": [ - "The **deprecations** RPC command is used to override global config option `allow-deprecated-apis` for further RPC commands on this same connection. This can be useful for developer testing to ensure you don't accidentally rely on deprecated features." - ], - "request": { - "required": [ - "enable" - ], - "properties": { - "enable": { - "type": "boolean", - "description": [ - "Flag to enable or disable deprecated APIs. Setting it to `false` will neither accept deprecated parameters or commands, nor output deprecated fields." - ] - } - } - }, - "response": { - "properties": {} - }, - "json_example": [ - { - "request": { - "id": "example:deprecations#1", - "method": "deprecations", - "params": { - "enable": false - } - }, - "response": {} - } - ], - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32602: Error in given parameters." - ], - "author": [ - "Rusty Russell <> wrote the initial version of this man page." - ], - "see_also": [ - "lightningd-config(5)", - "lightning-notifications(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-dev-forget-channel.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "dev-forget-channel", - "title": "Command to remove the DB entries from the database after a close", - "warning": "For advanced users only", - "description": [ - "Never use any `dev` command, including this one, unless you know exactly what you are doing; and have checked with a developer that your understanding is correct. They are meant only as a means of last resort and have the potential to mess things up. You have been warned\u2757\ufe0f", - "", - "The **dev-forget-channel** forgets the channel with given details. It will perform additional checks on whether it is safe to forget the channel, and only then remove the channel from the DB. Notice that this command is only available if CLN was started with --developer.", - "", - "Also see https://docs.corelightning.org/docs/faq#how-to-forget-about-a-channel" - ], - "request": { - "required": [ - "id" - ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "The peer id of the channel to be forgotten. Checks if the channel is still active by checking its funding transaction." - ] - }, - "short_channel_id": { - "type": "short_channel_id", - "description": [ - "The short channel id of the channel you want to remove." - ] - }, - "channel_id": { - "type": "hash", - "description": [ - "The channel id of the channel you want to remove." - ] - }, - "force": { - "type": "boolean", - "description": [ - "Ignores UTXO check for forced removal." - ], - "default": "False" - } - } - }, - "response": { - "required": [ - "forced", - "funding_unspent", - "funding_txid" - ], - "properties": { - "forced": { - "type": "boolean", - "description": [ - "If the command was forced or not." - ] - }, - "funding_unspent": { - "type": "boolean", - "description": [ - "The funding is spent or not in the channel." - ] - }, - "funding_txid": { - "type": "txid", - "description": [ - "The id of the funding transaction." - ] - } - } - }, - "errors": [ - "The following errors may be reported:", - "", - "- -32602: If the given parameters are missing or wrong.", - "- -1: Catch all nonspecific errors, eg. `Multiple channels: please specify short_channel_id.` OR `No channels matching that peer_id and that short_channel_id.`, etc." - ], - "json_example": [ - { - "description": [ - "Forget a channel by peer pubkey when only one channel exists with the peer." - ], - "request": { - "id": "example:dev-forget-channel#1", - "method": "dev-forget-channel", - "params": { - "id": "023d28435ce4b49f068c964aacbcb6dd114317a70f03e5a731ea72d25df1cff35b" - }, - "test": "test" - }, - "response": { - "forced": false, - "funding_unspent": true, - "funding_txid": "g6efdfb11bee25aa8b2249055a4162e4bd5fa9134bc865c3f054ca666d7ab744" - } - }, - { - "description": [ - "Forget a channel by short channel id when peer has multiple channels." - ], - "request": { - "id": "example:dev-forget-channel#2", - "method": "dev-forget-channel", - "params": { - "id": "0348e58210bbc128b1cc3cc1a520a654aaa01e5fe65c65341e21b61a1f09da94d5", - "short_channel_id": "337x1x0", - "force": true - } - }, - "response": { - "forced": true, - "funding_unspent": true, - "funding_txid": "b254f30a58adde9326b7e8a701f9d5b3c4db2160b58c5378afbe04448018ec8a" - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-close(7)", - "lightning-listchannels(7)", - "lightning-listpeerchannels(7)", - "lightning-listfunds(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-disableinvoicerequest.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v22.11", - "rpc": "disableinvoicerequest", - "title": "Command for removing an invoice request", - "warning": "experimental-offers only", - "description": [ - "The **disableinvoicerequest** RPC command disables an invoice_request, so that no further invoices will be accepted (and thus, no further payments made)..", - "", - "We currently don't support deletion of invoice_requests, so they are not forgotten entirely (there may be payments which refer to this invoice_request)." - ], - "request": { - "required": [ - "invreq_id" - ], - "properties": { - "invreq_id": { - "type": "string", - "description": [ - "A specific invoice can be disabled by providing the `invreq_id`, which is presented by lightning-invoicerequest(7)." - ] - } - } - }, - "response": { - "required": [ - "invreq_id", - "single_use", - "active", - "bolt12", - "used" - ], - "properties": { - "invreq_id": { - "type": "hash", - "description": [ - "The SHA256 hash of all invoice_request fields less than 160." - ] - }, - "active": { - "type": "boolean", - "enum": [ - false - ], - "description": [ - "Whether the invoice_request is currently active." - ] - }, - "single_use": { - "type": "boolean", - "description": [ - "Whether the invoice_request will become inactive after we pay an invoice for it." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 string starting with lnr." - ] - }, - "used": { - "type": "boolean", - "description": [ - "Whether the invoice_request has already been used." - ] - }, - "label": { - "type": "string", - "description": [ - "The label provided when creating the invoice_request." - ] - } - }, - "pre_return_value_notes": [ - "Note: the returned object is the same format as **listinvoicerequests**." - ] - }, - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-invoicerequest(7)", - "lightning-listinvoicerequests(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-disableoffer.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "disableoffer", - "title": "Command for removing an offer", - "warning": "experimental-offers only", - "description": [ - "The **disableoffer** RPC command disables an offer, so that no further invoices will be given out.", - "", - "We currently don't support deletion of offers, so offers are not forgotten entirely (there may be invoices which refer to this offer)." - ], - "request": { - "required": [ - "offer_id" - ], - "properties": { - "offer_id": { - "type": "hash", - "description": [ - "The id we use to identify this offer." - ] - } - } - }, - "response": { - "required": [ - "offer_id", - "active", - "single_use", - "bolt12", - "used" - ], - "properties": { - "offer_id": { - "type": "hash", - "description": [ - "The merkle hash of the offer." - ] - }, - "active": { - "type": "boolean", - "enum": [ - false - ], - "description": [ - "Whether the offer can produce invoices/payments." - ] - }, - "single_use": { - "type": "boolean", - "description": [ - "Whether the offer is disabled after first successful use." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 string representing this offer." - ] - }, - "used": { - "type": "boolean", - "description": [ - "Whether the offer has had an invoice paid / payment made." - ] - }, - "label": { - "type": "string", - "description": [ - "The label provided when offer was created." - ] - } - }, - "pre_return_value_notes": [ - "Note: the returned object is the same format as **listoffers**." - ] - }, - "json_example": [ - { - "request": { - "id": "example:disableoffer#1", - "method": "disableoffer", - "params": { - "offer_id": "713a16ccd4eb10438bdcfbc2c8276be301020dd9d489c530773ba64f3b33307d" - } - }, - "response": { - "offer_id": "053a5c566fbea2681a5ff9c05a913da23e45b95d09ef5bd25d7d408f23da7084", - "active": false, - "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqvqcdgq2z9pk7enxv4jjqen0wgs8yatnw3ujz83qkc6rvp4j28rt3dtrn32zkvdy7efhnlrpr5rp5geqxs783wtlj550qs8czzku4nk3pqp6m593qxgunzuqcwkmgqkmp6ty0wyvjcqdguv3pnpukedwn6cr87m89t74h3auyaeg89xkvgzpac70z3m9rn5xzu28c", - "used": false - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-offer(7)", - "lightning-listoffers(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-disconnect.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "disconnect", - "title": "Command for disconnecting from another lightning node", - "description": [ - "The disconnect RPC command closes an existing connection to a peer, identified by *id*, in the Lightning Network, as long as it doesn't have an active channel." - ], - "request": { - "required": [ - "id" - ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "The public key of the peer to terminate the connection. It can be discovered in the output of the listpeers command, which returns a set of peers:", - "{", - " 'peers':", - " [", - " {", - " 'id': '0563aea81...',", - " 'connected': true,", - " ...", - " }", - " ]", - "}" - ] - }, - "force": { - "type": "boolean", - "description": [ - "If set to True, it will disconnect even with an active channel." - ] - } - } - }, - "response": { - "properties": {} - }, - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong.", - "- -1: Catchall nonspecific error." - ], - "json_example": [ - { - "request": { - "id": "example:disconnect#1", - "method": "disconnect", - "params": { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "force": false - } - }, - "response": {} - }, - { - "request": { - "id": "example:disconnect#2", - "method": "disconnect", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "force": true - } - }, - "response": {} - } - ], - "author": [ - "Michael Hawkins <>." - ], - "see_also": [ - "lightning-connect(1)", - "lightning-listpeers(1)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-emergencyrecover.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "emergencyrecover", - "title": "Command for recovering channels from the emergency.recovery file in the lightning directory", - "description": [ - "The **emergencyrecover** RPC command fetches data from the emergency.recover file and tries to reconnect to the peer and force him to close the channel. The data in this file has enough information to reconnect and sweep the funds.", - "", - "This recovery method is not spontaneous and it depends on the peer, so it should be used as a last resort to recover the funds stored in a channel in case of severe data loss." - ], - "request": { - "required": [], - "properties": {} - }, - "response": { - "required": [ - "stubs" - ], - "properties": { - "stubs": { - "type": "array", - "items": { - "type": "hash", - "description": [ - "Channel IDs of channels successfully inserted." - ] - } - } - } - }, - "json_example": [ - { - "request": { - "id": "example:emergencyrecover#1", - "method": "emergencyrecover", - "params": "{}" - }, - "response": { - "stubs": [] - } - }, - { - "request": { - "id": "example:emergencyrecover#2", - "method": "emergencyrecover", - "params": "{}" - }, - "response": { - "stubs": [ - "c00734472f344fdadd0bf787de182e5cf144ccda5d731b0f7c75befd1f1eff52" - ] - } - } - ], - "author": [ - "Aditya <> is mainly responsible." - ], - "see_also": [ - "lightning-getsharedsecret(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-feerates.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "feerates", - "title": "Command for querying recommended onchain feerates", - "description": [ - "The **feerates** command returns the feerates that CLN will use. The feerates will be based on the recommended feerates from the backend. The backend may fail to provide estimates, but if it was able to provide estimates in the past, CLN will continue to use those for a while. CLN will also smoothen feerate estimations from the backend.", - "", - "Explorers often present fees in \"sat/vB\": 4 sat/vB is `4000perkb` or `1000perkw`.", - "", - "Bitcoin transactions have non-witness and witness bytes:", - "", - "* Non-witness bytes count as 4 weight, 1 virtual byte. All bytes other than SegWit witness count as non-witness bytes. * Witness bytes count as 1 weight, 0.25 virtual bytes.", - "", - "Thus, all *perkb* feerates will be exactly 4 times *perkw* feerates.", - "", - "To compute the fee for a transaction, multiply its weight or virtual bytes by the appropriate *perkw* or *perkw* feerate returned by this command, then divide by 1000.", - "", - "There is currently no way to change these feerates from the RPC. If you need custom control over onchain feerates, you will need to provide your own plugin that replaces the `bcli` plugin backend. For commands like lightning-withdraw(7) or lightning-fundchannel(7) you can provide a preferred feerate directly as a parameter, which will override the recommended feerates returned by **feerates**." - ], - "request": { - "required": [ - "style" - ], - "properties": { - "style": { - "type": "string", - "description": [ - "Fee rate style to use. This can be:", - " *perkw* - provide feerate in units of satoshis per 1000 weight (e.g. the minimum fee is usually `253perkw`).", - " *perkb* - provide feerate in units of satoshis per 1000 virtual bytes (eg. the minimum fee is usually `1000perkb`)." - ], - "enum": [ - "perkb", - "perkw" - ] - } - } - }, - "response": { - "required": [], - "properties": { - "warning_missing_feerates": { - "type": "string", - "description": [ - "Some fee estimates are missing." - ] - }, - "perkb": { - "type": "object", - "description": [ - "If *style* parameter was perkb." - ], - "additionalProperties": false, - "required": [ - "min_acceptable", - "max_acceptable", - "floor", - "estimates" - ], - "properties": { - "min_acceptable": { - "type": "u32", - "description": [ - "The smallest feerate that we allow peers to specify: half the 100-block estimate." - ] - }, - "max_acceptable": { - "type": "u32", - "description": [ - "The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)." - ] - }, - "floor": { - "type": "u32", - "added": "v23.05", - "description": [ - "The smallest feerate that our backend tells us it will accept (i.e. minrelayfee or mempoolminfee)." - ] - }, - "estimates": { - "type": "array", - "added": "v23.05", - "description": [ - "Feerate estimates from plugin which we are using (usuallly bcli)." - ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "blockcount", - "feerate", - "smoothed_feerate" - ], - "properties": { - "blockcount": { - "type": "u32", - "added": "v23.05", - "description": [ - "The number of blocks the feerate is expected to get a transaction in." - ] - }, - "feerate": { - "type": "u32", - "added": "v23.05", - "description": [ - "The feerate for this estimate, in given *style*." - ] - }, - "smoothed_feerate": { - "type": "u32", - "added": "v23.05", - "description": [ - "The feerate, smoothed over time (useful for coordinating with other nodes)." - ] - } - } - } - }, - "opening": { - "type": "u32", - "description": [ - "Default feerate for lightning-fundchannel(7) and lightning-withdraw(7)." - ] - }, - "mutual_close": { - "type": "u32", - "description": [ - "Feerate to aim for in cooperative shutdown. Note that since mutual close is a **negotiation**, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer." - ] - }, - "unilateral_close": { - "type": "u32", - "description": [ - "Feerate for commitment_transaction in a live channel which we originally funded." - ] - }, - "unilateral_anchor_close": { - "type": "u32", - "added": "v23.08", - "description": [ - "Feerate for commitment_transaction in a live channel which we originally funded (if anchor_outputs was negotiated)." - ] - }, - "delayed_to_us": { - "type": "u32", - "deprecated": [ - "v23.05", - "v24.05" - ], - "description": [ - "Feerate for returning unilateral close funds to our wallet." - ] - }, - "htlc_resolution": { - "type": "u32", - "deprecated": [ - "v23.05", - "v24.05" - ], - "description": [ - "Feerate for returning unilateral close HTLC outputs to our wallet." - ] - }, - "penalty": { - "type": "u32", - "description": [ - "Feerate to use when creating penalty tx for watchtowers." - ] - } - } - }, - "perkw": { - "type": "object", - "description": [ - "If *style* parameter was perkw." - ], - "additionalProperties": false, - "required": [ - "min_acceptable", - "max_acceptable", - "floor", - "estimates" - ], - "properties": { - "min_acceptable": { - "type": "u32", - "description": [ - "The smallest feerate that you can use, usually the minimum relayed feerate of the backend." - ] - }, - "max_acceptable": { - "type": "u32", - "description": [ - "The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)." - ] - }, - "floor": { - "type": "u32", - "added": "v23.05", - "description": [ - "The smallest feerate that our backend tells us it will accept (i.e. minrelayfee or mempoolminfee)." - ] - }, - "estimates": { - "type": "array", - "added": "v23.05", - "description": [ - "Feerate estimates from plugin which we are using (usuallly bcli)." - ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "blockcount", - "feerate", - "smoothed_feerate" - ], - "properties": { - "blockcount": { - "type": "u32", - "added": "v23.05", - "description": [ - "The number of blocks the feerate is expected to get a transaction in." - ] - }, - "feerate": { - "type": "u32", - "added": "v23.05", - "description": [ - "The feerate for this estimate, in given *style*." - ] - }, - "smoothed_feerate": { - "type": "u32", - "added": "v23.05", - "description": [ - "The feerate, smoothed over time (useful for coordinating with other nodes)." - ] - } - } - } - }, - "opening": { - "type": "u32", - "description": [ - "Default feerate for lightning-fundchannel(7) and lightning-withdraw(7)." - ] - }, - "mutual_close": { - "type": "u32", - "description": [ - "Feerate to aim for in cooperative shutdown. Note that since mutual close is a **negotiation**, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer." - ] - }, - "unilateral_close": { - "type": "u32", - "description": [ - "Feerate for commitment_transaction in a live channel which we originally funded (if anchor_outputs was not negotiated)." - ] - }, - "unilateral_anchor_close": { - "type": "u32", - "added": "v23.08", - "description": [ - "Feerate for commitment_transaction in a live channel which we originally funded (if anchor_outputs was negotiated)." - ] - }, - "delayed_to_us": { - "type": "u32", - "deprecated": [ - "v23.05", - "v24.05" - ], - "description": [ - "Feerate for returning unilateral close funds to our wallet." - ] - }, - "htlc_resolution": { - "type": "u32", - "deprecated": [ - "v23.05", - "v24.05" - ], - "description": [ - "Feerate for returning unilateral close HTLC outputs to our wallet." - ] - }, - "penalty": { - "type": "u32", - "description": [ - "Feerate to use when creating penalty tx for watchtowers." - ] - } - } - }, - "onchain_fee_estimates": { - "type": "object", - "additionalProperties": false, - "required": [ - "opening_channel_satoshis", - "mutual_close_satoshis", - "unilateral_close_satoshis", - "htlc_timeout_satoshis", - "htlc_success_satoshis" - ], - "properties": { - "opening_channel_satoshis": { - "type": "u64", - "description": [ - "Estimated cost of typical channel open." - ] - }, - "mutual_close_satoshis": { - "type": "u64", - "description": [ - "Estimated cost of typical channel close." - ] - }, - "unilateral_close_satoshis": { - "type": "u64", - "description": [ - "Estimated cost of typical unilateral close (without HTLCs). If anchors are supported, this assumes a channel with anchors." - ] - }, - "unilateral_close_nonanchor_satoshis": { - "added": "v23.08", - "type": "u64", - "description": [ - "Estimated cost of non-anchor typical unilateral close (without HTLCs)." - ] - }, - "htlc_timeout_satoshis": { - "type": "u64", - "description": [ - "Estimated cost of typical HTLC timeout transaction (non-anchors)." - ] - }, - "htlc_success_satoshis": { - "type": "u64", - "description": [ - "Estimated cost of typical HTLC fulfillment transaction (non-anchors)." - ] - } - } - } - } - }, - "errors": [ - "The **feerates** command will never error, however some fields may be missing in the result if feerate estimates for that kind of transaction are unavailable." - ], - "notes": [ - "Many other commands have a *feerate* parameter. This can be:", - "", - "* One of the strings to use lightningd's internal estimates:", - " * *urgent* (next 6 blocks or so)", - " * *normal* (next 12 blocks or so)", - " * *slow* (next 100 blocks or so)", - " * *minimum* for the lowest value bitcoind will currently accept (added in v23.05)", - "", - "* A number, with an optional suffix:", - " * *blocks* means aim for confirmation in that many blocks (added in v23.05)", - " * *perkw* means the number is interpreted as satoshi-per-kilosipa (weight)", - " * *perkb* means it is interpreted bitcoind-style as satoshi-per-kilobyte. ", - "", - "Omitting the suffix is equivalent to *perkb*." - ], - "trivia": [ - "In C-lightning we like to call the weight unit \"sipa\" in honor of Pieter Wuille, who uses the name \"sipa\" on IRC and elsewhere. Internally we call the *perkw* style as \"feerate per kilosipa\"." - ], - "json_example": [ - { - "request": { - "id": "example:feerates#1", - "method": "feerates", - "params": { - "style": "perkw", - "urgent": null, - "normal": null, - "slow": null - } - }, - "response": { - "perkw": { - "opening": 1000000, - "mutual_close": 26362, - "unilateral_close": 26362, - "unilateral_anchor_close": 1000000, - "penalty": 26362, - "min_acceptable": 3750, - "max_acceptable": 10000000, - "floor": 253, - "estimates": [ - { - "blockcount": 2, - "feerate": 1000000, - "smoothed_feerate": 26362 - }, - { - "blockcount": 6, - "feerate": 1000000, - "smoothed_feerate": 26362 - }, - { - "blockcount": 12, - "feerate": 1000000, - "smoothed_feerate": 26362 - }, - { - "blockcount": 100, - "feerate": 1000000, - "smoothed_feerate": 26362 - } - ] - }, - "onchain_fee_estimates": { - "opening_channel_satoshis": 702000, - "mutual_close_satoshis": 17741, - "unilateral_close_satoshis": 1112000, - "unilateral_close_nonanchor_satoshis": 15764, - "htlc_timeout_satoshis": 17478, - "htlc_success_satoshis": 18532 - } - } - }, - { - "request": { - "id": "example:feerates#2", - "method": "feerates", - "params": { - "style": "perkb", - "urgent": null, - "normal": null, - "slow": null - } - }, - "response": { - "perkb": { - "opening": 25000, - "mutual_close": 25000, - "unilateral_close": 44000, - "unilateral_anchor_close": 25000, - "penalty": 25000, - "min_acceptable": 12500, - "max_acceptable": 600000, - "floor": 1012, - "estimates": [ - { - "blockcount": 2, - "feerate": 60000, - "smoothed_feerate": 60000 - }, - { - "blockcount": 6, - "feerate": 44000, - "smoothed_feerate": 44000 - }, - { - "blockcount": 12, - "feerate": 25000, - "smoothed_feerate": 25000 - } - ] - }, - "onchain_fee_estimates": { - "opening_channel_satoshis": 4387, - "mutual_close_satoshis": 4206, - "unilateral_close_satoshis": 6578, - "unilateral_close_nonanchor_satoshis": 6578, - "htlc_timeout_satoshis": 7293, - "htlc_success_satoshis": 7733 - } - } - } - ], - "author": [ - "ZmnSCPxj <> wrote the initial version of this manpage." - ], - "see_also": [ - "lightning-parsefeerate(7)", - "lightning-fundchannel(7)", - "lightning-withdraw(7)", - "lightning-txprepare(7)", - "lightning-fundchannel_start(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-fetchinvoice.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "fetchinvoice", - "title": "Command for fetch an invoice for an offer", - "warning": "experimental-offers only", - "description": [ - "The **fetchinvoice** RPC command contacts the issuer of an *offer* to get an actual invoice that can be paid. It highlights any changes between the offer and the returned invoice.", - "", - "If **fetchinvoice-noconnect** is not specified in the configuation, it will connect to the destination in the (currently common!) case where it cannot find a route which supports `option_onion_messages`." - ], - "request": { - "required": [ - "offer" - ], - "properties": { - "offer": { - "type": "string", - "description": [ - "Offer string to get an actual invoice that can be paid." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Required if the offer does not specify an amount at all, otherwise it is optional (but presumably if you set it to less than the offer, you will get an error from the issuer)." - ] - }, - "quantity": { - "type": "u64", - "description": [ - "Required if the offer specifies quantity_max, otherwise it is not allowed." - ] - }, - "recurrence_counter": { - "type": "u64", - "description": [ - "Required if the offer specifies recurrence, otherwise it is not allowed. recurrence_counter should first be set to 0, and incremented for each successive invoice in a given series." - ] - }, - "recurrence_start": { - "type": "number", - "description": [ - "Required if the offer specifies recurrence_base with start_any_period set, otherwise it is not allowed. It indicates what period number to start at." - ] - }, - "recurrence_label": { - "type": "string", - "description": [ - "Required if recurrence_counter is set, and otherwise is not allowed. It must be the same as prior fetchinvoice calls for the same recurrence, as it is used to link them together." - ] - }, - "timeout": { - "type": "number", - "description": [ - "If we don't get a reply before this we fail (default, 60 seconds)." - ] - }, - "payer_note": { - "type": "string", - "description": [ - "To ask the issuer to include in the fetched invoice." - ] - } - } - }, - "response": { - "required": [ - "invoice", - "changes" - ], - "properties": { - "invoice": { - "type": "string", - "description": [ - "The BOLT12 invoice we fetched." - ] - }, - "changes": { - "type": "object", - "description": [ - "Summary of changes from offer." - ], - "additionalProperties": false, - "required": [], - "properties": { - "description_appended": { - "type": "string", - "description": [ - "Extra characters appended to the *description* field." - ] - }, - "description": { - "type": "string", - "description": [ - "A completely replaced *description* field." - ] - }, - "vendor_removed": { - "type": "string", - "description": [ - "The *vendor* from the offer, which is missing in the invoice." - ] - }, - "vendor": { - "type": "string", - "description": [ - "A completely replaced *vendor* field." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount, if different from the offer amount multiplied by any *quantity* (or the offer had no amount, or was not in BTC)." - ] - } - } - }, - "next_period": { - "type": "object", - "description": [ - "Only for recurring invoices if the next period is under the *recurrence_limit*." - ], - "additionalProperties": false, - "required": [ - "counter", - "starttime", - "endtime", - "paywindow_start", - "paywindow_end" - ], - "properties": { - "counter": { - "type": "u64", - "description": [ - "The index of the next period to fetchinvoice." - ] - }, - "starttime": { - "type": "u64", - "description": [ - "UNIX timestamp that the next period starts." - ] - }, - "endtime": { - "type": "u64", - "description": [ - "UNIX timestamp that the next period ends." - ] - }, - "paywindow_start": { - "type": "u64", - "description": [ - "UNIX timestamp of the earliest time that the next invoice can be fetched." - ] - }, - "paywindow_end": { - "type": "u64", - "description": [ - "UNIX timestamp of the latest time that the next invoice can be fetched." - ] - } - } - } - } - }, - "errors": [ - "The following error codes may occur:", - "", - "- -1: Catchall nonspecific error.", - "- 1002: Offer has expired.", - "- 1003: Cannot find a route to the node making the offer.", - "- 1004: The node making the offer returned an error message.", - "- 1005: We timed out trying to fetch an invoice." - ], - "json_example": [ - { - "request": { - "id": "example:fetchinvoice#1", - "method": "fetchinvoice", - "params": { - "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqypq5zmnd9khqmr9yp6x2um5zcssxhftzxfdlwsnfcgw2sy8t5mxa0ytcdfat2nkdwqvpy9nnsa9mzza", - "payer_note": "Thanks for the fish!" - } - }, - "response": { - "invoice": "lni1qqgvcm9h7yakcmw4mzazspu8vfgpwq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqgzpg9hx6tdwpkx2gr5v4ehg93pqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky965pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84sggren772kj8mau5jp86nc6fszx48rv7ep0quszyyls8rlld3sshjr94j9z5dpsku6mnypnx7u3qw35x2grxd9eksgdqnqp462c3jt0m5y6wzrj5pp6axehtez7r20265antsrqfpvuu8fwcshgr0tsv8e6829e8xmv7laz0kwhtlx6vtk8q3d6rtthdhtwvnn6j585szquc2t7us8kguxypzasg8ewkakgx2ny5ugks0f32x67sm9e5fms4asqrylajc2dqh8ag55mv5p5ghy3e2z8zwmllle8uu7jsxv5ke8d6rr5h7kthmz7ya0hxp4nt7elvw7vghcl6fgsuqqqqqqqqqqqqqqq9qqqqqqqqqqqqq8fykt06c5sqqqqqpfqyvhtunn4gyzy0lphn4wn6ctzlsajy46wscjcglf3hxcnvlaxqs3ydkhgaklsc42spq2czzq6a9vge9ha6zd8ppe2qsawnvm4u30p484d2we4cpsyskwwr5hvgthcyqyuen02ejwpa9cjjrttvp223yxsqkrwnlaszkhas84w0ape300ued4p75xu3cqtcg0cslsx9fvh7dhdqx565t6wa0alf6u2hug90j2hs", - "changes": {} - } - }, - { - "request": { - "id": "example:fetchinvoice#2", - "method": "fetchinvoice", - "params": { - "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqypq5zmnd9khqmr9yp6x2um5zcssxhftzxfdlwsnfcgw2sy8t5mxa0ytcdfat2nkdwqvpy9nnsa9mzza", - "amount_msat": 3 - } - }, - "response": { - "invoice": "lni1qqg0mfchkz0gkmn8zzu5zaxd0qvlzq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqgzpg9hx6tdwpkx2gr5v4ehg93pqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky965pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84yqgrtqss8d4vgzd3286u9rk0zg9qr7a6z2xm6mjnz9pydztcn0j74tjvch0f5zvqxhftzxfdlwsnfcgw2sy8t5mxa0ytcdfat2nkdwqvpy9nnsa9mzzaqth4fzjqxxmsaxvc4v2urs6hsh6k0e564x00g68vuyp5w7yjedzxvqgr8ltzmj0n7ltxr0tz9rafn9zcy9jldjqfuf20w6gjmr7nj04d360sqvkdwprxn22dlp3xay9yq4nhrw2jm0c8t6r7japhdad6leawxyqzkg92tx8gqxp9f2d8j5k2axta0gr7yr9zrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3ja0jwj4qswt3kgs9mxq7gck66x60m5rndykpw3a7hf4ntlp9qe2vgwzzrvcwd2qypmqggrt543ryklhgf5uy89gzr46dnwhj9ux5744fmxhqxqjzeecwja3pwlqsxyjcdwur4hl4qf7nsjgg8euvy45lznufh5kydkwz6llsucuhvwp9ezeggaj3k057ge6ftvaffjkwn6j3y7faeuysrx3m2xccphu65sx", - "changes": {} - } - }, - { - "request": { - "id": "example:fetchinvoice#3", - "method": "fetchinvoice", - "params": { - "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqypq5zmnd9khqmr9yp6x2um5zsqs593pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j", - "quantity": 2 - } - }, - "response": { - "invoice": "lni1qqgd508mv9rpjg2ec8dr8qcslf2cjq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqgzpg9hx6tdwpkx2gr5v4ehg9qppgtzzq3dygmzpg6e53ll0aavg37gt3rvjg762vufygdqq4xprs0regcat9gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02cqsykppqfkyy6q8ry9pchxtuajh456hhcf7dxx733cx76etuv5ftfmfa2ymhgycqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jq6uhkeymz26zx7zgw4gdmw2vj9xqn4hu2sqxhp0pcgt87pf9chyfvqsywtejxjh603kx7am3zaf6d6xuumw30p8zmcdz7r95nn4lr92exk3qqe2x6xqwpdzh2zwq3vnyra8nfc6d7y6hegpkvc7p2nulj7hvhwl5hjfr23wn60mjftqspn7d4ejhrpsr5m2y8qqqqqqqqqqqqqqqpgqqqqqqqqqqqqp6f9jm7k9yqqqqqq2gpr96l9mt2pqxuyr0gqw92h0xz2y2uy5uxss4ujcac5jehj9ay2sxkapr80t5ha65qgykqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pqxhl4u29cjluw5s8fwa9wtvh0qytr7vqk0vtndsz07mrrtmjw629m8mnqkjaf43kt889qeq2f7deu6t853lngpzclapt8nj0g528v9ay", - "changes": {} - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-sendinvoice(7)", - "lightning-pay(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-fundchannel.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "fundchannel", - "title": "Command for establishing a lightning channel", - "description": [ - "The **fundchannel** RPC command opens a payment channel with a peer by committing a funding transaction to the blockchain as defined in BOLT #2.", - "", - "If not already connected, **fundchannel** will automatically attempt to connect if Core Lightning knows a way to contact the node (either from normal gossip, or from a previous **connect** call).", - "", - "This auto-connection can fail if Core Lightning does not know how to contact the target node; see lightning-connect(7).", - "", - "Once the transaction is confirmed, normal channel operations may begin. Readiness is indicated by **listpeers** reporting a *state* of `CHANNELD_NORMAL` for the channel." - ], - "request": { - "required": [ - "id", - "amount" - ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "Id is the peer id obtained from connect." - ] - }, - "amount": { - "type": "msat_or_all", - "description": [ - "The amount in satoshis taken from the internal wallet to fund the channel (but if we have any anchor channels, this will always leave at least `min-emergency- msat` as change). The string *all* can be used to specify all available funds (or 16777215 satoshi if more is available and large channels were not negotiated with the peer). Otherwise, it is in satoshi precision; it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*. The value cannot be less than the dust limit, currently set to 546, nor more than 16777215 satoshi (unless large channels were negotiated with the peer)." - ] - }, - "feerate": { - "type": "feerate", - "description": [ - "Used for the opening transaction and (unless *option_anchors_zero_fee_htlc_tx* is negotiated), as initial feerate for commitment and HTLC transactions (see NOTES in lightning-feerates(7))." - ], - "default": "*normal*" - }, - "announce": { - "type": "boolean", - "description": [ - "Whether to announce this channel or not. An unannounced channel is considered private." - ], - "default": "True" - }, - "minconf": { - "type": "u32", - "description": [ - "The minimum number of confirmations that used outputs should have." - ], - "default": "1" - }, - "push_msat": { - "type": "msat", - "description": [ - "The amount of millisatoshis to push to the channel peer at open. Note that this is a gift to the peer -- these satoshis are added to the initial balance of the peer at channel start and are largely unrecoverable once pushed." - ] - }, - "close_to": { - "type": "string", - "description": [ - "A Bitcoin address to which the channel funds should be sent to on close. Only valid if both peers have negotiated `option_upfront_shutdown_script`. Returns `close_to` set to closing script iff is negotiated." - ] - }, - "request_amt": { - "type": "msat", - "description": [ - "An amount of liquidity you'd like to lease from the peer. If peer supports `option_will_fund`, indicates to them to include this much liquidity into the channel. Must also pass in *compact_lease*." - ] - }, - "compact_lease": { - "type": "string", - "description": [ - "A compact representation of the peer's expected channel lease terms. If the peer's terms don't match this set, we will fail to open the channel." - ] - }, - "utxos": { - "type": "array", - "description": [ - "The utxos to be used to fund the channel, as an array of `txid:vout`." - ], - "items": { - "type": "outpoint" - } - }, - "mindepth": { - "description": [ - "Number of confirmations required before we consider the channel active." - ], - "type": "u32" - }, - "reserve": { - "type": "msat", - "description": [ - "The amount we want the peer to maintain on its side of the channel. It can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*." - ], - "default": "1% of the funding amount" - }, - "channel_type": { - "added": "v24.02", - "type": "array", - "items": { - "type": "u32", - "description": [ - "Represents the explicit channel type to request. There is currently no sanity checking on this value so if you use strange values and your channel breaks, you get to keep both pieces. BOLT 2 defines the following value types:", - "```", - "The currently defined basic types are:", - " - no features (no bits set).", - " - `option_static_remotekey` (bit 12).", - " - `option_anchor_outputs` and `option_static_remotekey` (bits 20 and 12).", - " - `option_anchors_zero_fee_htlc_tx` and `option_static_remotekey` (bits 22 and 12).", - "", - "Each basic type has the following variations allowed:", - " - `option_scid_alias` (bit 46).", - " - `option_zeroconf` (bit 50).", - "```" - ] - } - } - } - }, - "response": { - "required": [ - "tx", - "txid", - "outnum", - "channel_type", - "channel_id" - ], - "properties": { - "tx": { - "type": "hex", - "description": [ - "The raw transaction which funded the channel." - ] - }, - "txid": { - "type": "txid", - "description": [ - "The txid of the transaction which funded the channel." - ] - }, - "outnum": { - "type": "u32", - "description": [ - "The 0-based output index showing which output funded the channel." - ] - }, - "channel_id": { - "type": "hash", - "description": [ - "The channel_id of the resulting channel." - ] - }, - "channel_type": { - "type": "object", - "description": [ - "Channel_type as negotiated with peer." - ], - "added": "v24.02", - "additionalProperties": false, - "required": [ - "bits", - "names" - ], - "properties": { - "bits": { - "type": "array", - "description": [ - "Each bit set in this channel_type." - ], - "added": "v24.02", - "items": { - "type": "u32", - "description": [ - "Bit number." - ] - } - }, - "names": { - "type": "array", - "description": [ - "Feature name for each bit set in this channel_type." - ], - "added": "v24.02", - "items": { - "type": "string", - "enum": [ - "static_remotekey/even", - "anchor_outputs/even", - "anchors_zero_fee_htlc_tx/even", - "scid_alias/even", - "zeroconf/even" - ], - "description": [ - "Name of feature bit." - ] - } - } - } - }, - "close_to": { - "type": "hex", - "description": [ - "The raw scriptPubkey which mutual close will go to; only present if *close_to* parameter was specified and peer supports `option_upfront_shutdown_script`." - ] - }, - "mindepth": { - "type": "u32", - "description": [ - "Number of confirmations before we consider the channel active." - ] - } - } - }, - "example_usage": [ - "This example shows how to use lightning-cli to open new channel with peer 03f...fc1 from one whole utxo bcc1...39c:0 (you can use **listfunds** command to get txid and vout):", - "", - "```shell", - "lightning-cli -k fundchannel id=03f...fc1 amount=all feerate=normal utxos='[\"bcc1...39c:0\"]'", - "```" - ], - "json_example": [ - { - "request": { - "id": "example:fundchannel#1", - "method": "fundchannel", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount": 1000000, - "feerate": null, - "announce": true, - "minconf": null, - "utxos": null, - "push_msat": null, - "close_to": null, - "request_amt": null, - "compact_lease": null, - "mindepth": null, - "reserve": null - } - }, - "response": { - "tx": "020000000001014ca47b75e6982fce6b5ebb6e7ec163dc5b6bed1562934e6febe816103b2b207e0000000000fdffffff0240420f00000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd012f0f000000000022512063ffee4ea7d51e6cadf9086e286a2527922aaa25b8c53aebf32fa32a0a627f5a02473044022058fc4d51c8254d37b266d3db3f8fda7420882b6ec9226d66b8c0139f2707c09602205798d8ce23d4c692a7384362a2e0afd9703f062239a786d7a1840a28d3a1152e012103d745445c9362665f22e0d96e9e766f273f3260dea39c8a76bfa05dd2684ddccf66000000", - "txid": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b", - "channel_id": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", - "outnum": 0 - } - }, - { - "request": { - "id": "example:fundchannel#2", - "method": "fundchannel", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount": 10000000, - "feerate": null, - "announce": true, - "minconf": null, - "utxos": null, - "push_msat": 1000000000, - "close_to": null, - "request_amt": null, - "compact_lease": null, - "mindepth": null, - "reserve": null, - "channel_type": null - } - }, - "response": { - "tx": "0200000000010141cfa0e9957c7c6d0bb5069d92937f9545e6e6ee9b4650f47f509d5ea65df4690100000000fdffffff0280969800000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd4118530b0000000022512063ffee4ea7d51e6cadf9086e286a2527922aaa25b8c53aebf32fa32a0a627f5a0247304402206488c7dfbc4180781ed0d5ca7ff2c8ce134480c349d03978765053a393229d9a022066c75dee1f19b410ea1c7756d0cb2c097e52b13f4d9bbd033efa4ed95d817e14012103d745445c9362665f22e0d96e9e766f273f3260dea39c8a76bfa05dd2684ddccf66000000", - "txid": "6aa1231b6356777468a55aea1f49dad6415592aef6c1e652f8a64357c7235301", - "channel_id": "015323c75743a6f852e6c1f6ae925541d6da491fea5aa568747756631b23a16a", - "channel_type": { - "bits": [ - 12, - 22 - ], - "names": [ - "static_remotekey/even", - "anchors_zero_fee_htlc_tx/even" - ] - }, - "outnum": 0 - } - } - ], - "errors": [ - "The following error codes may occur:", - "", - "- -1: Catchall nonspecific error.", - "- 300: The maximum allowed funding amount is exceeded.", - "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", - "- 302: The output amount is too small, and would be considered dust.", - "- 303: Broadcasting of the funding transaction failed, the internal call to bitcoin-cli returned with an error.", - "- 313: The `min-emergency-msat` reserve not be preserved (and we have or are opening anchor channels).", - "", - "Failure may also occur if **lightningd** and the peer cannot agree on channel parameters (funding limits, channel reserves, fees, etc.)." - ], - "see_also": [ - "lightning-connect(7)", - "lightning-listfunds()", - "lightning-listpeers(7)", - "lightning-feerates(7)", - "lightning-multifundchannel(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-fundchannel_cancel.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "fundchannel_cancel", - "title": "Command for completing channel establishment", - "description": [ - "`fundchannel_cancel` is a lower level RPC command. It allows channel opener to cancel a channel before funding broadcast with a connected peer.", - "", - "Note that the funding transaction MUST NOT be broadcast before `fundchannel_cancel`. Broadcasting transaction before `fundchannel_cancel` WILL lead to unrecoverable loss of funds.", - "", - "If `fundchannel_cancel` is called after `fundchannel_complete`, the remote peer may disconnect when command succeeds. In this case, user need to connect to remote peer again before opening channel." - ], - "request": { - "required": [ - "id" - ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "Node id of the remote peer with which to cancel." - ] - } - } - }, - "response": { - "required": [ - "cancelled" - ], - "properties": { - "cancelled": { - "type": "string", - "description": [ - "A message indicating it was cancelled by RPC." - ] - } - } - }, - "json_example": [ - { - "request": { - "id": "example:fundchannel_cancel#1", - "method": "fundchannel_cancel", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" - } - }, - "response": { - "cancelled": "Channel open canceled by RPC" - } - }, - { - "request": { - "id": "example:fundchannel_cancel#2", - "method": "fundchannel_cancel", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" - } - }, - "response": { - "cancelled": "Channel open canceled by RPC(after fundchannel_complete)" - } - } - ], - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong.", - "- 306: Unknown peer id.", - "- 307: No channel currently being funded that can be cancelled.", - "- 308: It is unsafe to cancel the channel: the funding transaction has been broadcast, or there are HTLCs already in the channel, or the peer was the initiator and not us." - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-connect(7)", - "lightning-fundchannel(7)", - "lightning-multifundchannel(7)", - "lightning-fundchannel_start(7)", - "lightning-fundchannel_complete(7)", - "lightning-openchannel_init(7)", - "lightning-openchannel_update(7)", - "lightning-openchannel_signed(7)", - "lightning-openchannel_abort(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-fundchannel_complete.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "fundchannel_complete", - "title": "Command for completing channel establishment", - "description": [ - "`fundchannel_complete` is a lower level RPC command. It allows a user to complete an initiated channel establishment with a connected peer.", - "", - "Note that the funding transaction MUST NOT be broadcast until after channel establishment has been successfully completed, as the commitment transactions for this channel are not secured until this command successfully completes. Broadcasting transaction before can lead to unrecoverable loss of funds." - ], - "request": { - "required": [ - "id", - "psbt" - ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "Node id of the remote peer." - ] - }, - "psbt": { - "type": "string", - "description": [ - "Transaction to use for funding (does not need to be signed but must be otherwise complete)." - ] - } - } - }, - "response": { - "required": [ - "channel_id", - "commitments_secured" - ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "The channel_id of the resulting channel." - ] - }, - "commitments_secured": { - "type": "boolean", - "enum": [ - true - ], - "description": [ - "Indication that channel is safe to use." - ] - } - } - }, - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong.", - "- -1: Catchall nonspecific error.", - "- 305: Peer is not connected.", - "- 306: Unknown peer id.", - "- 309: PSBT does not have a unique, correct output to fund the channel." - ], - "json_example": [ - { - "request": { - "id": "example:fundchannel_complete#1", - "method": "fundchannel_complete", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "psbt": "cHNidP8BAIkCAAAAASYd4TeOHEIzrUbbELM2DK0IX09WaXqWsJFlLD455MPPAAAAAAD9////Av///wAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM1c8QUpAQAAACJRIH8AZYBKMKON4/oVmJVsVt6zy/+PkBPzziE+LtkuFvWXAAAAAAABAIMCAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////wJRAP////8CAPIFKgEAAAAWABQ5FIjuMd8ar9WFRV9eGNLF+3RMcAAAAAAAAAAAJmokqiGp7eL2HD9x0d79P6mZ36NpU3VcaQaJeZlitIvr2DaXToz5AAAAAAEBHwDyBSoBAAAAFgAUORSI7jHfGq/VhUVfXhjSxft0THAiBgMegIxEPDa2OseVTaV6ANtSwQuoj/j2an7X/Is2EekvWBhhFDNgVAAAgAEAAIAAAACAAAAAAAAAAAAAAAEFIEm9AFgqUlJwbPFtyt3a9dzvb+nAGZiQ3CT1CImhjBFpIQdJvQBYKlJScGzxbcrd2vXc72/pwBmYkNwk9QiJoYwRaRkAYRQzYFYAAIABAACAAAAAgAEAAAAAAAAAAA==" - } - }, - "response": { - "channel_id": "049217e5035a4a60449c6382c445b5c105bd63588d66137ad0511c57a16db6d9", - "commitments_secured": true - } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-connect(7)", - "lightning-fundchannel(7)", - "lightning-multifundchannel(7)", - "lightning-fundchannel_start(7)", - "lightning-fundchannel_cancel(7)", - "lightning-openchannel_init(7)", - "lightning-openchannel_update(7)", - "lightning-openchannel_signed(7)", - "lightning-openchannel_bump(7)", - "lightning-openchannel_abort(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-fundchannel_start.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "fundchannel_start", - "title": "Command for initiating channel establishment for a lightning channel", - "description": [ - "`fundchannel_start` is a lower level RPC command. It allows a user to initiate channel establishment with a connected peer.", - "", - "Note that the funding transaction MUST NOT be broadcast until after channel establishment has been successfully completed by running `fundchannel_complete`, as the commitment transactions for this channel are not secured until the complete command succeeds. Broadcasting transaction before that can lead to unrecoverable loss of funds." - ], - "request": { - "required": [ - "id", - "amount" - ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "The peer id obtained from connect." - ] - }, - "amount": { - "type": "msat", - "description": [ - "Satoshi value that the channel will be funded at. This value MUST be accurate, otherwise the negotiated commitment transactions will not encompass the correct channel value." - ] - }, - "feerate": { - "type": "feerate", - "description": [ - "Feerate for subsequent commitment transactions: see **fundchannel**. Note that this is ignored for channels with *option_anchors_zero_fee_htlc_tx* (we always use a low commitment fee for these)." - ] - }, - "announce": { - "type": "boolean", - "description": [ - "Whether or not to announce this channel." - ] - }, - "close_to": { - "type": "string", - "description": [ - "Bitcoin address to which the channel funds should be sent to on close. Only valid if both peers have negotiated `option_upfront_shutdown_script`. Returns `close_to` set to closing script iff is negotiated." - ] - }, - "push_msat": { - "type": "msat", - "description": [ - "Amount of millisatoshis to push to the channel peer at open. Note that this is a gift to the peer -- these satoshis are added to the initial balance of the peer at channel start and are largely unrecoverable once pushed." - ] - }, - "mindepth": { - "type": "u32", - "description": [ - "Number of confirmations required before we consider the channel active." - ] - }, - "reserve": { - "type": "msat", - "description": [ - "The amount we want the peer to maintain on its side." - ] - }, - "channel_type": { - "type": "array", - "description": [ - "Each bit set in this channel_type." - ], - "items": { - "type": "u32", - "description": [ - "Bit number." - ] - } - } - }, - "pairedWith": [ - [ - "feerate", - "announce", - "close_to", - "push_msat", - "channel_type", - "mindepth", - "reserve" - ] - ] - }, - "response": { - "required": [ - "funding_address", - "scriptpubkey", - "warning_usage" - ], - "properties": { - "funding_address": { - "type": "string", - "description": [ - "The address to send funding to for the channel. DO NOT SEND COINS TO THIS ADDRESS YET." - ] - }, - "scriptpubkey": { - "type": "hex", - "description": [ - "The raw scriptPubkey for the address." - ] - }, - "channel_type": { - "type": "object", - "description": [ - "Channel_type as negotiated with peer." - ], - "added": "v24.02", - "additionalProperties": false, - "required": [ - "bits", - "names" - ], - "properties": { - "bits": { - "type": "array", - "added": "v24.02", - "description": [ - "Each bit set in this channel_type." - ], - "items": { - "type": "u32", - "description": [ - "Bit number." - ] - } - }, - "names": { - "type": "array", - "description": [ - "Feature name for each bit set in this channel_type." - ], - "added": "v24.02", - "items": { - "type": "string", - "enum": [ - "static_remotekey/even", - "anchor_outputs/even", - "anchors_zero_fee_htlc_tx/even", - "scid_alias/even", - "zeroconf/even" - ], - "description": [ - "Name of feature bit." - ] - } - } - } - }, - "close_to": { - "type": "hex", - "description": [ - "The raw scriptPubkey which mutual close will go to; only present if *close_to* parameter was specified and peer supports `option_upfront_shutdown_script`." - ] - }, - "warning_usage": { - "type": "string", - "description": [ - "A warning not to prematurely broadcast the funding transaction (always present!)." - ] - }, - "mindepth": { - "type": "u32", - "description": [ - "Number of confirmations before we consider the channel active." - ] - } - } - }, - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong.", - "- -1: Catchall nonspecific error.", - "- 300: The amount exceeded the maximum configured funding amount.", - "- 301: The provided `push_msat` is greater than the provided `amount`.", - "- 304: Still syncing with bitcoin network", - "- 305: Peer is not connected.", - "- 306: Unknown peer id.", - "- 312: Peer negotiated `option_dual_fund`, must use `openchannel_init` not `fundchannel_start`. (Only if ``experimental-dual-fund` is enabled)" - ], - "json_example": [ - { - "request": { - "id": "example:fundchannel_start#1", - "method": "fundchannel_start", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount": 16777216, - "feerate": null, - "announce": true, - "close_to": null, - "mindepth": null - } - }, - "response": { - "funding_address": "bcrt1qtwxd8wg5eanumk86vfeujvp48hfkgannf77evggzct048wggsrxsum2pmm", - "scriptpubkey": "00205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd", - "warning_usage": "The funding transaction MUST NOT be broadcast until after channel establishment has been successfully completed by running `fundchannel_complete`" - } - }, - { - "request": { - "id": "example:fundchannel_start#2", - "method": "fundchannel_start", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount": "100000sat", - "feerate": null, - "announce": true, - "close_to": null, - "mindepth": null, - "channel_type": null - } - }, - "response": { - "funding_address": "bcrt1qtwxd8wg5eanumk86vfeujvp48hfkgannf77evggzct048wggsrxsum2pmm", - "scriptpubkey": "00205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd", - "channel_type": { - "bits": [ - 12, - 22 - ], - "names": [ - "static_remotekey/even", - "anchors_zero_fee_htlc_tx/even" - ] - }, - "warning_usage": "The funding transaction MUST NOT be broadcast until after channel establishment has been successfully completed by running `fundchannel_complete`" - } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-connect(7)", - "lightning-fundchannel(7)", - "lightning-multifundchannel(7)", - "lightning-fundchannel_complete(7)", - "lightning-fundchannel_cancel(7)", - "lightning-openchannel_init(7)", - "lightning-openchannel_update(7)", - "lightning-openchannel_signed(7)", - "lightning-openchannel_bump(7)", - "lightning-openchannel_abort(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-funderupdate.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "funderupdate", - "title": "Command for adjusting node funding v2 channels", - "description": [ - "NOTE: Must have --experimental-dual-fund enabled for these settings to take effect.", - "", - "For channel open requests using dual funding.", - "", - "Note: to maximize channel leases, best policy setting is (match, 100).", - "", - "Setting any of the 5 options from *lease_fee_base_msat*, *lease_fee_basis*, *funding_weight*, *channel_fee_max_base_msat* and, *channel_fee_max_proportional_thousandths* will activate channel leases for this node, and advertise these values via the lightning gossip network. If any one is set, the other values will be the default." - ], - "request": { - "required": [], - "properties": { - "policy": { - "type": "string", - "enum": [ - "match", - "available", - "fixed" - ], - "description": [ - "Funder plugin will use to decide how much capital to commit to a v2 open channel request.", - "There are three policy options, detailed below:", - " * `match` -- Contribute *policy_mod* percent of their requested funds. Valid *policy_mod* values are 0 to 200. If this is a channel lease request, we match based on their requested funds. If it is not a channel lease request (and *lease_only* is false), then we match their funding amount. Note: any lease match less than 100 will likely fail, as clients will not accept a lease less than their request.", - " * `available` -- Contribute *policy_mod* percent of our available node wallet funds. Valid *policy_mod* values are 0 to 100.", - " * `fixed` -- Contributes a fixed *policy_mod* sats to v2 channel open requests." - ], - "default": "fixed" - }, - "policy_mod": { - "type": "sat", - "description": [ - "Number or 'modification' to apply to the policy." - ], - "default": "0sats" - }, - "leases_only": { - "type": "boolean", - "description": [ - "Only contribute funds to `option_will_fund` requests which pay to lease funds. It will fund any v2 open request using *policy* even if it's they're not seeking to lease funds. Note that `option_will_fund` commits funds for 4032 blocks (~1mo). Must also set *lease_fee_base_msat*, *lease_fee_basis*, *funding_weight*, *channel_fee_max_base_msat*, and *channel_fee_max_proportional_thousandths* to advertise available channel leases." - ], - "default": "False" - }, - "min_their_funding_msat": { - "type": "msat", - "description": [ - "Minimum funding sats that we require in order to activate our contribution policy to the v2 open." - ], - "default": "10k sats" - }, - "max_their_funding_msat": { - "type": "msat", - "description": [ - "Maximum funding sats that we will consider to activate our contribution policy to the v2 open. Any channel open above this will not be funded." - ], - "default": "no max (`UINT_MAX`)" - }, - "per_channel_min_msat": { - "type": "msat", - "description": [ - "Minimum amount that we will contribute to a channel open." - ], - "default": "10k sats" - }, - "per_channel_max_msat": { - "type": "msat", - "description": [ - "Maximum amount that we will contribute to a channel open." - ], - "default": "no max (`UINT_MAX`)" - }, - "reserve_tank_msat": { - "type": "msat", - "description": [ - "Amount of sats to leave available in the node wallet." - ], - "default": "zero sats" - }, - "fuzz_percent": { - "type": "u32", - "description": [ - "A percentage to fuzz the resulting contribution amount by. Valid values are 0 to 100. Note that turning this on with (match, 100) policy will randomly fail `option_will_fund` leases, as most clients expect an exact or greater match of their `requested_funds`." - ], - "default": "0% (no fuzz)" - }, - "fund_probability": { - "type": "u32", - "description": [ - "The percent of v2 channel open requests to apply our policy to. Valid values are integers from 0 (fund 0% of all open requests) to 100 (fund every request). Useful for randomizing opens that receive funds. Useful for randomizing opens that receive funds." - ], - "default": "100" - }, - "lease_fee_base_msat": { - "type": "msat", - "description": [ - "Flat fee for a channel lease. Node will receive this much extra added to their channel balance, paid by the opening node. Note that the minimum is 1sat." - ], - "default": "2k sats" - }, - "lease_fee_basis": { - "type": "u32", - "description": [ - "A basis fee that's calculated as 1/10k of the total requested funds the peer is asking for. Node will receive the total of *lease_fee_basis* times requested funds / 10k satoshis added to their channel balance, paid by the opening node." - ], - "default": "0.65% (65 basis points)" - }, - "funding_weight": { - "type": "u32", - "description": [ - "To calculate the fee the peer will compensate your node for its contributing inputs to the funding transaction. The total fee is calculated as the `open_channel2`.`funding_feerate_perkw` times this *funding_weight* divided by 1000. Node will have this funding fee added to their channel balance, paid by the opening node." - ], - "default": "2 inputs + 1 P2WPKH output" - }, - "channel_fee_max_base_msat": { - "type": "msat", - "description": [ - "A commitment to a maximum `channel_fee_base_msat` that your node will charge for routing payments over this leased channel during the lease duration." - ], - "default": "5k sats" - }, - "channel_fee_max_proportional_thousandths": { - "type": "u32", - "description": [ - "A commitment to a maximum `channel_fee_proportional_millionths` that your node will charge for routing payments over this leased channel during the lease duration. Note that it's denominated in 'thousandths'. A setting of `1` is equal to 1k ppm; `5` is 5k ppm, etc." - ], - "default": "100 (100k ppm)" - }, - "compact_lease": { - "type": "hex", - "description": [ - "A compact description of the channel lease params. When opening a channel, passed in to `fundchannel` to indicate the terms we expect from the peer." - ] - } - } - }, - "response": { - "required": [ - "summary", - "policy", - "policy_mod", - "leases_only", - "min_their_funding_msat", - "max_their_funding_msat", - "per_channel_min_msat", - "per_channel_max_msat", - "reserve_tank_msat", - "fuzz_percent", - "fund_probability" - ], - "properties": { - "summary": { - "type": "string", - "description": [ - "Summary of the current funding policy e.g. (match 100)." - ] - }, - "policy": { - "type": "string", - "enum": [ - "match", - "available", - "fixed" - ], - "description": [ - "Policy funder plugin will use to decide how much capital to commit to a v2 open channel request." - ] - }, - "policy_mod": { - "type": "u32", - "description": [ - "The *policy_mod* is the number or 'modification' to apply to the policy." - ] - }, - "leases_only": { - "type": "boolean", - "description": [ - "Only contribute funds to `option_will_fund` lease requests." - ] - }, - "min_their_funding_msat": { - "type": "msat", - "description": [ - "The minimum funding sats that we require from peer to activate our funding policy." - ] - }, - "max_their_funding_msat": { - "type": "msat", - "description": [ - "The maximum funding sats that we'll allow from peer to activate our funding policy." - ] - }, - "per_channel_min_msat": { - "type": "msat", - "description": [ - "The minimum amount that we will fund a channel open with." - ] - }, - "per_channel_max_msat": { - "type": "msat", - "description": [ - "The maximum amount that we will fund a channel open with." - ] - }, - "reserve_tank_msat": { - "type": "msat", - "description": [ - "Amount of sats to leave available in the node wallet." - ] - }, - "fuzz_percent": { - "type": "u32", - "description": [ - "Percentage to fuzz our funding amount by." - ] - }, - "fund_probability": { - "type": "u32", - "description": [ - "Percent of opens to consider funding. 100 means we'll consider funding every requested open channel request." - ] - }, - "lease_fee_base_msat": { - "type": "msat", - "description": [ - "Flat fee to charge for a channel lease." - ] - }, - "lease_fee_basis": { - "type": "u32", - "description": [ - "Proportional fee to charge for a channel lease, calculated as 1/10,000th of requested funds." - ] - }, - "funding_weight": { - "type": "u32", - "description": [ - "Transaction weight the channel opener will pay us for a leased funding transaction." - ] - }, - "channel_fee_max_base_msat": { - "type": "msat", - "description": [ - "Maximum channel_fee_base_msat we'll charge for routing funds leased on this channel." - ] - }, - "channel_fee_max_proportional_thousandths": { - "type": "u32", - "description": [ - "Maximum channel_fee_proportional_millitionths we'll charge for routing funds leased on this channel, in thousandths." - ] - }, - "compact_lease": { - "type": "hex", - "description": [ - "Compact description of the channel lease parameters." - ] - } - } - }, - "errors": [ - "The following error code may occur:", - "", - "- -32602: If the given parameters are invalid." - ], - "json_example": [ - { - "request": { - "id": "example:funderupdate#1", - "method": "funderupdate", - "params": "{}" - }, - "response": { - "summary": "match (100%)", - "policy": "match", - "policy_mod": 100, - "leases_only": true, - "min_their_funding_msat": 10000000, - "max_their_funding_msat": 4294967295000, - "per_channel_min_msat": 10000000, - "per_channel_max_msat": 4294967295000, - "reserve_tank_msat": 0, - "fuzz_percent": 0, - "fund_probability": 100, - "lease_fee_base_msat": 100000, - "lease_fee_basis": 100, - "funding_weight": 666, - "channel_fee_max_base_msat": 5000000, - "channel_fee_max_proportional_thousandths": 100, - "compact_lease": "029a00640064000000644c4b40" - } - }, - { - "request": { - "id": "example:funderupdate#2", - "method": "funderupdate", - "params": { - "policy": "fixed", - "policy_mod": "50000sat", - "min_their_funding_msat": 1000, - "per_channel_min_msat": "1000sat", - "per_channel_max_msat": "500000sat", - "fund_probability": 100, - "fuzz_percent": 0, - "leases_only": false - } - }, - "response": { - "summary": "fixed (50000sat)", - "policy": "fixed", - "policy_mod": 50000, - "leases_only": false, - "min_their_funding_msat": 1000, - "max_their_funding_msat": 4294967295000, - "per_channel_min_msat": 1000000, - "per_channel_max_msat": 500000000, - "reserve_tank_msat": 0, - "fuzz_percent": 0, - "fund_probability": 100 - } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-fundchannel(7)", - "lightning-listfunds(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-fundpsbt.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "fundpsbt", - "title": "Command to populate PSBT inputs from the wallet", - "description": [ - "`fundpsbt` is a low-level RPC command which creates a PSBT using unreserved inputs in the wallet, optionally reserving them as well." - ], - "request": { - "required": [ - "satoshi", - "feerate", - "startweight" - ], - "properties": { - "satoshi": { - "type": "msat_or_all", - "description": [ - "The minimum satoshi value of the output(s) needed (or the string `all` meaning use all unreserved inputs). If a value, it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*." - ] - }, - "feerate": { - "type": "feerate", - "description": [ - "Used for the transaction as initial feerate." - ], - "default": "*normal*" - }, - "startweight": { - "type": "u32", - "description": [ - "The weight of the transaction before *fundpsbt* has added any inputs." - ] - }, - "minconf": { - "type": "u32", - "description": [ - "The minimum number of confirmations that used outputs should have." - ], - "default": "1" - }, - "reserve": { - "type": "u32", - "description": [ - "If not zero, then *reserveinputs* is called (successfully, with *exclusive* true) on the returned PSBT for this number of blocks." - ], - "default": "72 blocks" - }, - "locktime": { - "type": "u32", - "description": [ - "The locktime of the transaction. if not set, it is set to a recent block height." - ] - }, - "min_witness_weight": { - "type": "u32", - "description": [ - "Minimum weight to use for a UTXO's witness. If the actual witness weight is greater than the provided minimum, the actual witness weight will be used." - ] - }, - "excess_as_change": { - "type": "boolean", - "description": [ - "Flag to add a change output for the excess sats." - ] - }, - "nonwrapped": { - "added": "v23.02", - "type": "boolean", - "description": [ - "To signal to filter out any p2sh-wrapped inputs from funding this PSBT." - ] - }, - "opening_anchor_channel": { - "added": "v23.08", - "type": "boolean", - "description": [ - "To signel that it needs emergency reserve for anchors so that we can lowball our commitment tx fees, and min-emergency-msat for reserving some sats for closing anchor channels." - ] - } - } - }, - "response": { - "required": [ - "psbt", - "feerate_per_kw", - "estimated_final_weight", - "excess_msat" - ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "Unsigned PSBT which fulfills the parameters given." - ] - }, - "feerate_per_kw": { - "type": "u32", - "description": [ - "The feerate used to create the PSBT, in satoshis-per-kiloweight." - ] - }, - "estimated_final_weight": { - "type": "u32", - "description": [ - "The estimated weight of the transaction once fully signed." - ] - }, - "excess_msat": { - "type": "msat", - "description": [ - "The amount above *satoshi* which is available. This could be zero, or dust; it will be zero if *change_outnum* is also returned." - ] - }, - "change_outnum": { - "type": "u32", - "description": [ - "The 0-based output number where change was placed (only if parameter *excess_as_change* was true and there was sufficient funds)." - ] - }, - "reservations": { - "type": "array", - "description": [ - "If *reserve* was true or a non-zero number, just as per lightning- reserveinputs(7)." - ], - "items": { - "type": "object", - "required": [ - "txid", - "vout", - "was_reserved", - "reserved", - "reserved_to_block" - ], - "additionalProperties": false, - "properties": { - "txid": { - "type": "txid", - "description": [ - "The txid of the transaction." - ] - }, - "vout": { - "type": "u32", - "description": [ - "The 0-based output number." - ] - }, - "was_reserved": { - "type": "boolean", - "enum": [ - false - ], - "description": [ - "Whether this output was previously reserved." - ] - }, - "reserved": { - "type": "boolean", - "enum": [ - true - ], - "description": [ - "Whether this output is now reserved." - ] - }, - "reserved_to_block": { - "type": "u32", - "description": [ - "The blockheight the reservation will expire." - ] - } - } - } - } - }, - "post_return_value_notes": [ - "If *excess_as_change* is true and the excess is enough to cover an additional output above the `dust_limit`, then an output is added to the PSBT for the excess amount. The *excess_msat* will be zero. A *change_outnum* will be returned with the index of the change output." - ] - }, - "example_usage": [ - "Let's assume the caller is trying to produce a 100,000 satoshi output.", - "", - "First, the caller estimates the weight of the core (typically 42) and known outputs of the transaction (typically (9 + scriptlen) * 4). For a simple P2WPKH it's a 22 byte scriptpubkey, so that's 124 weight.", - "", - "It calls \"*fundpsbt* 100000sat slow 166\", which succeeds, and returns the *psbt* and *feerate_per_kw* it used, the *estimated_final_weight* and any *excess_msat*.", - "", - "If *excess_msat* is greater than the cost of adding a change output, the caller adds a change output randomly to position 0 or 1 in the PSBT. Say *feerate_per_kw* is 253, and the change output is a P2WPKH (weight 124), the cost is around 31 sats. With the dust limit disallowing payments below 546 satoshis, we would only create a change output if *excess_msat* was greater or equal to 31 + 546." - ], - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong.", - "- -1: Catchall nonspecific error.", - "- 301: Insufficient UTXOs to meet *satoshi* value." - ], - "json_example": [ - { - "request": { - "id": "example:fundpsbt#1", - "method": "fundpsbt", - "params": { - "satoshi": 16777216, - "feerate": "253perkw", - "startweight": 250, - "minconf": null, - "reserve": 0, - "locktime": null, - "min_witness_weight": null, - "excess_as_change": false - } - }, - "response": { - "psbt": "cHNidP8BADMCAAAAAWzmSFzhTtXBnQewytc32WaMwJSunScwsYndBNdU80JqAAAAAAD9////AGYAAAAAAQDeAgAAAAABAU1MpIJeOOzqAYVkZaytJCmzUadBVltKar8kWtzKSVeYAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFD8W5uBNZAxN6n1jqU62dxWQbyGAAkcwRAIgUK+vMOeWiDPiJM8fpgKCjjwXog4yfWPvtKES1ZZPaM8CIB3cgouGpV6Gc7nEvAu28Mg9tkAWt/Xl5FDOseEyeZqHASECTwjR0I3gLHdSW7jRmnVXdm0+MgJ1hihnqEfXYeFWA/NlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQA=", - "feerate_per_kw": 253, - "estimated_final_weight": 521, - "excess_msat": 9999869000 - } - }, - { - "request": { - "id": "example:fundpsbt#2", - "method": "fundpsbt", - "params": { - "satoshi": "all", - "feerate": "1000perkw", - "startweight": 1000, - "minconf": null, - "reserve": null, - "locktime": null, - "min_witness_weight": null, - "excess_as_change": false - } - }, - "response": { - "psbt": "cHNidP8BAF4CAAAAAfwbEpvpi6D14YV4VLnuVB47Y0uF41kXEyJRL4IusySSAQAAAAD9////ASICAAAAAAAAIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL5nAAAAAAEA9gIAAAAAAQFEkxvLatohY6mw5gr5qG1aiArSrziFPR2YoqD21Hv+RAAAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNrz8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIEu1nfVRt9i+rFM219mwhMqdwJsqygWSWTFUS+cemdh6AiBG3Qo8g9J/aAMO2RHDsIBScscj6pTTIwZp7Gw8G3EOKAEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPZgAAAAEBK68/DwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oAAA==", - "feerate_per_kw": 1000, - "estimated_final_weight": 1443, - "excess_msat": 997354000, - "change_outnum": 0, - "reservations": [ - { - "txid": "9224b32e822f5122131759e3854b633b1e54eeb9547885e1f5a08be99b121bfc", - "vout": 1, - "was_reserved": false, - "reserved": true, - "reserved_to_block": 175 - } - ] - } - }, - { - "request": { - "id": "example:fundpsbt#3", - "method": "fundpsbt", - "params": { - "satoshi": "109000sat", - "feerate": "slow", - "startweight": 166, - "minconf": null, - "reserve": null, - "locktime": null, - "min_witness_weight": null, - "excess_as_change": true - } - }, - "response": { - "psbt": "cHNidP8BAF4CAAAAAbEf44mT/BPDxLkUjKy1byWksyLyuM6hbe8shzEbbXhGAQAAAAD9////AU58DQAAAAAAIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL5sAAAAAAEA9gIAAAAAAQEV9Sj1wfHqO/ECZeHp/u7cFL5eRaa1Vu4hXWbwH72pxgEAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIGILT3DrcNn6/WKOhsxxKq7lDWq47dV0IjRhj0bYHs4yAiApzODtmrz7ifK32G81A2XbBxWboFk2vN4T3ng/hYmb1wEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPZgAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oAAA==", - "feerate_per_kw": 3750, - "estimated_final_weight": 609, - "excess_msat": 0, - "change_outnum": 0, - "reservations": [ - { - "txid": "46786d1b31872cef6da1ceb8f222b3a4256fb5ac8c14b9c4c313fc9389e31fb1", - "vout": 1, - "was_reserved": false, - "reserved": true, - "reserved_to_block": 180 - } - ] - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-utxopsbt(7)", - "lightning-reserveinputs(7)", - "lightning-unreserveinputs(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-getinfo.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "getinfo", - "title": "Command to receive all information about the Core Lightning node.", - "description": [ - "The **getinfo** gives a summary of the current running node." - ], - "request": { - "required": [], - "properties": {} - }, - "response": { - "required": [ - "id", - "alias", - "color", - "num_peers", - "num_pending_channels", - "num_active_channels", - "num_inactive_channels", - "version", - "blockheight", - "network", - "fees_collected_msat", - "lightning-dir", - "address" - ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "The public key unique to this node." - ] - }, - "alias": { - "type": "string", - "description": [ - "The fun alias this node will advertize." - ], - "maxLength": 32 - }, - "color": { - "type": "hex", - "description": [ - "The favorite RGB color this node will advertize." - ], - "minLength": 6, - "maxLength": 6 - }, - "num_peers": { - "type": "u32", - "description": [ - "The total count of peers, connected or with channels." - ] - }, - "num_pending_channels": { - "type": "u32", - "description": [ - "The total count of channels being opened." - ] - }, - "num_active_channels": { - "type": "u32", - "description": [ - "The total count of channels in normal state." - ] - }, - "num_inactive_channels": { - "type": "u32", - "description": [ - "The total count of channels waiting for opening or closing transactions to be mined." - ] - }, - "version": { - "type": "string", - "description": [ - "Identifies what bugs you are running into." - ] - }, - "lightning-dir": { - "type": "string", - "description": [ - "Identifies where you can find the configuration and other related files." - ] - }, - "our_features": { - "type": "object", - "description": [ - "Our BOLT #9 feature bits (as hexstring) for various contexts." - ], - "additionalProperties": true, - "required": [ - "init", - "node", - "channel", - "invoice" - ], - "properties": { - "init": { - "type": "hex", - "description": [ - "Features (incl. globalfeatures) in our init message, these also restrict what we offer in open_channel or accept in accept_channel." - ] - }, - "node": { - "type": "hex", - "description": [ - "Features in our node_announcement message." - ] - }, - "channel": { - "type": "hex", - "description": [ - "Negotiated channel features we (as channel initiator) publish in the channel_announcement message." - ] - }, - "invoice": { - "type": "hex", - "description": [ - "Features in our BOLT11 invoices." - ] - } - } - }, - "blockheight": { - "type": "u32", - "description": [ - "The highest block height we've learned." - ] - }, - "network": { - "type": "string", - "description": [ - "Represents the type of network on the node are working (e.g: `bitcoin`, `testnet`, or `regtest`)." - ] - }, - "fees_collected_msat": { - "type": "msat", - "description": [ - "Total routing fees collected by this node." - ] - }, - "address": { - "type": "array", - "description": [ - "The addresses we announce to the world." - ], - "items": { - "type": "object", - "required": [ - "type", - "port" - ], - "additionalProperties": true, - "properties": { - "type": { - "type": "string", - "enum": [ - "dns", - "ipv4", - "ipv6", - "torv2", - "torv3" - ], - "description": [ - "Type of connection (until 23.08, `websocket` was also allowed)." - ] - }, - "port": { - "type": "u16", - "description": [ - "Port number." - ] - } - }, - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "dns", - "ipv4", - "ipv6", - "torv2", - "torv3" - ] - } - } - }, - "then": { - "required": [ - "type", - "address", - "port" - ], - "additionalProperties": false, - "properties": { - "type": {}, - "port": {}, - "address": { - "type": "string", - "description": [ - "Address in expected format for **type**." - ] - } - } - }, - "else": { - "required": [ - "type", - "port" - ], - "additionalProperties": false, - "properties": { - "type": {}, - "port": {} - } - } - } - }, - "binding": { - "type": "array", - "description": [ - "The addresses we are listening on." - ], - "items": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "local socket", - "websocket", - "ipv4", - "ipv6", - "torv2", - "torv3" - ], - "description": [ - "Type of connection." - ] - }, - "address": { - "type": "string", - "description": [ - "Address in expected format for **type**." - ] - }, - "port": { - "type": "u16", - "description": [ - "Port number." - ] - } - }, - "allOf": [ - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "local socket" - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "type", - "socket" - ], - "properties": { - "type": {}, - "socket": { - "type": "string", - "description": [ - "Socket filename." - ] - } - } - }, - "else": { - "additionalProperties": false, - "required": [ - "type", - "address", - "port" - ], - "properties": { - "type": {}, - "address": {}, - "port": {}, - "subtype": {} - } - } - }, - { - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "websocket" - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "type", - "address", - "port", - "subtype" - ], - "properties": { - "type": {}, - "address": {}, - "port": {}, - "subtype": { - "type": "string", - "description": [ - "Type of address." - ] - } - } - }, - "else": { - "additionalProperties": false, - "required": [ - "type" - ], - "properties": { - "type": {}, - "address": {}, - "port": {}, - "socket": {} - } - } - } - ] - } - }, - "warning_bitcoind_sync": { - "type": "string", - "description": [ - "Bitcoind is not up-to-date with network." - ] - }, - "warning_lightningd_sync": { - "type": "string", - "description": [ - "Lightningd is still loading latest blocks from bitcoind." - ] - } - } - }, - "json_example": [ - { - "request": { - "id": "example:getinfo#1", - "method": "getinfo", - "params": {} - }, - "response": { - "id": "02bf811f7571754f0b51e6d41a8885f5561041a7b14fac093e4cffb95749de1a8d", - "alias": "SLICKERGOPHER", - "color": "02bf81", - "num_peers": 0, - "num_pending_channels": 0, - "num_active_channels": 0, - "num_inactive_channels": 0, - "address": [ - { - "type": "torv3", - "address": "fp463inc4w3lamhhduytrwdwq6q6uzugtaeapylqfc43agrdnnqsheyd.onion", - "port": 9736 - }, - { - "type": "torv3", - "address": "ifnntp5ak4homxrti2fp6ckyllaqcike447ilqfrgdw64ayrmkyashid.onion", - "port": 9736 - } - ], - "binding": [ - { - "type": "ipv4", - "address": "127.0.0.1", - "port": 9736 - } - ], - "version": "v0.10.2", - "blockheight": 724302, - "network": "bitcoin", - "msatoshi_fees_collected": 0, - "fees_collected_msat": "0msat", - "lightning-dir": "/media/vincent/Maxtor/C-lightning/node/bitcoin", - "our_features": { - "init": "8828226aa2", - "node": "80008828226aa2", - "channel": "", - "invoice": "20024200" - } - } - } - ], - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32602: Error in given parameters or some error happened during the command process." - ], - "author": [ - "Vincenzo Palazzo <> wrote the initial version of this man page,", - "but many others did the hard work of actually implementing this rpc command." - ], - "see_also": [ - "lightning-connect(7)", - "lightning-fundchannel(7)", - "lightning-listconfigs(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-getlog.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "getlog", - "title": "Command to show logs.", - "description": [ - "The **getlog** the RPC command to show logs, with optional log *level*." - ], - "request": { - "required": [], - "properties": { - "level": { - "type": "string", - "enum": [ - "broken", - "unusual", - "info", - "debug", - "trace", - "io" - ], - "description": [ - "A string that represents the log level." - ], - "default": "*info*" - } - } - }, - "response": { - "required": [ - "created_at", - "bytes_used", - "bytes_max", - "log" - ], - "properties": { - "created_at": { - "type": "string", - "description": [ - "UNIX timestamp with 9 decimal places, when logging was initialized." - ] - }, - "bytes_used": { - "type": "u32", - "description": [ - "The number of bytes used by logging records." - ] - }, - "bytes_max": { - "type": "u32", - "description": [ - "The bytes_used values at which records will be trimmed ." - ] - }, - "log": { - "type": "array", - "items": { - "type": "object", - "required": [ - "type" - ], - "additionalProperties": true, - "properties": { - "type": { - "type": "string", - "enum": [ - "SKIPPED", - "BROKEN", - "UNUSUAL", - "INFO", - "DEBUG", - "TRACE", - "IO_IN", - "IO_OUT" - ] - } - }, - "allOf": [ - { - "if": { - "additionalProperties": true, - "properties": { - "type": { - "enum": [ - "SKIPPED" - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "num_skipped" - ], - "properties": { - "type": {}, - "num_skipped": { - "type": "u32", - "description": [ - "Number of unprinted log entries (deleted or below *level* parameter)." - ] - } - } - } - }, - { - "if": { - "additionalProperties": true, - "properties": { - "type": { - "enum": [ - "BROKEN", - "UNUSUAL", - "INFO", - "DEBUG", - "TRACE" - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "time", - "source", - "log" - ], - "properties": { - "type": {}, - "time": { - "type": "string", - "description": [ - "UNIX timestamp with 9 decimal places after **created_at**." - ] - }, - "source": { - "type": "string", - "description": [ - "The particular logbook this was found in." - ] - }, - "log": { - "type": "string", - "description": [ - "The actual log message." - ] - }, - "node_id": { - "type": "pubkey", - "description": [ - "The peer this is associated with." - ] - } - } - } - }, - { - "if": { - "additionalProperties": true, - "properties": { - "type": { - "enum": [ - "IO_IN", - "IO_OUT" - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "time", - "source", - "log", - "data" - ], - "properties": { - "type": {}, - "time": { - "type": "string", - "description": [ - "Seconds after **created_at**, with 9 decimal places." - ] - }, - "source": { - "type": "string", - "description": [ - "The particular logbook this was found in." - ] - }, - "log": { - "type": "string", - "description": [ - "The associated log message." - ] - }, - "node_id": { - "type": "pubkey", - "description": [ - "The peer this is associated with." - ] - }, - "data": { - "type": "hex", - "description": [ - "The IO which occurred." - ] - } - } - } - } - ] - } - } - } - }, - "json_example": [ - { - "request": { - "id": "example:getlog#1", - "method": "getlog", - "params": { - "level": "debug" - } - }, - "response": { - "created_at": "1598192543.820753463", - "bytes_used": 89285843, - "bytes_max": 104857600, - "log": [ - { - "type": "SKIPPED", - "num_skipped": 45 - }, - { - "type": "INFO", - "time": "0.453627568", - "source": "plugin-autopilot.py", - "log": "RPCmethod'autopilot-run-once'doesnothaveadocstring." - } - ] - } - } - ], - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32602: Error in given parameters." - ], - "author": [ - "Vincenzo Palazzo <> wrote the initial version of this man page,", - "but many others did the hard work of actually implementing this rpc command." - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-getroute.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "getroute", - "title": "Command for routing a payment (low-level)", - "description": [ - "The **getroute** RPC command attempts to find the best route for the payment of *amount_msat* to lightning node *id*, such that the payment will arrive at *id* with *cltv*.", - "", - "There are two considerations for how good a route is: how low the fees are, and how long your payment will get stuck in a delayed output if a node goes down during the process. ." - ], - "request": { - "required": [ - "id", - "amount_msat", - "riskfactor" - ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "Node pubkey to find the best route for the payment." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Amount to send. It can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*. The 0 value is special: it ignores any *htlc_minimum_msat* setting on channels, and simply returns a possible route (if any) which is useful for simple probing." - ] - }, - "riskfactor": { - "type": "u64", - "description": [ - "A non-negative floating-point field controls this tradeoff; it is the annual cost of your funds being stuck (as a percentage). For example, if you thought the convenience of keeping your funds liquid (not stuck) was worth 20% per annum interest, *riskfactor* would be 20. If you didn't care about risk, *riskfactor* would be zero." - ] - }, - "cltv": { - "type": "u32", - "description": [ - "Cltv-blocks to spare." - ], - "default": "9" - }, - "fromid": { - "type": "pubkey", - "description": [ - "The node to start the route from." - ], - "default": "this node" - }, - "fuzzpercent": { - "type": "u32", - "description": [ - "Used to distort fees to provide some randomization to the route generated, but it was not properly implemented and is ignored." - ] - }, - "exclude": { - "type": "array", - "description": [ - "A JSON array of short-channel-id/direction (e.g. ['564334x877x1/0', '564195x1292x0/1' ]) or node-id which should be excluded from consideration for routing. Note if the source or destination is excluded, the command result is undefined." - ], - "default": "not to exclude any channels or nodes", - "items": { - "type": "string" - } - }, - "maxhops": { - "type": "u32", - "description": [ - "The maximum number of channels to return." - ], - "default": "20" - } - } - }, - "response": { - "required": [ - "route" - ], - "properties": { - "route": { - "type": "array", - "items": { - "type": "object", - "required": [ - "id", - "direction", - "channel", - "amount_msat", - "delay", - "style" - ], - "additionalProperties": false, - "properties": { - "id": { - "type": "pubkey", - "description": [ - "The node at the end of this hop." - ] - }, - "channel": { - "type": "short_channel_id", - "description": [ - "The channel joining these nodes." - ] - }, - "direction": { - "type": "u32", - "description": [ - "0 if this channel is traversed from lesser to greater **id**, otherwise 1." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount expected by the node at the end of this hop." - ] - }, - "delay": { - "type": "u32", - "description": [ - "The total CLTV expected by the node at the end of this hop." - ] - }, - "style": { - "type": "string", - "description": [ - "The features understood by the destination node." - ], - "enum": [ - "tlv" - ] - } - } - } - } - }, - "post_return_value_notes": [ - "The final *id* will be the destination *id* given in the input. The difference between the first *amount_msat* minus the *amount_msat* given in the input is the fee (assuming the first hop is free). The first *delay* is the very worst case timeout for the payment failure, in blocks." - ] - }, - "riskfactor_effect_on_routing": [ - "The risk factor is treated as if it were an additional fee on the route, for the purposes of comparing routes.", - "", - "The formula used is the following approximation:", - "", - " risk-fee = amount x blocks-timeout x per-block-cost", - "", - "We are given a *riskfactor* expressed as a percentage. There are 52596 blocks per year, thus *per-block-cost* is *riskfactor* divided by 5,259,600.", - "", - "The final result is:", - "", - " risk-fee = amount x blocks-timeout x riskfactor / 5259600", - "", - "Here are the risk fees in millisatoshis, using various parameters. I assume a channel charges the default of 1000 millisatoshis plus 1 part-per-million. Common to_self_delay values on the network at 14 and 144 blocks.", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "
Amount (msat)RiskfactorDelayRisk FeeRoute fee

10,000

1

14

0

1001

10,000

10

14

0

1001

10,000

100

14

2

1001

10,000

1000

14

26

1001

1,000,000

1

14

2

1001

1,000,000

10

14

26

1001

1,000,000

100

14

266

1001

1,000,000

1000

14

2661

1001

100,000,000

1

14

266

1100

100,000,000

10

14

2661

1100

100,000,000

100

14

26617

1100

100,000,000

1000

14

266179

1100

10,000

1

144

0

1001

10,000

10

144

2

1001

10,000

100

144

27

1001

10,000

1000

144

273

1001

1,000,000

1

144

27

1001

1,000,000

10

144

273

1001

1,000,000

100

144

2737

1001

1,000,000

1000

144

27378

1001

100,000,000

1

144

2737

1100

100,000,000

10

144

27378

1100

100,000,000

100

144

273785

1100

100,000,000

1000

144

2737850

1100

" - ], - "recommended_riskfactor_values": [ - "The default *fuzz* factor is 5%, so as you can see from the table above, that tends to overwhelm the effect of *riskfactor* less than about 5.", - "", - "1 is a conservative value for a stable lightning network with very few failures.", - "", - "1000 is an aggressive value for trying to minimize timeouts at all costs.", - "", - "The default for lightning-pay(7) is 10, which starts to become a major factor for larger amounts, and is basically ignored for tiny ones." - ], - "json_example": [ - { - "request": { - "id": "example:getroute#1", - "method": "getroute", - "params": { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "amount_msat": 50000000, - "riskfactor": 1, - "cltv": 9, - "fromid": null, - "fuzzpercent": null, - "exclude": null, - "maxhops": null - } - }, - "response": { - "route": [ - { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "103x3x0", - "direction": 1, - "amount_msat": 50001002, - "delay": 21, - "style": "tlv" - }, - { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "channel": "103x1x0", - "direction": 1, - "amount_msat": 50000501, - "delay": 15, - "style": "tlv" - }, - { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "channel": "103x2x0", - "direction": 0, - "amount_msat": 50000000, - "delay": 9, - "style": "tlv" - } - ] - } - }, - { - "request": { - "id": "example:getroute#2", - "method": "getroute", - "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "amount_msat": "50000sat", - "riskfactor": 10 - } - }, - "response": { - "route": [ - { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "channel": "103x2x0", - "direction": 1, - "amount_msat": 50051000, - "delay": 15, - "style": "tlv" - }, - { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "103x1x0", - "direction": 0, - "amount_msat": 50000000, - "delay": 9, - "style": "tlv" - } - ] - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-pay(7)", - "lightning-sendpay(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-help.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "help", - "title": "Command to return all information about RPC commands.", - "description": [ - "The **help** is a RPC command which is possible consult all information about the RPC commands, or a specific command if *command* is given.", - "", - "Note that the lightning-cli(1) tool will prefer to list a man page when a specific *command* is specified, and will only return the JSON if the man page is not found." - ], - "request": { - "required": [], - "properties": { - "command": { - "type": "string", - "description": [ - "Command to get information about." - ] - } - } - }, - "response": { - "required": [ - "help" - ], - "properties": { - "help": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "command", - "category", - "description", - "verbose" - ], - "properties": { - "command": { - "type": "string", - "description": [ - "The command." - ] - }, - "category": { - "type": "string", - "description": [ - "The category for this command (useful for grouping)." - ] - }, - "description": { - "type": "string", - "description": [ - "A one-line description of the purpose of this command." - ] - }, - "verbose": { - "type": "string", - "description": [ - "A full description of this command (including whether it's deprecated)." - ] - } - } - } - }, - "format-hint": { - "type": "string", - "enum": [ - "simple" - ], - "description": [ - "Prints the help in human-readable flat form." - ] - } - } - }, - "json_example": [ - { - "request": { - "id": "example:help#1", - "method": "help", - "params": { - "command": "pay" - } - }, - "response": { - "help": [ - { - "command": "pay bolt11 [amount_msat] [label] [riskfactor] [maxfeepercent] [retry_for] [maxdelay] [exemptfee] [localinvreqid] [exclude] [maxfee] [description] [dev_use_shadow]", - "category": "plugin", - "description": "Send payment specified by {bolt11}", - "verbose": "Attempt to pay the {bolt11} invoice." - } - ], - "format-hint": "simple" - } - }, - { - "request": { - "id": "example:help#2", - "method": "help", - "params": { - "command": "dev" - } - }, - "response": { - "help": [ - { - "command": "dev subcommand=crash|rhash|slowcmd", - "category": "developer", - "description": "Developer command test multiplexer", - "verbose": "dev rhash {secret}\n\tShow SHA256 of {secret}\ndev crash\n\tCrash lightningd by calling fatal()\ndev slowcmd {msec}\n\tTorture test for slow commands, optional {msec}\n" - } - ], - "format-hint": "simple" - } - } - ], - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32602: Error in given parameters." - ], - "author": [ - "Vincenzo Palazzo <> wrote the initial version of this man page,", - "but many others did the hard work of actually implementing this rpc command." - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-invoice.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "invoice", - "title": "Command for accepting payments", - "description": [ - "The **invoice** RPC command creates the expectation of a payment of a given amount of milli-satoshi: it returns a unique token which another lightning daemon can use to pay this invoice. This token includes a *route hint* description of an incoming channel with capacity to pay the invoice, if any exists." - ], - "request": { - "required": [ - "amount_msat", - "label", - "description" - ], - "properties": { - "amount_msat": { - "type": "msat_or_any", - "description": [ - "The string `any`, which creates an invoice that can be paid with any amount. Otherwise it is a positive value in millisatoshi precision; it can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*." - ] - }, - "label": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "integer" - } - ], - "description": [ - "A unique string or number (which is treated as a string, so `01` is different from `1`); it is never revealed to other nodes on the lightning network, but it can be used to query the status of this invoice." - ] - }, - "description": { - "type": "string", - "description": [ - "A short description of purpose of payment, e.g. *1 cup of coffee*. This value is encoded into the BOLT11 invoice and is viewable by any node you send this invoice to (unless *deschashonly* is true as described below). It must be UTF-8, and cannot use *\\u* JSON escape codes." - ] - }, - "expiry": { - "type": "u64", - "description": [ - "The time the invoice is valid for, in seconds. If no value is provided the default of 604800 (1 week) is used." - ] - }, - "fallbacks": { - "type": "array", - "description": [ - "One or more fallback addresses to include in the invoice (in order from most- preferred to least): note that these arrays are not currently tracked to fulfill the invoice." - ], - "items": { - "type": "string" - } - }, - "preimage": { - "type": "hex", - "description": [ - "A 64-digit hex string to be used as payment preimage for the created invoice. By default, if unspecified, lightningd will generate a secure pseudorandom preimage seeded from an appropriate entropy source on your system. **IMPORTANT**: if you specify the *preimage*, you are responsible, to ensure appropriate care for generating using a secure pseudorandom generator seeded with sufficient entropy, and keeping the preimage secret. This parameter is an advanced feature intended for use with cutting-edge cryptographic protocols and should not be used unless explicitly needed." - ] - }, - "exposeprivatechannels": { - "description": [ - "If specified, it overrides the default route hint logic, which will use unpublished channels only if there are no published channels." - ], - "oneOf": [ - { - "type": "boolean", - "description": [ - "If *True* unpublished channels are always considered as a route hint candidate; if *False*, never." - ] - }, - { - "type": "array", - "description": [ - "Array of short channel ids (or a remote alias), only those specific channels will be considered candidates, even if they are public or dead-ends." - ], - "items": { - "type": "short_channel_id" - } - }, - { - "type": "short_channel_id", - "description": [ - "If it is a short channel id (e.g. *1x1x3*), only this specific channel will be considered candidate, even if it is public or dead-end." - ] - } - ] - }, - "cltv": { - "type": "u32", - "description": [ - "If specified, sets the *min_final_cltv_expiry* for the invoice. Otherwise, it's set to the parameter **cltv-final**." - ] - }, - "deschashonly": { - "type": "boolean", - "description": [ - "If True, then the bolt11 returned contains a hash of the *description*, rather than the *description* itself: this allows much longer descriptions, but they must be communicated via some other mechanism." - ], - "default": "False" - } - } - }, - "response": { - "required": [ - "payment_hash", - "expires_at", - "created_index", - "bolt11", - "payment_secret" - ], - "properties": { - "bolt11": { - "type": "string", - "description": [ - "The bolt11 string." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "payment_secret": { - "type": "secret", - "description": [ - "The *payment_secret* to place in the onion." - ] - }, - "expires_at": { - "type": "u64", - "description": [ - "UNIX timestamp of when invoice expires." - ] - }, - "created_index": { - "type": "u64", - "added": "v23.08", - "description": [ - "1-based index indicating order this invoice was created in." - ] - }, - "warning_capacity": { - "type": "string", - "description": [ - "Even using all possible channels, there's not enough incoming capacity to pay this invoice." - ] - }, - "warning_offline": { - "type": "string", - "description": [ - "There would be enough incoming capacity, but some channels are offline, so there isn't." - ] - }, - "warning_deadends": { - "type": "string", - "description": [ - "There would be enough incoming capacity, but some channels are dead-ends (no other public channels from those peers), so there isn't." - ] - }, - "warning_private_unused": { - "type": "string", - "description": [ - "There would be enough incoming capacity, but some channels are unannounced and *exposeprivatechannels* is *false*, so there isn't." - ] - }, - "warning_mpp": { - "type": "string", - "description": [ - "There is sufficient capacity, but not in a single channel, so the payer will have to use multi-part payments." - ] - } - } - }, - "errors": [ - "On failure, an error is returned and no invoice is created. If the", - "lightning process fails before responding, the caller should use", - "lightning-listinvoices(7) to query whether this invoice was created or", - "not.", - "", - "The following error codes may occur:", - "", - "- -1: Catchall nonspecific error.", - "- 900: An invoice with the given *label* already exists.", - "- 901: An invoice with the given *preimage* already exists.", - "- 902: None of the specified *exposeprivatechannels* were usable." - ], - "json_example": [ - { - "request": { - "id": "example:invoice#1", - "method": "invoice", - "params": { - "amount_msat": 11000000, - "label": "xEoCR94SIz6UIRUEkxum", - "description": [ - "XEoCR94SIz6UIRUEkxum." - ], - "expiry": null, - "fallbacks": null, - "preimage": null, - "exposeprivatechannels": null, - "cltv": null, - "deschashonly": null - } - }, - "response": { - "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", - "expires_at": 1706757730, - "bolt11": "lnbcrt110u1pjmr5lzsp5sfjyj3xn7ux592k36hmmt4ax98n6lgct22wvj54yck0upcmep63qpp5qu436g855lr40ftdt7csatk5pdvtdzzfmfqluwtvm0fds95jsadqdpq0pzk7s6j8y69xjt6xe25j5j4g44hsatdxqyjw5qcqp99qxpqysgquwma3zrw4cd8e8j4u9uh4gxukaacckse64kx2l9dqv8rvrysdq5r5dt38t9snqj9u5ar07h2exr4fg56wpudkhkk7gtxlyt72ku5fpqqd4fnlk", - "payment_secret": "82644944d3f70d42aad1d5f7b5d7a629e7afa30b529cc952a4c59fc0e3790ea2", - "created_index": 1, - "warning_deadends": "Insufficient incoming capacity, once dead-end peers were excluded" - } - }, - { - "request": { - "id": "example:invoice#2", - "method": "invoice", - "params": { - "amount_msat": 100, - "label": "8", - "description": "inv", - "expiry": null, - "fallbacks": null, - "preimage": null, - "exposeprivatechannels": null, - "cltv": null, - "deschashonly": null - } - }, - "response": { - "payment_hash": "f59ae0204dfe8e913207ea36646255b9d2c7c8229e8693d30547fc622eddb6b4", - "expires_at": 1709229182, - "bolt11": "lnbcrt1n1pja0z07sp5n8fk890nrq7zlcue0lgu7cduaaz765u5rg0kcud4amphuppu8wxspp57kdwqgzdl68fzvs8agmxgcj4h8fv0jpzn6rf85c9gl7xytkak66qdq9d9h8vxqyjw5qcqp99qxpqysgqrneaxh0plvjft457yv3q92rak57a6xw33m6phr0mrsy69sudzgez3adkzdsgwzy32z5usjpxm4rjgcg70h047wf0pgc4l9gyaj2h9ssqcrtv32", - "payment_secret": "99d36395f3183c2fe3997fd1cf61bcef45ed53941a1f6c71b5eec37e043c3b8d", - "created_index": 9, - "warning_capacity": "Insufficient incoming channel capacity to pay invoice" - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-listinvoices(7)", - "lightning-delinvoice(7)", - "lightning-pay(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-invoicerequest.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v22.11", - "rpc": "invoicerequest", - "title": "Command for offering payments", - "warning": "experimental-offers only", - "description": [ - "The **invoicerequest** RPC command creates an `invoice_request` to send payments: it automatically enables the processing of an incoming invoice, and payment of it. The reader of the resulting `invoice_request` can use lightning-sendinvoice(7) to collect their payment." - ], - "request": { - "required": [ - "amount", - "description" - ], - "properties": { - "amount": { - "type": "msat", - "description": [ - "A positive value in millisatoshi precision; it can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*." - ] - }, - "description": { - "type": "string", - "description": [ - "A short description of purpose of the payment, e.g. *ATM withdrawl*. This value is encoded into the resulting `invoice_request` and is viewable by anyone you expose it to. It must be UTF-8, and cannot use *\\u* JSON escape codes." - ] - }, - "issuer": { - "type": "string", - "description": [ - "Who is issuing it (i.e. you) if appropriate." - ] - }, - "label": { - "type": "string", - "description": [ - "An internal-use name for the offer, which can be any UTF-8 string." - ] - }, - "absolute_expiry": { - "type": "u64", - "description": [ - "The time the offer is valid until, in seconds since the first day of 1970 UTC. If not set, the `invoice_request` remains valid (though it can be deactivated by the issuer of course). This is encoded in the `invoice_request`." - ] - }, - "single_use": { - "type": "boolean", - "description": [ - "Indicates that the `invoice_request` is only valid once; we may attempt multiple payments, but as soon as one is successful no more invoices are accepted (i.e. only one person can take the money)." - ], - "default": "True" - } - } - }, - "response": { - "required": [ - "invreq_id", - "single_use", - "active", - "bolt12", - "used" - ], - "properties": { - "invreq_id": { - "type": "hash", - "description": [ - "The SHA256 hash of all invoice_request fields less than 160." - ] - }, - "active": { - "type": "boolean", - "enum": [ - true - ], - "description": [ - "Whether the invoice_request is currently active." - ] - }, - "single_use": { - "type": "boolean", - "description": [ - "Whether the invoice_request will become inactive after we pay an invoice for it." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 string starting with lnr." - ] - }, - "used": { - "type": "boolean", - "enum": [ - false - ], - "description": [ - "Whether the invoice_request has already been used." - ] - }, - "label": { - "type": "string", - "description": [ - "The label provided when creating the invoice_request." - ] - } - } - }, - "json_example": [ - { - "request": { - "id": "example:invoicerequest#1", - "method": "invoicerequest", - "params": { - "amount": "10000sat", - "description": "simple test", - "issuer": "clightning test suite" - } - }, - "response": { - "invreq_id": "715484ead84bcdae5b33e3015c686fa1bdd4ae9ade3c4729b58257a98cfcd9b5", - "active": true, - "single_use": true, - "bolt12": "lnr1qqgteyhfyp40c79a5y3gfe33nxfs6zstwd5k6urvv5s8getnwsfp2cmvd9nksarwd9hxwgr5v4ehggrnw45hge2syqrzymjxzydqkkw24ufxqslttwlj3s608f0rx2slc7etw0833zgs75srnztgqkppqfnwgkvdr57yzh6h92zg3qctvrm7w38djg67kzcm4yeg8vc4cq633uzq99smfawuu6pz0zh9jl6dl8v25u3kzes975x2j9tr0qp0ux0tlzcxjrgehxh9luz5vwjpk92tys9f9zlm038krcz4uqfxgelwf43tgfc", - "used": false - } - } - ], - "errors": [ - "On failure, an error is returned and no `invoice_request` is created. If the lightning process fails before responding, the caller should use lightning-listinvoicerequests(7) to query whether it was created or not.", - "", - "- -1: Catchall nonspecific error." - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-listinvoicerequests(7)", - "lightning-disableinvoicerequest(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-keysend.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "keysend", - "title": "Send funds to a node without an invoice", - "description": [ - "The **keysend** RPC command attempts to find a route to the given destination, and send the specified amount to it. Unlike the `pay` RPC command the `keysend` command does not require an invoice, instead it uses the `destination` node ID, and `amount` to find a route to the specified node.", - "", - "In order for the destination to be able to claim the payment, the `payment_key` is randomly generated by the sender and included in the encrypted payload for the destination. As a consequence there is not proof-of-payment, like there is with an invoice where the `payment_key` is generated on the destination, and the only way sender could have it is by sending a payment. Please ensure that this matches your use-case when using `keysend`.", - "", - "When using *lightning-cli*, you may skip optional parameters by using *null*. Alternatively, use **-k** option to provide parameters by name." - ], - "request": { - "required": [ - "destination", - "amount_msat" - ], - "properties": { - "destination": { - "type": "pubkey", - "description": [ - "The 33 byte, hex-encoded, node ID of the node that the payment should go to." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "A whole number, or a whole number with suffix `msat` or `sat`, or a three decimal point number with suffix `sat`, or an 1 to 11 decimal point number suffixed by `btc`." - ] - }, - "label": { - "type": "string", - "description": [ - "Used to attach a label to payments, and is returned in lightning-listpays(7) and lightning-listsendpays(7)." - ] - }, - "maxfeepercent": { - "type": "number", - "description": [ - "Limits the money paid in fees as percentage of the total amount that is to be transferred." - ], - "default": "0.5" - }, - "retry_for": { - "type": "u32", - "description": [ - "Until *retry_for* seconds passes, the command will keep finding routes and retrying the payment. However, a payment may be delayed for up to `maxdelay` blocks by another node; clients should be prepared for this worst case." - ], - "default": "60 seconds" - }, - "maxdelay": { - "type": "u32", - "description": [ - "Number of blocks the payment may be delayed." - ] - }, - "exemptfee": { - "type": "msat", - "description": [ - "Used for tiny payments which would be dominated by the fee leveraged by forwarding nodes. Setting `exemptfee` allows the `maxfeepercent` check to be skipped on fees that are smaller than *exemptfee*." - ], - "default": "5000 millisatoshi" - }, - "routehints": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "id", - "scid", - "feebase", - "feeprop", - "expirydelta" - ], - "properties": { - "id": { - "type": "pubkey" - }, - "scid": { - "type": "short_channel_id" - }, - "feebase": { - "type": "msat" - }, - "feeprop": { - "type": "u32" - }, - "expirydelta": { - "type": "u16" - } - } - } - } - }, - "extratlvs": { - "type": "object", - "additionalProperties": true, - "required": [], - "description": [ - "Dictionary of additional fields to insert into the final tlv. The format is 'fieldnumber': 'hexstring'." - ] - } - } - }, - "response": { - "required": [ - "payment_preimage", - "payment_hash", - "created_at", - "parts", - "amount_msat", - "amount_sent_msat", - "status" - ], - "properties": { - "payment_preimage": { - "type": "secret", - "description": [ - "The proof of payment: SHA256 of this **payment_hash**." - ] - }, - "destination": { - "type": "pubkey", - "description": [ - "The final destination of the payment." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "created_at": { - "type": "number", - "description": [ - "The UNIX timestamp showing when this payment was initiated." - ] - }, - "parts": { - "type": "u32", - "description": [ - "How many attempts this took." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Amount the recipient received." - ] - }, - "amount_sent_msat": { - "type": "msat", - "description": [ - "Total amount we sent (including fees)." - ] - }, - "warning_partial_completion": { - "type": "string", - "description": [ - "Not all parts of a multi-part payment have completed." - ] - }, - "status": { - "type": "string", - "enum": [ - "complete" - ], - "description": [ - "Status of payment." - ] - } - }, - "post_return_value_notes": [ - "You can monitor the progress and retries of a payment using the lightning-paystatus(7) command." - ] - }, - "randomization": [ - "To protect user privacy, the payment algorithm performs some randomization.", - "", - "1: Route Randomization", - "", - "Route randomization means the payment algorithm does not always use the lowest-fee or shortest route. This prevents some highly-connected node from learning all of the user payments by reducing their fees below the network average.", - "", - "2: Shadow Route", - "", - "Shadow route means the payment algorithm will virtually extend the route by adding delays and fees along it, making it appear to intermediate nodes that the route is longer than it actually is. This prevents intermediate nodes from reliably guessing their distance from the payee.", - "", - "Route randomization will never exceed *maxfeepercent* of the payment. Route randomization and shadow routing will not take routes that would exceed *maxdelay*." - ], - "errors": [ - "The following error codes may occur:", - "", - "- -1: Catchall nonspecific error.", - "- 203: Permanent failure at destination. The *data* field of the error will be routing failure object.", - "- 205: Unable to find a route.", - "- 206: Route too expensive. Either the fee or the needed total locktime for the route exceeds your *maxfeepercent* or *maxdelay* settings, respectively. The *data* field of the error will indicate the actual *fee* as well as the *feepercent* percentage that the fee has of the destination payment amount. It will also indicate the actual *delay* along the route.", - "- 210: Payment timed out without a payment in progress.", - "", - "A routing failure object has the fields below:", - "", - "*erring_index*: The index of the node along the route that reported the error. 0 for the local node, 1 for the first hop, and so on.", - "*erring_node*: The hex string of the pubkey id of the node that reported the error.", - "*erring_channel*: The short channel ID of the channel that has the error, or *0:0:0* if the destination node raised the error.", - "*failcode*: The failure code, as per BOLT #4.", - "*channel_update*: The hex string of the *channel_update* message received from the remote node. Only present if error is from the remote node and the *failcode* has the `UPDATE` bit set, as per BOLT #4." - ], - "json_example": [ - { - "request": { - "id": "example:keysend#1", - "method": "keysend", - "params": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "amount_msat": 10000, - "label": null, - "maxfeepercent": null, - "retry_for": null, - "maxdelay": null, - "exemptfee": null, - "extratlvs": null - } - }, - "response": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "b6f88603008a9f7dd84b1b94c7b972c8efbaf0b86c8d3c04512955992da9028e", - "created_at": 1706315742.6861734, - "parts": 1, - "amount_msat": 10000, - "amount_sent_msat": 10001, - "payment_preimage": "7178cf708e34dce816fc35aa692a65e1f85b92ae03bbc8ae6543302511823174", - "status": "complete" - } - }, - { - "request": { - "id": "example:keysend#2", - "method": "keysend", - "params": { - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "amount_msat": 10000000, - "label": null, - "maxfeepercent": null, - "retry_for": null, - "maxdelay": null, - "exemptfee": null, - "extratlvs": { - "133773310": "68656c6c6f776f726c64", - "133773312": "66696c7465726d65" - } - } - }, - "response": { - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "payment_hash": "e8474eea8d5673e8407ef5f4924e58479b51a68afd136384683d5d6a97c9520d", - "created_at": 1708640424.1810749, - "parts": 1, - "amount_msat": 10000000, - "amount_sent_msat": 10000000, - "payment_preimage": "40e47272ea7da20c57a2381d81a5513ec03bd8ead9d51fbd2a91ec76d3f4bcbf", - "status": "complete" - } - }, - { - "request": { - "id": "example:keysend#3", - "method": "keysend", - "params": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "amount_msat": 10000, - "routehints": [ - [ - { - "scid": "4615051x2233541x57738", - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "feebase": 1, - "feeprop": 10, - "expirydelta": 9 - } - ], - [ - { - "scid": "1x2x3", - "id": "020202020202020202020202020202020202020202020202020202020202020202", - "feebase": 1, - "feeprop": 1, - "expirydelta": 9 - } - ] - ] - } - }, - "response": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "56e12e6f45120bef7385c9bf307319eaa6a1b9160cdb3e62a3f492abf5bfa4bc", - "created_at": 1708640437.2895157, - "parts": 1, - "amount_msat": 10000, - "amount_sent_msat": 10001, - "payment_preimage": "682870b8f96e2aed1c86694dbb2c3e64cd396b9bba9fafd824d90eb0bd371b85", - "status": "complete" - } - } - ], - "author": [ - "Christian Decker <> is mainly responsible." - ], - "see_also": [ - "lightning-listpays(7)", - "lightning-decodepay(7)", - "lightning-listinvoices(7)", - "lightning-delinvoice(7)", - "lightning-getroute(7)", - "lightning-invoice(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listchannels.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listchannels", - "title": "Command to query active lightning channels in the entire network", - "description": [ - "The **listchannels** RPC command returns data on channels that are known to the node. Because channels may be bidirectional, up to 2 objects will be returned for each channel (one for each direction).", - "", - "Only one of *short_channel_id*, *source* or *destination* can be supplied. If nothing is supplied, data on all lightning channels known to this node, are returned. These can be local channels or public channels broadcast on the gossip network." - ], - "request": { - "required": [], - "properties": { - "short_channel_id": { - "type": "short_channel_id", - "description": [ - "If short_channel_id is a short channel id, then only known channels with a matching short_channel_id are returned. Otherwise, it must be null." - ] - }, - "source": { - "type": "pubkey", - "description": [ - "If source is a node id, then only channels leading from that node id are returned." - ] - }, - "destination": { - "type": "pubkey", - "description": [ - "If destination is a node id, then only channels leading to that node id are returned." - ] - } - } - }, - "response": { - "required": [ - "channels" - ], - "properties": { - "channels": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "source", - "destination", - "short_channel_id", - "direction", - "public", - "amount_msat", - "message_flags", - "channel_flags", - "active", - "last_update", - "base_fee_millisatoshi", - "fee_per_millionth", - "delay", - "htlc_minimum_msat", - "features" - ], - "properties": { - "source": { - "type": "pubkey", - "description": [ - "The source node." - ] - }, - "destination": { - "type": "pubkey", - "description": [ - "The destination node." - ] - }, - "short_channel_id": { - "type": "short_channel_id", - "description": [ - "Short channel id of channel." - ] - }, - "direction": { - "type": "u32", - "description": [ - "Direction (0 if source < destination, 1 otherwise)." - ] - }, - "public": { - "type": "boolean", - "description": [ - "True if this is announced (from *v24.02*, being false is deprecated)." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The total capacity of this channel (always a whole number of satoshis)." - ] - }, - "message_flags": { - "type": "u8", - "description": [ - "As defined by BOLT #7." - ] - }, - "channel_flags": { - "type": "u8", - "description": [ - "As defined by BOLT #7." - ] - }, - "active": { - "type": "boolean", - "description": [ - "True unless source has disabled it (or (deprecated in *v24.02*) it's a local channel and the peer is disconnected or it's still opening or closing)." - ] - }, - "last_update": { - "type": "u32", - "description": [ - "UNIX timestamp on the last channel_update from *source*." - ] - }, - "base_fee_millisatoshi": { - "type": "u32", - "description": [ - "Base fee changed by *source* to use this channel." - ] - }, - "fee_per_millionth": { - "type": "u32", - "description": [ - "Proportional fee changed by *source* to use this channel, in parts-per-million." - ] - }, - "delay": { - "type": "u32", - "description": [ - "The number of blocks delay required by *source* to use this channel." - ] - }, - "htlc_minimum_msat": { - "type": "msat", - "description": [ - "The smallest payment *source* will allow via this channel." - ] - }, - "htlc_maximum_msat": { - "type": "msat", - "description": [ - "The largest payment *source* will allow via this channel." - ] - }, - "features": { - "type": "hex", - "description": [ - "BOLT #9 features bitmap for this channel." - ] - } - } - } - } - }, - "post_return_value_notes": [ - "If one of *short_channel_id*, *source* or *destination* is supplied and no matching channels are found, a 'channels' object with an empty list is returned." - ] - }, - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong." - ], - "json_example": [ - { - "request": { - "id": "example:listchannels#1", - "method": "listchannels", - "params": { - "short_channel_id": "103x1x0", - "source": null, - "destination": null - } - }, - "response": { - "channels": [] - } - }, - { - "request": { - "id": "example:listchannels#2", - "method": "listchannels", - "params": { - "short_channel_id": null, - "source": null, - "destination": null - } - }, - "response": { - "channels": [ - { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "short_channel_id": "103x1x0", - "direction": 0, - "public": true, - "amount_msat": 1000000000, - "message_flags": 1, - "channel_flags": 0, - "active": true, - "last_update": 1706153393, - "base_fee_millisatoshi": 1, - "fee_per_millionth": 10, - "delay": 6, - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "features": "" - }, - { - "source": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "short_channel_id": "103x1x0", - "direction": 1, - "public": true, - "amount_msat": 1000000000, - "message_flags": 1, - "channel_flags": 1, - "active": true, - "last_update": 1706153393, - "base_fee_millisatoshi": 1, - "fee_per_millionth": 10, - "delay": 6, - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "features": "" - } - ] - } - } - ], - "author": [ - "Michael Hawkins <>." - ], - "see_also": [ - "lightning-fundchannel(7)", - "lightning-listnodes(7)" - ], - "resources": [ - "Main web site: ", - "", - "BOLT #7: " - ] - }, - "lightning-listclosedchannels.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.05", - "rpc": "listclosedchannels", - "title": "Get data on our closed historical channels", - "description": [ - "The **listclosedchannels** RPC command returns data on channels which are otherwise forgotten (more than 100 blocks after they're completely resolved onchain)." - ], - "request": { - "required": [], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "If no *id* is supplied, then channel data on all historical channels are given. Supplying *id* will filter the results to only match channels to that peer. Note that prior to v23.05, old peers were forgotten." - ] - } - } - }, - "response": { - "required": [ - "closedchannels" - ], - "properties": { - "closedchannels": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "channel_id", - "opener", - "private", - "total_msat", - "total_local_commitments", - "total_remote_commitments", - "total_htlcs_sent", - "funding_txid", - "funding_outnum", - "leased", - "final_to_us_msat", - "min_to_us_msat", - "max_to_us_msat", - "close_cause" - ], - "properties": { - "peer_id": { - "type": "pubkey", - "description": [ - "Peer public key (can be missing with pre-v23.05 closes!)." - ] - }, - "channel_id": { - "type": "hash", - "description": [ - "The full channel_id (funding txid Xored with output number)." - ] - }, - "short_channel_id": { - "type": "short_channel_id", - "description": [ - "The short_channel_id." - ] - }, - "alias": { - "type": "object", - "required": [], - "properties": { - "local": { - "type": "short_channel_id", - "description": [ - "An alias assigned by this node to this channel, used for outgoing payments." - ] - }, - "remote": { - "type": "short_channel_id", - "description": [ - "An alias assigned by the remote node to this channel, usable in routehints and invoices." - ] - } - } - }, - "opener": { - "type": "string", - "enum": [ - "local", - "remote" - ], - "description": [ - "Who initiated the channel." - ] - }, - "closer": { - "type": "string", - "enum": [ - "local", - "remote" - ], - "description": [ - "Who initiated the channel close (only present if closing)." - ] - }, - "private": { - "type": "boolean", - "description": [ - "If True, we will not announce this channel." - ] - }, - "channel_type": { - "type": "object", - "description": [ - "Channel_type as negotiated with peer." - ], - "additionalProperties": false, - "required": [ - "bits", - "names" - ], - "properties": { - "bits": { - "type": "array", - "description": [ - "Each bit set in this channel_type." - ], - "items": { - "type": "u32", - "description": [ - "Bit number." - ] - } - }, - "names": { - "type": "array", - "description": [ - "Feature name for each bit set in this channel_type." - ], - "items": { - "type": "string", - "enum": [ - "static_remotekey/even", - "anchor_outputs/even", - "anchors_zero_fee_htlc_tx/even", - "scid_alias/even", - "zeroconf/even" - ], - "description": [ - "Name of feature bit." - ] - } - } - } - }, - "total_local_commitments": { - "type": "u64", - "description": [ - "Number of commitment transaction we made." - ] - }, - "total_remote_commitments": { - "type": "u64", - "description": [ - "Number of commitment transaction they made." - ] - }, - "total_htlcs_sent": { - "type": "u64", - "description": [ - "Number of HTLCs we ever sent." - ] - }, - "funding_txid": { - "type": "txid", - "description": [ - "ID of the funding transaction." - ] - }, - "funding_outnum": { - "type": "u32", - "description": [ - "The 0-based output number of the funding transaction which opens the channel." - ] - }, - "leased": { - "type": "boolean", - "description": [ - "Whether this channel was leased from `opener`." - ] - }, - "funding_fee_paid_msat": { - "type": "msat", - "description": [ - "How much we paid to lease the channel (iff `leased` is true and `opener` is local)." - ] - }, - "funding_fee_rcvd_msat": { - "type": "msat", - "description": [ - "How much they paid to lease the channel (iff `leased` is true and `opener` is remote)." - ] - }, - "funding_pushed_msat": { - "type": "msat", - "description": [ - "How much `opener` pushed immediate (if non-zero)." - ] - }, - "total_msat": { - "type": "msat", - "description": [ - "Total amount in the channel." - ] - }, - "final_to_us_msat": { - "type": "msat", - "description": [ - "Our balance in final commitment transaction." - ] - }, - "min_to_us_msat": { - "type": "msat", - "description": [ - "Least amount owed to us ever. If the peer were to successfully steal from us, this is the amount we would still retain." - ] - }, - "max_to_us_msat": { - "type": "msat", - "description": [ - "Most amount owed to us ever. If we were to successfully steal from the peer, this is the amount we could potentially get." - ] - }, - "last_commitment_txid": { - "type": "hash", - "description": [ - "The final commitment tx's txid (or mutual close, if we accepted it). Not present for some very old, small channels pre-0.7.0." - ] - }, - "last_commitment_fee_msat": { - "type": "msat", - "description": [ - "The fee on `last_commitment_txid`." - ] - }, - "close_cause": { - "type": "string", - "enum": [ - "unknown", - "local", - "user", - "remote", - "protocol", - "onchain" - ], - "description": [ - "What caused the channel to close." - ] - }, - "last_stable_connection": { - "type": "u64", - "added": "v24.02", - "description": [ - "Last time we reestablished the open channel and stayed connected for 1 minute." - ] - } - } - } - } - } - }, - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong." - ], - "author": [ - "Rusty Russell <>." - ], - "see_also": [ - "lightning-listpeerchannels(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listconfigs.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listconfigs", - "title": "Command to list all configuration options.", - "description": [ - "The **listconfigs** RPC command to list all configuration options, or with *config* only one." - ], - "request": { - "required": [], - "properties": { - "config": { - "type": "string", - "description": [ - "Configuration option name to restrict return." - ] - } - } - }, - "response": { - "required": [], - "properties": { - "configs": { - "added": "v23.08", - "type": "object", - "comment": "Plugins can add fields to this, so we can't rule out additional properties :(", - "additionalProperties": true, - "required": [], - "properties": { - "conf": { - "type": "object", - "additionalProperties": false, + "then": { "required": [ - "value_str", - "source" + "offer_node_id", + "offer_description", + "invreq_metadata", + "invreq_payer_id", + "invoice_paths", + "invoice_created_at", + "invoice_payment_hash", + "invoice_amount_msat", + "signature" ], + "additionalProperties": false, "properties": { - "value_str": { - "type": "string", + "type": {}, + "valid": {}, + "offer_id": { + "type": "hex", + "description": [ + "The id we use to identify this offer." + ], + "maxLength": 64, + "minLength": 64 + }, + "offer_chains": { + "type": "array", + "description": [ + "Which blockchains this offer is for (missing implies bitcoin mainnet only)." + ], + "items": { + "type": "hex", + "description": [ + "The genesis blockhash." + ], + "maxLength": 64, + "minLength": 64 + } + }, + "offer_metadata": { + "type": "hex", "description": [ - "Field from cmdline." + "Any metadata the creator of the offer includes." ] }, - "source": { + "offer_currency": { "type": "string", - "enum": [ - "cmdline" + "description": [ + "ISO 4217 code of the currency (missing implies Bitcoin)." ], + "maxLength": 3, + "minLength": 3 + }, + "warning_unknown_offer_currency": { + "type": "string", "description": [ - "Source of configuration setting." + "The currency code is unknown (so no `currency_minor_unit`)." ] - } - } - }, - "developer": { - "type": "object", - "added": "v23.08", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + }, + "currency_minor_unit": { + "type": "u32", "description": [ - "`true` if set in config or cmdline." + "The number of decimal places to apply to amount (if currency known)." ] }, - "source": { + "offer_amount": { + "type": "u64", + "description": [ + "The amount in the `offer_currency` adjusted by `currency_minor_unit`, if any." + ] + }, + "offer_amount_msat": { + "type": "msat", + "description": [ + "The amount in bitcoin (if specified, and no `offer_currency`)." + ] + }, + "offer_description": { "type": "string", "description": [ - "Source of configuration setting." + "The description of the purpose of the offer." ] - } - } - }, - "clear-plugins": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + }, + "offer_issuer": { + "type": "string", + "description": [ + "The description of the creator of the offer." + ] + }, + "offer_features": { + "type": "hex", + "description": [ + "The feature bits of the offer." + ] + }, + "offer_absolute_expiry": { + "type": "u64", + "description": [ + "UNIX timestamp of when this offer expires." + ] + }, + "offer_quantity_max": { + "type": "u64", + "description": [ + "The maximum quantity (or, if 0, means any quantity)." + ] + }, + "offer_paths": { + "type": "array", + "description": [ + "Paths to the destination." + ], + "items": { + "type": "object", + "required": [ + "blinding", + "path" + ], + "additionalProperties": false, + "properties": { + "first_node_id": { + "type": "pubkey", + "description": [ + "The (presumably well-known) public key of the start of the path." + ] + }, + "first_scid": { + "added": "v23.05", + "type": "short_channel_id", + "description": "the short channel id of the start of the path (alternative to first_n ode_id)" + }, + "first_scid_dir": { + "added": "v23.05", + "type": "u32", + "description": "which end of the first_scid is the start of the path" + }, + "blinding": { + "type": "pubkey", + "description": [ + "Blinding factor for this path." + ] + }, + "path": { + "type": "array", + "description": [ + "An individual path." + ], + "items": { + "type": "object", + "required": [ + "blinded_node_id", + "encrypted_recipient_data" + ], + "additionalProperties": false, + "properties": { + "blinded_node_id": { + "type": "pubkey", + "description": [ + "Node_id of the hop." + ] + }, + "encrypted_recipient_data": { + "type": "hex", + "description": [ + "Encrypted TLV entry for this hop." + ] + } + } + } + } + } + } + }, + "offer_node_id": { + "type": "pubkey", + "description": [ + "Public key of the offering node." + ] + }, + "offer_recurrence": { + "type": "object", + "description": [ + "How often to this offer should be used." + ], + "required": [ + "period", + "time_unit" + ], + "additionalProperties": false, + "properties": { + "time_unit": { + "type": "u32", + "description": [ + "The BOLT12 time unit." + ] + }, + "time_unit_name": { + "type": "string", + "description": [ + "The name of `time_unit` (if valid)." + ] + }, + "period": { + "type": "u32", + "description": [ + "How many `time_unit` per payment period." + ] + }, + "basetime": { + "type": "u64", + "description": [ + "Period starts at this UNIX timestamp." + ] + }, + "start_any_period": { + "type": "u64", + "description": [ + "You can start at any period (only if `basetime` present)." + ] + }, + "limit": { + "type": "u32", + "description": [ + "Maximum period number for recurrence." + ] + }, + "paywindow": { + "type": "object", + "description": [ + "When within a period will payment be accepted." + ], + "default": "prior and during the period", + "required": [ + "seconds_before", + "seconds_after" + ], + "additionalProperties": false, + "properties": { + "seconds_before": { + "type": "u32", + "description": [ + "Seconds prior to period start." + ] + }, + "seconds_after": { + "type": "u32", + "description": [ + "Seconds after to period start." + ] + }, + "proportional_amount": { + "type": "boolean", + "enum": [ + true + ], + "description": [ + "Amount should be scaled if paid after period start." + ] + } + } + } + } + }, + "invreq_metadata": { + "type": "hex", + "description": [ + "The payer-provided blob to derive invreq_payer_id." + ] + }, + "invreq_payer_id": { + "type": "hex", + "description": [ + "The payer-provided key." + ] + }, + "invreq_chain": { + "type": "hex", + "description": [ + "Which blockchain this offer is for (missing implies bitcoin mainnet only)." + ], + "maxLength": 64, + "minLength": 64 + }, + "invreq_amount_msat": { + "type": "msat", "description": [ - "`true` if set in config or cmdline." + "The amount the invoice should be for." ] }, - "source": { - "type": "string", + "invreq_features": { + "type": "hex", "description": [ - "Source of configuration setting." + "The feature bits of the invoice_request." ] - } - } - }, - "disable-mpp": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + }, + "invreq_quantity": { + "type": "u64", "description": [ - "`true` if set in config or cmdline." + "The number of items to invoice for." ] }, - "source": { + "invreq_payer_note": { "type": "string", "description": [ - "Source of configuration setting." + "A note attached by the payer." ] }, - "plugin": { - "type": "string", + "invreq_recurrence_counter": { + "type": "u32", "description": [ - "Plugin which registered this configuration setting." + "Which number request this is for the same invoice." ] - } - } - }, - "mainnet": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + }, + "invreq_recurrence_start": { + "type": "u32", "description": [ - "`true` if set in config or cmdline." + "When we're requesting to start an invoice at a non-zero period." ] }, - "source": { - "type": "string", + "invoice_paths": { + "type": "array", + "description": [ + "Paths to pay the destination." + ], + "items": { + "type": "object", + "required": [ + "blinding", + "payinfo", + "path" + ], + "additionalProperties": false, + "properties": { + "first_node_id": { + "type": "pubkey", + "description": [ + "The (presumably well-known) public key of the start of the path." + ] + }, + "first_scid": { + "added": "v23.05", + "type": "short_channel_id", + "description": "the short channel id of the start of the path (alternative to first_n ode_id)" + }, + "first_scid_dir": { + "added": "v23.05", + "type": "u32", + "description": "which end of the first_scid is the start of the path" + }, + "blinding": { + "type": "pubkey", + "description": [ + "Blinding factor for this path." + ] + }, + "payinfo": { + "type": "object", + "required": [ + "fee_base_msat", + "fee_proportional_millionths", + "cltv_expiry_delta", + "features" + ], + "additionalProperties": false, + "properties": { + "fee_base_msat": { + "type": "msat", + "description": [ + "Basefee for path." + ] + }, + "fee_proportional_millionths": { + "type": "u32", + "description": [ + "Proportional fee for path." + ] + }, + "cltv_expiry_delta": { + "type": "u32", + "description": [ + "CLTV delta for path." + ] + }, + "features": { + "type": "hex", + "description": [ + "Features allowed for path." + ] + } + } + }, + "path": { + "type": "array", + "description": [ + "An individual path." + ], + "items": { + "type": "object", + "required": [ + "blinded_node_id", + "encrypted_recipient_data" + ], + "additionalProperties": false, + "properties": { + "blinded_node_id": { + "type": "pubkey", + "description": [ + "Node_id of the hop." + ] + }, + "encrypted_recipient_data": { + "type": "hex", + "description": [ + "Encrypted TLV entry for this hop." + ] + } + } + } + } + } + } + }, + "invoice_created_at": { + "type": "u64", "description": [ - "Source of configuration setting." + "The UNIX timestamp of invoice creation." ] - } - } - }, - "regtest": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + }, + "invoice_relative_expiry": { + "type": "u32", "description": [ - "`true` if set in config or cmdline." + "The number of seconds after *invoice_created_at* when this expires." ] }, - "source": { - "type": "string", + "invoice_payment_hash": { + "type": "hex", + "description": [ + "The hash of the *payment_preimage*." + ], + "maxLength": 64, + "minLength": 64 + }, + "invoice_amount_msat": { + "type": "msat", "description": [ - "Source of configuration setting." + "The amount required to fulfill invoice." ] - } - } - }, - "signet": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + }, + "invoice_fallbacks": { + "type": "array", + "description": [ + "Onchain addresses." + ], + "items": { + "type": "object", + "required": [ + "version", + "hex" + ], + "additionalProperties": false, + "properties": { + "version": { + "type": "u8", + "description": [ + "Segwit address version." + ] + }, + "hex": { + "type": "hex", + "description": [ + "Raw encoded segwit address." + ] + }, + "address": { + "type": "string", + "description": [ + "Bech32 segwit address." + ] + } + } + } + }, + "invoice_features": { + "type": "hex", "description": [ - "`true` if set in config or cmdline." + "The feature bits of the invoice." ] }, - "source": { - "type": "string", + "invoice_node_id": { + "type": "pubkey", "description": [ - "Source of configuration setting." + "The id to pay (usually the same as offer_node_id)." ] - } - } - }, - "testnet": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + }, + "invoice_recurrence_basetime": { + "type": "u64", "description": [ - "`true` if set in config or cmdline." + "The UNIX timestamp to base the invoice periods on." ] }, - "source": { - "type": "string", + "signature": { + "type": "bip340sig", "description": [ - "Source of configuration setting." + "BIP-340 signature of the `offer_node_id` on this invoice." ] - } - } - }, - "important-plugin": { - "type": "object", - "additionalProperties": false, - "required": [ - "values_str", - "sources" - ], - "properties": { - "values_str": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Field from config or cmdline." - ] - } }, - "sources": { + "unknown_invoice_tlvs": { "type": "array", + "description": [ + "Any extra fields we didn't know how to parse." + ], "items": { - "type": "string", - "description": [ - "Source of configuration setting." - ] + "type": "object", + "required": [ + "type", + "length", + "value" + ], + "additionalProperties": false, + "properties": { + "type": { + "type": "u64", + "description": [ + "The type." + ] + }, + "length": { + "type": "u64", + "description": [ + "The length." + ] + }, + "value": { + "type": "hex", + "description": [ + "The value." + ] + } + } } } } - }, - "plugin": { - "type": "object", - "additionalProperties": false, - "required": [ - "values_str", - "sources" - ], + } + }, + { + "if": { "properties": { - "values_str": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Field from config or cmdline." - ] - } + "type": { + "type": "string", + "enum": [ + "bolt12 invoice" + ] }, - "sources": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } + "valid": { + "type": "boolean", + "enum": [ + false + ] } } }, - "plugin-dir": { - "type": "object", + "then": { + "required": [], "additionalProperties": false, - "required": [ - "values_str", - "sources" - ], "properties": { - "values_str": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Field from config or cmdline." - ] - } + "type": {}, + "valid": {}, + "offer_id": {}, + "offer_chains": {}, + "offer_metadata": {}, + "offer_currency": {}, + "warning_unknown_offer_currency": {}, + "currency_minor_unit": {}, + "offer_amount": {}, + "offer_amount_msat": {}, + "offer_description": {}, + "offer_issuer": {}, + "offer_features": {}, + "offer_absolute_expiry": {}, + "offer_quantity_max": {}, + "offer_paths": {}, + "offer_node_id": {}, + "offer_recurrence": {}, + "invreq_metadata": {}, + "invreq_payer_id": {}, + "invreq_chain": {}, + "invreq_amount_msat": {}, + "invreq_features": {}, + "invreq_quantity": {}, + "invreq_payer_note": {}, + "invreq_node_id": {}, + "invreq_recurrence_counter": {}, + "invreq_recurrence_start": {}, + "warning_invalid_offer_description": { + "type": "string", + "description": [ + "`offer_description` is not valid UTF8." + ] }, - "sources": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - } - }, - "lightning-dir": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { + "warning_missing_offer_description": { "type": "string", "description": [ - "Field from config or cmdline, or default." + "`offer_description` is not present." ] }, - "source": { + "warning_invalid_offer_currency": { "type": "string", "description": [ - "Source of configuration setting." + "`offer_currency_code` is not valid UTF8." ] - } - } - }, - "network": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { + }, + "warning_invalid_offer_issuer": { "type": "string", "description": [ - "Field from config or cmdline, or default (can also be changed by `testnet`, `signet`, `regtest` options!)." + "`offer_issuer` is not valid UTF8." ] }, - "source": { + "warning_missing_invreq_metadata": { "type": "string", "description": [ - "Source of configuration setting." + "`invreq_metadata` is not present." ] - } - } - }, - "allow-deprecated-apis": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_bool", - "source" - ], - "properties": { - "value_bool": { - "type": "boolean", + }, + "warning_invalid_invreq_payer_note": { + "type": "string", "description": [ - "Field from config or cmdline, or default." + "`invreq_payer_note` is not valid UTF8." ] }, - "source": { + "warning_missing_invoice_paths": { "type": "string", "description": [ - "Source of configuration setting." + "`invoice_paths` is not present." ] - } - } - }, - "rpc-file": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { + }, + "warning_missing_invoice_blindedpay": { "type": "string", "description": [ - "Field from config or cmdline, or default." + "`invoice_blindedpay` is not present." ] }, - "source": { + "warning_missing_invoice_created_at": { "type": "string", "description": [ - "Source of configuration setting." + "`invoice_created_at` is not present." ] - } - } - }, - "disable-plugin": { - "type": "object", - "additionalProperties": false, - "required": [ - "values_str", - "sources" - ], - "properties": { - "values_str": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Field from config or cmdline." - ] - } }, - "sources": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - } - }, - "always-use-proxy": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_bool", - "source" - ], - "properties": { - "value_bool": { - "type": "boolean", + "warning_missing_invoice_payment_hash": { + "type": "string", "description": [ - "Field from config or cmdline, or default." + "`invoice_payment_hash` is not present." ] }, - "source": { + "warning_missing_invoice_amount": { "type": "string", "description": [ - "Source of configuration setting." + "`invoice_amount` is not present." ] - } - } - }, - "daemon": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + }, + "warning_missing_invoice_recurrence_basetime": { + "type": "string", "description": [ - "`true` if set in config or cmdline." + "`invoice_recurrence_basetime` is not present." ] }, - "source": { + "warning_missing_invoice_node_id": { "type": "string", "description": [ - "Source of configuration setting." + "`invoice_node_id` is not present." ] - } - } - }, - "wallet": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { + }, + "warning_missing_invoice_signature": { "type": "string", "description": [ - "Field from config or cmdline, or default." + "`signature` is not present." ] }, - "source": { + "warning_invalid_invoice_signature": { "type": "string", "description": [ - "Source of configuration setting." + "Incorrect `signature`." ] + }, + "fallbacks": { + "type": "array", + "items": { + "type": "object", + "required": [ + "version", + "hex" + ], + "properties": { + "version": {}, + "hex": {}, + "address": {}, + "warning_invoice_fallbacks_version_invalid": { + "type": "string", + "description": [ + "`version` is > 16." + ] + } + } + } } } - }, - "large-channels": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], + } + }, + { + "if": { "properties": { - "set": { - "type": "boolean", - "description": [ - "`true` if set in config or cmdline." + "type": { + "type": "string", + "enum": [ + "bolt11 invoice" ] }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." + "valid": { + "type": "boolean", + "enum": [ + true ] } } }, - "experimental-dual-fund": { - "type": "object", - "additionalProperties": false, + "then": { "required": [ - "set", - "source" + "currency", + "created_at", + "expiry", + "payee", + "min_final_cltv_expiry", + "payment_hash", + "signature" ], + "additionalProperties": false, "properties": { - "set": { - "type": "boolean", + "type": {}, + "valid": {}, + "currency": { + "type": "string", "description": [ - "`true` if set in config or cmdline." + "The BIP173 name for the currency." ] }, - "source": { - "type": "string", + "created_at": { + "type": "u64", "description": [ - "Source of configuration setting." + "The UNIX-style timestamp of the invoice." ] - } - } - }, - "experimental-splicing": { - "added": "v23.08", - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + }, + "expiry": { + "type": "u64", "description": [ - "`true` if set in config or cmdline." + "The number of seconds this is valid after `created_at`." ] }, - "source": { - "type": "string", + "payee": { + "type": "pubkey", "description": [ - "Source of configuration setting." + "The public key of the recipient." ] - } - } - }, - "experimental-onion-messages": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + }, + "amount_msat": { + "type": "msat", "description": [ - "`true` if set in config or cmdline." + "Amount the invoice asked for." ] }, - "source": { - "type": "string", + "payment_hash": { + "type": "hash", "description": [ - "Source of configuration setting." + "The hash of the *payment_preimage*." ] - } - } - }, - "experimental-offers": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + }, + "signature": { + "type": "signature", "description": [ - "`true` if set in config or cmdline." + "Signature of the *payee* on this invoice." ] }, - "source": { + "description": { "type": "string", "description": [ - "Source of configuration setting." + "The description of the purpose of the purchase." ] - } - } - }, - "experimental-shutdown-wrong-funding": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + }, + "description_hash": { + "type": "hash", + "description": [ + "The hash of the description, in place of *description*." + ] + }, + "min_final_cltv_expiry": { + "type": "u32", + "description": [ + "The minimum CLTV delay for the final node." + ] + }, + "payment_secret": { + "type": "secret", + "description": [ + "The secret to hand to the payee node." + ] + }, + "features": { + "type": "hex", + "description": [ + "The features bitmap for this invoice." + ] + }, + "payment_metadata": { + "type": "hex", "description": [ - "`true` if set in config or cmdline." + "The payment_metadata to put in the payment." ] }, - "source": { - "type": "string", + "fallbacks": { + "type": "array", + "description": [ + "Onchain addresses." + ], + "items": { + "type": "object", + "required": [ + "type", + "hex" + ], + "additionalProperties": false, + "properties": { + "type": { + "type": "string", + "description": [ + "The address type (if known)." + ], + "enum": [ + "P2PKH", + "P2SH", + "P2WPKH", + "P2WSH", + "P2TR" + ] + }, + "addr": { + "type": "string", + "description": [ + "The address in appropriate format for *type*." + ] + }, + "hex": { + "type": "hex", + "description": [ + "Raw encoded address." + ] + } + } + } + }, + "routes": { + "type": "array", + "description": [ + "Route hints to the *payee*." + ], + "items": { + "type": "array", + "description": [ + "Hops in the route." + ], + "items": { + "type": "object", + "required": [ + "pubkey", + "short_channel_id", + "fee_base_msat", + "fee_proportional_millionths", + "cltv_expiry_delta" + ], + "additionalProperties": false, + "properties": { + "pubkey": { + "type": "pubkey", + "description": [ + "The public key of the node." + ] + }, + "short_channel_id": { + "type": "short_channel_id", + "description": [ + "A channel to the next peer." + ] + }, + "fee_base_msat": { + "type": "msat", + "description": [ + "The base fee for payments." + ] + }, + "fee_proportional_millionths": { + "type": "u32", + "description": [ + "The parts-per-million fee for payments." + ] + }, + "cltv_expiry_delta": { + "type": "u32", + "description": [ + "The CLTV delta across this hop." + ] + } + } + } + } + }, + "extra": { + "type": "array", "description": [ - "Source of configuration setting." - ] + "Any extra fields we didn't know how to parse." + ], + "items": { + "type": "object", + "required": [ + "tag", + "data" + ], + "additionalProperties": false, + "properties": { + "tag": { + "type": "string", + "description": [ + "The bech32 letter which identifies this field." + ], + "maxLength": 1, + "minLength": 1 + }, + "data": { + "type": "string", + "description": [ + "The bech32 data for this field." + ] + } + } + } } } - }, - "experimental-peer-storage": { - "added": "v23.02", - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], + } + }, + { + "if": { "properties": { - "set": { - "type": "boolean", - "description": [ - "`true` if set in config or cmdline." + "type": { + "type": "string", + "enum": [ + "rune" ] }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." + "valid": { + "type": "boolean", + "enum": [ + true ] } } }, - "experimental-anchors": { - "type": "object", - "added": "v23.08", - "additionalProperties": false, + "then": { "required": [ - "set", - "source" + "string", + "restrictions", + "valid" ], + "additionalProperties": false, "properties": { - "set": { - "type": "boolean", + "unique_id": { + "type": "string", "description": [ - "`true` if set in config or cmdline." + "Unique id (always a numeric id on runes we create)." ] }, - "source": { + "version": { "type": "string", "description": [ - "Source of configuration setting." + "Rune version, not currently set on runes we create." ] - } - } - }, - "database-upgrade": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_bool", - "source" - ], - "properties": { - "value_bool": { + }, + "valid": { "type": "boolean", - "description": [ - "Field from config or cmdline, or default." + "enum": [ + true ] }, - "source": { + "type": {}, + "string": { "type": "string", "description": [ - "Source of configuration setting." + "The string encoding of the rune." ] - } - } - }, - "rgb": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { - "type": "hex", - "description": [ - "Field from config or cmdline, or default." - ], - "maxLength": 6, - "minLength": 6 }, - "source": { - "type": "string", + "restrictions": { + "type": "array", "description": [ - "Source of configuration setting." - ] + "Restrictions built into the rune: all must pass." + ], + "items": { + "type": "object", + "required": [ + "alternatives", + "summary" + ], + "additionalProperties": false, + "properties": { + "alternatives": { + "type": "array", + "description": [ + "Each way restriction can be met: any can pass." + ], + "items": { + "type": "string", + "description": [ + "The alternative of form fieldname condition fieldname." + ] + } + }, + "summary": { + "type": "string", + "description": [ + "Human-readable summary of this restriction." + ] + } + } + } } } - }, - "alias": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], + } + }, + { + "if": { "properties": { - "value_str": { + "type": { "type": "string", - "description": [ - "Field from config or cmdline, or default." + "enum": [ + "rune" ] }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." + "valid": { + "type": "boolean", + "enum": [ + false ] } } }, - "pid-file": { - "type": "object", - "additionalProperties": false, + "then": { "required": [ - "value_str", - "source" + "valid" ], + "additionalProperties": false, "properties": { - "value_str": { + "valid": { + "type": "boolean", + "enum": [ + false + ] + }, + "type": {}, + "warning_rune_invalid_utf8": { "type": "string", "description": [ - "Field from config or cmdline, or default." + "The rune contains invalid UTF-8 strings." ] }, - "source": { - "type": "string", + "hex": { + "type": "hex", "description": [ - "Source of configuration setting." + "The raw rune in hex." ] } } - }, - "ignore-fee-limits": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_bool", - "source" - ], + } + }, + { + "if": { "properties": { - "value_bool": { - "type": "boolean", - "description": [ - "Field from config or cmdline, or default." + "type": { + "type": "string", + "enum": [ + "emergency recover" ] }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." + "valid": { + "type": "boolean", + "enum": [ + true ] } } }, - "watchtime-blocks": { - "type": "object", - "additionalProperties": false, + "then": { "required": [ - "value_int", - "source" + "decrypted" ], + "additionalProperties": false, "properties": { - "value_int": { - "type": "u32", - "description": [ - "Field from config or cmdline, or default." - ] - }, - "source": { - "type": "string", + "type": {}, + "valid": {}, + "decrypted": { + "type": "hex", "description": [ - "Source of configuration setting." - ] + "The decrypted value of the provided bech32 of emergency.recover." + ], + "added": "v23.11" } } - }, - "max-locktime-blocks": { + } + } + ] + }, + "json_example": [ + { + "request": { + "id": "example:decode#1", + "method": "decode", + "params": [ + "zm0x_eLgHexaTvZn3Cz7gb_YlvrlYGDo_w4BYlR9SS09MSZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl" + ] + }, + "response": { + "type": "rune", + "unique_id": "1", + "string": "ce6d31fde2e01dec5a4ef667dc2cfb81bfd896fae56060e8ff0e0162547d492d:=1&method^list|method^get|method=summary&method/listdatastore", + "restrictions": [ + { + "alternatives": [ + "method^list", + "method^get", + "method=summary" + ], + "summary": "method (of command) starts with 'list' OR method (of command) starts with 'get' OR method (of command) equal to 'summary'" + }, + { + "alternatives": [ + "method/listdatastore" + ], + "summary": "method (of command) unequal to 'listdatastore'" + } + ], + "valid": true + } + }, + { + "request": { + "id": "example:decode#2", + "method": "decode", + "params": [ + "lnbcrt1m1pja0f2hsp5xyssdvdsu24dmmesrt6x84wfrm4mscsnzq7hl2suzeu90wy6g53qpp5zyyu3anwfsfl64pewe0tg7j28map2wwnhvaam5nt70rlwxa0cegqdqjv3jhxcmjd9c8g6t0dcxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqvuqqqqgqqqqqqqlgqqqq86qqqc9qxpqysgq7u4f99u4kepagme27t5c3gdl7czlnjaw7kxryxgm87w2j02j3g94r2vrukhpgedhcdkcdec27m7jrl2lvcr6uh3rdv9lgpz0vc0zcfcqnugjdw" + ] + }, + "response": { + "type": "bolt11 invoice", + "currency": "bcrt", + "created_at": 1708631383, + "expiry": 604800, + "payee": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "amount_msat": 100000000, + "description": "description", + "min_final_cltv_expiry": 5, + "payment_secret": "312106b1b0e2aaddef301af463d5c91eebb86213103d7faa1c167857b89a4522", + "features": "02024100", + "routes": [ + [ + { + "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "short_channel_id": "103x1x0", + "fee_base_msat": 1000, + "fee_proportional_millionths": 1000, + "cltv_expiry_delta": 6 + } + ] + ], + "payment_hash": "1109c8f66e4c13fd5439765eb47a4a3efa1539d3bb3bddd26bf3c7f71bafc650", + "signature": "3045022100f72a929795b643d46f2af2e988a1bff605f9cbaef58c32191b3f9ca93d528a0b022051a983e5ae1465b7c36d86e70af6fd21fd5f6607ae5e236b0bf4044f661e2c27", + "valid": true + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-pay(7)", + "lightning-offer(7)", + "lightning-fetchinvoice(7)", + "lightning-sendinvoice(7)", + "lightning-commando-rune(7)" + ], + "resources": [ + "[BOLT #11](https://github.com/lightning/bolts/blob/master/11-payment-encoding.md)", + "", + "[BOLT #12](https://github.com/rustyrussell/lightning-rfc/blob/guilt/offers/12-offer-encoding.md)", + "(experimental, [bolt](https://github.com/lightning/bolts) #798)", + "", + "Main web site: " + ] + }, + "lightning-decodepay.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.05", + "rpc": "decodepay", + "title": "Command for decoding a bolt11 string (low-level)", + "description": [ + "The **decodepay** RPC command checks and parses a *bolt11* string as specified by the BOLT 11 specification." + ], + "request": { + "required": [ + "bolt11" + ], + "properties": { + "bolt11": { + "type": "string", + "description": [ + "Bolt11 invoice to decode." + ] + }, + "description": { + "type": "string", + "description": [ + "Description of the invoice to decode." + ] + } + } + }, + "response": { + "required": [ + "currency", + "created_at", + "expiry", + "payee", + "min_final_cltv_expiry", + "payment_hash", + "signature" + ], + "properties": { + "currency": { + "type": "string", + "description": [ + "The BIP173 name for the currency." + ] + }, + "created_at": { + "type": "u64", + "description": [ + "The UNIX-style timestamp of the invoice." + ] + }, + "expiry": { + "type": "u64", + "description": [ + "The number of seconds this is valid after *timestamp*." + ] + }, + "payee": { + "type": "pubkey", + "description": [ + "The public key of the recipient." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "Amount the invoice asked for." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage*." + ] + }, + "signature": { + "type": "signature", + "description": [ + "Signature of the *payee* on this invoice." + ] + }, + "description": { + "type": "string", + "description": [ + "The description of the purpose of the purchase." + ] + }, + "description_hash": { + "type": "hash", + "description": [ + "The hash of the description, in place of *description*." + ] + }, + "min_final_cltv_expiry": { + "type": "u32", + "description": [ + "The minimum CLTV delay for the final node." + ] + }, + "payment_secret": { + "type": "hash", + "description": [ + "The secret to hand to the payee node." + ] + }, + "features": { + "type": "hex", + "description": [ + "The features bitmap for this invoice." + ] + }, + "payment_metadata": { + "type": "hex", + "description": [ + "The payment_metadata to put in the payment." + ] + }, + "fallbacks": { + "type": "array", + "description": [ + "Onchain addresses." + ], + "items": { "type": "object", - "deprecated": [ - "v24.05", - "v24.11" - ], - "additionalProperties": false, "required": [ - "value_int", - "source" + "type", + "hex" ], + "additionalProperties": false, "properties": { - "value_int": { - "type": "u32", + "type": { + "type": "string", "description": [ - "Field from config or cmdline, or default." + "The address type (if known)." + ], + "enum": [ + "P2PKH", + "P2SH", + "P2WPKH", + "P2WSH", + "P2TR" ] }, - "source": { + "addr": { "type": "string", "description": [ - "Source of configuration setting." - ] - } - } - }, - "funding-confirms": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_int", - "source" - ], - "properties": { - "value_int": { - "type": "u32", - "description": [ - "Field from config or cmdline, or default." + "The address in appropriate format for *type*." ] }, - "source": { - "type": "string", + "hex": { + "type": "hex", "description": [ - "Source of configuration setting." + "Raw encoded address." ] } } - }, - "cltv-delta": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_int", - "source" + } + }, + "routes": { + "type": "array", + "description": [ + "Route hints to the *payee*." + ], + "items": { + "type": "array", + "description": [ + "Hops in the route." ], - "properties": { - "value_int": { - "type": "u32", - "description": [ - "Field from config or cmdline, or default." - ] - }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] + "items": { + "type": "object", + "required": [ + "pubkey", + "short_channel_id", + "fee_base_msat", + "fee_proportional_millionths", + "cltv_expiry_delta" + ], + "additionalProperties": false, + "properties": { + "pubkey": { + "type": "pubkey", + "description": [ + "The public key of the node." + ] + }, + "short_channel_id": { + "type": "short_channel_id", + "description": [ + "A channel to the next peer." + ] + }, + "fee_base_msat": { + "type": "msat", + "description": [ + "The base fee for payments." + ] + }, + "fee_proportional_millionths": { + "type": "u32", + "description": [ + "The parts-per-million fee for payments." + ] + }, + "cltv_expiry_delta": { + "type": "u32", + "description": [ + "The CLTV delta across this hop." + ] + } } } - }, - "cltv-final": { + } + }, + "extra": { + "type": "array", + "description": [ + "Any extra fields we didn't know how to parse." + ], + "items": { "type": "object", - "additionalProperties": false, "required": [ - "value_int", - "source" + "tag", + "data" ], + "additionalProperties": false, "properties": { - "value_int": { - "type": "u32", + "tag": { + "type": "string", "description": [ - "Field from config or cmdline, or default." - ] + "The bech32 letter which identifies this field." + ], + "maxLength": 1, + "minLength": 1 }, - "source": { + "data": { "type": "string", "description": [ - "Source of configuration setting." + "The bech32 data for this field." ] } } - }, - "commit-time": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_int", - "source" - ], - "properties": { - "value_int": { - "type": "u32", - "description": [ - "Field from config or cmdline, or default." - ] - }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] + } + } + }, + "post_return_value_notes": [ + "Technically, the *description* field is optional if a *description_hash* field is given, but in this case **decodepay** will only succeed if the optional *description* field is passed and matches the *description_hash*. In practice, these are currently unused." + ] + }, + "json_example": [ + { + "request": { + "id": "example:decodepay#1", + "method": "decodepay", + "params": { + "bolt11": "lnbcrt110u1pjmr5lzsp5sfjyj3xn7ux592k36hmmt4ax98n6lgct22wvj54yck0upcmep63qpp5qu436g855lr40ftdt7csatk5pdvtdzzfmfqluwtvm0fds95jsadqdpq0pzk7s6j8y69xjt6xe25j5j4g44hsatdxqyjw5qcqp99qxpqysgquwma3zrw4cd8e8j4u9uh4gxukaacckse64kx2l9dqv8rvrysdq5r5dt38t9snqj9u5ar07h2exr4fg56wpudkhkk7gtxlyt72ku5fpqqd4fnlk", + "description": null + } + }, + "response": { + "currency": "bcrt", + "created_at": 1706152930, + "expiry": 604800, + "payee": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "amount_msat": 11000000, + "description": [ + "XEoCR94SIz6UIRUEkxum." + ], + "min_final_cltv_expiry": 5, + "payment_secret": "82644944d3f70d42aad1d5f7b5d7a629e7afa30b529cc952a4c59fc0e3790ea2", + "features": "02024100", + "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", + "signature": "3045022100e3b7d8886eae1a7c9e55e1797aa0dcb77b8c5a19d56c657cad030e360c90682802203a35713acb098245e53a37faeac98754a29a7078db5ed6f2166f917e55b94484" + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-pay(7)", + "lightning-getroute(7)", + "lightning-sendpay(7)" + ], + "resources": [ + "[BOLT #11](https://github.com/lightning/bolts/blob/master/11-payment-encoding.md)", + "", + "Main web site: " + ] + }, + "lightning-deldatastore.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "deldatastore", + "title": "Command for removing (plugin) data", + "description": [ + "The **deldatastore** RPC command allows plugins to delete data it has stored in the Core Lightning database.", + "", + "The command fails if the *key* isn't present, or if *generation* is specified and the generation of the data does not exactly match." + ], + "request": { + "required": [ + "key" + ], + "properties": { + "key": { + "oneOf": [ + { + "type": "array", + "description": [ + "Key is an array of values (though a single value is treated as a one-element array), to form a heirarchy. Using the first element of the key as the plugin name (e.g. [ 'summary' ]) is recommended. A key can either have children or a value, never both: parents are created and removed automatically." + ], + "items": { + "type": "string" } + }, + { + "type": "string" } - }, - "fee-base": { - "type": "object", - "additionalProperties": false, + ] + }, + "generation": { + "type": "u64", + "description": [ + "If specified, means that the update will fail if the previously-existing data is not exactly that generation. This allows for simple atomicity. This is only legal with mode `must-replace` or `must-append`." + ] + } + } + }, + "response": { + "required": [ + "key" + ], + "properties": { + "key": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Part of the key added to the datastore." + ] + } + }, + "generation": { + "type": "u64", + "description": [ + "The number of times this has been updated." + ] + }, + "hex": { + "type": "hex", + "description": [ + "The hex data which has removed from the datastore." + ] + }, + "string": { + "type": "string", + "description": [ + "The data as a string, if it's valid utf-8." + ] + } + } + }, + "errors": [ + "The following error codes may occur:", + "", + "- 1200: the key does not exist", + "- 1201: the key does exist, but the generation is wrong", + "- -32602: invalid parameters" + ], + "json_example": [ + { + "request": { + "id": "example:deldatastore#1", + "method": "deldatastore", + "params": { + "key": "otherkey", + "generation": 1 + } + }, + "response": { + "key": [ + "otherkey" + ], + "generation": 1, + "hex": "6f746865726461746161", + "string": "otherdataa" + } + }, + { + "request": { + "id": "example:deldatastore#2", + "method": "deldatastore", + "params": { + "key": [ + "a" + ], + "generation": null + } + }, + "response": { + "key": [ + "a" + ], + "generation": 0, + "hex": "6176616c", + "string": "aval" + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-listdatastore(7)", + "lightning-datastore(7)", + "lightning-datastoreusage(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-delforward.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "delforward", + "title": "Command for removing a forwarding entry", + "description": [ + "The **delforward** RPC command removes a single forward from **listforwards**, using the uniquely-identifying *in_channel* and *in_htlc_id* (and, as a sanity check, the *status*) given by that command.", + "", + "This command is mainly used by the *autoclean* plugin (see lightningd- config(7)), As these database entries are only kept for your own analysis, removing them has no effect on the running of your node." + ], + "request": { + "required": [ + "in_channel", + "in_htlc_id", + "status" + ], + "properties": { + "in_channel": { + "type": "short_channel_id", + "description": [ + "Only the matching forwards on the given inbound channel are deleted. Note: for **listforwards** entries without an *in_htlc_id* entry (no longer created in v22.11, but can exist from older versions), a value of 18446744073709551615 can be used, but then it will delete *all* entries without *in_htlc_id* for this *in_channel* and *status*." + ] + }, + "in_htlc_id": { + "type": "u64", + "description": [ + "The unique HTLC id the sender gave this (not present if incoming channel was closed before upgrade to v22.11)." + ] + }, + "status": { + "type": "string", + "description": [ + "The status of the forward to delete. You cannot delete forwards which have status *offered* (i.e. are currently active)." + ], + "enum": [ + "settled", + "local_failed", + "failed" + ] + } + } + }, + "response": { + "required": [], + "properties": {} + }, + "errors": [ + "The following errors may be reported:", + "", + "- 1401: The forward specified does not exist." + ], + "json_example": [ + { + "request": { + "id": "example:delforward#1", + "method": "delforward", + "params": { + "in_channel": "103x1x0", + "in_htlc_id": 2, + "status": "local_failed" + } + }, + "response": {} + }, + { + "request": { + "id": "example:delforward#2", + "method": "delforward", + "params": [ + "103x1x0", + 1, + "failed" + ] + }, + "response": {} + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-autoclean(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-delinvoice.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "delinvoice", + "title": "Command for removing an invoice (or just its description)", + "description": [ + "The **delinvoice** RPC command removes an invoice with *status* as given in **listinvoices**, or with *desconly* set, removes its description." + ], + "request": { + "required": [ + "label", + "status" + ], + "properties": { + "label": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "u64" + } + ], + "description": [ + "Label of the invoice to be deleted." + ] + }, + "status": { + "type": "string", + "description": [ + "Label of the invoice to be deleted. The caller should be particularly aware of the error case caused by the *status* changing just before this command is invoked!" + ], + "enum": [ + "paid", + "expired", + "unpaid" + ] + }, + "desconly": { + "type": "boolean", + "description": [ + "If set to True, the invoice is not deleted, but has its description removed (this can save space with very large descriptions, as would be used with lightning-invoice(7) *deschashonly*." + ] + } + } + }, + "response": { + "required": [ + "label", + "payment_hash", + "status", + "created_index", + "expires_at" + ], + "properties": { + "label": { + "type": "string", + "description": [ + "Unique label given at creation time." + ] + }, + "bolt11": { + "type": "string", + "description": [ + "BOLT11 string." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "BOLT12 string." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount required to pay this invoice." + ] + }, + "description": { + "type": "string", + "description": [ + "Description used in the invoice." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "created_index": { + "type": "u64", + "added": "v23.08", + "description": [ + "1-based index indicating order this invoice was created in." + ] + }, + "updated_index": { + "type": "u64", + "added": "v23.08", + "description": [ + "1-based index indicating order this invoice was changed (only present if it has changed since creation)." + ] + }, + "status": { + "type": "string", + "description": [ + "State of invoice." + ], + "enum": [ + "paid", + "expired", + "unpaid" + ] + }, + "expires_at": { + "type": "u64", + "description": [ + "UNIX timestamp when invoice expires (or expired)." + ] + } + }, + "allOf": [ + { + "if": { "required": [ - "value_int", - "source" - ], - "properties": { - "value_int": { - "type": "u32", - "description": [ - "Field from config or cmdline, or default." - ] - }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } + "bolt12" + ] }, - "rescan": { - "type": "object", + "then": { + "required": [], "additionalProperties": false, - "required": [ - "value_int", - "source" - ], "properties": { - "value_int": { - "type": "integer", + "label": {}, + "bolt12": {}, + "status": {}, + "expires_at": {}, + "msatoshi": {}, + "amount_msat": {}, + "description": {}, + "payment_hash": {}, + "pay_index": {}, + "created_index": {}, + "updated_index": {}, + "amount_received_msat": {}, + "paid_at": {}, + "payment_preimage": {}, + "local_offer_id": { + "type": "hex", "description": [ - "Field from config or cmdline, or default." + "Offer for which this invoice was created." ] }, - "source": { + "invreq_payer_note": { "type": "string", "description": [ - "Source of configuration setting." + "The optional *invreq_payer_note* from invoice_request which created this invoice." ] } } }, - "fee-per-satoshi": { - "type": "object", - "additionalProperties": false, + "else": { "required": [ - "value_int", - "source" + "bolt11" ], - "properties": { - "value_int": { - "type": "u32", - "description": [ - "Field from config or cmdline, or default." - ] - }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - }, - "max-concurrent-htlcs": { - "type": "object", "additionalProperties": false, - "required": [ - "value_int", - "source" - ], "properties": { - "value_int": { - "type": "u32", - "description": [ - "Field from config or cmdline, or default." - ] - }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } + "label": {}, + "bolt11": {}, + "status": {}, + "expires_at": {}, + "msatoshi": {}, + "amount_msat": {}, + "description": {}, + "payment_hash": {}, + "pay_index": {}, + "created_index": {}, + "updated_index": {}, + "amount_received_msat": {}, + "msatoshi_received": {}, + "paid_at": {}, + "payment_preimage": {} } - }, - "htlc-minimum-msat": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_msat", - "source" - ], + } + }, + { + "if": { "properties": { - "value_msat": { - "type": "msat", - "description": [ - "Field from config or cmdline, or default." - ] - }, - "source": { + "status": { "type": "string", - "description": [ - "Source of configuration setting." + "enum": [ + "paid" ] } } }, - "htlc-maximum-msat": { - "type": "object", + "then": { "additionalProperties": false, "required": [ - "value_msat", - "source" + "pay_index", + "amount_received_msat", + "paid_at", + "payment_preimage" ], "properties": { - "value_msat": { - "type": "msat", + "label": {}, + "bolt11": {}, + "bolt12": {}, + "status": {}, + "expires_at": {}, + "msatoshi": {}, + "amount_msat": {}, + "description": {}, + "payment_hash": {}, + "invreq_payer_note": {}, + "local_offer_id": {}, + "created_index": {}, + "updated_index": {}, + "pay_index": { + "type": "u64", "description": [ - "Field from config or cmdline, or default." + "Unique index for this invoice payment." ] }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - }, - "max-dust-htlc-exposure-msat": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_msat", - "source" - ], - "properties": { - "value_msat": { + "amount_received_msat": { "type": "msat", "description": [ - "Field from config or cmdline, or default." + "How much was actually received." ] }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - }, - "min-capacity-sat": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_int", - "source" - ], - "properties": { - "value_int": { + "paid_at": { "type": "u64", "description": [ - "Field from config or cmdline, or default." + "UNIX timestamp of when payment was received." ] }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - }, - "dynamic": { - "type": "boolean", - "enum": [ - true - ], + "payment_preimage": { + "type": "secret", "description": [ - "Can this be set by setconfig()." + "SHA256 of this is the *payment_hash* offered in the invoice." ] } } }, - "addr": { - "type": "object", - "additionalProperties": false, - "required": [ - "values_str", - "sources" - ], - "properties": { - "values_str": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Field from config or cmdline." - ] - } - }, - "sources": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - } - }, - "announce-addr": { - "type": "object", - "additionalProperties": false, - "required": [ - "values_str", - "sources" - ], - "properties": { - "values_str": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Field from config or cmdline." - ] - } - }, - "sources": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - } - }, - "bind-addr": { - "type": "object", - "additionalProperties": false, - "required": [ - "values_str", - "sources" - ], - "properties": { - "values_str": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Field from config or cmdline." - ] - } - }, - "sources": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - } - }, - "offline": { - "type": "object", + "else": { "additionalProperties": false, - "required": [ - "set", - "source" - ], "properties": { - "set": { - "type": "boolean", - "description": [ - "`true` if set in config or cmdline." - ] - }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } + "label": {}, + "bolt11": {}, + "bolt12": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "description": {}, + "payment_hash": {}, + "expires_at": {}, + "created_index": {}, + "updated_index": {}, + "pay_index": {}, + "invreq_payer_note": {}, + "local_offer_id": {} } - }, - "autolisten": { + } + } + ], + "pre_return_value_notes": [ + "Note: The return is the same as an object from lightning-listinvoices(7)." + ] + }, + "errors": [ + "The following errors may be reported:", + "", + "- -1: Database error.", + "- 905: An invoice with that label does not exist.", + "- 906: The invoice *status* does not match the parameter. An error object will be returned as error *data*, containing *current_status* and *expected_status* fields. This is most likely due to the *status* of the invoice changing just before this command is invoked.", + "- 908: The invoice already has no description, and *desconly* was set." + ], + "json_example": [ + { + "request": { + "id": "example:delinvoice#1", + "method": "delinvoice", + "params": { + "label": "invlabel2", + "status": "unpaid", + "desconly": true + } + }, + "response": { + "label": "invlabel2", + "bolt11": "lnbcrt420p1pja0tefsp5vvzg40t4g24l0eqk0jch7mc6jm3ec52ts8w8gwzpwtx9c8nv05rspp533e9csxurt7j9sn2cx7hsn6m00475qgrau8sux5r7djpdedwy2fshp5xqsmrtgfcwsnhxcxmf3tuc65kl6fxvqhvujfmxw2kpeh95yy2x8sxqyjw5qcqp99qxpqysgqgfjrz4q5zcq2lluxxg9h475mq2d3w0tpdstm5274zmhadjl8cqapylfskzk96apka5599a2flm90rmavsk7q8mhh87yle3sgh5vrlycq72fern", + "payment_hash": "8c725c40dc1afd22c26ac1bd784f5b7bebea0103ef0f0e1a83f36416e5ae2293", + "amount_msat": 42, + "status": "unpaid", + "expires_at": 1709238697, + "created_index": 3 + } + }, + { + "request": { + "id": "example:delinvoice#2", + "method": "delinvoice", + "params": { + "label": "keysend-1708640419.666098582", + "status": "paid", + "desconly": null + } + }, + "response": { + "label": "keysend-1708640419.666098582", + "bolt11": "lnbcrt1pja0j9rsp5tg3zvj846gcdzw394njazq40s946sq2ur3hkl4xu4xudtjdtckxspp5fuunrfzsnyz2uxjmg2n95mqhghv4fpvv2kud3kvq4fkys3vmzu5sdqvddjhjum9dejqxqyjw5qcqp99qxpqysgqwt7r0gjlgt7zrfldc3um9myfc36acpqnsdn77c2m42facjtps30yufc5nsmwzhgexlj59f6xa5hess6e3tqrxynt9fejzj3rrshddtcqnappmj", + "payment_hash": "4f3931a4509904ae1a5b42a65a6c1745d954858c55b8d8d980aa6c48459b1729", + "status": "paid", + "pay_index": 1, + "amount_received_msat": 10000000, + "paid_at": 1708640419, + "payment_preimage": "b760af47f456a217e8dfda21a282f1f78c903487c1b21b3b318135f75aa3bf11", + "description": "keysend", + "expires_at": 1709245219, + "created_index": 1, + "updated_index": 1 + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-listinvoices(7)", + "lightning-waitinvoice(7)", + "lightning-invoice(7)", + "lightning-autoclean-status(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-delpay.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "delpay", + "title": "Command for removing a completed or failed payment", + "description": [ + "The **delpay** RPC command deletes a payment with the given `payment_hash` if its status is either `complete` or `failed`. If *partid* and *groupid* are not specified, all payment parts with matchin status are deleted." + ], + "request": { + "required": [ + "payment_hash", + "status" + ], + "properties": { + "payment_hash": { + "type": "hash", + "description": [ + "The unique identifier of a payment." + ] + }, + "status": { + "type": "string", + "description": [ + "Expected status of the payment. Only deletes if the payment status matches. Deleting a `pending` payment will return an error." + ], + "enum": [ + "complete", + "failed" + ] + }, + "partid": { + "type": "u64", + "description": [ + "Specific partid to delete (must be paired with *groupid*)." + ] + }, + "groupid": { + "type": "u64", + "description": [ + "Specific groupid to delete (must be paired with *partid*)." + ] + } + }, + "pairedWith": [ + [ + "partid", + "groupid" + ] + ] + }, + "response": { + "required": [ + "payments" + ], + "properties": { + "payments": { + "type": "array", + "items": { "type": "object", "additionalProperties": false, "required": [ - "value_bool", - "source" + "created_index", + "id", + "payment_hash", + "status", + "amount_sent_msat", + "created_at" ], "properties": { - "value_bool": { - "type": "boolean", + "created_index": { + "added": "v23.11", + "type": "u64", "description": [ - "Field from config or cmdline, or default." + "1-based index indicating order this payment was created in." ] }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - }, - "proxy": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { - "type": "string", + "id": { + "type": "u64", "description": [ - "Field from config or cmdline, or default." + "Old synonym for created_index." ] }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - }, - "disable-dns": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + "payment_hash": { + "type": "hash", "description": [ - "`true` if set in config or cmdline." + "The hash of the *payment_preimage* which will prove payment." ] }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - }, - "announce-addr-discovered": { - "added": "v23.02", - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { + "status": { "type": "string", "enum": [ - "true", - "false", - "auto" + "pending", + "failed", + "complete" ], "description": [ - "Field from config or cmdline, or default." + "Status of the payment." ] }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - }, - "announce-addr-discovered-port": { - "added": "v23.02", - "type": "object", - "additionalProperties": false, - "required": [ - "value_int", - "source" - ], - "properties": { - "value_int": { - "type": "u32", + "amount_sent_msat": { + "type": "msat", "description": [ - "Field from config or cmdline, or default." + "The amount we actually sent, including fees." ] }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - }, - "encrypted-hsm": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", + "partid": { + "type": "u64", "description": [ - "`true` if set in config or cmdline." + "Unique ID within this (multi-part) payment." ] }, - "source": { - "type": "string", + "destination": { + "type": "pubkey", "description": [ - "Source of configuration setting." + "The final destination of the payment if known." ] - } - } - }, - "rpc-file-mode": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { - "type": "string", + }, + "amount_msat": { + "type": "msat", "description": [ - "Field from config or cmdline, or default." + "The amount the destination received, if known." ] }, - "source": { - "type": "string", + "created_at": { + "type": "u64", "description": [ - "Source of configuration setting." + "The UNIX timestamp showing when this payment was initiated." ] - } - } - }, - "log-level": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { - "type": "string", + }, + "updated_index": { + "added": "v23.11", + "type": "u64", "description": [ - "Field from config or cmdline, or default." + "1-based index indicating order this payment was changed (only present if it has changed since creation)." ] }, - "source": { - "type": "string", + "completed_at": { + "type": "u64", "description": [ - "Source of configuration setting." + "The UNIX timestamp showing when this payment was completed." ] - } - } - }, - "log-prefix": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { - "type": "string", + }, + "groupid": { + "type": "u64", "description": [ - "Field from config or cmdline, or default." + "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash." ] }, - "source": { - "type": "string", + "payment_preimage": { + "type": "secret", "description": [ - "Source of configuration setting." + "Proof of payment." ] - } - } - }, - "log-file": { - "type": "object", - "additionalProperties": false, - "required": [ - "values_str", - "sources" - ], - "properties": { - "values_str": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Field from config or cmdline." - ] - } }, - "sources": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - } - }, - "log-timestamps": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_bool", - "source" - ], - "properties": { - "value_bool": { - "type": "boolean", + "label": { + "type": "string", "description": [ - "Field from config or cmdline, or default." + "The label, if given to sendpay." ] }, - "source": { + "bolt11": { "type": "string", "description": [ - "Source of configuration setting." + "The bolt11 string (if pay supplied one)." ] - } - } - }, - "force-feerates": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { + }, + "bolt12": { "type": "string", "description": [ - "Field from config or cmdline, or default." + "The bolt12 string (if supplied for pay: **experimental-offers** only)." ] }, - "source": { - "type": "string", + "erroronion": { + "type": "hex", "description": [ - "Source of configuration setting." + "The error onion returned on failure, if any." ] } } + } + } + }, + "pre_return_value_notes": [ + "The returned format is the same as lightning-listsendpays(7). If the payment is a multi-part payment (MPP) the command return a list of payments will be returned -- one payment object for each partid." + ] + }, + "json_example": [ + { + "request": { + "id": "example:delpay#1", + "method": "delpay", + "params": { + "payment_hash": "4fa2f1b001067ec06d7f95b8695b8acd9ef04c1b4d1110e3b94e1fa0687bb1e0", + "status": "complete" + } + }, + "response": { + "payments": [ + { + "id": 1, + "payment_hash": "8dfd6538eeb33811c9114a75f792a143728d7f05643f38c3d574d3097e8910c0", + "destination": "0219f8900ee78a89f050c24d8b69492954f9fdbabed753710845eb75d3a75a5880", + "msatoshi": 1000, + "amount_msat": "1000msat", + "msatoshi_sent": 1000, + "amount_sent_msat": "1000msat", + "created_at": 1596224858, + "status": "complete", + "payment_preimage": "35bd4e2b481a1a84a22215b5372672cf81460a671816960ddb206464359e1822", + "bolt11": "lntb10n1p0jga20pp53h7k2w8wkvuprjg3ff6l0y4pgdeg6lc9vsln3s74wnfsjl5fzrqqdqdw3jhxazldahx2xqyjw5qcqp2sp5wut5jnhr6n7jd5747ky2g5flmw7hgx9yjnqzu60ps2jf6f7tc0us9qy9qsqu2a0k37nckl62005p69xavlkydkvhnypk4dphffy4x09zltwh9437ad7xkl83tefdarzhu5t30ju5s56wlrg97qkx404pq3srfc425cq3ke9af" + } + ] + } + }, + { + "request": { + "id": "example:delpay#2", + "method": "delpay", + "params": [ + "c9d4547473d0d646f1fdd8ca7f01803e4d31ceab01df33c79456f9c24b04034e", + "failed" + ] + }, + "response": { + "payments": [ + { + "created_index": 2, + "id": 2, + "payment_hash": "c9d4547473d0d646f1fdd8ca7f01803e4d31ceab01df33c79456f9c24b04034e", + "groupid": 1, + "updated_index": 2, + "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "amount_msat": 100000, + "amount_sent_msat": 100002, + "created_at": 1706316468, + "completed_at": 1706316471, + "status": "failed", + "bolt11": "lnbcrt1u1pjmg54nsp5ke626txv6wwwmqmpuy63t3jnu9hqxwj880zsfkkj7jjqagdaz2sqpp5e829garn6rtydu0amr987qvq8exnrn4tq80n83u52muuyjcyqd8qdq8v3jhxccxqyjw5qcqp99qxpqysgqalktfwy9svsamvvvrzzzzpdaa4rh7n6s5p7t9lx7qv0raz4vnm9knkh5ury3u5cmnhx2gms98nxkclm3833uhjrlnzmftc685vz2f0gpfnjy4y" + } + ] + } + }, + { + "request": { + "id": "example:delpay#3", + "method": "delpay", + "params": { + "payment_hash": "bbc35e0a46d1483292a4ff8d4daaceaab8c3c084dd835be4128785b52e469c64", + "status": "complete", + "groupid": 1, + "partid": 1 + } + }, + "response": { + "payments": [ + { + "created_index": 3, + "id": 3, + "payment_hash": "bbc35e0a46d1483292a4ff8d4daaceaab8c3c084dd835be4128785b52e469c64", + "groupid": 1, + "updated_index": 3, + "partid": 1, + "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "amount_msat": 100000, + "amount_sent_msat": 102100, + "created_at": 1708641193, + "completed_at": 1708641194, + "status": "complete", + "payment_preimage": "a6ebb1cfbf69e76200f196f1eafd28a3d850633499c223a7eb7a7dba3b995286" + } + ] + } + } + ], + "errors": [ + "On failure, an error is returned. If the lightning process fails before responding, the", + "caller should use lightning-listsentpays(7) or lightning-listpays(7) to query whether this payment was deleted or not.", + "", + "The following error codes may occur:", + "", + "- -32602: Parameter missed or malformed;", + "- 211: Payment status mismatch. Check the correct status via **paystatus**;", + "- 208: Payment with payment_hash not found." + ], + "author": [ + "Vincenzo Palazzo <> is mainly responsible." + ], + "see_also": [ + "lightning-listpays(7)", + "lightning-listsendpays(7)", + "lightning-paystatus(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-deprecations.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v24.02", + "rpc": "deprecations", + "title": "Command to enable/disable deprecated APIs", + "description": [ + "The **deprecations** RPC command is used to override global config option `allow-deprecated-apis` for further RPC commands on this same connection. This can be useful for developer testing to ensure you don't accidentally rely on deprecated features." + ], + "request": { + "required": [ + "enable" + ], + "properties": { + "enable": { + "type": "boolean", + "description": [ + "Flag to enable or disable deprecated APIs. Setting it to `false` will neither accept deprecated parameters or commands, nor output deprecated fields." + ] + } + } + }, + "response": { + "properties": {} + }, + "json_example": [ + { + "request": { + "id": "example:deprecations#1", + "method": "deprecations", + "params": { + "enable": false + } + }, + "response": {} + } + ], + "errors": [ + "On failure, one of the following error codes may be returned:", + "", + "- -32602: Error in given parameters." + ], + "author": [ + "Rusty Russell <> wrote the initial version of this man page." + ], + "see_also": [ + "lightningd-config(5)", + "lightning-notifications(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-dev-forget-channel.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "dev-forget-channel", + "title": "Command to remove the DB entries from the database after a close", + "warning": "For advanced users only", + "description": [ + "Never use any `dev` command, including this one, unless you know exactly what you are doing; and have checked with a developer that your understanding is correct. They are meant only as a means of last resort and have the potential to mess things up. You have been warned\u2757\ufe0f", + "", + "The **dev-forget-channel** forgets the channel with given details. It will perform additional checks on whether it is safe to forget the channel, and only then remove the channel from the DB. Notice that this command is only available if CLN was started with --developer.", + "", + "Also see https://docs.corelightning.org/docs/faq#how-to-forget-about-a-channel" + ], + "request": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "The peer id of the channel to be forgotten. Checks if the channel is still active by checking its funding transaction." + ] + }, + "short_channel_id": { + "type": "short_channel_id", + "description": [ + "The short channel id of the channel you want to remove." + ] + }, + "channel_id": { + "type": "hash", + "description": [ + "The channel id of the channel you want to remove." + ] + }, + "force": { + "type": "boolean", + "description": [ + "Ignores UTXO check for forced removal." + ], + "default": "False" + } + } + }, + "response": { + "required": [ + "forced", + "funding_unspent", + "funding_txid" + ], + "properties": { + "forced": { + "type": "boolean", + "description": [ + "If the command was forced or not." + ] + }, + "funding_unspent": { + "type": "boolean", + "description": [ + "The funding is spent or not in the channel." + ] + }, + "funding_txid": { + "type": "txid", + "description": [ + "The id of the funding transaction." + ] + } + } + }, + "errors": [ + "The following errors may be reported:", + "", + "- -32602: If the given parameters are missing or wrong.", + "- -1: Catch all nonspecific errors, eg. `Multiple channels: please specify short_channel_id.` OR `No channels matching that peer_id and that short_channel_id.`, etc." + ], + "json_example": [ + { + "description": [ + "Forget a channel by peer pubkey when only one channel exists with the peer." + ], + "request": { + "id": "example:dev-forget-channel#1", + "method": "dev-forget-channel", + "params": { + "id": "023d28435ce4b49f068c964aacbcb6dd114317a70f03e5a731ea72d25df1cff35b" }, - "subdaemon": { - "type": "object", - "additionalProperties": false, - "required": [ - "values_str", - "sources" - ], - "properties": { - "values_str": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Field from config or cmdline." - ] - } - }, - "sources": { - "type": "array", - "items": { - "type": "string", - "description": [ - "Source of configuration setting." - ] + "test": "test" + }, + "response": { + "forced": false, + "funding_unspent": true, + "funding_txid": "g6efdfb11bee25aa8b2249055a4162e4bd5fa9134bc865c3f054ca666d7ab744" + } + }, + { + "description": [ + "Forget a channel by short channel id when peer has multiple channels." + ], + "request": { + "id": "example:dev-forget-channel#2", + "method": "dev-forget-channel", + "params": { + "id": "0348e58210bbc128b1cc3cc1a520a654aaa01e5fe65c65341e21b61a1f09da94d5", + "short_channel_id": "337x1x0", + "force": true + } + }, + "response": { + "forced": true, + "funding_unspent": true, + "funding_txid": "b254f30a58adde9326b7e8a701f9d5b3c4db2160b58c5378afbe04448018ec8a" + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-close(7)", + "lightning-listchannels(7)", + "lightning-listpeerchannels(7)", + "lightning-listfunds(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-disableinvoicerequest.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v22.11", + "rpc": "disableinvoicerequest", + "title": "Command for removing an invoice request", + "warning": "experimental-offers only", + "description": [ + "The **disableinvoicerequest** RPC command disables an invoice_request, so that no further invoices will be accepted (and thus, no further payments made)..", + "", + "We currently don't support deletion of invoice_requests, so they are not forgotten entirely (there may be payments which refer to this invoice_request)." + ], + "request": { + "required": [ + "invreq_id" + ], + "properties": { + "invreq_id": { + "type": "string", + "description": [ + "A specific invoice can be disabled by providing the `invreq_id`, which is presented by lightning-invoicerequest(7)." + ] + } + } + }, + "response": { + "required": [ + "invreq_id", + "single_use", + "active", + "bolt12", + "used" + ], + "properties": { + "invreq_id": { + "type": "hash", + "description": [ + "The SHA256 hash of all invoice_request fields less than 160." + ] + }, + "active": { + "type": "boolean", + "enum": [ + false + ], + "description": [ + "Whether the invoice_request is currently active." + ] + }, + "single_use": { + "type": "boolean", + "description": [ + "Whether the invoice_request will become inactive after we pay an invoice for it." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The bolt12 string starting with lnr." + ] + }, + "used": { + "type": "boolean", + "description": [ + "Whether the invoice_request has already been used." + ] + }, + "label": { + "type": "string", + "description": [ + "The label provided when creating the invoice_request." + ] + } + }, + "pre_return_value_notes": [ + "Note: the returned object is the same format as **listinvoicerequests**." + ] + }, + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-invoicerequest(7)", + "lightning-listinvoicerequests(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-disableoffer.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "disableoffer", + "title": "Command for removing an offer", + "warning": "experimental-offers only", + "description": [ + "The **disableoffer** RPC command disables an offer, so that no further invoices will be given out.", + "", + "We currently don't support deletion of offers, so offers are not forgotten entirely (there may be invoices which refer to this offer)." + ], + "request": { + "required": [ + "offer_id" + ], + "properties": { + "offer_id": { + "type": "hash", + "description": [ + "The id we use to identify this offer." + ] + } + } + }, + "response": { + "required": [ + "offer_id", + "active", + "single_use", + "bolt12", + "used" + ], + "properties": { + "offer_id": { + "type": "hash", + "description": [ + "The merkle hash of the offer." + ] + }, + "active": { + "type": "boolean", + "enum": [ + false + ], + "description": [ + "Whether the offer can produce invoices/payments." + ] + }, + "single_use": { + "type": "boolean", + "description": [ + "Whether the offer is disabled after first successful use." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The bolt12 string representing this offer." + ] + }, + "used": { + "type": "boolean", + "description": [ + "Whether the offer has had an invoice paid / payment made." + ] + }, + "label": { + "type": "string", + "description": [ + "The label provided when offer was created." + ] + } + }, + "pre_return_value_notes": [ + "Note: the returned object is the same format as **listoffers**." + ] + }, + "json_example": [ + { + "request": { + "id": "example:disableoffer#1", + "method": "disableoffer", + "params": { + "offer_id": "713a16ccd4eb10438bdcfbc2c8276be301020dd9d489c530773ba64f3b33307d" + } + }, + "response": { + "offer_id": "053a5c566fbea2681a5ff9c05a913da23e45b95d09ef5bd25d7d408f23da7084", + "active": false, + "single_use": false, + "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqvqcdgq2z9pk7enxv4jjqen0wgs8yatnw3ujz83qkc6rvp4j28rt3dtrn32zkvdy7efhnlrpr5rp5geqxs783wtlj550qs8czzku4nk3pqp6m593qxgunzuqcwkmgqkmp6ty0wyvjcqdguv3pnpukedwn6cr87m89t74h3auyaeg89xkvgzpac70z3m9rn5xzu28c", + "used": false + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-offer(7)", + "lightning-listoffers(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-disconnect.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "disconnect", + "title": "Command for disconnecting from another lightning node", + "description": [ + "The disconnect RPC command closes an existing connection to a peer, identified by *id*, in the Lightning Network, as long as it doesn't have an active channel." + ], + "request": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "The public key of the peer to terminate the connection. It can be discovered in the output of the listpeers command, which returns a set of peers:", + "{", + " 'peers':", + " [", + " {", + " 'id': '0563aea81...',", + " 'connected': true,", + " ...", + " }", + " ]", + "}" + ] + }, + "force": { + "type": "boolean", + "description": [ + "If set to True, it will disconnect even with an active channel." + ] + } + } + }, + "response": { + "properties": {} + }, + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong.", + "- -1: Catchall nonspecific error." + ], + "json_example": [ + { + "request": { + "id": "example:disconnect#1", + "method": "disconnect", + "params": { + "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "force": false + } + }, + "response": {} + }, + { + "request": { + "id": "example:disconnect#2", + "method": "disconnect", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "force": true + } + }, + "response": {} + } + ], + "author": [ + "Michael Hawkins <>." + ], + "see_also": [ + "lightning-connect(1)", + "lightning-listpeers(1)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-emergencyrecover.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "emergencyrecover", + "title": "Command for recovering channels from the emergency.recovery file in the lightning directory", + "description": [ + "The **emergencyrecover** RPC command fetches data from the emergency.recover file and tries to reconnect to the peer and force him to close the channel. The data in this file has enough information to reconnect and sweep the funds.", + "", + "This recovery method is not spontaneous and it depends on the peer, so it should be used as a last resort to recover the funds stored in a channel in case of severe data loss." + ], + "request": { + "required": [], + "properties": {} + }, + "response": { + "required": [ + "stubs" + ], + "properties": { + "stubs": { + "type": "array", + "items": { + "type": "hash", + "description": [ + "Channel IDs of channels successfully inserted." + ] + } + } + } + }, + "json_example": [ + { + "request": { + "id": "example:emergencyrecover#1", + "method": "emergencyrecover", + "params": "{}" + }, + "response": { + "stubs": [] + } + }, + { + "request": { + "id": "example:emergencyrecover#2", + "method": "emergencyrecover", + "params": "{}" + }, + "response": { + "stubs": [ + "c00734472f344fdadd0bf787de182e5cf144ccda5d731b0f7c75befd1f1eff52" + ] + } + } + ], + "author": [ + "Aditya <> is mainly responsible." + ], + "see_also": [ + "lightning-getsharedsecret(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-feerates.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "feerates", + "title": "Command for querying recommended onchain feerates", + "description": [ + "The **feerates** command returns the feerates that CLN will use. The feerates will be based on the recommended feerates from the backend. The backend may fail to provide estimates, but if it was able to provide estimates in the past, CLN will continue to use those for a while. CLN will also smoothen feerate estimations from the backend.", + "", + "Explorers often present fees in \"sat/vB\": 4 sat/vB is `4000perkb` or `1000perkw`.", + "", + "Bitcoin transactions have non-witness and witness bytes:", + "", + "* Non-witness bytes count as 4 weight, 1 virtual byte. All bytes other than SegWit witness count as non-witness bytes. * Witness bytes count as 1 weight, 0.25 virtual bytes.", + "", + "Thus, all *perkb* feerates will be exactly 4 times *perkw* feerates.", + "", + "To compute the fee for a transaction, multiply its weight or virtual bytes by the appropriate *perkw* or *perkw* feerate returned by this command, then divide by 1000.", + "", + "There is currently no way to change these feerates from the RPC. If you need custom control over onchain feerates, you will need to provide your own plugin that replaces the `bcli` plugin backend. For commands like lightning-withdraw(7) or lightning-fundchannel(7) you can provide a preferred feerate directly as a parameter, which will override the recommended feerates returned by **feerates**." + ], + "request": { + "required": [ + "style" + ], + "properties": { + "style": { + "type": "string", + "description": [ + "Fee rate style to use. This can be:", + " *perkw* - provide feerate in units of satoshis per 1000 weight (e.g. the minimum fee is usually `253perkw`).", + " *perkb* - provide feerate in units of satoshis per 1000 virtual bytes (eg. the minimum fee is usually `1000perkb`)." + ], + "enum": [ + "perkb", + "perkw" + ] + } + } + }, + "response": { + "required": [], + "properties": { + "warning_missing_feerates": { + "type": "string", + "description": [ + "Some fee estimates are missing." + ] + }, + "perkb": { + "type": "object", + "description": [ + "If *style* parameter was perkb." + ], + "additionalProperties": false, + "required": [ + "min_acceptable", + "max_acceptable", + "floor", + "estimates" + ], + "properties": { + "min_acceptable": { + "type": "u32", + "description": [ + "The smallest feerate that we allow peers to specify: half the 100-block estimate." + ] + }, + "max_acceptable": { + "type": "u32", + "description": [ + "The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)." + ] + }, + "floor": { + "type": "u32", + "added": "v23.05", + "description": [ + "The smallest feerate that our backend tells us it will accept (i.e. minrelayfee or mempoolminfee)." + ] + }, + "estimates": { + "type": "array", + "added": "v23.05", + "description": [ + "Feerate estimates from plugin which we are using (usuallly bcli)." + ], + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "blockcount", + "feerate", + "smoothed_feerate" + ], + "properties": { + "blockcount": { + "type": "u32", + "added": "v23.05", + "description": [ + "The number of blocks the feerate is expected to get a transaction in." + ] + }, + "feerate": { + "type": "u32", + "added": "v23.05", + "description": [ + "The feerate for this estimate, in given *style*." + ] + }, + "smoothed_feerate": { + "type": "u32", + "added": "v23.05", + "description": [ + "The feerate, smoothed over time (useful for coordinating with other nodes)." + ] + } } } + }, + "opening": { + "type": "u32", + "description": [ + "Default feerate for lightning-fundchannel(7) and lightning-withdraw(7)." + ] + }, + "mutual_close": { + "type": "u32", + "description": [ + "Feerate to aim for in cooperative shutdown. Note that since mutual close is a **negotiation**, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer." + ] + }, + "unilateral_close": { + "type": "u32", + "description": [ + "Feerate for commitment_transaction in a live channel which we originally funded." + ] + }, + "unilateral_anchor_close": { + "type": "u32", + "added": "v23.08", + "description": [ + "Feerate for commitment_transaction in a live channel which we originally funded (if anchor_outputs was negotiated)." + ] + }, + "delayed_to_us": { + "type": "u32", + "deprecated": [ + "v23.05", + "v24.05" + ], + "description": [ + "Feerate for returning unilateral close funds to our wallet." + ] + }, + "htlc_resolution": { + "type": "u32", + "deprecated": [ + "v23.05", + "v24.05" + ], + "description": [ + "Feerate for returning unilateral close HTLC outputs to our wallet." + ] + }, + "penalty": { + "type": "u32", + "description": [ + "Feerate to use when creating penalty tx for watchtowers." + ] } - }, - "fetchinvoice-noconnect": { - "type": "object", - "additionalProperties": false, - "required": [ - "set", - "source" - ], - "properties": { - "set": { - "type": "boolean", - "description": [ - "`true` if set in config or cmdline." - ] - }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - }, - "accept-htlc-tlv-types": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { - "type": "string", - "description": [ - "Field from config or cmdline, or default." - ] - }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - }, - "tor-service-password": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_str", - "source" - ], - "properties": { - "value_str": { - "type": "string", - "description": [ - "Field from config or cmdline, or default." - ] - }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } - } - }, - "announce-addr-dns": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_bool", - "source" - ], - "properties": { - "value_bool": { - "type": "boolean", - "description": [ - "Field from config or cmdline, or default." - ] - }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] + } + }, + "perkw": { + "type": "object", + "description": [ + "If *style* parameter was perkw." + ], + "additionalProperties": false, + "required": [ + "min_acceptable", + "max_acceptable", + "floor", + "estimates" + ], + "properties": { + "min_acceptable": { + "type": "u32", + "description": [ + "The smallest feerate that you can use, usually the minimum relayed feerate of the backend." + ] + }, + "max_acceptable": { + "type": "u32", + "description": [ + "The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)." + ] + }, + "floor": { + "type": "u32", + "added": "v23.05", + "description": [ + "The smallest feerate that our backend tells us it will accept (i.e. minrelayfee or mempoolminfee)." + ] + }, + "estimates": { + "type": "array", + "added": "v23.05", + "description": [ + "Feerate estimates from plugin which we are using (usuallly bcli)." + ], + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "blockcount", + "feerate", + "smoothed_feerate" + ], + "properties": { + "blockcount": { + "type": "u32", + "added": "v23.05", + "description": [ + "The number of blocks the feerate is expected to get a transaction in." + ] + }, + "feerate": { + "type": "u32", + "added": "v23.05", + "description": [ + "The feerate for this estimate, in given *style*." + ] + }, + "smoothed_feerate": { + "type": "u32", + "added": "v23.05", + "description": [ + "The feerate, smoothed over time (useful for coordinating with other nodes)." + ] + } + } } + }, + "opening": { + "type": "u32", + "description": [ + "Default feerate for lightning-fundchannel(7) and lightning-withdraw(7)." + ] + }, + "mutual_close": { + "type": "u32", + "description": [ + "Feerate to aim for in cooperative shutdown. Note that since mutual close is a **negotiation**, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer." + ] + }, + "unilateral_close": { + "type": "u32", + "description": [ + "Feerate for commitment_transaction in a live channel which we originally funded (if anchor_outputs was not negotiated)." + ] + }, + "unilateral_anchor_close": { + "type": "u32", + "added": "v23.08", + "description": [ + "Feerate for commitment_transaction in a live channel which we originally funded (if anchor_outputs was negotiated)." + ] + }, + "delayed_to_us": { + "type": "u32", + "deprecated": [ + "v23.05", + "v24.05" + ], + "description": [ + "Feerate for returning unilateral close funds to our wallet." + ] + }, + "htlc_resolution": { + "type": "u32", + "deprecated": [ + "v23.05", + "v24.05" + ], + "description": [ + "Feerate for returning unilateral close HTLC outputs to our wallet." + ] + }, + "penalty": { + "type": "u32", + "description": [ + "Feerate to use when creating penalty tx for watchtowers." + ] } - }, - "require-confirmed-inputs": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_bool", - "source" - ], - "properties": { - "value_bool": { - "type": "boolean", - "description": [ - "Field from config or cmdline, or default." - ] - }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] - } + } + }, + "onchain_fee_estimates": { + "type": "object", + "additionalProperties": false, + "required": [ + "opening_channel_satoshis", + "mutual_close_satoshis", + "unilateral_close_satoshis", + "htlc_timeout_satoshis", + "htlc_success_satoshis" + ], + "properties": { + "opening_channel_satoshis": { + "type": "u64", + "description": [ + "Estimated cost of typical channel open." + ] + }, + "mutual_close_satoshis": { + "type": "u64", + "description": [ + "Estimated cost of typical channel close." + ] + }, + "unilateral_close_satoshis": { + "type": "u64", + "description": [ + "Estimated cost of typical unilateral close (without HTLCs). If anchors are supported, this assumes a channel with anchors." + ] + }, + "unilateral_close_nonanchor_satoshis": { + "added": "v23.08", + "type": "u64", + "description": [ + "Estimated cost of non-anchor typical unilateral close (without HTLCs)." + ] + }, + "htlc_timeout_satoshis": { + "type": "u64", + "description": [ + "Estimated cost of typical HTLC timeout transaction (non-anchors)." + ] + }, + "htlc_success_satoshis": { + "type": "u64", + "description": [ + "Estimated cost of typical HTLC fulfillment transaction (non-anchors)." + ] } - }, - "commit-fee": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_int", - "source" - ], - "properties": { - "value_int": { - "type": "u64", - "description": [ - "Field from config or cmdline, or default." - ] + } + } + } + }, + "errors": [ + "The **feerates** command will never error, however some fields may be missing in the result if feerate estimates for that kind of transaction are unavailable." + ], + "notes": [ + "Many other commands have a *feerate* parameter. This can be:", + "", + "* One of the strings to use lightningd's internal estimates:", + " * *urgent* (next 6 blocks or so)", + " * *normal* (next 12 blocks or so)", + " * *slow* (next 100 blocks or so)", + " * *minimum* for the lowest value bitcoind will currently accept (added in v23.05)", + "", + "* A number, with an optional suffix:", + " * *blocks* means aim for confirmation in that many blocks (added in v23.05)", + " * *perkw* means the number is interpreted as satoshi-per-kilosipa (weight)", + " * *perkb* means it is interpreted bitcoind-style as satoshi-per-kilobyte. ", + "", + "Omitting the suffix is equivalent to *perkb*." + ], + "trivia": [ + "In C-lightning we like to call the weight unit \"sipa\" in honor of Pieter Wuille, who uses the name \"sipa\" on IRC and elsewhere. Internally we call the *perkw* style as \"feerate per kilosipa\"." + ], + "json_example": [ + { + "request": { + "id": "example:feerates#1", + "method": "feerates", + "params": { + "style": "perkw", + "urgent": null, + "normal": null, + "slow": null + } + }, + "response": { + "perkw": { + "opening": 1000000, + "mutual_close": 26362, + "unilateral_close": 26362, + "unilateral_anchor_close": 1000000, + "penalty": 26362, + "min_acceptable": 3750, + "max_acceptable": 10000000, + "floor": 253, + "estimates": [ + { + "blockcount": 2, + "feerate": 1000000, + "smoothed_feerate": 26362 }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] + { + "blockcount": 6, + "feerate": 1000000, + "smoothed_feerate": 26362 + }, + { + "blockcount": 12, + "feerate": 1000000, + "smoothed_feerate": 26362 + }, + { + "blockcount": 100, + "feerate": 1000000, + "smoothed_feerate": 26362 } - } + ] }, - "commit-feerate-offset": { - "type": "object", - "additionalProperties": false, - "required": [ - "value_int", - "source" - ], - "properties": { - "value_int": { - "type": "u32", - "description": [ - "Field from config or cmdline, or default." - ] + "onchain_fee_estimates": { + "opening_channel_satoshis": 702000, + "mutual_close_satoshis": 17741, + "unilateral_close_satoshis": 1112000, + "unilateral_close_nonanchor_satoshis": 15764, + "htlc_timeout_satoshis": 17478, + "htlc_success_satoshis": 18532 + } + } + }, + { + "request": { + "id": "example:feerates#2", + "method": "feerates", + "params": { + "style": "perkb", + "urgent": null, + "normal": null, + "slow": null + } + }, + "response": { + "perkb": { + "opening": 25000, + "mutual_close": 25000, + "unilateral_close": 44000, + "unilateral_anchor_close": 25000, + "penalty": 25000, + "min_acceptable": 12500, + "max_acceptable": 600000, + "floor": 1012, + "estimates": [ + { + "blockcount": 2, + "feerate": 60000, + "smoothed_feerate": 60000 }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting." - ] + { + "blockcount": 6, + "feerate": 44000, + "smoothed_feerate": 44000 + }, + { + "blockcount": 12, + "feerate": 25000, + "smoothed_feerate": 25000 } - } + ] + }, + "onchain_fee_estimates": { + "opening_channel_satoshis": 4387, + "mutual_close_satoshis": 4206, + "unilateral_close_satoshis": 6578, + "unilateral_close_nonanchor_satoshis": 6578, + "htlc_timeout_satoshis": 7293, + "htlc_success_satoshis": 7733 } } - }, - "# version": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "Special field indicating the current version." - ] - }, - "plugins": { - "type": "array", - "deprecated": [ - "v23.08", - "v24.02" - ], - "items": { + } + ], + "author": [ + "ZmnSCPxj <> wrote the initial version of this manpage." + ], + "see_also": [ + "lightning-parsefeerate(7)", + "lightning-fundchannel(7)", + "lightning-withdraw(7)", + "lightning-txprepare(7)", + "lightning-fundchannel_start(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-fetchinvoice.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "fetchinvoice", + "title": "Command for fetch an invoice for an offer", + "warning": "experimental-offers only", + "description": [ + "The **fetchinvoice** RPC command contacts the issuer of an *offer* to get an actual invoice that can be paid. It highlights any changes between the offer and the returned invoice.", + "", + "If **fetchinvoice-noconnect** is not specified in the configuation, it will connect to the destination in the (currently common!) case where it cannot find a route which supports `option_onion_messages`." + ], + "request": { + "required": [ + "offer" + ], + "properties": { + "offer": { + "type": "string", + "description": [ + "Offer string to get an actual invoice that can be paid." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "Required if the offer does not specify an amount at all, otherwise it is optional (but presumably if you set it to less than the offer, you will get an error from the issuer)." + ] + }, + "quantity": { + "type": "u64", + "description": [ + "Required if the offer specifies quantity_max, otherwise it is not allowed." + ] + }, + "recurrence_counter": { + "type": "u64", + "description": [ + "Required if the offer specifies recurrence, otherwise it is not allowed. recurrence_counter should first be set to 0, and incremented for each successive invoice in a given series." + ] + }, + "recurrence_start": { + "type": "number", + "description": [ + "Required if the offer specifies recurrence_base with start_any_period set, otherwise it is not allowed. It indicates what period number to start at." + ] + }, + "recurrence_label": { + "type": "string", + "description": [ + "Required if recurrence_counter is set, and otherwise is not allowed. It must be the same as prior fetchinvoice calls for the same recurrence, as it is used to link them together." + ] + }, + "timeout": { + "type": "number", + "description": [ + "If we don't get a reply before this we fail (default, 60 seconds)." + ] + }, + "payer_note": { + "type": "string", + "description": [ + "To ask the issuer to include in the fetched invoice." + ] + } + } + }, + "response": { + "required": [ + "invoice", + "changes" + ], + "properties": { + "invoice": { + "type": "string", + "description": [ + "The BOLT12 invoice we fetched." + ] + }, + "changes": { "type": "object", - "additionalProperties": false, - "required": [ - "path", - "name" - ], "description": [ - "`plugin` field from config or cmdline." + "Summary of changes from offer." ], + "additionalProperties": false, + "required": [], "properties": { - "path": { + "description_appended": { "type": "string", "description": [ - "Full path of the plugin." + "Extra characters appended to the *description* field." ] }, - "name": { + "description": { "type": "string", "description": [ - "Short name of the plugin." + "A completely replaced *description* field." ] }, - "options": { - "type": "object", - "additionalProperties": true, - "required": [], + "vendor_removed": { + "type": "string", "description": [ - "Specific options set for this plugin." - ], - "properties": {} + "The *vendor* from the offer, which is missing in the invoice." + ] + }, + "vendor": { + "type": "string", + "description": [ + "A completely replaced *vendor* field." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount, if different from the offer amount multiplied by any *quantity* (or the offer had no amount, or was not in BTC)." + ] } } - } - }, - "important-plugins": { - "type": "array", - "deprecated": [ - "v23.08", - "v24.02" - ], - "items": { + }, + "next_period": { "type": "object", + "description": [ + "Only for recurring invoices if the next period is under the *recurrence_limit*." + ], "additionalProperties": false, "required": [ - "path", - "name" - ], - "description": [ - "`important-plugin` field from config or cmdline, or built-in." + "counter", + "starttime", + "endtime", + "paywindow_start", + "paywindow_end" ], "properties": { - "path": { - "type": "string", + "counter": { + "type": "u64", "description": [ - "Full path of the plugin." + "The index of the next period to fetchinvoice." ] }, - "name": { - "type": "string", + "starttime": { + "type": "u64", "description": [ - "Short name of the plugin." + "UNIX timestamp that the next period starts." ] }, - "options": { - "type": "object", - "additionalProperties": true, - "required": [], + "endtime": { + "type": "u64", + "description": [ + "UNIX timestamp that the next period ends." + ] + }, + "paywindow_start": { + "type": "u64", + "description": [ + "UNIX timestamp of the earliest time that the next invoice can be fetched." + ] + }, + "paywindow_end": { + "type": "u64", + "description": [ + "UNIX timestamp of the latest time that the next invoice can be fetched." + ] + } + } + } + } + }, + "errors": [ + "The following error codes may occur:", + "", + "- -1: Catchall nonspecific error.", + "- 1002: Offer has expired.", + "- 1003: Cannot find a route to the node making the offer.", + "- 1004: The node making the offer returned an error message.", + "- 1005: We timed out trying to fetch an invoice." + ], + "json_example": [ + { + "request": { + "id": "example:fetchinvoice#1", + "method": "fetchinvoice", + "params": { + "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqypq5zmnd9khqmr9yp6x2um5zcssxhftzxfdlwsnfcgw2sy8t5mxa0ytcdfat2nkdwqvpy9nnsa9mzza", + "payer_note": "Thanks for the fish!" + } + }, + "response": { + "invoice": "lni1qqgvcm9h7yakcmw4mzazspu8vfgpwq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqgzpg9hx6tdwpkx2gr5v4ehg93pqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky965pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84sggren772kj8mau5jp86nc6fszx48rv7ep0quszyyls8rlld3sshjr94j9z5dpsku6mnypnx7u3qw35x2grxd9eksgdqnqp462c3jt0m5y6wzrj5pp6axehtez7r20265antsrqfpvuu8fwcshgr0tsv8e6829e8xmv7laz0kwhtlx6vtk8q3d6rtthdhtwvnn6j585szquc2t7us8kguxypzasg8ewkakgx2ny5ugks0f32x67sm9e5fms4asqrylajc2dqh8ag55mv5p5ghy3e2z8zwmllle8uu7jsxv5ke8d6rr5h7kthmz7ya0hxp4nt7elvw7vghcl6fgsuqqqqqqqqqqqqqqq9qqqqqqqqqqqqq8fykt06c5sqqqqqpfqyvhtunn4gyzy0lphn4wn6ctzlsajy46wscjcglf3hxcnvlaxqs3ydkhgaklsc42spq2czzq6a9vge9ha6zd8ppe2qsawnvm4u30p484d2we4cpsyskwwr5hvgthcyqyuen02ejwpa9cjjrttvp223yxsqkrwnlaszkhas84w0ape300ued4p75xu3cqtcg0cslsx9fvh7dhdqx565t6wa0alf6u2hug90j2hs", + "changes": {} + } + }, + { + "request": { + "id": "example:fetchinvoice#2", + "method": "fetchinvoice", + "params": { + "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqypq5zmnd9khqmr9yp6x2um5zcssxhftzxfdlwsnfcgw2sy8t5mxa0ytcdfat2nkdwqvpy9nnsa9mzza", + "amount_msat": 3 + } + }, + "response": { + "invoice": "lni1qqg0mfchkz0gkmn8zzu5zaxd0qvlzq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqgzpg9hx6tdwpkx2gr5v4ehg93pqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky965pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84yqgrtqss8d4vgzd3286u9rk0zg9qr7a6z2xm6mjnz9pydztcn0j74tjvch0f5zvqxhftzxfdlwsnfcgw2sy8t5mxa0ytcdfat2nkdwqvpy9nnsa9mzzaqth4fzjqxxmsaxvc4v2urs6hsh6k0e564x00g68vuyp5w7yjedzxvqgr8ltzmj0n7ltxr0tz9rafn9zcy9jldjqfuf20w6gjmr7nj04d360sqvkdwprxn22dlp3xay9yq4nhrw2jm0c8t6r7japhdad6leawxyqzkg92tx8gqxp9f2d8j5k2axta0gr7yr9zrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3ja0jwj4qswt3kgs9mxq7gck66x60m5rndykpw3a7hf4ntlp9qe2vgwzzrvcwd2qypmqggrt543ryklhgf5uy89gzr46dnwhj9ux5744fmxhqxqjzeecwja3pwlqsxyjcdwur4hl4qf7nsjgg8euvy45lznufh5kydkwz6llsucuhvwp9ezeggaj3k057ge6ftvaffjkwn6j3y7faeuysrx3m2xccphu65sx", + "changes": {} + } + }, + { + "request": { + "id": "example:fetchinvoice#3", + "method": "fetchinvoice", + "params": { + "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqypq5zmnd9khqmr9yp6x2um5zsqs593pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j", + "quantity": 2 + } + }, + "response": { + "invoice": "lni1qqgd508mv9rpjg2ec8dr8qcslf2cjq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqgzpg9hx6tdwpkx2gr5v4ehg9qppgtzzq3dygmzpg6e53ll0aavg37gt3rvjg762vufygdqq4xprs0regcat9gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02cqsykppqfkyy6q8ry9pchxtuajh456hhcf7dxx733cx76etuv5ftfmfa2ymhgycqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jq6uhkeymz26zx7zgw4gdmw2vj9xqn4hu2sqxhp0pcgt87pf9chyfvqsywtejxjh603kx7am3zaf6d6xuumw30p8zmcdz7r95nn4lr92exk3qqe2x6xqwpdzh2zwq3vnyra8nfc6d7y6hegpkvc7p2nulj7hvhwl5hjfr23wn60mjftqspn7d4ejhrpsr5m2y8qqqqqqqqqqqqqqqpgqqqqqqqqqqqqp6f9jm7k9yqqqqqq2gpr96l9mt2pqxuyr0gqw92h0xz2y2uy5uxss4ujcac5jehj9ay2sxkapr80t5ha65qgykqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pqxhl4u29cjluw5s8fwa9wtvh0qytr7vqk0vtndsz07mrrtmjw629m8mnqkjaf43kt889qeq2f7deu6t853lngpzclapt8nj0g528v9ay", + "changes": {} + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-sendinvoice(7)", + "lightning-pay(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-fundchannel.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "fundchannel", + "title": "Command for establishing a lightning channel", + "description": [ + "The **fundchannel** RPC command opens a payment channel with a peer by committing a funding transaction to the blockchain as defined in BOLT #2.", + "", + "If not already connected, **fundchannel** will automatically attempt to connect if Core Lightning knows a way to contact the node (either from normal gossip, or from a previous **connect** call).", + "", + "This auto-connection can fail if Core Lightning does not know how to contact the target node; see lightning-connect(7).", + "", + "Once the transaction is confirmed, normal channel operations may begin. Readiness is indicated by **listpeers** reporting a *state* of `CHANNELD_NORMAL` for the channel." + ], + "request": { + "required": [ + "id", + "amount" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "Id is the peer id obtained from connect." + ] + }, + "amount": { + "type": "msat_or_all", + "description": [ + "The amount in satoshis taken from the internal wallet to fund the channel (but if we have any anchor channels, this will always leave at least `min-emergency- msat` as change). The string *all* can be used to specify all available funds (or 16777215 satoshi if more is available and large channels were not negotiated with the peer). Otherwise, it is in satoshi precision; it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*. The value cannot be less than the dust limit, currently set to 546, nor more than 16777215 satoshi (unless large channels were negotiated with the peer)." + ] + }, + "feerate": { + "type": "feerate", + "description": [ + "Used for the opening transaction and (unless *option_anchors_zero_fee_htlc_tx* is negotiated), as initial feerate for commitment and HTLC transactions (see NOTES in lightning-feerates(7))." + ], + "default": "*normal*" + }, + "announce": { + "type": "boolean", + "description": [ + "Whether to announce this channel or not. An unannounced channel is considered private." + ], + "default": "True" + }, + "minconf": { + "type": "u32", + "description": [ + "The minimum number of confirmations that used outputs should have." + ], + "default": "1" + }, + "push_msat": { + "type": "msat", + "description": [ + "The amount of millisatoshis to push to the channel peer at open. Note that this is a gift to the peer -- these satoshis are added to the initial balance of the peer at channel start and are largely unrecoverable once pushed." + ] + }, + "close_to": { + "type": "string", + "description": [ + "A Bitcoin address to which the channel funds should be sent to on close. Only valid if both peers have negotiated `option_upfront_shutdown_script`. Returns `close_to` set to closing script iff is negotiated." + ] + }, + "request_amt": { + "type": "msat", + "description": [ + "An amount of liquidity you'd like to lease from the peer. If peer supports `option_will_fund`, indicates to them to include this much liquidity into the channel. Must also pass in *compact_lease*." + ] + }, + "compact_lease": { + "type": "string", + "description": [ + "A compact representation of the peer's expected channel lease terms. If the peer's terms don't match this set, we will fail to open the channel." + ] + }, + "utxos": { + "type": "array", + "description": [ + "The utxos to be used to fund the channel, as an array of `txid:vout`." + ], + "items": { + "type": "outpoint" + } + }, + "mindepth": { + "description": [ + "Number of confirmations required before we consider the channel active." + ], + "type": "u32" + }, + "reserve": { + "type": "msat", + "description": [ + "The amount we want the peer to maintain on its side of the channel. It can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*." + ], + "default": "1% of the funding amount" + }, + "channel_type": { + "added": "v24.02", + "type": "array", + "items": { + "type": "u32", + "description": [ + "Represents the explicit channel type to request. There is currently no sanity checking on this value so if you use strange values and your channel breaks, you get to keep both pieces. BOLT 2 defines the following value types:", + "```", + "The currently defined basic types are:", + " - no features (no bits set).", + " - `option_static_remotekey` (bit 12).", + " - `option_anchor_outputs` and `option_static_remotekey` (bits 20 and 12).", + " - `option_anchors_zero_fee_htlc_tx` and `option_static_remotekey` (bits 22 and 12).", + "", + "Each basic type has the following variations allowed:", + " - `option_scid_alias` (bit 46).", + " - `option_zeroconf` (bit 50).", + "```" + ] + } + } + } + }, + "response": { + "required": [ + "tx", + "txid", + "outnum", + "channel_type", + "channel_id" + ], + "properties": { + "tx": { + "type": "hex", + "description": [ + "The raw transaction which funded the channel." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The txid of the transaction which funded the channel." + ] + }, + "outnum": { + "type": "u32", + "description": [ + "The 0-based output index showing which output funded the channel." + ] + }, + "channel_id": { + "type": "hash", + "description": [ + "The channel_id of the resulting channel." + ] + }, + "channel_type": { + "type": "object", + "description": [ + "Channel_type as negotiated with peer." + ], + "added": "v24.02", + "additionalProperties": false, + "required": [ + "bits", + "names" + ], + "properties": { + "bits": { + "type": "array", + "description": [ + "Each bit set in this channel_type." + ], + "added": "v24.02", + "items": { + "type": "u32", + "description": [ + "Bit number." + ] + } + }, + "names": { + "type": "array", "description": [ - "Specific options set for this plugin." + "Feature name for each bit set in this channel_type." ], - "properties": {} + "added": "v24.02", + "items": { + "type": "string", + "enum": [ + "static_remotekey/even", + "anchor_outputs/even", + "anchors_zero_fee_htlc_tx/even", + "scid_alias/even", + "zeroconf/even" + ], + "description": [ + "Name of feature bit." + ] + } } } - } - }, - "conf": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`conf` field from cmdline, or default." - ] - }, - "lightning-dir": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`lightning-dir` field from config or cmdline, or default." - ] - }, - "network": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`network` field from config or cmdline, or default." - ] - }, - "allow-deprecated-apis": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`allow-deprecated-apis` field from config or cmdline, or default." - ] - }, - "rpc-file": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`rpc-file` field from config or cmdline, or default." - ] - }, - "disable-plugin": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "array", - "items": { - "type": "string", + }, + "close_to": { + "type": "hex", + "description": [ + "The raw scriptPubkey which mutual close will go to; only present if *close_to* parameter was specified and peer supports `option_upfront_shutdown_script`." + ] + }, + "mindepth": { + "type": "u32", "description": [ - "`disable-plugin` field from config or cmdline." + "Number of confirmations before we consider the channel active." ] } + } + }, + "example_usage": [ + "This example shows how to use lightning-cli to open new channel with peer 03f...fc1 from one whole utxo bcc1...39c:0 (you can use **listfunds** command to get txid and vout):", + "", + "```shell", + "lightning-cli -k fundchannel id=03f...fc1 amount=all feerate=normal utxos='[\"bcc1...39c:0\"]'", + "```" + ], + "json_example": [ + { + "request": { + "id": "example:fundchannel#1", + "method": "fundchannel", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "amount": 1000000, + "feerate": null, + "announce": true, + "minconf": null, + "utxos": null, + "push_msat": null, + "close_to": null, + "request_amt": null, + "compact_lease": null, + "mindepth": null, + "reserve": null + } + }, + "response": { + "tx": "020000000001014ca47b75e6982fce6b5ebb6e7ec163dc5b6bed1562934e6febe816103b2b207e0000000000fdffffff0240420f00000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd012f0f000000000022512063ffee4ea7d51e6cadf9086e286a2527922aaa25b8c53aebf32fa32a0a627f5a02473044022058fc4d51c8254d37b266d3db3f8fda7420882b6ec9226d66b8c0139f2707c09602205798d8ce23d4c692a7384362a2e0afd9703f062239a786d7a1840a28d3a1152e012103d745445c9362665f22e0d96e9e766f273f3260dea39c8a76bfa05dd2684ddccf66000000", + "txid": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b", + "channel_id": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", + "outnum": 0 + } }, - "bookkeeper-dir": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`bookkeeper-dir` field from config or cmdline, or default." - ] - }, - "bookkeeper-db": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`bookkeeper-db` field from config or cmdline, or default." - ] - }, - "always-use-proxy": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`always-use-proxy` field from config or cmdline, or default." - ] - }, - "daemon": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`daemon` field from config or cmdline, or default." - ] - }, - "wallet": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`wallet` field from config or cmdline default." - ] - }, - "large-channels": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`large-channels` field from config or cmdline, or default." - ] - }, - "experimental-dual-fund": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`experimental-dual-fund` field from config or cmdline, or default." - ] - }, - "experimental-splicing": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`experimental-splicing` field from config or cmdline, or default." - ] - }, - "experimental-onion-messages": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`experimental-onion-messages` field from config or cmdline, or default." - ] - }, - "experimental-offers": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`experimental-offers` field from config or cmdline, or default." - ] - }, - "experimental-shutdown-wrong-funding": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`experimental-shutdown-wrong-funding` field from config or cmdline, or default." - ] - }, - "experimental-peer-storage": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "added": "v23.02", - "description": [ - "`experimental-peer-storage` field from config or cmdline, or default." - ] - }, - "experimental-quiesce": { - "type": "boolean", - "added": "v23.08", - "deprecated": [ - "v23.08", - "v24.02" - ], - "description": [ - "`experimental-quiesce` field from config or cmdline, or default." - ] - }, - "experimental-upgrade-protocol": { - "type": "boolean", - "added": "v23.08", - "deprecated": [ - "v23.08", - "v24.02" - ], - "description": [ - "`experimental-upgrade-protocol` field from config or cmdline, or default." - ] - }, - "invoices-onchain-fallback": { - "type": "boolean", - "added": "v23.11", - "description": [ - "`invoices-onchain-fallback` field from config or cmdline, or default." - ] - }, - "database-upgrade": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`database-upgrade` field from config or cmdline." - ] - }, - "rgb": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "hex", - "description": [ - "`rgb` field from config or cmdline, or default." - ], - "maxLength": 6, - "minLength": 6 - }, - "alias": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`alias` field from config or cmdline, or default." - ] - }, - "pid-file": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`pid-file` field from config or cmdline, or default." - ] - }, - "ignore-fee-limits": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`ignore-fee-limits` field from config or cmdline, or default." - ] - }, - "watchtime-blocks": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "u32", - "description": [ - "`watchtime-blocks` field from config or cmdline, or default." - ] - }, - "max-locktime-blocks": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "u32", - "description": [ - "`max-locktime-blocks` field from config or cmdline, or default." - ] - }, - "funding-confirms": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "u32", - "description": [ - "`funding-confirms` field from config or cmdline, or default." - ] - }, - "cltv-delta": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "u32", - "description": [ - "`cltv-delta` field from config or cmdline, or default." - ] - }, - "cltv-final": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "u32", - "description": [ - "`cltv-final` field from config or cmdline, or default." - ] - }, - "commit-time": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "u32", - "description": [ - "`commit-time` field from config or cmdline, or default." - ] - }, - "fee-base": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "u32", - "description": [ - "`fee-base` field from config or cmdline, or default." - ] - }, - "rescan": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "integer", - "description": [ - "`rescan` field from config or cmdline, or default." - ] - }, - "fee-per-satoshi": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "u32", - "description": [ - "`fee-per-satoshi` field from config or cmdline, or default." - ] - }, - "max-concurrent-htlcs": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "u32", - "description": [ - "`max-concurrent-htlcs` field from config or cmdline, or default." - ] - }, - "htlc-minimum-msat": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "msat", - "description": [ - "`htlc-minimum-msat` field from config or cmdline, or default." - ] - }, - "htlc-maximum-msat": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "msat", - "description": [ - "`htlc-maximum-msat` field from config or cmdline, or default." - ] - }, - "max-dust-htlc-exposure-msat": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "msat", - "description": [ - "`max-dust-htlc-exposure-mast` field from config or cmdline, or default." - ] - }, - "min-capacity-sat": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "u64", - "description": [ - "`min-capacity-sat` field from config or cmdline, or default." - ] - }, - "addr": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`addr` field from config or cmdline (can be more than one)." - ] - }, - "announce-addr": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`announce-addr` field from config or cmdline (can be more than one)." - ] - }, - "bind-addr": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`bind-addr` field from config or cmdline (can be more than one)." - ] - }, - "offline": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`true` if `offline` was set in config or cmdline." - ] - }, - "autolisten": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`autolisten` field from config or cmdline, or default." - ] - }, - "proxy": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`proxy` field from config or cmdline, or default." - ] - }, - "disable-dns": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`true` if `disable-dns` was set in config or cmdline." - ] - }, - "announce-addr-discovered": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`true`/`false`/`auto` depending on how `announce-addr-discovered` was set in config or cmdline." - ], - "added": "v23.02" - }, - "announce-addr-discovered-port": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "integer", - "description": [ - "Sets the announced TCP port for dynamically discovered IPs." - ], - "added": "v23.02" - }, - "encrypted-hsm": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`true` if `encrypted-hsm` was set in config or cmdline." - ] + { + "request": { + "id": "example:fundchannel#2", + "method": "fundchannel", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "amount": 10000000, + "feerate": null, + "announce": true, + "minconf": null, + "utxos": null, + "push_msat": 1000000000, + "close_to": null, + "request_amt": null, + "compact_lease": null, + "mindepth": null, + "reserve": null, + "channel_type": null + } + }, + "response": { + "tx": "0200000000010141cfa0e9957c7c6d0bb5069d92937f9545e6e6ee9b4650f47f509d5ea65df4690100000000fdffffff0280969800000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd4118530b0000000022512063ffee4ea7d51e6cadf9086e286a2527922aaa25b8c53aebf32fa32a0a627f5a0247304402206488c7dfbc4180781ed0d5ca7ff2c8ce134480c349d03978765053a393229d9a022066c75dee1f19b410ea1c7756d0cb2c097e52b13f4d9bbd033efa4ed95d817e14012103d745445c9362665f22e0d96e9e766f273f3260dea39c8a76bfa05dd2684ddccf66000000", + "txid": "6aa1231b6356777468a55aea1f49dad6415592aef6c1e652f8a64357c7235301", + "channel_id": "015323c75743a6f852e6c1f6ae925541d6da491fea5aa568747756631b23a16a", + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors_zero_fee_htlc_tx/even" + ] + }, + "outnum": 0 + } + } + ], + "errors": [ + "The following error codes may occur:", + "", + "- -1: Catchall nonspecific error.", + "- 300: The maximum allowed funding amount is exceeded.", + "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", + "- 302: The output amount is too small, and would be considered dust.", + "- 303: Broadcasting of the funding transaction failed, the internal call to bitcoin-cli returned with an error.", + "- 313: The `min-emergency-msat` reserve not be preserved (and we have or are opening anchor channels).", + "", + "Failure may also occur if **lightningd** and the peer cannot agree on channel parameters (funding limits, channel reserves, fees, etc.)." + ], + "see_also": [ + "lightning-connect(7)", + "lightning-listfunds()", + "lightning-listpeers(7)", + "lightning-feerates(7)", + "lightning-multifundchannel(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-fundchannel_cancel.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "fundchannel_cancel", + "title": "Command for completing channel establishment", + "description": [ + "`fundchannel_cancel` is a lower level RPC command. It allows channel opener to cancel a channel before funding broadcast with a connected peer.", + "", + "Note that the funding transaction MUST NOT be broadcast before `fundchannel_cancel`. Broadcasting transaction before `fundchannel_cancel` WILL lead to unrecoverable loss of funds.", + "", + "If `fundchannel_cancel` is called after `fundchannel_complete`, the remote peer may disconnect when command succeeds. In this case, user need to connect to remote peer again before opening channel." + ], + "request": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "Node id of the remote peer with which to cancel." + ] + } + } + }, + "response": { + "required": [ + "cancelled" + ], + "properties": { + "cancelled": { + "type": "string", + "description": [ + "A message indicating it was cancelled by RPC." + ] + } + } + }, + "json_example": [ + { + "request": { + "id": "example:fundchannel_cancel#1", + "method": "fundchannel_cancel", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + } + }, + "response": { + "cancelled": "Channel open canceled by RPC" + } }, - "rpc-file-mode": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`rpc-file-mode` field from config or cmdline, or default." - ] + { + "request": { + "id": "example:fundchannel_cancel#2", + "method": "fundchannel_cancel", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + } + }, + "response": { + "cancelled": "Channel open canceled by RPC(after fundchannel_complete)" + } + } + ], + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong.", + "- 306: Unknown peer id.", + "- 307: No channel currently being funded that can be cancelled.", + "- 308: It is unsafe to cancel the channel: the funding transaction has been broadcast, or there are HTLCs already in the channel, or the peer was the initiator and not us." + ], + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-connect(7)", + "lightning-fundchannel(7)", + "lightning-multifundchannel(7)", + "lightning-fundchannel_start(7)", + "lightning-fundchannel_complete(7)", + "lightning-openchannel_init(7)", + "lightning-openchannel_update(7)", + "lightning-openchannel_signed(7)", + "lightning-openchannel_abort(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-fundchannel_complete.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "fundchannel_complete", + "title": "Command for completing channel establishment", + "description": [ + "`fundchannel_complete` is a lower level RPC command. It allows a user to complete an initiated channel establishment with a connected peer.", + "", + "Note that the funding transaction MUST NOT be broadcast until after channel establishment has been successfully completed, as the commitment transactions for this channel are not secured until this command successfully completes. Broadcasting transaction before can lead to unrecoverable loss of funds." + ], + "request": { + "required": [ + "id", + "psbt" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "Node id of the remote peer." + ] + }, + "psbt": { + "type": "string", + "description": [ + "Transaction to use for funding (does not need to be signed but must be otherwise complete)." + ] + } + } + }, + "response": { + "required": [ + "channel_id", + "commitments_secured" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "The channel_id of the resulting channel." + ] + }, + "commitments_secured": { + "type": "boolean", + "enum": [ + true + ], + "description": [ + "Indication that channel is safe to use." + ] + } + } + }, + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong.", + "- -1: Catchall nonspecific error.", + "- 305: Peer is not connected.", + "- 306: Unknown peer id.", + "- 309: PSBT does not have a unique, correct output to fund the channel." + ], + "json_example": [ + { + "request": { + "id": "example:fundchannel_complete#1", + "method": "fundchannel_complete", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "psbt": "cHNidP8BAIkCAAAAASYd4TeOHEIzrUbbELM2DK0IX09WaXqWsJFlLD455MPPAAAAAAD9////Av///wAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM1c8QUpAQAAACJRIH8AZYBKMKON4/oVmJVsVt6zy/+PkBPzziE+LtkuFvWXAAAAAAABAIMCAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////wJRAP////8CAPIFKgEAAAAWABQ5FIjuMd8ar9WFRV9eGNLF+3RMcAAAAAAAAAAAJmokqiGp7eL2HD9x0d79P6mZ36NpU3VcaQaJeZlitIvr2DaXToz5AAAAAAEBHwDyBSoBAAAAFgAUORSI7jHfGq/VhUVfXhjSxft0THAiBgMegIxEPDa2OseVTaV6ANtSwQuoj/j2an7X/Is2EekvWBhhFDNgVAAAgAEAAIAAAACAAAAAAAAAAAAAAAEFIEm9AFgqUlJwbPFtyt3a9dzvb+nAGZiQ3CT1CImhjBFpIQdJvQBYKlJScGzxbcrd2vXc72/pwBmYkNwk9QiJoYwRaRkAYRQzYFYAAIABAACAAAAAgAEAAAAAAAAAAA==" + } + }, + "response": { + "channel_id": "049217e5035a4a60449c6382c445b5c105bd63588d66137ad0511c57a16db6d9", + "commitments_secured": true + } + } + ], + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-connect(7)", + "lightning-fundchannel(7)", + "lightning-multifundchannel(7)", + "lightning-fundchannel_start(7)", + "lightning-fundchannel_cancel(7)", + "lightning-openchannel_init(7)", + "lightning-openchannel_update(7)", + "lightning-openchannel_signed(7)", + "lightning-openchannel_bump(7)", + "lightning-openchannel_abort(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-fundchannel_start.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "fundchannel_start", + "title": "Command for initiating channel establishment for a lightning channel", + "description": [ + "`fundchannel_start` is a lower level RPC command. It allows a user to initiate channel establishment with a connected peer.", + "", + "Note that the funding transaction MUST NOT be broadcast until after channel establishment has been successfully completed by running `fundchannel_complete`, as the commitment transactions for this channel are not secured until the complete command succeeds. Broadcasting transaction before that can lead to unrecoverable loss of funds." + ], + "request": { + "required": [ + "id", + "amount" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "The peer id obtained from connect." + ] + }, + "amount": { + "type": "msat", + "description": [ + "Satoshi value that the channel will be funded at. This value MUST be accurate, otherwise the negotiated commitment transactions will not encompass the correct channel value." + ] + }, + "feerate": { + "type": "feerate", + "description": [ + "Feerate for subsequent commitment transactions: see **fundchannel**. Note that this is ignored for channels with *option_anchors_zero_fee_htlc_tx* (we always use a low commitment fee for these)." + ] + }, + "announce": { + "type": "boolean", + "description": [ + "Whether or not to announce this channel." + ] + }, + "close_to": { + "type": "string", + "description": [ + "Bitcoin address to which the channel funds should be sent to on close. Only valid if both peers have negotiated `option_upfront_shutdown_script`. Returns `close_to` set to closing script iff is negotiated." + ] + }, + "push_msat": { + "type": "msat", + "description": [ + "Amount of millisatoshis to push to the channel peer at open. Note that this is a gift to the peer -- these satoshis are added to the initial balance of the peer at channel start and are largely unrecoverable once pushed." + ] + }, + "mindepth": { + "type": "u32", + "description": [ + "Number of confirmations required before we consider the channel active." + ] + }, + "reserve": { + "type": "msat", + "description": [ + "The amount we want the peer to maintain on its side." + ] + }, + "channel_type": { + "type": "array", + "description": [ + "Each bit set in this channel_type." + ], + "items": { + "type": "u32", + "description": [ + "Bit number." + ] + } + } }, - "log-level": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`log-level` field from config or cmdline, or default." + "pairedWith": [ + [ + "feerate", + "announce", + "close_to", + "push_msat", + "channel_type", + "mindepth", + "reserve" ] + ] + }, + "response": { + "required": [ + "funding_address", + "scriptpubkey", + "warning_usage" + ], + "properties": { + "funding_address": { + "type": "string", + "description": [ + "The address to send funding to for the channel. DO NOT SEND COINS TO THIS ADDRESS YET." + ] + }, + "scriptpubkey": { + "type": "hex", + "description": [ + "The raw scriptPubkey for the address." + ] + }, + "channel_type": { + "type": "object", + "description": [ + "Channel_type as negotiated with peer." + ], + "added": "v24.02", + "additionalProperties": false, + "required": [ + "bits", + "names" + ], + "properties": { + "bits": { + "type": "array", + "added": "v24.02", + "description": [ + "Each bit set in this channel_type." + ], + "items": { + "type": "u32", + "description": [ + "Bit number." + ] + } + }, + "names": { + "type": "array", + "description": [ + "Feature name for each bit set in this channel_type." + ], + "added": "v24.02", + "items": { + "type": "string", + "enum": [ + "static_remotekey/even", + "anchor_outputs/even", + "anchors_zero_fee_htlc_tx/even", + "scid_alias/even", + "zeroconf/even" + ], + "description": [ + "Name of feature bit." + ] + } + } + } + }, + "close_to": { + "type": "hex", + "description": [ + "The raw scriptPubkey which mutual close will go to; only present if *close_to* parameter was specified and peer supports `option_upfront_shutdown_script`." + ] + }, + "warning_usage": { + "type": "string", + "description": [ + "A warning not to prematurely broadcast the funding transaction (always present!)." + ] + }, + "mindepth": { + "type": "u32", + "description": [ + "Number of confirmations before we consider the channel active." + ] + } + } + }, + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong.", + "- -1: Catchall nonspecific error.", + "- 300: The amount exceeded the maximum configured funding amount.", + "- 301: The provided `push_msat` is greater than the provided `amount`.", + "- 304: Still syncing with bitcoin network", + "- 305: Peer is not connected.", + "- 306: Unknown peer id.", + "- 312: Peer negotiated `option_dual_fund`, must use `openchannel_init` not `fundchannel_start`. (Only if ``experimental-dual-fund` is enabled)" + ], + "json_example": [ + { + "request": { + "id": "example:fundchannel_start#1", + "method": "fundchannel_start", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "amount": 16777216, + "feerate": null, + "announce": true, + "close_to": null, + "mindepth": null + } + }, + "response": { + "funding_address": "bcrt1qtwxd8wg5eanumk86vfeujvp48hfkgannf77evggzct048wggsrxsum2pmm", + "scriptpubkey": "00205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd", + "warning_usage": "The funding transaction MUST NOT be broadcast until after channel establishment has been successfully completed by running `fundchannel_complete`" + } }, - "log-prefix": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`log-prefix` field from config or cmdline, or default." - ] + { + "request": { + "id": "example:fundchannel_start#2", + "method": "fundchannel_start", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "amount": "100000sat", + "feerate": null, + "announce": true, + "close_to": null, + "mindepth": null, + "channel_type": null + } + }, + "response": { + "funding_address": "bcrt1qtwxd8wg5eanumk86vfeujvp48hfkgannf77evggzct048wggsrxsum2pmm", + "scriptpubkey": "00205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd", + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors_zero_fee_htlc_tx/even" + ] + }, + "warning_usage": "The funding transaction MUST NOT be broadcast until after channel establishment has been successfully completed by running `fundchannel_complete`" + } + } + ], + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-connect(7)", + "lightning-fundchannel(7)", + "lightning-multifundchannel(7)", + "lightning-fundchannel_complete(7)", + "lightning-fundchannel_cancel(7)", + "lightning-openchannel_init(7)", + "lightning-openchannel_update(7)", + "lightning-openchannel_signed(7)", + "lightning-openchannel_bump(7)", + "lightning-openchannel_abort(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-funderupdate.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "funderupdate", + "title": "Command for adjusting node funding v2 channels", + "description": [ + "NOTE: Must have --experimental-dual-fund enabled for these settings to take effect.", + "", + "For channel open requests using dual funding.", + "", + "Note: to maximize channel leases, best policy setting is (match, 100).", + "", + "Setting any of the 5 options from *lease_fee_base_msat*, *lease_fee_basis*, *funding_weight*, *channel_fee_max_base_msat* and, *channel_fee_max_proportional_thousandths* will activate channel leases for this node, and advertise these values via the lightning gossip network. If any one is set, the other values will be the default." + ], + "request": { + "required": [], + "properties": { + "policy": { + "type": "string", + "enum": [ + "match", + "available", + "fixed" + ], + "description": [ + "Funder plugin will use to decide how much capital to commit to a v2 open channel request.", + "There are three policy options, detailed below:", + " * `match` -- Contribute *policy_mod* percent of their requested funds. Valid *policy_mod* values are 0 to 200. If this is a channel lease request, we match based on their requested funds. If it is not a channel lease request (and *lease_only* is false), then we match their funding amount. Note: any lease match less than 100 will likely fail, as clients will not accept a lease less than their request.", + " * `available` -- Contribute *policy_mod* percent of our available node wallet funds. Valid *policy_mod* values are 0 to 100.", + " * `fixed` -- Contributes a fixed *policy_mod* sats to v2 channel open requests." + ], + "default": "fixed" + }, + "policy_mod": { + "type": "sat", + "description": [ + "Number or 'modification' to apply to the policy." + ], + "default": "0sats" + }, + "leases_only": { + "type": "boolean", + "description": [ + "Only contribute funds to `option_will_fund` requests which pay to lease funds. It will fund any v2 open request using *policy* even if it's they're not seeking to lease funds. Note that `option_will_fund` commits funds for 4032 blocks (~1mo). Must also set *lease_fee_base_msat*, *lease_fee_basis*, *funding_weight*, *channel_fee_max_base_msat*, and *channel_fee_max_proportional_thousandths* to advertise available channel leases." + ], + "default": "False" + }, + "min_their_funding_msat": { + "type": "msat", + "description": [ + "Minimum funding sats that we require in order to activate our contribution policy to the v2 open." + ], + "default": "10k sats" + }, + "max_their_funding_msat": { + "type": "msat", + "description": [ + "Maximum funding sats that we will consider to activate our contribution policy to the v2 open. Any channel open above this will not be funded." + ], + "default": "no max (`UINT_MAX`)" + }, + "per_channel_min_msat": { + "type": "msat", + "description": [ + "Minimum amount that we will contribute to a channel open." + ], + "default": "10k sats" + }, + "per_channel_max_msat": { + "type": "msat", + "description": [ + "Maximum amount that we will contribute to a channel open." + ], + "default": "no max (`UINT_MAX`)" + }, + "reserve_tank_msat": { + "type": "msat", + "description": [ + "Amount of sats to leave available in the node wallet." + ], + "default": "zero sats" + }, + "fuzz_percent": { + "type": "u32", + "description": [ + "A percentage to fuzz the resulting contribution amount by. Valid values are 0 to 100. Note that turning this on with (match, 100) policy will randomly fail `option_will_fund` leases, as most clients expect an exact or greater match of their `requested_funds`." + ], + "default": "0% (no fuzz)" + }, + "fund_probability": { + "type": "u32", + "description": [ + "The percent of v2 channel open requests to apply our policy to. Valid values are integers from 0 (fund 0% of all open requests) to 100 (fund every request). Useful for randomizing opens that receive funds. Useful for randomizing opens that receive funds." + ], + "default": "100" + }, + "lease_fee_base_msat": { + "type": "msat", + "description": [ + "Flat fee for a channel lease. Node will receive this much extra added to their channel balance, paid by the opening node. Note that the minimum is 1sat." + ], + "default": "2k sats" + }, + "lease_fee_basis": { + "type": "u32", + "description": [ + "A basis fee that's calculated as 1/10k of the total requested funds the peer is asking for. Node will receive the total of *lease_fee_basis* times requested funds / 10k satoshis added to their channel balance, paid by the opening node." + ], + "default": "0.65% (65 basis points)" + }, + "funding_weight": { + "type": "u32", + "description": [ + "To calculate the fee the peer will compensate your node for its contributing inputs to the funding transaction. The total fee is calculated as the `open_channel2`.`funding_feerate_perkw` times this *funding_weight* divided by 1000. Node will have this funding fee added to their channel balance, paid by the opening node." + ], + "default": "2 inputs + 1 P2WPKH output" + }, + "channel_fee_max_base_msat": { + "type": "msat", + "description": [ + "A commitment to a maximum `channel_fee_base_msat` that your node will charge for routing payments over this leased channel during the lease duration." + ], + "default": "5k sats" + }, + "channel_fee_max_proportional_thousandths": { + "type": "u32", + "description": [ + "A commitment to a maximum `channel_fee_proportional_millionths` that your node will charge for routing payments over this leased channel during the lease duration. Note that it's denominated in 'thousandths'. A setting of `1` is equal to 1k ppm; `5` is 5k ppm, etc." + ], + "default": "100 (100k ppm)" + }, + "compact_lease": { + "type": "hex", + "description": [ + "A compact description of the channel lease params. When opening a channel, passed in to `fundchannel` to indicate the terms we expect from the peer." + ] + } + } + }, + "response": { + "required": [ + "summary", + "policy", + "policy_mod", + "leases_only", + "min_their_funding_msat", + "max_their_funding_msat", + "per_channel_min_msat", + "per_channel_max_msat", + "reserve_tank_msat", + "fuzz_percent", + "fund_probability" + ], + "properties": { + "summary": { + "type": "string", + "description": [ + "Summary of the current funding policy e.g. (match 100)." + ] + }, + "policy": { + "type": "string", + "enum": [ + "match", + "available", + "fixed" + ], + "description": [ + "Policy funder plugin will use to decide how much capital to commit to a v2 open channel request." + ] + }, + "policy_mod": { + "type": "u32", + "description": [ + "The *policy_mod* is the number or 'modification' to apply to the policy." + ] + }, + "leases_only": { + "type": "boolean", + "description": [ + "Only contribute funds to `option_will_fund` lease requests." + ] + }, + "min_their_funding_msat": { + "type": "msat", + "description": [ + "The minimum funding sats that we require from peer to activate our funding policy." + ] + }, + "max_their_funding_msat": { + "type": "msat", + "description": [ + "The maximum funding sats that we'll allow from peer to activate our funding policy." + ] + }, + "per_channel_min_msat": { + "type": "msat", + "description": [ + "The minimum amount that we will fund a channel open with." + ] + }, + "per_channel_max_msat": { + "type": "msat", + "description": [ + "The maximum amount that we will fund a channel open with." + ] + }, + "reserve_tank_msat": { + "type": "msat", + "description": [ + "Amount of sats to leave available in the node wallet." + ] + }, + "fuzz_percent": { + "type": "u32", + "description": [ + "Percentage to fuzz our funding amount by." + ] + }, + "fund_probability": { + "type": "u32", + "description": [ + "Percent of opens to consider funding. 100 means we'll consider funding every requested open channel request." + ] + }, + "lease_fee_base_msat": { + "type": "msat", + "description": [ + "Flat fee to charge for a channel lease." + ] + }, + "lease_fee_basis": { + "type": "u32", + "description": [ + "Proportional fee to charge for a channel lease, calculated as 1/10,000th of requested funds." + ] + }, + "funding_weight": { + "type": "u32", + "description": [ + "Transaction weight the channel opener will pay us for a leased funding transaction." + ] + }, + "channel_fee_max_base_msat": { + "type": "msat", + "description": [ + "Maximum channel_fee_base_msat we'll charge for routing funds leased on this channel." + ] + }, + "channel_fee_max_proportional_thousandths": { + "type": "u32", + "description": [ + "Maximum channel_fee_proportional_millitionths we'll charge for routing funds leased on this channel, in thousandths." + ] + }, + "compact_lease": { + "type": "hex", + "description": [ + "Compact description of the channel lease parameters." + ] + } + } + }, + "errors": [ + "The following error code may occur:", + "", + "- -32602: If the given parameters are invalid." + ], + "json_example": [ + { + "request": { + "id": "example:funderupdate#1", + "method": "funderupdate", + "params": "{}" + }, + "response": { + "summary": "match (100%)", + "policy": "match", + "policy_mod": 100, + "leases_only": true, + "min_their_funding_msat": 10000000, + "max_their_funding_msat": 4294967295000, + "per_channel_min_msat": 10000000, + "per_channel_max_msat": 4294967295000, + "reserve_tank_msat": 0, + "fuzz_percent": 0, + "fund_probability": 100, + "lease_fee_base_msat": 100000, + "lease_fee_basis": 100, + "funding_weight": 666, + "channel_fee_max_base_msat": 5000000, + "channel_fee_max_proportional_thousandths": 100, + "compact_lease": "029a00640064000000644c4b40" + } }, - "log-file": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`log-file` field from config or cmdline, or default." - ] + { + "request": { + "id": "example:funderupdate#2", + "method": "funderupdate", + "params": { + "policy": "fixed", + "policy_mod": "50000sat", + "min_their_funding_msat": 1000, + "per_channel_min_msat": "1000sat", + "per_channel_max_msat": "500000sat", + "fund_probability": 100, + "fuzz_percent": 0, + "leases_only": false + } + }, + "response": { + "summary": "fixed (50000sat)", + "policy": "fixed", + "policy_mod": 50000, + "leases_only": false, + "min_their_funding_msat": 1000, + "max_their_funding_msat": 4294967295000, + "per_channel_min_msat": 1000000, + "per_channel_max_msat": 500000000, + "reserve_tank_msat": 0, + "fuzz_percent": 0, + "fund_probability": 100 + } + } + ], + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-fundchannel(7)", + "lightning-listfunds(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-fundpsbt.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "fundpsbt", + "title": "Command to populate PSBT inputs from the wallet", + "description": [ + "`fundpsbt` is a low-level RPC command which creates a PSBT using unreserved inputs in the wallet, optionally reserving them as well." + ], + "request": { + "required": [ + "satoshi", + "feerate", + "startweight" + ], + "properties": { + "satoshi": { + "type": "msat_or_all", + "description": [ + "The minimum satoshi value of the output(s) needed (or the string `all` meaning use all unreserved inputs). If a value, it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*." + ] + }, + "feerate": { + "type": "feerate", + "description": [ + "Used for the transaction as initial feerate." + ], + "default": "*normal*" + }, + "startweight": { + "type": "u32", + "description": [ + "The weight of the transaction before *fundpsbt* has added any inputs." + ] + }, + "minconf": { + "type": "u32", + "description": [ + "The minimum number of confirmations that used outputs should have." + ], + "default": "1" + }, + "reserve": { + "type": "u32", + "description": [ + "If not zero, then *reserveinputs* is called (successfully, with *exclusive* true) on the returned PSBT for this number of blocks." + ], + "default": "72 blocks" + }, + "locktime": { + "type": "u32", + "description": [ + "The locktime of the transaction. if not set, it is set to a recent block height." + ] + }, + "min_witness_weight": { + "type": "u32", + "description": [ + "Minimum weight to use for a UTXO's witness. If the actual witness weight is greater than the provided minimum, the actual witness weight will be used." + ] + }, + "excess_as_change": { + "type": "boolean", + "description": [ + "Flag to add a change output for the excess sats." + ] + }, + "nonwrapped": { + "added": "v23.02", + "type": "boolean", + "description": [ + "To signal to filter out any p2sh-wrapped inputs from funding this PSBT." + ] + }, + "opening_anchor_channel": { + "added": "v23.08", + "type": "boolean", + "description": [ + "To signel that it needs emergency reserve for anchors so that we can lowball our commitment tx fees, and min-emergency-msat for reserving some sats for closing anchor channels." + ] + } + } + }, + "response": { + "required": [ + "psbt", + "feerate_per_kw", + "estimated_final_weight", + "excess_msat" + ], + "properties": { + "psbt": { + "type": "string", + "description": [ + "Unsigned PSBT which fulfills the parameters given." + ] + }, + "feerate_per_kw": { + "type": "u32", + "description": [ + "The feerate used to create the PSBT, in satoshis-per-kiloweight." + ] + }, + "estimated_final_weight": { + "type": "u32", + "description": [ + "The estimated weight of the transaction once fully signed." + ] + }, + "excess_msat": { + "type": "msat", + "description": [ + "The amount above *satoshi* which is available. This could be zero, or dust; it will be zero if *change_outnum* is also returned." + ] + }, + "change_outnum": { + "type": "u32", + "description": [ + "The 0-based output number where change was placed (only if parameter *excess_as_change* was true and there was sufficient funds)." + ] + }, + "reservations": { + "type": "array", + "description": [ + "If *reserve* was true or a non-zero number, just as per lightning- reserveinputs(7)." + ], + "items": { + "type": "object", + "required": [ + "txid", + "vout", + "was_reserved", + "reserved", + "reserved_to_block" + ], + "additionalProperties": false, + "properties": { + "txid": { + "type": "txid", + "description": [ + "The txid of the transaction." + ] + }, + "vout": { + "type": "u32", + "description": [ + "The 0-based output number." + ] + }, + "was_reserved": { + "type": "boolean", + "enum": [ + false + ], + "description": [ + "Whether this output was previously reserved." + ] + }, + "reserved": { + "type": "boolean", + "enum": [ + true + ], + "description": [ + "Whether this output is now reserved." + ] + }, + "reserved_to_block": { + "type": "u32", + "description": [ + "The blockheight the reservation will expire." + ] + } + } + } + } }, - "log-timestamps": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`log-timestamps` field from config or cmdline, or default." - ] + "post_return_value_notes": [ + "If *excess_as_change* is true and the excess is enough to cover an additional output above the `dust_limit`, then an output is added to the PSBT for the excess amount. The *excess_msat* will be zero. A *change_outnum* will be returned with the index of the change output." + ] + }, + "example_usage": [ + "Let's assume the caller is trying to produce a 100,000 satoshi output.", + "", + "First, the caller estimates the weight of the core (typically 42) and known outputs of the transaction (typically (9 + scriptlen) * 4). For a simple P2WPKH it's a 22 byte scriptpubkey, so that's 124 weight.", + "", + "It calls \"*fundpsbt* 100000sat slow 166\", which succeeds, and returns the *psbt* and *feerate_per_kw* it used, the *estimated_final_weight* and any *excess_msat*.", + "", + "If *excess_msat* is greater than the cost of adding a change output, the caller adds a change output randomly to position 0 or 1 in the PSBT. Say *feerate_per_kw* is 253, and the change output is a P2WPKH (weight 124), the cost is around 31 sats. With the dust limit disallowing payments below 546 satoshis, we would only create a change output if *excess_msat* was greater or equal to 31 + 546." + ], + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong.", + "- -1: Catchall nonspecific error.", + "- 301: Insufficient UTXOs to meet *satoshi* value." + ], + "json_example": [ + { + "request": { + "id": "example:fundpsbt#1", + "method": "fundpsbt", + "params": { + "satoshi": 16777216, + "feerate": "253perkw", + "startweight": 250, + "minconf": null, + "reserve": 0, + "locktime": null, + "min_witness_weight": null, + "excess_as_change": false + } + }, + "response": { + "psbt": "cHNidP8BADMCAAAAAWzmSFzhTtXBnQewytc32WaMwJSunScwsYndBNdU80JqAAAAAAD9////AGYAAAAAAQDeAgAAAAABAU1MpIJeOOzqAYVkZaytJCmzUadBVltKar8kWtzKSVeYAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFD8W5uBNZAxN6n1jqU62dxWQbyGAAkcwRAIgUK+vMOeWiDPiJM8fpgKCjjwXog4yfWPvtKES1ZZPaM8CIB3cgouGpV6Gc7nEvAu28Mg9tkAWt/Xl5FDOseEyeZqHASECTwjR0I3gLHdSW7jRmnVXdm0+MgJ1hihnqEfXYeFWA/NlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQA=", + "feerate_per_kw": 253, + "estimated_final_weight": 521, + "excess_msat": 9999869000 + } }, - "force-feerates": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "Force-feerate configuration setting, if any." - ] + { + "request": { + "id": "example:fundpsbt#2", + "method": "fundpsbt", + "params": { + "satoshi": "all", + "feerate": "1000perkw", + "startweight": 1000, + "minconf": null, + "reserve": null, + "locktime": null, + "min_witness_weight": null, + "excess_as_change": false + } + }, + "response": { + "psbt": "cHNidP8BAF4CAAAAAfwbEpvpi6D14YV4VLnuVB47Y0uF41kXEyJRL4IusySSAQAAAAD9////ASICAAAAAAAAIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL5nAAAAAAEA9gIAAAAAAQFEkxvLatohY6mw5gr5qG1aiArSrziFPR2YoqD21Hv+RAAAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNrz8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIEu1nfVRt9i+rFM219mwhMqdwJsqygWSWTFUS+cemdh6AiBG3Qo8g9J/aAMO2RHDsIBScscj6pTTIwZp7Gw8G3EOKAEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPZgAAAAEBK68/DwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oAAA==", + "feerate_per_kw": 1000, + "estimated_final_weight": 1443, + "excess_msat": 997354000, + "change_outnum": 0, + "reservations": [ + { + "txid": "9224b32e822f5122131759e3854b633b1e54eeb9547885e1f5a08be99b121bfc", + "vout": 1, + "was_reserved": false, + "reserved": true, + "reserved_to_block": 175 + } + ] + } }, - "subdaemon": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`subdaemon` fields from config or cmdline if any (can be more than one)." - ] + { + "request": { + "id": "example:fundpsbt#3", + "method": "fundpsbt", + "params": { + "satoshi": "109000sat", + "feerate": "slow", + "startweight": 166, + "minconf": null, + "reserve": null, + "locktime": null, + "min_witness_weight": null, + "excess_as_change": true + } + }, + "response": { + "psbt": "cHNidP8BAF4CAAAAAbEf44mT/BPDxLkUjKy1byWksyLyuM6hbe8shzEbbXhGAQAAAAD9////AU58DQAAAAAAIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL5sAAAAAAEA9gIAAAAAAQEV9Sj1wfHqO/ECZeHp/u7cFL5eRaa1Vu4hXWbwH72pxgEAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIGILT3DrcNn6/WKOhsxxKq7lDWq47dV0IjRhj0bYHs4yAiApzODtmrz7ifK32G81A2XbBxWboFk2vN4T3ng/hYmb1wEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPZgAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oAAA==", + "feerate_per_kw": 3750, + "estimated_final_weight": 609, + "excess_msat": 0, + "change_outnum": 0, + "reservations": [ + { + "txid": "46786d1b31872cef6da1ceb8f222b3a4256fb5ac8c14b9c4c313fc9389e31fb1", + "vout": 1, + "was_reserved": false, + "reserved": true, + "reserved_to_block": 180 + } + ] + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-utxopsbt(7)", + "lightning-reserveinputs(7)", + "lightning-unreserveinputs(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-getinfo.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "getinfo", + "title": "Command to receive all information about the Core Lightning node.", + "description": [ + "The **getinfo** gives a summary of the current running node." + ], + "request": { + "required": [], + "properties": {} + }, + "response": { + "required": [ + "id", + "alias", + "color", + "num_peers", + "num_pending_channels", + "num_active_channels", + "num_inactive_channels", + "version", + "blockheight", + "network", + "fees_collected_msat", + "lightning-dir", + "address" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "The public key unique to this node." + ] + }, + "alias": { + "type": "string", + "description": [ + "The fun alias this node will advertize." + ], + "maxLength": 32 + }, + "color": { + "type": "hex", + "description": [ + "The favorite RGB color this node will advertize." + ], + "minLength": 6, + "maxLength": 6 + }, + "num_peers": { + "type": "u32", + "description": [ + "The total count of peers, connected or with channels." + ] + }, + "num_pending_channels": { + "type": "u32", + "description": [ + "The total count of channels being opened." + ] + }, + "num_active_channels": { + "type": "u32", + "description": [ + "The total count of channels in normal state." + ] + }, + "num_inactive_channels": { + "type": "u32", + "description": [ + "The total count of channels waiting for opening or closing transactions to be mined." + ] + }, + "version": { + "type": "string", + "description": [ + "Identifies what bugs you are running into." + ] + }, + "lightning-dir": { + "type": "string", + "description": [ + "Identifies where you can find the configuration and other related files." + ] + }, + "our_features": { + "type": "object", + "description": [ + "Our BOLT #9 feature bits (as hexstring) for various contexts." + ], + "additionalProperties": true, + "required": [ + "init", + "node", + "channel", + "invoice" + ], + "properties": { + "init": { + "type": "hex", + "description": [ + "Features (incl. globalfeatures) in our init message, these also restrict what we offer in open_channel or accept in accept_channel." + ] + }, + "node": { + "type": "hex", + "description": [ + "Features in our node_announcement message." + ] + }, + "channel": { + "type": "hex", + "description": [ + "Negotiated channel features we (as channel initiator) publish in the channel_announcement message." + ] + }, + "invoice": { + "type": "hex", + "description": [ + "Features in our BOLT11 invoices." + ] + } + } + }, + "blockheight": { + "type": "u32", + "description": [ + "The highest block height we've learned." + ] + }, + "network": { + "type": "string", + "description": [ + "Represents the type of network on the node are working (e.g: `bitcoin`, `testnet`, or `regtest`)." + ] + }, + "fees_collected_msat": { + "type": "msat", + "description": [ + "Total routing fees collected by this node." + ] + }, + "address": { + "type": "array", + "description": [ + "The addresses we announce to the world." + ], + "items": { + "type": "object", + "required": [ + "type", + "port" + ], + "additionalProperties": true, + "properties": { + "type": { + "type": "string", + "enum": [ + "dns", + "ipv4", + "ipv6", + "torv2", + "torv3" + ], + "description": [ + "Type of connection (until 23.08, `websocket` was also allowed)." + ] + }, + "port": { + "type": "u16", + "description": [ + "Port number." + ] + } + }, + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "dns", + "ipv4", + "ipv6", + "torv2", + "torv3" + ] + } + } + }, + "then": { + "required": [ + "type", + "address", + "port" + ], + "additionalProperties": false, + "properties": { + "type": {}, + "port": {}, + "address": { + "type": "string", + "description": [ + "Address in expected format for **type**." + ] + } + } + }, + "else": { + "required": [ + "type", + "port" + ], + "additionalProperties": false, + "properties": { + "type": {}, + "port": {} + } + } + } + }, + "binding": { + "type": "array", + "description": [ + "The addresses we are listening on." + ], + "items": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "local socket", + "websocket", + "ipv4", + "ipv6", + "torv2", + "torv3" + ], + "description": [ + "Type of connection." + ] + }, + "address": { + "type": "string", + "description": [ + "Address in expected format for **type**." + ] + }, + "port": { + "type": "u16", + "description": [ + "Port number." + ] + } + }, + "allOf": [ + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "local socket" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "type", + "socket" + ], + "properties": { + "type": {}, + "socket": { + "type": "string", + "description": [ + "Socket filename." + ] + } + } + }, + "else": { + "additionalProperties": false, + "required": [ + "type", + "address", + "port" + ], + "properties": { + "type": {}, + "address": {}, + "port": {}, + "subtype": {} + } + } + }, + { + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "websocket" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "type", + "address", + "port", + "subtype" + ], + "properties": { + "type": {}, + "address": {}, + "port": {}, + "subtype": { + "type": "string", + "description": [ + "Type of address." + ] + } + } + }, + "else": { + "additionalProperties": false, + "required": [ + "type" + ], + "properties": { + "type": {}, + "address": {}, + "port": {}, + "socket": {} + } + } + } + ] + } + }, + "warning_bitcoind_sync": { + "type": "string", + "description": [ + "Bitcoind is not up-to-date with network." + ] + }, + "warning_lightningd_sync": { + "type": "string", + "description": [ + "Lightningd is still loading latest blocks from bitcoind." + ] + } + } + }, + "json_example": [ + { + "request": { + "id": "example:getinfo#1", + "method": "getinfo", + "params": {} + }, + "response": { + "id": "02bf811f7571754f0b51e6d41a8885f5561041a7b14fac093e4cffb95749de1a8d", + "alias": "SLICKERGOPHER", + "color": "02bf81", + "num_peers": 0, + "num_pending_channels": 0, + "num_active_channels": 0, + "num_inactive_channels": 0, + "address": [ + { + "type": "torv3", + "address": "fp463inc4w3lamhhduytrwdwq6q6uzugtaeapylqfc43agrdnnqsheyd.onion", + "port": 9736 + }, + { + "type": "torv3", + "address": "ifnntp5ak4homxrti2fp6ckyllaqcike447ilqfrgdw64ayrmkyashid.onion", + "port": 9736 + } + ], + "binding": [ + { + "type": "ipv4", + "address": "127.0.0.1", + "port": 9736 + } + ], + "version": "v0.10.2", + "blockheight": 724302, + "network": "bitcoin", + "msatoshi_fees_collected": 0, + "fees_collected_msat": "0msat", + "lightning-dir": "/media/vincent/Maxtor/C-lightning/node/bitcoin", + "our_features": { + "init": "8828226aa2", + "node": "80008828226aa2", + "channel": "", + "invoice": "20024200" + } + } + } + ], + "errors": [ + "On failure, one of the following error codes may be returned:", + "", + "- -32602: Error in given parameters or some error happened during the command process." + ], + "author": [ + "Vincenzo Palazzo <> wrote the initial version of this man page,", + "but many others did the hard work of actually implementing this rpc command." + ], + "see_also": [ + "lightning-connect(7)", + "lightning-fundchannel(7)", + "lightning-listconfigs(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-getlog.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "getlog", + "title": "Command to show logs.", + "description": [ + "The **getlog** the RPC command to show logs, with optional log *level*." + ], + "request": { + "required": [], + "properties": { + "level": { + "type": "string", + "enum": [ + "broken", + "unusual", + "info", + "debug", + "trace", + "io" + ], + "description": [ + "A string that represents the log level." + ], + "default": "*info*" + } + } + }, + "response": { + "required": [ + "created_at", + "bytes_used", + "bytes_max", + "log" + ], + "properties": { + "created_at": { + "type": "string", + "description": [ + "UNIX timestamp with 9 decimal places, when logging was initialized." + ] + }, + "bytes_used": { + "type": "u32", + "description": [ + "The number of bytes used by logging records." + ] + }, + "bytes_max": { + "type": "u32", + "description": [ + "The bytes_used values at which records will be trimmed ." + ] + }, + "log": { + "type": "array", + "items": { + "type": "object", + "required": [ + "type" + ], + "additionalProperties": true, + "properties": { + "type": { + "type": "string", + "enum": [ + "SKIPPED", + "BROKEN", + "UNUSUAL", + "INFO", + "DEBUG", + "TRACE", + "IO_IN", + "IO_OUT" + ] + } + }, + "allOf": [ + { + "if": { + "additionalProperties": true, + "properties": { + "type": { + "enum": [ + "SKIPPED" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "num_skipped" + ], + "properties": { + "type": {}, + "num_skipped": { + "type": "u32", + "description": [ + "Number of unprinted log entries (deleted or below *level* parameter)." + ] + } + } + } + }, + { + "if": { + "additionalProperties": true, + "properties": { + "type": { + "enum": [ + "BROKEN", + "UNUSUAL", + "INFO", + "DEBUG", + "TRACE" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "time", + "source", + "log" + ], + "properties": { + "type": {}, + "time": { + "type": "string", + "description": [ + "UNIX timestamp with 9 decimal places after **created_at**." + ] + }, + "source": { + "type": "string", + "description": [ + "The particular logbook this was found in." + ] + }, + "log": { + "type": "string", + "description": [ + "The actual log message." + ] + }, + "node_id": { + "type": "pubkey", + "description": [ + "The peer this is associated with." + ] + } + } + } + }, + { + "if": { + "additionalProperties": true, + "properties": { + "type": { + "enum": [ + "IO_IN", + "IO_OUT" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "time", + "source", + "log", + "data" + ], + "properties": { + "type": {}, + "time": { + "type": "string", + "description": [ + "Seconds after **created_at**, with 9 decimal places." + ] + }, + "source": { + "type": "string", + "description": [ + "The particular logbook this was found in." + ] + }, + "log": { + "type": "string", + "description": [ + "The associated log message." + ] + }, + "node_id": { + "type": "pubkey", + "description": [ + "The peer this is associated with." + ] + }, + "data": { + "type": "hex", + "description": [ + "The IO which occurred." + ] + } + } + } + } + ] + } + } + } + }, + "json_example": [ + { + "request": { + "id": "example:getlog#1", + "method": "getlog", + "params": { + "level": "debug" + } + }, + "response": { + "created_at": "1598192543.820753463", + "bytes_used": 89285843, + "bytes_max": 104857600, + "log": [ + { + "type": "SKIPPED", + "num_skipped": 45 + }, + { + "type": "INFO", + "time": "0.453627568", + "source": "plugin-autopilot.py", + "log": "RPCmethod'autopilot-run-once'doesnothaveadocstring." + } + ] + } + } + ], + "errors": [ + "On failure, one of the following error codes may be returned:", + "", + "- -32602: Error in given parameters." + ], + "author": [ + "Vincenzo Palazzo <> wrote the initial version of this man page,", + "but many others did the hard work of actually implementing this rpc command." + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-getroute.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "getroute", + "title": "Command for routing a payment (low-level)", + "description": [ + "The **getroute** RPC command attempts to find the best route for the payment of *amount_msat* to lightning node *id*, such that the payment will arrive at *id* with *cltv*.", + "", + "There are two considerations for how good a route is: how low the fees are, and how long your payment will get stuck in a delayed output if a node goes down during the process. ." + ], + "request": { + "required": [ + "id", + "amount_msat", + "riskfactor" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "Node pubkey to find the best route for the payment." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "Amount to send. It can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*. The 0 value is special: it ignores any *htlc_minimum_msat* setting on channels, and simply returns a possible route (if any) which is useful for simple probing." + ] + }, + "riskfactor": { + "type": "u64", + "description": [ + "A non-negative floating-point field controls this tradeoff; it is the annual cost of your funds being stuck (as a percentage). For example, if you thought the convenience of keeping your funds liquid (not stuck) was worth 20% per annum interest, *riskfactor* would be 20. If you didn't care about risk, *riskfactor* would be zero." + ] + }, + "cltv": { + "type": "u32", + "description": [ + "Cltv-blocks to spare." + ], + "default": "9" + }, + "fromid": { + "type": "pubkey", + "description": [ + "The node to start the route from." + ], + "default": "this node" + }, + "fuzzpercent": { + "type": "u32", + "description": [ + "Used to distort fees to provide some randomization to the route generated, but it was not properly implemented and is ignored." + ] + }, + "exclude": { + "type": "array", + "description": [ + "A JSON array of short-channel-id/direction (e.g. ['564334x877x1/0', '564195x1292x0/1' ]) or node-id which should be excluded from consideration for routing. Note if the source or destination is excluded, the command result is undefined." + ], + "default": "not to exclude any channels or nodes", + "items": { + "type": "string" + } + }, + "maxhops": { + "type": "u32", + "description": [ + "The maximum number of channels to return." + ], + "default": "20" + } + } + }, + "response": { + "required": [ + "route" + ], + "properties": { + "route": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "direction", + "channel", + "amount_msat", + "delay", + "style" + ], + "additionalProperties": false, + "properties": { + "id": { + "type": "pubkey", + "description": [ + "The node at the end of this hop." + ] + }, + "channel": { + "type": "short_channel_id", + "description": [ + "The channel joining these nodes." + ] + }, + "direction": { + "type": "u32", + "description": [ + "0 if this channel is traversed from lesser to greater **id**, otherwise 1." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount expected by the node at the end of this hop." + ] + }, + "delay": { + "type": "u32", + "description": [ + "The total CLTV expected by the node at the end of this hop." + ] + }, + "style": { + "type": "string", + "description": [ + "The features understood by the destination node." + ], + "enum": [ + "tlv" + ] + } + } + } + } }, - "fetchinvoice-noconnect": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "`fetchinvoice-noconnect` fields from config or cmdline, or default." - ] + "post_return_value_notes": [ + "The final *id* will be the destination *id* given in the input. The difference between the first *amount_msat* minus the *amount_msat* given in the input is the fee (assuming the first hop is free). The first *delay* is the very worst case timeout for the payment failure, in blocks." + ] + }, + "riskfactor_effect_on_routing": [ + "The risk factor is treated as if it were an additional fee on the route, for the purposes of comparing routes.", + "", + "The formula used is the following approximation:", + "", + " risk-fee = amount x blocks-timeout x per-block-cost", + "", + "We are given a *riskfactor* expressed as a percentage. There are 52596 blocks per year, thus *per-block-cost* is *riskfactor* divided by 5,259,600.", + "", + "The final result is:", + "", + " risk-fee = amount x blocks-timeout x riskfactor / 5259600", + "", + "Here are the risk fees in millisatoshis, using various parameters. I assume a channel charges the default of 1000 millisatoshis plus 1 part-per-million. Common to_self_delay values on the network at 14 and 144 blocks.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "
Amount (msat)RiskfactorDelayRisk FeeRoute fee

10,000

1

14

0

1001

10,000

10

14

0

1001

10,000

100

14

2

1001

10,000

1000

14

26

1001

1,000,000

1

14

2

1001

1,000,000

10

14

26

1001

1,000,000

100

14

266

1001

1,000,000

1000

14

2661

1001

100,000,000

1

14

266

1100

100,000,000

10

14

2661

1100

100,000,000

100

14

26617

1100

100,000,000

1000

14

266179

1100

10,000

1

144

0

1001

10,000

10

144

2

1001

10,000

100

144

27

1001

10,000

1000

144

273

1001

1,000,000

1

144

27

1001

1,000,000

10

144

273

1001

1,000,000

100

144

2737

1001

1,000,000

1000

144

27378

1001

100,000,000

1

144

2737

1100

100,000,000

10

144

27378

1100

100,000,000

100

144

273785

1100

100,000,000

1000

144

2737850

1100

" + ], + "recommended_riskfactor_values": [ + "The default *fuzz* factor is 5%, so as you can see from the table above, that tends to overwhelm the effect of *riskfactor* less than about 5.", + "", + "1 is a conservative value for a stable lightning network with very few failures.", + "", + "1000 is an aggressive value for trying to minimize timeouts at all costs.", + "", + "The default for lightning-pay(7) is 10, which starts to become a major factor for larger amounts, and is basically ignored for tiny ones." + ], + "json_example": [ + { + "request": { + "id": "example:getroute#1", + "method": "getroute", + "params": { + "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "amount_msat": 50000000, + "riskfactor": 1, + "cltv": 9, + "fromid": null, + "fuzzpercent": null, + "exclude": null, + "maxhops": null + } + }, + "response": { + "route": [ + { + "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "channel": "103x3x0", + "direction": 1, + "amount_msat": 50001002, + "delay": 21, + "style": "tlv" + }, + { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "channel": "103x1x0", + "direction": 1, + "amount_msat": 50000501, + "delay": 15, + "style": "tlv" + }, + { + "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "channel": "103x2x0", + "direction": 0, + "amount_msat": 50000000, + "delay": 9, + "style": "tlv" + } + ] + } }, - "accept-htlc-tlv-types": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`accept-htlc-tlv-types` field from config or cmdline, or not present." - ] + { + "request": { + "id": "example:getroute#2", + "method": "getroute", + "params": { + "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "amount_msat": "50000sat", + "riskfactor": 10 + } + }, + "response": { + "route": [ + { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "channel": "103x2x0", + "direction": 1, + "amount_msat": 50051000, + "delay": 15, + "style": "tlv" + }, + { + "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "channel": "103x1x0", + "direction": 0, + "amount_msat": 50000000, + "delay": 9, + "style": "tlv" + } + ] + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-pay(7)", + "lightning-sendpay(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-help.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "help", + "title": "Command to return all information about RPC commands.", + "description": [ + "The **help** is a RPC command which is possible consult all information about the RPC commands, or a specific command if *command* is given.", + "", + "Note that the lightning-cli(1) tool will prefer to list a man page when a specific *command* is specified, and will only return the JSON if the man page is not found." + ], + "request": { + "required": [], + "properties": { + "command": { + "type": "string", + "description": [ + "Command to get information about." + ] + } + } + }, + "response": { + "required": [ + "help" + ], + "properties": { + "help": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "command", + "category", + "description", + "verbose" + ], + "properties": { + "command": { + "type": "string", + "description": [ + "The command." + ] + }, + "category": { + "type": "string", + "description": [ + "The category for this command (useful for grouping)." + ] + }, + "description": { + "type": "string", + "description": [ + "A one-line description of the purpose of this command." + ] + }, + "verbose": { + "type": "string", + "description": [ + "A full description of this command (including whether it's deprecated)." + ] + } + } + } + }, + "format-hint": { + "type": "string", + "enum": [ + "simple" + ], + "description": [ + "Prints the help in human-readable flat form." + ] + } + } + }, + "json_example": [ + { + "request": { + "id": "example:help#1", + "method": "help", + "params": { + "command": "pay" + } + }, + "response": { + "help": [ + { + "command": "pay bolt11 [amount_msat] [label] [riskfactor] [maxfeepercent] [retry_for] [maxdelay] [exemptfee] [localinvreqid] [exclude] [maxfee] [description] [dev_use_shadow]", + "category": "plugin", + "description": "Send payment specified by {bolt11}", + "verbose": "Attempt to pay the {bolt11} invoice." + } + ], + "format-hint": "simple" + } }, - "tor-service-password": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "string", - "description": [ - "`tor-service-password` field from config or cmdline, if any." - ] + { + "request": { + "id": "example:help#2", + "method": "help", + "params": { + "command": "dev" + } + }, + "response": { + "help": [ + { + "command": "dev subcommand=crash|rhash|slowcmd", + "category": "developer", + "description": "Developer command test multiplexer", + "verbose": "dev rhash {secret}\n\tShow SHA256 of {secret}\ndev crash\n\tCrash lightningd by calling fatal()\ndev slowcmd {msec}\n\tTorture test for slow commands, optional {msec}\n" + } + ], + "format-hint": "simple" + } + } + ], + "errors": [ + "On failure, one of the following error codes may be returned:", + "", + "- -32602: Error in given parameters." + ], + "author": [ + "Vincenzo Palazzo <> wrote the initial version of this man page,", + "but many others did the hard work of actually implementing this rpc command." + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-invoice.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "invoice", + "title": "Command for accepting payments", + "description": [ + "The **invoice** RPC command creates the expectation of a payment of a given amount of milli-satoshi: it returns a unique token which another lightning daemon can use to pay this invoice. This token includes a *route hint* description of an incoming channel with capacity to pay the invoice, if any exists." + ], + "request": { + "required": [ + "amount_msat", + "label", + "description" + ], + "properties": { + "amount_msat": { + "type": "msat_or_any", + "description": [ + "The string `any`, which creates an invoice that can be paid with any amount. Otherwise it is a positive value in millisatoshi precision; it can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*." + ] + }, + "label": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "description": [ + "A unique string or number (which is treated as a string, so `01` is different from `1`); it is never revealed to other nodes on the lightning network, but it can be used to query the status of this invoice." + ] + }, + "description": { + "type": "string", + "description": [ + "A short description of purpose of payment, e.g. *1 cup of coffee*. This value is encoded into the BOLT11 invoice and is viewable by any node you send this invoice to (unless *deschashonly* is true as described below). It must be UTF-8, and cannot use *\\u* JSON escape codes." + ] + }, + "expiry": { + "type": "u64", + "description": [ + "The time the invoice is valid for, in seconds. If no value is provided the default of 604800 (1 week) is used." + ] + }, + "fallbacks": { + "type": "array", + "description": [ + "One or more fallback addresses to include in the invoice (in order from most- preferred to least): note that these arrays are not currently tracked to fulfill the invoice." + ], + "items": { + "type": "string" + } + }, + "preimage": { + "type": "hex", + "description": [ + "A 64-digit hex string to be used as payment preimage for the created invoice. By default, if unspecified, lightningd will generate a secure pseudorandom preimage seeded from an appropriate entropy source on your system. **IMPORTANT**: if you specify the *preimage*, you are responsible, to ensure appropriate care for generating using a secure pseudorandom generator seeded with sufficient entropy, and keeping the preimage secret. This parameter is an advanced feature intended for use with cutting-edge cryptographic protocols and should not be used unless explicitly needed." + ] + }, + "exposeprivatechannels": { + "description": [ + "If specified, it overrides the default route hint logic, which will use unpublished channels only if there are no published channels." + ], + "oneOf": [ + { + "type": "boolean", + "description": [ + "If *True* unpublished channels are always considered as a route hint candidate; if *False*, never." + ] + }, + { + "type": "array", + "description": [ + "Array of short channel ids (or a remote alias), only those specific channels will be considered candidates, even if they are public or dead-ends." + ], + "items": { + "type": "short_channel_id" + } + }, + { + "type": "short_channel_id", + "description": [ + "If it is a short channel id (e.g. *1x1x3*), only this specific channel will be considered candidate, even if it is public or dead-end." + ] + } + ] + }, + "cltv": { + "type": "u32", + "description": [ + "If specified, sets the *min_final_cltv_expiry* for the invoice. Otherwise, it's set to the parameter **cltv-final**." + ] + }, + "deschashonly": { + "type": "boolean", + "description": [ + "If True, then the bolt11 returned contains a hash of the *description*, rather than the *description* itself: this allows much longer descriptions, but they must be communicated via some other mechanism." + ], + "default": "False" + } + } + }, + "response": { + "required": [ + "payment_hash", + "expires_at", + "created_index", + "bolt11", + "payment_secret" + ], + "properties": { + "bolt11": { + "type": "string", + "description": [ + "The bolt11 string." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "payment_secret": { + "type": "secret", + "description": [ + "The *payment_secret* to place in the onion." + ] + }, + "expires_at": { + "type": "u64", + "description": [ + "UNIX timestamp of when invoice expires." + ] + }, + "created_index": { + "type": "u64", + "added": "v23.08", + "description": [ + "1-based index indicating order this invoice was created in." + ] + }, + "warning_capacity": { + "type": "string", + "description": [ + "Even using all possible channels, there's not enough incoming capacity to pay this invoice." + ] + }, + "warning_offline": { + "type": "string", + "description": [ + "There would be enough incoming capacity, but some channels are offline, so there isn't." + ] + }, + "warning_deadends": { + "type": "string", + "description": [ + "There would be enough incoming capacity, but some channels are dead-ends (no other public channels from those peers), so there isn't." + ] + }, + "warning_private_unused": { + "type": "string", + "description": [ + "There would be enough incoming capacity, but some channels are unannounced and *exposeprivatechannels* is *false*, so there isn't." + ] + }, + "warning_mpp": { + "type": "string", + "description": [ + "There is sufficient capacity, but not in a single channel, so the payer will have to use multi-part payments." + ] + } + } + }, + "errors": [ + "On failure, an error is returned and no invoice is created. If the", + "lightning process fails before responding, the caller should use", + "lightning-listinvoices(7) to query whether this invoice was created or", + "not.", + "", + "The following error codes may occur:", + "", + "- -1: Catchall nonspecific error.", + "- 900: An invoice with the given *label* already exists.", + "- 901: An invoice with the given *preimage* already exists.", + "- 902: None of the specified *exposeprivatechannels* were usable." + ], + "json_example": [ + { + "request": { + "id": "example:invoice#1", + "method": "invoice", + "params": { + "amount_msat": 11000000, + "label": "xEoCR94SIz6UIRUEkxum", + "description": [ + "XEoCR94SIz6UIRUEkxum." + ], + "expiry": null, + "fallbacks": null, + "preimage": null, + "exposeprivatechannels": null, + "cltv": null, + "deschashonly": null + } + }, + "response": { + "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", + "expires_at": 1706757730, + "bolt11": "lnbcrt110u1pjmr5lzsp5sfjyj3xn7ux592k36hmmt4ax98n6lgct22wvj54yck0upcmep63qpp5qu436g855lr40ftdt7csatk5pdvtdzzfmfqluwtvm0fds95jsadqdpq0pzk7s6j8y69xjt6xe25j5j4g44hsatdxqyjw5qcqp99qxpqysgquwma3zrw4cd8e8j4u9uh4gxukaacckse64kx2l9dqv8rvrysdq5r5dt38t9snqj9u5ar07h2exr4fg56wpudkhkk7gtxlyt72ku5fpqqd4fnlk", + "payment_secret": "82644944d3f70d42aad1d5f7b5d7a629e7afa30b529cc952a4c59fc0e3790ea2", + "created_index": 1, + "warning_deadends": "Insufficient incoming capacity, once dead-end peers were excluded" + } }, - "dev-allowdustreserve": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "Whether we allow setting dust reserves." - ] + { + "request": { + "id": "example:invoice#2", + "method": "invoice", + "params": { + "amount_msat": 100, + "label": "8", + "description": "inv", + "expiry": null, + "fallbacks": null, + "preimage": null, + "exposeprivatechannels": null, + "cltv": null, + "deschashonly": null + } + }, + "response": { + "payment_hash": "f59ae0204dfe8e913207ea36646255b9d2c7c8229e8693d30547fc622eddb6b4", + "expires_at": 1709229182, + "bolt11": "lnbcrt1n1pja0z07sp5n8fk890nrq7zlcue0lgu7cduaaz765u5rg0kcud4amphuppu8wxspp57kdwqgzdl68fzvs8agmxgcj4h8fv0jpzn6rf85c9gl7xytkak66qdq9d9h8vxqyjw5qcqp99qxpqysgqrneaxh0plvjft457yv3q92rak57a6xw33m6phr0mrsy69sudzgez3adkzdsgwzy32z5usjpxm4rjgcg70h047wf0pgc4l9gyaj2h9ssqcrtv32", + "payment_secret": "99d36395f3183c2fe3997fd1cf61bcef45ed53941a1f6c71b5eec37e043c3b8d", + "created_index": 9, + "warning_capacity": "Insufficient incoming channel capacity to pay invoice" + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-listinvoices(7)", + "lightning-delinvoice(7)", + "lightning-pay(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-invoicerequest.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v22.11", + "rpc": "invoicerequest", + "title": "Command for offering payments", + "warning": "experimental-offers only", + "description": [ + "The **invoicerequest** RPC command creates an `invoice_request` to send payments: it automatically enables the processing of an incoming invoice, and payment of it. The reader of the resulting `invoice_request` can use lightning-sendinvoice(7) to collect their payment." + ], + "request": { + "required": [ + "amount", + "description" + ], + "properties": { + "amount": { + "type": "msat", + "description": [ + "A positive value in millisatoshi precision; it can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*." + ] + }, + "description": { + "type": "string", + "description": [ + "A short description of purpose of the payment, e.g. *ATM withdrawl*. This value is encoded into the resulting `invoice_request` and is viewable by anyone you expose it to. It must be UTF-8, and cannot use *\\u* JSON escape codes." + ] + }, + "issuer": { + "type": "string", + "description": [ + "Who is issuing it (i.e. you) if appropriate." + ] + }, + "label": { + "type": "string", + "description": [ + "An internal-use name for the offer, which can be any UTF-8 string." + ] + }, + "absolute_expiry": { + "type": "u64", + "description": [ + "The time the offer is valid until, in seconds since the first day of 1970 UTC. If not set, the `invoice_request` remains valid (though it can be deactivated by the issuer of course). This is encoded in the `invoice_request`." + ] + }, + "single_use": { + "type": "boolean", + "description": [ + "Indicates that the `invoice_request` is only valid once; we may attempt multiple payments, but as soon as one is successful no more invoices are accepted (i.e. only one person can take the money)." + ], + "default": "True" + } + } + }, + "response": { + "required": [ + "invreq_id", + "single_use", + "active", + "bolt12", + "used" + ], + "properties": { + "invreq_id": { + "type": "hash", + "description": [ + "The SHA256 hash of all invoice_request fields less than 160." + ] + }, + "active": { + "type": "boolean", + "enum": [ + true + ], + "description": [ + "Whether the invoice_request is currently active." + ] + }, + "single_use": { + "type": "boolean", + "description": [ + "Whether the invoice_request will become inactive after we pay an invoice for it." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The bolt12 string starting with lnr." + ] + }, + "used": { + "type": "boolean", + "enum": [ + false + ], + "description": [ + "Whether the invoice_request has already been used." + ] + }, + "label": { + "type": "string", + "description": [ + "The label provided when creating the invoice_request." + ] + } + } + }, + "json_example": [ + { + "request": { + "id": "example:invoicerequest#1", + "method": "invoicerequest", + "params": { + "amount": "10000sat", + "description": "simple test", + "issuer": "clightning test suite" + } + }, + "response": { + "invreq_id": "715484ead84bcdae5b33e3015c686fa1bdd4ae9ade3c4729b58257a98cfcd9b5", + "active": true, + "single_use": true, + "bolt12": "lnr1qqgteyhfyp40c79a5y3gfe33nxfs6zstwd5k6urvv5s8getnwsfp2cmvd9nksarwd9hxwgr5v4ehggrnw45hge2syqrzymjxzydqkkw24ufxqslttwlj3s608f0rx2slc7etw0833zgs75srnztgqkppqfnwgkvdr57yzh6h92zg3qctvrm7w38djg67kzcm4yeg8vc4cq633uzq99smfawuu6pz0zh9jl6dl8v25u3kzes975x2j9tr0qp0ux0tlzcxjrgehxh9luz5vwjpk92tys9f9zlm038krcz4uqfxgelwf43tgfc", + "used": false + } + } + ], + "errors": [ + "On failure, an error is returned and no `invoice_request` is created. If the lightning process fails before responding, the caller should use lightning-listinvoicerequests(7) to query whether it was created or not.", + "", + "- -1: Catchall nonspecific error." + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-listinvoicerequests(7)", + "lightning-disableinvoicerequest(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-keysend.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "keysend", + "title": "Send funds to a node without an invoice", + "description": [ + "The **keysend** RPC command attempts to find a route to the given destination, and send the specified amount to it. Unlike the `pay` RPC command the `keysend` command does not require an invoice, instead it uses the `destination` node ID, and `amount` to find a route to the specified node.", + "", + "In order for the destination to be able to claim the payment, the `payment_key` is randomly generated by the sender and included in the encrypted payload for the destination. As a consequence there is not proof-of-payment, like there is with an invoice where the `payment_key` is generated on the destination, and the only way sender could have it is by sending a payment. Please ensure that this matches your use-case when using `keysend`.", + "", + "When using *lightning-cli*, you may skip optional parameters by using *null*. Alternatively, use **-k** option to provide parameters by name." + ], + "request": { + "required": [ + "destination", + "amount_msat" + ], + "properties": { + "destination": { + "type": "pubkey", + "description": [ + "The 33 byte, hex-encoded, node ID of the node that the payment should go to." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "A whole number, or a whole number with suffix `msat` or `sat`, or a three decimal point number with suffix `sat`, or an 1 to 11 decimal point number suffixed by `btc`." + ] + }, + "label": { + "type": "string", + "description": [ + "Used to attach a label to payments, and is returned in lightning-listpays(7) and lightning-listsendpays(7)." + ] + }, + "maxfeepercent": { + "type": "number", + "description": [ + "Limits the money paid in fees as percentage of the total amount that is to be transferred." + ], + "default": "0.5" + }, + "retry_for": { + "type": "u32", + "description": [ + "Until *retry_for* seconds passes, the command will keep finding routes and retrying the payment. However, a payment may be delayed for up to `maxdelay` blocks by another node; clients should be prepared for this worst case." + ], + "default": "60 seconds" + }, + "maxdelay": { + "type": "u32", + "description": [ + "Number of blocks the payment may be delayed." + ] + }, + "exemptfee": { + "type": "msat", + "description": [ + "Used for tiny payments which would be dominated by the fee leveraged by forwarding nodes. Setting `exemptfee` allows the `maxfeepercent` check to be skipped on fees that are smaller than *exemptfee*." + ], + "default": "5000 millisatoshi" + }, + "routehints": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "scid", + "feebase", + "feeprop", + "expirydelta" + ], + "properties": { + "id": { + "type": "pubkey" + }, + "scid": { + "type": "short_channel_id" + }, + "feebase": { + "type": "msat" + }, + "feeprop": { + "type": "u32" + }, + "expirydelta": { + "type": "u16" + } + } + } + } + }, + "extratlvs": { + "type": "object", + "additionalProperties": true, + "required": [], + "description": [ + "Dictionary of additional fields to insert into the final tlv. The format is 'fieldnumber': 'hexstring'." + ] + } + } + }, + "response": { + "required": [ + "payment_preimage", + "payment_hash", + "created_at", + "parts", + "amount_msat", + "amount_sent_msat", + "status" + ], + "properties": { + "payment_preimage": { + "type": "secret", + "description": [ + "The proof of payment: SHA256 of this **payment_hash**." + ] + }, + "destination": { + "type": "pubkey", + "description": [ + "The final destination of the payment." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "created_at": { + "type": "number", + "description": [ + "The UNIX timestamp showing when this payment was initiated." + ] + }, + "parts": { + "type": "u32", + "description": [ + "How many attempts this took." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "Amount the recipient received." + ] + }, + "amount_sent_msat": { + "type": "msat", + "description": [ + "Total amount we sent (including fees)." + ] + }, + "warning_partial_completion": { + "type": "string", + "description": [ + "Not all parts of a multi-part payment have completed." + ] + }, + "status": { + "type": "string", + "enum": [ + "complete" + ], + "description": [ + "Status of payment." + ] + } }, - "announce-addr-dns": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "added": "v22.11.1", - "description": [ - "Whether we put DNS entries into node_announcement." - ] + "post_return_value_notes": [ + "You can monitor the progress and retries of a payment using the lightning-paystatus(7) command." + ] + }, + "randomization": [ + "To protect user privacy, the payment algorithm performs some randomization.", + "", + "1: Route Randomization", + "", + "Route randomization means the payment algorithm does not always use the lowest-fee or shortest route. This prevents some highly-connected node from learning all of the user payments by reducing their fees below the network average.", + "", + "2: Shadow Route", + "", + "Shadow route means the payment algorithm will virtually extend the route by adding delays and fees along it, making it appear to intermediate nodes that the route is longer than it actually is. This prevents intermediate nodes from reliably guessing their distance from the payee.", + "", + "Route randomization will never exceed *maxfeepercent* of the payment. Route randomization and shadow routing will not take routes that would exceed *maxdelay*." + ], + "errors": [ + "The following error codes may occur:", + "", + "- -1: Catchall nonspecific error.", + "- 203: Permanent failure at destination. The *data* field of the error will be routing failure object.", + "- 205: Unable to find a route.", + "- 206: Route too expensive. Either the fee or the needed total locktime for the route exceeds your *maxfeepercent* or *maxdelay* settings, respectively. The *data* field of the error will indicate the actual *fee* as well as the *feepercent* percentage that the fee has of the destination payment amount. It will also indicate the actual *delay* along the route.", + "- 210: Payment timed out without a payment in progress.", + "", + "A routing failure object has the fields below:", + "", + "*erring_index*: The index of the node along the route that reported the error. 0 for the local node, 1 for the first hop, and so on.", + "*erring_node*: The hex string of the pubkey id of the node that reported the error.", + "*erring_channel*: The short channel ID of the channel that has the error, or *0:0:0* if the destination node raised the error.", + "*failcode*: The failure code, as per BOLT #4.", + "*channel_update*: The hex string of the *channel_update* message received from the remote node. Only present if error is from the remote node and the *failcode* has the `UPDATE` bit set, as per BOLT #4." + ], + "json_example": [ + { + "request": { + "id": "example:keysend#1", + "method": "keysend", + "params": { + "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "amount_msat": 10000, + "label": null, + "maxfeepercent": null, + "retry_for": null, + "maxdelay": null, + "exemptfee": null, + "extratlvs": null + } + }, + "response": { + "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "payment_hash": "b6f88603008a9f7dd84b1b94c7b972c8efbaf0b86c8d3c04512955992da9028e", + "created_at": 1706315742.6861734, + "parts": 1, + "amount_msat": 10000, + "amount_sent_msat": 10001, + "payment_preimage": "7178cf708e34dce816fc35aa692a65e1f85b92ae03bbc8ae6543302511823174", + "status": "complete" + } }, - "require-confirmed-inputs": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "boolean", - "description": [ - "Request peers to only send confirmed inputs (dual-fund only)." - ] + { + "request": { + "id": "example:keysend#2", + "method": "keysend", + "params": { + "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "amount_msat": 10000000, + "label": null, + "maxfeepercent": null, + "retry_for": null, + "maxdelay": null, + "exemptfee": null, + "extratlvs": { + "133773310": "68656c6c6f776f726c64", + "133773312": "66696c7465726d65" + } + } + }, + "response": { + "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "payment_hash": "e8474eea8d5673e8407ef5f4924e58479b51a68afd136384683d5d6a97c9520d", + "created_at": 1708640424.1810749, + "parts": 1, + "amount_msat": 10000000, + "amount_sent_msat": 10000000, + "payment_preimage": "40e47272ea7da20c57a2381d81a5513ec03bd8ead9d51fbd2a91ec76d3f4bcbf", + "status": "complete" + } }, - "developer": { - "added": "v23.08", - "type": "boolean", - "description": [ - "Whether developer mode is enabled." - ] + { + "request": { + "id": "example:keysend#3", + "method": "keysend", + "params": { + "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "amount_msat": 10000, + "routehints": [ + [ + { + "scid": "4615051x2233541x57738", + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "feebase": 1, + "feeprop": 10, + "expirydelta": 9 + } + ], + [ + { + "scid": "1x2x3", + "id": "020202020202020202020202020202020202020202020202020202020202020202", + "feebase": 1, + "feeprop": 1, + "expirydelta": 9 + } + ] + ] + } + }, + "response": { + "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "payment_hash": "56e12e6f45120bef7385c9bf307319eaa6a1b9160cdb3e62a3f492abf5bfa4bc", + "created_at": 1708640437.2895157, + "parts": 1, + "amount_msat": 10000, + "amount_sent_msat": 10001, + "payment_preimage": "682870b8f96e2aed1c86694dbb2c3e64cd396b9bba9fafd824d90eb0bd371b85", + "status": "complete" + } + } + ], + "author": [ + "Christian Decker <> is mainly responsible." + ], + "see_also": [ + "lightning-listpays(7)", + "lightning-decodepay(7)", + "lightning-listinvoices(7)", + "lightning-delinvoice(7)", + "lightning-getroute(7)", + "lightning-invoice(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-listchannels.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listchannels", + "title": "Command to query active lightning channels in the entire network", + "description": [ + "The **listchannels** RPC command returns data on channels that are known to the node. Because channels may be bidirectional, up to 2 objects will be returned for each channel (one for each direction).", + "", + "Only one of *short_channel_id*, *source* or *destination* can be supplied. If nothing is supplied, data on all lightning channels known to this node, are returned. These can be local channels or public channels broadcast on the gossip network." + ], + "request": { + "required": [], + "properties": { + "short_channel_id": { + "type": "short_channel_id", + "description": [ + "If short_channel_id is a short channel id, then only known channels with a matching short_channel_id are returned. Otherwise, it must be null." + ] + }, + "source": { + "type": "pubkey", + "description": [ + "If source is a node id, then only channels leading from that node id are returned." + ] + }, + "destination": { + "type": "pubkey", + "description": [ + "If destination is a node id, then only channels leading to that node id are returned." + ] + } + } + }, + "response": { + "required": [ + "channels" + ], + "properties": { + "channels": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "source", + "destination", + "short_channel_id", + "direction", + "public", + "amount_msat", + "message_flags", + "channel_flags", + "active", + "last_update", + "base_fee_millisatoshi", + "fee_per_millionth", + "delay", + "htlc_minimum_msat", + "features" + ], + "properties": { + "source": { + "type": "pubkey", + "description": [ + "The source node." + ] + }, + "destination": { + "type": "pubkey", + "description": [ + "The destination node." + ] + }, + "short_channel_id": { + "type": "short_channel_id", + "description": [ + "Short channel id of channel." + ] + }, + "direction": { + "type": "u32", + "description": [ + "Direction (0 if source < destination, 1 otherwise)." + ] + }, + "public": { + "type": "boolean", + "description": [ + "True if this is announced (from *v24.02*, being false is deprecated)." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The total capacity of this channel (always a whole number of satoshis)." + ] + }, + "message_flags": { + "type": "u8", + "description": [ + "As defined by BOLT #7." + ] + }, + "channel_flags": { + "type": "u8", + "description": [ + "As defined by BOLT #7." + ] + }, + "active": { + "type": "boolean", + "description": [ + "True unless source has disabled it (or (deprecated in *v24.02*) it's a local channel and the peer is disconnected or it's still opening or closing)." + ] + }, + "last_update": { + "type": "u32", + "description": [ + "UNIX timestamp on the last channel_update from *source*." + ] + }, + "base_fee_millisatoshi": { + "type": "u32", + "description": [ + "Base fee changed by *source* to use this channel." + ] + }, + "fee_per_millionth": { + "type": "u32", + "description": [ + "Proportional fee changed by *source* to use this channel, in parts-per-million." + ] + }, + "delay": { + "type": "u32", + "description": [ + "The number of blocks delay required by *source* to use this channel." + ] + }, + "htlc_minimum_msat": { + "type": "msat", + "description": [ + "The smallest payment *source* will allow via this channel." + ] + }, + "htlc_maximum_msat": { + "type": "msat", + "description": [ + "The largest payment *source* will allow via this channel." + ] + }, + "features": { + "type": "hex", + "description": [ + "BOLT #9 features bitmap for this channel." + ] + } + } + } + } }, - "commit-fee": { - "deprecated": [ - "v23.08", - "v24.02" - ], - "type": "u64", - "added": "v23.05", - "description": [ - "The percentage of the 6-block fee estimate to use for commitment transactions." - ] + "post_return_value_notes": [ + "If one of *short_channel_id*, *source* or *destination* is supplied and no matching channels are found, a 'channels' object with an empty list is returned." + ] + }, + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong." + ], + "json_example": [ + { + "request": { + "id": "example:listchannels#1", + "method": "listchannels", + "params": { + "short_channel_id": "103x1x0", + "source": null, + "destination": null + } + }, + "response": { + "channels": [] + } }, - "min-emergency-msat": { - "type": "msat", - "added": "v23.08", - "description": [ - "Field from config or cmdline, or default." - ] + { + "request": { + "id": "example:listchannels#2", + "method": "listchannels", + "params": { + "short_channel_id": null, + "source": null, + "destination": null + } + }, + "response": { + "channels": [ + { + "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "short_channel_id": "103x1x0", + "direction": 0, + "public": true, + "amount_msat": 1000000000, + "message_flags": 1, + "channel_flags": 0, + "active": true, + "last_update": 1706153393, + "base_fee_millisatoshi": 1, + "fee_per_millionth": 10, + "delay": 6, + "htlc_minimum_msat": 0, + "htlc_maximum_msat": 990000000, + "features": "" + }, + { + "source": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "short_channel_id": "103x1x0", + "direction": 1, + "public": true, + "amount_msat": 1000000000, + "message_flags": 1, + "channel_flags": 1, + "active": true, + "last_update": 1706153393, + "base_fee_millisatoshi": 1, + "fee_per_millionth": 10, + "delay": 6, + "htlc_minimum_msat": 0, + "htlc_maximum_msat": 990000000, + "features": "" + } + ] + } + } + ], + "author": [ + "Michael Hawkins <>." + ], + "see_also": [ + "lightning-fundchannel(7)", + "lightning-listnodes(7)" + ], + "resources": [ + "Main web site: ", + "", + "BOLT #7: " + ] + }, + "lightning-listclosedchannels.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.05", + "rpc": "listclosedchannels", + "title": "Get data on our closed historical channels", + "description": [ + "The **listclosedchannels** RPC command returns data on channels which are otherwise forgotten (more than 100 blocks after they're completely resolved onchain)." + ], + "request": { + "required": [], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "If no *id* is supplied, then channel data on all historical channels are given. Supplying *id* will filter the results to only match channels to that peer. Note that prior to v23.05, old peers were forgotten." + ] + } + } + }, + "response": { + "required": [ + "closedchannels" + ], + "properties": { + "closedchannels": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "channel_id", + "opener", + "private", + "total_msat", + "total_local_commitments", + "total_remote_commitments", + "total_htlcs_sent", + "funding_txid", + "funding_outnum", + "leased", + "final_to_us_msat", + "min_to_us_msat", + "max_to_us_msat", + "close_cause" + ], + "properties": { + "peer_id": { + "type": "pubkey", + "description": [ + "Peer public key (can be missing with pre-v23.05 closes!)." + ] + }, + "channel_id": { + "type": "hash", + "description": [ + "The full channel_id (funding txid Xored with output number)." + ] + }, + "short_channel_id": { + "type": "short_channel_id", + "description": [ + "The short_channel_id." + ] + }, + "alias": { + "type": "object", + "required": [], + "properties": { + "local": { + "type": "short_channel_id", + "description": [ + "An alias assigned by this node to this channel, used for outgoing payments." + ] + }, + "remote": { + "type": "short_channel_id", + "description": [ + "An alias assigned by the remote node to this channel, usable in routehints and invoices." + ] + } + } + }, + "opener": { + "type": "string", + "enum": [ + "local", + "remote" + ], + "description": [ + "Who initiated the channel." + ] + }, + "closer": { + "type": "string", + "enum": [ + "local", + "remote" + ], + "description": [ + "Who initiated the channel close (only present if closing)." + ] + }, + "private": { + "type": "boolean", + "description": [ + "If True, we will not announce this channel." + ] + }, + "channel_type": { + "type": "object", + "description": [ + "Channel_type as negotiated with peer." + ], + "additionalProperties": false, + "required": [ + "bits", + "names" + ], + "properties": { + "bits": { + "type": "array", + "description": [ + "Each bit set in this channel_type." + ], + "items": { + "type": "u32", + "description": [ + "Bit number." + ] + } + }, + "names": { + "type": "array", + "description": [ + "Feature name for each bit set in this channel_type." + ], + "items": { + "type": "string", + "enum": [ + "static_remotekey/even", + "anchor_outputs/even", + "anchors_zero_fee_htlc_tx/even", + "scid_alias/even", + "zeroconf/even" + ], + "description": [ + "Name of feature bit." + ] + } + } + } + }, + "total_local_commitments": { + "type": "u64", + "description": [ + "Number of commitment transaction we made." + ] + }, + "total_remote_commitments": { + "type": "u64", + "description": [ + "Number of commitment transaction they made." + ] + }, + "total_htlcs_sent": { + "type": "u64", + "description": [ + "Number of HTLCs we ever sent." + ] + }, + "funding_txid": { + "type": "txid", + "description": [ + "ID of the funding transaction." + ] + }, + "funding_outnum": { + "type": "u32", + "description": [ + "The 0-based output number of the funding transaction which opens the channel." + ] + }, + "leased": { + "type": "boolean", + "description": [ + "Whether this channel was leased from `opener`." + ] + }, + "funding_fee_paid_msat": { + "type": "msat", + "description": [ + "How much we paid to lease the channel (iff `leased` is true and `opener` is local)." + ] + }, + "funding_fee_rcvd_msat": { + "type": "msat", + "description": [ + "How much they paid to lease the channel (iff `leased` is true and `opener` is remote)." + ] + }, + "funding_pushed_msat": { + "type": "msat", + "description": [ + "How much `opener` pushed immediate (if non-zero)." + ] + }, + "total_msat": { + "type": "msat", + "description": [ + "Total amount in the channel." + ] + }, + "final_to_us_msat": { + "type": "msat", + "description": [ + "Our balance in final commitment transaction." + ] + }, + "min_to_us_msat": { + "type": "msat", + "description": [ + "Least amount owed to us ever. If the peer were to successfully steal from us, this is the amount we would still retain." + ] + }, + "max_to_us_msat": { + "type": "msat", + "description": [ + "Most amount owed to us ever. If we were to successfully steal from the peer, this is the amount we could potentially get." + ] + }, + "last_commitment_txid": { + "type": "hash", + "description": [ + "The final commitment tx's txid (or mutual close, if we accepted it). Not present for some very old, small channels pre-0.7.0." + ] + }, + "last_commitment_fee_msat": { + "type": "msat", + "description": [ + "The fee on `last_commitment_txid`." + ] + }, + "close_cause": { + "type": "string", + "enum": [ + "unknown", + "local", + "user", + "remote", + "protocol", + "onchain" + ], + "description": [ + "What caused the channel to close." + ] + }, + "last_stable_connection": { + "type": "u64", + "added": "v24.02", + "description": [ + "Last time we reestablished the open channel and stayed connected for 1 minute." + ] + } + } + } + } + } + }, + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong." + ], + "author": [ + "Rusty Russell <>." + ], + "see_also": [ + "lightning-listpeerchannels(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-listconfigs.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listconfigs", + "title": "Command to list all configuration options.", + "description": [ + "The **listconfigs** RPC command to list all configuration options, or with *config* only one." + ], + "request": { + "required": [], + "properties": { + "config": { + "type": "string", + "description": [ + "Configuration option name to restrict return." + ] + } + } + }, + "response": { + "required": [], + "properties": { + "configs": { + "added": "v23.08", + "type": "object", + "comment": "Plugins can add fields to this, so we can't rule out additional properties :(", + "additionalProperties": true, + "required": [], + "properties": { + "conf": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from cmdline." + ] + }, + "source": { + "type": "string", + "enum": [ + "cmdline" + ], + "description": [ + "Source of configuration setting." + ] + } + } + }, + "developer": { + "type": "object", + "added": "v23.08", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "clear-plugins": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "disable-mpp": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + }, + "plugin": { + "type": "string", + "description": [ + "Plugin which registered this configuration setting." + ] + } + } + }, + "mainnet": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "regtest": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "signet": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "testnet": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "important-plugin": { + "type": "object", + "additionalProperties": false, + "required": [ + "values_str", + "sources" + ], + "properties": { + "values_str": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Field from config or cmdline." + ] + } + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + } + }, + "plugin": { + "type": "object", + "additionalProperties": false, + "required": [ + "values_str", + "sources" + ], + "properties": { + "values_str": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Field from config or cmdline." + ] + } + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + } + }, + "plugin-dir": { + "type": "object", + "additionalProperties": false, + "required": [ + "values_str", + "sources" + ], + "properties": { + "values_str": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Field from config or cmdline." + ] + } + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + } + }, + "lightning-dir": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "network": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default (can also be changed by `testnet`, `signet`, `regtest` options!)." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "allow-deprecated-apis": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_bool", + "source" + ], + "properties": { + "value_bool": { + "type": "boolean", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "rpc-file": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "disable-plugin": { + "type": "object", + "additionalProperties": false, + "required": [ + "values_str", + "sources" + ], + "properties": { + "values_str": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Field from config or cmdline." + ] + } + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + } + }, + "always-use-proxy": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_bool", + "source" + ], + "properties": { + "value_bool": { + "type": "boolean", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "daemon": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "wallet": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "large-channels": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "experimental-dual-fund": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "experimental-splicing": { + "added": "v23.08", + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "experimental-onion-messages": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "experimental-offers": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "experimental-shutdown-wrong-funding": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "experimental-peer-storage": { + "added": "v23.02", + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "experimental-anchors": { + "type": "object", + "added": "v23.08", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "database-upgrade": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_bool", + "source" + ], + "properties": { + "value_bool": { + "type": "boolean", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "rgb": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "hex", + "description": [ + "Field from config or cmdline, or default." + ], + "maxLength": 6, + "minLength": 6 + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "alias": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "pid-file": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "ignore-fee-limits": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_bool", + "source" + ], + "properties": { + "value_bool": { + "type": "boolean", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "watchtime-blocks": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u32", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "max-locktime-blocks": { + "type": "object", + "deprecated": [ + "v24.05", + "v24.11" + ], + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u32", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "funding-confirms": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u32", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "cltv-delta": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u32", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "cltv-final": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u32", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "commit-time": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u32", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "fee-base": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u32", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "rescan": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "integer", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "fee-per-satoshi": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u32", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "max-concurrent-htlcs": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u32", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "htlc-minimum-msat": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_msat", + "source" + ], + "properties": { + "value_msat": { + "type": "msat", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "htlc-maximum-msat": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_msat", + "source" + ], + "properties": { + "value_msat": { + "type": "msat", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "max-dust-htlc-exposure-msat": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_msat", + "source" + ], + "properties": { + "value_msat": { + "type": "msat", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "min-capacity-sat": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u64", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + }, + "dynamic": { + "type": "boolean", + "enum": [ + true + ], + "description": [ + "Can this be set by setconfig()." + ] + } + } + }, + "addr": { + "type": "object", + "additionalProperties": false, + "required": [ + "values_str", + "sources" + ], + "properties": { + "values_str": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Field from config or cmdline." + ] + } + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + } + }, + "announce-addr": { + "type": "object", + "additionalProperties": false, + "required": [ + "values_str", + "sources" + ], + "properties": { + "values_str": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Field from config or cmdline." + ] + } + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + } + }, + "bind-addr": { + "type": "object", + "additionalProperties": false, + "required": [ + "values_str", + "sources" + ], + "properties": { + "values_str": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Field from config or cmdline." + ] + } + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + } + }, + "offline": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "autolisten": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_bool", + "source" + ], + "properties": { + "value_bool": { + "type": "boolean", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "proxy": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "disable-dns": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "announce-addr-discovered": { + "added": "v23.02", + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "enum": [ + "true", + "false", + "auto" + ], + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "announce-addr-discovered-port": { + "added": "v23.02", + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u32", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "encrypted-hsm": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "rpc-file-mode": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "log-level": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "log-prefix": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "log-file": { + "type": "object", + "additionalProperties": false, + "required": [ + "values_str", + "sources" + ], + "properties": { + "values_str": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Field from config or cmdline." + ] + } + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + } + }, + "log-timestamps": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_bool", + "source" + ], + "properties": { + "value_bool": { + "type": "boolean", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "force-feerates": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "subdaemon": { + "type": "object", + "additionalProperties": false, + "required": [ + "values_str", + "sources" + ], + "properties": { + "values_str": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Field from config or cmdline." + ] + } + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + } + }, + "fetchinvoice-noconnect": { + "type": "object", + "additionalProperties": false, + "required": [ + "set", + "source" + ], + "properties": { + "set": { + "type": "boolean", + "description": [ + "`true` if set in config or cmdline." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "accept-htlc-tlv-types": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "tor-service-password": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_str", + "source" + ], + "properties": { + "value_str": { + "type": "string", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "announce-addr-dns": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_bool", + "source" + ], + "properties": { + "value_bool": { + "type": "boolean", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "require-confirmed-inputs": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_bool", + "source" + ], + "properties": { + "value_bool": { + "type": "boolean", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "commit-fee": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u64", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + }, + "commit-feerate-offset": { + "type": "object", + "additionalProperties": false, + "required": [ + "value_int", + "source" + ], + "properties": { + "value_int": { + "type": "u32", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "source": { + "type": "string", + "description": [ + "Source of configuration setting." + ] + } + } + } + } + }, + "# version": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "Special field indicating the current version." + ] + }, + "plugins": { + "type": "array", + "deprecated": [ + "v23.08", + "v24.02" + ], + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "path", + "name" + ], + "description": [ + "`plugin` field from config or cmdline." + ], + "properties": { + "path": { + "type": "string", + "description": [ + "Full path of the plugin." + ] + }, + "name": { + "type": "string", + "description": [ + "Short name of the plugin." + ] + }, + "options": { + "type": "object", + "additionalProperties": true, + "required": [], + "description": [ + "Specific options set for this plugin." + ], + "properties": {} + } + } + } + }, + "important-plugins": { + "type": "array", + "deprecated": [ + "v23.08", + "v24.02" + ], + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "path", + "name" + ], + "description": [ + "`important-plugin` field from config or cmdline, or built-in." + ], + "properties": { + "path": { + "type": "string", + "description": [ + "Full path of the plugin." + ] + }, + "name": { + "type": "string", + "description": [ + "Short name of the plugin." + ] + }, + "options": { + "type": "object", + "additionalProperties": true, + "required": [], + "description": [ + "Specific options set for this plugin." + ], + "properties": {} + } + } + } + }, + "conf": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`conf` field from cmdline, or default." + ] + }, + "lightning-dir": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`lightning-dir` field from config or cmdline, or default." + ] + }, + "network": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`network` field from config or cmdline, or default." + ] + }, + "allow-deprecated-apis": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`allow-deprecated-apis` field from config or cmdline, or default." + ] + }, + "rpc-file": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`rpc-file` field from config or cmdline, or default." + ] + }, + "disable-plugin": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "array", + "items": { + "type": "string", + "description": [ + "`disable-plugin` field from config or cmdline." + ] + } + }, + "bookkeeper-dir": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`bookkeeper-dir` field from config or cmdline, or default." + ] + }, + "bookkeeper-db": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`bookkeeper-db` field from config or cmdline, or default." + ] + }, + "always-use-proxy": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`always-use-proxy` field from config or cmdline, or default." + ] + }, + "daemon": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`daemon` field from config or cmdline, or default." + ] + }, + "wallet": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`wallet` field from config or cmdline default." + ] + }, + "large-channels": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`large-channels` field from config or cmdline, or default." + ] + }, + "experimental-dual-fund": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`experimental-dual-fund` field from config or cmdline, or default." + ] + }, + "experimental-splicing": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`experimental-splicing` field from config or cmdline, or default." + ] + }, + "experimental-onion-messages": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`experimental-onion-messages` field from config or cmdline, or default." + ] + }, + "experimental-offers": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`experimental-offers` field from config or cmdline, or default." + ] + }, + "experimental-shutdown-wrong-funding": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`experimental-shutdown-wrong-funding` field from config or cmdline, or default." + ] + }, + "experimental-peer-storage": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "added": "v23.02", + "description": [ + "`experimental-peer-storage` field from config or cmdline, or default." + ] + }, + "experimental-quiesce": { + "type": "boolean", + "added": "v23.08", + "deprecated": [ + "v23.08", + "v24.02" + ], + "description": [ + "`experimental-quiesce` field from config or cmdline, or default." + ] + }, + "experimental-upgrade-protocol": { + "type": "boolean", + "added": "v23.08", + "deprecated": [ + "v23.08", + "v24.02" + ], + "description": [ + "`experimental-upgrade-protocol` field from config or cmdline, or default." + ] + }, + "invoices-onchain-fallback": { + "type": "boolean", + "added": "v23.11", + "description": [ + "`invoices-onchain-fallback` field from config or cmdline, or default." + ] + }, + "database-upgrade": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`database-upgrade` field from config or cmdline." + ] + }, + "rgb": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "hex", + "description": [ + "`rgb` field from config or cmdline, or default." + ], + "maxLength": 6, + "minLength": 6 + }, + "alias": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`alias` field from config or cmdline, or default." + ] + }, + "pid-file": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`pid-file` field from config or cmdline, or default." + ] + }, + "ignore-fee-limits": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`ignore-fee-limits` field from config or cmdline, or default." + ] + }, + "watchtime-blocks": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "u32", + "description": [ + "`watchtime-blocks` field from config or cmdline, or default." + ] + }, + "max-locktime-blocks": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "u32", + "description": [ + "`max-locktime-blocks` field from config or cmdline, or default." + ] + }, + "funding-confirms": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "u32", + "description": [ + "`funding-confirms` field from config or cmdline, or default." + ] + }, + "cltv-delta": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "u32", + "description": [ + "`cltv-delta` field from config or cmdline, or default." + ] + }, + "cltv-final": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "u32", + "description": [ + "`cltv-final` field from config or cmdline, or default." + ] + }, + "commit-time": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "u32", + "description": [ + "`commit-time` field from config or cmdline, or default." + ] + }, + "fee-base": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "u32", + "description": [ + "`fee-base` field from config or cmdline, or default." + ] + }, + "rescan": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "integer", + "description": [ + "`rescan` field from config or cmdline, or default." + ] + }, + "fee-per-satoshi": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "u32", + "description": [ + "`fee-per-satoshi` field from config or cmdline, or default." + ] + }, + "max-concurrent-htlcs": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "u32", + "description": [ + "`max-concurrent-htlcs` field from config or cmdline, or default." + ] + }, + "htlc-minimum-msat": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "msat", + "description": [ + "`htlc-minimum-msat` field from config or cmdline, or default." + ] + }, + "htlc-maximum-msat": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "msat", + "description": [ + "`htlc-maximum-msat` field from config or cmdline, or default." + ] + }, + "max-dust-htlc-exposure-msat": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "msat", + "description": [ + "`max-dust-htlc-exposure-mast` field from config or cmdline, or default." + ] + }, + "min-capacity-sat": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "u64", + "description": [ + "`min-capacity-sat` field from config or cmdline, or default." + ] + }, + "addr": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`addr` field from config or cmdline (can be more than one)." + ] + }, + "announce-addr": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`announce-addr` field from config or cmdline (can be more than one)." + ] + }, + "bind-addr": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`bind-addr` field from config or cmdline (can be more than one)." + ] + }, + "offline": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`true` if `offline` was set in config or cmdline." + ] + }, + "autolisten": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`autolisten` field from config or cmdline, or default." + ] + }, + "proxy": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`proxy` field from config or cmdline, or default." + ] + }, + "disable-dns": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`true` if `disable-dns` was set in config or cmdline." + ] + }, + "announce-addr-discovered": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`true`/`false`/`auto` depending on how `announce-addr-discovered` was set in config or cmdline." + ], + "added": "v23.02" + }, + "announce-addr-discovered-port": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "integer", + "description": [ + "Sets the announced TCP port for dynamically discovered IPs." + ], + "added": "v23.02" + }, + "encrypted-hsm": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`true` if `encrypted-hsm` was set in config or cmdline." + ] + }, + "rpc-file-mode": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`rpc-file-mode` field from config or cmdline, or default." + ] + }, + "log-level": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`log-level` field from config or cmdline, or default." + ] + }, + "log-prefix": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`log-prefix` field from config or cmdline, or default." + ] + }, + "log-file": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`log-file` field from config or cmdline, or default." + ] + }, + "log-timestamps": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`log-timestamps` field from config or cmdline, or default." + ] + }, + "force-feerates": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "Force-feerate configuration setting, if any." + ] + }, + "subdaemon": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`subdaemon` fields from config or cmdline if any (can be more than one)." + ] + }, + "fetchinvoice-noconnect": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "`fetchinvoice-noconnect` fields from config or cmdline, or default." + ] + }, + "accept-htlc-tlv-types": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`accept-htlc-tlv-types` field from config or cmdline, or not present." + ] + }, + "tor-service-password": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "string", + "description": [ + "`tor-service-password` field from config or cmdline, if any." + ] + }, + "dev-allowdustreserve": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "Whether we allow setting dust reserves." + ] + }, + "announce-addr-dns": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "added": "v22.11.1", + "description": [ + "Whether we put DNS entries into node_announcement." + ] + }, + "require-confirmed-inputs": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "boolean", + "description": [ + "Request peers to only send confirmed inputs (dual-fund only)." + ] + }, + "developer": { + "added": "v23.08", + "type": "boolean", + "description": [ + "Whether developer mode is enabled." + ] + }, + "commit-fee": { + "deprecated": [ + "v23.08", + "v24.02" + ], + "type": "u64", + "added": "v23.05", + "description": [ + "The percentage of the 6-block fee estimate to use for commitment transactions." + ] + }, + "min-emergency-msat": { + "type": "msat", + "added": "v23.08", + "description": [ + "Field from config or cmdline, or default." + ] + }, + "commit-feerate-offset": { + "type": "u32", + "added": "v23.11", + "description": [ + "Additional commitment feerate applied by channel owner." + ] + } }, - "commit-feerate-offset": { - "type": "u32", - "added": "v23.11", - "description": [ - "Additional commitment feerate applied by channel owner." - ] - } + "pre_return_value_notes": [ + "The returned values reflect the current configuration, including showing default values (`dev-` options are not shown unless specified as *config* explicitly).", + "", + "Note: as plugins can add options, not all configuration settings are listed here! The format of each entry is as follows:", + "", + "- **source** (string): source of configuration setting (`file`:`linenum`)", + "- **dynamic** (boolean, optional): true if this option is settable via setconfig", + "- **plugin** (string, optional): set if this is from a plugin", + "", + "Depending on the option type, exactly one of the following is present:", + "", + "- **set** (boolean, optional): for simple flag options", + "- **value_str** (string, optional): for string options", + "- **value_msat** (msat, optional): for msat options", + "- **value_int** (integer, optional): for integer options", + "- **value_bool** (boolean, optional): for boolean options" + ] }, - "pre_return_value_notes": [ - "The returned values reflect the current configuration, including showing default values (`dev-` options are not shown unless specified as *config* explicitly).", - "", - "Note: as plugins can add options, not all configuration settings are listed here! The format of each entry is as follows:", - "", - "- **source** (string): source of configuration setting (`file`:`linenum`)", - "- **dynamic** (boolean, optional): true if this option is settable via setconfig", - "- **plugin** (string, optional): set if this is from a plugin", - "", - "Depending on the option type, exactly one of the following is present:", - "", - "- **set** (boolean, optional): for simple flag options", - "- **value_str** (string, optional): for string options", - "- **value_msat** (msat, optional): for msat options", - "- **value_int** (integer, optional): for integer options", - "- **value_bool** (boolean, optional): for boolean options" - ] - }, - "json_example": [ - { - "request": { - "id": "example:listconfigs#1", - "method": "listconfigs", - "params": { - "config": "network" + "json_example": [ + { + "request": { + "id": "example:listconfigs#1", + "method": "listconfigs", + "params": { + "config": "network" + } + }, + "response": { + "#version": "v0.9.0-1", + "lightning-dir": "/media/vincent/Maxtor/sanboxTestWrapperRPC/lightning_dir_dev", + "network": "testnet", + "allow-deprecated-apis": true, + "rpc-file": "lightning-rpc", + "plugins": [ + { + "path": "/home/vincent/Github/plugins/sauron/sauron.py", + "name": "sauron.py", + "options": { + "sauron-api-endpoint": "http://blockstream.info/testnet/api/", + "sauron-tor-proxy": "" + } + }, + { + "path": "/home/vincent/Github/reckless/reckless.py", + "name": "reckless.py" + } + ], + "important-plugins": [ + { + "path": "/home/vincent/Github/lightning/lightningd/../plugins/autoclean", + "name": "autoclean", + "options": { + "autocleaninvoice-cycle": null, + "autocleaninvoice-expired-by": null + } + }, + { + "path": "/home/vincent/Github/lightning/lightningd/../plugins/fundchannel", + "name": "fundchannel" + }, + { + "path": "/home/vincent/Github/lightning/lightningd/../plugins/keysend", + "name": "keysend" + }, + { + "path": "/home/vincent/Github/lightning/lightningd/../plugins/pay", + "name": "pay", + "options": { + "disable-mpp": false + } + } + ], + "important-plugin": "/home/vincent/Github/lightning/lightningd/../plugins/pay", + "plugin": "/home/vincent/Github/reckless/reckless.py", + "disable-plugin": [ + "bcli" + ], + "always-use-proxy": false, + "daemon": "false", + "wallet": "sqlite3:///media/vincent/Maxtor/sanboxTestWrapperRPC/lightning_dir_dev/testnet/lightningd.sqlite3", + "wumbo": true, + "rgb": "03ad98", + "alias": "BRUCEWAYN-TES-DEV", + "pid-file": "/media/vincent/Maxtor/sanboxTestWrapperRPC/lightning_dir_dev/lightningd-testne...", + "ignore-fee-limits": true, + "watchtime-blocks": 6, + "funding-confirms": 1, + "commit-fee-min": 0, + "commit-fee-max": 0, + "cltv-delta": 6, + "cltv-final": 10, + "commit-time": 10, + "fee-base": 1, + "rescan": 30, + "fee-per-satoshi": 10, + "max-concurrent-htlcs": 483, + "min-capacity-sat": 10000, + "addr": "autotor:127.0.0.1:9051", + "bind-addr": "127.0.0.1:9735", + "announce-addr": "fp463inc4w3lamhhduytrwdwq6q6uzugtaeapylqfc43agrdnnqsheyd.onion:9735", + "offline": "false", + "autolisten": true, + "proxy": "127.0.0.1:9050", + "disable-dns": "false", + "encrypted-hsm": false, + "rpc-file-mode": "0600", + "log-level": "DEBUG", + "log-prefix": "lightningd" } }, - "response": { - "#version": "v0.9.0-1", - "lightning-dir": "/media/vincent/Maxtor/sanboxTestWrapperRPC/lightning_dir_dev", - "network": "testnet", - "allow-deprecated-apis": true, - "rpc-file": "lightning-rpc", - "plugins": [ - { - "path": "/home/vincent/Github/plugins/sauron/sauron.py", - "name": "sauron.py", - "options": { - "sauron-api-endpoint": "http://blockstream.info/testnet/api/", - "sauron-tor-proxy": "" - } - }, - { - "path": "/home/vincent/Github/reckless/reckless.py", - "name": "reckless.py" + { + "request": { + "id": "example:listconfigs#2", + "method": "listconfigs", + "params": { + "config": null } - ], - "important-plugins": [ - { - "path": "/home/vincent/Github/lightning/lightningd/../plugins/autoclean", - "name": "autoclean", - "options": { - "autocleaninvoice-cycle": null, - "autocleaninvoice-expired-by": null + }, + "response": { + "configs": { + "developer": { + "set": true, + "source": "cmdline" + }, + "lightning-dir": { + "value_str": "/tmp/ltests-giwf5tc7/test_plugin_start_1/lightning-1/", + "source": "cmdline" + }, + "network": { + "value_str": "regtest", + "source": "cmdline" + }, + "testnet": { + "set": false, + "source": "default" + }, + "signet": { + "set": false, + "source": "default" + }, + "mainnet": { + "set": false, + "source": "default" + }, + "regtest": { + "set": false, + "source": "default" + }, + "rpc-file": { + "value_str": "lightning-rpc", + "source": "default" + }, + "allow-deprecated-apis": { + "value_bool": false, + "source": "cmdline" + }, + "plugin": { + "values_str": [ + "~/lightning/target/debug/examples/cln-plugin-startup" + ], + "sources": [ + "cmdline" + ] + }, + "plugin-dir": { + "values_str": [], + "sources": [] + }, + "clear-plugins": { + "set": false, + "source": "default" + }, + "disable-plugin": { + "values_str": [], + "sources": [] + }, + "important-plugin": { + "values_str": [], + "sources": [] + }, + "always-use-proxy": { + "value_bool": false, + "source": "default" + }, + "daemon": { + "set": false, + "source": "default" + }, + "experimental-dual-fund": { + "set": false, + "source": "default" + }, + "experimental-splicing": { + "set": false, + "source": "default" + }, + "experimental-onion-messages": { + "set": false, + "source": "default" + }, + "experimental-offers": { + "set": false, + "source": "default" + }, + "experimental-shutdown-wrong-funding": { + "set": false, + "source": "default" + }, + "experimental-peer-storage": { + "set": false, + "source": "default" + }, + "experimental-quiesce": { + "set": false, + "source": "default" + }, + "experimental-anchors": { + "set": false, + "source": "default" + }, + "rgb": { + "value_str": "0266e4", + "source": "default" + }, + "alias": { + "value_str": "JUNIORBEAM-1-102-g7549e10-modded", + "source": "default" + }, + "pid-file": { + "value_str": "/tmp/ltests-giwf5tc7/test_plugin_start_1/lightning-1/lightningd-regtest.pid", + "source": "default" + }, + "ignore-fee-limits": { + "value_bool": false, + "source": "cmdline" + }, + "watchtime-blocks": { + "value_int": 5, + "source": "cmdline" + }, + "max-locktime-blocks": { + "value_int": 2016, + "source": "default" + }, + "funding-confirms": { + "value_int": 1, + "source": "default" + }, + "require-confirmed-inputs": { + "value_bool": false, + "source": "default" + }, + "cltv-delta": { + "value_int": 6, + "source": "cmdline" + }, + "cltv-final": { + "value_int": 5, + "source": "cmdline" + }, + "commit-time": { + "value_int": 10, + "source": "default" + }, + "fee-base": { + "value_int": 1, + "source": "default" + }, + "rescan": { + "value_int": 1, + "source": "cmdline" + }, + "fee-per-satoshi": { + "value_int": 10, + "source": "default" + }, + "htlc-minimum-msat": { + "value_msat": 0, + "source": "default" + }, + "htlc-maximum-msat": { + "value_msat": 18446744073709552000, + "source": "default" + }, + "max-concurrent-htlcs": { + "value_int": 483, + "source": "default" + }, + "max-dust-htlc-exposure-msat": { + "value_msat": 50000000, + "source": "default" + }, + "min-capacity-sat": { + "value_int": 10000, + "source": "default", + "dynamic": true + }, + "addr": { + "values_str": [ + "127.0.0.1:33157" + ], + "sources": [ + "cmdline" + ] + }, + "bind-addr": { + "values_str": [], + "sources": [] + }, + "announce-addr": { + "values_str": [], + "sources": [] + }, + "announce-addr-discovered": { + "value_str": "auto", + "source": "default" + }, + "announce-addr-discovered-port": { + "value_int": 19846, + "source": "default" + }, + "offline": { + "set": false, + "source": "default" + }, + "autolisten": { + "value_bool": false, + "source": "default" + }, + "accept-htlc-tlv-type": { + "values_int": [], + "sources": [] + }, + "disable-dns": { + "set": true, + "source": "cmdline" + }, + "encrypted-hsm": { + "set": false, + "source": "default" + }, + "rpc-file-mode": { + "value_str": "0600", + "source": "default" + }, + "commit-fee": { + "value_int": 100, + "source": "default" + }, + "commit-feerate-offset": { + "value_int": 5, + "source": "default" + }, + "min-emergency-msat": { + "value_msat": 25000000, + "source": "default" + }, + "subdaemon": { + "values_str": [], + "sources": [] + }, + "experimental-upgrade-protocol": { + "set": false, + "source": "default" + }, + "invoices-onchain-fallback": { + "set": false, + "source": "default" + }, + "log-level": { + "value_str": "debug", + "source": "cmdline" + }, + "log-timestamps": { + "value_bool": true, + "source": "default" + }, + "log-prefix": { + "value_str": "lightningd-1 ", + "source": "cmdline" + }, + "log-file": { + "values_str": [ + "-", + "/tmp/ltests-giwf5tc7/test_plugin_start_1/lightning-1/log" + ], + "sources": [ + "cmdline", + "cmdline" + ] + }, + "dev-no-plugin-checksum": { + "set": true, + "source": "cmdline" + }, + "dev-no-reconnect": { + "set": true, + "source": "cmdline" + }, + "dev-fail-on-subdaemon-fail": { + "set": true, + "source": "cmdline" + }, + "dev-bitcoind-poll": { + "value_int": 1, + "source": "cmdline" + }, + "dev-fast-gossip": { + "set": true, + "source": "cmdline" + }, + "renepay-debug-mcf": { + "set": false, + "source": "default", + "plugin": "~/lightning/plugins/cln-renepay" + }, + "renepay-debug-payflow": { + "set": false, + "source": "default", + "plugin": "~/lightning/plugins/cln-renepay" + }, + "test-option": { + "value_int": 31337, + "source": "cmdline", + "plugin": "~/lightning/target/debug/examples/cln-plugin-startup" + }, + "bitcoin-datadir": { + "value_str": "/tmp/ltests-giwf5tc7/test_plugin_start_1/lightning-1/", + "source": "cmdline", + "plugin": "~/lightning/plugins/bcli" + }, + "bitcoin-rpcuser": { + "value_str": "rpcuser", + "source": "cmdline", + "plugin": "~/lightning/plugins/bcli" + }, + "bitcoin-rpcpassword": { + "value_str": "rpcpass", + "source": "cmdline", + "plugin": "~/lightning/plugins/bcli" + }, + "bitcoin-rpcport": { + "value_int": 51309, + "source": "cmdline", + "plugin": "~/lightning/plugins/bcli" + }, + "disable-mpp": { + "set": false, + "source": "default", + "plugin": "~/lightning/plugins/pay" } - }, - { - "path": "/home/vincent/Github/lightning/lightningd/../plugins/fundchannel", - "name": "fundchannel" - }, - { - "path": "/home/vincent/Github/lightning/lightningd/../plugins/keysend", - "name": "keysend" - }, - { - "path": "/home/vincent/Github/lightning/lightningd/../plugins/pay", - "name": "pay", - "options": { - "disable-mpp": false + } + } + }, + { + "request": { + "id": "example:listconfigs#3", + "method": "listconfigs", + "params": { + "config": "experimental-dual-fund" + } + }, + "response": { + "configs": { + "experimental-dual-fund": { + "set": false, + "source": "default" } } - ], - "important-plugin": "/home/vincent/Github/lightning/lightningd/../plugins/pay", - "plugin": "/home/vincent/Github/reckless/reckless.py", - "disable-plugin": [ - "bcli" - ], - "always-use-proxy": false, - "daemon": "false", - "wallet": "sqlite3:///media/vincent/Maxtor/sanboxTestWrapperRPC/lightning_dir_dev/testnet/lightningd.sqlite3", - "wumbo": true, - "rgb": "03ad98", - "alias": "BRUCEWAYN-TES-DEV", - "pid-file": "/media/vincent/Maxtor/sanboxTestWrapperRPC/lightning_dir_dev/lightningd-testne...", - "ignore-fee-limits": true, - "watchtime-blocks": 6, - "funding-confirms": 1, - "commit-fee-min": 0, - "commit-fee-max": 0, - "cltv-delta": 6, - "cltv-final": 10, - "commit-time": 10, - "fee-base": 1, - "rescan": 30, - "fee-per-satoshi": 10, - "max-concurrent-htlcs": 483, - "min-capacity-sat": 10000, - "addr": "autotor:127.0.0.1:9051", - "bind-addr": "127.0.0.1:9735", - "announce-addr": "fp463inc4w3lamhhduytrwdwq6q6uzugtaeapylqfc43agrdnnqsheyd.onion:9735", - "offline": "false", - "autolisten": true, - "proxy": "127.0.0.1:9050", - "disable-dns": "false", - "encrypted-hsm": false, - "rpc-file-mode": "0600", - "log-level": "DEBUG", - "log-prefix": "lightningd" + } } - }, - { - "request": { - "id": "example:listconfigs#2", - "method": "listconfigs", - "params": { - "config": null + ], + "errors": [ + "On failure, one of the following error codes may be returned:", + "", + "- -32602: Error in given parameters or field with *config* name doesn't exist." + ], + "author": [ + "Vincenzo Palazzo <> wrote the initial version of this man page,", + "but many others did the hard work of actually implementing this rpc command." + ], + "see_also": [ + "lightning-getinfo(7)", + "lightningd-config(5)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-listdatastore.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listdatastore", + "title": "Command for listing (plugin) data", + "description": [ + "The **listdatastore** RPC command allows plugins to fetch data which was stored in the Core Lightning database." + ], + "request": { + "required": [], + "properties": { + "key": { + "oneOf": [ + { + "type": "array", + "description": [ + "All immediate children of the *key* (or root children) are returned.", + " Using the first element of the key as the plugin name (e.g. `[ 'summary' ]`) is recommended.", + " An array of values to form a hierarchy (though a single value is treated as a one-element array)." + ], + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] } - }, - "response": { - "configs": { - "developer": { - "set": true, - "source": "cmdline" - }, - "lightning-dir": { - "value_str": "/tmp/ltests-giwf5tc7/test_plugin_start_1/lightning-1/", - "source": "cmdline" - }, - "network": { - "value_str": "regtest", - "source": "cmdline" - }, - "testnet": { - "set": false, - "source": "default" - }, - "signet": { - "set": false, - "source": "default" - }, - "mainnet": { - "set": false, - "source": "default" - }, - "regtest": { - "set": false, - "source": "default" - }, - "rpc-file": { - "value_str": "lightning-rpc", - "source": "default" - }, - "allow-deprecated-apis": { - "value_bool": false, - "source": "cmdline" - }, - "plugin": { - "values_str": [ - "~/lightning/target/debug/examples/cln-plugin-startup" - ], - "sources": [ - "cmdline" - ] - }, - "plugin-dir": { - "values_str": [], - "sources": [] - }, - "clear-plugins": { - "set": false, - "source": "default" - }, - "disable-plugin": { - "values_str": [], - "sources": [] - }, - "important-plugin": { - "values_str": [], - "sources": [] - }, - "always-use-proxy": { - "value_bool": false, - "source": "default" - }, - "daemon": { - "set": false, - "source": "default" - }, - "experimental-dual-fund": { - "set": false, - "source": "default" - }, - "experimental-splicing": { - "set": false, - "source": "default" - }, - "experimental-onion-messages": { - "set": false, - "source": "default" - }, - "experimental-offers": { - "set": false, - "source": "default" - }, - "experimental-shutdown-wrong-funding": { - "set": false, - "source": "default" - }, - "experimental-peer-storage": { - "set": false, - "source": "default" - }, - "experimental-quiesce": { - "set": false, - "source": "default" - }, - "experimental-anchors": { - "set": false, - "source": "default" - }, - "rgb": { - "value_str": "0266e4", - "source": "default" - }, - "alias": { - "value_str": "JUNIORBEAM-1-102-g7549e10-modded", - "source": "default" - }, - "pid-file": { - "value_str": "/tmp/ltests-giwf5tc7/test_plugin_start_1/lightning-1/lightningd-regtest.pid", - "source": "default" - }, - "ignore-fee-limits": { - "value_bool": false, - "source": "cmdline" - }, - "watchtime-blocks": { - "value_int": 5, - "source": "cmdline" - }, - "max-locktime-blocks": { - "value_int": 2016, - "source": "default" - }, - "funding-confirms": { - "value_int": 1, - "source": "default" - }, - "require-confirmed-inputs": { - "value_bool": false, - "source": "default" - }, - "cltv-delta": { - "value_int": 6, - "source": "cmdline" - }, - "cltv-final": { - "value_int": 5, - "source": "cmdline" - }, - "commit-time": { - "value_int": 10, - "source": "default" - }, - "fee-base": { - "value_int": 1, - "source": "default" - }, - "rescan": { - "value_int": 1, - "source": "cmdline" - }, - "fee-per-satoshi": { - "value_int": 10, - "source": "default" - }, - "htlc-minimum-msat": { - "value_msat": 0, - "source": "default" - }, - "htlc-maximum-msat": { - "value_msat": 18446744073709552000, - "source": "default" - }, - "max-concurrent-htlcs": { - "value_int": 483, - "source": "default" - }, - "max-dust-htlc-exposure-msat": { - "value_msat": 50000000, - "source": "default" - }, - "min-capacity-sat": { - "value_int": 10000, - "source": "default", - "dynamic": true - }, - "addr": { - "values_str": [ - "127.0.0.1:33157" - ], - "sources": [ - "cmdline" - ] - }, - "bind-addr": { - "values_str": [], - "sources": [] - }, - "announce-addr": { - "values_str": [], - "sources": [] - }, - "announce-addr-discovered": { - "value_str": "auto", - "source": "default" - }, - "announce-addr-discovered-port": { - "value_int": 19846, - "source": "default" - }, - "offline": { - "set": false, - "source": "default" - }, - "autolisten": { - "value_bool": false, - "source": "default" - }, - "accept-htlc-tlv-type": { - "values_int": [], - "sources": [] - }, - "disable-dns": { - "set": true, - "source": "cmdline" - }, - "encrypted-hsm": { - "set": false, - "source": "default" - }, - "rpc-file-mode": { - "value_str": "0600", - "source": "default" - }, - "commit-fee": { - "value_int": 100, - "source": "default" - }, - "commit-feerate-offset": { - "value_int": 5, - "source": "default" - }, - "min-emergency-msat": { - "value_msat": 25000000, - "source": "default" - }, - "subdaemon": { - "values_str": [], - "sources": [] - }, - "experimental-upgrade-protocol": { - "set": false, - "source": "default" - }, - "invoices-onchain-fallback": { - "set": false, - "source": "default" - }, - "log-level": { - "value_str": "debug", - "source": "cmdline" - }, - "log-timestamps": { - "value_bool": true, - "source": "default" - }, - "log-prefix": { - "value_str": "lightningd-1 ", - "source": "cmdline" - }, - "log-file": { - "values_str": [ - "-", - "/tmp/ltests-giwf5tc7/test_plugin_start_1/lightning-1/log" + } + }, + "response": { + "required": [ + "datastore" + ], + "properties": { + "datastore": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "key" ], - "sources": [ - "cmdline", - "cmdline" - ] - }, - "dev-no-plugin-checksum": { - "set": true, - "source": "cmdline" - }, - "dev-no-reconnect": { - "set": true, - "source": "cmdline" - }, - "dev-fail-on-subdaemon-fail": { - "set": true, - "source": "cmdline" - }, - "dev-bitcoind-poll": { - "value_int": 1, - "source": "cmdline" - }, - "dev-fast-gossip": { - "set": true, - "source": "cmdline" - }, - "renepay-debug-mcf": { - "set": false, - "source": "default", - "plugin": "~/lightning/plugins/cln-renepay" - }, - "renepay-debug-payflow": { - "set": false, - "source": "default", - "plugin": "~/lightning/plugins/cln-renepay" - }, - "test-option": { - "value_int": 31337, - "source": "cmdline", - "plugin": "~/lightning/target/debug/examples/cln-plugin-startup" - }, - "bitcoin-datadir": { - "value_str": "/tmp/ltests-giwf5tc7/test_plugin_start_1/lightning-1/", - "source": "cmdline", - "plugin": "~/lightning/plugins/bcli" - }, - "bitcoin-rpcuser": { - "value_str": "rpcuser", - "source": "cmdline", - "plugin": "~/lightning/plugins/bcli" - }, - "bitcoin-rpcpassword": { - "value_str": "rpcpass", - "source": "cmdline", - "plugin": "~/lightning/plugins/bcli" - }, - "bitcoin-rpcport": { - "value_int": 51309, - "source": "cmdline", - "plugin": "~/lightning/plugins/bcli" - }, - "disable-mpp": { - "set": false, - "source": "default", - "plugin": "~/lightning/plugins/pay" + "properties": { + "key": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Part of the key added to the datastore." + ] + } + }, + "generation": { + "type": "u64", + "description": [ + "The number of times this has been updated." + ] + }, + "hex": { + "type": "hex", + "description": [ + "The hex data from the datastore." + ] + }, + "string": { + "type": "string", + "description": [ + "The data as a string, if it's valid utf-8." + ] + } + } } } } }, - { - "request": { - "id": "example:listconfigs#3", - "method": "listconfigs", - "params": { - "config": "experimental-dual-fund" + "errors": [ + "The following error codes may occur:", + "", + "- -32602: invalid parameters." + ], + "json_example": [ + { + "request": { + "id": "example:listdatastore#1", + "method": "listdatastore", + "params": { + "key": [ + "commando" + ] + } + }, + "response": { + "datastore": [] } }, - "response": { - "configs": { - "experimental-dual-fund": { - "set": false, - "source": "default" + { + "request": { + "id": "example:listdatastore#2", + "method": "listdatastore", + "params": { + "key": "otherkey" } - } - } - } - ], - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32602: Error in given parameters or field with *config* name doesn't exist." - ], - "author": [ - "Vincenzo Palazzo <> wrote the initial version of this man page,", - "but many others did the hard work of actually implementing this rpc command." - ], - "see_also": [ - "lightning-getinfo(7)", - "lightningd-config(5)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listdatastore.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listdatastore", - "title": "Command for listing (plugin) data", - "description": [ - "The **listdatastore** RPC command allows plugins to fetch data which was stored in the Core Lightning database." - ], - "request": { - "required": [], - "properties": { - "key": { - "oneOf": [ - { - "type": "array", - "description": [ - "All immediate children of the *key* (or root children) are returned.", - " Using the first element of the key as the plugin name (e.g. `[ 'summary' ]`) is recommended.", - " An array of values to form a hierarchy (though a single value is treated as a one-element array)." - ], - "items": { - "type": "string" + }, + "response": { + "datastore": [ + { + "key": [ + "otherkey" + ], + "generation": 0, + "hex": "6f7468657264617461", + "string": "otherdata" } - }, - { - "type": "string" - } - ] + ] + } } - } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-datastore(7)", + "lightning-deldatastore(7)", + "lightning-datastoreusage(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "datastore" + "lightning-listforwards.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listforwards", + "title": "Command showing all htlcs and their information", + "description": [ + "The **listforwards** RPC command displays all htlcs that have been attempted to be forwarded by the Core Lightning node." ], - "properties": { - "datastore": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "key" + "request": { + "required": [], + "properties": { + "status": { + "type": "string", + "description": [ + "If specified, then only the forwards with the given status are returned." ], - "properties": { - "key": { - "type": "array", - "items": { + "enum": [ + "offered", + "settled", + "local_failed", + "failed" + ] + }, + "in_channel": { + "type": "short_channel_id", + "description": [ + "Only the matching forwards on the given inbound channel are returned." + ] + }, + "out_channel": { + "type": "short_channel_id", + "description": [ + "Only the matching forwards on the given outbount channel are returned." + ] + }, + "index": { + "type": "string", + "added": "v23.11", + "enum": [ + "created", + "updated" + ], + "description": [ + "If neither *in_channel* nor *out_channel* is specified, it controls ordering." + ], + "default": "`created`" + }, + "start": { + "type": "u64", + "added": "v23.11", + "description": [ + "If `index` is specified, `start` may be specified to start from that value, which is generally returned from lightning-wait(7)." + ] + }, + "limit": { + "type": "u32", + "added": "v23.11", + "description": [ + "If `index` is specified, `limit` can be used to specify the maximum number of entries to return." + ] + } + }, + "dependentUpon": { + "index": [ + "start", + "limit" + ] + } + }, + "response": { + "required": [ + "forwards" + ], + "properties": { + "forwards": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "created_index", + "in_channel", + "in_msat", + "status", + "received_time" + ], + "properties": { + "created_index": { + "added": "v23.11", + "type": "u64", + "description": [ + "1-based index indicating order this forward was created in." + ] + }, + "in_channel": { + "type": "short_channel_id", + "description": [ + "The channel that received the HTLC." + ] + }, + "in_htlc_id": { + "type": "u64", + "description": [ + "The unique HTLC id the sender gave this (not present if incoming channel was closed before upgrade to v22.11)." + ] + }, + "in_msat": { + "type": "msat", + "description": [ + "The value of the incoming HTLC." + ] + }, + "status": { + "type": "string", + "enum": [ + "offered", + "settled", + "local_failed", + "failed" + ], + "description": [ + "Still ongoing, completed, failed locally, or failed after forwarding." + ] + }, + "received_time": { + "type": "number", + "description": [ + "The UNIX timestamp when this was received." + ] + }, + "out_channel": { + "type": "short_channel_id", + "description": [ + "The channel that the HTLC (trying to) forward to." + ] + }, + "out_htlc_id": { + "type": "u64", + "description": [ + "The unique HTLC id we gave this when sending (may be missing even if out_channel is present, for old forwards before v22.11)." + ] + }, + "updated_index": { + "added": "v23.11", + "type": "u64", + "description": [ + "1-based index indicating order this forward was changed (only present if it has changed since creation)." + ] + }, + "style": { "type": "string", + "enum": [ + "legacy", + "tlv" + ], "description": [ - "Part of the key added to the datastore." + "Either a legacy onion format or a modern tlv format." ] } }, - "generation": { - "type": "u64", - "description": [ - "The number of times this has been updated." - ] - }, - "hex": { - "type": "hex", - "description": [ - "The hex data from the datastore." - ] - }, - "string": { - "type": "string", - "description": [ - "The data as a string, if it's valid utf-8." - ] - } + "allOf": [ + { + "if": { + "required": [ + "out_msat" + ] + }, + "then": { + "additionalProperties": false, + "required": [ + "fee_msat", + "out_msat", + "out_channel" + ], + "properties": { + "created_index": {}, + "updated_index": {}, + "in_channel": {}, + "in_htlc_id": {}, + "in_msatoshi": {}, + "in_msat": {}, + "status": {}, + "style": {}, + "received_time": {}, + "resolved_time": {}, + "out_channel": {}, + "out_htlc_id": {}, + "failcode": {}, + "failreason": {}, + "fee_msat": { + "type": "msat", + "description": [ + "The amount this paid in fees." + ] + }, + "out_msat": { + "type": "msat", + "description": [ + "The amount we sent out the *out_channel*." + ] + } + } + }, + "else": { + "additionalProperties": false, + "required": [], + "properties": { + "created_index": {}, + "updated_index": {}, + "in_channel": {}, + "in_htlc_id": {}, + "in_msatoshi": {}, + "in_msat": {}, + "status": {}, + "style": {}, + "received_time": {}, + "resolved_time": {}, + "failcode": {}, + "failreason": {}, + "out_channel": {} + } + } + }, + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "settled", + "failed" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "resolved_time" + ], + "properties": { + "created_index": {}, + "updated_index": {}, + "in_channel": {}, + "in_htlc_id": {}, + "in_msatoshi": {}, + "in_msat": {}, + "status": {}, + "style": {}, + "received_time": {}, + "out_channel": {}, + "out_htlc_id": {}, + "fee": {}, + "fee_msat": {}, + "out_msatoshi": {}, + "out_msat": {}, + "failcode": {}, + "failreason": {}, + "resolved_time": { + "type": "number", + "description": [ + "The UNIX timestamp when this was resolved." + ] + } + } + }, + "else": { + "additionalProperties": false, + "properties": { + "created_index": {}, + "updated_index": {}, + "in_channel": {}, + "in_htlc_id": {}, + "in_msatoshi": {}, + "in_msat": {}, + "status": {}, + "style": {}, + "received_time": {}, + "out_channel": {}, + "out_htlc_id": {}, + "fee": {}, + "fee_msat": {}, + "failcode": {}, + "failreason": {}, + "out_msatoshi": {}, + "out_msat": {} + } + } + }, + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "local_failed", + "failed" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [], + "properties": { + "created_index": {}, + "updated_index": {}, + "in_channel": {}, + "in_htlc_id": {}, + "in_msatoshi": {}, + "in_msat": {}, + "status": {}, + "style": {}, + "received_time": {}, + "out_channel": {}, + "out_htlc_id": {}, + "fee": {}, + "fee_msat": {}, + "out_msatoshi": {}, + "out_msat": {}, + "resolved_time": {}, + "failcode": { + "type": "u32", + "description": [ + "The numeric onion code returned." + ] + }, + "failreason": { + "type": "string", + "description": [ + "The name of the onion code returned." + ] + } + } + }, + "else": { + "additionalProperties": false, + "required": [], + "properties": { + "created_index": {}, + "updated_index": {}, + "in_channel": {}, + "in_htlc_id": {}, + "in_msatoshi": {}, + "in_msat": {}, + "status": {}, + "style": {}, + "received_time": {}, + "out_channel": {}, + "out_htlc_id": {}, + "fee": {}, + "fee_msat": {}, + "out_msatoshi": {}, + "out_msat": {}, + "resolved_time": {} + } + } + } + ] } } } - } - }, - "errors": [ - "The following error codes may occur:", - "", - "- -32602: invalid parameters." - ], - "json_example": [ - { - "request": { - "id": "example:listdatastore#1", - "method": "listdatastore", - "params": { - "key": [ - "commando" - ] - } - }, - "response": { - "datastore": [] - } }, - { - "request": { - "id": "example:listdatastore#2", - "method": "listdatastore", - "params": { - "key": "otherkey" - } - }, - "response": { - "datastore": [ - { - "key": [ - "otherkey" - ], - "generation": 0, - "hex": "6f7468657264617461", - "string": "otherdata" + "json_example": [ + { + "request": { + "id": "example:listforwards#1", + "method": "listforwards", + "params": { + "status": null, + "in_channel": null, + "out_channel": null, + "index": null, + "start": null, + "limit": null } - ] - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-datastore(7)", - "lightning-deldatastore(7)", - "lightning-datastoreusage(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listforwards.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listforwards", - "title": "Command showing all htlcs and their information", - "description": [ - "The **listforwards** RPC command displays all htlcs that have been attempted to be forwarded by the Core Lightning node." - ], - "request": { - "required": [], - "properties": { - "status": { - "type": "string", - "description": [ - "If specified, then only the forwards with the given status are returned." - ], - "enum": [ - "offered", - "settled", - "local_failed", - "failed" - ] - }, - "in_channel": { - "type": "short_channel_id", - "description": [ - "Only the matching forwards on the given inbound channel are returned." - ] - }, - "out_channel": { - "type": "short_channel_id", - "description": [ - "Only the matching forwards on the given outbount channel are returned." - ] - }, - "index": { - "type": "string", - "added": "v23.11", - "enum": [ - "created", - "updated" - ], - "description": [ - "If neither *in_channel* nor *out_channel* is specified, it controls ordering." - ], - "default": "`created`" - }, - "start": { - "type": "u64", - "added": "v23.11", - "description": [ - "If `index` is specified, `start` may be specified to start from that value, which is generally returned from lightning-wait(7)." - ] + }, + "response": { + "forwards": [ + { + "created_index": 1, + "updated_index": 1, + "in_channel": "103x1x0", + "in_htlc_id": 0, + "out_channel": "104x1x0", + "out_htlc_id": 0, + "in_msat": 100001001, + "out_msat": 100000000, + "fee_msat": 1001, + "status": "settled", + "style": "tlv", + "received_time": 1706229285.5934534, + "resolved_time": 1706229288.830004 + }, + { + "created_index": 2, + "updated_index": 2, + "in_channel": "103x1x0", + "in_htlc_id": 1, + "out_channel": "105x1x0", + "out_htlc_id": 0, + "in_msat": 100001001, + "out_msat": 100000000, + "fee_msat": 1001, + "status": "failed", + "style": "tlv", + "received_time": 1706229290.0289993, + "resolved_time": 1706229292.9487684 + }, + { + "created_index": 3, + "updated_index": 3, + "in_channel": "103x1x0", + "in_htlc_id": 2, + "out_channel": "106x1x0", + "out_htlc_id": 0, + "in_msat": 100001000, + "out_msat": 99999999, + "fee_msat": 1001, + "status": "local_failed", + "failcode": 16392, + "failreason": "WIRE_PERMANENT_CHANNEL_FAILURE", + "style": "tlv", + "received_time": 1706229295.3175724 + } + ] + } }, - "limit": { - "type": "u32", - "added": "v23.11", - "description": [ - "If `index` is specified, `limit` can be used to specify the maximum number of entries to return." - ] + { + "request": { + "id": "example:listforwards#2", + "method": "listforwards", + "params": { + "in_channel": "0x1x2", + "out_channel": "0x2x3", + "status": "settled" + } + }, + "response": { + "forwards": [] + } } - }, - "dependentUpon": { - "index": [ - "start", - "limit" - ] - } + ], + "author": [ + "Rene Pickhardt <> is mainly responsible." + ], + "see_also": [ + "lightning-autoclean-status(7)", + "lightning-getinfo(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "forwards" + "lightning-listfunds.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listfunds", + "title": "Command showing all funds currently managed by the Core Lightning node", + "description": [ + "The **listfunds** RPC command displays all funds available, either in unspent outputs (UTXOs) in the internal wallet or funds locked in currently open channels." ], - "properties": { - "forwards": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "created_index", - "in_channel", - "in_msat", - "status", - "received_time" + "request": { + "required": [], + "properties": { + "spent": { + "type": "boolean", + "description": [ + "If True, then the *outputs* will include spent outputs in addition to the unspent ones." ], - "properties": { - "created_index": { - "added": "v23.11", - "type": "u64", - "description": [ - "1-based index indicating order this forward was created in." - ] - }, - "in_channel": { - "type": "short_channel_id", - "description": [ - "The channel that received the HTLC." - ] - }, - "in_htlc_id": { - "type": "u64", - "description": [ - "The unique HTLC id the sender gave this (not present if incoming channel was closed before upgrade to v22.11)." - ] - }, - "in_msat": { - "type": "msat", - "description": [ - "The value of the incoming HTLC." - ] - }, - "status": { - "type": "string", - "enum": [ - "offered", - "settled", - "local_failed", - "failed" - ], - "description": [ - "Still ongoing, completed, failed locally, or failed after forwarding." - ] - }, - "received_time": { - "type": "number", - "description": [ - "The UNIX timestamp when this was received." - ] - }, - "out_channel": { - "type": "short_channel_id", - "description": [ - "The channel that the HTLC (trying to) forward to." - ] - }, - "out_htlc_id": { - "type": "u64", - "description": [ - "The unique HTLC id we gave this when sending (may be missing even if out_channel is present, for old forwards before v22.11)." - ] - }, - "updated_index": { - "added": "v23.11", - "type": "u64", - "description": [ - "1-based index indicating order this forward was changed (only present if it has changed since creation)." - ] - }, - "style": { - "type": "string", - "enum": [ - "legacy", - "tlv" - ], - "description": [ - "Either a legacy onion format or a modern tlv format." - ] - } - }, - "allOf": [ - { - "if": { - "required": [ - "out_msat" + "default": "False" + } + } + }, + "response": { + "required": [ + "outputs", + "channels" + ], + "properties": { + "outputs": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "txid", + "output", + "amount_msat", + "scriptpubkey", + "status", + "reserved" + ], + "properties": { + "txid": { + "type": "txid", + "description": [ + "The ID of the spendable transaction." ] }, - "then": { - "additionalProperties": false, - "required": [ - "fee_msat", - "out_msat", - "out_channel" - ], - "properties": { - "created_index": {}, - "updated_index": {}, - "in_channel": {}, - "in_htlc_id": {}, - "in_msatoshi": {}, - "in_msat": {}, - "status": {}, - "style": {}, - "received_time": {}, - "resolved_time": {}, - "out_channel": {}, - "out_htlc_id": {}, - "failcode": {}, - "failreason": {}, - "fee_msat": { - "type": "msat", - "description": [ - "The amount this paid in fees." - ] - }, - "out_msat": { - "type": "msat", - "description": [ - "The amount we sent out the *out_channel*." - ] - } - } + "output": { + "type": "u32", + "description": [ + "The index within *txid*." + ] }, - "else": { - "additionalProperties": false, - "required": [], - "properties": { - "created_index": {}, - "updated_index": {}, - "in_channel": {}, - "in_htlc_id": {}, - "in_msatoshi": {}, - "in_msat": {}, - "status": {}, - "style": {}, - "received_time": {}, - "resolved_time": {}, - "failcode": {}, - "failreason": {}, - "out_channel": {} - } + "amount_msat": { + "type": "msat", + "description": [ + "The amount of the output." + ] + }, + "scriptpubkey": { + "type": "hex", + "description": [ + "The scriptPubkey of the output." + ] + }, + "address": { + "type": "string", + "description": [ + "The bitcoin address of the output." + ] + }, + "redeemscript": { + "type": "hex", + "description": [ + "The redeemscript, only if it's p2sh-wrapped." + ] + }, + "status": { + "type": "string", + "enum": [ + "unconfirmed", + "confirmed", + "spent", + "immature" + ] + }, + "reserved": { + "type": "boolean", + "description": [ + "Whether this UTXO is currently reserved for an in-flight tx." + ] } }, - { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "settled", - "failed" - ] + "allOf": [ + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "confirmed" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "blockheight" + ], + "properties": { + "txid": {}, + "output": {}, + "amount_msat": {}, + "scriptpubkey": {}, + "address": {}, + "value": {}, + "redeemscript": {}, + "status": {}, + "reserved": {}, + "reserved_to_block": {}, + "blockheight": { + "type": "u32", + "description": [ + "Block height where it was confirmed." + ] + } } } }, - "then": { - "additionalProperties": false, - "required": [ - "resolved_time" - ], - "properties": { - "created_index": {}, - "updated_index": {}, - "in_channel": {}, - "in_htlc_id": {}, - "in_msatoshi": {}, - "in_msat": {}, - "status": {}, - "style": {}, - "received_time": {}, - "out_channel": {}, - "out_htlc_id": {}, - "fee": {}, - "fee_msat": {}, - "out_msatoshi": {}, - "out_msat": {}, - "failcode": {}, - "failreason": {}, - "resolved_time": { - "type": "number", - "description": [ - "The UNIX timestamp when this was resolved." - ] + { + "if": { + "properties": { + "reserved": { + "type": "boolean", + "enum": [ + "true" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "reserved_to_block" + ], + "properties": { + "txid": {}, + "output": {}, + "amount_msat": {}, + "scriptpubkey": {}, + "address": {}, + "value": {}, + "redeemscript": {}, + "status": {}, + "blockheight": {}, + "reserved": {}, + "reserved_to_block": { + "type": "u32", + "description": [ + "Block height where reservation will expire." + ] + } } } + } + ] + } + }, + "channels": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "peer_id", + "our_amount_msat", + "amount_msat", + "funding_txid", + "funding_output", + "connected", + "state", + "channel_id" + ], + "properties": { + "peer_id": { + "type": "pubkey", + "description": [ + "The peer with which the channel is opened." + ] }, - "else": { - "additionalProperties": false, - "properties": { - "created_index": {}, - "updated_index": {}, - "in_channel": {}, - "in_htlc_id": {}, - "in_msatoshi": {}, - "in_msat": {}, - "status": {}, - "style": {}, - "received_time": {}, - "out_channel": {}, - "out_htlc_id": {}, - "fee": {}, - "fee_msat": {}, - "failcode": {}, - "failreason": {}, - "out_msatoshi": {}, - "out_msat": {} - } + "our_amount_msat": { + "type": "msat", + "description": [ + "Available satoshis on our node's end of the channel." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "Total channel value." + ] + }, + "funding_txid": { + "type": "txid", + "description": [ + "Funding transaction id." + ] + }, + "funding_output": { + "type": "u32", + "description": [ + "The 0-based index of the output in the funding transaction." + ] + }, + "connected": { + "type": "boolean", + "description": [ + "Whether the channel peer is connected." + ] + }, + "state": { + "type": "string", + "enum": [ + "OPENINGD", + "CHANNELD_AWAITING_LOCKIN", + "CHANNELD_NORMAL", + "CHANNELD_SHUTTING_DOWN", + "CLOSINGD_SIGEXCHANGE", + "CLOSINGD_COMPLETE", + "AWAITING_UNILATERAL", + "FUNDING_SPEND_SEEN", + "ONCHAIN", + "DUALOPEND_OPEN_INIT", + "DUALOPEND_AWAITING_LOCKIN", + "DUALOPEND_OPEN_COMMITTED", + "DUALOPEND_OPEN_COMMIT_READY" + ], + "description": [ + "The channel state, in particular `CHANNELD_NORMAL` means the channel can be used normally." + ] + }, + "channel_id": { + "type": "hash", + "description": [ + "The full channel_id (funding txid Xored with output number)." + ], + "added": "v23.05" } }, - { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "local_failed", - "failed" - ] + "allOf": [ + { + "if": { + "properties": { + "state": { + "type": "string", + "enum": [ + "CHANNELD_NORMAL" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "short_channel_id" + ], + "properties": { + "peer_id": {}, + "our_amount_msat": {}, + "channel_sat": {}, + "amount_msat": {}, + "channel_total_sat": {}, + "funding_txid": {}, + "funding_output": {}, + "connected": {}, + "state": {}, + "channel_id": {}, + "short_channel_id": { + "type": "short_channel_id", + "description": [ + "Short channel id of channel." + ] + } } } }, - "then": { - "additionalProperties": false, - "required": [], - "properties": { - "created_index": {}, - "updated_index": {}, - "in_channel": {}, - "in_htlc_id": {}, - "in_msatoshi": {}, - "in_msat": {}, - "status": {}, - "style": {}, - "received_time": {}, - "out_channel": {}, - "out_htlc_id": {}, - "fee": {}, - "fee_msat": {}, - "out_msatoshi": {}, - "out_msat": {}, - "resolved_time": {}, - "failcode": { - "type": "u32", - "description": [ - "The numeric onion code returned." - ] - }, - "failreason": { - "type": "string", - "description": [ - "The name of the onion code returned." - ] + { + "if": { + "properties": { + "state": { + "type": "string", + "enum": [ + "CHANNELD_SHUTTING_DOWN", + "CLOSINGD_SIGEXCHANGE", + "CLOSINGD_COMPLETE", + "AWAITING_UNILATERAL", + "FUNDING_SPEND_SEEN", + "ONCHAIN" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [], + "properties": { + "peer_id": {}, + "our_amount_msat": {}, + "channel_sat": {}, + "amount_msat": {}, + "channel_total_sat": {}, + "funding_txid": {}, + "funding_output": {}, + "connected": {}, + "state": {}, + "channel_id": {}, + "short_channel_id": { + "type": "short_channel_id", + "description": [ + "Short channel id of channel (only if funding reached lockin depth before closing)." + ] + } } - } - }, - "else": { - "additionalProperties": false, - "required": [], - "properties": { - "created_index": {}, - "updated_index": {}, - "in_channel": {}, - "in_htlc_id": {}, - "in_msatoshi": {}, - "in_msat": {}, - "status": {}, - "style": {}, - "received_time": {}, - "out_channel": {}, - "out_htlc_id": {}, - "fee": {}, - "fee_msat": {}, - "out_msatoshi": {}, - "out_msat": {}, - "resolved_time": {} } } + ] + } + } + } + }, + "json_example": [ + { + "request": { + "id": "example:listfunds#1", + "method": "listfunds", + "params": { + "spent": null + } + }, + "response": { + "outputs": [ + { + "txid": "0f184b101569bf777af3449fa266948a9d55768f97867e48416a2c92858dd1bc", + "output": 1, + "amount_msat": 1111111000, + "scriptpubkey": "001401fad90abcd66697e2592164722de4a95ebee165", + "address": "bcrt1qq8adjz4u6enf0cjey9j8yt0y490tact93fzgsf", + "status": "confirmed", + "blockheight": 102, + "reserved": false + }, + { + "txid": "4bee7dc3a28f2434e9bb3e9aaab418dd276485a8705b0f787bf741d3f979ec3b", + "output": 1, + "amount_msat": 1111111000, + "scriptpubkey": "001401fad90abcd66697e2592164722de4a95ebee165", + "address": "bcrt1qq8adjz4u6enf0cjey9j8yt0y490tact93fzgsf", + "status": "confirmed", + "blockheight": 102, + "reserved": false } - ] + ], + "channels": [] } } - } + ], + "author": [ + "Felix <> is mainly responsible." + ], + "see_also": [ + "lightning-newaddr(7)", + "lightning-fundchannel(7)", + "lightning-withdraw(7)", + "lightning-listtransactions(7)" + ], + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:listforwards#1", - "method": "listforwards", - "params": { - "status": null, - "in_channel": null, - "out_channel": null, - "index": null, - "start": null, - "limit": null + "lightning-listhtlcs.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listhtlcs", + "title": "Command for querying HTLCs", + "description": [ + "The **listhtlcs** RPC command gets all HTLCs (which, generally, we remember for as long as a channel is open, even if they've completed long ago)." + ], + "request": { + "required": [], + "properties": { + "id": { + "type": "string", + "description": [ + "A short channel id (e.g. 1x2x3) or full 64-byte hex channel id, it will only list htlcs for that channel (which must be known)." + ] } - }, - "response": { - "forwards": [ - { - "created_index": 1, - "updated_index": 1, - "in_channel": "103x1x0", - "in_htlc_id": 0, - "out_channel": "104x1x0", - "out_htlc_id": 0, - "in_msat": 100001001, - "out_msat": 100000000, - "fee_msat": 1001, - "status": "settled", - "style": "tlv", - "received_time": 1706229285.5934534, - "resolved_time": 1706229288.830004 - }, - { - "created_index": 2, - "updated_index": 2, - "in_channel": "103x1x0", - "in_htlc_id": 1, - "out_channel": "105x1x0", - "out_htlc_id": 0, - "in_msat": 100001001, - "out_msat": 100000000, - "fee_msat": 1001, - "status": "failed", - "style": "tlv", - "received_time": 1706229290.0289993, - "resolved_time": 1706229292.9487684 - }, - { - "created_index": 3, - "updated_index": 3, - "in_channel": "103x1x0", - "in_htlc_id": 2, - "out_channel": "106x1x0", - "out_htlc_id": 0, - "in_msat": 100001000, - "out_msat": 99999999, - "fee_msat": 1001, - "status": "local_failed", - "failcode": 16392, - "failreason": "WIRE_PERMANENT_CHANNEL_FAILURE", - "style": "tlv", - "received_time": 1706229295.3175724 - } - ] } }, - { - "request": { - "id": "example:listforwards#2", - "method": "listforwards", - "params": { - "in_channel": "0x1x2", - "out_channel": "0x2x3", - "status": "settled" + "response": { + "required": [ + "htlcs" + ], + "properties": { + "htlcs": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "short_channel_id", + "id", + "expiry", + "direction", + "amount_msat", + "payment_hash", + "state" + ], + "properties": { + "short_channel_id": { + "type": "short_channel_id", + "description": [ + "The channel that contains/contained the HTLC." + ] + }, + "id": { + "type": "u64", + "description": [ + "The unique, incrementing HTLC id the creator gave this." + ] + }, + "expiry": { + "type": "u32", + "description": [ + "The block number where this HTLC expires/expired." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The value of the HTLC." + ] + }, + "direction": { + "type": "string", + "enum": [ + "out", + "in" + ], + "description": [ + "Out if we offered this to the peer, in if they offered it." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "Payment hash sought by HTLC." + ] + }, + "state": { + "type": "string", + "enum": [ + "SENT_ADD_HTLC", + "SENT_ADD_COMMIT", + "RCVD_ADD_REVOCATION", + "RCVD_ADD_ACK_COMMIT", + "SENT_ADD_ACK_REVOCATION", + "RCVD_REMOVE_HTLC", + "RCVD_REMOVE_COMMIT", + "SENT_REMOVE_REVOCATION", + "SENT_REMOVE_ACK_COMMIT", + "RCVD_REMOVE_ACK_REVOCATION", + "RCVD_ADD_HTLC", + "RCVD_ADD_COMMIT", + "SENT_ADD_REVOCATION", + "SENT_ADD_ACK_COMMIT", + "RCVD_ADD_ACK_REVOCATION", + "SENT_REMOVE_HTLC", + "SENT_REMOVE_COMMIT", + "RCVD_REMOVE_REVOCATION", + "RCVD_REMOVE_ACK_COMMIT", + "SENT_REMOVE_ACK_REVOCATION" + ], + "description": [ + "The first 10 states are for `in`, the next 10 are for `out`." + ] + } + } + } } - }, - "response": { - "forwards": [] - } - } - ], - "author": [ - "Rene Pickhardt <> is mainly responsible." - ], - "see_also": [ - "lightning-autoclean-status(7)", - "lightning-getinfo(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listfunds.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listfunds", - "title": "Command showing all funds currently managed by the Core Lightning node", - "description": [ - "The **listfunds** RPC command displays all funds available, either in unspent outputs (UTXOs) in the internal wallet or funds locked in currently open channels." - ], - "request": { - "required": [], - "properties": { - "spent": { - "type": "boolean", - "description": [ - "If True, then the *outputs* will include spent outputs in addition to the unspent ones." - ], - "default": "False" } - } - }, - "response": { - "required": [ - "outputs", - "channels" - ], - "properties": { - "outputs": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "txid", - "output", - "amount_msat", - "scriptpubkey", - "status", - "reserved" - ], - "properties": { - "txid": { - "type": "txid", - "description": [ - "The ID of the spendable transaction." - ] - }, - "output": { - "type": "u32", - "description": [ - "The index within *txid*." - ] + }, + "json_example": [ + { + "request": { + "id": "example:listhtlcs#1", + "method": "listhtlcs", + "params": "{}" + }, + "response": { + "htlcs": [ + { + "short_channel_id": "103x1x0", + "id": 0, + "expiry": 117, + "direction": "out", + "amount_msat": 100001001, + "payment_hash": "d2668e77c5a2220496e813de36f1fc09ba804b16af4c6bb38299d8a6eb8a5f10", + "state": "RCVD_REMOVE_ACK_REVOCATION" }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount of the output." - ] + { + "short_channel_id": "103x1x0", + "id": 1, + "expiry": 117, + "direction": "out", + "amount_msat": 100001001, + "payment_hash": "286e08ac8f575f10508d751fcfc93871b4344271967c7b9e5eacb3f3573b8307", + "state": "RCVD_REMOVE_ACK_REVOCATION" }, - "scriptpubkey": { - "type": "hex", - "description": [ - "The scriptPubkey of the output." - ] + { + "short_channel_id": "103x1x0", + "id": 2, + "expiry": 135, + "direction": "out", + "amount_msat": 100001001, + "payment_hash": "3e4baa750ee3dfb934578f041ccb40b87432bf37ec65c9d7bce5ff28fecbd95f", + "state": "RCVD_REMOVE_ACK_REVOCATION" }, - "address": { - "type": "string", - "description": [ - "The bitcoin address of the output." - ] + { + "short_channel_id": "103x1x0", + "id": 3, + "expiry": 135, + "direction": "out", + "amount_msat": 100001001, + "payment_hash": "4c3ce32565dc10ef2bd230c32802ce2fe8b007208c0a90757aa289f75c994d49", + "state": "SENT_REMOVE_REVOCATION" + } + ] + } + }, + { + "request": { + "id": "example:listhtlcs#2", + "method": "listhtlcs", + "params": [ + "103x2x0" + ] + }, + "response": { + "htlcs": [ + { + "short_channel_id": "103x2x0", + "id": 0, + "expiry": 117, + "direction": "out", + "amount_msat": 100001001, + "payment_hash": "12bb14b1d119e1ae0759e5ff6f1f6653e3fd8f71ea59411500d2871404a47a98", + "state": "RCVD_REMOVE_ACK_REVOCATION" }, - "redeemscript": { - "type": "hex", - "description": [ - "The redeemscript, only if it's p2sh-wrapped." - ] + { + "short_channel_id": "103x2x0", + "id": 1, + "expiry": 117, + "direction": "out", + "amount_msat": 100001001, + "payment_hash": "57d950209cc0b4fcc5e3027569232f96cf83ef85314c6b139a5713848d811a66", + "state": "RCVD_REMOVE_ACK_REVOCATION" }, - "status": { - "type": "string", - "enum": [ - "unconfirmed", - "confirmed", - "spent", - "immature" - ] + { + "short_channel_id": "103x2x0", + "id": 2, + "expiry": 135, + "direction": "out", + "amount_msat": 100001001, + "payment_hash": "45ad4654715411a07a0ad6ec3f4bfaa918c90e3d1934b10b1c1c5846523ddd7f", + "state": "RCVD_REMOVE_ACK_REVOCATION" }, - "reserved": { - "type": "boolean", - "description": [ - "Whether this UTXO is currently reserved for an in-flight tx." - ] + { + "short_channel_id": "103x2x0", + "id": 3, + "expiry": 135, + "direction": "out", + "amount_msat": 100001001, + "payment_hash": "cc0dcd214aa71c62bfba711a0746da821f2cdba1770b11c225920bdde12c931e", + "state": "RCVD_REMOVE_ACK_REVOCATION" } - }, - "allOf": [ + ] + } + }, + { + "request": { + "id": "example:listhtlcs#3", + "method": "listhtlcs", + "params": [ + "436c2658eb4f4689b42ff11b8b05f31ba09860d0df7168085e0796cdf40f85e0" + ] + }, + "response": { + "htlcs": [ { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "confirmed" - ] - } - } + "short_channel_id": "103x1x0", + "id": 0, + "expiry": 124, + "direction": "out", + "amount_msat": 1001, + "payment_hash": "2ab653668c8017ff2f36ac36678a8da04e11380bd9580a2926b170523b0c6e3b", + "state": "RCVD_REMOVE_ACK_REVOCATION" + }, + { + "short_channel_id": "103x1x0", + "id": 1, + "expiry": 124, + "direction": "out", + "amount_msat": 2001, + "payment_hash": "92f889cb2e48aa28e1e577228b907cdbcc371a2c018e9c8f60fa7036e232cf1d", + "state": "RCVD_REMOVE_ACK_REVOCATION" + }, + { + "short_channel_id": "103x1x0", + "id": 2, + "expiry": 128, + "direction": "out", + "amount_msat": 4001, + "payment_hash": "14ef01c9fb12d7dcac288f48ce87b19a7d5c3d5779aaed1e4adcb5c5d0e9fa45", + "state": "RCVD_REMOVE_ACK_REVOCATION" + } + ] + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-listforwards(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-listinvoicerequests.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v22.11", + "rpc": "listinvoicerequests", + "title": "Command for querying invoice_request status", + "description": [ + "The **listinvoicerequests** RPC command gets the status of a specific `invoice_request`, if it exists, or the status of all `invoice_requests` if given no argument." + ], + "request": { + "required": [], + "properties": { + "invreq_id": { + "type": "string", + "description": [ + "A specific invoice can be queried by providing the `invreq_id`, which is presented by lightning-invoicerequest(7), or can be calculated from a bolt12 invoice." + ] + }, + "active_only": { + "type": "boolean", + "description": [ + "If it is *True* then only active invoice requests are returned." + ], + "default": "*False*" + } + } + }, + "response": { + "required": [ + "invoicerequests" + ], + "properties": { + "invoicerequests": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "invreq_id", + "single_use", + "active", + "bolt12", + "used" + ], + "properties": { + "invreq_id": { + "type": "hash", + "description": [ + "The SHA256 hash of all invoice_request fields less than 160." + ] + }, + "active": { + "type": "boolean", + "description": [ + "Whether the invoice_request is currently active." + ] + }, + "single_use": { + "type": "boolean", + "description": [ + "Whether the invoice_request will become inactive after we pay an invoice for it." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The bolt12 string starting with lnr." + ] + }, + "used": { + "type": "boolean", + "description": [ + "Whether the invoice_request has already been used." + ] }, - "then": { - "additionalProperties": false, - "required": [ - "blockheight" - ], - "properties": { - "txid": {}, - "output": {}, - "amount_msat": {}, - "scriptpubkey": {}, - "address": {}, - "value": {}, - "redeemscript": {}, - "status": {}, - "reserved": {}, - "reserved_to_block": {}, - "blockheight": { - "type": "u32", - "description": [ - "Block height where it was confirmed." - ] - } - } + "label": { + "type": "string", + "description": [ + "The label provided when creating the invoice_request." + ] } - }, + } + } + } + } + }, + "json_example": [ + { + "request": { + "id": "example:listinvoicerequests#1", + "method": "listinvoicerequests", + "params": [ + "cf0b41d4eb248d975909deb9accf9722b1c86839de80ee8815ce907bbb700a1d" + ] + }, + "response": { + "invoicerequests": [ { - "if": { - "properties": { - "reserved": { - "type": "boolean", - "enum": [ - "true" - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "reserved_to_block" - ], - "properties": { - "txid": {}, - "output": {}, - "amount_msat": {}, - "scriptpubkey": {}, - "address": {}, - "value": {}, - "redeemscript": {}, - "status": {}, - "blockheight": {}, - "reserved": {}, - "reserved_to_block": { - "type": "u32", - "description": [ - "Block height where reservation will expire." - ] - } - } - } + "invreq_id": "cf0b41d4eb248d975909deb9accf9722b1c86839de80ee8815ce907bbb700a1d", + "active": true, + "single_use": true, + "bolt12": "lnr1qqgx9ag7nmtns87htndlgcfndlq0wzstwd5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gzqta0pqpvzzqnxu3vc68fug904w25y3zpskc8huazwmy34av93h2fjswe3tsp4rrcyps5sf5jwnn2tr3ghn32mdta8jvax62pwzhna8sktmaezl3f4s3zy35gx6dfay7r8zn299uwr7ugpze74zft4m8q3fnk2sr0ljqpve3jq", + "used": false } ] } - }, - "channels": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "peer_id", - "our_amount_msat", - "amount_msat", - "funding_txid", - "funding_output", - "connected", - "state", - "channel_id" - ], - "properties": { - "peer_id": { - "type": "pubkey", - "description": [ - "The peer with which the channel is opened." - ] - }, - "our_amount_msat": { - "type": "msat", - "description": [ - "Available satoshis on our node's end of the channel." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Total channel value." - ] - }, - "funding_txid": { - "type": "txid", - "description": [ - "Funding transaction id." - ] - }, - "funding_output": { - "type": "u32", - "description": [ - "The 0-based index of the output in the funding transaction." - ] - }, - "connected": { - "type": "boolean", - "description": [ - "Whether the channel peer is connected." - ] - }, - "state": { - "type": "string", - "enum": [ - "OPENINGD", - "CHANNELD_AWAITING_LOCKIN", - "CHANNELD_NORMAL", - "CHANNELD_SHUTTING_DOWN", - "CLOSINGD_SIGEXCHANGE", - "CLOSINGD_COMPLETE", - "AWAITING_UNILATERAL", - "FUNDING_SPEND_SEEN", - "ONCHAIN", - "DUALOPEND_OPEN_INIT", - "DUALOPEND_AWAITING_LOCKIN", - "DUALOPEND_OPEN_COMMITTED", - "DUALOPEND_OPEN_COMMIT_READY" - ], - "description": [ - "The channel state, in particular `CHANNELD_NORMAL` means the channel can be used normally." - ] + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-invoicerequests(7)", + "lightning-disableinvoicerequest(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-listinvoices.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listinvoices", + "title": "Command for querying invoice status", + "description": [ + "The **listinvoices** RPC command gets the status of a specific invoice, if it exists, or the status of all invoices if given no argument.", + "", + "Only one of the query parameters can be used from *label*, *invstring*, *payment_hash*, or *offer_id*." + ], + "request": { + "required": [], + "properties": { + "label": { + "oneOf": [ + { + "type": "string" }, - "channel_id": { - "type": "hash", - "description": [ - "The full channel_id (funding txid Xored with output number)." - ], - "added": "v23.05" - } - }, - "allOf": [ { - "if": { - "properties": { - "state": { - "type": "string", - "enum": [ - "CHANNELD_NORMAL" - ] - } - } + "type": "integer" + } + ], + "description": [ + "A label used a the creation of the invoice to get a specific invoice." + ] + }, + "invstring": { + "type": "string", + "description": [ + "The string value to query a specific invoice." + ] + }, + "payment_hash": { + "type": "hex", + "description": [ + "A payment_hash of the invoice to get the details of a specific invoice." + ] + }, + "offer_id": { + "type": "string", + "description": [ + "A local `offer_id` the invoice was issued for a specific invoice details." + ] + }, + "index": { + "type": "string", + "added": "v23.08", + "enum": [ + "created", + "updated" + ], + "description": [ + "If neither *in_channel* nor *out_channel* is specified, it controls ordering." + ], + "default": "`created`" + }, + "start": { + "type": "u64", + "added": "v23.08", + "description": [ + "If `index` is specified, `start` may be specified to start from that value, which is generally returned from lightning-wait(7)." + ] + }, + "limit": { + "type": "u32", + "added": "v23.08", + "description": [ + "If `index` is specified, `limit` can be used to specify the maximum number of entries to return." + ] + } + }, + "dependentUpon": { + "index": [ + "start", + "limit" + ] + } + }, + "response": { + "required": [ + "invoices" + ], + "properties": { + "invoices": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "label", + "created_index", + "payment_hash", + "status", + "expires_at" + ], + "properties": { + "label": { + "type": "string", + "description": [ + "Unique label supplied at invoice creation." + ] }, - "then": { - "additionalProperties": false, - "required": [ - "short_channel_id" + "description": { + "type": "string", + "description": [ + "Description used in the invoice." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "status": { + "type": "string", + "enum": [ + "unpaid", + "paid", + "expired" ], - "properties": { - "peer_id": {}, - "our_amount_msat": {}, - "channel_sat": {}, - "amount_msat": {}, - "channel_total_sat": {}, - "funding_txid": {}, - "funding_output": {}, - "connected": {}, - "state": {}, - "channel_id": {}, - "short_channel_id": { - "type": "short_channel_id", - "description": [ - "Short channel id of channel." - ] - } - } + "description": [ + "Whether it's paid, unpaid or unpayable." + ] + }, + "expires_at": { + "type": "u64", + "description": [ + "UNIX timestamp of when it will become / became unpayable." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount required to pay this invoice." + ] + }, + "bolt11": { + "type": "string", + "description": [ + "The BOLT11 string (always present unless *bolt12* is)." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The BOLT12 string (always present unless *bolt11* is)." + ] + }, + "local_offer_id": { + "type": "hash", + "description": [ + "The *id* of our offer which created this invoice (**experimental-offers** only)." + ] + }, + "invreq_payer_note": { + "type": "string", + "description": [ + "The optional *invreq_payer_note* from invoice_request which created this invoice (**experimental-offers** only)." + ] + }, + "created_index": { + "type": "u64", + "added": "v23.08", + "description": [ + "1-based index indicating order this invoice was created in." + ] + }, + "updated_index": { + "type": "u64", + "added": "v23.08", + "description": [ + "1-based index indicating order this invoice was changed (only present if it has changed since creation)." + ] } }, - { - "if": { - "properties": { - "state": { - "type": "string", - "enum": [ - "CHANNELD_SHUTTING_DOWN", - "CLOSINGD_SIGEXCHANGE", - "CLOSINGD_COMPLETE", - "AWAITING_UNILATERAL", - "FUNDING_SPEND_SEEN", - "ONCHAIN" - ] + "allOf": [ + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "paid" + ] + } } - } - }, - "then": { - "additionalProperties": false, - "required": [], - "properties": { - "peer_id": {}, - "our_amount_msat": {}, - "channel_sat": {}, - "amount_msat": {}, - "channel_total_sat": {}, - "funding_txid": {}, - "funding_output": {}, - "connected": {}, - "state": {}, - "channel_id": {}, - "short_channel_id": { - "type": "short_channel_id", - "description": [ - "Short channel id of channel (only if funding reached lockin depth before closing)." - ] + }, + "then": { + "additionalProperties": false, + "required": [ + "pay_index", + "amount_received_msat", + "paid_at", + "payment_preimage" + ], + "properties": { + "label": {}, + "description": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "bolt11": {}, + "bolt12": {}, + "local_offer_id": {}, + "invreq_payer_note": {}, + "expires_at": {}, + "created_index": {}, + "updated_index": {}, + "pay_index": { + "type": "u64", + "description": [ + "Unique incrementing index for this payment." + ] + }, + "amount_received_msat": { + "type": "msat", + "description": [ + "The amount actually received (could be slightly greater than *amount_msat*, since clients may overpay)." + ] + }, + "paid_at": { + "type": "u64", + "description": [ + "UNIX timestamp of when it was paid." + ] + }, + "paid_outpoint": { + "type": "object", + "description": [ + "Outpoint this invoice was paid with." + ], + "added": "v23.11", + "additionalProperties": false, + "required": [ + "txid", + "outnum" + ], + "properties": { + "txid": { + "added": "v23.11", + "type": "txid", + "description": [ + "ID of the transaction that paid the invoice." + ] + }, + "outnum": { + "added": "v23.11", + "type": "u32", + "description": [ + "The 0-based output number of the transaction that paid the invoice." + ] + } + } + }, + "payment_preimage": { + "type": "secret", + "description": [ + "Proof of payment." + ] + } + } + }, + "else": { + "additionalProperties": false, + "properties": { + "label": {}, + "description": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "bolt11": {}, + "bolt12": {}, + "local_offer_id": {}, + "invreq_payer_note": {}, + "created_index": {}, + "updated_index": {}, + "expires_at": {} } } } - } - ] + ] + } } } - } - }, - "json_example": [ - { - "request": { - "id": "example:listfunds#1", - "method": "listfunds", - "params": { - "spent": null - } - }, - "response": { - "outputs": [ - { - "txid": "0f184b101569bf777af3449fa266948a9d55768f97867e48416a2c92858dd1bc", - "output": 1, - "amount_msat": 1111111000, - "scriptpubkey": "001401fad90abcd66697e2592164722de4a95ebee165", - "address": "bcrt1qq8adjz4u6enf0cjey9j8yt0y490tact93fzgsf", - "status": "confirmed", - "blockheight": 102, - "reserved": false - }, - { - "txid": "4bee7dc3a28f2434e9bb3e9aaab418dd276485a8705b0f787bf741d3f979ec3b", - "output": 1, - "amount_msat": 1111111000, - "scriptpubkey": "001401fad90abcd66697e2592164722de4a95ebee165", - "address": "bcrt1qq8adjz4u6enf0cjey9j8yt0y490tact93fzgsf", - "status": "confirmed", - "blockheight": 102, - "reserved": false + }, + "json_example": [ + { + "request": { + "id": "example:listinvoices#1", + "method": "listinvoices", + "params": { + "label": "xEoCR94SIz6UIRUEkxum", + "payment_hash": null, + "invstring": null, + "offer_id": null, + "index": null, + "start": null, + "limit": null } - ], - "channels": [] - } - } - ], - "author": [ - "Felix <> is mainly responsible." - ], - "see_also": [ - "lightning-newaddr(7)", - "lightning-fundchannel(7)", - "lightning-withdraw(7)", - "lightning-listtransactions(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listhtlcs.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listhtlcs", - "title": "Command for querying HTLCs", - "description": [ - "The **listhtlcs** RPC command gets all HTLCs (which, generally, we remember for as long as a channel is open, even if they've completed long ago)." - ], - "request": { - "required": [], - "properties": { - "id": { - "type": "string", - "description": [ - "A short channel id (e.g. 1x2x3) or full 64-byte hex channel id, it will only list htlcs for that channel (which must be known)." - ] - } - } - }, - "response": { - "required": [ - "htlcs" - ], - "properties": { - "htlcs": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "short_channel_id", - "id", - "expiry", - "direction", - "amount_msat", - "payment_hash", - "state" - ], - "properties": { - "short_channel_id": { - "type": "short_channel_id", - "description": [ - "The channel that contains/contained the HTLC." - ] - }, - "id": { - "type": "u64", - "description": [ - "The unique, incrementing HTLC id the creator gave this." - ] - }, - "expiry": { - "type": "u32", - "description": [ - "The block number where this HTLC expires/expired." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The value of the HTLC." - ] - }, - "direction": { - "type": "string", - "enum": [ - "out", - "in" - ], - "description": [ - "Out if we offered this to the peer, in if they offered it." - ] - }, - "payment_hash": { - "type": "hash", + }, + "response": { + "invoices": [ + { + "label": "xEoCR94SIz6UIRUEkxum", + "bolt11": "lnbcrt110u1pjmr5lzsp5sfjyj3xn7ux592k36hmmt4ax98n6lgct22wvj54yck0upcmep63qpp5qu436g855lr40ftdt7csatk5pdvtdzzfmfqluwtvm0fds95jsadqdpq0pzk7s6j8y69xjt6xe25j5j4g44hsatdxqyjw5qcqp99qxpqysgquwma3zrw4cd8e8j4u9uh4gxukaacckse64kx2l9dqv8rvrysdq5r5dt38t9snqj9u5ar07h2exr4fg56wpudkhkk7gtxlyt72ku5fpqqd4fnlk", + "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", + "amount_msat": 11000000, + "status": "unpaid", "description": [ - "Payment hash sought by HTLC." - ] - }, - "state": { - "type": "string", - "enum": [ - "SENT_ADD_HTLC", - "SENT_ADD_COMMIT", - "RCVD_ADD_REVOCATION", - "RCVD_ADD_ACK_COMMIT", - "SENT_ADD_ACK_REVOCATION", - "RCVD_REMOVE_HTLC", - "RCVD_REMOVE_COMMIT", - "SENT_REMOVE_REVOCATION", - "SENT_REMOVE_ACK_COMMIT", - "RCVD_REMOVE_ACK_REVOCATION", - "RCVD_ADD_HTLC", - "RCVD_ADD_COMMIT", - "SENT_ADD_REVOCATION", - "SENT_ADD_ACK_COMMIT", - "RCVD_ADD_ACK_REVOCATION", - "SENT_REMOVE_HTLC", - "SENT_REMOVE_COMMIT", - "RCVD_REMOVE_REVOCATION", - "RCVD_REMOVE_ACK_COMMIT", - "SENT_REMOVE_ACK_REVOCATION" + "XEoCR94SIz6UIRUEkxum." ], - "description": [ - "The first 10 states are for `in`, the next 10 are for `out`." - ] + "expires_at": 1706757730, + "created_index": 1 } - } + ] } } - } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-waitinvoice(7)", + "lightning-delinvoice(7)", + "lightning-invoice(7)" + ], + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:listhtlcs#1", - "method": "listhtlcs", - "params": "{}" - }, - "response": { - "htlcs": [ - { - "short_channel_id": "103x1x0", - "id": 0, - "expiry": 117, - "direction": "out", - "amount_msat": 100001001, - "payment_hash": "d2668e77c5a2220496e813de36f1fc09ba804b16af4c6bb38299d8a6eb8a5f10", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "103x1x0", - "id": 1, - "expiry": 117, - "direction": "out", - "amount_msat": 100001001, - "payment_hash": "286e08ac8f575f10508d751fcfc93871b4344271967c7b9e5eacb3f3573b8307", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "103x1x0", - "id": 2, - "expiry": 135, - "direction": "out", - "amount_msat": 100001001, - "payment_hash": "3e4baa750ee3dfb934578f041ccb40b87432bf37ec65c9d7bce5ff28fecbd95f", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "103x1x0", - "id": 3, - "expiry": 135, - "direction": "out", - "amount_msat": 100001001, - "payment_hash": "4c3ce32565dc10ef2bd230c32802ce2fe8b007208c0a90757aa289f75c994d49", - "state": "SENT_REMOVE_REVOCATION" - } - ] - } - }, - { - "request": { - "id": "example:listhtlcs#2", - "method": "listhtlcs", - "params": [ - "103x2x0" - ] - }, - "response": { - "htlcs": [ - { - "short_channel_id": "103x2x0", - "id": 0, - "expiry": 117, - "direction": "out", - "amount_msat": 100001001, - "payment_hash": "12bb14b1d119e1ae0759e5ff6f1f6653e3fd8f71ea59411500d2871404a47a98", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "103x2x0", - "id": 1, - "expiry": 117, - "direction": "out", - "amount_msat": 100001001, - "payment_hash": "57d950209cc0b4fcc5e3027569232f96cf83ef85314c6b139a5713848d811a66", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "103x2x0", - "id": 2, - "expiry": 135, - "direction": "out", - "amount_msat": 100001001, - "payment_hash": "45ad4654715411a07a0ad6ec3f4bfaa918c90e3d1934b10b1c1c5846523ddd7f", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "103x2x0", - "id": 3, - "expiry": 135, - "direction": "out", - "amount_msat": 100001001, - "payment_hash": "cc0dcd214aa71c62bfba711a0746da821f2cdba1770b11c225920bdde12c931e", - "state": "RCVD_REMOVE_ACK_REVOCATION" - } - ] + "lightning-listnodes.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listnodes", + "title": "Command to get the list of nodes in the known network.", + "description": [ + "The **listnodes** command returns nodes the node has learned about via gossip messages, or a single one if the node *id* was specified." + ], + "request": { + "required": [], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "The public key of the node to list." + ] + } } }, - { - "request": { - "id": "example:listhtlcs#3", - "method": "listhtlcs", - "params": [ - "436c2658eb4f4689b42ff11b8b05f31ba09860d0df7168085e0796cdf40f85e0" - ] - }, - "response": { - "htlcs": [ - { - "short_channel_id": "103x1x0", - "id": 0, - "expiry": 124, - "direction": "out", - "amount_msat": 1001, - "payment_hash": "2ab653668c8017ff2f36ac36678a8da04e11380bd9580a2926b170523b0c6e3b", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "103x1x0", - "id": 1, - "expiry": 124, - "direction": "out", - "amount_msat": 2001, - "payment_hash": "92f889cb2e48aa28e1e577228b907cdbcc371a2c018e9c8f60fa7036e232cf1d", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "103x1x0", - "id": 2, - "expiry": 128, - "direction": "out", - "amount_msat": 4001, - "payment_hash": "14ef01c9fb12d7dcac288f48ce87b19a7d5c3d5779aaed1e4adcb5c5d0e9fa45", - "state": "RCVD_REMOVE_ACK_REVOCATION" - } - ] - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-listforwards(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listinvoicerequests.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v22.11", - "rpc": "listinvoicerequests", - "title": "Command for querying invoice_request status", - "description": [ - "The **listinvoicerequests** RPC command gets the status of a specific `invoice_request`, if it exists, or the status of all `invoice_requests` if given no argument." - ], - "request": { - "required": [], - "properties": { - "invreq_id": { - "type": "string", - "description": [ - "A specific invoice can be queried by providing the `invreq_id`, which is presented by lightning-invoicerequest(7), or can be calculated from a bolt12 invoice." - ] - }, - "active_only": { - "type": "boolean", - "description": [ - "If it is *True* then only active invoice requests are returned." - ], - "default": "*False*" - } - } - }, - "response": { - "required": [ - "invoicerequests" - ], - "properties": { - "invoicerequests": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "invreq_id", - "single_use", - "active", - "bolt12", - "used" - ], - "properties": { - "invreq_id": { - "type": "hash", - "description": [ - "The SHA256 hash of all invoice_request fields less than 160." - ] - }, - "active": { - "type": "boolean", - "description": [ - "Whether the invoice_request is currently active." - ] + "response": { + "required": [ + "nodes" + ], + "properties": { + "nodes": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "nodeid" + ], + "properties": { + "nodeid": { + "type": "pubkey", + "description": [ + "The public key of the node." + ] + }, + "last_timestamp": { + "type": "u32", + "description": [ + "A node_announcement has been received for this node (UNIX timestamp)." + ] + } }, - "single_use": { - "type": "boolean", - "description": [ - "Whether the invoice_request will become inactive after we pay an invoice for it." + "allOf": [ + { + "if": { + "required": [ + "last_timestamp" + ] + }, + "then": { + "additionalProperties": false, + "required": [ + "nodeid", + "last_timestamp", + "alias", + "color", + "features", + "addresses" + ], + "properties": { + "nodeid": {}, + "last_timestamp": {}, + "option_will_fund": {}, + "alias": { + "type": "string", + "description": [ + "The fun alias this node advertized." + ], + "maxLength": 32 + }, + "color": { + "type": "hex", + "description": [ + "The favorite RGB color this node advertized." + ], + "minLength": 6, + "maxLength": 6 + }, + "features": { + "type": "hex", + "description": [ + "BOLT #9 features bitmap this node advertized." + ] + }, + "addresses": { + "type": "array", + "description": [ + "The addresses this node advertized." + ], + "items": { + "type": "object", + "required": [ + "type", + "port" + ], + "additionalProperties": true, + "properties": { + "type": { + "type": "string", + "enum": [ + "dns", + "ipv4", + "ipv6", + "torv2", + "torv3" + ], + "description": [ + "Type of connection (until 23.08, `websocket` was also allowed)." + ] + }, + "port": { + "type": "u16", + "description": [ + "Port number." + ] + } + }, + "if": { + "properties": { + "type": { + "type": "string", + "enum": [ + "dns", + "ipv4", + "ipv6", + "torv2", + "torv3" + ] + } + } + }, + "then": { + "required": [ + "type", + "address", + "port" + ], + "additionalProperties": false, + "properties": { + "type": {}, + "port": {}, + "address": { + "type": "string", + "description": [ + "Address in expected format for **type**." + ] + } + } + }, + "else": { + "required": [ + "type", + "port" + ], + "additionalProperties": false, + "properties": { + "type": {}, + "port": {} + } + } + } + } + } + }, + "else": { + "additionalProperties": false, + "properties": { + "nodeid": {} + } + } + }, + { + "if": { + "required": [ + "option_will_fund" + ] + }, + "then": { + "additionalProperties": true, + "required": [ + "option_will_fund" + ], + "properties": { + "option_will_fund": { + "type": "object", + "additionalProperties": false, + "required": [ + "lease_fee_base_msat", + "lease_fee_basis", + "funding_weight", + "channel_fee_max_base_msat", + "channel_fee_max_proportional_thousandths", + "compact_lease" + ], + "properties": { + "lease_fee_base_msat": { + "type": "msat", + "description": [ + "The fixed fee for a lease (whole number of satoshis)." + ] + }, + "lease_fee_basis": { + "type": "u32", + "description": [ + "The proportional fee in basis points (parts per 10,000) for a lease." + ] + }, + "funding_weight": { + "type": "u32", + "description": [ + "The onchain weight you'll have to pay for a lease." + ] + }, + "channel_fee_max_base_msat": { + "type": "msat", + "description": [ + "The maximum base routing fee this node will charge during the lease." + ] + }, + "channel_fee_max_proportional_thousandths": { + "type": "u32", + "description": [ + "The maximum proportional routing fee this node will charge during the lease (in thousandths, not millionths like channel_update)." + ] + }, + "compact_lease": { + "type": "hex", + "description": [ + "The lease as represented in the node_announcement." + ] + } + } + } + } + } + } + ] + } + } + } + }, + "json_example": [ + { + "request": { + "id": "example:listnodes#1", + "method": "listnodes", + "params": { + "id": "02e29856dab8ddd9044c18486e4cab79ec717b490447af2d4831e290e48d57638a" + } + }, + "response": { + "nodes": [ + { + "nodeid": "02e29856dab8ddd9044c14586e4cab79ec717b490447af2d4831e290e48d58638a", + "alias": "some_alias", + "color": "68f442", + "last_timestamp": 1597213741, + "features": "02a2a1", + "addresses": [ + { + "type": "ipv4", + "address": "zzz.yy.xx.xx", + "port": 9735 + } ] + } + ] + } + }, + { + "request": { + "id": "example:listnodes#2", + "method": "listnodes", + "params": { + "id": null + } + }, + "response": { + "nodes": [ + { + "nodeid": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "alias": "SILENTARTIST-v23.11-415-gd120eba", + "color": "022d22", + "last_timestamp": 1708624765, + "features": "88a0000a8a5961", + "addresses": [] }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 string starting with lnr." - ] + { + "nodeid": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "alias": "JUNIORBEAM-v23.11-415-gd120eba", + "color": "0266e4", + "last_timestamp": 1708624765, + "features": "88a0000a8a5961", + "addresses": [] }, - "used": { - "type": "boolean", - "description": [ - "Whether the invoice_request has already been used." - ] + { + "nodeid": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "alias": "HOPPINGFIRE-v23.11-415-gd120eba", + "color": "035d2b", + "last_timestamp": 1708624765, + "features": "88a0000a8a5961", + "addresses": [] }, - "label": { - "type": "string", - "description": [ - "The label provided when creating the invoice_request." - ] + { + "nodeid": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "alias": "JUNIORFELONY-v23.11-415-gd120eba", + "color": "0382ce", + "last_timestamp": 1708624766, + "features": "88a0000a8a5961", + "addresses": [] } - } + ] } } - } + ], + "errors": [ + "On failure, one of the following error codes may be returned:", + "", + "- -32602: Error in given parameters." + ], + "author": [ + "Vincenzo Palazzo <> wrote the initial version of this man page,", + "but many others did the hard work of actually implementing this rpc command." + ], + "see_also": [ + "lightning-listchannels(7)" + ], + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:listinvoicerequests#1", - "method": "listinvoicerequests", - "params": [ - "cf0b41d4eb248d975909deb9accf9722b1c86839de80ee8815ce907bbb700a1d" - ] - }, - "response": { - "invoicerequests": [ - { - "invreq_id": "cf0b41d4eb248d975909deb9accf9722b1c86839de80ee8815ce907bbb700a1d", - "active": true, - "single_use": true, - "bolt12": "lnr1qqgx9ag7nmtns87htndlgcfndlq0wzstwd5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gzqta0pqpvzzqnxu3vc68fug904w25y3zpskc8huazwmy34av93h2fjswe3tsp4rrcyps5sf5jwnn2tr3ghn32mdta8jvax62pwzhna8sktmaezl3f4s3zy35gx6dfay7r8zn299uwr7ugpze74zft4m8q3fnk2sr0ljqpve3jq", - "used": false + "lightning-listoffers.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listoffers", + "title": "Command for listing offers", + "warning": "experimental-offers only", + "description": [ + "The **listoffers** RPC command list all offers, or with `offer_id`, only the offer with that offer_id (if it exists)." + ], + "request": { + "required": [], + "properties": { + "offer_id": { + "type": "hash", + "description": [ + "Offer_id to get details for (if it exists)." + ] + }, + "active_only": { + "type": "boolean", + "description": [ + "If set and is true, only offers with `active` true are returned." + ] + } + } + }, + "response": { + "required": [ + "offers" + ], + "properties": { + "offers": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "offer_id", + "active", + "single_use", + "bolt12", + "used" + ], + "properties": { + "offer_id": { + "type": "hash", + "description": [ + "The id of this offer (merkle hash of non-signature fields)." + ] + }, + "active": { + "type": "boolean", + "description": [ + "Whether this can still be used." + ] + }, + "single_use": { + "type": "boolean", + "description": [ + "Whether this expires as soon as it's paid." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The bolt12 encoding of the offer." + ] + }, + "used": { + "type": "boolean", + "description": [ + "True if an associated invoice has been paid." + ] + }, + "label": { + "type": "string", + "description": [ + "The (optional) user-specified label." + ] + } + } } - ] + } } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-invoicerequests(7)", - "lightning-disableinvoicerequest(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listinvoices.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listinvoices", - "title": "Command for querying invoice status", - "description": [ - "The **listinvoices** RPC command gets the status of a specific invoice, if it exists, or the status of all invoices if given no argument.", - "", - "Only one of the query parameters can be used from *label*, *invstring*, *payment_hash*, or *offer_id*." - ], - "request": { - "required": [], - "properties": { - "label": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "integer" + }, + "json_example": [ + { + "request": { + "id": "example:listoffers#1", + "method": "listoffers", + "params": { + "active_only": true } - ], - "description": [ - "A label used a the creation of the invoice to get a specific invoice." - ] - }, - "invstring": { - "type": "string", - "description": [ - "The string value to query a specific invoice." - ] - }, - "payment_hash": { - "type": "hex", - "description": [ - "A payment_hash of the invoice to get the details of a specific invoice." - ] - }, - "offer_id": { - "type": "string", - "description": [ - "A local `offer_id` the invoice was issued for a specific invoice details." - ] - }, - "index": { - "type": "string", - "added": "v23.08", - "enum": [ - "created", - "updated" - ], - "description": [ - "If neither *in_channel* nor *out_channel* is specified, it controls ordering." - ], - "default": "`created`" - }, - "start": { - "type": "u64", - "added": "v23.08", - "description": [ - "If `index` is specified, `start` may be specified to start from that value, which is generally returned from lightning-wait(7)." - ] + }, + "response": { + "offers": [ + { + "offer_id": "053a5c566fbea2681a5ff9c05a913da23e45b95d09ef5bd25d7d408f23da7084", + "active": true, + "single_use": false, + "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqvqcdgq2z9pk7enxv4jjqen0wgs8yatnw3ujz83qkc6rvp4j28rt3dtrn32zkvdy7efhnlrpr5rp5geqxs783wtlj550qs8czzku4nk3pqp6m593qxgunzuqcwkmgqkmp6ty0wyvjcqdguv3pnpukedwn6cr87m89t74h3auyaeg89xkvgzpac70z3m9rn5xzu28c", + "used": false + }, + { + "offer_id": "3247d3597fec19e362ca683416a48a0f76a44c1600725a7ee1936548feadacca", + "active": true, + "single_use": false, + "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcxqd24x3qgqgqlgzs3gdhkven9v5sxvmmjype82um50ys3ug9kxsmqdvj3c6ut2cuu2s4nrf8k2dulccgaqcdzxgp583utjlu49rcyqt8hc3s797umxn3r9367rdqc577rma7key58fywkajxnuzyapge86hj2pg80rjrma40xdqrxnsnva5l3ce7hz4ua8wf755dees4y9vnq", + "used": true + } + ] + } }, - "limit": { - "type": "u32", - "added": "v23.08", - "description": [ - "If `index` is specified, `limit` can be used to specify the maximum number of entries to return." - ] + { + "request": { + "id": "example:listoffers#2", + "method": "listoffers", + "params": [ + "f61cca153d1948dade19349792d9bcdc9cef687fd27db0b553a67979f55aae48" + ] + }, + "response": { + "offers": [ + { + "offer_id": "f61cca153d1948dade19349792d9bcdc9cef687fd27db0b553a67979f55aae48", + "active": true, + "single_use": false, + "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqyqs5rn5v4ehggrxdaezqvtdwdshg93pqfnwgkvdr57yzh6h92zg3qctvrm7w38djg67kzcm4yeg8vc4cq63s", + "used": false + } + ] + } } - }, - "dependentUpon": { - "index": [ - "start", - "limit" - ] - } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-offer(7)", + "lightning-listoffers(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "invoices" + "lightning-listpays.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listpays", + "title": "Command for querying payment status", + "description": [ + "The **listpay** RPC command gets the status of all *pay* commands, or a single one if either *bolt11* or *payment_hash* was specified." ], - "properties": { - "invoices": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "label", - "created_index", - "payment_hash", - "status", - "expires_at" + "request": { + "required": [], + "properties": { + "bolt11": { + "type": "string", + "description": [ + "Bolt11 string to get the payment details." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "Payment hash to get the payment details." + ] + }, + "status": { + "type": "string", + "description": [ + "To filter the payment by status." ], - "properties": { - "label": { - "type": "string", - "description": [ - "Unique label supplied at invoice creation." - ] - }, - "description": { - "type": "string", - "description": [ - "Description used in the invoice." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "status": { - "type": "string", - "enum": [ - "unpaid", - "paid", - "expired" - ], - "description": [ - "Whether it's paid, unpaid or unpayable." - ] - }, - "expires_at": { - "type": "u64", - "description": [ - "UNIX timestamp of when it will become / became unpayable." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount required to pay this invoice." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "The BOLT11 string (always present unless *bolt12* is)." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The BOLT12 string (always present unless *bolt11* is)." - ] - }, - "local_offer_id": { - "type": "hash", - "description": [ - "The *id* of our offer which created this invoice (**experimental-offers** only)." - ] - }, - "invreq_payer_note": { - "type": "string", - "description": [ - "The optional *invreq_payer_note* from invoice_request which created this invoice (**experimental-offers** only)." - ] - }, - "created_index": { - "type": "u64", - "added": "v23.08", - "description": [ - "1-based index indicating order this invoice was created in." - ] + "enum": [ + "pending", + "complete", + "failed" + ] + } + } + }, + "response": { + "required": [ + "pays" + ], + "properties": { + "pays": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "payment_hash", + "status", + "created_at" + ], + "properties": { + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "status": { + "type": "string", + "enum": [ + "pending", + "failed", + "complete" + ], + "description": [ + "Status of the payment." + ] + }, + "destination": { + "type": "pubkey", + "description": [ + "The final destination of the payment if known." + ] + }, + "created_at": { + "type": "u64", + "description": [ + "The UNIX timestamp showing when this payment was initiated." + ] + }, + "completed_at": { + "type": "u64", + "description": [ + "The UNIX timestamp showing when this payment was completed." + ] + }, + "label": { + "type": "string", + "description": [ + "The label, if given to sendpay." + ] + }, + "bolt11": { + "type": "string", + "description": [ + "The bolt11 string (if pay supplied one)." + ] + }, + "description": { + "type": "string", + "description": [ + "The description matching the bolt11 description hash (if pay supplied one)." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The bolt12 string (if supplied for pay: **experimental-offers** only)." + ] + } }, - "updated_index": { - "type": "u64", - "added": "v23.08", - "description": [ - "1-based index indicating order this invoice was changed (only present if it has changed since creation)." - ] - } - }, - "allOf": [ - { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "paid" - ] + "allOf": [ + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "complete" + ] + } } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "pay_index", - "amount_received_msat", - "paid_at", - "payment_preimage" - ], - "properties": { - "label": {}, - "description": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "bolt11": {}, - "bolt12": {}, - "local_offer_id": {}, - "invreq_payer_note": {}, - "expires_at": {}, - "created_index": {}, - "updated_index": {}, - "pay_index": { - "type": "u64", - "description": [ - "Unique incrementing index for this payment." - ] - }, - "amount_received_msat": { - "type": "msat", - "description": [ - "The amount actually received (could be slightly greater than *amount_msat*, since clients may overpay)." - ] - }, - "paid_at": { - "type": "u64", - "description": [ - "UNIX timestamp of when it was paid." - ] - }, - "paid_outpoint": { - "type": "object", - "description": [ - "Outpoint this invoice was paid with." - ], - "added": "v23.11", - "additionalProperties": false, - "required": [ - "txid", - "outnum" - ], - "properties": { - "txid": { - "added": "v23.11", - "type": "txid", - "description": [ - "ID of the transaction that paid the invoice." - ] - }, - "outnum": { - "added": "v23.11", - "type": "u32", - "description": [ - "The 0-based output number of the transaction that paid the invoice." - ] - } + }, + "then": { + "additionalProperties": false, + "required": [ + "amount_sent_msat", + "preimage" + ], + "properties": { + "payment_hash": {}, + "status": {}, + "destination": {}, + "created_at": {}, + "completed_at": {}, + "label": {}, + "bolt11": {}, + "description": {}, + "bolt12": {}, + "amount_msat": { + "type": "msat", + "description": [ + "The amount of millisatoshi we intended to send to the destination." + ] + }, + "amount_sent_msat": { + "type": "msat", + "description": [ + "The amount of millisatoshi we sent in order to pay (may include fees and not match amount_msat)." + ] + }, + "preimage": { + "type": "secret", + "description": [ + "Proof of payment." + ] + }, + "number_of_parts": { + "type": "u64", + "description": [ + "The number of parts for a successful payment (only if more than one)." + ] } - }, - "payment_preimage": { - "type": "secret", - "description": [ - "Proof of payment." - ] } } }, - "else": { - "additionalProperties": false, - "properties": { - "label": {}, - "description": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "bolt11": {}, - "bolt12": {}, - "local_offer_id": {}, - "invreq_payer_note": {}, - "created_index": {}, - "updated_index": {}, - "expires_at": {} + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "amount_sent_msat" + ], + "properties": { + "payment_hash": {}, + "status": {}, + "destination": {}, + "created_at": {}, + "label": {}, + "bolt11": {}, + "description": {}, + "bolt12": {}, + "amount_sent_msat": {}, + "erroronion": { + "type": "hex", + "description": [ + "The error onion returned on failure, if any." + ] + } + } } } + ] + } + } + }, + "post_return_value_notes": [ + "The returned array is ordered by increasing **created_at** fields." + ] + }, + "json_example": [ + { + "request": { + "id": "example:listpays#1", + "method": "listpays", + "params": { + "bolt11": "lnbcrt123n1pjmxp7qsp5hxu7u28y0nx4v689u3hwzdzse2w9yaylhheavf9dxvwtdup7pvespp5ha66gxse68j4n6755v7299dnmq4w34gp0znxu0xzahdc43zrg40qdq5v3jhxcmjd9c8g6t0dc6sxqrp7scqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqvuqqqqsqqqqqqqqpqqqqqzsqqc9qxpqysgqk74dvqlvr92ayy5s7x0r0u9xywez6wu4h8pfta386cw6x7cdrvn8pz87kyg5c930aent423gm9ylpaw5p35k72f02hg0s9dulg4d8fqpgj7gpm", + "payment_hash": null, + "status": null + } + }, + "response": { + "pays": [ + { + "bolt11": "lnbcrt123n1pjmxp7qsp5hxu7u28y0nx4v689u3hwzdzse2w9yaylhheavf9dxvwtdup7pvespp5ha66gxse68j4n6755v7299dnmq4w34gp0znxu0xzahdc43zrg40qdq5v3jhxcmjd9c8g6t0dc6sxqrp7scqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqvuqqqqsqqqqqqqqpqqqqqzsqqc9qxpqysgqk74dvqlvr92ayy5s7x0r0u9xywez6wu4h8pfta386cw6x7cdrvn8pz87kyg5c930aent423gm9ylpaw5p35k72f02hg0s9dulg4d8fqpgj7gpm", + "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "payment_hash": "bf75a41a19d1e559ebd4a33ca295b3d82ae8d50178a66e3cc2eddb8ac443455e", + "status": "failed", + "created_at": 1706231854, + "amount_sent_msat": 0 } ] } - } - } - }, - "json_example": [ - { - "request": { - "id": "example:listinvoices#1", - "method": "listinvoices", - "params": { - "label": "xEoCR94SIz6UIRUEkxum", - "payment_hash": null, - "invstring": null, - "offer_id": null, - "index": null, - "start": null, - "limit": null - } }, - "response": { - "invoices": [ - { - "label": "xEoCR94SIz6UIRUEkxum", - "bolt11": "lnbcrt110u1pjmr5lzsp5sfjyj3xn7ux592k36hmmt4ax98n6lgct22wvj54yck0upcmep63qpp5qu436g855lr40ftdt7csatk5pdvtdzzfmfqluwtvm0fds95jsadqdpq0pzk7s6j8y69xjt6xe25j5j4g44hsatdxqyjw5qcqp99qxpqysgquwma3zrw4cd8e8j4u9uh4gxukaacckse64kx2l9dqv8rvrysdq5r5dt38t9snqj9u5ar07h2exr4fg56wpudkhkk7gtxlyt72ku5fpqqd4fnlk", - "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", - "amount_msat": 11000000, - "status": "unpaid", - "description": [ - "XEoCR94SIz6UIRUEkxum." - ], - "expires_at": 1706757730, - "created_index": 1 + { + "request": { + "id": "example:listpays#2", + "method": "listpays", + "params": { + "bolt11": "lnbcrt123n1pjmxp7qsp5u84368dz7yhzcqm955h96wdqch7uarasun45cr0vs5d8t0cv5avqpp5r9p0dp92guaatrmhf302m0dyj4n79gk93qu2l5tagfxq3dedgfqsdq5v3jhxcmjd9c8g6t0dc6qxqrp7scqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqvuqqqqsqqqqqqqqpqqqqqzsqqc9qxpqysgq46wu0fznfx27rcnyzhcttf8yqx3lwqs482yxlead0fyt8mefrrrj5m379fa5qukgquf9tnwsuj3nnfmwkzkfg6pyhzq6w8gauuh6m5cqgur64n", + "payment_hash": null, + "status": null } - ] - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-waitinvoice(7)", - "lightning-delinvoice(7)", - "lightning-invoice(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listnodes.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listnodes", - "title": "Command to get the list of nodes in the known network.", - "description": [ - "The **listnodes** command returns nodes the node has learned about via gossip messages, or a single one if the node *id* was specified." - ], - "request": { - "required": [], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "The public key of the node to list." - ] + }, + "response": { + "pays": [ + { + "bolt11": "lnbcrt123n1pjmxp7qsp5u84368dz7yhzcqm955h96wdqch7uarasun45cr0vs5d8t0cv5avqpp5r9p0dp92guaatrmhf302m0dyj4n79gk93qu2l5tagfxq3dedgfqsdq5v3jhxcmjd9c8g6t0dc6qxqrp7scqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqvuqqqqsqqqqqqqqpqqqqqzsqqc9qxpqysgq46wu0fznfx27rcnyzhcttf8yqx3lwqs482yxlead0fyt8mefrrrj5m379fa5qukgquf9tnwsuj3nnfmwkzkfg6pyhzq6w8gauuh6m5cqgur64n", + "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "payment_hash": "1942f684aa473bd58f774c5eadbda49567e2a2c58838afd17d424c08b72d4241", + "status": "complete", + "created_at": 1706231849, + "completed_at": 1706231854, + "preimage": "89ce412a2089cbcb72a73ce755337cf693859ea58f21ef0d1caf286a9b0f2a7c", + "amount_msat": 12300, + "amount_sent_msat": 12301 + } + ] + } } - } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-pay(7)", + "lightning-paystatus(7)", + "lightning-listsendpays(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "nodes" + "lightning-listpeerchannels.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.02", + "rpc": "listpeerchannels", + "title": "Command returning data on channels of connected lightning nodes", + "description": [ + "The **listpeerchannels** RPC command returns data on channels of the network, with the possibility to filter the channels by node id.", + "", + "If no *id* is supplied, then channel data on all lightning nodes that are connected, or not connected but have open channels with this node, are returned." ], - "properties": { - "nodes": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "nodeid" - ], - "properties": { - "nodeid": { - "type": "pubkey", - "description": [ - "The public key of the node." - ] - }, - "last_timestamp": { - "type": "u32", - "description": [ - "A node_announcement has been received for this node (UNIX timestamp)." - ] - } - }, - "allOf": [ - { - "if": { - "required": [ - "last_timestamp" + "request": { + "required": [], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "If supplied, limits the channels to just the peer with the given ID, if it exists." + ] + } + } + }, + "response": { + "required": [ + "channels" + ], + "properties": { + "channels": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "state", + "opener", + "features", + "peer_connected", + "peer_id" + ], + "properties": { + "peer_id": { + "type": "pubkey", + "description": [ + "Node Public key." ] }, - "then": { - "additionalProperties": false, - "required": [ - "nodeid", - "last_timestamp", - "alias", - "color", - "features", - "addresses" - ], - "properties": { - "nodeid": {}, - "last_timestamp": {}, - "option_will_fund": {}, - "alias": { - "type": "string", - "description": [ - "The fun alias this node advertized." - ], - "maxLength": 32 - }, - "color": { - "type": "hex", - "description": [ - "The favorite RGB color this node advertized." - ], - "minLength": 6, - "maxLength": 6 - }, - "features": { - "type": "hex", - "description": [ - "BOLT #9 features bitmap this node advertized." - ] - }, - "addresses": { - "type": "array", - "description": [ - "The addresses this node advertized." - ], - "items": { - "type": "object", - "required": [ - "type", - "port" - ], - "additionalProperties": true, - "properties": { - "type": { - "type": "string", - "enum": [ - "dns", - "ipv4", - "ipv6", - "torv2", - "torv3" - ], - "description": [ - "Type of connection (until 23.08, `websocket` was also allowed)." - ] - }, - "port": { - "type": "u16", - "description": [ - "Port number." - ] - } - }, - "if": { - "properties": { - "type": { - "type": "string", - "enum": [ - "dns", - "ipv4", - "ipv6", - "torv2", - "torv3" - ] - } - } - }, - "then": { - "required": [ - "type", - "address", - "port" - ], - "additionalProperties": false, - "properties": { - "type": {}, - "port": {}, - "address": { - "type": "string", - "description": [ - "Address in expected format for **type**." - ] - } - } - }, - "else": { - "required": [ - "type", - "port" - ], - "additionalProperties": false, - "properties": { - "type": {}, - "port": {} - } - } - } - } - } + "peer_connected": { + "type": "boolean", + "description": [ + "A boolean flag that is set to true if the peer is online." + ] + }, + "reestablished": { + "type": "boolean", + "added": "v24.02", + "description": [ + "A boolean flag that is set to true if we have successfully exchanged reestablish messages with this connection." + ] }, - "else": { + "state": { + "type": "string", + "enum": [ + "OPENINGD", + "CHANNELD_AWAITING_LOCKIN", + "CHANNELD_NORMAL", + "CHANNELD_SHUTTING_DOWN", + "CLOSINGD_SIGEXCHANGE", + "CLOSINGD_COMPLETE", + "AWAITING_UNILATERAL", + "FUNDING_SPEND_SEEN", + "ONCHAIN", + "DUALOPEND_OPEN_INIT", + "DUALOPEND_AWAITING_LOCKIN", + "CHANNELD_AWAITING_SPLICE", + "DUALOPEND_OPEN_COMMITTED", + "DUALOPEND_OPEN_COMMIT_READY" + ], + "description": [ + "The channel state, in particular `CHANNELD_NORMAL` means the channel can be used normally." + ] + }, + "scratch_txid": { + "type": "txid", + "description": [ + "The txid we would use if we went onchain now." + ] + }, + "channel_type": { + "type": "object", + "description": [ + "Channel_type as negotiated with peer." + ], + "added": "v23.05", "additionalProperties": false, + "required": [ + "bits", + "names" + ], "properties": { - "nodeid": {} + "bits": { + "type": "array", + "description": [ + "Each bit set in this channel_type." + ], + "items": { + "type": "u32", + "description": [ + "Bit number." + ] + } + }, + "names": { + "type": "array", + "description": [ + "Feature name for each bit set in this channel_type." + ], + "items": { + "type": "string", + "enum": [ + "static_remotekey/even", + "anchor_outputs/even", + "anchors_zero_fee_htlc_tx/even", + "scid_alias/even", + "zeroconf/even" + ], + "description": [ + "Name of feature bit." + ] + } + } } - } - }, - { - "if": { - "required": [ - "option_will_fund" - ] }, - "then": { - "additionalProperties": true, + "updates": { + "type": "object", + "added": "v24.02", + "description": [ + "Latest gossip updates sent/received." + ], + "additionalProperties": false, "required": [ - "option_will_fund" + "local" ], "properties": { - "option_will_fund": { + "local": { "type": "object", + "description": [ + "Our gossip for channel." + ], "additionalProperties": false, + "added": "v24.02", "required": [ - "lease_fee_base_msat", - "lease_fee_basis", - "funding_weight", - "channel_fee_max_base_msat", - "channel_fee_max_proportional_thousandths", - "compact_lease" + "htlc_minimum_msat", + "htlc_maximum_msat", + "cltv_expiry_delta", + "fee_base_msat", + "fee_proportional_millionths" ], "properties": { - "lease_fee_base_msat": { + "htlc_minimum_msat": { + "type": "msat", + "added": "v24.02", + "description": [ + "Minimum msat amount we allow." + ] + }, + "htlc_maximum_msat": { "type": "msat", + "added": "v24.02", "description": [ - "The fixed fee for a lease (whole number of satoshis)." + "Maximum msat amount we allow." ] }, - "lease_fee_basis": { + "cltv_expiry_delta": { "type": "u32", + "added": "v24.02", + "description": [ + "Blocks delay required between incoming and outgoing HTLCs." + ] + }, + "fee_base_msat": { + "type": "msat", + "added": "v24.02", "description": [ - "The proportional fee in basis points (parts per 10,000) for a lease." + "Amount we charge to use the channel." ] }, - "funding_weight": { + "fee_proportional_millionths": { "type": "u32", + "added": "v24.02", + "description": [ + "Amount we charge to use the channel in parts-per-million." + ] + } + } + }, + "remote": { + "type": "object", + "added": "v24.02", + "description": [ + "Peer's gossip for channel." + ], + "additionalProperties": false, + "required": [ + "htlc_minimum_msat", + "htlc_maximum_msat", + "cltv_expiry_delta", + "fee_base_msat", + "fee_proportional_millionths" + ], + "properties": { + "htlc_minimum_msat": { + "type": "msat", + "added": "v24.02", "description": [ - "The onchain weight you'll have to pay for a lease." + "Minimum msat amount they allow." ] }, - "channel_fee_max_base_msat": { + "htlc_maximum_msat": { "type": "msat", + "added": "v24.02", "description": [ - "The maximum base routing fee this node will charge during the lease." + "Maximum msat amount they allow." ] }, - "channel_fee_max_proportional_thousandths": { + "cltv_expiry_delta": { "type": "u32", + "added": "v24.02", "description": [ - "The maximum proportional routing fee this node will charge during the lease (in thousandths, not millionths like channel_update)." + "Blocks delay required between incoming and outgoing HTLCs." ] }, - "compact_lease": { - "type": "hex", + "fee_base_msat": { + "type": "msat", + "added": "v24.02", "description": [ - "The lease as represented in the node_announcement." + "Amount they charge to use the channel." ] - } - } - } - } - } - } - ] - } - } - } - }, - "json_example": [ - { - "request": { - "id": "example:listnodes#1", - "method": "listnodes", - "params": { - "id": "02e29856dab8ddd9044c18486e4cab79ec717b490447af2d4831e290e48d57638a" - } - }, - "response": { - "nodes": [ - { - "nodeid": "02e29856dab8ddd9044c14586e4cab79ec717b490447af2d4831e290e48d58638a", - "alias": "some_alias", - "color": "68f442", - "last_timestamp": 1597213741, - "features": "02a2a1", - "addresses": [ - { - "type": "ipv4", - "address": "zzz.yy.xx.xx", - "port": 9735 - } - ] - } - ] - } - }, - { - "request": { - "id": "example:listnodes#2", - "method": "listnodes", - "params": { - "id": null - } - }, - "response": { - "nodes": [ - { - "nodeid": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "alias": "SILENTARTIST-v23.11-415-gd120eba", - "color": "022d22", - "last_timestamp": 1708624765, - "features": "88a0000a8a5961", - "addresses": [] - }, - { - "nodeid": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "alias": "JUNIORBEAM-v23.11-415-gd120eba", - "color": "0266e4", - "last_timestamp": 1708624765, - "features": "88a0000a8a5961", - "addresses": [] - }, - { - "nodeid": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "alias": "HOPPINGFIRE-v23.11-415-gd120eba", - "color": "035d2b", - "last_timestamp": 1708624765, - "features": "88a0000a8a5961", - "addresses": [] - }, - { - "nodeid": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "alias": "JUNIORFELONY-v23.11-415-gd120eba", - "color": "0382ce", - "last_timestamp": 1708624766, - "features": "88a0000a8a5961", - "addresses": [] - } - ] - } - } - ], - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32602: Error in given parameters." - ], - "author": [ - "Vincenzo Palazzo <> wrote the initial version of this man page,", - "but many others did the hard work of actually implementing this rpc command." - ], - "see_also": [ - "lightning-listchannels(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listoffers.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listoffers", - "title": "Command for listing offers", - "warning": "experimental-offers only", - "description": [ - "The **listoffers** RPC command list all offers, or with `offer_id`, only the offer with that offer_id (if it exists)." - ], - "request": { - "required": [], - "properties": { - "offer_id": { - "type": "hash", - "description": [ - "Offer_id to get details for (if it exists)." - ] - }, - "active_only": { - "type": "boolean", - "description": [ - "If set and is true, only offers with `active` true are returned." - ] - } - } - }, - "response": { - "required": [ - "offers" - ], - "properties": { - "offers": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "offer_id", - "active", - "single_use", - "bolt12", - "used" - ], - "properties": { - "offer_id": { - "type": "hash", - "description": [ - "The id of this offer (merkle hash of non-signature fields)." - ] - }, - "active": { - "type": "boolean", - "description": [ - "Whether this can still be used." - ] - }, - "single_use": { - "type": "boolean", - "description": [ - "Whether this expires as soon as it's paid." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 encoding of the offer." - ] - }, - "used": { - "type": "boolean", - "description": [ - "True if an associated invoice has been paid." - ] - }, - "label": { - "type": "string", - "description": [ - "The (optional) user-specified label." - ] - } - } - } - } - } - }, - "json_example": [ - { - "request": { - "id": "example:listoffers#1", - "method": "listoffers", - "params": { - "active_only": true - } - }, - "response": { - "offers": [ - { - "offer_id": "053a5c566fbea2681a5ff9c05a913da23e45b95d09ef5bd25d7d408f23da7084", - "active": true, - "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqvqcdgq2z9pk7enxv4jjqen0wgs8yatnw3ujz83qkc6rvp4j28rt3dtrn32zkvdy7efhnlrpr5rp5geqxs783wtlj550qs8czzku4nk3pqp6m593qxgunzuqcwkmgqkmp6ty0wyvjcqdguv3pnpukedwn6cr87m89t74h3auyaeg89xkvgzpac70z3m9rn5xzu28c", - "used": false - }, - { - "offer_id": "3247d3597fec19e362ca683416a48a0f76a44c1600725a7ee1936548feadacca", - "active": true, - "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcxqd24x3qgqgqlgzs3gdhkven9v5sxvmmjype82um50ys3ug9kxsmqdvj3c6ut2cuu2s4nrf8k2dulccgaqcdzxgp583utjlu49rcyqt8hc3s797umxn3r9367rdqc577rma7key58fywkajxnuzyapge86hj2pg80rjrma40xdqrxnsnva5l3ce7hz4ua8wf755dees4y9vnq", - "used": true - } - ] - } - }, - { - "request": { - "id": "example:listoffers#2", - "method": "listoffers", - "params": [ - "f61cca153d1948dade19349792d9bcdc9cef687fd27db0b553a67979f55aae48" - ] - }, - "response": { - "offers": [ - { - "offer_id": "f61cca153d1948dade19349792d9bcdc9cef687fd27db0b553a67979f55aae48", - "active": true, - "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqyqs5rn5v4ehggrxdaezqvtdwdshg93pqfnwgkvdr57yzh6h92zg3qctvrm7w38djg67kzcm4yeg8vc4cq63s", - "used": false - } - ] - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-offer(7)", - "lightning-listoffers(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listpays.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listpays", - "title": "Command for querying payment status", - "description": [ - "The **listpay** RPC command gets the status of all *pay* commands, or a single one if either *bolt11* or *payment_hash* was specified." - ], - "request": { - "required": [], - "properties": { - "bolt11": { - "type": "string", - "description": [ - "Bolt11 string to get the payment details." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "Payment hash to get the payment details." - ] - }, - "status": { - "type": "string", - "description": [ - "To filter the payment by status." - ], - "enum": [ - "pending", - "complete", - "failed" - ] - } - } - }, - "response": { - "required": [ - "pays" - ], - "properties": { - "pays": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "payment_hash", - "status", - "created_at" - ], - "properties": { - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "status": { - "type": "string", - "enum": [ - "pending", - "failed", - "complete" - ], - "description": [ - "Status of the payment." - ] - }, - "destination": { - "type": "pubkey", - "description": [ - "The final destination of the payment if known." - ] - }, - "created_at": { - "type": "u64", - "description": [ - "The UNIX timestamp showing when this payment was initiated." - ] - }, - "completed_at": { - "type": "u64", - "description": [ - "The UNIX timestamp showing when this payment was completed." - ] - }, - "label": { - "type": "string", - "description": [ - "The label, if given to sendpay." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "The bolt11 string (if pay supplied one)." - ] - }, - "description": { - "type": "string", - "description": [ - "The description matching the bolt11 description hash (if pay supplied one)." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 string (if supplied for pay: **experimental-offers** only)." - ] - } - }, - "allOf": [ - { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "complete" - ] + }, + "fee_proportional_millionths": { + "type": "u32", + "added": "v24.02", + "description": [ + "Amount they charge to use the channel in parts-per-million." + ] + } + } } } }, - "then": { + "ignore_fee_limits": { + "type": "boolean", + "added": "v23.08", + "description": [ + "Set if we allow this peer to set fees to anything they want." + ] + }, + "lost_state": { + "type": "boolean", + "added": "v24.02", + "description": [ + "Set if we are fallen behind i.e. lost some channel state." + ] + }, + "feerate": { + "type": "object", + "description": [ + "Feerates for the current tx." + ], "additionalProperties": false, "required": [ - "amount_sent_msat", - "preimage" + "perkw", + "perkb" ], "properties": { - "payment_hash": {}, - "status": {}, - "destination": {}, - "created_at": {}, - "completed_at": {}, - "label": {}, - "bolt11": {}, - "description": {}, - "bolt12": {}, - "amount_msat": { - "type": "msat", - "description": [ - "The amount of millisatoshi we intended to send to the destination." - ] - }, - "amount_sent_msat": { - "type": "msat", - "description": [ - "The amount of millisatoshi we sent in order to pay (may include fees and not match amount_msat)." - ] - }, - "preimage": { - "type": "secret", + "perkw": { + "type": "u32", "description": [ - "Proof of payment." + "Feerate per 1000 weight (i.e kSipa)." ] }, - "number_of_parts": { - "type": "u64", + "perkb": { + "type": "u32", "description": [ - "The number of parts for a successful payment (only if more than one)." - ] - } - } - } - }, - { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" + "Feerate per 1000 virtual bytes." ] } } }, - "then": { - "additionalProperties": false, - "required": [ - "amount_sent_msat" + "owner": { + "type": "string", + "description": [ + "The current subdaemon controlling this connection." + ] + }, + "short_channel_id": { + "type": "short_channel_id", + "description": [ + "The short_channel_id (once locked in)." + ] + }, + "channel_id": { + "type": "hash", + "description": [ + "The full channel_id (funding txid Xored with output number)." + ] + }, + "funding_txid": { + "type": "txid", + "description": [ + "ID of the funding transaction." + ] + }, + "funding_outnum": { + "type": "u32", + "description": [ + "The 0-based output number of the funding transaction which opens the channel." + ] + }, + "initial_feerate": { + "type": "string", + "description": [ + "For inflight opens, the first feerate used to initiate the channel open." + ] + }, + "last_feerate": { + "type": "string", + "description": [ + "For inflight opens, the most recent feerate used on the channel open." + ] + }, + "next_feerate": { + "type": "string", + "description": [ + "For inflight opens, the next feerate we'll use for the channel open." + ] + }, + "next_fee_step": { + "type": "u32", + "description": [ + "For inflight opens, the next feerate step we'll use for the channel open." + ] + }, + "inflight": { + "type": "array", + "description": [ + "Current candidate funding transactions." ], - "properties": { - "payment_hash": {}, - "status": {}, - "destination": {}, - "created_at": {}, - "label": {}, - "bolt11": {}, - "description": {}, - "bolt12": {}, - "amount_sent_msat": {}, - "erroronion": { - "type": "hex", - "description": [ - "The error onion returned on failure, if any." - ] - } - } - } - } - ] - } - } - }, - "post_return_value_notes": [ - "The returned array is ordered by increasing **created_at** fields." - ] - }, - "json_example": [ - { - "request": { - "id": "example:listpays#1", - "method": "listpays", - "params": { - "bolt11": "lnbcrt123n1pjmxp7qsp5hxu7u28y0nx4v689u3hwzdzse2w9yaylhheavf9dxvwtdup7pvespp5ha66gxse68j4n6755v7299dnmq4w34gp0znxu0xzahdc43zrg40qdq5v3jhxcmjd9c8g6t0dc6sxqrp7scqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqvuqqqqsqqqqqqqqpqqqqqzsqqc9qxpqysgqk74dvqlvr92ayy5s7x0r0u9xywez6wu4h8pfta386cw6x7cdrvn8pz87kyg5c930aent423gm9ylpaw5p35k72f02hg0s9dulg4d8fqpgj7gpm", - "payment_hash": null, - "status": null - } - }, - "response": { - "pays": [ - { - "bolt11": "lnbcrt123n1pjmxp7qsp5hxu7u28y0nx4v689u3hwzdzse2w9yaylhheavf9dxvwtdup7pvespp5ha66gxse68j4n6755v7299dnmq4w34gp0znxu0xzahdc43zrg40qdq5v3jhxcmjd9c8g6t0dc6sxqrp7scqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqvuqqqqsqqqqqqqqpqqqqqzsqqc9qxpqysgqk74dvqlvr92ayy5s7x0r0u9xywez6wu4h8pfta386cw6x7cdrvn8pz87kyg5c930aent423gm9ylpaw5p35k72f02hg0s9dulg4d8fqpgj7gpm", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "bf75a41a19d1e559ebd4a33ca295b3d82ae8d50178a66e3cc2eddb8ac443455e", - "status": "failed", - "created_at": 1706231854, - "amount_sent_msat": 0 - } - ] - } - }, - { - "request": { - "id": "example:listpays#2", - "method": "listpays", - "params": { - "bolt11": "lnbcrt123n1pjmxp7qsp5u84368dz7yhzcqm955h96wdqch7uarasun45cr0vs5d8t0cv5avqpp5r9p0dp92guaatrmhf302m0dyj4n79gk93qu2l5tagfxq3dedgfqsdq5v3jhxcmjd9c8g6t0dc6qxqrp7scqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqvuqqqqsqqqqqqqqpqqqqqzsqqc9qxpqysgq46wu0fznfx27rcnyzhcttf8yqx3lwqs482yxlead0fyt8mefrrrj5m379fa5qukgquf9tnwsuj3nnfmwkzkfg6pyhzq6w8gauuh6m5cqgur64n", - "payment_hash": null, - "status": null - } - }, - "response": { - "pays": [ - { - "bolt11": "lnbcrt123n1pjmxp7qsp5u84368dz7yhzcqm955h96wdqch7uarasun45cr0vs5d8t0cv5avqpp5r9p0dp92guaatrmhf302m0dyj4n79gk93qu2l5tagfxq3dedgfqsdq5v3jhxcmjd9c8g6t0dc6qxqrp7scqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqvuqqqqsqqqqqqqqpqqqqqzsqqc9qxpqysgq46wu0fznfx27rcnyzhcttf8yqx3lwqs482yxlead0fyt8mefrrrj5m379fa5qukgquf9tnwsuj3nnfmwkzkfg6pyhzq6w8gauuh6m5cqgur64n", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "1942f684aa473bd58f774c5eadbda49567e2a2c58838afd17d424c08b72d4241", - "status": "complete", - "created_at": 1706231849, - "completed_at": 1706231854, - "preimage": "89ce412a2089cbcb72a73ce755337cf693859ea58f21ef0d1caf286a9b0f2a7c", - "amount_msat": 12300, - "amount_sent_msat": 12301 - } - ] - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-pay(7)", - "lightning-paystatus(7)", - "lightning-listsendpays(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listpeerchannels.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.02", - "rpc": "listpeerchannels", - "title": "Command returning data on channels of connected lightning nodes", - "description": [ - "The **listpeerchannels** RPC command returns data on channels of the network, with the possibility to filter the channels by node id.", - "", - "If no *id* is supplied, then channel data on all lightning nodes that are connected, or not connected but have open channels with this node, are returned." - ], - "request": { - "required": [], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "If supplied, limits the channels to just the peer with the given ID, if it exists." - ] - } - } - }, - "response": { - "required": [ - "channels" - ], - "properties": { - "channels": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "state", - "opener", - "features", - "peer_connected", - "peer_id" - ], - "properties": { - "peer_id": { - "type": "pubkey", - "description": [ - "Node Public key." - ] - }, - "peer_connected": { - "type": "boolean", - "description": [ - "A boolean flag that is set to true if the peer is online." - ] - }, - "reestablished": { - "type": "boolean", - "added": "v24.02", - "description": [ - "A boolean flag that is set to true if we have successfully exchanged reestablish messages with this connection." - ] - }, - "state": { - "type": "string", - "enum": [ - "OPENINGD", - "CHANNELD_AWAITING_LOCKIN", - "CHANNELD_NORMAL", - "CHANNELD_SHUTTING_DOWN", - "CLOSINGD_SIGEXCHANGE", - "CLOSINGD_COMPLETE", - "AWAITING_UNILATERAL", - "FUNDING_SPEND_SEEN", - "ONCHAIN", - "DUALOPEND_OPEN_INIT", - "DUALOPEND_AWAITING_LOCKIN", - "CHANNELD_AWAITING_SPLICE", - "DUALOPEND_OPEN_COMMITTED", - "DUALOPEND_OPEN_COMMIT_READY" - ], - "description": [ - "The channel state, in particular `CHANNELD_NORMAL` means the channel can be used normally." - ] - }, - "scratch_txid": { - "type": "txid", - "description": [ - "The txid we would use if we went onchain now." - ] - }, - "channel_type": { - "type": "object", - "description": [ - "Channel_type as negotiated with peer." - ], - "added": "v23.05", - "additionalProperties": false, - "required": [ - "bits", - "names" - ], - "properties": { - "bits": { - "type": "array", - "description": [ - "Each bit set in this channel_type." - ], - "items": { - "type": "u32", - "description": [ - "Bit number." - ] - } - }, - "names": { - "type": "array", - "description": [ - "Feature name for each bit set in this channel_type." - ], - "items": { - "type": "string", - "enum": [ - "static_remotekey/even", - "anchor_outputs/even", - "anchors_zero_fee_htlc_tx/even", - "scid_alias/even", - "zeroconf/even" - ], - "description": [ - "Name of feature bit." - ] - } - } - } - }, - "updates": { - "type": "object", - "added": "v24.02", - "description": [ - "Latest gossip updates sent/received." - ], - "additionalProperties": false, - "required": [ - "local" - ], - "properties": { - "local": { + "items": { "type": "object", - "description": [ - "Our gossip for channel." - ], "additionalProperties": false, - "added": "v24.02", "required": [ - "htlc_minimum_msat", - "htlc_maximum_msat", - "cltv_expiry_delta", - "fee_base_msat", - "fee_proportional_millionths" + "funding_txid", + "funding_outnum", + "feerate", + "total_funding_msat", + "splice_amount", + "our_funding_msat" ], "properties": { - "htlc_minimum_msat": { - "type": "msat", - "added": "v24.02", - "description": [ - "Minimum msat amount we allow." - ] - }, - "htlc_maximum_msat": { - "type": "msat", - "added": "v24.02", + "funding_txid": { + "type": "txid", "description": [ - "Maximum msat amount we allow." + "ID of the funding transaction." ] }, - "cltv_expiry_delta": { + "funding_outnum": { "type": "u32", - "added": "v24.02", - "description": [ - "Blocks delay required between incoming and outgoing HTLCs." - ] - }, - "fee_base_msat": { - "type": "msat", - "added": "v24.02", "description": [ - "Amount we charge to use the channel." + "The 0-based output number of the funding transaction which opens the channel." ] }, - "fee_proportional_millionths": { - "type": "u32", - "added": "v24.02", - "description": [ - "Amount we charge to use the channel in parts-per-million." - ] - } - } - }, - "remote": { - "type": "object", - "added": "v24.02", - "description": [ - "Peer's gossip for channel." - ], - "additionalProperties": false, - "required": [ - "htlc_minimum_msat", - "htlc_maximum_msat", - "cltv_expiry_delta", - "fee_base_msat", - "fee_proportional_millionths" - ], - "properties": { - "htlc_minimum_msat": { - "type": "msat", - "added": "v24.02", + "feerate": { + "type": "string", "description": [ - "Minimum msat amount they allow." + "The feerate for this funding transaction in per-1000-weight, with `kpw` appended." ] }, - "htlc_maximum_msat": { + "total_funding_msat": { "type": "msat", - "added": "v24.02", "description": [ - "Maximum msat amount they allow." + "Total amount in the channel." ] }, - "cltv_expiry_delta": { - "type": "u32", - "added": "v24.02", + "splice_amount": { + "type": "integer", + "added": "v23.08", "description": [ - "Blocks delay required between incoming and outgoing HTLCs." + "The amouont of sats we're splicing in or out." ] }, - "fee_base_msat": { + "our_funding_msat": { "type": "msat", - "added": "v24.02", "description": [ - "Amount they charge to use the channel." + "Amount we have in the channel." ] }, - "fee_proportional_millionths": { - "type": "u32", - "added": "v24.02", + "scratch_txid": { + "type": "txid", "description": [ - "Amount they charge to use the channel in parts-per-million." + "The commitment transaction txid we would use if we went onchain now." ] } } } - } - }, - "ignore_fee_limits": { - "type": "boolean", - "added": "v23.08", - "description": [ - "Set if we allow this peer to set fees to anything they want." - ] - }, - "lost_state": { - "type": "boolean", - "added": "v24.02", - "description": [ - "Set if we are fallen behind i.e. lost some channel state." - ] - }, - "feerate": { - "type": "object", - "description": [ - "Feerates for the current tx." - ], - "additionalProperties": false, - "required": [ - "perkw", - "perkb" - ], - "properties": { - "perkw": { - "type": "u32", - "description": [ - "Feerate per 1000 weight (i.e kSipa)." - ] - }, - "perkb": { - "type": "u32", + }, + "close_to": { + "type": "hex", + "description": [ + "ScriptPubkey which we have to close to if we mutual close." + ] + }, + "private": { + "type": "boolean", + "description": [ + "If True, we will not announce this channel." + ] + }, + "opener": { + "type": "string", + "enum": [ + "local", + "remote" + ], + "description": [ + "Who initiated the channel." + ] + }, + "closer": { + "type": "string", + "enum": [ + "local", + "remote" + ], + "description": [ + "Who initiated the channel close (only present if closing)." + ] + }, + "features": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "option_static_remotekey", + "option_anchor_outputs", + "option_anchors_zero_fee_htlc_tx", + "option_scid_alias", + "option_zeroconf" + ], "description": [ - "Feerate per 1000 virtual bytes." + "BOLT #9 features which apply to this channel." ] } - } - }, - "owner": { - "type": "string", - "description": [ - "The current subdaemon controlling this connection." - ] - }, - "short_channel_id": { - "type": "short_channel_id", - "description": [ - "The short_channel_id (once locked in)." - ] - }, - "channel_id": { - "type": "hash", - "description": [ - "The full channel_id (funding txid Xored with output number)." - ] - }, - "funding_txid": { - "type": "txid", - "description": [ - "ID of the funding transaction." - ] - }, - "funding_outnum": { - "type": "u32", - "description": [ - "The 0-based output number of the funding transaction which opens the channel." - ] - }, - "initial_feerate": { - "type": "string", - "description": [ - "For inflight opens, the first feerate used to initiate the channel open." - ] - }, - "last_feerate": { - "type": "string", - "description": [ - "For inflight opens, the most recent feerate used on the channel open." - ] - }, - "next_feerate": { - "type": "string", - "description": [ - "For inflight opens, the next feerate we'll use for the channel open." - ] - }, - "next_fee_step": { - "type": "u32", - "description": [ - "For inflight opens, the next feerate step we'll use for the channel open." - ] - }, - "inflight": { - "type": "array", - "description": [ - "Current candidate funding transactions." - ], - "items": { + }, + "funding": { "type": "object", "additionalProperties": false, "required": [ - "funding_txid", - "funding_outnum", - "feerate", - "total_funding_msat", - "splice_amount", - "our_funding_msat" + "local_funds_msat", + "remote_funds_msat" ], "properties": { - "funding_txid": { - "type": "txid", + "pushed_msat": { + "type": "msat", "description": [ - "ID of the funding transaction." + "Amount pushed from opener to peer." ] }, - "funding_outnum": { - "type": "u32", + "local_funds_msat": { + "type": "msat", "description": [ - "The 0-based output number of the funding transaction which opens the channel." + "Amount of channel we funded." ] }, - "feerate": { - "type": "string", + "remote_funds_msat": { + "type": "msat", "description": [ - "The feerate for this funding transaction in per-1000-weight, with `kpw` appended." + "Amount of channel they funded." ] }, - "total_funding_msat": { + "fee_paid_msat": { "type": "msat", "description": [ - "Total amount in the channel." + "Amount we paid peer at open." ] }, - "splice_amount": { - "type": "integer", - "added": "v23.08", + "fee_rcvd_msat": { + "type": "msat", "description": [ - "The amouont of sats we're splicing in or out." + "Amount we were paid by peer at open." ] - }, - "our_funding_msat": { - "type": "msat", + } + } + }, + "to_us_msat": { + "type": "msat", + "description": [ + "How much of channel is owed to us." + ] + }, + "min_to_us_msat": { + "type": "msat", + "description": [ + "Least amount owed to us ever. If the peer were to successfully steal from us, this is the amount we would still retain." + ] + }, + "max_to_us_msat": { + "type": "msat", + "description": [ + "Most amount owed to us ever. If we were to successfully steal from the peer, this is the amount we could potentially get." + ] + }, + "total_msat": { + "type": "msat", + "description": [ + "Total amount in the channel." + ] + }, + "fee_base_msat": { + "type": "msat", + "description": [ + "Amount we charge to use the channel." + ] + }, + "fee_proportional_millionths": { + "type": "u32", + "description": [ + "Amount we charge to use the channel in parts-per-million." + ] + }, + "dust_limit_msat": { + "type": "msat", + "description": [ + "Minimum amount for an output on the channel transactions." + ] + }, + "max_total_htlc_in_msat": { + "type": "msat", + "description": [ + "Max amount accept in a single payment." + ] + }, + "their_reserve_msat": { + "type": "msat", + "description": [ + "Minimum we insist they keep in channel. If they have less than this in the channel, they cannot send to us on that channel." + ], + "default": "1% of the total channel capacity" + }, + "our_reserve_msat": { + "type": "msat", + "description": [ + "Minimum they insist we keep in channel. If you have less than this in the channel, you cannot send out via this channel." + ] + }, + "spendable_msat": { + "type": "msat", + "description": [ + "An estimate of the total we could send through channel (can be wrong because adding HTLCs requires an increase in fees paid to onchain miners, and onchain fees change dynamically according to onchain activity)." + ] + }, + "receivable_msat": { + "type": "msat", + "description": [ + "An estimate of the total peer could send through channel." + ] + }, + "minimum_htlc_in_msat": { + "type": "msat", + "description": [ + "The minimum amount HTLC we accept." + ] + }, + "minimum_htlc_out_msat": { + "type": "msat", + "description": [ + "The minimum amount HTLC we will send." + ] + }, + "maximum_htlc_out_msat": { + "type": "msat", + "description": [ + "The maximum amount HTLC we will send." + ] + }, + "their_to_self_delay": { + "type": "u32", + "description": [ + "The number of blocks before they can take their funds if they unilateral close." + ] + }, + "our_to_self_delay": { + "type": "u32", + "description": [ + "The number of blocks before we can take our funds if we unilateral close." + ] + }, + "max_accepted_htlcs": { + "type": "u32", + "description": [ + "Maximum number of incoming HTLC we will accept at once." + ] + }, + "alias": { + "type": "object", + "required": [], + "properties": { + "local": { + "type": "short_channel_id", "description": [ - "Amount we have in the channel." + "An alias assigned by this node to this channel, used for outgoing payments." ] }, - "scratch_txid": { - "type": "txid", + "remote": { + "type": "short_channel_id", "description": [ - "The commitment transaction txid we would use if we went onchain now." + "An alias assigned by the remote node to this channel, usable in routehints and invoices." ] } } - } - }, - "close_to": { - "type": "hex", - "description": [ - "ScriptPubkey which we have to close to if we mutual close." - ] - }, - "private": { - "type": "boolean", - "description": [ - "If True, we will not announce this channel." - ] - }, - "opener": { - "type": "string", - "enum": [ - "local", - "remote" - ], - "description": [ - "Who initiated the channel." - ] - }, - "closer": { - "type": "string", - "enum": [ - "local", - "remote" - ], - "description": [ - "Who initiated the channel close (only present if closing)." - ] - }, - "features": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "option_static_remotekey", - "option_anchor_outputs", - "option_anchors_zero_fee_htlc_tx", - "option_scid_alias", - "option_zeroconf" + }, + "state_changes": { + "type": "array", + "description": [ + "Prior state changes." ], + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "timestamp", + "old_state", + "new_state", + "cause", + "message" + ], + "properties": { + "timestamp": { + "type": "string", + "description": [ + "UTC timestamp of form YYYY-mm-ddTHH:MM:SS.%03dZ." + ] + }, + "old_state": { + "type": "string", + "enum": [ + "OPENINGD", + "CHANNELD_AWAITING_LOCKIN", + "CHANNELD_NORMAL", + "CHANNELD_SHUTTING_DOWN", + "CLOSINGD_SIGEXCHANGE", + "CLOSINGD_COMPLETE", + "AWAITING_UNILATERAL", + "FUNDING_SPEND_SEEN", + "ONCHAIN", + "DUALOPEND_OPEN_INIT", + "DUALOPEND_AWAITING_LOCKIN", + "DUALOPEND_OPEN_COMMITTED", + "DUALOPEND_OPEN_COMMIT_READY", + "CHANNELD_AWAITING_SPLICE" + ], + "description": [ + "Previous state." + ] + }, + "new_state": { + "type": "string", + "enum": [ + "OPENINGD", + "CHANNELD_AWAITING_LOCKIN", + "CHANNELD_NORMAL", + "CHANNELD_SHUTTING_DOWN", + "CLOSINGD_SIGEXCHANGE", + "CLOSINGD_COMPLETE", + "AWAITING_UNILATERAL", + "FUNDING_SPEND_SEEN", + "ONCHAIN", + "DUALOPEND_OPEN_INIT", + "DUALOPEND_AWAITING_LOCKIN", + "DUALOPEND_OPEN_COMMITTED", + "DUALOPEND_OPEN_COMMIT_READY", + "CHANNELD_AWAITING_SPLICE" + ], + "description": [ + "New state." + ] + }, + "cause": { + "type": "string", + "enum": [ + "unknown", + "local", + "user", + "remote", + "protocol", + "onchain" + ], + "description": [ + "What caused the change." + ] + }, + "message": { + "type": "string", + "description": [ + "Human-readable explanation." + ] + } + } + } + }, + "status": { + "type": "array", + "items": { + "type": "string", + "description": [ + "Billboard log of significant changes." + ] + } + }, + "in_payments_offered": { + "type": "u64", + "description": [ + "Number of incoming payment attempts." + ] + }, + "in_offered_msat": { + "type": "msat", + "description": [ + "Total amount of incoming payment attempts." + ] + }, + "in_payments_fulfilled": { + "type": "u64", + "description": [ + "Number of successful incoming payment attempts." + ] + }, + "in_fulfilled_msat": { + "type": "msat", + "description": [ + "Total amount of successful incoming payment attempts." + ] + }, + "out_payments_offered": { + "type": "u64", + "description": [ + "Number of outgoing payment attempts." + ] + }, + "out_offered_msat": { + "type": "msat", + "description": [ + "Total amount of outgoing payment attempts." + ] + }, + "out_payments_fulfilled": { + "type": "u64", + "description": [ + "Number of successful outgoing payment attempts." + ] + }, + "out_fulfilled_msat": { + "type": "msat", + "description": [ + "Total amount of successful outgoing payment attempts." + ] + }, + "last_stable_connection": { + "type": "u64", + "added": "v24.02", "description": [ - "BOLT #9 features which apply to this channel." + "Last time we reestablished the open channel and stayed connected for 1 minute." ] + }, + "htlcs": { + "type": "array", + "description": [ + "Current HTLCs in this channel." + ], + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "direction", + "id", + "amount_msat", + "expiry", + "payment_hash", + "state" + ], + "properties": { + "direction": { + "type": "string", + "added": "v23.02", + "enum": [ + "in", + "out" + ], + "description": [ + "Whether it came from peer, or is going to peer." + ] + }, + "id": { + "type": "u64", + "description": [ + "Unique ID for this htlc on this channel in this direction." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "Amount send/received for this HTLC." + ] + }, + "expiry": { + "type": "u32", + "description": [ + "Block this HTLC expires at (after which an `in` direction HTLC will be returned to the peer, an `out` returned to us). If this expiry is too close, lightningd(8) will automatically unilaterally close the channel in order to enforce the timeout onchain." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the payment_preimage which will prove payment." + ] + }, + "local_trimmed": { + "type": "boolean", + "enum": [ + true + ], + "description": [ + "If this is too small to enforce onchain; it doesn't appear in the commitment transaction and will not be enforced in a unilateral close. Generally true if the HTLC (after subtracting onchain fees) is below the `dust_limit_msat` for the channel." + ] + }, + "status": { + "type": "string", + "description": [ + "Set if this HTLC is currently waiting on a hook (and shows what plugin)." + ] + } + }, + "allOf": [ + { + "if": { + "properties": { + "direction": { + "enum": [ + "out" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "state" + ], + "properties": { + "direction": {}, + "id": {}, + "amount_msat": {}, + "msatoshi": {}, + "expiry": {}, + "payment_hash": {}, + "local_trimmed": {}, + "status": {}, + "alias": {}, + "peer_id": {}, + "peer_connected": {}, + "reestablished": {}, + "state": { + "type": "string", + "enum": [ + "SENT_ADD_HTLC", + "SENT_ADD_COMMIT", + "RCVD_ADD_REVOCATION", + "RCVD_ADD_ACK_COMMIT", + "SENT_ADD_ACK_REVOCATION", + "RCVD_REMOVE_HTLC", + "RCVD_REMOVE_COMMIT", + "SENT_REMOVE_REVOCATION", + "SENT_REMOVE_ACK_COMMIT", + "RCVD_REMOVE_ACK_REVOCATION" + ], + "description": [ + "Status of the HTLC." + ] + } + } + } + }, + { + "if": { + "properties": { + "direction": { + "enum": [ + "in" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "state" + ], + "properties": { + "direction": {}, + "id": {}, + "amount_msat": {}, + "msatoshi": {}, + "expiry": {}, + "payment_hash": {}, + "local_trimmed": {}, + "status": {}, + "peer_id": {}, + "peer_connected": {}, + "reestablished": {}, + "state": { + "type": "string", + "enum": [ + "RCVD_ADD_HTLC", + "RCVD_ADD_COMMIT", + "SENT_ADD_REVOCATION", + "SENT_ADD_ACK_COMMIT", + "RCVD_ADD_ACK_REVOCATION", + "SENT_REMOVE_HTLC", + "SENT_REMOVE_COMMIT", + "RCVD_REMOVE_REVOCATION", + "RCVD_REMOVE_ACK_COMMIT", + "SENT_REMOVE_ACK_REVOCATION" + ], + "description": [ + "Status of the HTLC." + ] + } + } + } + } + ] + } } }, - "funding": { - "type": "object", - "additionalProperties": false, - "required": [ - "local_funds_msat", - "remote_funds_msat" - ], - "properties": { - "pushed_msat": { - "type": "msat", - "description": [ - "Amount pushed from opener to peer." - ] + "allOf": [ + { + "if": { + "properties": { + "peer_connected": { + "type": "boolean", + "enum": [ + true + ] + } + } }, - "local_funds_msat": { - "type": "msat", - "description": [ - "Amount of channel we funded." + "then": { + "properties": { + "reestablished": { + "type": "boolean", + "description": [ + "True if we have successfully exchanged reestablish messages this connection." + ] + } + } + } + }, + { + "if": { + "required": [ + "close_to" ] }, - "remote_funds_msat": { - "type": "msat", - "description": [ - "Amount of channel they funded." + "then": { + "additionalProperties": false, + "required": [], + "properties": { + "state": {}, + "peer_id": {}, + "peer_connected": {}, + "reestablished": {}, + "scratch_txid": {}, + "channel_type": {}, + "feerate": {}, + "ignore_fee_limits": {}, + "lost_state": {}, + "owner": {}, + "short_channel_id": {}, + "channel_id": {}, + "updates": {}, + "funding_txid": {}, + "funding_outnum": {}, + "close_to": {}, + "private": {}, + "alias": {}, + "opener": {}, + "closer": {}, + "features": {}, + "funding": {}, + "to_us_msat": {}, + "min_to_us_msat": {}, + "max_to_us_msat": {}, + "total_msat": {}, + "fee_base_msat": {}, + "fee_proportional_millionths": {}, + "dust_limit_msat": {}, + "max_total_htlc_in_msat": {}, + "their_reserve_msat": {}, + "our_reserve_msat": {}, + "spendable_msat": {}, + "receivable_msat": {}, + "minimum_htlc_in_msat": {}, + "minimum_htlc_out_msat": {}, + "maximum_htlc_out_msat": {}, + "spendable_msatoshi": {}, + "receivable_msatoshi": {}, + "their_to_self_delay": {}, + "our_to_self_delay": {}, + "max_accepted_htlcs": {}, + "msatoshi_to_us": {}, + "msatoshi_to_us_min": {}, + "msatoshi_to_us_max": {}, + "msatoshi_total": {}, + "dust_limit_satoshis": {}, + "max_htlc_value_in_flight_msat": {}, + "our_channel_reserve_satoshis": {}, + "their_channel_reserve_satoshis": {}, + "spendable_satoshis": {}, + "receivable_satoshis": {}, + "htlc_minimum_msat": {}, + "state_changes": {}, + "status": {}, + "in_payments_offered": {}, + "in_offered_msat": {}, + "in_msatoshi_offered": {}, + "in_payments_fulfilled": {}, + "in_fulfilled_msat": {}, + "in_msatoshi_fulfilled": {}, + "out_payments_offered": {}, + "out_offered_msat": {}, + "out_msatoshi_offered": {}, + "out_payments_fulfilled": {}, + "out_fulfilled_msat": {}, + "out_msatoshi_fulfilled": {}, + "last_stable_connection": {}, + "htlcs": {}, + "initial_feerate": {}, + "last_feerate": {}, + "next_feerate": {}, + "inflight": {}, + "last_tx_fee_msat": {}, + "direction": {}, + "close_to_addr": { + "type": "string", + "description": [ + "The bitcoin address we will close to (present if close_to_addr is a standardized address)." + ] + } + } + } + }, + { + "if": { + "required": [ + "scratch_txid" ] }, - "fee_paid_msat": { - "type": "msat", - "description": [ - "Amount we paid peer at open." + "then": { + "additionalProperties": false, + "required": [ + "last_tx_fee_msat" + ], + "properties": { + "state": {}, + "peer_id": {}, + "peer_connected": {}, + "reestablished": {}, + "alias": {}, + "scratch_txid": {}, + "channel_type": {}, + "feerate": {}, + "ignore_fee_limits": {}, + "lost_state": {}, + "owner": {}, + "short_channel_id": {}, + "channel_id": {}, + "updates": {}, + "funding_txid": {}, + "funding_outnum": {}, + "inflight": {}, + "close_to": {}, + "private": {}, + "opener": {}, + "closer": {}, + "features": {}, + "funding": {}, + "to_us_msat": {}, + "min_to_us_msat": {}, + "max_to_us_msat": {}, + "total_msat": {}, + "fee_base_msat": {}, + "fee_proportional_millionths": {}, + "dust_limit_msat": {}, + "max_total_htlc_in_msat": {}, + "their_reserve_msat": {}, + "our_reserve_msat": {}, + "spendable_msat": {}, + "receivable_msat": {}, + "minimum_htlc_in_msat": {}, + "minimum_htlc_out_msat": {}, + "maximum_htlc_out_msat": {}, + "spendable_msatoshi": {}, + "receivable_msatoshi": {}, + "their_to_self_delay": {}, + "our_to_self_delay": {}, + "max_accepted_htlcs": {}, + "msatoshi_to_us": {}, + "msatoshi_to_us_min": {}, + "msatoshi_to_us_max": {}, + "msatoshi_total": {}, + "dust_limit_satoshis": {}, + "max_htlc_value_in_flight_msat": {}, + "our_channel_reserve_satoshis": {}, + "their_channel_reserve_satoshis": {}, + "spendable_satoshis": {}, + "receivable_satoshis": {}, + "htlc_minimum_msat": {}, + "state_changes": {}, + "status": {}, + "in_payments_offered": {}, + "in_offered_msat": {}, + "in_msatoshi_offered": {}, + "in_payments_fulfilled": {}, + "in_fulfilled_msat": {}, + "in_msatoshi_fulfilled": {}, + "out_payments_offered": {}, + "out_offered_msat": {}, + "out_msatoshi_offered": {}, + "out_payments_fulfilled": {}, + "out_fulfilled_msat": {}, + "out_msatoshi_fulfilled": {}, + "last_stable_connection": {}, + "htlcs": {}, + "initial_feerate": {}, + "last_feerate": {}, + "next_feerate": {}, + "close_to_addr": {}, + "direction": {}, + "last_tx_fee_msat": { + "type": "msat", + "description": [ + "Fee attached to this the current tx." + ] + } + } + } + }, + { + "if": { + "required": [ + "short_channel_id" ] }, - "fee_rcvd_msat": { - "type": "msat", - "description": [ - "Amount we were paid by peer at open." + "then": { + "additionalProperties": false, + "required": [ + "direction" + ], + "properties": { + "alias": {}, + "peer_id": {}, + "peer_connected": {}, + "reestablished": {}, + "state": {}, + "scratch_txid": {}, + "channel_type": {}, + "feerate": {}, + "ignore_fee_limits": {}, + "lost_state": {}, + "owner": {}, + "short_channel_id": {}, + "channel_id": {}, + "updates": {}, + "funding_txid": {}, + "funding_outnum": {}, + "inflight": {}, + "close_to": {}, + "private": {}, + "opener": {}, + "closer": {}, + "features": {}, + "funding": {}, + "to_us_msat": {}, + "min_to_us_msat": {}, + "max_to_us_msat": {}, + "total_msat": {}, + "fee_base_msat": {}, + "fee_proportional_millionths": {}, + "dust_limit_msat": {}, + "max_total_htlc_in_msat": {}, + "their_reserve_msat": {}, + "our_reserve_msat": {}, + "spendable_msat": {}, + "receivable_msat": {}, + "minimum_htlc_in_msat": {}, + "minimum_htlc_out_msat": {}, + "maximum_htlc_out_msat": {}, + "spendable_msatoshi": {}, + "receivable_msatoshi": {}, + "their_to_self_delay": {}, + "our_to_self_delay": {}, + "max_accepted_htlcs": {}, + "msatoshi_to_us": {}, + "msatoshi_to_us_min": {}, + "msatoshi_to_us_max": {}, + "msatoshi_total": {}, + "dust_limit_satoshis": {}, + "max_htlc_value_in_flight_msat": {}, + "our_channel_reserve_satoshis": {}, + "their_channel_reserve_satoshis": {}, + "spendable_satoshis": {}, + "receivable_satoshis": {}, + "htlc_minimum_msat": {}, + "state_changes": {}, + "status": {}, + "in_payments_offered": {}, + "in_offered_msat": {}, + "in_msatoshi_offered": {}, + "in_payments_fulfilled": {}, + "in_fulfilled_msat": {}, + "in_msatoshi_fulfilled": {}, + "out_payments_offered": {}, + "out_offered_msat": {}, + "out_msatoshi_offered": {}, + "out_payments_fulfilled": {}, + "out_fulfilled_msat": {}, + "out_msatoshi_fulfilled": {}, + "last_stable_connection": {}, + "htlcs": {}, + "initial_feerate": {}, + "last_feerate": {}, + "next_feerate": {}, + "close_to_addr": {}, + "last_tx_fee_msat": {}, + "direction": { + "type": "u32", + "added": "v23.02", + "description": [ + "0 if we're the lesser node_id, 1 if we're the greater (as used in BOLT #7 channel_update)." + ] + } + } + } + }, + { + "if": { + "required": [ + "inflight" ] + }, + "then": { + "additionalProperties": false, + "required": [ + "initial_feerate", + "last_feerate", + "next_feerate" + ], + "properties": { + "state": {}, + "peer_id": {}, + "peer_connected": {}, + "reestablished": {}, + "scratch_txid": {}, + "channel_type": {}, + "feerate": {}, + "ignore_fee_limits": {}, + "lost_state": {}, + "owner": {}, + "alias": {}, + "short_channel_id": {}, + "channel_id": {}, + "updates": {}, + "funding_txid": {}, + "funding_outnum": {}, + "close_to": {}, + "private": {}, + "opener": {}, + "closer": {}, + "features": {}, + "funding": {}, + "to_us_msat": {}, + "min_to_us_msat": {}, + "max_to_us_msat": {}, + "total_msat": {}, + "fee_base_msat": {}, + "fee_proportional_millionths": {}, + "dust_limit_msat": {}, + "max_total_htlc_in_msat": {}, + "their_reserve_msat": {}, + "our_reserve_msat": {}, + "spendable_msat": {}, + "receivable_msat": {}, + "minimum_htlc_in_msat": {}, + "minimum_htlc_out_msat": {}, + "maximum_htlc_out_msat": {}, + "spendable_msatoshi": {}, + "receivable_msatoshi": {}, + "their_to_self_delay": {}, + "our_to_self_delay": {}, + "max_accepted_htlcs": {}, + "msatoshi_to_us": {}, + "msatoshi_to_us_min": {}, + "msatoshi_to_us_max": {}, + "msatoshi_total": {}, + "dust_limit_satoshis": {}, + "max_htlc_value_in_flight_msat": {}, + "our_channel_reserve_satoshis": {}, + "their_channel_reserve_satoshis": {}, + "spendable_satoshis": {}, + "receivable_satoshis": {}, + "htlc_minimum_msat": {}, + "state_changes": {}, + "status": {}, + "in_payments_offered": {}, + "in_offered_msat": {}, + "in_msatoshi_offered": {}, + "in_payments_fulfilled": {}, + "in_fulfilled_msat": {}, + "in_msatoshi_fulfilled": {}, + "out_payments_offered": {}, + "out_offered_msat": {}, + "out_msatoshi_offered": {}, + "out_payments_fulfilled": {}, + "out_fulfilled_msat": {}, + "out_msatoshi_fulfilled": {}, + "last_stable_connection": {}, + "htlcs": {}, + "inflight": {}, + "close_to_addr": {}, + "direction": {}, + "last_tx_fee_msat": {}, + "initial_feerate": { + "type": "string", + "description": [ + "The feerate for the initial funding transaction in per-1000-weight, with `kpw` appended." + ] + }, + "last_feerate": { + "type": "string", + "description": [ + "The feerate for the latest funding transaction in per-1000-weight, with `kpw` appended." + ] + }, + "next_feerate": { + "type": "string", + "description": [ + "The minimum feerate for the next funding transaction in per-1000-weight, with `kpw` appended." + ] + } + } } } - }, - "to_us_msat": { - "type": "msat", - "description": [ - "How much of channel is owed to us." - ] - }, - "min_to_us_msat": { - "type": "msat", - "description": [ - "Least amount owed to us ever. If the peer were to successfully steal from us, this is the amount we would still retain." - ] - }, - "max_to_us_msat": { - "type": "msat", - "description": [ - "Most amount owed to us ever. If we were to successfully steal from the peer, this is the amount we could potentially get." - ] - }, - "total_msat": { - "type": "msat", - "description": [ - "Total amount in the channel." - ] - }, - "fee_base_msat": { - "type": "msat", - "description": [ - "Amount we charge to use the channel." - ] - }, - "fee_proportional_millionths": { - "type": "u32", - "description": [ - "Amount we charge to use the channel in parts-per-million." - ] - }, - "dust_limit_msat": { - "type": "msat", - "description": [ - "Minimum amount for an output on the channel transactions." - ] - }, - "max_total_htlc_in_msat": { - "type": "msat", - "description": [ - "Max amount accept in a single payment." - ] - }, - "their_reserve_msat": { - "type": "msat", - "description": [ - "Minimum we insist they keep in channel. If they have less than this in the channel, they cannot send to us on that channel." - ], - "default": "1% of the total channel capacity" - }, - "our_reserve_msat": { - "type": "msat", - "description": [ - "Minimum they insist we keep in channel. If you have less than this in the channel, you cannot send out via this channel." - ] - }, - "spendable_msat": { - "type": "msat", - "description": [ - "An estimate of the total we could send through channel (can be wrong because adding HTLCs requires an increase in fees paid to onchain miners, and onchain fees change dynamically according to onchain activity)." - ] - }, - "receivable_msat": { - "type": "msat", - "description": [ - "An estimate of the total peer could send through channel." - ] - }, - "minimum_htlc_in_msat": { - "type": "msat", - "description": [ - "The minimum amount HTLC we accept." - ] - }, - "minimum_htlc_out_msat": { - "type": "msat", - "description": [ - "The minimum amount HTLC we will send." - ] - }, - "maximum_htlc_out_msat": { - "type": "msat", - "description": [ - "The maximum amount HTLC we will send." - ] - }, - "their_to_self_delay": { - "type": "u32", - "description": [ - "The number of blocks before they can take their funds if they unilateral close." - ] - }, - "our_to_self_delay": { - "type": "u32", - "description": [ - "The number of blocks before we can take our funds if we unilateral close." - ] - }, - "max_accepted_htlcs": { - "type": "u32", - "description": [ - "Maximum number of incoming HTLC we will accept at once." - ] - }, - "alias": { - "type": "object", - "required": [], - "properties": { + ] + } + } + }, + "post_return_value_notes": [ + "The *state* field values (and *old_state* / *new_state*) are worth describing further:", + "", + " * `OPENINGD`: The channel funding protocol with the peer is ongoing and both sides are negotiating parameters.", + " * `DUALOPEND_OPEN_INIT`: Like `OPENINGD`, but for v2 connections which are using collaborative opens.", + " * `DUALOPEND_OPEN_COMMIT_READY`: Like `OPENINGD`, but for v2 connections which are using collaborative opens. You're ready to send your commitment signed to your peer.", + " * `DUALOPEND_OPEN_COMMITTED`: Like `OPENINGD`, but for v2 connections which are using collaborative opens. You've gotten an initial signed commitment from your peer.", + " * `CHANNELD_AWAITING_LOCKIN` / `DUALOPEND_AWAITING_LOCKIN`: The peer and you have agreed on channel parameters and are just waiting for the channel funding transaction to be confirmed deeply (original and collaborative open protocols, respectively). Both you and the peer must acknowledge the channel funding transaction to be confirmed deeply before entering the next state. Also, you can increase the onchain fee for channels in `DUALOPEND_AWAITING_LOCKIN` using lightning-openchannel_bump(7).", + " * `CHANNELD_NORMAL`: The channel can be used for normal payments.", + " * `CHANNELD_SHUTTING_DOWN`: A mutual close was requested (by you or peer) and both of you are waiting for HTLCs in-flight to be either failed or succeeded. The channel can no longer be used for normal payments and forwarding. Mutual close will proceed only once all HTLCs in the channel have either been fulfilled or failed.", + " * `CLOSINGD_SIGEXCHANGE`: You and the peer are negotiating the mutual close onchain fee.", + " * `CLOSINGD_COMPLETE`: You and the peer have agreed on the mutual close onchain fee and are awaiting the mutual close getting confirmed deeply.", + " * `AWAITING_UNILATERAL`: You initiated a unilateral close, and are now waiting for the peer-selected unilateral close timeout to complete.", + " * `FUNDING_SPEND_SEEN`: You saw the funding transaction getting spent (usually the peer initiated a unilateral close) and will now determine what exactly happened (i.e. if it was a theft attempt).", + " * `ONCHAIN`: You saw the funding transaction getting spent and now know what happened (i.e. if it was a proper unilateral close by the peer, or a theft attempt)." + ] + }, + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong." + ], + "json_example": [ + { + "request": { + "id": "example:listpeerchannels#1", + "method": "listpeerchannels", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + } + }, + "response": { + "channels": [ + { + "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_connected": true, + "channel_type": { + "bits": [ + 12 + ], + "names": [ + "static_remotekey/even" + ] + }, + "updates": { "local": { - "type": "short_channel_id", - "description": [ - "An alias assigned by this node to this channel, used for outgoing payments." - ] + "htlc_minimum_msat": 0, + "htlc_maximum_msat": 990000000, + "cltv_expiry_delta": 6, + "fee_base_msat": 1, + "fee_proportional_millionths": 10 + } + }, + "state": "CHANNELD_AWAITING_LOCKIN", + "scratch_txid": "4e9c2866b9ae1f765b89ea7ec37428c900ea97f717f85f00e3db852cb6aea3a8", + "last_tx_fee_msat": 5430000, + "feerate": { + "perkw": 7500, + "perkb": 30000 + }, + "owner": "channeld", + "direction": 1, + "channel_id": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", + "funding_txid": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b", + "funding_outnum": 0, + "close_to_addr": "bcrt1pamt5tqzd49uyessr7437l2vllf20muqmzdauje8x8scjgpc0l0nqhyqcyp", + "close_to": "5120eed745804da9784cc203f563efa99ffa54fdf01b137bc964e63c3124070ffbe6", + "private": false, + "opener": "local", + "alias": { + "local": "5589251x14022525x17398" + }, + "features": [ + "option_static_remotekey" + ], + "funding": { + "local_funds_msat": 1000000000, + "remote_funds_msat": 0, + "pushed_msat": 0 + }, + "to_us_msat": 1000000000, + "min_to_us_msat": 1000000000, + "max_to_us_msat": 1000000000, + "total_msat": 1000000000, + "fee_base_msat": 1, + "fee_proportional_millionths": 10, + "dust_limit_msat": 546000, + "max_total_htlc_in_msat": 18446744073709552000, + "their_reserve_msat": 10000000, + "our_reserve_msat": 10000000, + "spendable_msat": 973980000, + "receivable_msat": 0, + "minimum_htlc_in_msat": 0, + "minimum_htlc_out_msat": 0, + "maximum_htlc_out_msat": 990000000, + "their_to_self_delay": 5, + "our_to_self_delay": 5, + "max_accepted_htlcs": 483, + "state_changes": [], + "status": [], + "in_payments_offered": 0, + "in_offered_msat": 0, + "in_payments_fulfilled": 0, + "in_fulfilled_msat": 0, + "out_payments_offered": 0, + "out_offered_msat": 0, + "out_payments_fulfilled": 0, + "out_fulfilled_msat": 0, + "htlcs": [] + } + ] + } + }, + { + "request": { + "id": "example:listpeerchannels#2", + "method": "listpeerchannels", + "params": { + "id": null + } + }, + "response": { + "channels": [ + { + "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_connected": true, + "reestablished": true, + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors_zero_fee_htlc_tx/even" + ] + }, + "updates": { + "local": { + "htlc_minimum_msat": 0, + "htlc_maximum_msat": 990000000, + "cltv_expiry_delta": 6, + "fee_base_msat": 1, + "fee_proportional_millionths": 10 }, "remote": { - "type": "short_channel_id", - "description": [ - "An alias assigned by the remote node to this channel, usable in routehints and invoices." - ] + "htlc_minimum_msat": 0, + "htlc_maximum_msat": 990000000, + "cltv_expiry_delta": 6, + "fee_base_msat": 1, + "fee_proportional_millionths": 10 } - } - }, - "state_changes": { - "type": "array", - "description": [ - "Prior state changes." + }, + "state": "CHANNELD_NORMAL", + "scratch_txid": "ece66657d6203a4ea77807f566fd5b98a78b659f0cd59ce9200aa3bd6875ee25", + "last_tx_fee_msat": 4545000, + "lost_state": false, + "feerate": { + "perkw": 3750, + "perkb": 15000 + }, + "owner": "channeld", + "short_channel_id": "103x1x0", + "direction": 1, + "channel_id": "def5ef03e0d36ed65de814c0a8d6599a502fe1afb8e956529320bb350e876b5f", + "funding_txid": "5f6b870e35bb20935256e9b8afe12f509a59d6a8c014e85dd66ed3e003eff5de", + "funding_outnum": 0, + "close_to_addr": "bcrt1pamt5tqzd49uyessr7437l2vllf20muqmzdauje8x8scjgpc0l0nqhyqcyp", + "close_to": "5120eed745804da9784cc203f563efa99ffa54fdf01b137bc964e63c3124070ffbe6", + "private": false, + "opener": "local", + "alias": { + "local": "15447035x5589520x8959", + "remote": "6036590x13481428x5501" + }, + "features": [ + "option_static_remotekey", + "option_anchors_zero_fee_htlc_tx" ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "timestamp", - "old_state", - "new_state", - "cause", - "message" - ], - "properties": { - "timestamp": { - "type": "string", - "description": [ - "UTC timestamp of form YYYY-mm-ddTHH:MM:SS.%03dZ." - ] - }, - "old_state": { - "type": "string", - "enum": [ - "OPENINGD", - "CHANNELD_AWAITING_LOCKIN", - "CHANNELD_NORMAL", - "CHANNELD_SHUTTING_DOWN", - "CLOSINGD_SIGEXCHANGE", - "CLOSINGD_COMPLETE", - "AWAITING_UNILATERAL", - "FUNDING_SPEND_SEEN", - "ONCHAIN", - "DUALOPEND_OPEN_INIT", - "DUALOPEND_AWAITING_LOCKIN", - "DUALOPEND_OPEN_COMMITTED", - "DUALOPEND_OPEN_COMMIT_READY", - "CHANNELD_AWAITING_SPLICE" - ], - "description": [ - "Previous state." - ] - }, - "new_state": { - "type": "string", - "enum": [ - "OPENINGD", - "CHANNELD_AWAITING_LOCKIN", - "CHANNELD_NORMAL", - "CHANNELD_SHUTTING_DOWN", - "CLOSINGD_SIGEXCHANGE", - "CLOSINGD_COMPLETE", - "AWAITING_UNILATERAL", - "FUNDING_SPEND_SEEN", - "ONCHAIN", - "DUALOPEND_OPEN_INIT", - "DUALOPEND_AWAITING_LOCKIN", - "DUALOPEND_OPEN_COMMITTED", - "DUALOPEND_OPEN_COMMIT_READY", - "CHANNELD_AWAITING_SPLICE" - ], - "description": [ - "New state." - ] - }, - "cause": { - "type": "string", - "enum": [ - "unknown", - "local", - "user", - "remote", - "protocol", - "onchain" - ], - "description": [ - "What caused the change." - ] - }, - "message": { - "type": "string", - "description": [ - "Human-readable explanation." - ] - } + "funding": { + "local_funds_msat": 1000000000, + "remote_funds_msat": 0, + "pushed_msat": 0 + }, + "to_us_msat": 1000000000, + "min_to_us_msat": 1000000000, + "max_to_us_msat": 1000000000, + "total_msat": 1000000000, + "fee_base_msat": 1, + "fee_proportional_millionths": 10, + "dust_limit_msat": 546000, + "max_total_htlc_in_msat": 18446744073709552000, + "their_reserve_msat": 10000000, + "our_reserve_msat": 10000000, + "spendable_msat": 978330000, + "receivable_msat": 0, + "minimum_htlc_in_msat": 0, + "minimum_htlc_out_msat": 0, + "maximum_htlc_out_msat": 990000000, + "their_to_self_delay": 5, + "our_to_self_delay": 5, + "max_accepted_htlcs": 483, + "state_changes": [ + { + "timestamp": "2024-02-22T17:48:57.127Z", + "old_state": "CHANNELD_AWAITING_LOCKIN", + "new_state": "CHANNELD_NORMAL", + "cause": "user", + "message": "Lockin complete" } - } - }, - "status": { - "type": "array", - "items": { - "type": "string", + ], + "status": [ + "CHANNELD_NORMAL:Channel ready for use." + ], + "in_payments_offered": 0, + "in_offered_msat": 0, + "in_payments_fulfilled": 0, + "in_fulfilled_msat": 0, + "out_payments_offered": 0, + "out_offered_msat": 0, + "out_payments_fulfilled": 0, + "out_fulfilled_msat": 0, + "htlcs": [] + } + ] + } + } + ], + "author": [ + "Michael Hawkins <>." + ], + "see_also": [ + "lightning-connect(7)", + "lightning-fundchannel_start(7)" + ], + "resources": [ + "Main web site: ", + "Lightning RFC site (BOLT #9): ", + "" + ] + }, + "lightning-listpeers.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listpeers", + "title": "Command returning data on connected lightning nodes", + "description": [ + "The **listpeers** RPC command returns data on nodes that are connected or are not connected but have open channels with this node.", + "", + "Once a connection to another lightning node has been established, using the **connect** command, data on the node can be returned using **listpeers** and the *id* that was used with the **connect** command.", + "", + "If no *id* is supplied, then data on all lightning nodes that are connected, or not connected but have open channels with this node, are returned.", + "", + "If a channel is open with a node and the connection has been lost, then the node will still appear in the output of the command and the value of the *connected* attribute of the node will be \"false\".", + "", + "The channel will remain open for a set blocktime, after which if the connection has not been re-established, the channel will close and the node will no longer appear in the command output." + ], + "request": { + "required": [], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "If supplied, limits the result to just the peer with the given ID, if it exists." + ] + }, + "level": { + "type": "string", + "description": [ + "Supplying level will show log entries related to that peer at the given log level." + ], + "enum": [ + "io", + "trace", + "debug", + "info", + "unusual" + ] + } + } + }, + "response": { + "required": [ + "peers" + ], + "properties": { + "peers": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "id", + "connected", + "num_channels" + ], + "properties": { + "id": { + "type": "pubkey", "description": [ - "Billboard log of significant changes." + "The unique id of the peer." ] - } - }, - "in_payments_offered": { - "type": "u64", - "description": [ - "Number of incoming payment attempts." - ] - }, - "in_offered_msat": { - "type": "msat", - "description": [ - "Total amount of incoming payment attempts." - ] - }, - "in_payments_fulfilled": { - "type": "u64", - "description": [ - "Number of successful incoming payment attempts." - ] - }, - "in_fulfilled_msat": { - "type": "msat", - "description": [ - "Total amount of successful incoming payment attempts." - ] - }, - "out_payments_offered": { - "type": "u64", - "description": [ - "Number of outgoing payment attempts." - ] - }, - "out_offered_msat": { - "type": "msat", - "description": [ - "Total amount of outgoing payment attempts." - ] - }, - "out_payments_fulfilled": { - "type": "u64", - "description": [ - "Number of successful outgoing payment attempts." - ] - }, - "out_fulfilled_msat": { - "type": "msat", - "description": [ - "Total amount of successful outgoing payment attempts." - ] - }, - "last_stable_connection": { - "type": "u64", - "added": "v24.02", - "description": [ - "Last time we reestablished the open channel and stayed connected for 1 minute." - ] - }, - "htlcs": { - "type": "array", - "description": [ - "Current HTLCs in this channel." - ], - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "direction", - "id", - "amount_msat", - "expiry", - "payment_hash", - "state" + }, + "connected": { + "type": "boolean", + "description": [ + "Value showing the connection status." + ] + }, + "num_channels": { + "type": "u32", + "description": [ + "The number of channels the peer has with this node." ], - "properties": { - "direction": { - "type": "string", - "added": "v23.02", - "enum": [ - "in", - "out" - ], - "description": [ - "Whether it came from peer, or is going to peer." - ] - }, - "id": { - "type": "u64", - "description": [ - "Unique ID for this htlc on this channel in this direction." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Amount send/received for this HTLC." - ] - }, - "expiry": { - "type": "u32", - "description": [ - "Block this HTLC expires at (after which an `in` direction HTLC will be returned to the peer, an `out` returned to us). If this expiry is too close, lightningd(8) will automatically unilaterally close the channel in order to enforce the timeout onchain." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the payment_preimage which will prove payment." - ] - }, - "local_trimmed": { - "type": "boolean", - "enum": [ - true - ], - "description": [ - "If this is too small to enforce onchain; it doesn't appear in the commitment transaction and will not be enforced in a unilateral close. Generally true if the HTLC (after subtracting onchain fees) is below the `dust_limit_msat` for the channel." - ] + "added": "v23.02" + }, + "log": { + "type": "array", + "description": [ + "If *level* is specified, logs for this peer." + ], + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "SKIPPED", + "BROKEN", + "UNUSUAL", + "INFO", + "DEBUG", + "TRACE", + "IO_IN", + "IO_OUT" + ] + } }, - "status": { - "type": "string", - "description": [ - "Set if this HTLC is currently waiting on a hook (and shows what plugin)." - ] - } - }, - "allOf": [ - { - "if": { - "properties": { - "direction": { - "enum": [ - "out" - ] + "allOf": [ + { + "if": { + "properties": { + "type": { + "enum": [ + "SKIPPED" + ] + } + } + }, + "then": { + "type": "object", + "additionalProperties": false, + "required": [ + "num_skipped" + ], + "properties": { + "type": {}, + "num_skipped": { + "type": "u32", + "description": [ + "Number of deleted/omitted entries." + ] + } + } + } + }, + { + "if": { + "properties": { + "type": { + "enum": [ + "BROKEN", + "UNUSUAL", + "INFO", + "DEBUG", + "TRACE" + ] + } + } + }, + "then": { + "type": "object", + "additionalProperties": false, + "required": [ + "time", + "source", + "log", + "node_id" + ], + "properties": { + "type": {}, + "time": { + "type": "string", + "description": [ + "UNIX timestamp with 9 decimal places." + ] + }, + "source": { + "type": "string", + "description": [ + "The particular logbook this was found in." + ] + }, + "log": { + "type": "string", + "description": [ + "The actual log message." + ] + }, + "node_id": { + "type": "pubkey", + "description": [ + "The peer this is associated with." + ] + } } } }, - "then": { - "additionalProperties": false, - "required": [ - "state" - ], - "properties": { - "direction": {}, - "id": {}, - "amount_msat": {}, - "msatoshi": {}, - "expiry": {}, - "payment_hash": {}, - "local_trimmed": {}, - "status": {}, - "alias": {}, - "peer_id": {}, - "peer_connected": {}, - "reestablished": {}, - "state": { - "type": "string", - "enum": [ - "SENT_ADD_HTLC", - "SENT_ADD_COMMIT", - "RCVD_ADD_REVOCATION", - "RCVD_ADD_ACK_COMMIT", - "SENT_ADD_ACK_REVOCATION", - "RCVD_REMOVE_HTLC", - "RCVD_REMOVE_COMMIT", - "SENT_REMOVE_REVOCATION", - "SENT_REMOVE_ACK_COMMIT", - "RCVD_REMOVE_ACK_REVOCATION" - ], - "description": [ - "Status of the HTLC." - ] + { + "if": { + "properties": { + "type": { + "enum": [ + "IO_IN", + "IO_OUT" + ] + } } - } - } - }, - { - "if": { - "properties": { - "direction": { - "enum": [ - "in" - ] + }, + "then": { + "type": "object", + "additionalProperties": false, + "required": [ + "time", + "source", + "log", + "node_id", + "data" + ], + "properties": { + "type": {}, + "time": { + "type": "string", + "description": [ + "UNIX timestamp with 9 decimal places." + ] + }, + "source": { + "type": "string", + "description": [ + "The particular logbook this was found in." + ] + }, + "log": { + "type": "string", + "description": [ + "The actual log message." + ] + }, + "node_id": { + "type": "pubkey", + "description": [ + "The peer this is associated with." + ] + }, + "data": { + "type": "hex", + "description": [ + "The IO which occurred." + ] + } } } - }, - "then": { - "additionalProperties": false, - "required": [ - "state" + } + ] + } + } + }, + "allOf": [ + { + "if": { + "additionalProperties": true, + "properties": { + "connected": { + "enum": [ + true + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "netaddr", + "features" + ], + "properties": { + "id": {}, + "channels": {}, + "connected": {}, + "num_channels": {}, + "htlcs": {}, + "log": {}, + "netaddr": { + "type": "array", + "minItems": 1, + "maxItems": 1, + "description": [ + "A single entry array." ], - "properties": { - "direction": {}, - "id": {}, - "amount_msat": {}, - "msatoshi": {}, - "expiry": {}, - "payment_hash": {}, - "local_trimmed": {}, - "status": {}, - "peer_id": {}, - "peer_connected": {}, - "reestablished": {}, - "state": { - "type": "string", - "enum": [ - "RCVD_ADD_HTLC", - "RCVD_ADD_COMMIT", - "SENT_ADD_REVOCATION", - "SENT_ADD_ACK_COMMIT", - "RCVD_ADD_ACK_REVOCATION", - "SENT_REMOVE_HTLC", - "SENT_REMOVE_COMMIT", - "RCVD_REMOVE_REVOCATION", - "RCVD_REMOVE_ACK_COMMIT", - "SENT_REMOVE_ACK_REVOCATION" - ], - "description": [ - "Status of the HTLC." - ] - } + "items": { + "type": "string", + "description": [ + "Address, e.g. 1.2.3.4:1234." + ] } + }, + "remote_addr": { + "type": "string", + "description": [ + "The public IPv4/6 address the peer sees us from, e.g. 1.2.3.4:1234." + ] + }, + "features": { + "type": "hex", + "description": [ + "Bitmap of BOLT #9 features from peer's INIT message." + ] } } - ] + } } + ] + } + } + } + }, + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong." + ], + "json_example": [ + { + "request": { + "id": "example:listpeers#1", + "method": "listpeers", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "level": null + } + }, + "response": { + "peers": [ + { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "connected": true, + "num_channels": 1, + "netaddr": [ + "127.0.0.1:44619" + ], + "features": "08a0000a0a69a2" } - }, - "allOf": [ + ] + } + }, + { + "request": { + "id": "example:listpeers#2", + "method": "listpeers", + "params": { + "id": null, + "level": null + } + }, + "response": { + "peers": [ { - "if": { - "properties": { - "peer_connected": { - "type": "boolean", - "enum": [ - true - ] + "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "connected": true, + "num_channels": 1, + "netaddr": [ + "127.0.0.1:48862" + ], + "features": "08a0000a0a69a2" + } + ] + } + } + ], + "author": [ + "Michael Hawkins <>." + ], + "see_also": [ + "lightning-connect(7)", + "lightning-fundchannel_start(7)", + "lightning-setchannel(7)" + ], + "resources": [ + "Main web site: ", + "Lightning RFC site (BOLT #9):", + "" + ] + }, + "lightning-listsendpays.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listsendpays", + "title": "Low-level command for querying sendpay status", + "description": [ + "The **listsendpays** RPC command gets the status of all *sendpay* commands (which is also used by the *pay* command), or with *bolt11* or *payment_hash* limits results to that specific payment. You cannot specify both. It is possible to filter the payments also by *status*.", + "", + "Note that there may be more than one concurrent *sendpay* command per *pay*, so this command should be used with caution." + ], + "request": { + "required": [], + "properties": { + "bolt11": { + "type": "string", + "description": [ + "Bolt11 invoice." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the payment_preimage." + ] + }, + "status": { + "type": "string", + "enum": [ + "pending", + "complete", + "failed" + ], + "description": [ + "Whether the invoice has been paid, pending, or failed." + ] + }, + "index": { + "type": "string", + "added": "v23.11", + "enum": [ + "created", + "updated" + ], + "description": [ + "If neither bolt11 or payment_hash is specified, `index` controls ordering, by `created` (default) or `updated`." + ] + }, + "start": { + "type": "u64", + "added": "v23.11", + "description": [ + "If `index` is specified, `start` may be specified to start from that value, which is generally returned from lightning-wait(7)." + ] + }, + "limit": { + "type": "u32", + "added": "v23.11", + "description": [ + "If `index` is specified, `limit` can be used to specify the maximum number of entries to return." + ] + } + }, + "dependentUpon": { + "index": [ + "start", + "limit" + ] + } + }, + "response": { + "required": [ + "payments" + ], + "properties": { + "payments": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "id", + "created_index", + "payment_hash", + "status", + "groupid", + "created_at", + "amount_sent_msat" + ], + "properties": { + "created_index": { + "added": "v23.11", + "type": "u64", + "description": [ + "1-based index indicating order this payment was created in." + ] + }, + "id": { + "type": "u64", + "description": [ + "Old synonym for created_index." + ] + }, + "groupid": { + "type": "u64", + "description": [ + "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash." + ] + }, + "partid": { + "type": "u64", + "description": [ + "Part number (for multiple parts to a single payment)." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "updated_index": { + "added": "v23.11", + "type": "u64", + "description": [ + "1-based index indicating order this payment was changed (only present if it has changed since creation)." + ] + }, + "status": { + "type": "string", + "enum": [ + "pending", + "failed", + "complete" + ], + "description": [ + "Status of the payment." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount delivered to destination (if known)." + ] + }, + "destination": { + "type": "pubkey", + "description": [ + "The final destination of the payment if known." + ] + }, + "created_at": { + "type": "u64", + "description": [ + "The UNIX timestamp showing when this payment was initiated." + ] + }, + "amount_sent_msat": { + "type": "msat", + "description": [ + "The amount sent." + ] + }, + "label": { + "type": "string", + "description": [ + "The label, if given to sendpay." + ] + }, + "bolt11": { + "type": "string", + "description": [ + "The bolt11 string (if pay supplied one)." + ] + }, + "description": { + "type": "string", + "description": [ + "The description matching the bolt11 description hash (if pay supplied one)." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The bolt12 string (if supplied for pay: **experimental-offers** only)." + ] + } + }, + "allOf": [ + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "complete" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "payment_preimage" + ], + "properties": { + "id": {}, + "created_index": {}, + "updated_index": {}, + "partid": {}, + "groupid": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "destination": {}, + "created_at": {}, + "msatoshi_sent": {}, + "amount_sent_msat": {}, + "label": {}, + "bolt11": {}, + "description": {}, + "bolt12": {}, + "completed_at": { + "type": "u64", + "added": "pre-v0.10.1", + "description": [ + "The UNIX timestamp showing when this payment was completed." + ] + }, + "payment_preimage": { + "type": "secret", + "description": [ + "The proof of payment: SHA256 of this **payment_hash**." + ] + } } } }, - "then": { - "properties": { - "reestablished": { - "type": "boolean", - "description": [ - "True if we have successfully exchanged reestablish messages this connection." - ] + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + } } - } - } - }, - { - "if": { - "required": [ - "close_to" - ] - }, - "then": { - "additionalProperties": false, - "required": [], - "properties": { - "state": {}, - "peer_id": {}, - "peer_connected": {}, - "reestablished": {}, - "scratch_txid": {}, - "channel_type": {}, - "feerate": {}, - "ignore_fee_limits": {}, - "lost_state": {}, - "owner": {}, - "short_channel_id": {}, - "channel_id": {}, - "updates": {}, - "funding_txid": {}, - "funding_outnum": {}, - "close_to": {}, - "private": {}, - "alias": {}, - "opener": {}, - "closer": {}, - "features": {}, - "funding": {}, - "to_us_msat": {}, - "min_to_us_msat": {}, - "max_to_us_msat": {}, - "total_msat": {}, - "fee_base_msat": {}, - "fee_proportional_millionths": {}, - "dust_limit_msat": {}, - "max_total_htlc_in_msat": {}, - "their_reserve_msat": {}, - "our_reserve_msat": {}, - "spendable_msat": {}, - "receivable_msat": {}, - "minimum_htlc_in_msat": {}, - "minimum_htlc_out_msat": {}, - "maximum_htlc_out_msat": {}, - "spendable_msatoshi": {}, - "receivable_msatoshi": {}, - "their_to_self_delay": {}, - "our_to_self_delay": {}, - "max_accepted_htlcs": {}, - "msatoshi_to_us": {}, - "msatoshi_to_us_min": {}, - "msatoshi_to_us_max": {}, - "msatoshi_total": {}, - "dust_limit_satoshis": {}, - "max_htlc_value_in_flight_msat": {}, - "our_channel_reserve_satoshis": {}, - "their_channel_reserve_satoshis": {}, - "spendable_satoshis": {}, - "receivable_satoshis": {}, - "htlc_minimum_msat": {}, - "state_changes": {}, - "status": {}, - "in_payments_offered": {}, - "in_offered_msat": {}, - "in_msatoshi_offered": {}, - "in_payments_fulfilled": {}, - "in_fulfilled_msat": {}, - "in_msatoshi_fulfilled": {}, - "out_payments_offered": {}, - "out_offered_msat": {}, - "out_msatoshi_offered": {}, - "out_payments_fulfilled": {}, - "out_fulfilled_msat": {}, - "out_msatoshi_fulfilled": {}, - "last_stable_connection": {}, - "htlcs": {}, - "initial_feerate": {}, - "last_feerate": {}, - "next_feerate": {}, - "inflight": {}, - "last_tx_fee_msat": {}, - "direction": {}, - "close_to_addr": { - "type": "string", - "description": [ - "The bitcoin address we will close to (present if close_to_addr is a standardized address)." - ] + }, + "then": { + "additionalProperties": false, + "required": [], + "properties": { + "id": {}, + "created_index": {}, + "updated_index": {}, + "partid": {}, + "groupid": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "destination": {}, + "created_at": {}, + "completed_at": {}, + "msatoshi_sent": {}, + "amount_sent_msat": {}, + "label": {}, + "bolt11": {}, + "description": {}, + "bolt12": {}, + "erroronion": { + "type": "hex", + "description": [ + "The onion message returned." + ] + } } } - } - }, - { - "if": { - "required": [ - "scratch_txid" - ] }, - "then": { - "additionalProperties": false, - "required": [ - "last_tx_fee_msat" - ], - "properties": { - "state": {}, - "peer_id": {}, - "peer_connected": {}, - "reestablished": {}, - "alias": {}, - "scratch_txid": {}, - "channel_type": {}, - "feerate": {}, - "ignore_fee_limits": {}, - "lost_state": {}, - "owner": {}, - "short_channel_id": {}, - "channel_id": {}, - "updates": {}, - "funding_txid": {}, - "funding_outnum": {}, - "inflight": {}, - "close_to": {}, - "private": {}, - "opener": {}, - "closer": {}, - "features": {}, - "funding": {}, - "to_us_msat": {}, - "min_to_us_msat": {}, - "max_to_us_msat": {}, - "total_msat": {}, - "fee_base_msat": {}, - "fee_proportional_millionths": {}, - "dust_limit_msat": {}, - "max_total_htlc_in_msat": {}, - "their_reserve_msat": {}, - "our_reserve_msat": {}, - "spendable_msat": {}, - "receivable_msat": {}, - "minimum_htlc_in_msat": {}, - "minimum_htlc_out_msat": {}, - "maximum_htlc_out_msat": {}, - "spendable_msatoshi": {}, - "receivable_msatoshi": {}, - "their_to_self_delay": {}, - "our_to_self_delay": {}, - "max_accepted_htlcs": {}, - "msatoshi_to_us": {}, - "msatoshi_to_us_min": {}, - "msatoshi_to_us_max": {}, - "msatoshi_total": {}, - "dust_limit_satoshis": {}, - "max_htlc_value_in_flight_msat": {}, - "our_channel_reserve_satoshis": {}, - "their_channel_reserve_satoshis": {}, - "spendable_satoshis": {}, - "receivable_satoshis": {}, - "htlc_minimum_msat": {}, - "state_changes": {}, - "status": {}, - "in_payments_offered": {}, - "in_offered_msat": {}, - "in_msatoshi_offered": {}, - "in_payments_fulfilled": {}, - "in_fulfilled_msat": {}, - "in_msatoshi_fulfilled": {}, - "out_payments_offered": {}, - "out_offered_msat": {}, - "out_msatoshi_offered": {}, - "out_payments_fulfilled": {}, - "out_fulfilled_msat": {}, - "out_msatoshi_fulfilled": {}, - "last_stable_connection": {}, - "htlcs": {}, - "initial_feerate": {}, - "last_feerate": {}, - "next_feerate": {}, - "close_to_addr": {}, - "direction": {}, - "last_tx_fee_msat": { - "type": "msat", - "description": [ - "Fee attached to this the current tx." - ] + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "pending" + ] + } } - } - } - }, - { - "if": { - "required": [ - "short_channel_id" - ] - }, - "then": { - "additionalProperties": false, - "required": [ - "direction" - ], - "properties": { - "alias": {}, - "peer_id": {}, - "peer_connected": {}, - "reestablished": {}, - "state": {}, - "scratch_txid": {}, - "channel_type": {}, - "feerate": {}, - "ignore_fee_limits": {}, - "lost_state": {}, - "owner": {}, - "short_channel_id": {}, - "channel_id": {}, - "updates": {}, - "funding_txid": {}, - "funding_outnum": {}, - "inflight": {}, - "close_to": {}, - "private": {}, - "opener": {}, - "closer": {}, - "features": {}, - "funding": {}, - "to_us_msat": {}, - "min_to_us_msat": {}, - "max_to_us_msat": {}, - "total_msat": {}, - "fee_base_msat": {}, - "fee_proportional_millionths": {}, - "dust_limit_msat": {}, - "max_total_htlc_in_msat": {}, - "their_reserve_msat": {}, - "our_reserve_msat": {}, - "spendable_msat": {}, - "receivable_msat": {}, - "minimum_htlc_in_msat": {}, - "minimum_htlc_out_msat": {}, - "maximum_htlc_out_msat": {}, - "spendable_msatoshi": {}, - "receivable_msatoshi": {}, - "their_to_self_delay": {}, - "our_to_self_delay": {}, - "max_accepted_htlcs": {}, - "msatoshi_to_us": {}, - "msatoshi_to_us_min": {}, - "msatoshi_to_us_max": {}, - "msatoshi_total": {}, - "dust_limit_satoshis": {}, - "max_htlc_value_in_flight_msat": {}, - "our_channel_reserve_satoshis": {}, - "their_channel_reserve_satoshis": {}, - "spendable_satoshis": {}, - "receivable_satoshis": {}, - "htlc_minimum_msat": {}, - "state_changes": {}, - "status": {}, - "in_payments_offered": {}, - "in_offered_msat": {}, - "in_msatoshi_offered": {}, - "in_payments_fulfilled": {}, - "in_fulfilled_msat": {}, - "in_msatoshi_fulfilled": {}, - "out_payments_offered": {}, - "out_offered_msat": {}, - "out_msatoshi_offered": {}, - "out_payments_fulfilled": {}, - "out_fulfilled_msat": {}, - "out_msatoshi_fulfilled": {}, - "last_stable_connection": {}, - "htlcs": {}, - "initial_feerate": {}, - "last_feerate": {}, - "next_feerate": {}, - "close_to_addr": {}, - "last_tx_fee_msat": {}, - "direction": { - "type": "u32", - "added": "v23.02", - "description": [ - "0 if we're the lesser node_id, 1 if we're the greater (as used in BOLT #7 channel_update)." - ] + }, + "then": { + "additionalProperties": false, + "required": [], + "properties": { + "id": {}, + "created_index": {}, + "updated_index": {}, + "partid": {}, + "groupid": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "destination": {}, + "created_at": {}, + "msatoshi_sent": {}, + "amount_sent_msat": {}, + "label": {}, + "bolt11": {}, + "description": {}, + "bolt12": {} } } } + ] + } + } + }, + "pre_return_value_notes": [ + "Note that the returned array is ordered by increasing *id*." + ] + }, + "json_example": [ + { + "request": { + "id": "example:listsendpays#1", + "method": "listsendpays", + "params": { + "bolt11": null, + "payment_hash": null, + "status": null, + "index": null, + "start": null, + "limit": null + } + }, + "response": { + "payments": [ + { + "created_index": 1, + "id": 1, + "payment_hash": "e3b43574acd074b0c4ba1b13b5155ff5f9c76742e643ed003e17301c5a2db149", + "groupid": 1, + "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "amount_msat": 20000, + "amount_sent_msat": 20000, + "created_at": 1706225269, + "status": "pending", + "bolt11": "lnbcrt200n1pjm9mn5sp5gq84lgga959m6gg4g0kj29ypwjaxxnm4cu5csymq8p6nqxv800mspp5uw6r2a9v6p6tp396rvfm292l7huuwe6zuep76qp7zucpck3dk9ysdpqf9grgmt62fmk5stswefh23n2tpykvcmzxqyjw5qcqp99qxpqysgqz8s496zmwed278jvp075zlhrnj0ncg45kcfw5s2lkhtxd3wc39f8wflp5gmd827dk470xpasfpx0azsfu0k8ttwae7620h8d050w28cqan776g" }, { - "if": { - "required": [ - "inflight" - ] - }, - "then": { - "additionalProperties": false, - "required": [ - "initial_feerate", - "last_feerate", - "next_feerate" - ], - "properties": { - "state": {}, - "peer_id": {}, - "peer_connected": {}, - "reestablished": {}, - "scratch_txid": {}, - "channel_type": {}, - "feerate": {}, - "ignore_fee_limits": {}, - "lost_state": {}, - "owner": {}, - "alias": {}, - "short_channel_id": {}, - "channel_id": {}, - "updates": {}, - "funding_txid": {}, - "funding_outnum": {}, - "close_to": {}, - "private": {}, - "opener": {}, - "closer": {}, - "features": {}, - "funding": {}, - "to_us_msat": {}, - "min_to_us_msat": {}, - "max_to_us_msat": {}, - "total_msat": {}, - "fee_base_msat": {}, - "fee_proportional_millionths": {}, - "dust_limit_msat": {}, - "max_total_htlc_in_msat": {}, - "their_reserve_msat": {}, - "our_reserve_msat": {}, - "spendable_msat": {}, - "receivable_msat": {}, - "minimum_htlc_in_msat": {}, - "minimum_htlc_out_msat": {}, - "maximum_htlc_out_msat": {}, - "spendable_msatoshi": {}, - "receivable_msatoshi": {}, - "their_to_self_delay": {}, - "our_to_self_delay": {}, - "max_accepted_htlcs": {}, - "msatoshi_to_us": {}, - "msatoshi_to_us_min": {}, - "msatoshi_to_us_max": {}, - "msatoshi_total": {}, - "dust_limit_satoshis": {}, - "max_htlc_value_in_flight_msat": {}, - "our_channel_reserve_satoshis": {}, - "their_channel_reserve_satoshis": {}, - "spendable_satoshis": {}, - "receivable_satoshis": {}, - "htlc_minimum_msat": {}, - "state_changes": {}, - "status": {}, - "in_payments_offered": {}, - "in_offered_msat": {}, - "in_msatoshi_offered": {}, - "in_payments_fulfilled": {}, - "in_fulfilled_msat": {}, - "in_msatoshi_fulfilled": {}, - "out_payments_offered": {}, - "out_offered_msat": {}, - "out_msatoshi_offered": {}, - "out_payments_fulfilled": {}, - "out_fulfilled_msat": {}, - "out_msatoshi_fulfilled": {}, - "last_stable_connection": {}, - "htlcs": {}, - "inflight": {}, - "close_to_addr": {}, - "direction": {}, - "last_tx_fee_msat": {}, - "initial_feerate": { - "type": "string", - "description": [ - "The feerate for the initial funding transaction in per-1000-weight, with `kpw` appended." - ] - }, - "last_feerate": { - "type": "string", - "description": [ - "The feerate for the latest funding transaction in per-1000-weight, with `kpw` appended." - ] - }, - "next_feerate": { - "type": "string", - "description": [ - "The minimum feerate for the next funding transaction in per-1000-weight, with `kpw` appended." - ] - } - } - } + "created_index": 2, + "id": 2, + "payment_hash": "f55d92cfe019b5a015f5e5956e9255053cda14786171d5002feb12ae5254e5a5", + "groupid": 1, + "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "amount_msat": 30000, + "amount_sent_msat": 30000, + "created_at": 1706225269, + "status": "pending", + "bolt11": "lnbcrt300n1pjm9mn5sp5zqfkr93rp92mdyj6m8lzpcu90rfefcaqff8fxdd2sc5mace23ujspp574we9nlqrx66q904uk2kayj4q57d59rcv9ca2qp0avf2u5j5ukjsdpq29j55nfcgfcnsvzw2er57knhwcmhzwt0xqyjw5qcqp99qxpqysgq76p2jpnegtzlxmn0aqt6d3f89q4p6y5v3v2qz7t2mm6xt90nt324cq400tl82k28562aux8jxs57d603g7s0q4g3dapu9a7vln94j7spsut799" } ] } - } - }, - "post_return_value_notes": [ - "The *state* field values (and *old_state* / *new_state*) are worth describing further:", - "", - " * `OPENINGD`: The channel funding protocol with the peer is ongoing and both sides are negotiating parameters.", - " * `DUALOPEND_OPEN_INIT`: Like `OPENINGD`, but for v2 connections which are using collaborative opens.", - " * `DUALOPEND_OPEN_COMMIT_READY`: Like `OPENINGD`, but for v2 connections which are using collaborative opens. You're ready to send your commitment signed to your peer.", - " * `DUALOPEND_OPEN_COMMITTED`: Like `OPENINGD`, but for v2 connections which are using collaborative opens. You've gotten an initial signed commitment from your peer.", - " * `CHANNELD_AWAITING_LOCKIN` / `DUALOPEND_AWAITING_LOCKIN`: The peer and you have agreed on channel parameters and are just waiting for the channel funding transaction to be confirmed deeply (original and collaborative open protocols, respectively). Both you and the peer must acknowledge the channel funding transaction to be confirmed deeply before entering the next state. Also, you can increase the onchain fee for channels in `DUALOPEND_AWAITING_LOCKIN` using lightning-openchannel_bump(7).", - " * `CHANNELD_NORMAL`: The channel can be used for normal payments.", - " * `CHANNELD_SHUTTING_DOWN`: A mutual close was requested (by you or peer) and both of you are waiting for HTLCs in-flight to be either failed or succeeded. The channel can no longer be used for normal payments and forwarding. Mutual close will proceed only once all HTLCs in the channel have either been fulfilled or failed.", - " * `CLOSINGD_SIGEXCHANGE`: You and the peer are negotiating the mutual close onchain fee.", - " * `CLOSINGD_COMPLETE`: You and the peer have agreed on the mutual close onchain fee and are awaiting the mutual close getting confirmed deeply.", - " * `AWAITING_UNILATERAL`: You initiated a unilateral close, and are now waiting for the peer-selected unilateral close timeout to complete.", - " * `FUNDING_SPEND_SEEN`: You saw the funding transaction getting spent (usually the peer initiated a unilateral close) and will now determine what exactly happened (i.e. if it was a theft attempt).", - " * `ONCHAIN`: You saw the funding transaction getting spent and now know what happened (i.e. if it was a proper unilateral close by the peer, or a theft attempt)." - ] - }, - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong." - ], - "json_example": [ - { - "request": { - "id": "example:listpeerchannels#1", - "method": "listpeerchannels", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" - } }, - "response": { - "channels": [ - { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "peer_connected": true, - "channel_type": { - "bits": [ - 12 - ], - "names": [ - "static_remotekey/even" - ] - }, - "updates": { - "local": { - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "cltv_expiry_delta": 6, - "fee_base_msat": 1, - "fee_proportional_millionths": 10 - } - }, - "state": "CHANNELD_AWAITING_LOCKIN", - "scratch_txid": "4e9c2866b9ae1f765b89ea7ec37428c900ea97f717f85f00e3db852cb6aea3a8", - "last_tx_fee_msat": 5430000, - "feerate": { - "perkw": 7500, - "perkb": 30000 - }, - "owner": "channeld", - "direction": 1, - "channel_id": "7b0bd48371c473ea25b9ab95613c51a936463c41858c8bbdf356f5328f3d0a6c", - "funding_txid": "6c0a3d8f32f556f3bd8b8c85413c4636a9513c6195abb925ea73c47183d40b7b", - "funding_outnum": 0, - "close_to_addr": "bcrt1pamt5tqzd49uyessr7437l2vllf20muqmzdauje8x8scjgpc0l0nqhyqcyp", - "close_to": "5120eed745804da9784cc203f563efa99ffa54fdf01b137bc964e63c3124070ffbe6", - "private": false, - "opener": "local", - "alias": { - "local": "5589251x14022525x17398" - }, - "features": [ - "option_static_remotekey" - ], - "funding": { - "local_funds_msat": 1000000000, - "remote_funds_msat": 0, - "pushed_msat": 0 - }, - "to_us_msat": 1000000000, - "min_to_us_msat": 1000000000, - "max_to_us_msat": 1000000000, - "total_msat": 1000000000, - "fee_base_msat": 1, - "fee_proportional_millionths": 10, - "dust_limit_msat": 546000, - "max_total_htlc_in_msat": 18446744073709552000, - "their_reserve_msat": 10000000, - "our_reserve_msat": 10000000, - "spendable_msat": 973980000, - "receivable_msat": 0, - "minimum_htlc_in_msat": 0, - "minimum_htlc_out_msat": 0, - "maximum_htlc_out_msat": 990000000, - "their_to_self_delay": 5, - "our_to_self_delay": 5, - "max_accepted_htlcs": 483, - "state_changes": [], - "status": [], - "in_payments_offered": 0, - "in_offered_msat": 0, - "in_payments_fulfilled": 0, - "in_fulfilled_msat": 0, - "out_payments_offered": 0, - "out_offered_msat": 0, - "out_payments_fulfilled": 0, - "out_fulfilled_msat": 0, - "htlcs": [] + { + "request": { + "id": "example:listsendpays#2", + "method": "listsendpays", + "params": { + "bolt11": "lnbcrt1230n1pja03q9sp5xu9aypccf3n6vld2waxcysy47ct2wl5x5adtm7k8u30knqes22lspp5duw2v8csh0zh4xg9ql3amem98avlkc2ecre99tgmr2340amf9kmsdqjv3jhxcmjd9c8g6t0dcxqyjw5qcqp99qxpqysgqwh78s8wqg0kepspw0epcxmxteh5wu8n6ddlwdnyj758fqxpqk8ejf597x8ju3r32xqgae3yzjjz9e5s6l2vs5zxvkayhmemmx74wvyqqyqf8c9", + "payment_hash": null, + "status": null, + "index": null, + "start": null, + "limit": null } - ] - } - }, - { - "request": { - "id": "example:listpeerchannels#2", - "method": "listpeerchannels", - "params": { - "id": null + }, + "response": { + "payments": [ + { + "created_index": 1, + "id": 1, + "payment_hash": "6f1ca61f10bbc57a990507e3dde7653f59fb6159c0f252ad1b1aa357f7692db7", + "groupid": 1, + "updated_index": 1, + "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "amount_msat": 123000, + "amount_sent_msat": 123000, + "created_at": 1708639237, + "completed_at": 1708639238, + "status": "complete", + "payment_preimage": "91f8366681fdfd309c048082fcde81a79116f85a7b2dd09aef1e34f5f7c3397b", + "bolt11": "lnbcrt1230n1pja03q9sp5xu9aypccf3n6vld2waxcysy47ct2wl5x5adtm7k8u30knqes22lspp5duw2v8csh0zh4xg9ql3amem98avlkc2ecre99tgmr2340amf9kmsdqjv3jhxcmjd9c8g6t0dcxqyjw5qcqp99qxpqysgqwh78s8wqg0kepspw0epcxmxteh5wu8n6ddlwdnyj758fqxpqk8ejf597x8ju3r32xqgae3yzjjz9e5s6l2vs5zxvkayhmemmx74wvyqqyqf8c9" + } + ] } - }, - "response": { - "channels": [ - { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "peer_connected": true, - "reestablished": true, - "channel_type": { - "bits": [ - 12, - 22 - ], - "names": [ - "static_remotekey/even", - "anchors_zero_fee_htlc_tx/even" - ] - }, - "updates": { - "local": { - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "cltv_expiry_delta": 6, - "fee_base_msat": 1, - "fee_proportional_millionths": 10 - }, - "remote": { - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "cltv_expiry_delta": 6, - "fee_base_msat": 1, - "fee_proportional_millionths": 10 - } - }, - "state": "CHANNELD_NORMAL", - "scratch_txid": "ece66657d6203a4ea77807f566fd5b98a78b659f0cd59ce9200aa3bd6875ee25", - "last_tx_fee_msat": 4545000, - "lost_state": false, - "feerate": { - "perkw": 3750, - "perkb": 15000 - }, - "owner": "channeld", - "short_channel_id": "103x1x0", - "direction": 1, - "channel_id": "def5ef03e0d36ed65de814c0a8d6599a502fe1afb8e956529320bb350e876b5f", - "funding_txid": "5f6b870e35bb20935256e9b8afe12f509a59d6a8c014e85dd66ed3e003eff5de", - "funding_outnum": 0, - "close_to_addr": "bcrt1pamt5tqzd49uyessr7437l2vllf20muqmzdauje8x8scjgpc0l0nqhyqcyp", - "close_to": "5120eed745804da9784cc203f563efa99ffa54fdf01b137bc964e63c3124070ffbe6", - "private": false, - "opener": "local", - "alias": { - "local": "15447035x5589520x8959", - "remote": "6036590x13481428x5501" - }, - "features": [ - "option_static_remotekey", - "option_anchors_zero_fee_htlc_tx" - ], - "funding": { - "local_funds_msat": 1000000000, - "remote_funds_msat": 0, - "pushed_msat": 0 - }, - "to_us_msat": 1000000000, - "min_to_us_msat": 1000000000, - "max_to_us_msat": 1000000000, - "total_msat": 1000000000, - "fee_base_msat": 1, - "fee_proportional_millionths": 10, - "dust_limit_msat": 546000, - "max_total_htlc_in_msat": 18446744073709552000, - "their_reserve_msat": 10000000, - "our_reserve_msat": 10000000, - "spendable_msat": 978330000, - "receivable_msat": 0, - "minimum_htlc_in_msat": 0, - "minimum_htlc_out_msat": 0, - "maximum_htlc_out_msat": 990000000, - "their_to_self_delay": 5, - "our_to_self_delay": 5, - "max_accepted_htlcs": 483, - "state_changes": [ - { - "timestamp": "2024-02-22T17:48:57.127Z", - "old_state": "CHANNELD_AWAITING_LOCKIN", - "new_state": "CHANNELD_NORMAL", - "cause": "user", - "message": "Lockin complete" - } - ], - "status": [ - "CHANNELD_NORMAL:Channel ready for use." - ], - "in_payments_offered": 0, - "in_offered_msat": 0, - "in_payments_fulfilled": 0, - "in_fulfilled_msat": 0, - "out_payments_offered": 0, - "out_offered_msat": 0, - "out_payments_fulfilled": 0, - "out_fulfilled_msat": 0, - "htlcs": [] - } - ] - } - } - ], - "author": [ - "Michael Hawkins <>." - ], - "see_also": [ - "lightning-connect(7)", - "lightning-fundchannel_start(7)" - ], - "resources": [ - "Main web site: ", - "Lightning RFC site (BOLT #9): ", - "" - ] - }, - "lightning-listpeers.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listpeers", - "title": "Command returning data on connected lightning nodes", - "description": [ - "The **listpeers** RPC command returns data on nodes that are connected or are not connected but have open channels with this node.", - "", - "Once a connection to another lightning node has been established, using the **connect** command, data on the node can be returned using **listpeers** and the *id* that was used with the **connect** command.", - "", - "If no *id* is supplied, then data on all lightning nodes that are connected, or not connected but have open channels with this node, are returned.", - "", - "If a channel is open with a node and the connection has been lost, then the node will still appear in the output of the command and the value of the *connected* attribute of the node will be \"false\".", - "", - "The channel will remain open for a set blocktime, after which if the connection has not been re-established, the channel will close and the node will no longer appear in the command output." - ], - "request": { - "required": [], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "If supplied, limits the result to just the peer with the given ID, if it exists." - ] - }, - "level": { - "type": "string", - "description": [ - "Supplying level will show log entries related to that peer at the given log level." - ], - "enum": [ - "io", - "trace", - "debug", - "info", - "unusual" - ] } - } + ], + "author": [ + "Christian Decker <> is mainly responsible." + ], + "see_also": [ + "lightning-listpays(7)", + "lightning-sendpay(7)", + "lightning-listinvoices(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "peers" + "lightning-listsqlschemas.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.02", + "rpc": "listsqlschemas", + "title": "Command to example lightning-sql schemas", + "description": [ + "This allows you to examine the schemas at runtime; while they are fully documented for the current release in lightning-sql(7), as fields are added or deprecated, you can use this command to determine what fields are present.", + "", + "If *table* is given, only that table is in the resulting list, otherwise all tables are listed." ], - "properties": { - "peers": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "id", - "connected", - "num_channels" - ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "The unique id of the peer." - ] - }, - "connected": { - "type": "boolean", - "description": [ - "Value showing the connection status." - ] - }, - "num_channels": { - "type": "u32", - "description": [ - "The number of channels the peer has with this node." - ], - "added": "v23.02" - }, - "log": { - "type": "array", - "description": [ - "If *level* is specified, logs for this peer." - ], - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "SKIPPED", - "BROKEN", - "UNUSUAL", - "INFO", - "DEBUG", - "TRACE", - "IO_IN", - "IO_OUT" - ] - } - }, - "allOf": [ - { - "if": { - "properties": { - "type": { - "enum": [ - "SKIPPED" - ] - } - } - }, - "then": { - "type": "object", - "additionalProperties": false, - "required": [ - "num_skipped" - ], - "properties": { - "type": {}, - "num_skipped": { - "type": "u32", - "description": [ - "Number of deleted/omitted entries." - ] - } - } - } - }, - { - "if": { - "properties": { - "type": { - "enum": [ - "BROKEN", - "UNUSUAL", - "INFO", - "DEBUG", - "TRACE" - ] - } - } - }, - "then": { - "type": "object", - "additionalProperties": false, - "required": [ - "time", - "source", - "log", - "node_id" - ], - "properties": { - "type": {}, - "time": { - "type": "string", - "description": [ - "UNIX timestamp with 9 decimal places." - ] - }, - "source": { - "type": "string", - "description": [ - "The particular logbook this was found in." - ] - }, - "log": { - "type": "string", - "description": [ - "The actual log message." - ] - }, - "node_id": { - "type": "pubkey", - "description": [ - "The peer this is associated with." - ] - } - } - } - }, - { - "if": { - "properties": { - "type": { - "enum": [ - "IO_IN", - "IO_OUT" - ] - } - } + "request": { + "required": [], + "properties": { + "table": { + "type": "string" + } + } + }, + "response": { + "required": [ + "schemas" + ], + "properties": { + "schemas": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "tablename", + "columns" + ], + "properties": { + "tablename": { + "type": "string", + "description": [ + "The name of the table." + ] + }, + "columns": { + "type": "array", + "description": [ + "The columns, in database order." + ], + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "type" + ], + "properties": { + "name": { + "type": "string", + "description": [ + "The name of the column." + ] }, - "then": { - "type": "object", - "additionalProperties": false, - "required": [ - "time", - "source", - "log", - "node_id", - "data" + "type": { + "type": "string", + "enum": [ + "INTEGER", + "BLOB", + "TEXT", + "REAL" ], - "properties": { - "type": {}, - "time": { - "type": "string", - "description": [ - "UNIX timestamp with 9 decimal places." - ] - }, - "source": { - "type": "string", - "description": [ - "The particular logbook this was found in." - ] - }, - "log": { - "type": "string", - "description": [ - "The actual log message." - ] - }, - "node_id": { - "type": "pubkey", - "description": [ - "The peer this is associated with." - ] - }, - "data": { - "type": "hex", - "description": [ - "The IO which occurred." - ] - } - } + "description": [ + "The SQL type of the column." + ] } } - ] + } + }, + "indices": { + "type": "array", + "description": [ + "Any index we created to speed lookups." + ], + "items": { + "type": "array", + "description": [ + "The columns for this index." + ], + "items": { + "type": "string", + "description": [ + "The column name." + ] + } + } } } - }, - "allOf": [ + } + } + } + }, + "json_example": [ + { + "request": { + "id": "example:listsqlschemas#1", + "method": "listsqlschemas", + "params": { + "table": "offers" + } + }, + "response": { + "schemas": [ { - "if": { - "additionalProperties": true, - "properties": { - "connected": { - "enum": [ - true - ] + "tablename": "offers", + "columns": [ + { + "name": "offer_id", + "type": "BLOB" + }, + { + "name": "active", + "type": "INTEGER" + }, + { + "name": "single_use", + "type": "INTEGER" + }, + { + "name": "bolt12", + "type": "TEXT" + }, + { + "name": "bolt12_unsigned", + "type": "TEXT" + }, + { + "name": "used", + "type": "INTEGER" + }, + { + "name": "label", + "type": "TEXT" + } + ], + "indices": [ + [ + "offer_id" + ] + ] + } + ] + } + }, + { + "request": { + "id": "example:listsqlschemas#2", + "method": "listsqlschemas", + "params": [ + "closedchannels" + ] + }, + "response": { + "schemas": [ + { + "tablename": "closedchannels", + "columns": [ + { + "name": "rowid", + "type": "INTEGER" + }, + { + "name": "peer_id", + "type": "BLOB" + }, + { + "name": "channel_id", + "type": "BLOB" + }, + { + "name": "short_channel_id", + "type": "TEXT" + }, + { + "name": "alias_local", + "type": "TEXT" + }, + { + "name": "alias_remote", + "type": "TEXT" + }, + { + "name": "opener", + "type": "TEXT" + }, + { + "name": "closer", + "type": "TEXT" + }, + { + "name": "private", + "type": "INTEGER" + }, + { + "name": "total_local_commitments", + "type": "INTEGER" + }, + { + "name": "total_remote_commitments", + "type": "INTEGER" + }, + { + "name": "total_htlcs_sent", + "type": "INTEGER" + }, + { + "name": "funding_txid", + "type": "BLOB" + }, + { + "name": "funding_outnum", + "type": "INTEGER" + }, + { + "name": "leased", + "type": "INTEGER" + }, + { + "name": "funding_fee_paid_msat", + "type": "INTEGER" + }, + { + "name": "funding_fee_rcvd_msat", + "type": "INTEGER" + }, + { + "name": "funding_pushed_msat", + "type": "INTEGER" + }, + { + "name": "total_msat", + "type": "INTEGER" + }, + { + "name": "final_to_us_msat", + "type": "INTEGER" + }, + { + "name": "min_to_us_msat", + "type": "INTEGER" + }, + { + "name": "max_to_us_msat", + "type": "INTEGER" + }, + { + "name": "last_commitment_txid", + "type": "BLOB" + }, + { + "name": "last_commitment_fee_msat", + "type": "INTEGER" + }, + { + "name": "close_cause", + "type": "TEXT" + } + ] + } + ] + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-sql(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-listtransactions.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "listtransactions", + "title": "Command to get the list of transactions that was stored in the wallet.", + "description": [ + "The **listtransactions** command returns transactions tracked in the wallet. This includes deposits, withdrawals and transactions related to channels. A transaction may have multiple types, e.g., a transaction may both be a close and a deposit if it closes the channel and returns funds to the wallet." + ], + "request": { + "required": [], + "properties": {} + }, + "response": { + "required": [ + "transactions" + ], + "properties": { + "transactions": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "hash", + "rawtx", + "blockheight", + "txindex", + "locktime", + "version", + "inputs", + "outputs" + ], + "properties": { + "hash": { + "type": "txid", + "description": [ + "The transaction id." + ] + }, + "rawtx": { + "type": "hex", + "description": [ + "The raw transaction." + ] + }, + "blockheight": { + "type": "u32", + "description": [ + "The block height of this tx." + ] + }, + "txindex": { + "type": "u32", + "description": [ + "The transaction number within the block." + ] + }, + "locktime": { + "type": "u32", + "description": [ + "The nLocktime for this tx." + ] + }, + "version": { + "type": "u32", + "description": [ + "The nVersion for this tx." + ] + }, + "inputs": { + "type": "array", + "description": [ + "Each input, in order." + ], + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "txid", + "index", + "sequence" + ], + "properties": { + "txid": { + "type": "txid", + "description": [ + "The transaction id spent." + ] + }, + "index": { + "type": "u32", + "description": [ + "The output spent." + ] + }, + "sequence": { + "type": "u32", + "description": [ + "The nSequence value." + ] + } } } }, - "then": { - "additionalProperties": false, - "required": [ - "netaddr", - "features" + "outputs": { + "type": "array", + "description": [ + "Each output, in order." ], - "properties": { - "id": {}, - "channels": {}, - "connected": {}, - "num_channels": {}, - "htlcs": {}, - "log": {}, - "netaddr": { - "type": "array", - "minItems": 1, - "maxItems": 1, - "description": [ - "A single entry array." - ], - "items": { - "type": "string", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "index", + "amount_msat", + "scriptPubKey" + ], + "properties": { + "index": { + "type": "u32", + "description": [ + "The 0-based output number." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount of the output." + ] + }, + "scriptPubKey": { + "type": "hex", "description": [ - "Address, e.g. 1.2.3.4:1234." + "The scriptPubKey." ] } - }, - "remote_addr": { - "type": "string", - "description": [ - "The public IPv4/6 address the peer sees us from, e.g. 1.2.3.4:1234." - ] - }, - "features": { - "type": "hex", - "description": [ - "Bitmap of BOLT #9 features from peer's INIT message." - ] } } } } + } + } + } + }, + "json_example": [ + { + "request": { + "id": "example:listtransactions#1", + "method": "listtransactions", + "params": {} + }, + "response": { + "transactions": [ + { + "hash": "05985072bbe20747325e69a159fe08176cc1bbc96d25e8848edad2dddc1165d0", + "rawtx": "02000000027032912651fc25a3e0893acd5f9640598707e2dfef92143bb5a4020e335442800100000017160014a5f48b9aa3cb8ca6cc1040c11e386745bb4dc932ffffffffd229a4b4f78638ebcac10a68b0561585a5d6e4d3b769ad0a909e9b9afaeae24e00000000171600145c83da9b685f9142016c6f5eb5f98a45cfa6f686ffffffff01915a01000000000017a9143a4dfd59e781f9c3018e7d0a9b7a26d58f8d22bf8700000000", + "blockheight": 0, + "txindex": 0, + "locktime": 0, + "version": 2, + "inputs": [ + { + "txid": "804254330e02a4b53b1492efdfe207875940965fcd3a89e0a325fc5126913270", + "index": 1, + "sequence": 4294967295 + }, + { + "txid": "4ee2eafa9a9b9e900aad69b7d3e4d6a5851556b0680ac1caeb3886f7b4a429d2", + "index": 0, + "sequence": 4294967295 + } + ], + "outputs": [ + { + "index": 0, + "satoshis": "88721000msat", + "scriptPubKey": "a9143a4dfd59e781f9c3018e7d0a9b7a26d58f8d22bf87" + } + ] + } ] } } - } + ], + "errors": [ + "On failure, one of the following error codes may be returned:", + "", + "- -32602: Error in given parameters." + ], + "author": [ + "Vincenzo Palazzo <> wrote the initial version of this man page,", + "but many others did the hard work of actually implementing this rpc command." + ], + "see_also": [ + "lightning-newaddr(7)", + "lightning-listfunds(7)" + ], + "resources": [ + "Main web site: " + ] }, - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong." - ], - "json_example": [ - { - "request": { - "id": "example:listpeers#1", - "method": "listpeers", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "level": null - } - }, - "response": { - "peers": [ - { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "connected": true, - "num_channels": 1, - "netaddr": [ - "127.0.0.1:44619" - ], - "features": "08a0000a0a69a2" - } - ] + "lightning-makesecret.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "makesecret", + "title": "Command for deriving pseudorandom key from HSM", + "description": [ + "The **makesecret** RPC command derives a secret key from the HSM_secret." + ], + "request": { + "required": [], + "properties": { + "hex": { + "type": "hex", + "description": [ + "One of `hex` or `string` must be specified: `hex` can be any hex data." + ] + }, + "string": { + "type": "string", + "description": [ + "One of `hex` or `string` must be specified: `string` is a UTF-8 string interpreted literally." + ] + } } }, - { - "request": { - "id": "example:listpeers#2", - "method": "listpeers", - "params": { - "id": null, - "level": null + "response": { + "required": [ + "secret" + ], + "properties": { + "secret": { + "type": "secret", + "description": [ + "The pseudorandom key derived from HSM_secret." + ] } - }, - "response": { - "peers": [ - { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "connected": true, - "num_channels": 1, - "netaddr": [ - "127.0.0.1:48862" - ], - "features": "08a0000a0a69a2" - } - ] } - } - ], - "author": [ - "Michael Hawkins <>." - ], - "see_also": [ - "lightning-connect(7)", - "lightning-fundchannel_start(7)", - "lightning-setchannel(7)" - ], - "resources": [ - "Main web site: ", - "Lightning RFC site (BOLT #9):", - "" - ] - }, - "lightning-listsendpays.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listsendpays", - "title": "Low-level command for querying sendpay status", - "description": [ - "The **listsendpays** RPC command gets the status of all *sendpay* commands (which is also used by the *pay* command), or with *bolt11* or *payment_hash* limits results to that specific payment. You cannot specify both. It is possible to filter the payments also by *status*.", - "", - "Note that there may be more than one concurrent *sendpay* command per *pay*, so this command should be used with caution." - ], - "request": { - "required": [], - "properties": { - "bolt11": { - "type": "string", - "description": [ - "Bolt11 invoice." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the payment_preimage." - ] - }, - "status": { - "type": "string", - "enum": [ - "pending", - "complete", - "failed" - ], - "description": [ - "Whether the invoice has been paid, pending, or failed." - ] - }, - "index": { - "type": "string", - "added": "v23.11", - "enum": [ - "created", - "updated" - ], - "description": [ - "If neither bolt11 or payment_hash is specified, `index` controls ordering, by `created` (default) or `updated`." - ] - }, - "start": { - "type": "u64", - "added": "v23.11", - "description": [ - "If `index` is specified, `start` may be specified to start from that value, which is generally returned from lightning-wait(7)." - ] + }, + "errors": [ + "The following error codes may occur:", + "", + "- -1: Catchall nonspecific error." + ], + "json_example": [ + { + "request": { + "id": "example:makesecret#1", + "method": "makesecret", + "params": [ + "73636220736563726574" + ] + }, + "response": { + "secret": "a9a2e742405c28f059349132923a99337ae7f71168b7485496e3365f5bc664ed" + } }, - "limit": { - "type": "u32", - "added": "v23.11", - "description": [ - "If `index` is specified, `limit` can be used to specify the maximum number of entries to return." - ] + { + "request": { + "id": "example:makesecret#2", + "method": "makesecret", + "params": [ + null, + "scb secret" + ] + }, + "response": { + "secret": "a9a2e742405c28f059349132923a99337ae7f71168b7485496e3365f5bc664ed" + } } - }, - "dependentUpon": { - "index": [ - "start", - "limit" - ] - } + ], + "author": [ + "Aditya <> is mainly responsible." + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "payments" + "lightning-multifundchannel.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "multifundchannel", + "title": "Command for establishing many lightning channels", + "description": [ + "The **multifundchannel** RPC command opens multiple payment channels with nodes by committing a single funding transaction to the blockchain that is shared by all channels.", + "", + "If not already connected, **multifundchannel** will automatically attempt to connect; you may provide a *@host:port* hint appended to the node ID so that Core Lightning can learn how to connect to the node; see lightning-connect(7).", + "", + "Once the transaction is confirmed, normal channel operations may begin. Readiness is indicated by **listpeers** reporting a *state* of `CHANNELD_NORMAL` for the channel." ], - "properties": { - "payments": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "id", - "created_index", - "payment_hash", - "status", - "groupid", - "created_at", - "amount_sent_msat" + "request": { + "required": [ + "destinations" + ], + "properties": { + "destinations": { + "type": "array", + "description": [ + "There must be at least one entry in *destinations*; it cannot be an empty array." ], - "properties": { - "created_index": { - "added": "v23.11", - "type": "u64", - "description": [ - "1-based index indicating order this payment was created in." - ] - }, - "id": { - "type": "u64", - "description": [ - "Old synonym for created_index." - ] - }, - "groupid": { - "type": "u64", - "description": [ - "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash." - ] - }, - "partid": { - "type": "u64", - "description": [ - "Part number (for multiple parts to a single payment)." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "updated_index": { - "added": "v23.11", - "type": "u64", - "description": [ - "1-based index indicating order this payment was changed (only present if it has changed since creation)." - ] - }, - "status": { - "type": "string", - "enum": [ - "pending", - "failed", - "complete" - ], - "description": [ - "Status of the payment." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount delivered to destination (if known)." - ] - }, - "destination": { - "type": "pubkey", - "description": [ - "The final destination of the payment if known." - ] - }, - "created_at": { - "type": "u64", - "description": [ - "The UNIX timestamp showing when this payment was initiated." - ] - }, - "amount_sent_msat": { - "type": "msat", - "description": [ - "The amount sent." - ] - }, - "label": { - "type": "string", - "description": [ - "The label, if given to sendpay." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "The bolt11 string (if pay supplied one)." - ] - }, - "description": { - "type": "string", - "description": [ - "The description matching the bolt11 description hash (if pay supplied one)." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 string (if supplied for pay: **experimental-offers** only)." - ] - } - }, - "allOf": [ - { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "complete" - ] - } - } + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "amount" + ], + "properties": { + "id": { + "type": "string", + "description": [ + "Node ID, with an optional *@host:port* appended to it in a manner understood by **connect**; see lightning-connect(7). Each entry in the *destinations* array must have a unique node *id*. If not already connected, **multifundchannel** will automatically attempt to connect to the node." + ] }, - "then": { - "additionalProperties": false, - "required": [ - "payment_preimage" + "amount": { + "type": "msat_or_all", + "description": [ + "Amount in satoshis taken from the internal wallet to fund the channel (but if we have any anchor channels, this will always leave at least `min-emergency-msat` as change). The string *all* can be used to specify all available funds (or 16,777,215 satoshi if more is available and large channels were not negotiated with the peer). Otherwise it is in satoshi precision; it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*. The value cannot be less than the dust limit, currently 546 satoshi as of this writing, nor more than 16,777,215 satoshi (unless large channels were negotiated with the peer)." + ] + }, + "announce": { + "type": "boolean", + "description": [ + "Flag that indicates whether to announce the channel with this. If set to `False`, the channel is unpublished." ], - "properties": { - "id": {}, - "created_index": {}, - "updated_index": {}, - "partid": {}, - "groupid": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "destination": {}, - "created_at": {}, - "msatoshi_sent": {}, - "amount_sent_msat": {}, - "label": {}, - "bolt11": {}, - "description": {}, - "bolt12": {}, - "completed_at": { - "type": "u64", - "added": "pre-v0.10.1", - "description": [ - "The UNIX timestamp showing when this payment was completed." - ] - }, - "payment_preimage": { - "type": "secret", - "description": [ - "The proof of payment: SHA256 of this **payment_hash**." - ] - } - } + "default": "`True`" + }, + "push_msat": { + "type": "msat", + "description": [ + "Amount of millisatoshis to outright give to the node. This is a gift to the peer, and you do not get a proof-of-payment out of this." + ] + }, + "close_to": { + "type": "string", + "description": [ + "Bitcoin address to which the channel funds should be sent to on close. Only valid if both peers have negotiated `option_upfront_shutdown_script` Returns `close_to` set to closing script iff is negotiated." + ] + }, + "request_amt": { + "type": "msat", + "description": [ + "Amount of liquidity you'd like to lease from peer. If peer supports `option_will_fund`, indicates to them to include this much liquidity into the channel. Must also pass in *compact_lease*." + ] + }, + "compact_lease": { + "type": "string", + "description": [ + "Compact representation of the peer's expected channel lease terms. If the peer's terms don't match this set, we will fail to open the channel to this destination." + ] + }, + "mindepth": { + "type": "u32", + "description": [ + "Number of confirmations before we consider the channel active." + ] + }, + "reserve": { + "type": "msat", + "description": [ + "Amount we want the peer to maintain on its side of the channel. It can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*." + ], + "default": "1% of the funding amount" } - }, - { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "failed" - ] - } - } + } + } + }, + "feerate": { + "type": "feerate", + "description": [ + "Feerate used for the opening transaction, and if *commitment_feerate* is not set, as initial feerate for commitment and HTLC transactions. See NOTES in lightning-feerates(7) for possible values." + ], + "default": "*normal*" + }, + "minconf": { + "type": "integer", + "description": [ + "Minimum number of confirmations that used outputs should have." + ], + "default": 1 + }, + "utxos": { + "type": "array", + "items": { + "type": "outpoint", + "description": [ + "Utxos to be used to fund the channel, as an array of `txid:vout`." + ] + } + }, + "minchannels": { + "type": "integer", + "description": [ + "Re-attempt funding as long as at least this many peers remain (must not be zero). The **multifundchannel** command will only fail if too many peers fail the funding process." + ] + }, + "commitment_feerate": { + "type": "feerate", + "description": [ + "Initial feerate for commitment and HTLC transactions. See *feerate* for valid values." + ] + } + } + }, + "response": { + "required": [ + "tx", + "txid", + "channel_ids" + ], + "properties": { + "tx": { + "type": "hex", + "description": [ + "The raw transaction which funded the channel." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The txid of the transaction which funded the channel." + ] + }, + "channel_ids": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "channel_id", + "channel_type", + "outnum" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "The peer we opened the channel with." + ] + }, + "outnum": { + "type": "u32", + "description": [ + "The 0-based output index showing which output funded the channel." + ] }, - "then": { + "channel_id": { + "type": "hash", + "description": [ + "The channel_id of the resulting channel." + ] + }, + "channel_type": { + "type": "object", + "description": [ + "Channel_type as negotiated with peer." + ], + "added": "v24.02", "additionalProperties": false, - "required": [], + "required": [ + "bits", + "names" + ], "properties": { - "id": {}, - "created_index": {}, - "updated_index": {}, - "partid": {}, - "groupid": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "destination": {}, - "created_at": {}, - "completed_at": {}, - "msatoshi_sent": {}, - "amount_sent_msat": {}, - "label": {}, - "bolt11": {}, - "description": {}, - "bolt12": {}, - "erroronion": { - "type": "hex", + "bits": { + "type": "array", "description": [ - "The onion message returned." - ] - } - } - } - }, - { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "pending" - ] + "Each bit set in this channel_type." + ], + "added": "v24.02", + "items": { + "type": "u32", + "description": [ + "Bit number." + ] + } + }, + "names": { + "type": "array", + "description": [ + "Feature name for each bit set in this channel_type." + ], + "added": "v24.02", + "items": { + "type": "string", + "enum": [ + "static_remotekey/even", + "anchor_outputs/even", + "anchors_zero_fee_htlc_tx/even", + "scid_alias/even", + "zeroconf/even" + ], + "description": [ + "Name of feature bit." + ] + } } } }, - "then": { - "additionalProperties": false, - "required": [], - "properties": { - "id": {}, - "created_index": {}, - "updated_index": {}, - "partid": {}, - "groupid": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "destination": {}, - "created_at": {}, - "msatoshi_sent": {}, - "amount_sent_msat": {}, - "label": {}, - "bolt11": {}, - "description": {}, - "bolt12": {} - } + "close_to": { + "type": "hex", + "description": [ + "The raw scriptPubkey which mutual close will go to; only present if *close_to* parameter was specified and peer supports `option_upfront_shutdown_script`." + ] } } - ] - } - } - }, - "pre_return_value_notes": [ - "Note that the returned array is ordered by increasing *id*." - ] - }, - "json_example": [ - { - "request": { - "id": "example:listsendpays#1", - "method": "listsendpays", - "params": { - "bolt11": null, - "payment_hash": null, - "status": null, - "index": null, - "start": null, - "limit": null - } - }, - "response": { - "payments": [ - { - "created_index": 1, - "id": 1, - "payment_hash": "e3b43574acd074b0c4ba1b13b5155ff5f9c76742e643ed003e17301c5a2db149", - "groupid": 1, - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount_msat": 20000, - "amount_sent_msat": 20000, - "created_at": 1706225269, - "status": "pending", - "bolt11": "lnbcrt200n1pjm9mn5sp5gq84lgga959m6gg4g0kj29ypwjaxxnm4cu5csymq8p6nqxv800mspp5uw6r2a9v6p6tp396rvfm292l7huuwe6zuep76qp7zucpck3dk9ysdpqf9grgmt62fmk5stswefh23n2tpykvcmzxqyjw5qcqp99qxpqysgqz8s496zmwed278jvp075zlhrnj0ncg45kcfw5s2lkhtxd3wc39f8wflp5gmd827dk470xpasfpx0azsfu0k8ttwae7620h8d050w28cqan776g" - }, - { - "created_index": 2, - "id": 2, - "payment_hash": "f55d92cfe019b5a015f5e5956e9255053cda14786171d5002feb12ae5254e5a5", - "groupid": 1, - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount_msat": 30000, - "amount_sent_msat": 30000, - "created_at": 1706225269, - "status": "pending", - "bolt11": "lnbcrt300n1pjm9mn5sp5zqfkr93rp92mdyj6m8lzpcu90rfefcaqff8fxdd2sc5mace23ujspp574we9nlqrx66q904uk2kayj4q57d59rcv9ca2qp0avf2u5j5ukjsdpq29j55nfcgfcnsvzw2er57knhwcmhzwt0xqyjw5qcqp99qxpqysgq76p2jpnegtzlxmn0aqt6d3f89q4p6y5v3v2qz7t2mm6xt90nt324cq400tl82k28562aux8jxs57d603g7s0q4g3dapu9a7vln94j7spsut799" - } - ] - } - }, - { - "request": { - "id": "example:listsendpays#2", - "method": "listsendpays", - "params": { - "bolt11": "lnbcrt1230n1pja03q9sp5xu9aypccf3n6vld2waxcysy47ct2wl5x5adtm7k8u30knqes22lspp5duw2v8csh0zh4xg9ql3amem98avlkc2ecre99tgmr2340amf9kmsdqjv3jhxcmjd9c8g6t0dcxqyjw5qcqp99qxpqysgqwh78s8wqg0kepspw0epcxmxteh5wu8n6ddlwdnyj758fqxpqk8ejf597x8ju3r32xqgae3yzjjz9e5s6l2vs5zxvkayhmemmx74wvyqqyqf8c9", - "payment_hash": null, - "status": null, - "index": null, - "start": null, - "limit": null - } - }, - "response": { - "payments": [ - { - "created_index": 1, - "id": 1, - "payment_hash": "6f1ca61f10bbc57a990507e3dde7653f59fb6159c0f252ad1b1aa357f7692db7", - "groupid": 1, - "updated_index": 1, - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount_msat": 123000, - "amount_sent_msat": 123000, - "created_at": 1708639237, - "completed_at": 1708639238, - "status": "complete", - "payment_preimage": "91f8366681fdfd309c048082fcde81a79116f85a7b2dd09aef1e34f5f7c3397b", - "bolt11": "lnbcrt1230n1pja03q9sp5xu9aypccf3n6vld2waxcysy47ct2wl5x5adtm7k8u30knqes22lspp5duw2v8csh0zh4xg9ql3amem98avlkc2ecre99tgmr2340amf9kmsdqjv3jhxcmjd9c8g6t0dcxqyjw5qcqp99qxpqysgqwh78s8wqg0kepspw0epcxmxteh5wu8n6ddlwdnyj758fqxpqk8ejf597x8ju3r32xqgae3yzjjz9e5s6l2vs5zxvkayhmemmx74wvyqqyqf8c9" } - ] - } - } - ], - "author": [ - "Christian Decker <> is mainly responsible." - ], - "see_also": [ - "lightning-listpays(7)", - "lightning-sendpay(7)", - "lightning-listinvoices(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listsqlschemas.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.02", - "rpc": "listsqlschemas", - "title": "Command to example lightning-sql schemas", - "description": [ - "This allows you to examine the schemas at runtime; while they are fully documented for the current release in lightning-sql(7), as fields are added or deprecated, you can use this command to determine what fields are present.", - "", - "If *table* is given, only that table is in the resulting list, otherwise all tables are listed." - ], - "request": { - "required": [], - "properties": { - "table": { - "type": "string" - } - } - }, - "response": { - "required": [ - "schemas" - ], - "properties": { - "schemas": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "tablename", - "columns" + }, + "failed": { + "type": "array", + "description": [ + "Any peers we failed to open with (if *minchannels* was specified less than the number of destinations)." ], - "properties": { - "tablename": { - "type": "string", - "description": [ - "The name of the table." - ] - }, - "columns": { - "type": "array", - "description": [ - "The columns, in database order." - ], - "items": { + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "method", + "error" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "The peer we failed to open the channel with." + ] + }, + "method": { + "type": "string", + "enum": [ + "connect", + "openchannel_init", + "fundchannel_start", + "fundchannel_complete" + ], + "description": [ + "What stage we failed at." + ] + }, + "error": { "type": "object", "additionalProperties": false, "required": [ - "name", - "type" + "code", + "message" ], "properties": { - "name": { - "type": "string", + "code": { + "type": "integer", "description": [ - "The name of the column." + "JSON error code from failing stage." ] }, - "type": { + "message": { "type": "string", - "enum": [ - "INTEGER", - "BLOB", - "TEXT", - "REAL" - ], "description": [ - "The SQL type of the column." + "Message from stage." + ] + }, + "data": { + "untyped": true, + "description": [ + "Additional error data." ] } } } - }, - "indices": { - "type": "array", - "description": [ - "Any index we created to speed lookups." - ], - "items": { - "type": "array", - "description": [ - "The columns for this index." - ], - "items": { - "type": "string", - "description": [ - "The column name." - ] - } - } } } } - } - } - }, - "json_example": [ - { - "request": { - "id": "example:listsqlschemas#1", - "method": "listsqlschemas", - "params": { - "table": "offers" - } }, - "response": { - "schemas": [ - { - "tablename": "offers", - "columns": [ - { - "name": "offer_id", - "type": "BLOB" - }, - { - "name": "active", - "type": "INTEGER" - }, - { - "name": "single_use", - "type": "INTEGER" - }, - { - "name": "bolt12", - "type": "TEXT" - }, - { - "name": "bolt12_unsigned", - "type": "TEXT" - }, - { - "name": "used", - "type": "INTEGER" - }, + "pre_return_value_notes": [ + "This command opens multiple channels with a single large transaction, thus only one transaction is returned.", + "", + "If *minchannels* was specified and is less than the number of destinations, then it is possible that one or more of the destinations do not have a channel even if **multifundchannel** succeeded." + ], + "post_return_value_notes": [ + "On failure, none of the channels are created." + ] + }, + "errors": [ + "The following error codes may occur:", + "", + "- -1: Catchall nonspecific error.", + "- 300: The maximum allowed funding amount is exceeded.", + "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", + "- 302: The output amount is too small, and would be considered dust.", + "- 303: Broadcasting of the funding transaction failed, the internal call to bitcoin-cli returned with an error.", + "- 313: The `min-emergency-msat` reserve not be preserved (and we have or are opening anchor channels).", + "", + "Failure may also occur if **lightningd** and the peer cannot agree on channel parameters (funding limits, channel reserves, fees, etc.). See lightning-fundchannel_start(7) and lightning-fundchannel_complete(7).", + "", + "There may be rare edge cases where a communications failure later in the channel funding process will cancel the funding locally, but the peer thinks the channel is already waiting for funding lockin. In that case, the next time we connect to the peer, our node will tell the peer to forget the channel, but some nodes (in particular, Core Lightning nodes) will disconnect when our node tells them to forget the channel. If you immediately **multifundchannel** with that peer, it could trigger this connect-forget-disconnect behavior, causing the second **multifundchannel** to fail as well due to disconnection. Doing a **connect** with the peers separately, and waiting for a few seconds, should help clear this hurdle; running **multifundchannel** a third time would also clear this." + ], + "example_usage": [ + "This example opens three channels at once, with amounts 200,000 sats, 3,000,000 sats and the final channel using all remaining funds (actually, capped at 16,777,215 sats because large-channels is not enabled):", + "", + "```shell", + "$ lightning-cli multifundchannel '[{\"id\":\"0201f42e167959c74d396ac57652fcea63c63940f78e8239cce5720df4d85ef857@127.0.0.1:7272\", \"amount\":\"200000sat\"}, {\"id\":\"0304a2468065535f9459567686e0f02b40f06e341d3eb2a62ec6763bcf2ccfd207@127.0.0.1:7373\", \"amount\":\"0.03btc\"}, {\"id\":\"0391f4c475050bb15871da5a72b1f3a1798de3d2e5fb4ffa262899b8d8e1f0b764@127.0.0.1:7474\", \"amount\":\"all\"}]'", + "{", + " \"tx\": \"02000000000101fbe3c68db87b72f82c3f5447b0bc032469c78e71f229ac99c230807ff378a9d80000000000fdffffff04400d0300000000002200202e9897ed5f9b237aa27fd5d02d24157cd452b0d3f0a5bb03d38ff73f9f8f384bffffff0000000000220020439d797ada249e1e12f8d27cabb7330de3c8de0456fb54892deb7b9c72b0ff7c1dc9b50400000000225120046e3966a2d5e43c1f1e0676161905782e1e7c00811485c618f5144f328f4e2bc0c62d0000000000220020e36fd5c03c3586c3763d8b4c9d8650f396ff1c8a460137fb09b60ee82536a3b20140ea4d564e91c919b50a2d32886f1d414de773491119beb1364b92f15d6d03e1810e5ddea89c265e42f2e96bb028dfb3aa0b5b30072ddcc78daad727503c53e37fa9010000\",", + " \"txid\": \"90dc53922b70628fc9e7804ad0b8cd0fb41f050d94ffa2db3b16e918c96c022a\",", + " \"channel_ids\": [", + " {", + " \"id\": \"0201f42e167959c74d396ac57652fcea63c63940f78e8239cce5720df4d85ef857\",", + " \"channel_id\": \"25c8253e66a860d17916cc0c21386e310eba9900030a68ec6ff6f59a8401a872\",", + " \"outnum\": 0", + " },", + " {", + " \"id\": \"0304a2468065535f9459567686e0f02b40f06e341d3eb2a62ec6763bcf2ccfd207\",", + " \"channel_id\": \"51749d724892a406896f6bf2e2f8c0b03399d0436691f294839897fa167e6521\",", + " \"outnum\": 3", + " },", + " {", + " \"id\": \"0391f4c475050bb15871da5a72b1f3a1798de3d2e5fb4ffa262899b8d8e1f0b764\",", + " \"channel_id\": \"7e1414e72c081f0754fa18c1657cedabe696aa9ffeaf0b936bfbe3a28f2829d1\",", + " \"outnum\": 1", + " }", + " ],", + " \"failed\": []", + "}", + "```" + ], + "json_example": [ + { + "request": { + "id": "example:multifundchannel#1", + "method": "multifundchannel", + "params": { + "destinations": [ { - "name": "label", - "type": "TEXT" + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59@localhost:41939", + "amount": 50000 } ], - "indices": [ - [ - "offer_id" - ] - ] + "feerate": "10000perkw", + "minconf": null, + "utxos": null, + "minchannels": null, + "commitment_feerate": "2000perkw" } - ] - } - }, - { - "request": { - "id": "example:listsqlschemas#2", - "method": "listsqlschemas", - "params": [ - "closedchannels" - ] - }, - "response": { - "schemas": [ - { - "tablename": "closedchannels", - "columns": [ - { - "name": "rowid", - "type": "INTEGER" - }, - { - "name": "peer_id", - "type": "BLOB" - }, - { - "name": "channel_id", - "type": "BLOB" - }, - { - "name": "short_channel_id", - "type": "TEXT" - }, - { - "name": "alias_local", - "type": "TEXT" - }, - { - "name": "alias_remote", - "type": "TEXT" - }, - { - "name": "opener", - "type": "TEXT" - }, - { - "name": "closer", - "type": "TEXT" - }, - { - "name": "private", - "type": "INTEGER" - }, - { - "name": "total_local_commitments", - "type": "INTEGER" - }, - { - "name": "total_remote_commitments", - "type": "INTEGER" - }, - { - "name": "total_htlcs_sent", - "type": "INTEGER" + }, + "response": { + "tx": "0200000000010100a8ceb6f76c49c8c0c809ca359461540708a9a5ac56e56e6a7aaafb35f4d3850000000000fdffffff0250c30000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd0623ff030000000022512063ffee4ea7d51e6cadf9086e286a2527922aaa25b8c53aebf32fa32a0a627f5a02473044022064763837f2cc84507eb1fc28c9e95d51174e1da4b8755da8e67fe21e37d0a8b402206295d0f19625f014819361a20572b936d81f6c5ba419e56997e882f3a7be094a012103d745445c9362665f22e0d96e9e766f273f3260dea39c8a76bfa05dd2684ddccf66000000", + "txid": "ecba36e93bcf40542d43a05ef550bb0e4be51d766aa2ec8c5640a0d431ab0d06", + "channel_ids": [ + { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "channel_id": "060dab31d4a040568ceca26a761de54b0ebb50f55ea0432d5440cf3be936baec", + "channel_type": { + "bits": [ + 12 + ], + "names": [ + "static_remotekey/even" + ] }, + "outnum": 0 + } + ], + "failed": [] + } + }, + { + "request": { + "id": "example:multifundchannel#2", + "method": "multifundchannel", + "params": { + "destinations": [ { - "name": "funding_txid", - "type": "BLOB" + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59@localhost:44663", + "amount": 50000 }, { - "name": "funding_outnum", - "type": "INTEGER" + "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d@localhost:34631", + "amount": 50000 }, { - "name": "leased", - "type": "INTEGER" + "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199@localhost:34617", + "amount": 50000 + } + ], + "feerate": null, + "minconf": null, + "utxos": null, + "minchannels": 1 + } + }, + "response": { + "tx": "020000000001023041611dac05004825ab64781b4a33bf622380bf90196fae689196b1850a1f8f0000000000fdffffff5646519c565466c9588a88400ec71a39a2c0b6988beadb32491a13d9b89f85360100000000fdffffff0250c3000000000000220020181492c29a989f099fd2cf412c74b192dd095e81f4e4f6bec45bd1fbfdd2cfd983720000000000002251203e8a03f678bb7ca048baecc39788530560ea049816d604f72925e425288446c80140caa3b93c6667e4fe0026417cc87ae9dfd16d80018e7c6dcd6dfcee4d6cab7c7e84181baeb95ba25934ad1aa6b57f83c8287bf1b727123350b35549a3abe15b060140b3c6626b9b57081cc7eb5e4f518669764d265fb84316d8fb610e19ede13c5a370c1072861b909ec923acec980adb4a3e488ee3c6f9c49164bd4596945b52f62678000000", + "txid": "1fcc6d46200443ad21e3a1a1628b862bafd0d75c0b4454f5494957097bc7930d", + "channel_ids": [ + { + "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "channel_id": "0d93c77b09574949f554440b5cd7d0af2b868b62a1a1e321ad430420466dcc1f", + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors_zero_fee_htlc_tx/even" + ] }, + "outnum": 0 + } + ], + "failed": [ + { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "method": "connect", + "error": { + "code": 401, + "message": "All addresses failed: 127.0.0.1:44663: Connection establishment: Connection refused. " + } + }, + { + "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "method": "connect", + "error": { + "code": 401, + "message": "All addresses failed: 127.0.0.1:34631: Connection establishment: Connection refused. " + } + } + ] + } + } + ], + "author": [ + "ZmnSCPxj <> is mainly responsible." + ], + "see_also": [ + "lightning-connect(7)", + "lightning-listfunds()", + "lightning-listpeers(7)", + "lightning-fundchannel(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-multiwithdraw.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "multiwithdraw", + "title": "Command for withdrawing to multiple addresses", + "description": [ + "The **multiwithdraw** RPC command sends funds from Core Lightning's internal wallet to the addresses specified in *outputs*." + ], + "request": { + "required": [ + "outputs" + ], + "properties": { + "outputs": { + "type": "array", + "items": { + "type": "outputdesc" + }, + "description": [ + "An array containing objects of the form `{address: amount}`. The `amount` may be the string *all*, indicating that all onchain funds be sent to the specified address. Otherwise, it is in satoshi precision; it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*." + ] + }, + "feerate": { + "type": "feerate", + "description": [ + "Feerate used for the withdrawals. See NOTES in lightning-feerates(7) for possible values." + ], + "default": "*normal*" + }, + "minconf": { + "type": "u32", + "description": [ + "Minimum number of confirmations that used outputs should have." + ], + "default": 1 + }, + "utxos": { + "type": "array", + "items": { + "type": "outpoint", + "description": [ + "Utxos to be used to be withdrawn from, as an array of `txid:vout`. These must be drawn from the node's available UTXO set." + ] + } + } + } + }, + "response": { + "required": [ + "tx", + "txid" + ], + "properties": { + "tx": { + "type": "hex", + "description": [ + "The raw transaction which was sent." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The txid of the **tx**." + ] + } + } + }, + "json_example": [ + { + "request": { + "id": "example:multiwithdraw#1", + "method": "multiwithdraw", + "params": { + "outputs": [ { - "name": "funding_fee_paid_msat", - "type": "INTEGER" + "bcrt1qyusnugshkn6kh5vmdjpe8hylvxlxjy3ns0hmrs": "2222000msat" }, { - "name": "funding_fee_rcvd_msat", - "type": "INTEGER" - }, + "bcrt1q6r4vvt7uack33qf9n05umfxy8h5s2rdcmq7ra3": "3333000msat" + } + ], + "feerate": null, + "minconf": null, + "utxos": null + } + }, + "response": { + "tx": "02000000000101b75863b811587b4c15bb94d9285c31d6369b8ff609e44de399936f8acb268f600000000000fdffffff03050d000000000000160014d0eac62fdcee2d1881259be9cda4c43de9050db8ae0800000000000016001427213e2217b4f56bd19b6c8393dc9f61be691233d4b5f5050000000022512063ffee4ea7d51e6cadf9086e286a2527922aaa25b8c53aebf32fa32a0a627f5a0247304402203a001463da125de5615ff1c18f9cd4a1d2a138c91d40189d350821ac8fb3ae4f02207a507eec27e15fe43476233cd9fe8b690ebd265073a58ed18ff79a1416886f18012103d745445c9362665f22e0d96e9e766f273f3260dea39c8a76bfa05dd2684ddccf66000000", + "txid": "94e803b98257855569d35b675d65fb4fa0061a8b5f828992e2104a2882bb18bf" + } + }, + { + "request": { + "id": "example:multiwithdraw#2", + "method": "multiwithdraw", + "params": { + "outputs": [ { - "name": "funding_pushed_msat", - "type": "INTEGER" + "BCRT1QW508D6QEJXTDG4Y5R3ZARVARY0C5XW7KYGT080": 1000 }, { - "name": "total_msat", - "type": "INTEGER" + "bcrt1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3qzf4jry": 1000 }, { - "name": "final_to_us_msat", - "type": "INTEGER" + "bcrt1pw508d6qejxtdg4y5r3zarvary0c5xw7kw508d6qejxtdg4y5r3zarvary0c5xw7k0ylj56": 1000 }, { - "name": "min_to_us_msat", - "type": "INTEGER" + "BCRT1SW50QT2UWHA": 1000 }, { - "name": "max_to_us_msat", - "type": "INTEGER" + "bcrt1zw508d6qejxtdg4y5r3zarvaryv2wuatf": 1000 }, { - "name": "last_commitment_txid", - "type": "BLOB" + "bcrt1qqqqqp399et2xygdj5xreqhjjvcmzhxw4aywxecjdzew6hylgvseswlauz7": 1000 }, { - "name": "last_commitment_fee_msat", - "type": "INTEGER" + "bcrt1pqqqqp399et2xygdj5xreqhjjvcmzhxw4aywxecjdzew6hylgvsesyga46z": 1000 }, { - "name": "close_cause", - "type": "TEXT" + "bcrt1p0xlxvlhemja6c4dqv22uapctqupfhlxm9h8z3k2e72q4k9hcz7vqc8gma6": 1000 } - ] + ], + "feerate": null, + "minconf": null, + "utxos": null } - ] + }, + "response": { + "tx": "02000000000101dc5a50dfbafc30697b930b44e763ff7a255475d17d975fa0e2003431312098cf0100000000fdffffff09e803000000000000225120000000c4a5cad46221b2a187905e5266362b99d5e91c6ce24d165dab93e86433e803000000000000046002751ee8030000000000002a5128751e76e8199196d454941c45d1b3a323f1433bd6751e76e8199196d454941c45d1b3a323f1433bd6e80300000000000022512079be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f817983b939700000000002251200518e92cd94e0f62c06f126dff98b9abe79b7ed845a156d5245678e26554475de803000000000000160014751e76e8199196d454941c45d1b3a323f1433bd6e8030000000000002200201863143c14c5166804bd19203356da136c985678cd4d27a1b8c6329604903262e803000000000000125210751e76e8199196d454941c45d1b3a323e803000000000000220020000000c4a5cad46221b2a187905e5266362b99d5e91c6ce24d165dab93e8643301407f0d9bc098c5439ff611507b6a7d403047ed4e0b883f293db19d4e109d350a24f790acb55547384ff2a23fcfde0eba9af7cebc321c19cfc4817ecd47d50c2cd854000000", + "txid": "062383a7c9a19a2768939087a5c89826a4ea3531080f20cc06aa1cbf431be505" + } } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-sql(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-listtransactions.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "listtransactions", - "title": "Command to get the list of transactions that was stored in the wallet.", - "description": [ - "The **listtransactions** command returns transactions tracked in the wallet. This includes deposits, withdrawals and transactions related to channels. A transaction may have multiple types, e.g., a transaction may both be a close and a deposit if it closes the channel and returns funds to the wallet." - ], - "request": { - "required": [], - "properties": {} + ], + "errors": [ + "On failure, an error is reported and the withdrawal transaction is not created.", + "", + "- -1: Catchall nonspecific error.", + "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", + "- 302: The dust limit is not met." + ], + "author": [ + "ZmnSCPxj <> is mainly responsible." + ], + "see_also": [ + "lightning-listfunds(7)", + "lightning-fundchannel(7)", + "lightning-newaddr(7)", + "lightning-txprepare(7)", + "lightning-withdraw(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "transactions" + "lightning-newaddr.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "newaddr", + "title": "Command for generating a new address to be used by Core Lightning", + "description": [ + "The **newaddr** RPC command generates a new address which can subsequently be used to fund channels managed by the Core Lightning node.", + "", + "The funding transaction needs to be confirmed before funds can be used.", + "", + "To send an on-chain payment from the Core Lightning node wallet, use `withdraw`." ], - "properties": { - "transactions": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "hash", - "rawtx", - "blockheight", - "txindex", - "locktime", - "version", - "inputs", - "outputs" + "request": { + "required": [], + "properties": { + "addresstype": { + "type": "string", + "description": [ + "It specifies the type of address wanted; currently *bech32* (e.g. `tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg` on bitcoin testnet or `bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej` on bitcoin mainnet), or *p2tr* taproot addresses. The special value *all* generates all known address types for the same underlying key." ], - "properties": { - "hash": { - "type": "txid", - "description": [ - "The transaction id." - ] - }, - "rawtx": { - "type": "hex", - "description": [ - "The raw transaction." - ] - }, - "blockheight": { - "type": "u32", - "description": [ - "The block height of this tx." - ] - }, - "txindex": { - "type": "u32", - "description": [ - "The transaction number within the block." - ] - }, - "locktime": { - "type": "u32", - "description": [ - "The nLocktime for this tx." - ] - }, - "version": { - "type": "u32", - "description": [ - "The nVersion for this tx." - ] + "default": "*bech32* address", + "enum": [ + "bech32", + "p2tr", + "all" + ] + } + } + }, + "response": { + "required": [], + "properties": { + "p2tr": { + "added": "v23.08", + "type": "string", + "description": [ + "The taproot address." + ] + }, + "bech32": { + "type": "string", + "description": [ + "The bech32 (native segwit) address." + ] + } + } + }, + "errors": [ + "If an unrecognized address type is requested an error message will be returned." + ], + "json_example": [ + { + "request": { + "id": "example:newaddr#1", + "method": "newaddr", + "params": { + "addresstype": null + } + }, + "response": { + "bech32": "bcrt1qq8adjz4u6enf0cjey9j8yt0y490tact93fzgsf" + } + }, + { + "request": { + "id": "example:newaddr#2", + "method": "newaddr", + "params": { + "addresstype": "bech32" + } + }, + "response": { + "bech32": "bcrt1qq8adjz4u6enf0cjey9j8yt0y490tact93fzgsf" + } + } + ], + "author": [ + "Felix <> is mainly responsible." + ], + "see_also": [ + "lightning-listfunds(7)", + "lightning-fundchannel(7)", + "lightning-withdraw(7)", + "lightning-listtransactions(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-notifications.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "notifications", + "title": "Command to set up notifications.", + "description": [ + "The **notifications** the RPC command enabled notifications for this JSON-RPC connection. By default (and for backwards-compatibility) notifications are disabled.", + "", + "Various commands, especially complex and slow ones, offer notifications which indicate their progress." + ], + "request": { + "required": [ + "enable" + ], + "properties": { + "enable": { + "type": "boolean", + "description": [ + "Whether to enable or disable notifications." + ] + } + } + }, + "response": { + "properties": {}, + "post_return_value_notes": [ + "On success, if *enable* was *true*, notifications will be forwarded from then on." + ] + }, + "notifications": [ + "Notifications are JSON-RPC objects without an *id* field. *lightningd* sends notifications (once enabled with this *notifications* command) with a *params* *id* field indicating which command the notification refers to.", + "", + "Implementations should ignore notifications without an *id* parameter, or unknown *method*.", + "", + "Common *method*s include:", + " *message*: param *message*: a descriptional string indicating something which occurred relating to the command. Param *level* indicates the level, as per lightning-getlog(7): *info* and *debug* are typical.", + " *progress*: param *num* and *total*, where *num* starts at 0 and is always less than *total*. Optional param *stage* with fields *num* and *total*, indicating what stage we are progressing through." + ], + "errors": [ + "On failure, one of the following error codes may be returned:", + "", + "- -32602: Error in given parameters." + ], + "example_json_notifications": [ + { + "method": "message", + "params": { + "id": 1, + "message": "This is a test message", + "level": "DEBUG" + } + }, + { + "method": "progress", + "params": { + "id": 2, + "num": 0, + "total": 30, + "stage": { + "num": 0, + "total": 2 + } + } + } + ], + "json_example": [ + { + "request": { + "id": "example:notifications#1", + "method": "notifications", + "params": { + "enable": true + } + }, + "response": {} + }, + { + "request": { + "id": "example:notifications#2", + "method": "notifications", + "params": { + "enable": false + } + }, + "response": {} + } + ], + "author": [ + "Rusty Russell <> wrote the initial version of this man page." + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-offer.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "offer", + "title": "Command for accepting payments", + "warning": "experimental-offers only", + "description": [ + "The **offer** RPC command creates an offer (or returns an existing one), which is a precursor to creating one or more invoices. It automatically enables the processing of an incoming invoice_request, and issuing of invoices.", + "", + "Note that for making an offer to *pay* someone else, see lightning- invoicerequest(7)." + ], + "request": { + "required": [ + "amount", + "description" + ], + "properties": { + "amount": { + "oneOf": [ + { + "type": "msat_or_any" }, - "inputs": { - "type": "array", - "description": [ - "Each input, in order." - ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "txid", - "index", - "sequence" - ], - "properties": { - "txid": { - "type": "txid", - "description": [ - "The transaction id spent." - ] - }, - "index": { - "type": "u32", - "description": [ - "The output spent." - ] - }, - "sequence": { - "type": "u32", - "description": [ - "The nSequence value." - ] - } - } - } + { + "type": "currency" + } + ], + "description": [ + "Can be the string `any`, which creates an offer that can be paid with any amount (e.g. a donation). Otherwise it can be a positive value in millisatoshi precision; it can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*. It can also have an ISO 4217 postfix (e.g. USD), in which case currency conversion will need to be done for the invoice itself. A plugin is needed which provides the `currencyconvert` API for this currency, otherwise the offer creation will fail." + ] + }, + "description": { + "type": "string", + "description": [ + "A short description of purpose of the offer, e.g. *coffee*. This value is encoded into the resulting offer and is viewable by anyone you expose this offer to. It must be UTF-8, and cannot use *\\u* JSON escape codes." + ] + }, + "issuer": { + "type": "string", + "description": [ + "Who is issuing this offer (i.e. you) if appropriate." + ] + }, + "label": { + "type": "string", + "description": [ + "An internal-use name for the offer, which can be any UTF-8 string. This is *NOT* encoded in the offer not sent to the issuer." + ] + }, + "quantity_max": { + "type": "u64", + "description": [ + "Invoice can specify more than one of the items up (and including) this maximum: 0 is a special value meaning `no maximuim`. The *amount* for the invoice will need to be multiplied accordingly. This is encoded in the offer." + ] + }, + "absolute_expiry": { + "type": "u64", + "description": [ + "Time the offer is valid until,in seconds since the first day of 1970 UTC. If not set, the offer remains valid (though it can be deactivated by the issuer of course). This is encoded in the offer." + ] + }, + "recurrence": { + "type": "string", + "description": [ + "An invoice is expected at regular intervals. The argument is a positive number followed by one of `seconds`, `minutes`, `hours`, `days`, `weeks`, `months` or `years` (variants without the trailing `s` are also permitted). This is encoded in the offer. The semantics of recurrence is fairly predictable, but fully documented in BOLT 12. e.g. `4weeks`." + ] + }, + "recurrence_base": { + "oneOf": [ + { + "type": "string" }, - "outputs": { - "type": "array", - "description": [ - "Each output, in order." - ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "index", - "amount_msat", - "scriptPubKey" - ], - "properties": { - "index": { - "type": "u32", - "description": [ - "The 0-based output number." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount of the output." - ] - }, - "scriptPubKey": { - "type": "hex", - "description": [ - "The scriptPubKey." - ] - } - } - } + { + "type": "integer" } - } + ], + "description": [ + "Time in seconds since the first day of 1970 UTC, optionally with a `@` prefix. This indicates when the first period begins; without this, the recurrence periods start from the first invoice. The `@` prefix means that the invoice must start by paying the first period; otherwise it is permitted to start at any period. This is encoded in the offer. e.g. `@1609459200` indicates you must start paying on the 1st January 2021." + ] + }, + "recurrence_paywindow": { + "type": "string", + "description": [ + "Argument of form `-time+time[%]`. The first time is the number of seconds before the start of a period in which an invoice and payment is valid, the second time is the number of seconds after the start of the period. For example *-604800+86400* means you can fetch an pay the invoice 4 weeks before the given period starts, and up to 1 day afterwards. The optional *%* indicates that the amount of the invoice will be scaled by the time remaining in the period. This is encoded in the offer." + ], + "default": "that payment is allowed during the current and previous periods" + }, + "recurrence_limit": { + "type": "u32", + "description": [ + "To indicate the maximum period which exists. eg. `12` means there are 13 periods, from 0 to 12 inclusive. This is encoded in the offer." + ] + }, + "single_use": { + "type": "boolean", + "description": [ + "Indicates that the offer is only valid once; we may issue multiple invoices, but as soon as one is paid all other invoices will be expired (i.e. only one person can pay this offer)." + ], + "default": "False" + } + } + }, + "response": { + "required": [ + "offer_id", + "active", + "single_use", + "bolt12", + "used", + "created" + ], + "properties": { + "offer_id": { + "type": "hash", + "description": [ + "The id of this offer (merkle hash of non-signature fields)." + ] + }, + "active": { + "type": "boolean", + "enum": [ + true + ], + "description": [ + "Whether this can still be used." + ] + }, + "single_use": { + "type": "boolean", + "description": [ + "Whether this expires as soon as it's paid (reflects the *single_use* parameter)." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The bolt12 encoding of the offer." + ] + }, + "used": { + "type": "boolean", + "description": [ + "True if an associated invoice has been paid." + ] + }, + "created": { + "type": "boolean", + "description": [ + "False if the offer already existed." + ] + }, + "label": { + "type": "string", + "description": [ + "The (optional) user-specified label." + ] } } - } - }, - "json_example": [ - { - "request": { - "id": "example:listtransactions#1", - "method": "listtransactions", - "params": {} - }, - "response": { - "transactions": [ - { - "hash": "05985072bbe20747325e69a159fe08176cc1bbc96d25e8848edad2dddc1165d0", - "rawtx": "02000000027032912651fc25a3e0893acd5f9640598707e2dfef92143bb5a4020e335442800100000017160014a5f48b9aa3cb8ca6cc1040c11e386745bb4dc932ffffffffd229a4b4f78638ebcac10a68b0561585a5d6e4d3b769ad0a909e9b9afaeae24e00000000171600145c83da9b685f9142016c6f5eb5f98a45cfa6f686ffffffff01915a01000000000017a9143a4dfd59e781f9c3018e7d0a9b7a26d58f8d22bf8700000000", - "blockheight": 0, - "txindex": 0, - "locktime": 0, - "version": 2, - "inputs": [ - { - "txid": "804254330e02a4b53b1492efdfe207875940965fcd3a89e0a325fc5126913270", - "index": 1, - "sequence": 4294967295 - }, - { - "txid": "4ee2eafa9a9b9e900aad69b7d3e4d6a5851556b0680ac1caeb3886f7b4a429d2", - "index": 0, - "sequence": 4294967295 - } - ], - "outputs": [ - { - "index": 0, - "satoshis": "88721000msat", - "scriptPubKey": "a9143a4dfd59e781f9c3018e7d0a9b7a26d58f8d22bf87" - } - ] + }, + "errors": [ + "On failure, an error is returned and no offer is created. If the lightning process fails before responding, the caller should use lightning-listoffers(7) to query whether this offer was created or not.", + "", + "If the offer already existed, and is still active, that is returned; if it's not active then this call fails.", + "", + "- -1: Catchall nonspecific error.", + "- 1000: Offer with this offer_id already exists (but is not active)." + ], + "json_example": [ + { + "request": { + "id": "example:offer#1", + "method": "offer", + "params": { + "amount": "1msat", + "description": "test for 1msat" } - ] - } - } - ], - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32602: Error in given parameters." - ], - "author": [ - "Vincenzo Palazzo <> wrote the initial version of this man page,", - "but many others did the hard work of actually implementing this rpc command." - ], - "see_also": [ - "lightning-newaddr(7)", - "lightning-listfunds(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-makesecret.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "makesecret", - "title": "Command for deriving pseudorandom key from HSM", - "description": [ - "The **makesecret** RPC command derives a secret key from the HSM_secret." - ], - "request": { - "required": [], - "properties": { - "hex": { - "type": "hex", - "description": [ - "One of `hex` or `string` must be specified: `hex` can be any hex data." - ] + }, + "response": { + "offer_id": "f61cca153d1948dade19349792d9bcdc9cef687fd27db0b553a67979f55aae48", + "active": true, + "single_use": false, + "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqyqs5rn5v4ehggrxdaezqvtdwdshg93pqfnwgkvdr57yzh6h92zg3qctvrm7w38djg67kzcm4yeg8vc4cq63s", + "used": false, + "created": true + } }, - "string": { - "type": "string", - "description": [ - "One of `hex` or `string` must be specified: `string` is a UTF-8 string interpreted literally." - ] + { + "request": { + "id": "example:offer#2", + "method": "offer", + "params": { + "amount": "100000sat", + "description": "quantity_max test", + "recurrence": "1week" + } + }, + "response": { + "offer_id": "f7a501e51e2a90d032150b9100b1977c625f05cfda22469bdc81d8a20b1e303f", + "active": true, + "single_use": false, + "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqszltcgqpgghzatpde6xjaretakkz7pqw3jhxaqkyypxdeze35wncs2l2u4gfzyrpds00e6yakfrt6ctrw5n9qanzhqr2xq6qgqsw", + "used": false, + "created": true + } } - } - }, - "response": { - "required": [ - "secret" ], - "properties": { - "secret": { - "type": "secret", - "description": [ - "The pseudorandom key derived from HSM_secret." - ] - } - } + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-listoffers(7)", + "lightning-disableoffer(7)", + "lightning-invoicerequest(7)" + ], + "resources": [ + "Main web site: " + ] }, - "errors": [ - "The following error codes may occur:", - "", - "- -1: Catchall nonspecific error." - ], - "json_example": [ - { - "request": { - "id": "example:makesecret#1", - "method": "makesecret", - "params": [ - "73636220736563726574" - ] - }, - "response": { - "secret": "a9a2e742405c28f059349132923a99337ae7f71168b7485496e3365f5bc664ed" + "lightning-openchannel_abort.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "openchannel_abort", + "title": "Command to abort a channel to a peer", + "description": [ + "`openchannel_init` is a low level RPC command which initiates a channel open with a specified peer. It uses the openchannel protocol which allows for interactive transaction construction." + ], + "request": { + "required": [ + "channel_id" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "Channel id of the channel to be aborted." + ] + } } }, - { - "request": { - "id": "example:makesecret#2", - "method": "makesecret", - "params": [ - null, - "scb secret" - ] - }, - "response": { - "secret": "a9a2e742405c28f059349132923a99337ae7f71168b7485496e3365f5bc664ed" + "response": { + "required": [ + "channel_id", + "channel_canceled", + "reason" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "The channel id of the aborted channel." + ] + }, + "channel_canceled": { + "type": "boolean", + "description": [ + "Whether this is completely canceled (there may be remaining in-flight transactions)." + ] + }, + "reason": { + "type": "string", + "description": [ + "Usually \"Abort requested\", but if it happened to fail at the same time it could be different." + ] + } } - } - ], - "author": [ - "Aditya <> is mainly responsible." - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-multifundchannel.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "multifundchannel", - "title": "Command for establishing many lightning channels", - "description": [ - "The **multifundchannel** RPC command opens multiple payment channels with nodes by committing a single funding transaction to the blockchain that is shared by all channels.", - "", - "If not already connected, **multifundchannel** will automatically attempt to connect; you may provide a *@host:port* hint appended to the node ID so that Core Lightning can learn how to connect to the node; see lightning-connect(7).", - "", - "Once the transaction is confirmed, normal channel operations may begin. Readiness is indicated by **listpeers** reporting a *state* of `CHANNELD_NORMAL` for the channel." - ], - "request": { - "required": [ - "destinations" + }, + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong.", + "- -1: Catchall nonspecific error.", + "- 305: Peer is not connected.", + "- 311: Unknown channel id.", + "- 312: Channel in an invalid state" ], - "properties": { - "destinations": { - "type": "array", - "description": [ - "There must be at least one entry in *destinations*; it cannot be an empty array." - ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "id", - "amount" - ], - "properties": { - "id": { - "type": "string", - "description": [ - "Node ID, with an optional *@host:port* appended to it in a manner understood by **connect**; see lightning-connect(7). Each entry in the *destinations* array must have a unique node *id*. If not already connected, **multifundchannel** will automatically attempt to connect to the node." - ] - }, - "amount": { - "type": "msat_or_all", - "description": [ - "Amount in satoshis taken from the internal wallet to fund the channel (but if we have any anchor channels, this will always leave at least `min-emergency-msat` as change). The string *all* can be used to specify all available funds (or 16,777,215 satoshi if more is available and large channels were not negotiated with the peer). Otherwise it is in satoshi precision; it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*. The value cannot be less than the dust limit, currently 546 satoshi as of this writing, nor more than 16,777,215 satoshi (unless large channels were negotiated with the peer)." - ] - }, - "announce": { - "type": "boolean", - "description": [ - "Flag that indicates whether to announce the channel with this. If set to `False`, the channel is unpublished." - ], - "default": "`True`" - }, - "push_msat": { - "type": "msat", - "description": [ - "Amount of millisatoshis to outright give to the node. This is a gift to the peer, and you do not get a proof-of-payment out of this." - ] - }, - "close_to": { - "type": "string", - "description": [ - "Bitcoin address to which the channel funds should be sent to on close. Only valid if both peers have negotiated `option_upfront_shutdown_script` Returns `close_to` set to closing script iff is negotiated." - ] - }, - "request_amt": { - "type": "msat", - "description": [ - "Amount of liquidity you'd like to lease from peer. If peer supports `option_will_fund`, indicates to them to include this much liquidity into the channel. Must also pass in *compact_lease*." - ] - }, - "compact_lease": { - "type": "string", - "description": [ - "Compact representation of the peer's expected channel lease terms. If the peer's terms don't match this set, we will fail to open the channel to this destination." - ] - }, - "mindepth": { - "type": "u32", - "description": [ - "Number of confirmations before we consider the channel active." - ] - }, - "reserve": { - "type": "msat", - "description": [ - "Amount we want the peer to maintain on its side of the channel. It can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*." - ], - "default": "1% of the funding amount" - } + "json_example": [ + { + "request": { + "id": "example:openchannel_abort#1", + "method": "openchannel_abort", + "params": { + "channel_id": "aec3dfd0c7643a23b679cd2e493c053f8fdf621ff2624949f9582c4118b818c6" } + }, + "response": { + "channel_id": "aec3dfd0c7643a23b679cd2e493c053f8fdf621ff2624949f9582c4118b818c6", + "channel_canceled": true, + "reason": "Abort requested" } - }, - "feerate": { - "type": "feerate", - "description": [ - "Feerate used for the opening transaction, and if *commitment_feerate* is not set, as initial feerate for commitment and HTLC transactions. See NOTES in lightning-feerates(7) for possible values." - ], - "default": "*normal*" - }, - "minconf": { - "type": "integer", - "description": [ - "Minimum number of confirmations that used outputs should have." - ], - "default": 1 - }, - "utxos": { - "type": "array", - "items": { - "type": "outpoint", - "description": [ - "Utxos to be used to fund the channel, as an array of `txid:vout`." - ] - } - }, - "minchannels": { - "type": "integer", - "description": [ - "Re-attempt funding as long as at least this many peers remain (must not be zero). The **multifundchannel** command will only fail if too many peers fail the funding process." - ] - }, - "commitment_feerate": { - "type": "feerate", - "description": [ - "Initial feerate for commitment and HTLC transactions. See *feerate* for valid values." - ] } - } + ], + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-openchannel_init(7)", + "lightning-openchannel_update(7)", + "lightning-openchannel_signed(7)", + "lightning-openchannel_bump(7)", + "lightning-fundchannel_start(7)", + "lightning-fundchannel_complete(7)", + "lightning-fundchannel(7)", + "lightning-fundpsbt(7)", + "lightning-utxopsbt(7)", + "lightning-multifundchannel(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "tx", - "txid", - "channel_ids" + "lightning-openchannel_bump.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "openchannel_bump", + "title": "Command to initiate a channel RBF", + "description": [ + "`openchannel_bump` is a RPC command which initiates a channel RBF (Replace-By-Fee) for the specified channel. It uses the openchannel protocol which allows for interactive transaction construction.", + "", + "Warning: bumping a leased channel will lose the lease." ], - "properties": { - "tx": { - "type": "hex", - "description": [ - "The raw transaction which funded the channel." - ] - }, - "txid": { - "type": "txid", - "description": [ - "The txid of the transaction which funded the channel." - ] - }, - "channel_ids": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "id", - "channel_id", - "channel_type", - "outnum" + "request": { + "required": [ + "channel_id", + "amount", + "initialpsbt" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "Id of the channel to RBF." + ] + }, + "amount": { + "type": "msat", + "description": [ + "Satoshi value that we will contribute to the channel. This value will be _added_ to the provided PSBT in the output which is encumbered by the 2-of-2 script for this channel." + ] + }, + "initialpsbt": { + "type": "string", + "description": [ + "The funded, incomplete PSBT that specifies the UTXOs and change output for our channel contribution. It can be updated, see `openchannel_update`; *initialpsbt* must have at least one input. Must have the Non-Witness UTXO (PSBT_IN_NON_WITNESS_UTXO) set for every input. An error (code 309) will be returned if this requirement is not met." + ] + }, + "funding_feerate": { + "type": "feerate", + "description": [ + "Feerate for the funding transaction." ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "The peer we opened the channel with." - ] - }, - "outnum": { - "type": "u32", - "description": [ - "The 0-based output index showing which output funded the channel." - ] - }, - "channel_id": { - "type": "hash", - "description": [ - "The channel_id of the resulting channel." - ] - }, - "channel_type": { - "type": "object", - "description": [ - "Channel_type as negotiated with peer." - ], - "added": "v24.02", - "additionalProperties": false, - "required": [ - "bits", - "names" - ], - "properties": { - "bits": { - "type": "array", - "description": [ - "Each bit set in this channel_type." - ], - "added": "v24.02", - "items": { - "type": "u32", - "description": [ - "Bit number." - ] - } - }, - "names": { - "type": "array", - "description": [ - "Feature name for each bit set in this channel_type." - ], - "added": "v24.02", - "items": { - "type": "string", - "enum": [ - "static_remotekey/even", - "anchor_outputs/even", - "anchors_zero_fee_htlc_tx/even", - "scid_alias/even", - "zeroconf/even" - ], - "description": [ - "Name of feature bit." - ] - } - } - } - }, - "close_to": { - "type": "hex", - "description": [ - "The raw scriptPubkey which mutual close will go to; only present if *close_to* parameter was specified and peer supports `option_upfront_shutdown_script`." - ] - } - } + "default": "1/64th greater than the last feerate used for this channel" } - }, - "failed": { - "type": "array", - "description": [ - "Any peers we failed to open with (if *minchannels* was specified less than the number of destinations)." - ], - "items": { + } + }, + "response": { + "required": [ + "channel_id", + "channel_type", + "psbt", + "commitments_secured", + "funding_serial" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "The channel id of the channel." + ] + }, + "channel_type": { "type": "object", + "description": [ + "Channel_type as negotiated with peer." + ], + "added": "v24.02", "additionalProperties": false, "required": [ - "id", - "method", - "error" + "bits", + "names" ], "properties": { - "id": { - "type": "pubkey", + "bits": { + "type": "array", "description": [ - "The peer we failed to open the channel with." - ] - }, - "method": { - "type": "string", - "enum": [ - "connect", - "openchannel_init", - "fundchannel_start", - "fundchannel_complete" + "Each bit set in this channel_type." ], - "description": [ - "What stage we failed at." - ] + "added": "v24.02", + "items": { + "type": "u32", + "description": [ + "Bit number." + ] + } }, - "error": { - "type": "object", - "additionalProperties": false, - "required": [ - "code", - "message" + "names": { + "type": "array", + "description": [ + "Feature name for each bit set in this channel_type." ], - "properties": { - "code": { - "type": "integer", - "description": [ - "JSON error code from failing stage." - ] - }, - "message": { - "type": "string", - "description": [ - "Message from stage." - ] - }, - "data": { - "untyped": true, - "description": [ - "Additional error data." - ] - } + "added": "v24.02", + "items": { + "type": "string", + "enum": [ + "static_remotekey/even", + "anchor_outputs/even", + "anchors_zero_fee_htlc_tx/even", + "scid_alias/even", + "zeroconf/even" + ], + "description": [ + "Name of feature bit." + ] } } } + }, + "psbt": { + "type": "string", + "description": [ + "The (incomplete) PSBT of the RBF transaction." + ] + }, + "commitments_secured": { + "type": "boolean", + "enum": [ + false + ], + "description": [ + "Whether the *psbt* is complete." + ] + }, + "funding_serial": { + "type": "u64", + "description": [ + "The serial_id of the funding output in the *psbt*." + ] + }, + "requires_confirmed_inputs": { + "type": "boolean", + "description": [ + "Does peer require confirmed inputs in psbt?" + ] } - } + }, + "post_return_value_notes": [ + "If the peer does not support `option_dual_fund`, this command will return an error.", + "", + "If the channel is not in a state that is eligible for RBF, this command will return an error." + ] }, - "pre_return_value_notes": [ - "This command opens multiple channels with a single large transaction, thus only one transaction is returned.", + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", "", - "If *minchannels* was specified and is less than the number of destinations, then it is possible that one or more of the destinations do not have a channel even if **multifundchannel** succeeded." + "- -32602: If the given parameters are wrong.", + "- -1: Catchall nonspecific error.", + "- 300: The amount exceeded the maximum configured funding amount.", + "- 301: The provided PSBT cannot afford the funding amount.", + "- 305: Peer is not connected.", + "- 309: PSBT missing required fields", + "- 311: Unknown channel id.", + "- 312: Channel in an invalid state" ], - "post_return_value_notes": [ - "On failure, none of the channels are created." + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-openchannel_init(7)", + "lightning-openchannel_update(7)", + "lightning-openchannel_signed(7)", + "lightning-openchannel_abort(7)", + "lightning-fundchannel_start(7)", + "lightning-fundchannel_complete(7)", + "lightning-fundchannel(7)", + "lightning-fundpsbt(7)", + "lightning-utxopsbt(7)", + "lightning-multifundchannel(7)" + ], + "resources": [ + "Main web site: " ] }, - "errors": [ - "The following error codes may occur:", - "", - "- -1: Catchall nonspecific error.", - "- 300: The maximum allowed funding amount is exceeded.", - "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", - "- 302: The output amount is too small, and would be considered dust.", - "- 303: Broadcasting of the funding transaction failed, the internal call to bitcoin-cli returned with an error.", - "- 313: The `min-emergency-msat` reserve not be preserved (and we have or are opening anchor channels).", - "", - "Failure may also occur if **lightningd** and the peer cannot agree on channel parameters (funding limits, channel reserves, fees, etc.). See lightning-fundchannel_start(7) and lightning-fundchannel_complete(7).", - "", - "There may be rare edge cases where a communications failure later in the channel funding process will cancel the funding locally, but the peer thinks the channel is already waiting for funding lockin. In that case, the next time we connect to the peer, our node will tell the peer to forget the channel, but some nodes (in particular, Core Lightning nodes) will disconnect when our node tells them to forget the channel. If you immediately **multifundchannel** with that peer, it could trigger this connect-forget-disconnect behavior, causing the second **multifundchannel** to fail as well due to disconnection. Doing a **connect** with the peers separately, and waiting for a few seconds, should help clear this hurdle; running **multifundchannel** a third time would also clear this." - ], - "example_usage": [ - "This example opens three channels at once, with amounts 200,000 sats, 3,000,000 sats and the final channel using all remaining funds (actually, capped at 16,777,215 sats because large-channels is not enabled):", - "", - "```shell", - "$ lightning-cli multifundchannel '[{\"id\":\"0201f42e167959c74d396ac57652fcea63c63940f78e8239cce5720df4d85ef857@127.0.0.1:7272\", \"amount\":\"200000sat\"}, {\"id\":\"0304a2468065535f9459567686e0f02b40f06e341d3eb2a62ec6763bcf2ccfd207@127.0.0.1:7373\", \"amount\":\"0.03btc\"}, {\"id\":\"0391f4c475050bb15871da5a72b1f3a1798de3d2e5fb4ffa262899b8d8e1f0b764@127.0.0.1:7474\", \"amount\":\"all\"}]'", - "{", - " \"tx\": \"02000000000101fbe3c68db87b72f82c3f5447b0bc032469c78e71f229ac99c230807ff378a9d80000000000fdffffff04400d0300000000002200202e9897ed5f9b237aa27fd5d02d24157cd452b0d3f0a5bb03d38ff73f9f8f384bffffff0000000000220020439d797ada249e1e12f8d27cabb7330de3c8de0456fb54892deb7b9c72b0ff7c1dc9b50400000000225120046e3966a2d5e43c1f1e0676161905782e1e7c00811485c618f5144f328f4e2bc0c62d0000000000220020e36fd5c03c3586c3763d8b4c9d8650f396ff1c8a460137fb09b60ee82536a3b20140ea4d564e91c919b50a2d32886f1d414de773491119beb1364b92f15d6d03e1810e5ddea89c265e42f2e96bb028dfb3aa0b5b30072ddcc78daad727503c53e37fa9010000\",", - " \"txid\": \"90dc53922b70628fc9e7804ad0b8cd0fb41f050d94ffa2db3b16e918c96c022a\",", - " \"channel_ids\": [", - " {", - " \"id\": \"0201f42e167959c74d396ac57652fcea63c63940f78e8239cce5720df4d85ef857\",", - " \"channel_id\": \"25c8253e66a860d17916cc0c21386e310eba9900030a68ec6ff6f59a8401a872\",", - " \"outnum\": 0", - " },", - " {", - " \"id\": \"0304a2468065535f9459567686e0f02b40f06e341d3eb2a62ec6763bcf2ccfd207\",", - " \"channel_id\": \"51749d724892a406896f6bf2e2f8c0b03399d0436691f294839897fa167e6521\",", - " \"outnum\": 3", - " },", - " {", - " \"id\": \"0391f4c475050bb15871da5a72b1f3a1798de3d2e5fb4ffa262899b8d8e1f0b764\",", - " \"channel_id\": \"7e1414e72c081f0754fa18c1657cedabe696aa9ffeaf0b936bfbe3a28f2829d1\",", - " \"outnum\": 1", - " }", - " ],", - " \"failed\": []", - "}", - "```" - ], - "json_example": [ - { - "request": { - "id": "example:multifundchannel#1", - "method": "multifundchannel", - "params": { - "destinations": [ - { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59@localhost:41939", - "amount": 50000 - } + "lightning-openchannel_init.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "openchannel_init", + "title": "Command to initiate a channel to a peer", + "description": [ + "`openchannel_init` is a low level RPC command which initiates a channel open with a specified peer. It uses the openchannel protocol which allows for interactive transaction construction." + ], + "request": { + "required": [ + "id", + "amount", + "initialpsbt" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "Node id of the remote peer." + ] + }, + "amount": { + "type": "msat", + "description": [ + "Satoshi value that we will contribute to the channel. This value will be _added_ to the provided PSBT in the output which is encumbered by the 2-of-2 script for this channel." + ] + }, + "initialpsbt": { + "type": "string", + "description": [ + "Funded, incomplete PSBT that specifies the UTXOs and change output for our channel contribution. It can be updated, see `openchannel_update`; *initialpsbt* must have at least one input. Must have the Non-Witness UTXO (PSBT_IN_NON_WITNESS_UTXO) set for every input. An error (code 309) will be returned if this requirement is not met." + ] + }, + "commitment_feerate": { + "type": "feerate", + "description": [ + "Feerate for commitment transactions for non-anchor channels: see **fundchannel**. For anchor channels, it is ignored." + ] + }, + "funding_feerate": { + "type": "feerate", + "description": [ + "Feerate for the funding transaction." ], - "feerate": "10000perkw", - "minconf": null, - "utxos": null, - "minchannels": null, - "commitment_feerate": "2000perkw" - } - }, - "response": { - "tx": "0200000000010100a8ceb6f76c49c8c0c809ca359461540708a9a5ac56e56e6a7aaafb35f4d3850000000000fdffffff0250c30000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd0623ff030000000022512063ffee4ea7d51e6cadf9086e286a2527922aaa25b8c53aebf32fa32a0a627f5a02473044022064763837f2cc84507eb1fc28c9e95d51174e1da4b8755da8e67fe21e37d0a8b402206295d0f19625f014819361a20572b936d81f6c5ba419e56997e882f3a7be094a012103d745445c9362665f22e0d96e9e766f273f3260dea39c8a76bfa05dd2684ddccf66000000", - "txid": "ecba36e93bcf40542d43a05ef550bb0e4be51d766aa2ec8c5640a0d431ab0d06", - "channel_ids": [ - { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "channel_id": "060dab31d4a040568ceca26a761de54b0ebb50f55ea0432d5440cf3be936baec", - "channel_type": { - "bits": [ - 12 - ], - "names": [ - "static_remotekey/even" - ] - }, - "outnum": 0 + "default": "'opening' feerate" + }, + "announce": { + "type": "boolean", + "description": [ + "Whether or not to announce this channel." + ] + }, + "close_to": { + "type": "string", + "description": [ + "Bitcoin address to which the channel funds should be sent on close. Only valid if both peers have negotiated `option_upfront_shutdown_script`." + ] + }, + "request_amt": { + "type": "msat", + "description": [ + "An amount of liquidity you'd like to lease from the peer. If peer supports `option_will_fund`, indicates to them to include this much liquidity into the channel. Must also pass in *compact_lease*." + ] + }, + "compact_lease": { + "type": "hex", + "description": [ + "A compact representation of the peer's expected channel lease terms. If the peer's terms don't match this set, we will fail to open the channel." + ] + }, + "channel_type": { + "type": "array", + "description": [ + "Each bit set in this channel_type." + ], + "items": { + "type": "u32", + "description": [ + "Bit number." + ] } - ], - "failed": [] + } } }, - { - "request": { - "id": "example:multifundchannel#2", - "method": "multifundchannel", - "params": { - "destinations": [ - { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59@localhost:44663", - "amount": 50000 - }, - { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d@localhost:34631", - "amount": 50000 - }, - { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199@localhost:34617", - "amount": 50000 - } + "response": { + "required": [ + "channel_id", + "psbt", + "channel_type", + "commitments_secured", + "funding_serial" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "The channel id of the channel." + ] + }, + "psbt": { + "type": "string", + "description": [ + "The (incomplete) PSBT of the funding transaction." + ] + }, + "channel_type": { + "type": "object", + "description": [ + "Channel_type as negotiated with peer." ], - "feerate": null, - "minconf": null, - "utxos": null, - "minchannels": 1 - } - }, - "response": { - "tx": "020000000001023041611dac05004825ab64781b4a33bf622380bf90196fae689196b1850a1f8f0000000000fdffffff5646519c565466c9588a88400ec71a39a2c0b6988beadb32491a13d9b89f85360100000000fdffffff0250c3000000000000220020181492c29a989f099fd2cf412c74b192dd095e81f4e4f6bec45bd1fbfdd2cfd983720000000000002251203e8a03f678bb7ca048baecc39788530560ea049816d604f72925e425288446c80140caa3b93c6667e4fe0026417cc87ae9dfd16d80018e7c6dcd6dfcee4d6cab7c7e84181baeb95ba25934ad1aa6b57f83c8287bf1b727123350b35549a3abe15b060140b3c6626b9b57081cc7eb5e4f518669764d265fb84316d8fb610e19ede13c5a370c1072861b909ec923acec980adb4a3e488ee3c6f9c49164bd4596945b52f62678000000", - "txid": "1fcc6d46200443ad21e3a1a1628b862bafd0d75c0b4454f5494957097bc7930d", - "channel_ids": [ - { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "channel_id": "0d93c77b09574949f554440b5cd7d0af2b868b62a1a1e321ad430420466dcc1f", - "channel_type": { - "bits": [ - 12, - 22 + "added": "v24.02", + "additionalProperties": false, + "required": [ + "bits", + "names" + ], + "properties": { + "bits": { + "type": "array", + "description": [ + "Each bit set in this channel_type." ], - "names": [ - "static_remotekey/even", - "anchors_zero_fee_htlc_tx/even" - ] + "added": "v24.02", + "items": { + "type": "u32", + "description": [ + "Bit number." + ] + } }, - "outnum": 0 - } - ], - "failed": [ - { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "method": "connect", - "error": { - "code": 401, - "message": "All addresses failed: 127.0.0.1:44663: Connection establishment: Connection refused. " - } - }, - { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "method": "connect", - "error": { - "code": 401, - "message": "All addresses failed: 127.0.0.1:34631: Connection establishment: Connection refused. " + "names": { + "type": "array", + "description": [ + "Feature name for each bit set in this channel_type." + ], + "added": "v24.02", + "items": { + "type": "string", + "enum": [ + "static_remotekey/even", + "anchor_outputs/even", + "anchors_zero_fee_htlc_tx/even", + "scid_alias/even", + "zeroconf/even" + ], + "description": [ + "Name of feature bit." + ] + } } } - ] - } - } - ], - "author": [ - "ZmnSCPxj <> is mainly responsible." - ], - "see_also": [ - "lightning-connect(7)", - "lightning-listfunds()", - "lightning-listpeers(7)", - "lightning-fundchannel(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-multiwithdraw.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "multiwithdraw", - "title": "Command for withdrawing to multiple addresses", - "description": [ - "The **multiwithdraw** RPC command sends funds from Core Lightning's internal wallet to the addresses specified in *outputs*." - ], - "request": { - "required": [ - "outputs" - ], - "properties": { - "outputs": { - "type": "array", - "items": { - "type": "outputdesc" }, - "description": [ - "An array containing objects of the form `{address: amount}`. The `amount` may be the string *all*, indicating that all onchain funds be sent to the specified address. Otherwise, it is in satoshi precision; it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*." - ] - }, - "feerate": { - "type": "feerate", - "description": [ - "Feerate used for the withdrawals. See NOTES in lightning-feerates(7) for possible values." - ], - "default": "*normal*" - }, - "minconf": { - "type": "u32", - "description": [ - "Minimum number of confirmations that used outputs should have." - ], - "default": 1 - }, - "utxos": { - "type": "array", - "items": { - "type": "outpoint", + "commitments_secured": { + "type": "boolean", + "enum": [ + false + ], "description": [ - "Utxos to be used to be withdrawn from, as an array of `txid:vout`. These must be drawn from the node's available UTXO set." + "Whether the *psbt* is complete." + ] + }, + "funding_serial": { + "type": "u64", + "description": [ + "The serial_id of the funding output in the *psbt*." + ] + }, + "requires_confirmed_inputs": { + "type": "boolean", + "description": [ + "Does peer require confirmed inputs in psbt?" ] - } - } - } - }, - "response": { - "required": [ - "tx", - "txid" - ], - "properties": { - "tx": { - "type": "hex", - "description": [ - "The raw transaction which was sent." - ] - }, - "txid": { - "type": "txid", - "description": [ - "The txid of the **tx**." - ] - } - } - }, - "json_example": [ - { - "request": { - "id": "example:multiwithdraw#1", - "method": "multiwithdraw", - "params": { - "outputs": [ - { - "bcrt1qyusnugshkn6kh5vmdjpe8hylvxlxjy3ns0hmrs": "2222000msat" - }, - { - "bcrt1q6r4vvt7uack33qf9n05umfxy8h5s2rdcmq7ra3": "3333000msat" - } - ], - "feerate": null, - "minconf": null, - "utxos": null - } - }, - "response": { - "tx": "02000000000101b75863b811587b4c15bb94d9285c31d6369b8ff609e44de399936f8acb268f600000000000fdffffff03050d000000000000160014d0eac62fdcee2d1881259be9cda4c43de9050db8ae0800000000000016001427213e2217b4f56bd19b6c8393dc9f61be691233d4b5f5050000000022512063ffee4ea7d51e6cadf9086e286a2527922aaa25b8c53aebf32fa32a0a627f5a0247304402203a001463da125de5615ff1c18f9cd4a1d2a138c91d40189d350821ac8fb3ae4f02207a507eec27e15fe43476233cd9fe8b690ebd265073a58ed18ff79a1416886f18012103d745445c9362665f22e0d96e9e766f273f3260dea39c8a76bfa05dd2684ddccf66000000", - "txid": "94e803b98257855569d35b675d65fb4fa0061a8b5f828992e2104a2882bb18bf" - } - }, - { - "request": { - "id": "example:multiwithdraw#2", - "method": "multiwithdraw", - "params": { - "outputs": [ - { - "BCRT1QW508D6QEJXTDG4Y5R3ZARVARY0C5XW7KYGT080": 1000 - }, - { - "bcrt1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3qzf4jry": 1000 - }, - { - "bcrt1pw508d6qejxtdg4y5r3zarvary0c5xw7kw508d6qejxtdg4y5r3zarvary0c5xw7k0ylj56": 1000 - }, - { - "BCRT1SW50QT2UWHA": 1000 - }, - { - "bcrt1zw508d6qejxtdg4y5r3zarvaryv2wuatf": 1000 - }, - { - "bcrt1qqqqqp399et2xygdj5xreqhjjvcmzhxw4aywxecjdzew6hylgvseswlauz7": 1000 - }, - { - "bcrt1pqqqqp399et2xygdj5xreqhjjvcmzhxw4aywxecjdzew6hylgvsesyga46z": 1000 - }, - { - "bcrt1p0xlxvlhemja6c4dqv22uapctqupfhlxm9h8z3k2e72q4k9hcz7vqc8gma6": 1000 - } - ], - "feerate": null, - "minconf": null, - "utxos": null - } - }, - "response": { - "tx": "02000000000101dc5a50dfbafc30697b930b44e763ff7a255475d17d975fa0e2003431312098cf0100000000fdffffff09e803000000000000225120000000c4a5cad46221b2a187905e5266362b99d5e91c6ce24d165dab93e86433e803000000000000046002751ee8030000000000002a5128751e76e8199196d454941c45d1b3a323f1433bd6751e76e8199196d454941c45d1b3a323f1433bd6e80300000000000022512079be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f817983b939700000000002251200518e92cd94e0f62c06f126dff98b9abe79b7ed845a156d5245678e26554475de803000000000000160014751e76e8199196d454941c45d1b3a323f1433bd6e8030000000000002200201863143c14c5166804bd19203356da136c985678cd4d27a1b8c6329604903262e803000000000000125210751e76e8199196d454941c45d1b3a323e803000000000000220020000000c4a5cad46221b2a187905e5266362b99d5e91c6ce24d165dab93e8643301407f0d9bc098c5439ff611507b6a7d403047ed4e0b883f293db19d4e109d350a24f790acb55547384ff2a23fcfde0eba9af7cebc321c19cfc4817ecd47d50c2cd854000000", - "txid": "062383a7c9a19a2768939087a5c89826a4ea3531080f20cc06aa1cbf431be505" - } - } - ], - "errors": [ - "On failure, an error is reported and the withdrawal transaction is not created.", - "", - "- -1: Catchall nonspecific error.", - "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", - "- 302: The dust limit is not met." - ], - "author": [ - "ZmnSCPxj <> is mainly responsible." - ], - "see_also": [ - "lightning-listfunds(7)", - "lightning-fundchannel(7)", - "lightning-newaddr(7)", - "lightning-txprepare(7)", - "lightning-withdraw(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-newaddr.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "newaddr", - "title": "Command for generating a new address to be used by Core Lightning", - "description": [ - "The **newaddr** RPC command generates a new address which can subsequently be used to fund channels managed by the Core Lightning node.", - "", - "The funding transaction needs to be confirmed before funds can be used.", - "", - "To send an on-chain payment from the Core Lightning node wallet, use `withdraw`." - ], - "request": { - "required": [], - "properties": { - "addresstype": { - "type": "string", - "description": [ - "It specifies the type of address wanted; currently *bech32* (e.g. `tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg` on bitcoin testnet or `bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej` on bitcoin mainnet), or *p2tr* taproot addresses. The special value *all* generates all known address types for the same underlying key." - ], - "default": "*bech32* address", - "enum": [ - "bech32", - "p2tr", - "all" - ] - } - } - }, - "response": { - "required": [], - "properties": { - "p2tr": { - "added": "v23.08", - "type": "string", - "description": [ - "The taproot address." - ] - }, - "bech32": { - "type": "string", - "description": [ - "The bech32 (native segwit) address." - ] - } - } - }, - "errors": [ - "If an unrecognized address type is requested an error message will be returned." - ], - "json_example": [ - { - "request": { - "id": "example:newaddr#1", - "method": "newaddr", - "params": { - "addresstype": null } }, - "response": { - "bech32": "bcrt1qq8adjz4u6enf0cjey9j8yt0y490tact93fzgsf" - } + "post_return_value_notes": [ + "If the peer does not support `option_dual_fund`, this command will return an error.", + "", + "If you sent a *request_amt* and the peer supports `option_will_fund` and is interested in leasing you liquidity in this channel, returns their updated channel fee max (*channel_fee_proportional_basis*, *channel_fee_base_msat*), updated rate card for the lease fee (*lease_fee_proportional_basis*, *lease_fee_base_sat*) and their on-chain weight *weight_charge*, which will be added to the lease fee at a rate of *funding_feerate* * *weight_charge* / 1000." + ] }, - { - "request": { - "id": "example:newaddr#2", - "method": "newaddr", - "params": { - "addresstype": "bech32" + "json_example": [ + { + "request": { + "id": "example:openchannel_init#1", + "method": "openchannel_init", + "params": { + "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "amount": 999000, + "initialpsbt": "cHNidP8BADMCAAAAAYbThUhSzYr7ph6Z434bdcW7eoirYOFMmUt2GXZ79sF/AQAAAAD9////AGYAAAAAAQDeAgAAAAABARVD4QKlmwy8SNcNypf1o9TzbIFZjj4dqVzHAL0SLDoTAAAAAAD9////AjOv9ikBAAAAFgAUXJGglH7At5HOVY4ZHp0+19kv655AQg8AAAAAABYAFAH62Qq81maX4lkhZHIt5KlevuFlAkcwRAIgVIxRXqIykOOxm/6YPaFFx2Qh1618qlXPUhDiliVQ2KUCIHQcHniUTcm1XT8SyRE8ev52jm0uiIYum15XcR/tPh+NASEC3Pby7xL4+Ig/Z8TchQ0QT1upLGet3da8qjSjgHO9LOJlAAAAAQEfQEIPAAAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQA=", + "commitment_feerate": null, + "funding_feerate": null, + "announce": true, + "close_to": null, + "request_amt": null, + "channel_type": [ + 12, + 22 + ] + } + }, + "response": { + "channel_id": "53fa2b1ca0d8f21abeaaac0495ab9925cdfaf2ca8b04dbe4aeb061823e1ff2c8", + "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDeAgAAAAABARVD4QKlmwy8SNcNypf1o9TzbIFZjj4dqVzHAL0SLDoTAAAAAAD9////AjOv9ikBAAAAFgAUXJGglH7At5HOVY4ZHp0+19kv655AQg8AAAAAABYAFAH62Qq81maX4lkhZHIt5KlevuFlAkcwRAIgVIxRXqIykOOxm/6YPaFFx2Qh1618qlXPUhDiliVQ2KUCIHQcHniUTcm1XT8SyRE8ev52jm0uiIYum15XcR/tPh+NASEC3Pby7xL4+Ig/Z8TchQ0QT1upLGet3da8qjSjgHO9LOJlAAAAAQEfQEIPAAAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIIbThUhSzYr7ph6Z434bdcW7eoirYOFMmUt2GXZ79sF/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCMCDK/6LyRi8AAEDCFg+DwAAAAAAAQQiACDYM+8ZRsbTj0OCG/yzqLt2buFQn9LuMPDZqFFcgmCmfAz8CWxpZ2h0bmluZwEIchtFHfZ5FBgA", + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors_zero_fee_htlc_tx/even" + ] + }, + "commitments_secured": false, + "funding_serial": 8222241539686471000, + "requires_confirmed_inputs": false } }, - "response": { - "bech32": "bcrt1qq8adjz4u6enf0cjey9j8yt0y490tact93fzgsf" + { + "request": { + "id": "example:openchannel_init#2", + "method": "openchannel_init", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "amount": 16777216, + "initialpsbt": "cHNidP8BADMCAAAAAQVmgyf8sA3N9J6XaH5z7W+GUPDFOM/2L/PuD7iE0RaqAAAAAAD9////AGYAAAAAAQDeAgAAAAABAdWZZguGlQJ1eA+d7WAT500jdCzHJWT9J/TGQIkbS1KfAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFE8Xxp4GJggW2lJcsHg0VLolc/Z/AkcwRAIgEQLtA2JvAk7S1R9QD5o4SVNXCjMwTUIyHtu65taC/d4CIEnpq2PdrqKqitdmZj09U8cFuwV+Ba9kmZSUsctSWx8CASECUKP6EBufpaBXT910uYhCcKdw9z8iqHgyKa3uuX2QgmVlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQA=", + "commitment_feerate": null, + "funding_feerate": null, + "announce": true, + "close_to": null, + "request_amt": null, + "channel_type": null + } + }, + "response": { + "channel_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", + "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDeAgAAAAABAdWZZguGlQJ1eA+d7WAT500jdCzHJWT9J/TGQIkbS1KfAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFE8Xxp4GJggW2lJcsHg0VLolc/Z/AkcwRAIgEQLtA2JvAk7S1R9QD5o4SVNXCjMwTUIyHtu65taC/d4CIEnpq2PdrqKqitdmZj09U8cFuwV+Ba9kmZSUsctSWx8CASECUKP6EBufpaBXT910uYhCcKdw9z8iqHgyKa3uuX2QgmVlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIAVmgyf8sA3N9J6XaH5z7W+GUPDFOM/2L/PuD7iE0RaqAQ8EAAAAAAEQBP3///8M/AlsaWdodG5pbmcBCLR8RjOq9lmcAAEDCAAAAAEAAAAAAQQiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQz8CWxpZ2h0bmluZwEIZZtc7LD4y9YA", + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors_zero_fee_htlc_tx/even" + ] + }, + "commitments_secured": false, + "funding_serial": 7321547790872006000, + "requires_confirmed_inputs": false + } } - } - ], - "author": [ - "Felix <> is mainly responsible." - ], - "see_also": [ - "lightning-listfunds(7)", - "lightning-fundchannel(7)", - "lightning-withdraw(7)", - "lightning-listtransactions(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-notifications.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "notifications", - "title": "Command to set up notifications.", - "description": [ - "The **notifications** the RPC command enabled notifications for this JSON-RPC connection. By default (and for backwards-compatibility) notifications are disabled.", - "", - "Various commands, especially complex and slow ones, offer notifications which indicate their progress." - ], - "request": { - "required": [ - "enable" ], - "properties": { - "enable": { - "type": "boolean", - "description": [ - "Whether to enable or disable notifications." - ] - } - } - }, - "response": { - "properties": {}, - "post_return_value_notes": [ - "On success, if *enable* was *true*, notifications will be forwarded from then on." + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong.", + "- -1: Catchall nonspecific error.", + "- 300: The amount exceeded the maximum configured funding amount.", + "- 301: The provided PSBT cannot afford the funding amount.", + "- 304: Still syncing with bitcoin network", + "- 305: Peer is not connected.", + "- 306: Unknown peer id.", + "- 309: PSBT missing required fields", + "- 310: v2 channel open protocol not supported by peer", + "- 312: Channel in an invalid state" + ], + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-openchannel_update(7)", + "lightning-openchannel_signed(7)", + "lightning-openchannel_abort(7)", + "lightning-openchannel_bump(7)", + "lightning-fundchannel_start(7)", + "lightning-fundchannel_complete(7)", + "lightning-fundchannel(7)", + "lightning-fundpsbt(7)", + "lightning-utxopsbt(7)", + "lightning-multifundchannel(7)" + ], + "resources": [ + "Main web site: " ] }, - "notifications": [ - "Notifications are JSON-RPC objects without an *id* field. *lightningd* sends notifications (once enabled with this *notifications* command) with a *params* *id* field indicating which command the notification refers to.", - "", - "Implementations should ignore notifications without an *id* parameter, or unknown *method*.", - "", - "Common *method*s include:", - " *message*: param *message*: a descriptional string indicating something which occurred relating to the command. Param *level* indicates the level, as per lightning-getlog(7): *info* and *debug* are typical.", - " *progress*: param *num* and *total*, where *num* starts at 0 and is always less than *total*. Optional param *stage* with fields *num* and *total*, indicating what stage we are progressing through." - ], - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32602: Error in given parameters." - ], - "example_json_notifications": [ - { - "method": "message", - "params": { - "id": 1, - "message": "This is a test message", - "level": "DEBUG" + "lightning-openchannel_signed.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "openchannel_signed", + "title": "Command to conclude a channel open", + "description": [ + "`openchannel_signed` is a low level RPC command which concludes a channel open with the specified peer. It uses the v2 openchannel protocol, which allows for interactive transaction construction.", + "", + "This command should be called after `openchannel_update` returns *commitments_secured* `true`.", + "", + "This command will broadcast the finalized funding transaction, if we receive valid signatures from the peer." + ], + "request": { + "required": [ + "channel_id", + "signed_psbt" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "Id of the channel." + ] + }, + "signed_psbt": { + "type": "string", + "description": [ + "The PSBT returned from `openchannel_update` (where *commitments_secured* was true) with partial signatures or finalized witness stacks included for every input that we contributed to the PSBT." + ] + } } }, - { - "method": "progress", - "params": { - "id": 2, - "num": 0, - "total": 30, - "stage": { - "num": 0, - "total": 2 + "response": { + "required": [ + "channel_id", + "tx", + "txid" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "The channel id of the channel." + ] + }, + "tx": { + "type": "hex", + "description": [ + "The funding transaction." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The txid of the **tx**." + ] } } - } - ], - "json_example": [ - { - "request": { - "id": "example:notifications#1", - "method": "notifications", - "params": { - "enable": true - } - }, - "response": {} }, - { - "request": { - "id": "example:notifications#2", - "method": "notifications", - "params": { - "enable": false - } - }, - "response": {} - } - ], - "author": [ - "Rusty Russell <> wrote the initial version of this man page." - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-offer.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "offer", - "title": "Command for accepting payments", - "warning": "experimental-offers only", - "description": [ - "The **offer** RPC command creates an offer (or returns an existing one), which is a precursor to creating one or more invoices. It automatically enables the processing of an incoming invoice_request, and issuing of invoices.", - "", - "Note that for making an offer to *pay* someone else, see lightning- invoicerequest(7)." - ], - "request": { - "required": [ - "amount", - "description" + "errors": [ + "On error, the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong.", + "- -1: Catchall nonspecific error.", + "- 303: Funding transaction broadcast failed.", + "- 305: Peer is not connected.", + "- 309: PSBT missing required fields.", + "- 311: Unknown channel id.", + "- 312: Channel in an invalid state" ], - "properties": { - "amount": { - "oneOf": [ - { - "type": "msat_or_any" - }, - { - "type": "currency" - } - ], - "description": [ - "Can be the string `any`, which creates an offer that can be paid with any amount (e.g. a donation). Otherwise it can be a positive value in millisatoshi precision; it can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*. It can also have an ISO 4217 postfix (e.g. USD), in which case currency conversion will need to be done for the invoice itself. A plugin is needed which provides the `currencyconvert` API for this currency, otherwise the offer creation will fail." - ] - }, - "description": { - "type": "string", - "description": [ - "A short description of purpose of the offer, e.g. *coffee*. This value is encoded into the resulting offer and is viewable by anyone you expose this offer to. It must be UTF-8, and cannot use *\\u* JSON escape codes." - ] - }, - "issuer": { - "type": "string", - "description": [ - "Who is issuing this offer (i.e. you) if appropriate." - ] - }, - "label": { - "type": "string", - "description": [ - "An internal-use name for the offer, which can be any UTF-8 string. This is *NOT* encoded in the offer not sent to the issuer." - ] - }, - "quantity_max": { - "type": "u64", - "description": [ - "Invoice can specify more than one of the items up (and including) this maximum: 0 is a special value meaning `no maximuim`. The *amount* for the invoice will need to be multiplied accordingly. This is encoded in the offer." - ] - }, - "absolute_expiry": { - "type": "u64", - "description": [ - "Time the offer is valid until,in seconds since the first day of 1970 UTC. If not set, the offer remains valid (though it can be deactivated by the issuer of course). This is encoded in the offer." - ] - }, - "recurrence": { - "type": "string", - "description": [ - "An invoice is expected at regular intervals. The argument is a positive number followed by one of `seconds`, `minutes`, `hours`, `days`, `weeks`, `months` or `years` (variants without the trailing `s` are also permitted). This is encoded in the offer. The semantics of recurrence is fairly predictable, but fully documented in BOLT 12. e.g. `4weeks`." - ] - }, - "recurrence_base": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "integer" - } - ], - "description": [ - "Time in seconds since the first day of 1970 UTC, optionally with a `@` prefix. This indicates when the first period begins; without this, the recurrence periods start from the first invoice. The `@` prefix means that the invoice must start by paying the first period; otherwise it is permitted to start at any period. This is encoded in the offer. e.g. `@1609459200` indicates you must start paying on the 1st January 2021." - ] - }, - "recurrence_paywindow": { - "type": "string", - "description": [ - "Argument of form `-time+time[%]`. The first time is the number of seconds before the start of a period in which an invoice and payment is valid, the second time is the number of seconds after the start of the period. For example *-604800+86400* means you can fetch an pay the invoice 4 weeks before the given period starts, and up to 1 day afterwards. The optional *%* indicates that the amount of the invoice will be scaled by the time remaining in the period. This is encoded in the offer." - ], - "default": "that payment is allowed during the current and previous periods" - }, - "recurrence_limit": { - "type": "u32", - "description": [ - "To indicate the maximum period which exists. eg. `12` means there are 13 periods, from 0 to 12 inclusive. This is encoded in the offer." - ] - }, - "single_use": { - "type": "boolean", - "description": [ - "Indicates that the offer is only valid once; we may issue multiple invoices, but as soon as one is paid all other invoices will be expired (i.e. only one person can pay this offer)." - ], - "default": "False" - } - } + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-openchannel_init(7)", + "lightning-openchannel_update(7)", + "lightning-openchannel_abort(7)", + "lightning-openchannel_bump(7)", + "lightning-fundchannel_start(7)", + "lightning-fundchannel_complete(7)", + "lightning-fundchannel(7)", + "lightning-fundpsbt(7)", + "lightning-utxopsbt(7)", + "lightning-multifundchannel(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "offer_id", - "active", - "single_use", - "bolt12", - "used", - "created" + "lightning-openchannel_update.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "openchannel_update", + "title": "Command to update a collab channel open", + "description": [ + "`openchannel_update` is a low level RPC command which continues an open channel, as specified by *channel_id*. An updated *psbt* is passed in; any changes from the PSBT last returned (either from `openchannel_init` or a previous call to `openchannel_update`) will be communicated to the peer.", + "", + "Must be called after `openchannel_init` and before `openchannel_signed`.", + "", + "Must be called until *commitments_secured* is returned as true, at which point `openchannel_signed` should be called with a signed version of the PSBT returned by the last call to `openchannel_update`." ], - "properties": { - "offer_id": { - "type": "hash", - "description": [ - "The id of this offer (merkle hash of non-signature fields)." - ] - }, - "active": { - "type": "boolean", - "enum": [ - true - ], - "description": [ - "Whether this can still be used." - ] - }, - "single_use": { - "type": "boolean", - "description": [ - "Whether this expires as soon as it's paid (reflects the *single_use* parameter)." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 encoding of the offer." - ] - }, - "used": { - "type": "boolean", - "description": [ - "True if an associated invoice has been paid." - ] - }, - "created": { - "type": "boolean", - "description": [ - "False if the offer already existed." - ] - }, - "label": { - "type": "string", - "description": [ - "The (optional) user-specified label." - ] + "request": { + "required": [ + "channel_id", + "psbt" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "Id of the channel." + ] + }, + "psbt": { + "type": "string", + "description": [ + "Updated PSBT to be sent to the peer. May be identical to the PSBT last returned by either `openchannel_init` or `openchannel_update`." + ] + } } - } - }, - "errors": [ - "On failure, an error is returned and no offer is created. If the lightning process fails before responding, the caller should use lightning-listoffers(7) to query whether this offer was created or not.", - "", - "If the offer already existed, and is still active, that is returned; if it's not active then this call fails.", - "", - "- -1: Catchall nonspecific error.", - "- 1000: Offer with this offer_id already exists (but is not active)." - ], - "json_example": [ - { - "request": { - "id": "example:offer#1", - "method": "offer", - "params": { - "amount": "1msat", - "description": "test for 1msat" + }, + "response": { + "required": [ + "channel_id", + "psbt", + "commitments_secured", + "channel_type", + "funding_outnum" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "The channel id of the channel." + ] + }, + "channel_type": { + "type": "object", + "description": [ + "Channel_type as negotiated with peer." + ], + "added": "v24.02", + "additionalProperties": false, + "required": [ + "bits", + "names" + ], + "properties": { + "bits": { + "type": "array", + "description": [ + "Each bit set in this channel_type." + ], + "added": "v24.02", + "items": { + "type": "u32", + "description": [ + "Bit number." + ] + } + }, + "names": { + "type": "array", + "description": [ + "Feature name for each bit set in this channel_type." + ], + "added": "v24.02", + "items": { + "type": "string", + "enum": [ + "static_remotekey/even", + "anchor_outputs/even", + "anchors_zero_fee_htlc_tx/even", + "scid_alias/even", + "zeroconf/even" + ], + "description": [ + "Name of feature bit." + ] + } + } + } + }, + "psbt": { + "type": "string", + "description": [ + "The PSBT of the funding transaction." + ] + }, + "commitments_secured": { + "type": "boolean", + "description": [ + "Whether the *psbt* is complete (if true, sign *psbt* and call `openchannel_signed` to complete the channel open)." + ] + }, + "funding_outnum": { + "type": "u32", + "description": [ + "The index of the funding output in the psbt." + ] + }, + "close_to": { + "type": "hex", + "description": [ + "Scriptpubkey which we have to close to if we mutual close." + ] + }, + "requires_confirmed_inputs": { + "type": "boolean", + "description": [ + "Does peer require confirmed inputs in psbt?" + ] + } + }, + "allOf": [ + { + "if": { + "properties": { + "commitments_secured": { + "type": "boolean", + "enum": [ + true + ] + } + } + }, + "then": { + "additionalProperties": true, + "required": [ + "channel_id", + "funding_outnum" + ], + "properties": { + "commitments_secured": {}, + "channel_id": { + "type": "hash", + "description": [ + "The derived channel id." + ] + }, + "close_to": { + "type": "hex", + "description": [ + "If a `close_to` address was provided to `openchannel_init` and the peer supports `option_upfront_shutdownscript`." + ] + }, + "funding_outnum": { + "type": "u32", + "description": [ + "The index of the funding output for this channel in the funding transaction." + ] + } + } + }, + "else": { + "additionalProperties": false, + "properties": { + "commitments_secured": {} + } + } } - }, - "response": { - "offer_id": "f61cca153d1948dade19349792d9bcdc9cef687fd27db0b553a67979f55aae48", - "active": true, - "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqyqs5rn5v4ehggrxdaezqvtdwdshg93pqfnwgkvdr57yzh6h92zg3qctvrm7w38djg67kzcm4yeg8vc4cq63s", - "used": false, - "created": true - } + ] }, - { - "request": { - "id": "example:offer#2", - "method": "offer", - "params": { - "amount": "100000sat", - "description": "quantity_max test", - "recurrence": "1week" + "errors": [ + "On error, the returned object will contain `code` and `message` properties,", + "with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong.", + "- -1: Catchall nonspecific error.", + "- 305: Peer is not connected.", + "- 309: PSBT missing required fields", + "- 311: Unknown channel id.", + "- 312: Channel in an invalid state" + ], + "json_example": [ + { + "request": { + "id": "example:openchannel_update#1", + "method": "openchannel_update", + "params": { + "channel_id": "c3a282c1136f44dc2e499c116a9d9e6ea64649c3eabdd396cb96fb30a86fad8e", + "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDeAgAAAAABAdWZZguGlQJ1eA+d7WAT500jdCzHJWT9J/TGQIkbS1KfAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFE8Xxp4GJggW2lJcsHg0VLolc/Z/AkcwRAIgEQLtA2JvAk7S1R9QD5o4SVNXCjMwTUIyHtu65taC/d4CIEnpq2PdrqKqitdmZj09U8cFuwV+Ba9kmZSUsctSWx8CASECUKP6EBufpaBXT910uYhCcKdw9z8iqHgyKa3uuX2QgmVlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIAVmgyf8sA3N9J6XaH5z7W+GUPDFOM/2L/PuD7iE0RaqAQ8EAAAAAAEQBP3///8M/AlsaWdodG5pbmcBCH932EuFXyxeAAEDCEBCDwAAAAAAAQQiACA/FzDCfUe+WFEBa+aPSY4TZTYt6liPHz5OHo04w2gQ3wz8CWxpZ2h0bmluZwEI42voJCAYLKQA" + } + }, + "response": { + "channel_id": "c3a282c1136f44dc2e499c116a9d9e6ea64649c3eabdd396cb96fb30a86fad8e", + "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDeAgAAAAABAdWZZguGlQJ1eA+d7WAT500jdCzHJWT9J/TGQIkbS1KfAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFE8Xxp4GJggW2lJcsHg0VLolc/Z/AkcwRAIgEQLtA2JvAk7S1R9QD5o4SVNXCjMwTUIyHtu65taC/d4CIEnpq2PdrqKqitdmZj09U8cFuwV+Ba9kmZSUsctSWx8CASECUKP6EBufpaBXT910uYhCcKdw9z8iqHgyKa3uuX2QgmVlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIAVmgyf8sA3N9J6XaH5z7W+GUPDFOM/2L/PuD7iE0RaqAQ8EAAAAAAEQBP3///8M/AlsaWdodG5pbmcBCH932EuFXyxeAAEDCEBCDwAAAAAAAQQiACA/FzDCfUe+WFEBa+aPSY4TZTYt6liPHz5OHo04w2gQ3wz8CWxpZ2h0bmluZwEI42voJCAYLKQA", + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors_zero_fee_htlc_tx/even" + ] + }, + "commitments_secured": true, + "funding_outnum": 0 } }, - "response": { - "offer_id": "f7a501e51e2a90d032150b9100b1977c625f05cfda22469bdc81d8a20b1e303f", - "active": true, - "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqszltcgqpgghzatpde6xjaretakkz7pqw3jhxaqkyypxdeze35wncs2l2u4gfzyrpds00e6yakfrt6ctrw5n9qanzhqr2xq6qgqsw", - "used": false, - "created": true + { + "request": { + "id": "example:openchannel_update#2", + "method": "openchannel_update", + "params": { + "channel_id": "c3a282c1136f44dc2e499c116a9d9e6ea64649c3eabdd396cb96fb30a86fad8e", + "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDeAgAAAAABAdWZZguGlQJ1eA+d7WAT500jdCzHJWT9J/TGQIkbS1KfAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFE8Xxp4GJggW2lJcsHg0VLolc/Z/AkcwRAIgEQLtA2JvAk7S1R9QD5o4SVNXCjMwTUIyHtu65taC/d4CIEnpq2PdrqKqitdmZj09U8cFuwV+Ba9kmZSUsctSWx8CASECUKP6EBufpaBXT910uYhCcKdw9z8iqHgyKa3uuX2QgmVlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIAVmgyf8sA3N9J6XaH5z7W+GUPDFOM/2L/PuD7iE0RaqAQ8EAAAAAAEQBP3///8M/AlsaWdodG5pbmcBCH932EuFXyxeAAEDCEBCDwAAAAAAAQQiACA/FzDCfUe+WFEBa+aPSY4TZTYt6liPHz5OHo04w2gQ3wz8CWxpZ2h0bmluZwEI42voJCAYLKQA" + } + }, + "response": { + "channel_id": "c3a282c1136f44dc2e499c116a9d9e6ea64649c3eabdd396cb96fb30a86fad8e", + "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDeAgAAAAABAdWZZguGlQJ1eA+d7WAT500jdCzHJWT9J/TGQIkbS1KfAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFE8Xxp4GJggW2lJcsHg0VLolc/Z/AkcwRAIgEQLtA2JvAk7S1R9QD5o4SVNXCjMwTUIyHtu65taC/d4CIEnpq2PdrqKqitdmZj09U8cFuwV+Ba9kmZSUsctSWx8CASECUKP6EBufpaBXT910uYhCcKdw9z8iqHgyKa3uuX2QgmVlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIAVmgyf8sA3N9J6XaH5z7W+GUPDFOM/2L/PuD7iE0RaqAQ8EAAAAAAEQBP3///8M/AlsaWdodG5pbmcBCH932EuFXyxeAAEDCEBCDwAAAAAAAQQiACA/FzDCfUe+WFEBa+aPSY4TZTYt6liPHz5OHo04w2gQ3wz8CWxpZ2h0bmluZwEI42voJCAYLKQA", + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors_zero_fee_htlc_tx/even" + ] + }, + "commitments_secured": true, + "funding_outnum": 0, + "close_to": "5120eed745804da9784cc203f563efa99ffa54fdf01b137bc964e63c3124070ffbe6" + } } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-listoffers(7)", - "lightning-disableoffer(7)", - "lightning-invoicerequest(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-openchannel_abort.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "openchannel_abort", - "title": "Command to abort a channel to a peer", - "description": [ - "`openchannel_init` is a low level RPC command which initiates a channel open with a specified peer. It uses the openchannel protocol which allows for interactive transaction construction." - ], - "request": { - "required": [ - "channel_id" ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "Channel id of the channel to be aborted." - ] - } - } + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-openchannel_init(7)", + "lightning-openchannel_signed(7)", + "lightning-openchannel_bump(7)", + "lightning-openchannel_abort(7)", + "lightning-fundchannel_start(7)", + "lightning-fundchannel_complete(7)", + "lightning-fundchannel(7)", + "lightning-fundpsbt(7)", + "lightning-utxopsbt(7)", + "lightning-multifundchannel(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "channel_id", - "channel_canceled", - "reason" + "lightning-parsefeerate.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "parsefeerate", + "title": "Command for parsing a feerate string to a feerate", + "description": [ + "The **parsefeerate** command returns the current feerate for any valid *feerate_str*. This is useful for finding the current feerate that a **fundpsbt** or **utxopsbt** command might use." ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "The channel id of the aborted channel." - ] - }, - "channel_canceled": { - "type": "boolean", - "description": [ - "Whether this is completely canceled (there may be remaining in-flight transactions)." - ] - }, - "reason": { - "type": "string", - "description": [ - "Usually \"Abort requested\", but if it happened to fail at the same time it could be different." - ] + "request": { + "required": [ + "feerate_str" + ], + "properties": { + "feerate_str": { + "type": "string", + "description": [ + "The feerate string to parse." + ] + } } - } - }, - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong.", - "- -1: Catchall nonspecific error.", - "- 305: Peer is not connected.", - "- 311: Unknown channel id.", - "- 312: Channel in an invalid state" - ], - "json_example": [ - { - "request": { - "id": "example:openchannel_abort#1", - "method": "openchannel_abort", - "params": { - "channel_id": "aec3dfd0c7643a23b679cd2e493c053f8fdf621ff2624949f9582c4118b818c6" + }, + "response": { + "required": [], + "properties": { + "perkw": { + "type": "u32", + "description": [ + "Value of *feerate_str* in kilosipa." + ], + "additionalProperties": false } - }, - "response": { - "channel_id": "aec3dfd0c7643a23b679cd2e493c053f8fdf621ff2624949f9582c4118b818c6", - "channel_canceled": true, - "reason": "Abort requested" } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-openchannel_init(7)", - "lightning-openchannel_update(7)", - "lightning-openchannel_signed(7)", - "lightning-openchannel_bump(7)", - "lightning-fundchannel_start(7)", - "lightning-fundchannel_complete(7)", - "lightning-fundchannel(7)", - "lightning-fundpsbt(7)", - "lightning-utxopsbt(7)", - "lightning-multifundchannel(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-openchannel_bump.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "openchannel_bump", - "title": "Command to initiate a channel RBF", - "description": [ - "`openchannel_bump` is a RPC command which initiates a channel RBF (Replace-By-Fee) for the specified channel. It uses the openchannel protocol which allows for interactive transaction construction.", - "", - "Warning: bumping a leased channel will lose the lease." - ], - "request": { - "required": [ - "channel_id", - "amount", - "initialpsbt" - ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "Id of the channel to RBF." - ] + }, + "json_example": [ + { + "request": { + "id": "example:parsefeerate#1", + "method": "parsefeerate", + "params": [ + "unilateral_close" + ] + }, + "response": { + "perkw": 11000 + } }, - "amount": { - "type": "msat", - "description": [ - "Satoshi value that we will contribute to the channel. This value will be _added_ to the provided PSBT in the output which is encumbered by the 2-of-2 script for this channel." - ] + { + "request": { + "id": "example:parsefeerate#2", + "method": "parsefeerate", + "params": [ + "9999perkw" + ] + }, + "response": { + "perkw": 9999 + } }, - "initialpsbt": { - "type": "string", - "description": [ - "The funded, incomplete PSBT that specifies the UTXOs and change output for our channel contribution. It can be updated, see `openchannel_update`; *initialpsbt* must have at least one input. Must have the Non-Witness UTXO (PSBT_IN_NON_WITNESS_UTXO) set for every input. An error (code 309) will be returned if this requirement is not met." - ] + { + "request": { + "id": "example:parsefeerate#3", + "method": "parsefeerate", + "params": [ + 10000 + ] + }, + "response": { + "perkw": 2500 + } }, - "funding_feerate": { - "type": "feerate", - "description": [ - "Feerate for the funding transaction." - ], - "default": "1/64th greater than the last feerate used for this channel" + { + "request": { + "id": "example:parsefeerate#4", + "method": "parsefeerate", + "params": [ + "urgent" + ] + }, + "response": { + "perkw": 11000 + } } - } + ], + "errors": [ + "The **parsefeerate** command will error if the *feerate_str* format is not recognized.", + "", + "- -32602: If the given parameters are wrong." + ], + "trivia": [ + "In CLN we like to call the weight unit \"sipa\" in honor of Pieter Wuille, who uses the name \"sipa\" on IRC and elsewhere. Internally we call the *perkw* style as \"feerate per kilosipa\"." + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "channel_id", - "channel_type", - "psbt", - "commitments_secured", - "funding_serial" + "lightning-pay.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "pay", + "title": "Command for sending a payment to a BOLT11 invoice", + "description": [ + "The **pay** RPC command attempts to find a route to the given destination, and send the funds it asks for. .", + "", + "The response will occur when the payment fails or succeeds. Once a payment has succeeded, calls to **pay** with the same *bolt11* will succeed immediately.", + "", + "When using *lightning-cli*, you may skip optional parameters by using *null*. Alternatively, use **-k** option to provide parameters by name." ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "The channel id of the channel." - ] + "request": { + "required": [ + "bolt11" + ], + "properties": { + "bolt11": { + "type": "string", + "description": [ + "Bolt11 invoice, if **experimental-offers** is enabled, it can actually be a bolt12 invoice, such as one received from lightningd-fetchinvoice(7). If it does not contain an amount, *amount_msat* is required, otherwise if it is specified it must be *null*." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "*amount_msat* is in millisatoshi precision; it can be a whole number, or a whole number with suffix *msat* or *sat*, or a three decimal point number with suffix *sat*, or an 1 to 11 decimal point number suffixed by *btc*." + ] + }, + "label": { + "type": "string", + "description": [ + "It is used to attach a label to payments, and is returned in lightning- listpays(7) and lightning-listsendpays(7)." + ] + }, + "riskfactor": { + "type": "number", + "description": [ + "The *riskfactor* is described in detail in lightning-getroute(7)." + ], + "default": "10" + }, + "maxfeepercent": { + "type": "number", + "description": [ + "Percentage of the amount that is to be paid." + ], + "default": "0.5" + }, + "retry_for": { + "type": "u16", + "description": [ + "Until *retry_for* seconds passes, the command will keep finding routes and retrying the payment." + ], + "default": "60 seconds" + }, + "maxdelay": { + "type": "u16", + "description": [ + "A payment may be delayed for up to `maxdelay` blocks by another node; clients should be prepared for this worst case." + ] + }, + "exemptfee": { + "type": "msat", + "description": [ + "This option can be used for tiny payments which would be dominated by the fee leveraged by forwarding nodes. Setting `exemptfee` allows the `maxfeepercent` check to be skipped on fees that are smaller than `exemptfee`." + ], + "default": "5000 millisatoshi" + }, + "localinvreqid": { + "type": "hex", + "description": [ + "`localinvreqid` is used by offers to link a payment attempt to a local `invoice_request` offer created by lightningd-invoicerequest(7). This ensures that we only make a single payment for an offer, and that the offer is marked `used` once paid." + ] + }, + "exclude": { + "type": "array", + "description": [ + "*exclude* is a JSON array of short-channel-id/direction (e.g. [ '564334x877x1/0', '564195x1292x0/1' ]) or pubkey which should be excluded from consideration for routing." + ], + "default": "not to exclude any channels or nodes", + "items": { + "oneOf": [ + { + "type": "short_channel_id_dir" + }, + { + "type": "pubkey" + } + ] + } + }, + "maxfee": { + "type": "msat", + "description": [ + "*maxfee* overrides both *maxfeepercent* and *exemptfee* defaults (and if you specify *maxfee* you cannot specify either of those), and creates an absolute limit on what fee we will pay. This allows you to implement your own heuristics rather than the primitive ones used here." + ] + }, + "description": { + "type": "string", + "description": [ + "It is only required for bolt11 invoices which do not contain a description themselves, but contain a description hash: in this case *description* is required. *description* is then checked against the hash inside the invoice before it will be paid." + ] + }, + "partial_msat": { + "type": "msat", + "added": "v23.05", + "description": [ + "Explicitly state that you are only paying some part of the invoice. Presumably someone else is paying the rest (otherwise the payment will time out at the recipient). Note that this is currently not supported for self-payment (please file an issue if you need this)" + ] + } + } + }, + "response": { + "required": [ + "payment_preimage", + "payment_hash", + "created_at", + "parts", + "amount_msat", + "amount_sent_msat", + "status" + ], + "properties": { + "payment_preimage": { + "type": "secret", + "description": [ + "The proof of payment: SHA256 of this **payment_hash**." + ] + }, + "destination": { + "type": "pubkey", + "description": [ + "The final destination of the payment." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "created_at": { + "type": "number", + "description": [ + "The UNIX timestamp showing when this payment was initiated." + ] + }, + "parts": { + "type": "u32", + "description": [ + "How many attempts this took." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "Amount the recipient received." + ] + }, + "amount_sent_msat": { + "type": "msat", + "description": [ + "Total amount we sent (including fees)." + ] + }, + "warning_partial_completion": { + "type": "string", + "description": [ + "Not all parts of a multi-part payment have completed." + ] + }, + "status": { + "type": "string", + "enum": [ + "complete", + "pending", + "failed" + ], + "description": [ + "Status of payment." + ] + } }, - "channel_type": { - "type": "object", - "description": [ - "Channel_type as negotiated with peer." - ], - "added": "v24.02", - "additionalProperties": false, - "required": [ - "bits", - "names" - ], - "properties": { - "bits": { - "type": "array", - "description": [ - "Each bit set in this channel_type." - ], - "added": "v24.02", - "items": { - "type": "u32", - "description": [ - "Bit number." - ] - } - }, - "names": { - "type": "array", - "description": [ - "Feature name for each bit set in this channel_type." - ], - "added": "v24.02", - "items": { - "type": "string", - "enum": [ - "static_remotekey/even", - "anchor_outputs/even", - "anchors_zero_fee_htlc_tx/even", - "scid_alias/even", - "zeroconf/even" - ], - "description": [ - "Name of feature bit." - ] - } + "post_return_value_notes": [ + "You can monitor the progress and retries of a payment using the lightning-paystatus(7) command." + ] + }, + "randomization": [ + "To protect user privacy, the payment algorithm performs some randomization.", + "", + "1: Route Randomization", + "", + "Route randomization means the payment algorithm does not always use the lowest-fee or shortest route. This prevents some highly-connected node from learning all of the user payments by reducing their fees below the network average.", + "", + "2: Shadow Route", + "", + "Shadow route means the payment algorithm will virtually extend the route by adding delays and fees along it, making it appear to intermediate nodes that the route is longer than it actually is. This prevents intermediate nodes from reliably guessing their distance from the payee.", + "", + "Route randomization will never exceed *maxfeepercent* of the payment. Route randomization and shadow routing will not take routes that would exceed *maxdelay*." + ], + "errors": [ + "The following error codes may occur:", + "", + "- -1: Catchall nonspecific error.", + "- 201: Already paid with this *hash* using different amount or destination.", + "- 203: Permanent failure at destination. The *data* field of the error will be routing failure object (except for self-payment, which currently returns the error directly from lightning-sendpay(7)).", + "- 205: Unable to find a route.", + "- 206: Route too expensive. Either the fee or the needed total locktime for the route exceeds your *maxfeepercent* or *maxdelay* settings, respectively. The *data* field of the error will indicate the actual *fee* as well as the *feepercent* percentage that the fee has of the destination payment amount. It will also indicate the actual *delay* along the route.", + "- 207: Invoice expired. Payment took too long before expiration, or already expired at the time you initiated payment. The *data* field of the error indicates *now* (the current time) and *expiry* (the invoice expiration) as UNIX epoch time in seconds.", + "- 210: Payment timed out without a payment in progress.", + "", + "Error codes 202 and 204 will only get reported at **sendpay**; in **pay** we will keep retrying if we would have gotten those errors.", + "", + "A routing failure object has the fields below:", + "", + "*erring_index*: The index of the node along the route that reported the error. 0 for the local node, 1 for the first hop, and so on.", + "*erring_node*: The hex string of the pubkey id of the node that reported the error.", + "*erring_channel*: The short channel ID of the channel that has the error, or *0:0:0* if the destination node raised the error.", + "*failcode*: The failure code, as per BOLT #4.", + "*channel_update*: The hex string of the *channel_update* message received from the remote node. Only present if error is from the remote node and the *failcode* has the UPDATE bit set, as per BOLT #4.", + "", + "The *data* field of errors will include statistics *getroute_tries* and *sendpay_tries*. It will also contain a *failures* field with detailed data about routing errors." + ], + "json_example": [ + { + "request": { + "id": "example:pay#1", + "method": "pay", + "params": { + "bolt11": "lni1qqgxr7gha7gusyg83lsr8qcqg4axgq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqtypg3hgetnwsszycn0d36rzv3zypjx2umrwf5hqarfdahzcg8sn7jmpuyl423pvggzvmj9nrga83q474e2sjygxzmq7ln5fmvjxh4skxafx2pmx9wqx5v9qgqxyfhyvyg6pdvu4tcjvpp7kkal9rp57wj7xv4pl3ajku70rzy3pavzzqjz06c8s2vvmrpjlkcse0txx0gmc6jalqqxmeyjm75qcnfnqxwyt2sfsqnxu3vc68fug904w25y3zpskc8huazwmy34av93h2fjswe3tsp4rqpe8qlx9xssexfc0aguke3q6u0jgw2qmn008mzu04mkmqmjmhes3gcpqdqdnzl270s48vsp635rd4jm04snvgkcp65qlkgp8qztu2mdp7c5uqpj2rll3pzu56st537rct3v62gfqeamzthjuwkr0pkvsdnnffpn4sq9sz0lryaufktx0nfxlffum3yesqev5gwqqqqqqqqqqqqqqqzsqqqqqqqqqqqqr5jt9hav2gqqqqqq5szxtvwkyz5zq2000hlwvadejz366lqjt9sd2j4rf5tfd9rgmmyegt4dqd34cf6v4gqkfvppqfnwgkvdr57yzh6h92zg3qctvrm7w38djg67kzcm4yeg8vc4cq633uzqn3n74ccym4wcvq20vsx7lmk450kprpvlrh4cukk8xy9ptjcef4rnhytnkyn4vnxxtd57yeaksze2s30y26cs6u3rjd9322eg9puk24q", + "amount_msat": null, + "label": null, + "riskfactor": null, + "maxfeepercent": null, + "retry_for": null, + "maxdelay": null, + "exemptfee": null, + "localinvreqid": null, + "exclude": null, + "maxfee": null, + "description": null + } + }, + "response": { + "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "payment_hash": "29ef7dfee675b990a3ad7c125960d54aa34d16969468dec9942ead03635c274c", + "created_at": 1706153504.76628, + "parts": 1, + "amount_msat": 100, + "amount_sent_msat": 100, + "payment_preimage": "6634c1b549c6615d234832f377e06d5a5ab088c40cebdc5cfb8c1262030abcad", + "status": "complete" + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-listpays(7)", + "lightning-decodepay(7)", + "lightning-listinvoices(7)", + "lightning-delinvoice(7)", + "lightning-getroute(7)", + "lightning-invoice(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-ping.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "ping", + "title": "Command to check if a node is up.", + "description": [ + "The **ping** command checks if the node with *id* is ready to talk. It currently only works for peers we have a channel with." + ], + "request": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "The pubkey of the node to ping." + ] + }, + "len": { + "type": "u16", + "description": [ + "The length of the ping." + ], + "default": "128" + }, + "pongbytes": { + "type": "u16", + "description": [ + "The length of the reply. A value of 65532 to 65535 means `don't reply`." + ], + "default": "128" + } + } + }, + "response": { + "required": [ + "totlen" + ], + "properties": { + "totlen": { + "type": "u16", + "description": [ + "The answer length of the reply message (including header: 0 means no reply expected)." + ] + } + } + }, + "json_example": [ + { + "request": { + "id": "example:ping#1", + "method": "ping", + "params": { + "len": 128, + "pongbytes": 128 } + }, + "response": { + "totlen": 132 } }, - "psbt": { - "type": "string", - "description": [ - "The (incomplete) PSBT of the RBF transaction." - ] - }, - "commitments_secured": { - "type": "boolean", - "enum": [ - false - ], - "description": [ - "Whether the *psbt* is complete." - ] - }, - "funding_serial": { - "type": "u64", - "description": [ - "The serial_id of the funding output in the *psbt*." - ] - }, - "requires_confirmed_inputs": { - "type": "boolean", - "description": [ - "Does peer require confirmed inputs in psbt?" - ] + { + "request": { + "id": "example:ping#2", + "method": "ping", + "params": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "len": 1000, + "pongbytes": 65535 + } + }, + "response": { + "totlen": 0 + } } - }, - "post_return_value_notes": [ - "If the peer does not support `option_dual_fund`, this command will return an error.", + ], + "errors": [ + "On failure, one of the following error codes may be returned:", "", - "If the channel is not in a state that is eligible for RBF, this command will return an error." + "- -32602: Error in given parameters or we're already waiting for a ping response from peer." + ], + "author": [ + "Vincenzo Palazzo <> wrote the initial version of this man page,", + "but many others did the hard work of actually implementing this rpc command." + ], + "see_also": [ + "lightning-connect(7)" + ], + "resources": [ + "Main web site: " ] }, - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong.", - "- -1: Catchall nonspecific error.", - "- 300: The amount exceeded the maximum configured funding amount.", - "- 301: The provided PSBT cannot afford the funding amount.", - "- 305: Peer is not connected.", - "- 309: PSBT missing required fields", - "- 311: Unknown channel id.", - "- 312: Channel in an invalid state" - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-openchannel_init(7)", - "lightning-openchannel_update(7)", - "lightning-openchannel_signed(7)", - "lightning-openchannel_abort(7)", - "lightning-fundchannel_start(7)", - "lightning-fundchannel_complete(7)", - "lightning-fundchannel(7)", - "lightning-fundpsbt(7)", - "lightning-utxopsbt(7)", - "lightning-multifundchannel(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-openchannel_init.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "openchannel_init", - "title": "Command to initiate a channel to a peer", - "description": [ - "`openchannel_init` is a low level RPC command which initiates a channel open with a specified peer. It uses the openchannel protocol which allows for interactive transaction construction." - ], - "request": { - "required": [ - "id", - "amount", - "initialpsbt" + "lightning-plugin.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": true, + "rpc": "plugin", + "title": "Manage plugins with RPC", + "description": [ + "The **plugin** RPC command can be used to control dynamic plugins, i.e. plugins that declared themself 'dynamic' (in getmanifest)." ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "Node id of the remote peer." - ] - }, - "amount": { - "type": "msat", - "description": [ - "Satoshi value that we will contribute to the channel. This value will be _added_ to the provided PSBT in the output which is encumbered by the 2-of-2 script for this channel." - ] - }, - "initialpsbt": { - "type": "string", - "description": [ - "Funded, incomplete PSBT that specifies the UTXOs and change output for our channel contribution. It can be updated, see `openchannel_update`; *initialpsbt* must have at least one input. Must have the Non-Witness UTXO (PSBT_IN_NON_WITNESS_UTXO) set for every input. An error (code 309) will be returned if this requirement is not met." - ] - }, - "commitment_feerate": { - "type": "feerate", - "description": [ - "Feerate for commitment transactions for non-anchor channels: see **fundchannel**. For anchor channels, it is ignored." - ] - }, - "funding_feerate": { - "type": "feerate", - "description": [ - "Feerate for the funding transaction." - ], - "default": "'opening' feerate" - }, - "announce": { - "type": "boolean", - "description": [ - "Whether or not to announce this channel." - ] - }, - "close_to": { - "type": "string", - "description": [ - "Bitcoin address to which the channel funds should be sent on close. Only valid if both peers have negotiated `option_upfront_shutdown_script`." - ] - }, - "request_amt": { - "type": "msat", - "description": [ - "An amount of liquidity you'd like to lease from the peer. If peer supports `option_will_fund`, indicates to them to include this much liquidity into the channel. Must also pass in *compact_lease*." - ] - }, - "compact_lease": { - "type": "hex", - "description": [ - "A compact representation of the peer's expected channel lease terms. If the peer's terms don't match this set, we will fail to open the channel." + "request": { + "required": [ + "subcommand" + ], + "oneOfMany": [ + [ + "plugin", + "directory" ] - }, - "channel_type": { - "type": "array", - "description": [ - "Each bit set in this channel_type." - ], - "items": { - "type": "u32", + ], + "properties": { + "subcommand": { + "type": "string", + "enum": [ + "start", + "stop", + "rescan", + "startdir", + "list" + ], + "description": [ + "Determines what action is taken:", + " - *subcommand* **start** takes a *path* to an executable as argument and starts it as plugin. *path* may be an absolute path or a path relative to the plugins directory (default *~/.lightning/plugins*). If the plugin is already running and the executable (checksum) has changed, the plugin is killed and restarted except if its an important (or builtin) plugin. If the plugin doesn't complete the 'getmanifest' and 'init' handshakes within 60 seconds, the command will timeout and kill the plugin. Additional *options* may be passed to the plugin, but requires all parameters to be passed as keyword=value pairs using the `-k|--keyword` option which is recommended. For example the following command starts the plugin helloworld.py (present in the plugin directory) with the option greeting set to 'A crazy':", + " ```shell.", + " lightning-cli -k plugin subcommand=start plugin=helloworld.py greeting='A crazy'.", + " ```.", + " - *subcommand* **stop** takes a plugin executable *path* or *name* as argument and stops the plugin. If the plugin subscribed to 'shutdown', it may take up to 30 seconds before this command returns. If the plugin is important and dynamic, this will shutdown `lightningd`.", + " - *subcommand* **startdir** starts all executables it can find in *directory* (excl. subdirectories) as plugins. Checksum and timeout behavior as in **start** applies.", + " - *subcommand* **rescan** starts all plugins in the default plugins directory (default *~/.lightning/plugins*) that are not already running. Checksum and timeout behavior as in **start** applies.", + " - *subcommand* **list** lists all running plugins (incl. non-dynamic)." + ] + }, + "plugin": { + "type": "string", + "description": [ + "*path* or *name* of a plugin executable to start or stop." + ] + }, + "directory": { + "type": "string", "description": [ - "Bit number." + "*path* of a directory containing plugins." ] + }, + "options": { + "type": "array", + "items": { + "type": "string", + "description": [ + "*keyword=value* options passed to plugin, can be repeated." + ] + } } } - } - }, - "response": { - "required": [ - "channel_id", - "psbt", - "channel_type", - "commitments_secured", - "funding_serial" - ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "The channel id of the channel." - ] - }, - "psbt": { - "type": "string", - "description": [ - "The (incomplete) PSBT of the funding transaction." - ] + }, + "response": { + "required": [ + "command" + ], + "properties": { + "command": { + "type": "string", + "enum": [ + "start", + "stop", + "rescan", + "startdir", + "list" + ], + "description": [ + "The subcommand this is responding to." + ] + } }, - "channel_type": { - "type": "object", - "description": [ - "Channel_type as negotiated with peer." - ], - "added": "v24.02", - "additionalProperties": false, - "required": [ - "bits", - "names" - ], - "properties": { - "bits": { - "type": "array", - "description": [ - "Each bit set in this channel_type." + "allOf": [ + { + "if": { + "properties": { + "command": { + "type": "string", + "enum": [ + "start", + "startdir", + "rescan", + "list" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "command", + "plugins" ], - "added": "v24.02", - "items": { - "type": "u32", - "description": [ - "Bit number." - ] + "properties": { + "command": {}, + "plugins": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "active", + "dynamic" + ], + "properties": { + "name": { + "type": "string", + "description": [ + "Full pathname of the plugin." + ] + }, + "active": { + "type": "boolean", + "description": [ + "Status; plugin completed init and is operational, plugins are configured asynchronously." + ] + }, + "dynamic": { + "type": "boolean", + "description": [ + "Plugin can be stopped or started without restarting lightningd." + ] + } + } + } + } + } + } + }, + { + "if": { + "properties": { + "command": { + "type": "string", + "enum": [ + "stop" + ] + } } }, - "names": { - "type": "array", - "description": [ - "Feature name for each bit set in this channel_type." + "then": { + "additionalProperties": false, + "required": [ + "command", + "result" ], - "added": "v24.02", - "items": { - "type": "string", - "enum": [ - "static_remotekey/even", - "anchor_outputs/even", - "anchors_zero_fee_htlc_tx/even", - "scid_alias/even", - "zeroconf/even" - ], - "description": [ - "Name of feature bit." - ] + "properties": { + "command": {}, + "result": { + "type": "string", + "description": [ + "A message saying it successfully stopped." + ] + } } } } + ] + }, + "errors": [ + "On error, the reason why the action could not be taken upon the plugin is returned." + ], + "json_example": [ + { + "request": { + "id": "example:plugin#1", + "method": "plugin", + "params": [ + "list" + ] + }, + "response": { + "command": "list", + "plugins": [ + { + "name": "~/lightning/plugins/autoclean", + "active": true, + "dynamic": false + }, + { + "name": "~/lightning/plugins/chanbackup", + "active": true, + "dynamic": false + }, + { + "name": "~/lightning/plugins/bcli", + "active": true, + "dynamic": false + }, + { + "name": "~/lightning/plugins/commando", + "active": true, + "dynamic": false + }, + { + "name": "~/lightning/plugins/funder", + "active": true, + "dynamic": true + }, + { + "name": "~/lightning/plugins/topology", + "active": true, + "dynamic": false + }, + { + "name": "~/lightning/plugins/keysend", + "active": true, + "dynamic": false + }, + { + "name": "~/lightning/plugins/offers", + "active": true, + "dynamic": true + }, + { + "name": "~/lightning/plugins/pay", + "active": true, + "dynamic": true + }, + { + "name": "~/lightning/plugins/txprepare", + "active": true, + "dynamic": true + }, + { + "name": "~/lightning/plugins/cln-renepay", + "active": true, + "dynamic": true + }, + { + "name": "~/lightning/plugins/spenderp", + "active": true, + "dynamic": false + }, + { + "name": "~/lightning/plugins/sql", + "active": true, + "dynamic": true + }, + { + "name": "~/lightning/plugins/bookkeeper", + "active": true, + "dynamic": false + }, + { + "name": "~/lightning/target/debug/examples/cln-plugin-startup", + "active": true, + "dynamic": false + } + ] + } }, - "commitments_secured": { - "type": "boolean", - "enum": [ - false - ], - "description": [ - "Whether the *psbt* is complete." - ] - }, - "funding_serial": { - "type": "u64", - "description": [ - "The serial_id of the funding output in the *psbt*." - ] - }, - "requires_confirmed_inputs": { - "type": "boolean", - "description": [ - "Does peer require confirmed inputs in psbt?" - ] + { + "request": { + "id": "example:plugin#2", + "method": "plugin", + "params": { + "subcommand": "stop", + "plugin": "fail_htlcs.py" + } + }, + "response": { + "command": "stop", + "result": "Successfully stopped fail_htlcs.py." + } } - }, - "post_return_value_notes": [ - "If the peer does not support `option_dual_fund`, this command will return an error.", + ], + "author": [ + "Antoine Poinsot <> is mainly responsible." + ], + "see_also": [ + "lightning-cli(1)", + "lightning-listconfigs(1)", + "[writing plugins][writing plugins]" + ], + "resources": [ + "Main web site: ", "", - "If you sent a *request_amt* and the peer supports `option_will_fund` and is interested in leasing you liquidity in this channel, returns their updated channel fee max (*channel_fee_proportional_basis*, *channel_fee_base_msat*), updated rate card for the lease fee (*lease_fee_proportional_basis*, *lease_fee_base_sat*) and their on-chain weight *weight_charge*, which will be added to the lease fee at a rate of *funding_feerate* * *weight_charge* / 1000." + "[writing plugins]: PLUGINS.md" ] }, - "json_example": [ - { - "request": { - "id": "example:openchannel_init#1", - "method": "openchannel_init", - "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "amount": 999000, - "initialpsbt": "cHNidP8BADMCAAAAAYbThUhSzYr7ph6Z434bdcW7eoirYOFMmUt2GXZ79sF/AQAAAAD9////AGYAAAAAAQDeAgAAAAABARVD4QKlmwy8SNcNypf1o9TzbIFZjj4dqVzHAL0SLDoTAAAAAAD9////AjOv9ikBAAAAFgAUXJGglH7At5HOVY4ZHp0+19kv655AQg8AAAAAABYAFAH62Qq81maX4lkhZHIt5KlevuFlAkcwRAIgVIxRXqIykOOxm/6YPaFFx2Qh1618qlXPUhDiliVQ2KUCIHQcHniUTcm1XT8SyRE8ev52jm0uiIYum15XcR/tPh+NASEC3Pby7xL4+Ig/Z8TchQ0QT1upLGet3da8qjSjgHO9LOJlAAAAAQEfQEIPAAAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQA=", - "commitment_feerate": null, - "funding_feerate": null, - "announce": true, - "close_to": null, - "request_amt": null, - "channel_type": [ - 12, - 22 - ] - } - }, - "response": { - "channel_id": "53fa2b1ca0d8f21abeaaac0495ab9925cdfaf2ca8b04dbe4aeb061823e1ff2c8", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDeAgAAAAABARVD4QKlmwy8SNcNypf1o9TzbIFZjj4dqVzHAL0SLDoTAAAAAAD9////AjOv9ikBAAAAFgAUXJGglH7At5HOVY4ZHp0+19kv655AQg8AAAAAABYAFAH62Qq81maX4lkhZHIt5KlevuFlAkcwRAIgVIxRXqIykOOxm/6YPaFFx2Qh1618qlXPUhDiliVQ2KUCIHQcHniUTcm1XT8SyRE8ev52jm0uiIYum15XcR/tPh+NASEC3Pby7xL4+Ig/Z8TchQ0QT1upLGet3da8qjSjgHO9LOJlAAAAAQEfQEIPAAAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIIbThUhSzYr7ph6Z434bdcW7eoirYOFMmUt2GXZ79sF/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCMCDK/6LyRi8AAEDCFg+DwAAAAAAAQQiACDYM+8ZRsbTj0OCG/yzqLt2buFQn9LuMPDZqFFcgmCmfAz8CWxpZ2h0bmluZwEIchtFHfZ5FBgA", - "channel_type": { - "bits": [ - 12, - 22 + "lightning-preapproveinvoice.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.02", + "rpc": "preapproveinvoice", + "title": "Ask the HSM to preapprove an invoice (low-level)", + "description": [ + "The **preapproveinvoice** RPC command submits the *bolt11* invoice to the HSM to check that it is approved for payment.", + "", + "Generally the **preapproveinvoice** request does not need to be made explicitly, it is automatically generated as part of a **pay** request.", + "", + "By default, the HSM will approve all **preapproveinvoice** requests.", + "", + "If a remote signer is being used it might decline an **preapproveinvoice** request because it would exceed velocity controls, is not covered by allowlist controls, was declined manually, or other reasons.", + "", + "If a remote signer declines a **preapproveinvoice** request a subsequent attempt to pay the invoice anyway will fail; the signer will refuse to sign the commitment." + ], + "request": { + "required": [ + "bolt11" + ], + "properties": { + "bolt11": { + "type": "string", + "description": [ + "Bolt11 invoice to submit to the HSM to check." ], - "names": [ - "static_remotekey/even", - "anchors_zero_fee_htlc_tx/even" - ] - }, - "commitments_secured": false, - "funding_serial": 8222241539686471000, - "requires_confirmed_inputs": false + "added": "v23.02" + } } }, - { - "request": { - "id": "example:openchannel_init#2", - "method": "openchannel_init", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount": 16777216, - "initialpsbt": "cHNidP8BADMCAAAAAQVmgyf8sA3N9J6XaH5z7W+GUPDFOM/2L/PuD7iE0RaqAAAAAAD9////AGYAAAAAAQDeAgAAAAABAdWZZguGlQJ1eA+d7WAT500jdCzHJWT9J/TGQIkbS1KfAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFE8Xxp4GJggW2lJcsHg0VLolc/Z/AkcwRAIgEQLtA2JvAk7S1R9QD5o4SVNXCjMwTUIyHtu65taC/d4CIEnpq2PdrqKqitdmZj09U8cFuwV+Ba9kmZSUsctSWx8CASECUKP6EBufpaBXT910uYhCcKdw9z8iqHgyKa3uuX2QgmVlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQA=", - "commitment_feerate": null, - "funding_feerate": null, - "announce": true, - "close_to": null, - "request_amt": null, - "channel_type": null - } - }, - "response": { - "channel_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDeAgAAAAABAdWZZguGlQJ1eA+d7WAT500jdCzHJWT9J/TGQIkbS1KfAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFE8Xxp4GJggW2lJcsHg0VLolc/Z/AkcwRAIgEQLtA2JvAk7S1R9QD5o4SVNXCjMwTUIyHtu65taC/d4CIEnpq2PdrqKqitdmZj09U8cFuwV+Ba9kmZSUsctSWx8CASECUKP6EBufpaBXT910uYhCcKdw9z8iqHgyKa3uuX2QgmVlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIAVmgyf8sA3N9J6XaH5z7W+GUPDFOM/2L/PuD7iE0RaqAQ8EAAAAAAEQBP3///8M/AlsaWdodG5pbmcBCLR8RjOq9lmcAAEDCAAAAAEAAAAAAQQiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQz8CWxpZ2h0bmluZwEIZZtc7LD4y9YA", - "channel_type": { - "bits": [ - 12, - 22 + "response": { + "properties": {} + }, + "author": [ + "Ken Sedgwick <> is mainly responsible." + ], + "see_also": [ + "lightning-pay(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-preapprovekeysend.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.02", + "rpc": "preapprovekeysend", + "title": "Ask the HSM to preapprove a keysend payment (low-level)", + "description": [ + "The **preapprovekeysend** RPC command submits the *destination*, *payment_hash*, and *amount_msat* parameters to the HSM to check that they are approved as a keysend payment.", + "", + "Generally the **preapprovekeysend** request does not need to be made explicitly, it is automatically generated as part of a **keysend** request.", + "", + "By default, the HSM will approve all **preapprovekeysend** requests.", + "", + "If a remote signer is being used it might decline an **preapprovekeysend** request because it would exceed velocity controls, is not covered by allowlist controls, was declined manually, or other reasons.", + "", + "If a remote signer declines a **preapprovekeysend** request a subsequent attempt to pay the keysend anyway will fail; the signer will refuse to sign the commitment." + ], + "request": { + "required": [ + "destination", + "payment_hash", + "amount_msat" + ], + "properties": { + "destination": { + "type": "pubkey", + "description": [ + "It is a 33 byte, hex-encoded, node ID of the node that the payment should go to." ], - "names": [ - "static_remotekey/even", - "anchors_zero_fee_htlc_tx/even" - ] + "added": "v23.02" + }, + "payment_hash": { + "type": "hex", + "added": "v23.02", + "description": [ + "It is the unique identifier of a payment." + ], + "maxLength": 64, + "minLength": 64 }, - "commitments_secured": false, - "funding_serial": 7321547790872006000, - "requires_confirmed_inputs": false + "amount_msat": { + "type": "msat", + "description": [ + "The amount to send in millisatoshi precision; it can be a whole number, or a whole number with suffix `msat` or `sat`, or a three decimal point number with suffix `sat`, or an 1 to 11 decimal point number suffixed by `btc`." + ], + "added": "v23.02" + } } - } - ], - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong.", - "- -1: Catchall nonspecific error.", - "- 300: The amount exceeded the maximum configured funding amount.", - "- 301: The provided PSBT cannot afford the funding amount.", - "- 304: Still syncing with bitcoin network", - "- 305: Peer is not connected.", - "- 306: Unknown peer id.", - "- 309: PSBT missing required fields", - "- 310: v2 channel open protocol not supported by peer", - "- 312: Channel in an invalid state" - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-openchannel_update(7)", - "lightning-openchannel_signed(7)", - "lightning-openchannel_abort(7)", - "lightning-openchannel_bump(7)", - "lightning-fundchannel_start(7)", - "lightning-fundchannel_complete(7)", - "lightning-fundchannel(7)", - "lightning-fundpsbt(7)", - "lightning-utxopsbt(7)", - "lightning-multifundchannel(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-openchannel_signed.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "openchannel_signed", - "title": "Command to conclude a channel open", - "description": [ - "`openchannel_signed` is a low level RPC command which concludes a channel open with the specified peer. It uses the v2 openchannel protocol, which allows for interactive transaction construction.", - "", - "This command should be called after `openchannel_update` returns *commitments_secured* `true`.", - "", - "This command will broadcast the finalized funding transaction, if we receive valid signatures from the peer." - ], - "request": { - "required": [ - "channel_id", - "signed_psbt" + }, + "response": { + "properties": {} + }, + "author": [ + "Ken Sedgwick <> is mainly responsible." ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "Id of the channel." - ] - }, - "signed_psbt": { - "type": "string", - "description": [ - "The PSBT returned from `openchannel_update` (where *commitments_secured* was true) with partial signatures or finalized witness stacks included for every input that we contributed to the PSBT." - ] - } - } - }, - "response": { - "required": [ - "channel_id", - "tx", - "txid" + "see_also": [ + "lightning-keysend(7)" ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "The channel id of the channel." - ] - }, - "tx": { - "type": "hex", - "description": [ - "The funding transaction." - ] - }, - "txid": { - "type": "txid", - "description": [ - "The txid of the **tx**." - ] - } - } + "resources": [ + "Main web site: " + ] }, - "errors": [ - "On error, the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong.", - "- -1: Catchall nonspecific error.", - "- 303: Funding transaction broadcast failed.", - "- 305: Peer is not connected.", - "- 309: PSBT missing required fields.", - "- 311: Unknown channel id.", - "- 312: Channel in an invalid state" - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-openchannel_init(7)", - "lightning-openchannel_update(7)", - "lightning-openchannel_abort(7)", - "lightning-openchannel_bump(7)", - "lightning-fundchannel_start(7)", - "lightning-fundchannel_complete(7)", - "lightning-fundchannel(7)", - "lightning-fundpsbt(7)", - "lightning-utxopsbt(7)", - "lightning-multifundchannel(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-openchannel_update.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "openchannel_update", - "title": "Command to update a collab channel open", - "description": [ - "`openchannel_update` is a low level RPC command which continues an open channel, as specified by *channel_id*. An updated *psbt* is passed in; any changes from the PSBT last returned (either from `openchannel_init` or a previous call to `openchannel_update`) will be communicated to the peer.", - "", - "Must be called after `openchannel_init` and before `openchannel_signed`.", - "", - "Must be called until *commitments_secured* is returned as true, at which point `openchannel_signed` should be called with a signed version of the PSBT returned by the last call to `openchannel_update`." - ], - "request": { - "required": [ - "channel_id", - "psbt" + "lightning-recover.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "recover", + "title": "Reinitialize Your Node for Recovery", + "description": [ + "The **recover** RPC command wipes your node and restarts it with the `--recover` option. This is only permitted if the node is unused: no channels, no bitcoin addresses issued (you can use `check` to see if recovery is possible).", + "", + "*hsmsecret* is either a codex32 secret starting with \"cl1\" as returned by `hsmtool getcodexsecret`, or a raw 64 character hex string.", + "", + "NOTE: this command only currently works with the `sqlite3` database backend." ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "Id of the channel." - ] + "request": { + "required": [ + "hsmsecret" + ], + "properties": { + "hsmsecret": { + "type": "string", + "description": [ + "Either a codex32 secret starting with `cl1` as returned by `hsmtool getcodexsecret`, or a raw 64 character hex string." + ] + } + } + }, + "response": { + "required": [ + "result" + ], + "properties": { + "result": { + "type": "string", + "added": "v24.05", + "enum": [ + "Recovery restart in progress" + ] + } + } + }, + "json_example": [ + { + "request": { + "id": "example:recover#1", + "method": "recover", + "params": { + "hsmsecret": "cl10leetsd35kw6r5de5kueedxgqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqdeuq7xuh94k9g" + } + }, + "response": {} }, - "psbt": { - "type": "string", - "description": [ - "Updated PSBT to be sent to the peer. May be identical to the PSBT last returned by either `openchannel_init` or `openchannel_update`." - ] + { + "request": { + "id": "example:recover#2", + "method": "recover", + "params": { + "hsmsecret": "6c696768746e696e672d31000000000000000000000000000000000000000000" + } + }, + "response": { + "result": "Recovery restart in progress" + } } - } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-hsmtool(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "channel_id", - "psbt", - "commitments_secured", - "channel_type", - "funding_outnum" + "lightning-recoverchannel.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "recoverchannel", + "title": "Command for recovering channels bundeled in an array in the form of *Static Backup*", + "description": [ + "The **recoverchannel** RPC command tries to force the peer (with whom you already had a channel) to close the channel and sweeps on-chain fund. This method is not spontaneous and depends on the peer, so use it in case of severe data loss.", + "", + "The *scb* parameter is an array containing minimum required info to reconnect and sweep funds. You can get the scb for already stored channels by using the RPC command 'staticbackup'." ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "The channel id of the channel." - ] - }, - "channel_type": { - "type": "object", - "description": [ - "Channel_type as negotiated with peer." - ], - "added": "v24.02", - "additionalProperties": false, - "required": [ - "bits", - "names" - ], - "properties": { - "bits": { - "type": "array", - "description": [ - "Each bit set in this channel_type." - ], - "added": "v24.02", - "items": { - "type": "u32", - "description": [ - "Bit number." - ] - } - }, - "names": { - "type": "array", + "request": { + "required": [ + "scb" + ], + "properties": { + "scb": { + "type": "array", + "description": [ + "SCB of the channels in an array." + ], + "items": { + "type": "hex" + } + } + } + }, + "response": { + "required": [ + "stubs" + ], + "properties": { + "stubs": { + "type": "array", + "items": { + "type": "string", "description": [ - "Feature name for each bit set in this channel_type." - ], - "added": "v24.02", - "items": { - "type": "string", - "enum": [ - "static_remotekey/even", - "anchor_outputs/even", - "anchors_zero_fee_htlc_tx/even", - "scid_alias/even", - "zeroconf/even" - ], - "description": [ - "Name of feature bit." - ] - } + "Channel IDs of channels successfully inserted." + ] } } - }, - "psbt": { - "type": "string", - "description": [ - "The PSBT of the funding transaction." - ] - }, - "commitments_secured": { - "type": "boolean", - "description": [ - "Whether the *psbt* is complete (if true, sign *psbt* and call `openchannel_signed` to complete the channel open)." - ] - }, - "funding_outnum": { - "type": "u32", - "description": [ - "The index of the funding output in the psbt." - ] - }, - "close_to": { - "type": "hex", - "description": [ - "Scriptpubkey which we have to close to if we mutual close." - ] - }, - "requires_confirmed_inputs": { - "type": "boolean", - "description": [ - "Does peer require confirmed inputs in psbt?" - ] } }, - "allOf": [ + "json_example": [ { - "if": { - "properties": { - "commitments_secured": { - "type": "boolean", - "enum": [ - true - ] - } - } - }, - "then": { - "additionalProperties": true, - "required": [ - "channel_id", - "funding_outnum" - ], - "properties": { - "commitments_secured": {}, - "channel_id": { - "type": "hash", - "description": [ - "The derived channel id." - ] - }, - "close_to": { - "type": "hex", - "description": [ - "If a `close_to` address was provided to `openchannel_init` and the peer supports `option_upfront_shutdownscript`." - ] - }, - "funding_outnum": { - "type": "u32", - "description": [ - "The index of the funding output for this channel in the funding transaction." - ] - } - } + "request": { + "id": "example:recoverchannel#1", + "method": "recoverchannel", + "params": [ + [ + "0000000000000001c3a7b9d74a174497122bc52d74d6d69836acadc77e0429c6d8b68b48d5c9139a022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5904017f0000019f0bc3a7b9d74a174497122bc52d74d6d69836acadc77e0429c6d8b68b48d5c9139a0000000000000000000186a000021000" + ] + ] }, - "else": { - "additionalProperties": false, - "properties": { - "commitments_secured": {} - } + "response": { + "stubs": [ + "c3a7b9d74a174497122bc52d74d6d69836acadc77e0429c6d8b68b48d5c9139a" + ] } } + ], + "author": [ + "Aditya <> is mainly responsible." + ], + "see_also": [ + "lightning-getsharedsecret(7)" + ], + "resources": [ + "Main web site: " ] }, - "errors": [ - "On error, the returned object will contain `code` and `message` properties,", - "with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong.", - "- -1: Catchall nonspecific error.", - "- 305: Peer is not connected.", - "- 309: PSBT missing required fields", - "- 311: Unknown channel id.", - "- 312: Channel in an invalid state" - ], - "json_example": [ - { - "request": { - "id": "example:openchannel_update#1", - "method": "openchannel_update", - "params": { - "channel_id": "c3a282c1136f44dc2e499c116a9d9e6ea64649c3eabdd396cb96fb30a86fad8e", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDeAgAAAAABAdWZZguGlQJ1eA+d7WAT500jdCzHJWT9J/TGQIkbS1KfAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFE8Xxp4GJggW2lJcsHg0VLolc/Z/AkcwRAIgEQLtA2JvAk7S1R9QD5o4SVNXCjMwTUIyHtu65taC/d4CIEnpq2PdrqKqitdmZj09U8cFuwV+Ba9kmZSUsctSWx8CASECUKP6EBufpaBXT910uYhCcKdw9z8iqHgyKa3uuX2QgmVlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIAVmgyf8sA3N9J6XaH5z7W+GUPDFOM/2L/PuD7iE0RaqAQ8EAAAAAAEQBP3///8M/AlsaWdodG5pbmcBCH932EuFXyxeAAEDCEBCDwAAAAAAAQQiACA/FzDCfUe+WFEBa+aPSY4TZTYt6liPHz5OHo04w2gQ3wz8CWxpZ2h0bmluZwEI42voJCAYLKQA" - } - }, - "response": { - "channel_id": "c3a282c1136f44dc2e499c116a9d9e6ea64649c3eabdd396cb96fb30a86fad8e", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDeAgAAAAABAdWZZguGlQJ1eA+d7WAT500jdCzHJWT9J/TGQIkbS1KfAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFE8Xxp4GJggW2lJcsHg0VLolc/Z/AkcwRAIgEQLtA2JvAk7S1R9QD5o4SVNXCjMwTUIyHtu65taC/d4CIEnpq2PdrqKqitdmZj09U8cFuwV+Ba9kmZSUsctSWx8CASECUKP6EBufpaBXT910uYhCcKdw9z8iqHgyKa3uuX2QgmVlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIAVmgyf8sA3N9J6XaH5z7W+GUPDFOM/2L/PuD7iE0RaqAQ8EAAAAAAEQBP3///8M/AlsaWdodG5pbmcBCH932EuFXyxeAAEDCEBCDwAAAAAAAQQiACA/FzDCfUe+WFEBa+aPSY4TZTYt6liPHz5OHo04w2gQ3wz8CWxpZ2h0bmluZwEI42voJCAYLKQA", - "channel_type": { - "bits": [ - 12, - 22 + "lightning-renepay.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "renepay", + "title": "Command for sending a payment to a BOLT11 invoice", + "added": "v23.08", + "description": [ + "**renepay** is a new payment plugin based on Pickhardt-Richter optimization method for Multi-Path-Payments. This implementation has not been thoroughly tested and it should be used with caution.", + "", + "The response will occur when the payment fails or succeeds. Once a payment has succeeded, calls to **renepay** with the same *invstring* will not lead to a new payment attempt, but instead it will succeed immediately.", + "", + "When using *lightning-cli*, you may skip optional parameters by using *null*. Alternatively, use **-k** option to provide parameters by name." + ], + "request": { + "required": [ + "invstring" + ], + "properties": { + "invstring": { + "type": "string", + "description": [ + "Bolt11 invoice which the RPC command attempts to pay. Currently, **renepay** supports bolt11 invoices only." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "If the *invstring* does not contain an amount, *amount_msat* is required, otherwise if it is specified it must be *null*. in millisatoshi precision; it can be a whole number, or a whole number with suffix *msat* or *sat*, or a three decimal point number with suffix *sat*, or an 1 to 11 decimal point number suffixed by *btc*." + ] + }, + "maxfee": { + "type": "msat", + "description": [ + "*maxfee* is a hard bound, in the sense that the command will never attempt a payment when the fees exceed that value." + ] + }, + "maxdelay": { + "type": "u32", + "description": [ + "Overrides the value of `max-locktime-blocks` for this payment. It serves to limit the locktime of funds in the payment HTLC measured in blocks." + ] + }, + "retry_for": { + "type": "u32", + "description": [ + "Measured in seconds specifies how much time it is allowed for the command to keep retrying the payment." ], - "names": [ - "static_remotekey/even", - "anchors_zero_fee_htlc_tx/even" + "default": "60 seconds" + }, + "description": { + "type": "string", + "description": [ + "Only required for bolt11 invoices which do not contain a description themselves, but contain a description hash: in this case *description* is required. *description* is then checked against the hash inside the invoice before it will be paid." + ] + }, + "label": { + "type": "string", + "description": [ + "Used to attach a label to payments, and is returned in lightning-listpays(7) and lightning-listsendpays(7)." ] }, - "commitments_secured": true, - "funding_outnum": 0 + "dev_use_shadow": { + "hidden": true, + "type": "boolean" + } } }, - { - "request": { - "id": "example:openchannel_update#2", - "method": "openchannel_update", - "params": { - "channel_id": "c3a282c1136f44dc2e499c116a9d9e6ea64649c3eabdd396cb96fb30a86fad8e", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDeAgAAAAABAdWZZguGlQJ1eA+d7WAT500jdCzHJWT9J/TGQIkbS1KfAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFE8Xxp4GJggW2lJcsHg0VLolc/Z/AkcwRAIgEQLtA2JvAk7S1R9QD5o4SVNXCjMwTUIyHtu65taC/d4CIEnpq2PdrqKqitdmZj09U8cFuwV+Ba9kmZSUsctSWx8CASECUKP6EBufpaBXT910uYhCcKdw9z8iqHgyKa3uuX2QgmVlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIAVmgyf8sA3N9J6XaH5z7W+GUPDFOM/2L/PuD7iE0RaqAQ8EAAAAAAEQBP3///8M/AlsaWdodG5pbmcBCH932EuFXyxeAAEDCEBCDwAAAAAAAQQiACA/FzDCfUe+WFEBa+aPSY4TZTYt6liPHz5OHo04w2gQ3wz8CWxpZ2h0bmluZwEI42voJCAYLKQA" - } - }, - "response": { - "channel_id": "c3a282c1136f44dc2e499c116a9d9e6ea64649c3eabdd396cb96fb30a86fad8e", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDeAgAAAAABAdWZZguGlQJ1eA+d7WAT500jdCzHJWT9J/TGQIkbS1KfAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFE8Xxp4GJggW2lJcsHg0VLolc/Z/AkcwRAIgEQLtA2JvAk7S1R9QD5o4SVNXCjMwTUIyHtu65taC/d4CIEnpq2PdrqKqitdmZj09U8cFuwV+Ba9kmZSUsctSWx8CASECUKP6EBufpaBXT910uYhCcKdw9z8iqHgyKa3uuX2QgmVlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIAVmgyf8sA3N9J6XaH5z7W+GUPDFOM/2L/PuD7iE0RaqAQ8EAAAAAAEQBP3///8M/AlsaWdodG5pbmcBCH932EuFXyxeAAEDCEBCDwAAAAAAAQQiACA/FzDCfUe+WFEBa+aPSY4TZTYt6liPHz5OHo04w2gQ3wz8CWxpZ2h0bmluZwEI42voJCAYLKQA", - "channel_type": { - "bits": [ - 12, - 22 + "response": { + "required": [ + "payment_preimage", + "payment_hash", + "created_at", + "parts", + "amount_msat", + "amount_sent_msat", + "status" + ], + "properties": { + "payment_preimage": { + "type": "secret", + "description": [ + "The proof of payment: SHA256 of this **payment_hash**." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "created_at": { + "type": "number", + "description": [ + "The UNIX timestamp showing when this payment was initiated." + ] + }, + "parts": { + "type": "u32", + "description": [ + "How many attempts this took." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "Amount the recipient received." + ] + }, + "amount_sent_msat": { + "type": "msat", + "description": [ + "Total amount we sent (including fees)." + ] + }, + "status": { + "type": "string", + "enum": [ + "complete", + "pending", + "failed" ], - "names": [ - "static_remotekey/even", - "anchors_zero_fee_htlc_tx/even" + "description": [ + "Status of payment." ] }, - "commitments_secured": true, - "funding_outnum": 0, - "close_to": "5120eed745804da9784cc203f563efa99ffa54fdf01b137bc964e63c3124070ffbe6" - } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-openchannel_init(7)", - "lightning-openchannel_signed(7)", - "lightning-openchannel_bump(7)", - "lightning-openchannel_abort(7)", - "lightning-fundchannel_start(7)", - "lightning-fundchannel_complete(7)", - "lightning-fundchannel(7)", - "lightning-fundpsbt(7)", - "lightning-utxopsbt(7)", - "lightning-multifundchannel(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-parsefeerate.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "parsefeerate", - "title": "Command for parsing a feerate string to a feerate", - "description": [ - "The **parsefeerate** command returns the current feerate for any valid *feerate_str*. This is useful for finding the current feerate that a **fundpsbt** or **utxopsbt** command might use." - ], - "request": { - "required": [ - "feerate_str" - ], - "properties": { - "feerate_str": { - "type": "string", - "description": [ - "The feerate string to parse." - ] - } - } - }, - "response": { - "required": [], - "properties": { - "perkw": { - "type": "u32", - "description": [ - "Value of *feerate_str* in kilosipa." - ], - "additionalProperties": false - } - } - }, - "json_example": [ - { - "request": { - "id": "example:parsefeerate#1", - "method": "parsefeerate", - "params": [ - "unilateral_close" - ] - }, - "response": { - "perkw": 11000 - } - }, - { - "request": { - "id": "example:parsefeerate#2", - "method": "parsefeerate", - "params": [ - "9999perkw" - ] - }, - "response": { - "perkw": 9999 - } - }, - { - "request": { - "id": "example:parsefeerate#3", - "method": "parsefeerate", - "params": [ - 10000 - ] + "destination": { + "type": "pubkey", + "description": [ + "The final destination of the payment." + ] + } }, - "response": { - "perkw": 2500 - } + "post_return_value_notes": [ + "You can monitor the progress and retries of a payment using the lightning-renepaystatus(7) command." + ] }, - { - "request": { - "id": "example:parsefeerate#4", - "method": "parsefeerate", - "params": [ - "urgent" - ] - }, - "response": { - "perkw": 11000 - } - } - ], - "errors": [ - "The **parsefeerate** command will error if the *feerate_str* format is not recognized.", - "", - "- -32602: If the given parameters are wrong." - ], - "trivia": [ - "In CLN we like to call the weight unit \"sipa\" in honor of Pieter Wuille, who uses the name \"sipa\" on IRC and elsewhere. Internally we call the *perkw* style as \"feerate per kilosipa\"." - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-pay.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "pay", - "title": "Command for sending a payment to a BOLT11 invoice", - "description": [ - "The **pay** RPC command attempts to find a route to the given destination, and send the funds it asks for. .", - "", - "The response will occur when the payment fails or succeeds. Once a payment has succeeded, calls to **pay** with the same *bolt11* will succeed immediately.", - "", - "When using *lightning-cli*, you may skip optional parameters by using *null*. Alternatively, use **-k** option to provide parameters by name." - ], - "request": { - "required": [ - "bolt11" + "optimality": [ + "**renepay** is based on the work by Pickhardt-Richter's *Optimally Reliable & Cheap Payment Flows on the Lightning Network*. Which means the payment command will prefer routes that have a higher probability of success while keeping fees low.", + "", + "The algorithm records some partial knowledge of the state of the Network deduced from the responses obtained after evey payment attempt. This knowledge is kept through different payment requests, but decays with time to account for the dynamics of the Network (after 1 hour all previous knowledge will be erased). Knowledge from previous payment attempts increases the reliability for subsequent ones.", + "", + "Higher probabilities of success and lower fees cannot generally by optimized at once. Hence **renepay** combines the two in different amounts seeking solutions that satisfy *maxfee* bound and a target for 90% probability of success. *maxfee* is a hard bound, in the sense that the command will never attempt a payment when the fees exceed that value. While the probability target is not compulsory (but desirable), i.e. if the best route does not satisfy the 90% probability target it will be tried anyways.", + "", + "When *maxfee* and the 90% probability bounds are satified, the algorithm will optimize the fees to its lowest value." ], - "properties": { - "bolt11": { - "type": "string", - "description": [ - "Bolt11 invoice, if **experimental-offers** is enabled, it can actually be a bolt12 invoice, such as one received from lightningd-fetchinvoice(7). If it does not contain an amount, *amount_msat* is required, otherwise if it is specified it must be *null*." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "*amount_msat* is in millisatoshi precision; it can be a whole number, or a whole number with suffix *msat* or *sat*, or a three decimal point number with suffix *sat*, or an 1 to 11 decimal point number suffixed by *btc*." - ] - }, - "label": { - "type": "string", - "description": [ - "It is used to attach a label to payments, and is returned in lightning- listpays(7) and lightning-listsendpays(7)." - ] - }, - "riskfactor": { - "type": "number", - "description": [ - "The *riskfactor* is described in detail in lightning-getroute(7)." - ], - "default": "10" - }, - "maxfeepercent": { - "type": "number", - "description": [ - "Percentage of the amount that is to be paid." - ], - "default": "0.5" - }, - "retry_for": { - "type": "u16", - "description": [ - "Until *retry_for* seconds passes, the command will keep finding routes and retrying the payment." - ], - "default": "60 seconds" - }, - "maxdelay": { - "type": "u16", - "description": [ - "A payment may be delayed for up to `maxdelay` blocks by another node; clients should be prepared for this worst case." - ] - }, - "exemptfee": { - "type": "msat", - "description": [ - "This option can be used for tiny payments which would be dominated by the fee leveraged by forwarding nodes. Setting `exemptfee` allows the `maxfeepercent` check to be skipped on fees that are smaller than `exemptfee`." - ], - "default": "5000 millisatoshi" - }, - "localinvreqid": { - "type": "hex", - "description": [ - "`localinvreqid` is used by offers to link a payment attempt to a local `invoice_request` offer created by lightningd-invoicerequest(7). This ensures that we only make a single payment for an offer, and that the offer is marked `used` once paid." - ] - }, - "exclude": { - "type": "array", - "description": [ - "*exclude* is a JSON array of short-channel-id/direction (e.g. [ '564334x877x1/0', '564195x1292x0/1' ]) or pubkey which should be excluded from consideration for routing." - ], - "default": "not to exclude any channels or nodes", - "items": { - "oneOf": [ - { - "type": "short_channel_id_dir" - }, - { - "type": "pubkey" - } - ] + "randomization": [ + "To protect user privacy, the payment algorithm performs *shadow route* randomization. Which means the payment algorithm will virtually extend the route by adding delays and fees along it, making it appear to intermediate nodes that the route is longer than it actually is. This prevents intermediate nodes from reliably guessing their distance from the payee.", + "", + "Route randomization will never exceed *maxfee* of the payment. Route randomization and shadow routing will not take routes that would exceed *maxdelay*." + ], + "errors": [ + "The following error codes may occur:", + "", + "- -1: Catchall nonspecific error.", + "- 200: Other payment attempts are in progress.", + "- 203: Permanent failure at destination.", + "- 205: Unable to find a route.", + "- 206: Payment routes are too expensive.", + "- 207: Invoice expired. Payment took too long before expiration, or already expired at the time you initiated payment.", + "- 210: Payment timed out without a payment in progress.", + "- 212: Invoice is invalid." + ], + "json_example": [ + { + "request": { + "id": "example:renepay#1", + "method": "renepay", + "params": { + "invstring": "lnbcrt1230n1pjmxj9jsp5suc4cag0lv3wemllkvms56e6ll0w867cczqfttuu8cpfl089f9kspp56wvxtdh8fxg5r5y3kg3klxceakqaydskwzatga25v95da8nzkmwqdqjv3jhxcmjd9c8g6t0dcxqyjw5qcqp99qxpqysgqkmyhymt0j7hy38vzqxx465s4ys0fg78flnjqfx4clvdq9mrmgglpcnjrrnhtk7maa87pfvjez88hke8w97zvuecwswaf9gzyqlsthegpza67eu" + } + }, + "response": { + "payment_preimage": "0a3fd704b34f47d6e306dbac78141753be83848d3a19725c972abfc367dcc591", + "payment_hash": "d39865b6e7499141d091b2236f9b19ed81d2361670bab475546168de9e62b6dc", + "created_at": 1706248370.6267352, + "parts": 1, + "amount_msat": 123000, + "amount_sent_msat": 123000, + "status": "complete", + "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" } }, - "maxfee": { - "type": "msat", - "description": [ - "*maxfee* overrides both *maxfeepercent* and *exemptfee* defaults (and if you specify *maxfee* you cannot specify either of those), and creates an absolute limit on what fee we will pay. This allows you to implement your own heuristics rather than the primitive ones used here." - ] - }, - "description": { - "type": "string", - "description": [ - "It is only required for bolt11 invoices which do not contain a description themselves, but contain a description hash: in this case *description* is required. *description* is then checked against the hash inside the invoice before it will be paid." - ] - }, - "partial_msat": { - "type": "msat", - "added": "v23.05", - "description": [ - "Explicitly state that you are only paying some part of the invoice. Presumably someone else is paying the rest (otherwise the payment will time out at the recipient). Note that this is currently not supported for self-payment (please file an issue if you need this)" - ] + { + "request": { + "id": "example:renepay#2", + "method": "renepay", + "params": { + "invstring": "lnbcrt1pja0f9asp50kzadmeyy78eymjvhnlk5dznl3g5k5x8agh52ewjtg0jclas4ylspp5crsutd9hg05lxyhzphdcuyng6z3knrsdae83mxwawa842gz3vj3sdqjv3jhxcmjd9c8g6t0dcxqyjw5qcqp99qxpqysgqr5yzhxmup4muyaz6x8u2dy4qyu9t5qzuf5k9xayvj5kg7tve60gjk4jrv2l76exnj2xkuzhtwky23pkkxedzy6p9yrsgyqdwj7dv5gsp4zcw6v", + "amount_msat": 548925 + } + }, + "response": { + "payment_preimage": "a635e92d024beebfc58519e6544888aa560ba3bcaba7e74924e4b8432eaa56f5", + "payment_hash": "c0e1c5b4b743e9f312e20ddb8e1268d0a3698e0dee4f1d99dd774f55205164a3", + "created_at": 1708631229.7841823, + "parts": 1, + "amount_msat": 548925, + "amount_sent_msat": 548925, + "status": "complete", + "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + } } - } + ], + "author": [ + "Eduardo Quintana-Miranda <> is mainly responsible." + ], + "see_also": [ + "lightning-renepaystatus(7)", + "lightning-listpays(7)", + "lightning-invoice(7)" + ], + "resources": [ + "Main web site: ", + "", + "Pickhardt R. and Richter S., *Optimally Reliable & Cheap Payment Flows on the Lightning Network* " + ] }, - "response": { - "required": [ - "payment_preimage", - "payment_hash", - "created_at", - "parts", - "amount_msat", - "amount_sent_msat", - "status" + "lightning-renepaystatus.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "renepaystatus", + "title": "Command for quering the status of previous renepay attempts", + "added": "v23.08", + "description": [ + "The **renepaystatus** RPC command queries the payment plugin **renepay** for the status of previous payment attempts.", + "", + "This command always succeeds." ], - "properties": { - "payment_preimage": { - "type": "secret", - "description": [ - "The proof of payment: SHA256 of this **payment_hash**." - ] - }, - "destination": { - "type": "pubkey", - "description": [ - "The final destination of the payment." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "created_at": { - "type": "number", - "description": [ - "The UNIX timestamp showing when this payment was initiated." - ] - }, - "parts": { - "type": "u32", - "description": [ - "How many attempts this took." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Amount the recipient received." - ] - }, - "amount_sent_msat": { - "type": "msat", - "description": [ - "Total amount we sent (including fees)." - ] - }, - "warning_partial_completion": { - "type": "string", - "description": [ - "Not all parts of a multi-part payment have completed." - ] - }, - "status": { - "type": "string", - "enum": [ - "complete", - "pending", - "failed" - ], - "description": [ - "Status of payment." - ] + "request": { + "required": [], + "properties": { + "invstring": { + "type": "string", + "description": [ + "If specified, the command will return a list of payment attempts whose invoice matches *invstring*, otherwise all payments with be listed." + ] + } } }, - "post_return_value_notes": [ - "You can monitor the progress and retries of a payment using the lightning-paystatus(7) command." - ] - }, - "randomization": [ - "To protect user privacy, the payment algorithm performs some randomization.", - "", - "1: Route Randomization", - "", - "Route randomization means the payment algorithm does not always use the lowest-fee or shortest route. This prevents some highly-connected node from learning all of the user payments by reducing their fees below the network average.", - "", - "2: Shadow Route", - "", - "Shadow route means the payment algorithm will virtually extend the route by adding delays and fees along it, making it appear to intermediate nodes that the route is longer than it actually is. This prevents intermediate nodes from reliably guessing their distance from the payee.", - "", - "Route randomization will never exceed *maxfeepercent* of the payment. Route randomization and shadow routing will not take routes that would exceed *maxdelay*." - ], - "errors": [ - "The following error codes may occur:", - "", - "- -1: Catchall nonspecific error.", - "- 201: Already paid with this *hash* using different amount or destination.", - "- 203: Permanent failure at destination. The *data* field of the error will be routing failure object (except for self-payment, which currently returns the error directly from lightning-sendpay(7)).", - "- 205: Unable to find a route.", - "- 206: Route too expensive. Either the fee or the needed total locktime for the route exceeds your *maxfeepercent* or *maxdelay* settings, respectively. The *data* field of the error will indicate the actual *fee* as well as the *feepercent* percentage that the fee has of the destination payment amount. It will also indicate the actual *delay* along the route.", - "- 207: Invoice expired. Payment took too long before expiration, or already expired at the time you initiated payment. The *data* field of the error indicates *now* (the current time) and *expiry* (the invoice expiration) as UNIX epoch time in seconds.", - "- 210: Payment timed out without a payment in progress.", - "", - "Error codes 202 and 204 will only get reported at **sendpay**; in **pay** we will keep retrying if we would have gotten those errors.", - "", - "A routing failure object has the fields below:", - "", - "*erring_index*: The index of the node along the route that reported the error. 0 for the local node, 1 for the first hop, and so on.", - "*erring_node*: The hex string of the pubkey id of the node that reported the error.", - "*erring_channel*: The short channel ID of the channel that has the error, or *0:0:0* if the destination node raised the error.", - "*failcode*: The failure code, as per BOLT #4.", - "*channel_update*: The hex string of the *channel_update* message received from the remote node. Only present if error is from the remote node and the *failcode* has the UPDATE bit set, as per BOLT #4.", - "", - "The *data* field of errors will include statistics *getroute_tries* and *sendpay_tries*. It will also contain a *failures* field with detailed data about routing errors." - ], - "json_example": [ - { - "request": { - "id": "example:pay#1", - "method": "pay", - "params": { - "bolt11": "lni1qqgxr7gha7gusyg83lsr8qcqg4axgq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqtypg3hgetnwsszycn0d36rzv3zypjx2umrwf5hqarfdahzcg8sn7jmpuyl423pvggzvmj9nrga83q474e2sjygxzmq7ln5fmvjxh4skxafx2pmx9wqx5v9qgqxyfhyvyg6pdvu4tcjvpp7kkal9rp57wj7xv4pl3ajku70rzy3pavzzqjz06c8s2vvmrpjlkcse0txx0gmc6jalqqxmeyjm75qcnfnqxwyt2sfsqnxu3vc68fug904w25y3zpskc8huazwmy34av93h2fjswe3tsp4rqpe8qlx9xssexfc0aguke3q6u0jgw2qmn008mzu04mkmqmjmhes3gcpqdqdnzl270s48vsp635rd4jm04snvgkcp65qlkgp8qztu2mdp7c5uqpj2rll3pzu56st537rct3v62gfqeamzthjuwkr0pkvsdnnffpn4sq9sz0lryaufktx0nfxlffum3yesqev5gwqqqqqqqqqqqqqqqzsqqqqqqqqqqqqr5jt9hav2gqqqqqq5szxtvwkyz5zq2000hlwvadejz366lqjt9sd2j4rf5tfd9rgmmyegt4dqd34cf6v4gqkfvppqfnwgkvdr57yzh6h92zg3qctvrm7w38djg67kzcm4yeg8vc4cq633uzqn3n74ccym4wcvq20vsx7lmk450kprpvlrh4cukk8xy9ptjcef4rnhytnkyn4vnxxtd57yeaksze2s30y26cs6u3rjd9322eg9puk24q", - "amount_msat": null, - "label": null, - "riskfactor": null, - "maxfeepercent": null, - "retry_for": null, - "maxdelay": null, - "exemptfee": null, - "localinvreqid": null, - "exclude": null, - "maxfee": null, - "description": null + "response": { + "required": [ + "paystatus" + ], + "properties": { + "paystatus": { + "type": "array", + "description": [ + "A list of payments attempted by renepay." + ], + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "bolt11", + "payment_hash", + "created_at", + "groupid", + "amount_msat", + "status", + "notes" + ], + "properties": { + "bolt11": { + "type": "string", + "description": [ + "Invoice string BOLT11." + ] + }, + "payment_preimage": { + "type": "secret", + "description": [ + "The proof of payment: SHA256 of this **payment_hash** (for completed payments only)." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "created_at": { + "type": "number", + "description": [ + "The UNIX timestamp showing when this payment was initiated." + ] + }, + "groupid": { + "type": "u32", + "description": [ + "The id for this payment attempt." + ] + }, + "parts": { + "type": "u32", + "description": [ + "How many attempts this took." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "Amount the recipient received." + ] + }, + "amount_sent_msat": { + "type": "msat", + "description": [ + "Total amount we sent including fees (for completed payments only)." + ] + }, + "status": { + "type": "string", + "enum": [ + "complete", + "pending", + "failed" + ], + "description": [ + "Status of payment." + ] + }, + "destination": { + "type": "pubkey", + "description": [ + "The final destination of the payment." + ] + }, + "notes": { + "type": "array", + "description": [ + "A list of messages for debugging purposes." + ], + "items": { + "type": "string", + "description": [ + "A message generated by renepay." + ] + } + } + } + } } - }, - "response": { - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "payment_hash": "29ef7dfee675b990a3ad7c125960d54aa34d16969468dec9942ead03635c274c", - "created_at": 1706153504.76628, - "parts": 1, - "amount_msat": 100, - "amount_sent_msat": 100, - "payment_preimage": "6634c1b549c6615d234832f377e06d5a5ab088c40cebdc5cfb8c1262030abcad", - "status": "complete" } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-listpays(7)", - "lightning-decodepay(7)", - "lightning-listinvoices(7)", - "lightning-delinvoice(7)", - "lightning-getroute(7)", - "lightning-invoice(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-ping.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "ping", - "title": "Command to check if a node is up.", - "description": [ - "The **ping** command checks if the node with *id* is ready to talk. It currently only works for peers we have a channel with." - ], - "request": { - "required": [ - "id" + }, + "author": [ + "Eduardo Quintana-Miranda <> is mainly responsible." ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "The pubkey of the node to ping." - ] - }, - "len": { - "type": "u16", - "description": [ - "The length of the ping." - ], - "default": "128" - }, - "pongbytes": { - "type": "u16", - "description": [ - "The length of the reply. A value of 65532 to 65535 means `don't reply`." - ], - "default": "128" - } - } - }, - "response": { - "required": [ - "totlen" + "see_also": [ + "lightning-renepay(7)", + "lightning-listpays(7)" ], - "properties": { - "totlen": { - "type": "u16", - "description": [ - "The answer length of the reply message (including header: 0 means no reply expected)." - ] - } - } + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:ping#1", - "method": "ping", - "params": { - "len": 128, - "pongbytes": 128 - } - }, - "response": { - "totlen": 132 - } - }, - { - "request": { - "id": "example:ping#2", - "method": "ping", - "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "len": 1000, - "pongbytes": 65535 - } - }, - "response": { - "totlen": 0 - } - } - ], - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32602: Error in given parameters or we're already waiting for a ping response from peer." - ], - "author": [ - "Vincenzo Palazzo <> wrote the initial version of this man page,", - "but many others did the hard work of actually implementing this rpc command." - ], - "see_also": [ - "lightning-connect(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-plugin.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": true, - "rpc": "plugin", - "title": "Manage plugins with RPC", - "description": [ - "The **plugin** RPC command can be used to control dynamic plugins, i.e. plugins that declared themself 'dynamic' (in getmanifest)." - ], - "request": { - "required": [ - "subcommand" - ], - "oneOfMany": [ - [ - "plugin", - "directory" - ] + "lightning-reserveinputs.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "reserveinputs", + "title": "Construct a transaction and reserve the UTXOs it spends", + "description": [ + "The **reserveinputs** RPC command places (or increases) reservations on any inputs specified in *psbt* which are known to lightningd. It will fail with an error if any of the inputs are known to be spent, and ignore inputs which are unknown.", + "", + "Normally the command will fail (with no reservations made) if an input is already reserved." ], - "properties": { - "subcommand": { - "type": "string", - "enum": [ - "start", - "stop", - "rescan", - "startdir", - "list" - ], - "description": [ - "Determines what action is taken:", - " - *subcommand* **start** takes a *path* to an executable as argument and starts it as plugin. *path* may be an absolute path or a path relative to the plugins directory (default *~/.lightning/plugins*). If the plugin is already running and the executable (checksum) has changed, the plugin is killed and restarted except if its an important (or builtin) plugin. If the plugin doesn't complete the 'getmanifest' and 'init' handshakes within 60 seconds, the command will timeout and kill the plugin. Additional *options* may be passed to the plugin, but requires all parameters to be passed as keyword=value pairs using the `-k|--keyword` option which is recommended. For example the following command starts the plugin helloworld.py (present in the plugin directory) with the option greeting set to 'A crazy':", - " ```shell.", - " lightning-cli -k plugin subcommand=start plugin=helloworld.py greeting='A crazy'.", - " ```.", - " - *subcommand* **stop** takes a plugin executable *path* or *name* as argument and stops the plugin. If the plugin subscribed to 'shutdown', it may take up to 30 seconds before this command returns. If the plugin is important and dynamic, this will shutdown `lightningd`.", - " - *subcommand* **startdir** starts all executables it can find in *directory* (excl. subdirectories) as plugins. Checksum and timeout behavior as in **start** applies.", - " - *subcommand* **rescan** starts all plugins in the default plugins directory (default *~/.lightning/plugins*) that are not already running. Checksum and timeout behavior as in **start** applies.", - " - *subcommand* **list** lists all running plugins (incl. non-dynamic)." - ] - }, - "plugin": { - "type": "string", - "description": [ - "*path* or *name* of a plugin executable to start or stop." - ] - }, - "directory": { - "type": "string", - "description": [ - "*path* of a directory containing plugins." - ] - }, - "options": { - "type": "array", - "items": { + "request": { + "required": [ + "psbt" + ], + "properties": { + "psbt": { "type": "string", "description": [ - "*keyword=value* options passed to plugin, can be repeated." + "The PSBT to reserve inputs from." + ] + }, + "exclusive": { + "type": "boolean", + "description": [ + "If set to *False*, existing reservations are simply extended, rather than causing failure." + ] + }, + "reserve": { + "type": "u32", + "description": [ + "The number of blocks to reserve. By default, reservations are for the next 72 blocks (approximately 6 hours)." ] } } - } - }, - "response": { - "required": [ - "command" - ], - "properties": { - "command": { - "type": "string", - "enum": [ - "start", - "stop", - "rescan", - "startdir", - "list" - ], - "description": [ - "The subcommand this is responding to." - ] - } }, - "allOf": [ - { - "if": { - "properties": { - "command": { - "type": "string", - "enum": [ - "start", - "startdir", - "rescan", - "list" - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "command", - "plugins" - ], - "properties": { - "command": {}, - "plugins": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "name", - "active", - "dynamic" + "response": { + "required": [ + "reservations" + ], + "properties": { + "reservations": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "txid", + "vout", + "was_reserved", + "reserved", + "reserved_to_block" + ], + "properties": { + "txid": { + "type": "txid", + "description": [ + "The input transaction id." + ] + }, + "vout": { + "type": "u32", + "description": [ + "The input index output number which was reserved." + ] + }, + "was_reserved": { + "type": "boolean", + "description": [ + "Whether the input was already reserved." + ] + }, + "reserved": { + "type": "boolean", + "enum": [ + true ], - "properties": { - "name": { - "type": "string", - "description": [ - "Full pathname of the plugin." - ] - }, - "active": { - "type": "boolean", - "description": [ - "Status; plugin completed init and is operational, plugins are configured asynchronously." - ] - }, - "dynamic": { - "type": "boolean", - "description": [ - "Plugin can be stopped or started without restarting lightningd." - ] - } - } + "description": [ + "Whether the input is now reserved." + ] + }, + "reserved_to_block": { + "type": "u32", + "description": [ + "What blockheight the reservation will expire." + ] } } } } - }, + } + }, + "errors": [ + "On failure, an error is reported and no UTXOs are reserved.", + "", + "- -32602: Invalid parameter, such as specifying a spent/reserved input in *psbt*." + ], + "json_example": [ { - "if": { - "properties": { - "command": { - "type": "string", - "enum": [ - "stop" - ] - } + "request": { + "id": "example:reserveinputs#1", + "method": "reserveinputs", + "params": { + "psbt": "cHNidP8BAFwCAAAAAkwJVUqB0xXTO7JZ3PnPdGnxoYfQxhU+xqXGFYXsyX0RAAAAAAD9////TAlVSoHTFdM7slnc+c90afGhh9DGFT7GpcYVhezJfREBAAAAAP3///8AAAAAAAAAAA==", + "exclusive": true, + "reserve": null } }, - "then": { - "additionalProperties": false, - "required": [ - "command", - "result" - ], - "properties": { - "command": {}, - "result": { - "type": "string", - "description": [ - "A message saying it successfully stopped." - ] + "response": { + "reservations": [ + { + "txid": "117dc9ec8515c6a5c63e15c6d087a1f16974cff9dc59b23bd315d3814a55094c", + "vout": 1, + "was_reserved": false, + "reserved": true, + "reserved_to_block": 175 } - } + ] } - } - ] - }, - "errors": [ - "On error, the reason why the action could not be taken upon the plugin is returned." - ], - "json_example": [ - { - "request": { - "id": "example:plugin#1", - "method": "plugin", - "params": [ - "list" - ] }, - "response": { - "command": "list", - "plugins": [ - { - "name": "~/lightning/plugins/autoclean", - "active": true, - "dynamic": false - }, - { - "name": "~/lightning/plugins/chanbackup", - "active": true, - "dynamic": false - }, - { - "name": "~/lightning/plugins/bcli", - "active": true, - "dynamic": false - }, - { - "name": "~/lightning/plugins/commando", - "active": true, - "dynamic": false - }, - { - "name": "~/lightning/plugins/funder", - "active": true, - "dynamic": true - }, - { - "name": "~/lightning/plugins/topology", - "active": true, - "dynamic": false - }, - { - "name": "~/lightning/plugins/keysend", - "active": true, - "dynamic": false - }, - { - "name": "~/lightning/plugins/offers", - "active": true, - "dynamic": true - }, - { - "name": "~/lightning/plugins/pay", - "active": true, - "dynamic": true - }, - { - "name": "~/lightning/plugins/txprepare", - "active": true, - "dynamic": true - }, - { - "name": "~/lightning/plugins/cln-renepay", - "active": true, - "dynamic": true - }, - { - "name": "~/lightning/plugins/spenderp", - "active": true, - "dynamic": false - }, - { - "name": "~/lightning/plugins/sql", - "active": true, - "dynamic": true - }, - { - "name": "~/lightning/plugins/bookkeeper", - "active": true, - "dynamic": false - }, - { - "name": "~/lightning/target/debug/examples/cln-plugin-startup", - "active": true, - "dynamic": false + { + "request": { + "id": "example:reserveinputs#2", + "method": "reserveinputs", + "params": { + "psbt": "cHNidP8BAP32AQIAAAAMgnW099dbh1uD153ih5eU5WhluynLxekXjAOjkEdNBg8BAAAAAP3///9FWKQt8C+1y4741+beFSqWAaj9DuvzHNpxvpxS+GB8lwEAAAAA/f///6E5TAGqktI29Oso6b9kZZoAFFGGvpJQUM8VO+3LMTlmAAAAAAD9////nSDT7hrkuoQtAV1yNnbpkJsB5ifKoM2zP+CcLPfis1gBAAAAAP3///+P1rW90UXfD0gIk58h3sXxxy3ZfJJLP0H1I4Jpzy/87QEAAAAA/f///w0UKZ/s9DnPpV+FJ8h2BEI7tl+qVxSGRFRv9FYw4girAQAAAAD9////EPNsUFrEOZyfjbqbh8rfHQ4C9RQECw12n3c1yhFqkzoAAAAAAP3///8QW9LEsSmuvSnvVzy+FDktM7ewQmZnIJI/TJMahLmSzwEAAAAA/f///+4edbWRHDdRJcMeHHElgSmb+nENPsz/g/0AmAEU6hXeAAAAAAD9////T15YLGmk7HBsrL+awdcxi3db3esp8AcCTS9XGrEnfoAAAAAAAP3///8q7xInvEk7J0Ir9cpKXqU2lArUskkYLrimIE0+Yb6a2QEAAAAA/f///8hBLKyMa2zRJqwNOk7DmsDIfG7IvJtQiJ+QnkkHl6atAAAAAAD9////AAAAAAAAAAAAAAAAAAAAAAAA", + "exclusive": false, + "reserve": null } - ] - } - }, - { - "request": { - "id": "example:plugin#2", - "method": "plugin", - "params": { - "subcommand": "stop", - "plugin": "fail_htlcs.py" - } - }, - "response": { - "command": "stop", - "result": "Successfully stopped fail_htlcs.py." - } - } - ], - "author": [ - "Antoine Poinsot <> is mainly responsible." - ], - "see_also": [ - "lightning-cli(1)", - "lightning-listconfigs(1)", - "[writing plugins][writing plugins]" - ], - "resources": [ - "Main web site: ", - "", - "[writing plugins]: PLUGINS.md" - ] - }, - "lightning-preapproveinvoice.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.02", - "rpc": "preapproveinvoice", - "title": "Ask the HSM to preapprove an invoice (low-level)", - "description": [ - "The **preapproveinvoice** RPC command submits the *bolt11* invoice to the HSM to check that it is approved for payment.", - "", - "Generally the **preapproveinvoice** request does not need to be made explicitly, it is automatically generated as part of a **pay** request.", - "", - "By default, the HSM will approve all **preapproveinvoice** requests.", - "", - "If a remote signer is being used it might decline an **preapproveinvoice** request because it would exceed velocity controls, is not covered by allowlist controls, was declined manually, or other reasons.", - "", - "If a remote signer declines a **preapproveinvoice** request a subsequent attempt to pay the invoice anyway will fail; the signer will refuse to sign the commitment." - ], - "request": { - "required": [ - "bolt11" - ], - "properties": { - "bolt11": { - "type": "string", - "description": [ - "Bolt11 invoice to submit to the HSM to check." - ], - "added": "v23.02" - } - } - }, - "response": { - "properties": {} - }, - "author": [ - "Ken Sedgwick <> is mainly responsible." - ], - "see_also": [ - "lightning-pay(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-preapprovekeysend.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.02", - "rpc": "preapprovekeysend", - "title": "Ask the HSM to preapprove a keysend payment (low-level)", - "description": [ - "The **preapprovekeysend** RPC command submits the *destination*, *payment_hash*, and *amount_msat* parameters to the HSM to check that they are approved as a keysend payment.", - "", - "Generally the **preapprovekeysend** request does not need to be made explicitly, it is automatically generated as part of a **keysend** request.", - "", - "By default, the HSM will approve all **preapprovekeysend** requests.", - "", - "If a remote signer is being used it might decline an **preapprovekeysend** request because it would exceed velocity controls, is not covered by allowlist controls, was declined manually, or other reasons.", - "", - "If a remote signer declines a **preapprovekeysend** request a subsequent attempt to pay the keysend anyway will fail; the signer will refuse to sign the commitment." - ], - "request": { - "required": [ - "destination", - "payment_hash", - "amount_msat" - ], - "properties": { - "destination": { - "type": "pubkey", - "description": [ - "It is a 33 byte, hex-encoded, node ID of the node that the payment should go to." - ], - "added": "v23.02" - }, - "payment_hash": { - "type": "hex", - "added": "v23.02", - "description": [ - "It is the unique identifier of a payment." - ], - "maxLength": 64, - "minLength": 64 - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount to send in millisatoshi precision; it can be a whole number, or a whole number with suffix `msat` or `sat`, or a three decimal point number with suffix `sat`, or an 1 to 11 decimal point number suffixed by `btc`." - ], - "added": "v23.02" - } - } - }, - "response": { - "properties": {} - }, - "author": [ - "Ken Sedgwick <> is mainly responsible." - ], - "see_also": [ - "lightning-keysend(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-recover.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "recover", - "title": "Reinitialize Your Node for Recovery", - "description": [ - "The **recover** RPC command wipes your node and restarts it with the `--recover` option. This is only permitted if the node is unused: no channels, no bitcoin addresses issued (you can use `check` to see if recovery is possible).", - "", - "*hsmsecret* is either a codex32 secret starting with \"cl1\" as returned by `hsmtool getcodexsecret`, or a raw 64 character hex string.", - "", - "NOTE: this command only currently works with the `sqlite3` database backend." - ], - "request": { - "required": [ - "hsmsecret" - ], - "properties": { - "hsmsecret": { - "type": "string", - "description": [ - "Either a codex32 secret starting with `cl1` as returned by `hsmtool getcodexsecret`, or a raw 64 character hex string." - ] - } - } - }, - "response": { - "required": [ - "result" - ], - "properties": { - "result": { - "type": "string", - "added": "v24.05", - "enum": [ - "Recovery restart in progress" - ] - } - } - }, - "json_example": [ - { - "request": { - "id": "example:recover#1", - "method": "recover", - "params": { - "hsmsecret": "cl10leetsd35kw6r5de5kueedxgqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqdeuq7xuh94k9g" - } - }, - "response": {} - }, - { - "request": { - "id": "example:recover#2", - "method": "recover", - "params": { - "hsmsecret": "6c696768746e696e672d31000000000000000000000000000000000000000000" + }, + "response": { + "reservations": [ + { + "txid": "0f064d4790a3038c17e9c5cb29bb6568e5949787e29dd7835b875bd7f7b47582", + "vout": 1, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + }, + { + "txid": "977c60f8529cbe71da1cf3eb0efda801962a15dee6d7f88ecbb52ff02da45845", + "vout": 1, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + }, + { + "txid": "663931cbed3b15cf505092be865114009a6564bfe928ebf436d292aa014c39a1", + "vout": 0, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + }, + { + "txid": "58b3e2f72c9ce03fb3cda0ca27e6019b90e97636725d012d84bae41aeed3209d", + "vout": 1, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + }, + { + "txid": "edfc2fcf698223f5413f4b927cd92dc7f1c5de219f9308480fdf45d1bdb5d68f", + "vout": 1, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + }, + { + "txid": "ab08e23056f46f5444861457aa5fb63b420476c827855fa5cf39f4ec9f29140d", + "vout": 1, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + }, + { + "txid": "3a936a11ca35779f760d0b0414f5020e1ddfca879bba8d9f9c39c45a506cf310", + "vout": 0, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + }, + { + "txid": "cf92b9841a934c3f9220676642b0b7332d3914be3c57ef29bdae29b1c4d25b10", + "vout": 1, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + }, + { + "txid": "de15ea14019800fd83ffcc3e0d71fa9b298125711c1ec32551371c91b5751eee", + "vout": 0, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + }, + { + "txid": "807e27b11a572f4d0207f029ebdd5b778b31d7c19abfac6c70eca4692c585e4f", + "vout": 0, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + }, + { + "txid": "d99abe613e4d20a6b82e1849b2d40a9436a55e4acaf52b42273b49bc2712ef2a", + "vout": 1, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + }, + { + "txid": "ada69707499e909f88509bbcc86e7cc8c09ac34e3a0dac26d16c6b8cac2c41c8", + "vout": 0, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + } + ] } - }, - "response": { - "result": "Recovery restart in progress" } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-hsmtool(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-recoverchannel.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "recoverchannel", - "title": "Command for recovering channels bundeled in an array in the form of *Static Backup*", - "description": [ - "The **recoverchannel** RPC command tries to force the peer (with whom you already had a channel) to close the channel and sweeps on-chain fund. This method is not spontaneous and depends on the peer, so use it in case of severe data loss.", - "", - "The *scb* parameter is an array containing minimum required info to reconnect and sweep funds. You can get the scb for already stored channels by using the RPC command 'staticbackup'." - ], - "request": { - "required": [ - "scb" ], - "properties": { - "scb": { - "type": "array", - "description": [ - "SCB of the channels in an array." - ], - "items": { - "type": "hex" - } - } - } + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-unreserveinputs(7)", + "lightning-signpsbt(7)", + "lightning-sendpsbt(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "stubs" + "lightning-sendcustommsg.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v0.10.1", + "rpc": "sendcustommsg", + "title": "Low-level interface to send protocol messages to peers", + "description": [ + "The `sendcustommsg` RPC method allows the user to inject a custom message into the communication with the peer with the given `node_id`. This is intended as a low-level interface to implement custom protocol extensions on top, not for direct use by end-users.", + "", + "On the receiving end a plugin may implement the `custommsg` plugin hook and get notified about incoming messages, and allow additional unknown even types in their getmanifest response." ], - "properties": { - "stubs": { - "type": "array", - "items": { - "type": "string", + "request": { + "required": [ + "node_id", + "msg" + ], + "properties": { + "node_id": { + "type": "pubkey", "description": [ - "Channel IDs of channels successfully inserted." + "The node specified by `node_id` must be a peer, i.e., it must have a direct connection with the node receiving the RPC call, and the connection must be established. For a method to send arbitrary messages over multiple hops, including hops that do not understand the custom message, see the `createonion` and `sendonion` RPC methods. Messages can only be injected if the connection is handled by `openingd` or `channeld`. Messages cannot be injected when the peer is handled by `onchaind` or `closingd` since these do not have a connection, or are synchronous daemons that do not handle spontaneous messages." + ] + }, + "msg": { + "type": "hex", + "description": [ + "Must be a hex encoded well-formed message, including the 2-byte type prefix, but excluding the length prefix which will be added by the RPC method. The message types may not be one of the internally handled types, since that may cause issues with the internal state tracking of Core Lightning. We do (as of *v23.11*) allow sending of even types, but note that peers (as per the spec) will disconnect on receiving unknown even types." ] } } - } - }, - "json_example": [ - { - "request": { - "id": "example:recoverchannel#1", - "method": "recoverchannel", - "params": [ - [ - "0000000000000001c3a7b9d74a174497122bc52d74d6d69836acadc77e0429c6d8b68b48d5c9139a022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5904017f0000019f0bc3a7b9d74a174497122bc52d74d6d69836acadc77e0429c6d8b68b48d5c9139a0000000000000000000186a000021000" + }, + "response": { + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "description": [ + "Information about where message was queued." ] - ] + } }, - "response": { - "stubs": [ - "c3a7b9d74a174497122bc52d74d6d69836acadc77e0429c6d8b68b48d5c9139a" - ] + "pre_return_value_notes": [ + "The method will validate the arguments and queue the message for delivery through the daemon that is currently handling the connection. Queuing provides best effort guarantees and the message may not be delivered if the connection is terminated while the message is queued. The RPC method will return as soon as the message is queued.", + "", + "If any of the above limitations is not respected the method returns an explicit error message stating the issue." + ] + }, + "json_example": [ + { + "request": { + "id": "example:sendcustommsg#5", + "method": "sendcustommsg", + "params": { + "node_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "msg": "77770012" + } + }, + "response": { + "status": "Message sent to connectd for delivery" + } } - } - ], - "author": [ - "Aditya <> is mainly responsible." - ], - "see_also": [ - "lightning-getsharedsecret(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-renepay.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "renepay", - "title": "Command for sending a payment to a BOLT11 invoice", - "added": "v23.08", - "description": [ - "**renepay** is a new payment plugin based on Pickhardt-Richter optimization method for Multi-Path-Payments. This implementation has not been thoroughly tested and it should be used with caution.", - "", - "The response will occur when the payment fails or succeeds. Once a payment has succeeded, calls to **renepay** with the same *invstring* will not lead to a new payment attempt, but instead it will succeed immediately.", - "", - "When using *lightning-cli*, you may skip optional parameters by using *null*. Alternatively, use **-k** option to provide parameters by name." - ], - "request": { - "required": [ - "invstring" ], - "properties": { - "invstring": { - "type": "string", - "description": [ - "Bolt11 invoice which the RPC command attempts to pay. Currently, **renepay** supports bolt11 invoices only." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "If the *invstring* does not contain an amount, *amount_msat* is required, otherwise if it is specified it must be *null*. in millisatoshi precision; it can be a whole number, or a whole number with suffix *msat* or *sat*, or a three decimal point number with suffix *sat*, or an 1 to 11 decimal point number suffixed by *btc*." - ] - }, - "maxfee": { - "type": "msat", - "description": [ - "*maxfee* is a hard bound, in the sense that the command will never attempt a payment when the fees exceed that value." - ] - }, - "maxdelay": { - "type": "u32", - "description": [ - "Overrides the value of `max-locktime-blocks` for this payment. It serves to limit the locktime of funds in the payment HTLC measured in blocks." - ] - }, - "retry_for": { - "type": "u32", - "description": [ - "Measured in seconds specifies how much time it is allowed for the command to keep retrying the payment." - ], - "default": "60 seconds" - }, - "description": { - "type": "string", - "description": [ - "Only required for bolt11 invoices which do not contain a description themselves, but contain a description hash: in this case *description* is required. *description* is then checked against the hash inside the invoice before it will be paid." - ] - }, - "label": { - "type": "string", - "description": [ - "Used to attach a label to payments, and is returned in lightning-listpays(7) and lightning-listsendpays(7)." - ] - }, - "dev_use_shadow": { - "hidden": true, - "type": "boolean" - } - } - }, - "response": { - "required": [ - "payment_preimage", - "payment_hash", - "created_at", - "parts", - "amount_msat", - "amount_sent_msat", - "status" + "author": [ + "Christian Decker <> is mainly responsible." ], - "properties": { - "payment_preimage": { - "type": "secret", - "description": [ - "The proof of payment: SHA256 of this **payment_hash**." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "created_at": { - "type": "number", - "description": [ - "The UNIX timestamp showing when this payment was initiated." - ] - }, - "parts": { - "type": "u32", - "description": [ - "How many attempts this took." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Amount the recipient received." - ] - }, - "amount_sent_msat": { - "type": "msat", - "description": [ - "Total amount we sent (including fees)." - ] - }, - "status": { - "type": "string", - "enum": [ - "complete", - "pending", - "failed" - ], - "description": [ - "Status of payment." - ] - }, - "destination": { - "type": "pubkey", - "description": [ - "The final destination of the payment." - ] - } - }, - "post_return_value_notes": [ - "You can monitor the progress and retries of a payment using the lightning-renepaystatus(7) command." + "see_also": [ + "lightning-createonion(7)", + "lightning-sendonion(7)" + ], + "resources": [ + "Main web site: " ] }, - "optimality": [ - "**renepay** is based on the work by Pickhardt-Richter's *Optimally Reliable & Cheap Payment Flows on the Lightning Network*. Which means the payment command will prefer routes that have a higher probability of success while keeping fees low.", - "", - "The algorithm records some partial knowledge of the state of the Network deduced from the responses obtained after evey payment attempt. This knowledge is kept through different payment requests, but decays with time to account for the dynamics of the Network (after 1 hour all previous knowledge will be erased). Knowledge from previous payment attempts increases the reliability for subsequent ones.", - "", - "Higher probabilities of success and lower fees cannot generally by optimized at once. Hence **renepay** combines the two in different amounts seeking solutions that satisfy *maxfee* bound and a target for 90% probability of success. *maxfee* is a hard bound, in the sense that the command will never attempt a payment when the fees exceed that value. While the probability target is not compulsory (but desirable), i.e. if the best route does not satisfy the 90% probability target it will be tried anyways.", - "", - "When *maxfee* and the 90% probability bounds are satified, the algorithm will optimize the fees to its lowest value." - ], - "randomization": [ - "To protect user privacy, the payment algorithm performs *shadow route* randomization. Which means the payment algorithm will virtually extend the route by adding delays and fees along it, making it appear to intermediate nodes that the route is longer than it actually is. This prevents intermediate nodes from reliably guessing their distance from the payee.", - "", - "Route randomization will never exceed *maxfee* of the payment. Route randomization and shadow routing will not take routes that would exceed *maxdelay*." - ], - "errors": [ - "The following error codes may occur:", - "", - "- -1: Catchall nonspecific error.", - "- 200: Other payment attempts are in progress.", - "- 203: Permanent failure at destination.", - "- 205: Unable to find a route.", - "- 206: Payment routes are too expensive.", - "- 207: Invoice expired. Payment took too long before expiration, or already expired at the time you initiated payment.", - "- 210: Payment timed out without a payment in progress.", - "- 212: Invoice is invalid." - ], - "json_example": [ - { - "request": { - "id": "example:renepay#1", - "method": "renepay", - "params": { - "invstring": "lnbcrt1230n1pjmxj9jsp5suc4cag0lv3wemllkvms56e6ll0w867cczqfttuu8cpfl089f9kspp56wvxtdh8fxg5r5y3kg3klxceakqaydskwzatga25v95da8nzkmwqdqjv3jhxcmjd9c8g6t0dcxqyjw5qcqp99qxpqysgqkmyhymt0j7hy38vzqxx465s4ys0fg78flnjqfx4clvdq9mrmgglpcnjrrnhtk7maa87pfvjez88hke8w97zvuecwswaf9gzyqlsthegpza67eu" + "lightning-sendinvoice.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "sendinvoice", + "title": "Command for send an invoice for an offer", + "warning": "experimental-offers only", + "description": [ + "The **sendinvoice** RPC command creates and sends an invoice to the issuer of an *invoice_request* for it to pay: lightning-invoicerequest(7).", + "", + "If **fetchinvoice-noconnect** is not specified in the configuation, it will connect to the destination in the (currently common!) case where it cannot find a route which supports `option_onion_messages`." + ], + "request": { + "required": [ + "invreq", + "label" + ], + "properties": { + "invreq": { + "type": "string", + "description": [ + "The bolt12 invoice_request string beginning with `lnr1`." + ] + }, + "label": { + "type": "string", + "description": [ + "The unique label to use for this invoice." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "Required if the *offer* does not specify an amount at all, or specifies it in a different currency. Otherwise you may set it (e.g. to provide a tip)." + ], + "default": "the amount contained in the offer (multiplied by *quantity* if any)" + }, + "timeout": { + "type": "u32", + "description": [ + "Seconds to wait for the offering node to pay the invoice or return an error. This will also be the timeout on the invoice that is sent." + ], + "default": "90 seconds" + }, + "quantity": { + "type": "u64", + "description": [ + "Quantity is is required if the offer specifies quantity_max, otherwise it is not allowed." + ] } - }, - "response": { - "payment_preimage": "0a3fd704b34f47d6e306dbac78141753be83848d3a19725c972abfc367dcc591", - "payment_hash": "d39865b6e7499141d091b2236f9b19ed81d2361670bab475546168de9e62b6dc", - "created_at": 1706248370.6267352, - "parts": 1, - "amount_msat": 123000, - "amount_sent_msat": 123000, - "status": "complete", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" } }, - { - "request": { - "id": "example:renepay#2", - "method": "renepay", - "params": { - "invstring": "lnbcrt1pja0f9asp50kzadmeyy78eymjvhnlk5dznl3g5k5x8agh52ewjtg0jclas4ylspp5crsutd9hg05lxyhzphdcuyng6z3knrsdae83mxwawa842gz3vj3sdqjv3jhxcmjd9c8g6t0dcxqyjw5qcqp99qxpqysgqr5yzhxmup4muyaz6x8u2dy4qyu9t5qzuf5k9xayvj5kg7tve60gjk4jrv2l76exnj2xkuzhtwky23pkkxedzy6p9yrsgyqdwj7dv5gsp4zcw6v", - "amount_msat": 548925 + "response": { + "required": [ + "label", + "description", + "payment_hash", + "status", + "created_index", + "expires_at" + ], + "properties": { + "label": { + "type": "string", + "description": [ + "Unique label supplied at invoice creation." + ] + }, + "description": { + "type": "string", + "description": [ + "Description used in the invoice." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "status": { + "type": "string", + "enum": [ + "unpaid", + "paid", + "expired" + ], + "description": [ + "Whether it's paid, unpaid or unpayable." + ] + }, + "expires_at": { + "type": "u64", + "description": [ + "UNIX timestamp of when it will become / became unpayable." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount required to pay this invoice." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The BOLT12 string." + ] + }, + "created_index": { + "type": "u64", + "added": "v23.08", + "description": [ + "1-based index indicating order this invoice was created in." + ] + }, + "updated_index": { + "type": "u64", + "added": "v23.08", + "description": [ + "1-based index indicating order this invoice was changed (only present if it has changed since creation)." + ] } }, - "response": { - "payment_preimage": "a635e92d024beebfc58519e6544888aa560ba3bcaba7e74924e4b8432eaa56f5", - "payment_hash": "c0e1c5b4b743e9f312e20ddb8e1268d0a3698e0dee4f1d99dd774f55205164a3", - "created_at": 1708631229.7841823, - "parts": 1, - "amount_msat": 548925, - "amount_sent_msat": 548925, - "status": "complete", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" - } - } - ], - "author": [ - "Eduardo Quintana-Miranda <> is mainly responsible." - ], - "see_also": [ - "lightning-renepaystatus(7)", - "lightning-listpays(7)", - "lightning-invoice(7)" - ], - "resources": [ - "Main web site: ", - "", - "Pickhardt R. and Richter S., *Optimally Reliable & Cheap Payment Flows on the Lightning Network* " - ] - }, - "lightning-renepaystatus.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "renepaystatus", - "title": "Command for quering the status of previous renepay attempts", - "added": "v23.08", - "description": [ - "The **renepaystatus** RPC command queries the payment plugin **renepay** for the status of previous payment attempts.", - "", - "This command always succeeds." - ], - "request": { - "required": [], - "properties": { - "invstring": { - "type": "string", - "description": [ - "If specified, the command will return a list of payment attempts whose invoice matches *invstring*, otherwise all payments with be listed." - ] - } - } - }, - "response": { - "required": [ - "paystatus" - ], - "properties": { - "paystatus": { - "type": "array", - "description": [ - "A list of payments attempted by renepay." - ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "bolt11", - "payment_hash", - "created_at", - "groupid", - "amount_msat", - "status", - "notes" - ], - "properties": { - "bolt11": { - "type": "string", - "description": [ - "Invoice string BOLT11." - ] - }, - "payment_preimage": { - "type": "secret", - "description": [ - "The proof of payment: SHA256 of this **payment_hash** (for completed payments only)." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "created_at": { - "type": "number", - "description": [ - "The UNIX timestamp showing when this payment was initiated." - ] - }, - "groupid": { - "type": "u32", - "description": [ - "The id for this payment attempt." - ] - }, - "parts": { - "type": "u32", - "description": [ - "How many attempts this took." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Amount the recipient received." - ] - }, - "amount_sent_msat": { - "type": "msat", - "description": [ - "Total amount we sent including fees (for completed payments only)." - ] - }, - "status": { - "type": "string", - "enum": [ - "complete", - "pending", - "failed" - ], - "description": [ - "Status of payment." - ] - }, - "destination": { - "type": "pubkey", - "description": [ - "The final destination of the payment." - ] - }, - "notes": { - "type": "array", - "description": [ - "A list of messages for debugging purposes." - ], - "items": { + "allOf": [ + { + "if": { + "properties": { + "status": { "type": "string", + "enum": [ + "paid" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "pay_index", + "amount_received_msat", + "paid_at", + "payment_preimage" + ], + "properties": { + "label": {}, + "description": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "bolt12": {}, + "expires_at": {}, + "created_index": {}, + "updated_index": {}, + "pay_index": { + "type": "u64", + "description": [ + "Unique incrementing index for this payment." + ] + }, + "amount_received_msat": { + "type": "msat", + "description": [ + "The amount actually received (could be slightly greater than *amount_msat*, since clients may overpay)." + ] + }, + "paid_at": { + "type": "u64", + "description": [ + "UNIX timestamp of when it was paid." + ] + }, + "payment_preimage": { + "type": "secret", "description": [ - "A message generated by renepay." + "Proof of payment." ] } } } } - } - } - }, - "author": [ - "Eduardo Quintana-Miranda <> is mainly responsible." - ], - "see_also": [ - "lightning-renepay(7)", - "lightning-listpays(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-reserveinputs.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "reserveinputs", - "title": "Construct a transaction and reserve the UTXOs it spends", - "description": [ - "The **reserveinputs** RPC command places (or increases) reservations on any inputs specified in *psbt* which are known to lightningd. It will fail with an error if any of the inputs are known to be spent, and ignore inputs which are unknown.", - "", - "Normally the command will fail (with no reservations made) if an input is already reserved." - ], - "request": { - "required": [ - "psbt" + ] + }, + "errors": [ + "The following error codes may occur:", + "", + "- -1: Catchall nonspecific error.", + "- 1002: Offer has expired.", + "- 1003: Cannot find a route to the node making the offer.", + "- 1004: The node making the offer returned an error message.", + "- 1005: We timed out waiting for the invoice to be paid" ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "The PSBT to reserve inputs from." - ] - }, - "exclusive": { - "type": "boolean", - "description": [ - "If set to *False*, existing reservations are simply extended, rather than causing failure." - ] - }, - "reserve": { - "type": "u32", - "description": [ - "The number of blocks to reserve. By default, reservations are for the next 72 blocks (approximately 6 hours)." - ] + "json_example": [ + { + "request": { + "id": "example:sendinvoice#1", + "method": "sendinvoice", + "params": { + "invreq": "lnr1qqg804wzdsyn8g4mf2yc22k8xvjpjzstwd5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gqsykppqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4nuzqw5w7y7xqm2rushk5a5n3mcuvqel954raykd5nqa830nq9hpd4s4fcnxw266vp9d5c8f3m3w40hmm6gm8akxx3rsnr7d4usunv0x3q8q", + "label": "payme for real!" + } + }, + "response": { + "label": "payme for real!", + "bolt12": "lni1qqg804wzdsyn8g4mf2yc22k8xvjpjzstwd5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gqsykppqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4ngycqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qmcmtl30xtt7jdakfyhzm8f0gny6f4d2ukx5gurem04z8lfd2wza5qs9pz6wp9vu7cm6n4wmmrz77y4w6z5xv4q93yudkdtkl5zmzdzuawzqqex7gd5v0x0r83pqj82udd542fl4krh50s0dkx47d0hd5wh77g52xxl75ccpkt35mc8n282wslju9ufyys2y8qqqqqqqqqqqqqqqpgqqqqqqqqqqqqp6f9jm7k9yqqqqqq2gpr96l99lfspt25zqnyfgu7hznmt2tzkjdt92d2wc3dsq7keph7w8gudjs46spfzqrlu4gqs9vppqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky9muzqpze8kk43g0wh4h8qlac5lswwesrvsaxcza2f5j90c2h3ts8yzmn9g4mxqe89fngrqny8nf52xxuxep6548etda8lp876jr0nnxgdkdq", + "payment_hash": "4c89473d714f6b52c56935655354ec45b007ad90dfce3a38d942ba8052200ffc", + "amount_msat": 2, + "status": "paid", + "pay_index": 1, + "amount_received_msat": 2, + "paid_at": 1708640865, + "payment_preimage": "305951ab02cb2ea5eb884dbfd8fb110b4e088ecb8338b3e84e8f9c70919c19bf", + "description": "simple test", + "expires_at": 1708640953, + "created_index": 2, + "updated_index": 1 + } } - } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-fetchinvoice(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "reservations" + "lightning-sendonion.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "sendonion", + "title": "Send a payment with a custom onion packet", + "description": [ + "The **sendonion** RPC command can be used to initiate a payment attempt with a custom onion packet. The onion packet is used to deliver instructions for hops along the route on how to behave. Normally these instructions are indications on where to forward a payment and what parameters to use, or contain details of the payment for the final hop. However, it is possible to add arbitrary information for hops in the custom onion, allowing for custom extensions that are not directly supported by Core Lightning.", + "", + "If the first element of *route* does not have \"channel\" set, a suitable channel (if any) will be chosen, otherwise that specific short-channel-id is used. The following is an example of a 3 hop onion:", + "", + "```json", + "[", + " \"298606954e9de3e9d938d18a74fed794c440e8eda82e52dc08600953c8acf9c4\",", + " \"2dc094de72adb03b90894192edf9f67919cb2691b37b1f7d4a2f4f31c108b087\",", + " \"a7b82b240dbd77a4ac8ea07709b1395d8c510c73c17b4b392bb1f0605d989c85\"", + "]", + "```" ], - "properties": { - "reservations": { - "type": "array", - "items": { + "request": { + "required": [ + "onion", + "first_hop", + "payment_hash" + ], + "properties": { + "onion": { + "type": "hex", + "description": [ + "Hex-encoded 1366 bytes long blob that was returned by either of the tools that can generate onions. It contains the payloads destined for each hop and some metadata. Please refer to [BOLT 04][bolt04] for further details. If is specific to the route that is being used and the *payment_hash* used to construct, and therefore cannot be reused for other payments or to attempt a separate route. The custom onion can generally be created using the `devtools/onion` CLI tool, or the **createonion** RPC command." + ] + }, + "first_hop": { "type": "object", - "additionalProperties": false, + "description": [ + "Instructs Core Lightning which peer to send the onion to. It is a JSON dictionary that corresponds to the first element of the route array returned by *getroute*." + ], "required": [ - "txid", - "vout", - "was_reserved", - "reserved", - "reserved_to_block" + "id", + "amount_msat", + "delay" ], "properties": { - "txid": { - "type": "txid", - "description": [ - "The input transaction id." - ] - }, - "vout": { - "type": "u32", - "description": [ - "The input index output number which was reserved." - ] - }, - "was_reserved": { - "type": "boolean", + "id": { + "type": "pubkey", "description": [ - "Whether the input was already reserved." + "Node id for the peer. Use any available channel available to this peer." ] }, - "reserved": { - "type": "boolean", - "enum": [ - true - ], + "amount_msat": { + "type": "msat", "description": [ - "Whether the input is now reserved." + "The amount to add an HTLC for millisatoshis." ] }, - "reserved_to_block": { - "type": "u32", + "delay": { + "type": "u16", "description": [ - "What blockheight the reservation will expire." + "The number of blocks delay of blocks on top of the current blockheight." ] } } - } - } - } - }, - "errors": [ - "On failure, an error is reported and no UTXOs are reserved.", - "", - "- -32602: Invalid parameter, such as specifying a spent/reserved input in *psbt*." - ], - "json_example": [ - { - "request": { - "id": "example:reserveinputs#1", - "method": "reserveinputs", - "params": { - "psbt": "cHNidP8BAFwCAAAAAkwJVUqB0xXTO7JZ3PnPdGnxoYfQxhU+xqXGFYXsyX0RAAAAAAD9////TAlVSoHTFdM7slnc+c90afGhh9DGFT7GpcYVhezJfREBAAAAAP3///8AAAAAAAAAAA==", - "exclusive": true, - "reserve": null - } - }, - "response": { - "reservations": [ - { - "txid": "117dc9ec8515c6a5c63e15c6d087a1f16974cff9dc59b23bd315d3814a55094c", - "vout": 1, - "was_reserved": false, - "reserved": true, - "reserved_to_block": 175 + }, + "payment_hash": { + "type": "hash", + "description": [ + "Specifies the 32 byte hex-encoded hash to use as a challenge to the HTLC that we are sending. It is specific to the onion and has to match the one the onion was created with." + ] + }, + "label": { + "type": "string", + "description": [ + "Can be used to provide a human readable reference to retrieve the payment at a later time." + ] + }, + "shared_secrets": { + "type": "array", + "description": [ + "A JSON list of 32 byte hex-encoded secrets that were used when creating the onion. Core Lightning can send a payment with a custom onion without the knowledge of these secrets, however it will not be able to parse an eventual error message since that is encrypted with the shared secrets used in the onion. If *shared_secrets* is provided Core Lightning will decrypt the error, act accordingly, e.g., add a `channel_update` included in the error to its network view, and set the details in *listsendpays* correctly. If it is not provided Core Lightning will store the encrypted onion, and expose it in *listsendpays* allowing the caller to decrypt it externally. If it is not provided the Core Lightning node does not know how long the route is, which channels or nodes are involved, and what an eventual error could have been. It can therefore be used for oblivious payments." + ], + "items": { + "type": "secret" } - ] + }, + "partid": { + "type": "u16", + "description": [ + "If provided and non-zero, allows for multiple parallel partial payments with the same *payment_hash*." + ] + }, + "bolt11": { + "type": "string", + "description": [ + "If provided, it will be returned in *waitsendpay* and *listsendpays* results." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "Used to annotate the payment, and is returned by *waitsendpay* and *listsendpays*." + ] + }, + "destination": { + "type": "pubkey", + "description": [ + "If provided, it will be returned in **listpays** result." + ] + }, + "localinvreqid": { + "type": "hash", + "description": [ + "`localinvreqid` is used by offers to link a payment attempt to a local `invoice_request` offer created by lightningd-invoicerequest(7)." + ] + }, + "groupid": { + "type": "u64", + "description": [ + "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash." + ] + }, + "description": { + "added": "v0.11.0", + "type": "string", + "description": [ + "If provided, it will be returned in *waitsendpay* and *listsendpays* results." + ] + } } }, - { - "request": { - "id": "example:reserveinputs#2", - "method": "reserveinputs", - "params": { - "psbt": "cHNidP8BAP32AQIAAAAMgnW099dbh1uD153ih5eU5WhluynLxekXjAOjkEdNBg8BAAAAAP3///9FWKQt8C+1y4741+beFSqWAaj9DuvzHNpxvpxS+GB8lwEAAAAA/f///6E5TAGqktI29Oso6b9kZZoAFFGGvpJQUM8VO+3LMTlmAAAAAAD9////nSDT7hrkuoQtAV1yNnbpkJsB5ifKoM2zP+CcLPfis1gBAAAAAP3///+P1rW90UXfD0gIk58h3sXxxy3ZfJJLP0H1I4Jpzy/87QEAAAAA/f///w0UKZ/s9DnPpV+FJ8h2BEI7tl+qVxSGRFRv9FYw4girAQAAAAD9////EPNsUFrEOZyfjbqbh8rfHQ4C9RQECw12n3c1yhFqkzoAAAAAAP3///8QW9LEsSmuvSnvVzy+FDktM7ewQmZnIJI/TJMahLmSzwEAAAAA/f///+4edbWRHDdRJcMeHHElgSmb+nENPsz/g/0AmAEU6hXeAAAAAAD9////T15YLGmk7HBsrL+awdcxi3db3esp8AcCTS9XGrEnfoAAAAAAAP3///8q7xInvEk7J0Ir9cpKXqU2lArUskkYLrimIE0+Yb6a2QEAAAAA/f///8hBLKyMa2zRJqwNOk7DmsDIfG7IvJtQiJ+QnkkHl6atAAAAAAD9////AAAAAAAAAAAAAAAAAAAAAAAA", - "exclusive": false, - "reserve": null + "response": { + "required": [ + "created_index", + "id", + "payment_hash", + "status", + "created_at", + "amount_sent_msat" + ], + "properties": { + "created_index": { + "added": "v23.11", + "type": "u64", + "description": [ + "1-based index indicating order this payment was created in." + ] + }, + "id": { + "type": "u64", + "description": [ + "Old synonym for created_index." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "status": { + "type": "string", + "enum": [ + "pending", + "complete" + ], + "description": [ + "Status of the payment (could be complete if already sent previously)." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount delivered to destination (if known)." + ] + }, + "destination": { + "type": "pubkey", + "description": [ + "The final destination of the payment if known." + ] + }, + "created_at": { + "type": "u64", + "description": [ + "The UNIX timestamp showing when this payment was initiated." + ] + }, + "amount_sent_msat": { + "type": "msat", + "description": [ + "The amount sent." + ] + }, + "label": { + "type": "string", + "description": [ + "The label, if given to sendpay." + ] + }, + "bolt11": { + "type": "string", + "description": [ + "The bolt11 string (if supplied)." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The bolt12 string (if supplied: **experimental-offers** only)." + ] + }, + "partid": { + "type": "u64", + "description": [ + "The partid (if supplied) to sendonion/sendpay." + ] } }, - "response": { - "reservations": [ - { - "txid": "0f064d4790a3038c17e9c5cb29bb6568e5949787e29dd7835b875bd7f7b47582", - "vout": 1, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 - }, - { - "txid": "977c60f8529cbe71da1cf3eb0efda801962a15dee6d7f88ecbb52ff02da45845", - "vout": 1, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 - }, - { - "txid": "663931cbed3b15cf505092be865114009a6564bfe928ebf436d292aa014c39a1", - "vout": 0, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 - }, - { - "txid": "58b3e2f72c9ce03fb3cda0ca27e6019b90e97636725d012d84bae41aeed3209d", - "vout": 1, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 - }, - { - "txid": "edfc2fcf698223f5413f4b927cd92dc7f1c5de219f9308480fdf45d1bdb5d68f", - "vout": 1, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 - }, - { - "txid": "ab08e23056f46f5444861457aa5fb63b420476c827855fa5cf39f4ec9f29140d", - "vout": 1, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 - }, - { - "txid": "3a936a11ca35779f760d0b0414f5020e1ddfca879bba8d9f9c39c45a506cf310", - "vout": 0, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 - }, - { - "txid": "cf92b9841a934c3f9220676642b0b7332d3914be3c57ef29bdae29b1c4d25b10", - "vout": 1, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 - }, - { - "txid": "de15ea14019800fd83ffcc3e0d71fa9b298125711c1ec32551371c91b5751eee", - "vout": 0, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 - }, - { - "txid": "807e27b11a572f4d0207f029ebdd5b778b31d7c19abfac6c70eca4692c585e4f", - "vout": 0, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 + "allOf": [ + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "complete" + ] + } + } }, - { - "txid": "d99abe613e4d20a6b82e1849b2d40a9436a55e4acaf52b42273b49bc2712ef2a", - "vout": 1, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 + "then": { + "additionalProperties": false, + "required": [ + "payment_preimage" + ], + "properties": { + "created_index": {}, + "id": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "destination": {}, + "created_at": {}, + "groupid": {}, + "msatoshi_sent": {}, + "amount_sent_msat": {}, + "label": {}, + "bolt11": {}, + "bolt12": {}, + "partid": {}, + "updated_index": { + "added": "v23.11", + "type": "u64", + "description": [ + "1-based index indicating order this payment was changed." + ] + }, + "payment_preimage": { + "type": "secret", + "description": [ + "The proof of payment: SHA256 of this **payment_hash**." + ] + } + } + } + }, + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "pending" + ] + } + } }, - { - "txid": "ada69707499e909f88509bbcc86e7cc8c09ac34e3a0dac26d16c6b8cac2c41c8", - "vout": 0, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 + "then": { + "additionalProperties": false, + "required": [], + "properties": { + "created_index": {}, + "id": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "destination": {}, + "created_at": {}, + "groupid": {}, + "msatoshi_sent": {}, + "amount_sent_msat": {}, + "label": {}, + "bolt11": {}, + "bolt12": {}, + "partid": {}, + "message": { + "type": "string", + "description": [ + "Monitor status with listpays or waitsendpay." + ] + } + } } - ] - } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-unreserveinputs(7)", - "lightning-signpsbt(7)", - "lightning-sendpsbt(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-sendcustommsg.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v0.10.1", - "rpc": "sendcustommsg", - "title": "Low-level interface to send protocol messages to peers", - "description": [ - "The `sendcustommsg` RPC method allows the user to inject a custom message into the communication with the peer with the given `node_id`. This is intended as a low-level interface to implement custom protocol extensions on top, not for direct use by end-users.", - "", - "On the receiving end a plugin may implement the `custommsg` plugin hook and get notified about incoming messages, and allow additional unknown even types in their getmanifest response." - ], - "request": { - "required": [ - "node_id", - "msg" - ], - "properties": { - "node_id": { - "type": "pubkey", - "description": [ - "The node specified by `node_id` must be a peer, i.e., it must have a direct connection with the node receiving the RPC call, and the connection must be established. For a method to send arbitrary messages over multiple hops, including hops that do not understand the custom message, see the `createonion` and `sendonion` RPC methods. Messages can only be injected if the connection is handled by `openingd` or `channeld`. Messages cannot be injected when the peer is handled by `onchaind` or `closingd` since these do not have a connection, or are synchronous daemons that do not handle spontaneous messages." - ] - }, - "msg": { - "type": "hex", - "description": [ - "Must be a hex encoded well-formed message, including the 2-byte type prefix, but excluding the length prefix which will be added by the RPC method. The message types may not be one of the internally handled types, since that may cause issues with the internal state tracking of Core Lightning. We do (as of *v23.11*) allow sending of even types, but note that peers (as per the spec) will disconnect on receiving unknown even types." - ] - } - } - }, - "response": { - "required": [ - "status" + } + ] + }, + "errors": [ + "The following error codes may occur:", + "", + "- 202: an parseable onion", + "", + "the error details are decrypted and presented here, if *shared_secrets* was provided and an error was returned by one of the intermediate nodes" ], - "properties": { - "status": { - "type": "string", - "description": [ - "Information about where message was queued." - ] + "json_example": [ + { + "request": { + "id": "example:sendonion#1", + "method": "sendonion", + "params": { + "onion": "00034928294556b10308f9aeac7a240223d4d5f72097db1ef36a36b10cab937f2f205ed7218b47d4600eaf7fd390940bf9a6cdac99aafdb4783c468150eeeab9b57e56a06778d023ffb3bb84c7d8c2ad8868b61c28b566634af52c288ed6569583db66f5bd0edfb801c252f078020e1df6359af5969296b4698a71d17c5ca6e5ee4b64b7cce3ad0a1aa31e6be4d5fe3a31fa7a25259c640716020a9a248ca3ebb68eb823f8884b5df3710969f4c2ffb153779a923bab946ed43c1f6658d7f8e7e25303bb78ef4862fb550b8b1c79d522b035eedfda9ab70a61322522acf7233bb8ea2423958448fc8ac3d000835fda04bf661f1bf2ad2d091f506840bb2f10f82c0812149d99267a47824defe90877ed70db526b2200e18dccb92b17516de3778c055645728eadf4c74375aa0aae80a7773a536a908ca1e25c0fdca90e50ce0be05eeb973ec5e83ce3ab6b35818e021780428af81320a694483c1c15f64e685ba1fd3b1e1b926e6b4ec9eeeac8aca60c60e0f0f583e35e7f081dc6f4c64157e100c79c4c25101bed77cd9f93416f9a67d9f1916a782c498c38365af4a5fabb1b745fa840a054a06564c3f4b376aeb72cdd059d3794c82bbbf12a1f62234016a6912b384e7e4cebbd39ee4395aeff43c461e226d1e0151cce508a181a9c61275bf4b89e4556cf24df13b993dec96541555f8b9a699be9488568a11ac7f25849da62765472511ad74a6660c10e37f5fa13d4e4665ef7825ae1f2da4a86d5581912262de89b4b11a722fd127b31aa0d7fab8c679b07bf95e65cb80b2dacb5b90794399fb8f23823f68058431aa1c399b5baceccaf8521d004f45dba6ec1fddc54473343e9e67cd50cc3f2f3d8a5dab8a7ab9ae553dc3cd34e74b858da75975265f7c673a25e8d01a5130ab40eaba712b80c608cd0431b4b45ea0d81af595e21f24976608429127bf586f7507666500bc7245cf9266fa0bd0e58404c496e190c873cd143ace9048e9d5021c23967a24e09f2e54166e54b4ee8888dc1af535624e7ee8b426c1628175017a9e8a73eb1d0d49028a4f4d77897f3c08f1cd7bdee2b00f9bb9eadc49a69bf4f6c0cb2c95a16f03d7958f1b8f83cb40ae87ddf75f26050e2c2ed9f8f8523b3d389a50b217bda651dc21f095fe7d2d3851a0a6cf01051f3f3c6f1ad59ed46d44928d15a0e6e1bd4df4c99bdb82a05b0e781b69a73bc30fe579c8ac9fe8aeb6beb1c0f44def2775b7341af37e6ef58ceb34958b29d3e36112b78644612228761b8badc802f0b2b8fcaeb1db8f3a8db4afa2d7b4540a7c331db6f5141fa3909a513df875ff8a63f5b542d662781ca96a69e3b2925d6a63555b2c5825ffb2ad848d71122f54110e0d203000f3e9cc23b793c3540dfb8d881caedd25055a8f495e9e7a0391dbf9cbd9344f7df659ee8d3ce5ec16217ab83e1394ba991eb8ffd9a869f8ebb2e2428845e779979c57b5f8875f502728229a55ce87b3eba85c75264d30eaf7b373f6b09ba3086d9e98348d87b049468c2c30a6501cb2a3862f1703bbf29895e8b4262353eae720ed8ae678750011e2eb51f4800d3f4725fa873d7deec1c46f77a5f61c73dc938239e77f432bcc245c7b935413c51c0bc92bdaae144452aa95910909e46e500557961203f4e1483b9c09c124464907825e1ff74c87c58d6e2e91970baac9b89a554beca6df9acee16d77dd929d0caa7797e06f2c384c03fdedc89c697b9c34787a50cf399a8d7f195e79b347efc8267c474a477ce210f11049d432b280eaf3fccd451f6218d35c64cbd1006bcc54eeea8b856855c9aa92bc3adc6900a7c7a0eee09834c5a1f2da3d8ea9a478aea90c954952ad2a72d3856350ac3132d17e1e8116fa774066a22c857a827699c98285111a405e74685a3ae579ae78c545774f45491e4935bf4", + "first_hop": { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "channel": "103x3x0", + "direction": 1, + "amount_msat": 1002, + "delay": 21, + "style": "tlv" + }, + "payment_hash": "f584c14bb23506acdd94cf3cea377f3cc5805f3cba5430bc3756ef83ede1a0dc", + "label": null, + "shared_secrets": null, + "partid": null, + "bolt11": null, + "amount_msat": null, + "destination": null + } + }, + "response": { + "message": "Monitor status with listpays or waitsendpay", + "created_index": 1, + "id": 1, + "payment_hash": "f584c14bb23506acdd94cf3cea377f3cc5805f3cba5430bc3756ef83ede1a0dc", + "groupid": 1, + "amount_sent_msat": 1002, + "created_at": 1706315098, + "status": "pending" + } } - }, - "pre_return_value_notes": [ - "The method will validate the arguments and queue the message for delivery through the daemon that is currently handling the connection. Queuing provides best effort guarantees and the message may not be delivered if the connection is terminated while the message is queued. The RPC method will return as soon as the message is queued.", + ], + "author": [ + "Christian Decker <> is mainly responsible." + ], + "see_also": [ + "lightning-createonion(7)", + "lightning-sendpay(7)", + "lightning-listsendpays(7)" + ], + "resources": [ + "Main web site: ", "", - "If any of the above limitations is not respected the method returns an explicit error message stating the issue." + "[bolt04]: https://github.com/lightning/bolts/blob/master/04-onion-routing.md" ] }, - "json_example": [ - { - "request": { - "id": "example:sendcustommsg#5", - "method": "sendcustommsg", - "params": { - "node_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "msg": "77770012" + "lightning-sendonionmessage.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "sendonionmessage", + "title": "low-level command to send an onion message", + "warning": "experimental-onion-messages only", + "description": [ + "The **sendonionmessage** RPC command can be used to send a message via the lightning network. These are currently used by *offers* to request and receive invoices." + ], + "request": { + "required": [ + "first_id", + "blinding", + "hops" + ], + "properties": { + "first_id": { + "type": "pubkey", + "description": [ + "The (presumably well-known) public key of the start of the path." + ] + }, + "blinding": { + "type": "pubkey", + "description": [ + "Blinding factor for this path." + ] + }, + "hops": { + "type": "array", + "description": [ + "", + "" + ], + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "node", + "tlv" + ], + "properties": { + "node": { + "type": "pubkey", + "description": [ + "Public key of the node." + ] + }, + "tlv": { + "type": "u8", + "description": [ + "Contains a hexadecimal TLV to include." + ] + } + } + } } - }, - "response": { - "status": "Message sent to connectd for delivery" } - } - ], - "author": [ - "Christian Decker <> is mainly responsible." - ], - "see_also": [ - "lightning-createonion(7)", - "lightning-sendonion(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-sendinvoice.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "sendinvoice", - "title": "Command for send an invoice for an offer", - "warning": "experimental-offers only", - "description": [ - "The **sendinvoice** RPC command creates and sends an invoice to the issuer of an *invoice_request* for it to pay: lightning-invoicerequest(7).", - "", - "If **fetchinvoice-noconnect** is not specified in the configuation, it will connect to the destination in the (currently common!) case where it cannot find a route which supports `option_onion_messages`." - ], - "request": { - "required": [ - "invreq", - "label" + }, + "response": { + "required": [], + "properties": {} + }, + "author": [ + "Rusty Russell <> is mainly responsible." ], - "properties": { - "invreq": { - "type": "string", - "description": [ - "The bolt12 invoice_request string beginning with `lnr1`." - ] - }, - "label": { - "type": "string", - "description": [ - "The unique label to use for this invoice." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Required if the *offer* does not specify an amount at all, or specifies it in a different currency. Otherwise you may set it (e.g. to provide a tip)." - ], - "default": "the amount contained in the offer (multiplied by *quantity* if any)" - }, - "timeout": { - "type": "u32", - "description": [ - "Seconds to wait for the offering node to pay the invoice or return an error. This will also be the timeout on the invoice that is sent." - ], - "default": "90 seconds" - }, - "quantity": { - "type": "u64", - "description": [ - "Quantity is is required if the offer specifies quantity_max, otherwise it is not allowed." - ] - } - } + "see_also": [ + "lightning-fetchinvoice(7)", + "lightning-offer(7)" + ], + "resources": [ + "Main web site: ", + "", + "[bolt04]: https://github.com/lightning/bolts/blob/master/04-onion-routing.md" + ] }, - "response": { - "required": [ - "label", - "description", - "payment_hash", - "status", - "created_index", - "expires_at" + "lightning-sendpay.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "sendpay", + "title": "Low-level command for sending a payment via a route", + "description": [ + "The **sendpay** RPC command attempts to send funds associated with the given *payment_hash*, along a route to the final destination in the route.", + "", + "Generally, a client would call lightning-getroute(7) to resolve a route, then use **sendpay** to send it. If it fails, it would call lightning-getroute(7) again to retry. If the route is empty, a payment-to-self is attempted.", + "", + "The response will occur when the payment is on its way to the destination. The **sendpay** RPC command does not wait for definite success or definite failure of the payment (except for already-succeeded payments, or to-self payments). Instead, use the **waitsendpay** RPC command to poll or wait for definite success or definite failure.", + "", + "Once a payment has succeeded, calls to **sendpay** with the same *payment_hash* but a different *amount_msat* or destination will fail; this prevents accidental multiple payments. Calls to **sendpay** with the same *payment_hash*, *amount_msat*, and destination as a previous successful payment (even if a different route or *partid*) will return immediately with success." ], - "properties": { - "label": { - "type": "string", - "description": [ - "Unique label supplied at invoice creation." - ] - }, - "description": { - "type": "string", - "description": [ - "Description used in the invoice." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "status": { - "type": "string", - "enum": [ - "unpaid", - "paid", - "expired" - ], - "description": [ - "Whether it's paid, unpaid or unpayable." - ] - }, - "expires_at": { - "type": "u64", - "description": [ - "UNIX timestamp of when it will become / became unpayable." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount required to pay this invoice." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The BOLT12 string." - ] - }, - "created_index": { - "type": "u64", - "added": "v23.08", - "description": [ - "1-based index indicating order this invoice was created in." - ] - }, - "updated_index": { - "type": "u64", - "added": "v23.08", - "description": [ - "1-based index indicating order this invoice was changed (only present if it has changed since creation)." - ] - } - }, - "allOf": [ - { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "paid" - ] + "request": { + "required": [ + "route", + "payment_hash" + ], + "properties": { + "route": { + "type": "array", + "items": { + "type": "object", + "required": [ + "amount_msat", + "id", + "delay", + "channel" + ], + "properties": { + "id": { + "type": "pubkey", + "description": [ + "The node at the end of this hop." + ] + }, + "channel": { + "type": "short_channel_id", + "description": [ + "The channel joining these nodes." + ] + }, + "delay": { + "type": "u32", + "description": [ + "The total CLTV expected by the node at the end of this hop." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount expected by the node at the end of this hop." + ] + } } } }, - "then": { - "additionalProperties": false, - "required": [ - "pay_index", - "amount_received_msat", - "paid_at", - "payment_preimage" + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the payment_preimage." + ] + }, + "label": { + "type": "string", + "description": [ + "The label provided when creating the invoice_request." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "Amount must be provided if *partid* is non-zero, or the payment is to-self, otherwise it must be equal to the final amount to the destination. it can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*." ], - "properties": { - "label": {}, - "description": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "bolt12": {}, - "expires_at": {}, - "created_index": {}, - "updated_index": {}, - "pay_index": { - "type": "u64", - "description": [ - "Unique incrementing index for this payment." - ] - }, - "amount_received_msat": { - "type": "msat", - "description": [ - "The amount actually received (could be slightly greater than *amount_msat*, since clients may overpay)." - ] - }, - "paid_at": { - "type": "u64", - "description": [ - "UNIX timestamp of when it was paid." - ] - }, - "payment_preimage": { - "type": "secret", - "description": [ - "Proof of payment." - ] - } - } + "default": "in millisatoshi precision" + }, + "bolt11": { + "type": "string", + "description": [ + "Bolt11 invoice to pay. If provided, will be returned in *waitsendpay* and *listsendpays* results." + ] + }, + "payment_secret": { + "type": "secret", + "description": [ + "Value that the final recipient requires to accept the payment, as defined by the `payment_data` field in BOLT 4 and the `s` field in the BOLT 11 invoice format. It is required if *partid* is non-zero." + ] + }, + "partid": { + "type": "u64", + "description": [ + "Must not be provided for self-payments. If provided and non-zero, allows for multiple parallel partial payments with the same *payment_hash*. The *amount_msat* amount (which must be provided) for each **sendpay** with matching *payment_hash* must be equal, and **sendpay** will fail if there are differing values given." + ] + }, + "localinvreqid": { + "type": "hex", + "description": [ + "Indicates that this payment is being made for a local invoice_request. This ensures that we only send a payment for a single-use invoice_request once." + ] + }, + "groupid": { + "type": "u64", + "description": [ + "Allows you to attach a number which appears in **listsendpays** so payments can be identified as part of a logical group. The *pay* plugin uses this to identify one attempt at a MPP payment, for example." + ] + }, + "payment_metadata": { + "added": "v0.11.0", + "type": "hex", + "description": [ + "Placed in the final onion hop TLV." + ] + }, + "description": { + "added": "v0.11.0", + "type": "string", + "description": [ + "Description used in the invoice." + ] } } - ] - }, - "errors": [ - "The following error codes may occur:", - "", - "- -1: Catchall nonspecific error.", - "- 1002: Offer has expired.", - "- 1003: Cannot find a route to the node making the offer.", - "- 1004: The node making the offer returned an error message.", - "- 1005: We timed out waiting for the invoice to be paid" - ], - "json_example": [ - { - "request": { - "id": "example:sendinvoice#1", - "method": "sendinvoice", - "params": { - "invreq": "lnr1qqg804wzdsyn8g4mf2yc22k8xvjpjzstwd5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gqsykppqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4nuzqw5w7y7xqm2rushk5a5n3mcuvqel954raykd5nqa830nq9hpd4s4fcnxw266vp9d5c8f3m3w40hmm6gm8akxx3rsnr7d4usunv0x3q8q", - "label": "payme for real!" + }, + "response": { + "required": [ + "id", + "created_index", + "payment_hash", + "status", + "created_at", + "amount_sent_msat" + ], + "properties": { + "created_index": { + "added": "v23.11", + "type": "u64", + "description": [ + "1-based index indicating order this payment was created in." + ] + }, + "updated_index": { + "added": "v23.11", + "type": "u64", + "description": [ + "1-based index indicating order this payment was changed (only present if it has changed since creation)." + ] + }, + "id": { + "type": "u64", + "description": [ + "Old synonym for created_index." + ] + }, + "groupid": { + "type": "u64", + "description": [ + "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "status": { + "type": "string", + "enum": [ + "pending", + "complete" + ], + "description": [ + "Status of the payment (could be complete if already sent previously)." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount delivered to destination (if known)." + ] + }, + "destination": { + "type": "pubkey", + "description": [ + "The final destination of the payment if known." + ] + }, + "created_at": { + "type": "u64", + "description": [ + "The UNIX timestamp showing when this payment was initiated." + ] + }, + "completed_at": { + "type": "u64", + "description": [ + "The UNIX timestamp showing when this payment was completed." + ] + }, + "amount_sent_msat": { + "type": "msat", + "description": [ + "The amount sent." + ] + }, + "label": { + "type": "string", + "description": [ + "The *label*, if given to sendpay." + ] + }, + "partid": { + "type": "u64", + "description": [ + "The *partid*, if given to sendpay." + ] + }, + "bolt11": { + "type": "string", + "description": [ + "The bolt11 string (if supplied)." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The bolt12 string (if supplied: **experimental-offers** only)." + ] } }, - "response": { - "label": "payme for real!", - "bolt12": "lni1qqg804wzdsyn8g4mf2yc22k8xvjpjzstwd5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gqsykppqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4ngycqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qmcmtl30xtt7jdakfyhzm8f0gny6f4d2ukx5gurem04z8lfd2wza5qs9pz6wp9vu7cm6n4wmmrz77y4w6z5xv4q93yudkdtkl5zmzdzuawzqqex7gd5v0x0r83pqj82udd542fl4krh50s0dkx47d0hd5wh77g52xxl75ccpkt35mc8n282wslju9ufyys2y8qqqqqqqqqqqqqqqpgqqqqqqqqqqqqp6f9jm7k9yqqqqqq2gpr96l99lfspt25zqnyfgu7hznmt2tzkjdt92d2wc3dsq7keph7w8gudjs46spfzqrlu4gqs9vppqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky9muzqpze8kk43g0wh4h8qlac5lswwesrvsaxcza2f5j90c2h3ts8yzmn9g4mxqe89fngrqny8nf52xxuxep6548etda8lp876jr0nnxgdkdq", - "payment_hash": "4c89473d714f6b52c56935655354ec45b007ad90dfce3a38d942ba8052200ffc", - "amount_msat": 2, - "status": "paid", - "pay_index": 1, - "amount_received_msat": 2, - "paid_at": 1708640865, - "payment_preimage": "305951ab02cb2ea5eb884dbfd8fb110b4e088ecb8338b3e84e8f9c70919c19bf", - "description": "simple test", - "expires_at": 1708640953, - "created_index": 2, - "updated_index": 1 - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-fetchinvoice(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-sendonion.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "sendonion", - "title": "Send a payment with a custom onion packet", - "description": [ - "The **sendonion** RPC command can be used to initiate a payment attempt with a custom onion packet. The onion packet is used to deliver instructions for hops along the route on how to behave. Normally these instructions are indications on where to forward a payment and what parameters to use, or contain details of the payment for the final hop. However, it is possible to add arbitrary information for hops in the custom onion, allowing for custom extensions that are not directly supported by Core Lightning.", - "", - "If the first element of *route* does not have \"channel\" set, a suitable channel (if any) will be chosen, otherwise that specific short-channel-id is used. The following is an example of a 3 hop onion:", - "", - "```json", - "[", - " \"298606954e9de3e9d938d18a74fed794c440e8eda82e52dc08600953c8acf9c4\",", - " \"2dc094de72adb03b90894192edf9f67919cb2691b37b1f7d4a2f4f31c108b087\",", - " \"a7b82b240dbd77a4ac8ea07709b1395d8c510c73c17b4b392bb1f0605d989c85\"", - "]", - "```" - ], - "request": { - "required": [ - "onion", - "first_hop", - "payment_hash" - ], - "properties": { - "onion": { - "type": "hex", - "description": [ - "Hex-encoded 1366 bytes long blob that was returned by either of the tools that can generate onions. It contains the payloads destined for each hop and some metadata. Please refer to [BOLT 04][bolt04] for further details. If is specific to the route that is being used and the *payment_hash* used to construct, and therefore cannot be reused for other payments or to attempt a separate route. The custom onion can generally be created using the `devtools/onion` CLI tool, or the **createonion** RPC command." - ] - }, - "first_hop": { - "type": "object", - "description": [ - "Instructs Core Lightning which peer to send the onion to. It is a JSON dictionary that corresponds to the first element of the route array returned by *getroute*." - ], - "required": [ - "id", - "amount_msat", - "delay" - ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "Node id for the peer. Use any available channel available to this peer." - ] + "allOf": [ + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "complete" + ] + } + } }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount to add an HTLC for millisatoshis." - ] + "then": { + "additionalProperties": false, + "required": [ + "payment_preimage" + ], + "properties": { + "id": {}, + "created_index": {}, + "updated_index": {}, + "groupid": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "destination": {}, + "created_at": {}, + "completed_at": {}, + "msatoshi_sent": {}, + "amount_sent_msat": {}, + "label": {}, + "partid": {}, + "bolt11": {}, + "bolt12": {}, + "payment_preimage": { + "type": "secret", + "description": [ + "The proof of payment: SHA256 of this **payment_hash**." + ] + } + } + } + }, + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "pending" + ] + } + } }, - "delay": { - "type": "u16", - "description": [ - "The number of blocks delay of blocks on top of the current blockheight." - ] + "then": { + "additionalProperties": false, + "required": [ + "message" + ], + "properties": { + "id": {}, + "created_index": {}, + "updated_index": {}, + "groupid": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "destination": {}, + "created_at": {}, + "completed_at": {}, + "msatoshi_sent": {}, + "amount_sent_msat": {}, + "label": {}, + "partid": {}, + "bolt11": {}, + "bolt12": {}, + "message": { + "type": "string", + "description": [ + "Monitor status with listpays or waitsendpay." + ] + } + } } } - }, - "payment_hash": { - "type": "hash", - "description": [ - "Specifies the 32 byte hex-encoded hash to use as a challenge to the HTLC that we are sending. It is specific to the onion and has to match the one the onion was created with." - ] - }, - "label": { - "type": "string", - "description": [ - "Can be used to provide a human readable reference to retrieve the payment at a later time." - ] - }, - "shared_secrets": { - "type": "array", - "description": [ - "A JSON list of 32 byte hex-encoded secrets that were used when creating the onion. Core Lightning can send a payment with a custom onion without the knowledge of these secrets, however it will not be able to parse an eventual error message since that is encrypted with the shared secrets used in the onion. If *shared_secrets* is provided Core Lightning will decrypt the error, act accordingly, e.g., add a `channel_update` included in the error to its network view, and set the details in *listsendpays* correctly. If it is not provided Core Lightning will store the encrypted onion, and expose it in *listsendpays* allowing the caller to decrypt it externally. If it is not provided the Core Lightning node does not know how long the route is, which channels or nodes are involved, and what an eventual error could have been. It can therefore be used for oblivious payments." - ], - "items": { - "type": "secret" - } - }, - "partid": { - "type": "u16", - "description": [ - "If provided and non-zero, allows for multiple parallel partial payments with the same *payment_hash*." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "If provided, it will be returned in *waitsendpay* and *listsendpays* results." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Used to annotate the payment, and is returned by *waitsendpay* and *listsendpays*." - ] - }, - "destination": { - "type": "pubkey", - "description": [ - "If provided, it will be returned in **listpays** result." - ] - }, - "localinvreqid": { - "type": "hash", - "description": [ - "`localinvreqid` is used by offers to link a payment attempt to a local `invoice_request` offer created by lightningd-invoicerequest(7)." - ] - }, - "groupid": { - "type": "u64", - "description": [ - "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash." - ] - }, - "description": { - "added": "v0.11.0", - "type": "string", - "description": [ - "If provided, it will be returned in *waitsendpay* and *listsendpays* results." - ] - } - } - }, - "response": { - "required": [ - "created_index", - "id", - "payment_hash", - "status", - "created_at", - "amount_sent_msat" - ], - "properties": { - "created_index": { - "added": "v23.11", - "type": "u64", - "description": [ - "1-based index indicating order this payment was created in." - ] - }, - "id": { - "type": "u64", - "description": [ - "Old synonym for created_index." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "status": { - "type": "string", - "enum": [ - "pending", - "complete" - ], - "description": [ - "Status of the payment (could be complete if already sent previously)." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount delivered to destination (if known)." - ] - }, - "destination": { - "type": "pubkey", - "description": [ - "The final destination of the payment if known." - ] - }, - "created_at": { - "type": "u64", - "description": [ - "The UNIX timestamp showing when this payment was initiated." - ] - }, - "amount_sent_msat": { - "type": "msat", - "description": [ - "The amount sent." - ] - }, - "label": { - "type": "string", - "description": [ - "The label, if given to sendpay." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "The bolt11 string (if supplied)." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 string (if supplied: **experimental-offers** only)." - ] - }, - "partid": { - "type": "u64", - "description": [ - "The partid (if supplied) to sendonion/sendpay." - ] - } + ] }, - "allOf": [ + "errors": [ + "On error, if the error occurred from a node other than the final destination, the route table will be updated so that lightning-getroute(7) should return an alternate route (if any). An error from the final destination implies the payment should not be retried.", + "", + "- -1: Catchall nonspecific error.", + "- 201: Already paid with this *hash* using different amount or destination.", + "- 202: Unparseable onion reply. The *data* field of the error will have an *onionreply* field, a hex string representation of the raw onion reply.", + "- 203: Permanent failure at destination. The *data* field of the error will be routing failure object.", + "- 204: Failure along route; retry a different route. The *data* field of the error will be routing failure object.", + "- 212: *localinvreqid* refers to an invalid, or used, local invoice_request.", + "", + "A routing failure object has the fields below:", + "", + "*erring_index*: The index of the node along the route that reported the error. 0 for the local node, 1 for the first hop, and so on.", + "*erring_node*: The hex string of the pubkey id of the node that reported the error.", + "*erring_channel*: The short channel ID of the channel that has the error, or *0:0:0* if the destination node raised the error. In addition *erring_direction* will indicate which direction of the channel caused the failure.", + "*failcode*: The failure code, as per BOLT #4.", + "*channel_update*: The hex string of the *channel_update* message received from the remote node. Only present if error is from the remote node and the *failcode* has the UPDATE bit set, as per BOLT #4." + ], + "json_example": [ { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "complete" - ] - } + "request": { + "id": "example:sendpay#1", + "method": "sendpay", + "params": { + "route": [ + { + "amount_msat": 11000000, + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "delay": 5, + "channel": "103x1x0" + } + ], + "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", + "label": null, + "amount_msat": null, + "bolt11": "lnbcrt110u1pjmr5lzsp5sfjyj3xn7ux592k36hmmt4ax98n6lgct22wvj54yck0upcmep63qpp5qu436g855lr40ftdt7csatk5pdvtdzzfmfqluwtvm0fds95jsadqdpq0pzk7s6j8y69xjt6xe25j5j4g44hsatdxqyjw5qcqp99qxpqysgquwma3zrw4cd8e8j4u9uh4gxukaacckse64kx2l9dqv8rvrysdq5r5dt38t9snqj9u5ar07h2exr4fg56wpudkhkk7gtxlyt72ku5fpqqd4fnlk", + "payment_secret": "82644944d3f70d42aad1d5f7b5d7a629e7afa30b529cc952a4c59fc0e3790ea2", + "partid": null, + "groupid": null, + "payment_metadata": null } }, - "then": { - "additionalProperties": false, - "required": [ - "payment_preimage" - ], - "properties": { - "created_index": {}, - "id": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "destination": {}, - "created_at": {}, - "groupid": {}, - "msatoshi_sent": {}, - "amount_sent_msat": {}, - "label": {}, - "bolt11": {}, - "bolt12": {}, - "partid": {}, - "updated_index": { - "added": "v23.11", - "type": "u64", - "description": [ - "1-based index indicating order this payment was changed." - ] - }, - "payment_preimage": { - "type": "secret", - "description": [ - "The proof of payment: SHA256 of this **payment_hash**." - ] - } - } + "response": { + "message": "Monitor status with listpays or waitsendpay", + "created_index": 1, + "id": 1, + "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", + "groupid": 1, + "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "amount_msat": 11000000, + "amount_sent_msat": 11000000, + "created_at": 1706152930, + "status": "pending", + "bolt11": "lnbcrt110u1pjmr5lzsp5sfjyj3xn7ux592k36hmmt4ax98n6lgct22wvj54yck0upcmep63qpp5qu436g855lr40ftdt7csatk5pdvtdzzfmfqluwtvm0fds95jsadqdpq0pzk7s6j8y69xjt6xe25j5j4g44hsatdxqyjw5qcqp99qxpqysgquwma3zrw4cd8e8j4u9uh4gxukaacckse64kx2l9dqv8rvrysdq5r5dt38t9snqj9u5ar07h2exr4fg56wpudkhkk7gtxlyt72ku5fpqqd4fnlk" } }, { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "pending" - ] - } + "request": { + "id": "example:sendpay#2", + "method": "sendpay", + "params": { + "route": [ + { + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "channel": "103x1x0", + "direction": 1, + "amount_msat": 4211, + "style": "tlv", + "delay": 24 + }, + { + "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "channel": "105x1x0", + "direction": 0, + "amount_msat": 3710, + "style": "tlv", + "delay": 16 + }, + { + "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "channel": "107x1x0", + "direction": 1, + "amount_msat": 3210, + "style": "tlv", + "delay": 8 + } + ], + "payment_hash": "bc747053329402620a26bdc187cd134cdb699130d85be499ecd24160aff04c5c", + "label": null, + "amount_msat": null, + "bolt11": null, + "payment_secret": "c36a2fe9aced78c06960e2f21b369ed03f0492c97e53ba3b662163bcdaf1d7fa", + "partid": null, + "groupid": null, + "payment_metadata": null } }, - "then": { - "additionalProperties": false, - "required": [], - "properties": { - "created_index": {}, - "id": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "destination": {}, - "created_at": {}, - "groupid": {}, - "msatoshi_sent": {}, - "amount_sent_msat": {}, - "label": {}, - "bolt11": {}, - "bolt12": {}, - "partid": {}, - "message": { - "type": "string", - "description": [ - "Monitor status with listpays or waitsendpay." - ] - } - } + "response": { + "message": "Monitor status with listpays or waitsendpay", + "created_index": 2, + "id": 2, + "payment_hash": "bc747053329402620a26bdc187cd134cdb699130d85be499ecd24160aff04c5c", + "groupid": 1, + "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "amount_msat": 3210, + "amount_sent_msat": 4211, + "created_at": 1708624260, + "status": "pending" } } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-listinvoices(7)", + "lightning-delinvoice(7)", + "lightning-getroute(7)", + "lightning-invoice(7)", + "lightning-pay(7)", + "lightning-waitsendpay(7)" + ], + "resources": [ + "Main web site: " ] }, - "errors": [ - "The following error codes may occur:", - "", - "- 202: an parseable onion", - "", - "the error details are decrypted and presented here, if *shared_secrets* was provided and an error was returned by one of the intermediate nodes" - ], - "json_example": [ - { - "request": { - "id": "example:sendonion#1", - "method": "sendonion", - "params": { - "onion": "00034928294556b10308f9aeac7a240223d4d5f72097db1ef36a36b10cab937f2f205ed7218b47d4600eaf7fd390940bf9a6cdac99aafdb4783c468150eeeab9b57e56a06778d023ffb3bb84c7d8c2ad8868b61c28b566634af52c288ed6569583db66f5bd0edfb801c252f078020e1df6359af5969296b4698a71d17c5ca6e5ee4b64b7cce3ad0a1aa31e6be4d5fe3a31fa7a25259c640716020a9a248ca3ebb68eb823f8884b5df3710969f4c2ffb153779a923bab946ed43c1f6658d7f8e7e25303bb78ef4862fb550b8b1c79d522b035eedfda9ab70a61322522acf7233bb8ea2423958448fc8ac3d000835fda04bf661f1bf2ad2d091f506840bb2f10f82c0812149d99267a47824defe90877ed70db526b2200e18dccb92b17516de3778c055645728eadf4c74375aa0aae80a7773a536a908ca1e25c0fdca90e50ce0be05eeb973ec5e83ce3ab6b35818e021780428af81320a694483c1c15f64e685ba1fd3b1e1b926e6b4ec9eeeac8aca60c60e0f0f583e35e7f081dc6f4c64157e100c79c4c25101bed77cd9f93416f9a67d9f1916a782c498c38365af4a5fabb1b745fa840a054a06564c3f4b376aeb72cdd059d3794c82bbbf12a1f62234016a6912b384e7e4cebbd39ee4395aeff43c461e226d1e0151cce508a181a9c61275bf4b89e4556cf24df13b993dec96541555f8b9a699be9488568a11ac7f25849da62765472511ad74a6660c10e37f5fa13d4e4665ef7825ae1f2da4a86d5581912262de89b4b11a722fd127b31aa0d7fab8c679b07bf95e65cb80b2dacb5b90794399fb8f23823f68058431aa1c399b5baceccaf8521d004f45dba6ec1fddc54473343e9e67cd50cc3f2f3d8a5dab8a7ab9ae553dc3cd34e74b858da75975265f7c673a25e8d01a5130ab40eaba712b80c608cd0431b4b45ea0d81af595e21f24976608429127bf586f7507666500bc7245cf9266fa0bd0e58404c496e190c873cd143ace9048e9d5021c23967a24e09f2e54166e54b4ee8888dc1af535624e7ee8b426c1628175017a9e8a73eb1d0d49028a4f4d77897f3c08f1cd7bdee2b00f9bb9eadc49a69bf4f6c0cb2c95a16f03d7958f1b8f83cb40ae87ddf75f26050e2c2ed9f8f8523b3d389a50b217bda651dc21f095fe7d2d3851a0a6cf01051f3f3c6f1ad59ed46d44928d15a0e6e1bd4df4c99bdb82a05b0e781b69a73bc30fe579c8ac9fe8aeb6beb1c0f44def2775b7341af37e6ef58ceb34958b29d3e36112b78644612228761b8badc802f0b2b8fcaeb1db8f3a8db4afa2d7b4540a7c331db6f5141fa3909a513df875ff8a63f5b542d662781ca96a69e3b2925d6a63555b2c5825ffb2ad848d71122f54110e0d203000f3e9cc23b793c3540dfb8d881caedd25055a8f495e9e7a0391dbf9cbd9344f7df659ee8d3ce5ec16217ab83e1394ba991eb8ffd9a869f8ebb2e2428845e779979c57b5f8875f502728229a55ce87b3eba85c75264d30eaf7b373f6b09ba3086d9e98348d87b049468c2c30a6501cb2a3862f1703bbf29895e8b4262353eae720ed8ae678750011e2eb51f4800d3f4725fa873d7deec1c46f77a5f61c73dc938239e77f432bcc245c7b935413c51c0bc92bdaae144452aa95910909e46e500557961203f4e1483b9c09c124464907825e1ff74c87c58d6e2e91970baac9b89a554beca6df9acee16d77dd929d0caa7797e06f2c384c03fdedc89c697b9c34787a50cf399a8d7f195e79b347efc8267c474a477ce210f11049d432b280eaf3fccd451f6218d35c64cbd1006bcc54eeea8b856855c9aa92bc3adc6900a7c7a0eee09834c5a1f2da3d8ea9a478aea90c954952ad2a72d3856350ac3132d17e1e8116fa774066a22c857a827699c98285111a405e74685a3ae579ae78c545774f45491e4935bf4", - "first_hop": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "channel": "103x3x0", - "direction": 1, - "amount_msat": 1002, - "delay": 21, - "style": "tlv" - }, - "payment_hash": "f584c14bb23506acdd94cf3cea377f3cc5805f3cba5430bc3756ef83ede1a0dc", - "label": null, - "shared_secrets": null, - "partid": null, - "bolt11": null, - "amount_msat": null, - "destination": null + "lightning-sendpsbt.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "sendpsbt", + "title": "Command to finalize, extract and send a partially signed bitcoin transaction (PSBT).", + "description": [ + "The **sendpsbt** is a low-level RPC command which sends a fully-signed PSBT." + ], + "request": { + "required": [ + "psbt" + ], + "properties": { + "psbt": { + "type": "string", + "description": [ + "The fully signed psbt to be sent." + ] + }, + "reserve": { + "type": "u32", + "description": [ + "Number of blocks to increase reservation of any of our inputs by." + ], + "default": "72" } - }, - "response": { - "message": "Monitor status with listpays or waitsendpay", - "created_index": 1, - "id": 1, - "payment_hash": "f584c14bb23506acdd94cf3cea377f3cc5805f3cba5430bc3756ef83ede1a0dc", - "groupid": 1, - "amount_sent_msat": 1002, - "created_at": 1706315098, - "status": "pending" } - } - ], - "author": [ - "Christian Decker <> is mainly responsible." - ], - "see_also": [ - "lightning-createonion(7)", - "lightning-sendpay(7)", - "lightning-listsendpays(7)" - ], - "resources": [ - "Main web site: ", - "", - "[bolt04]: https://github.com/lightning/bolts/blob/master/04-onion-routing.md" - ] - }, - "lightning-sendonionmessage.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "sendonionmessage", - "title": "low-level command to send an onion message", - "warning": "experimental-onion-messages only", - "description": [ - "The **sendonionmessage** RPC command can be used to send a message via the lightning network. These are currently used by *offers* to request and receive invoices." - ], - "request": { - "required": [ - "first_id", - "blinding", - "hops" - ], - "properties": { - "first_id": { - "type": "pubkey", - "description": [ - "The (presumably well-known) public key of the start of the path." - ] - }, - "blinding": { - "type": "pubkey", - "description": [ - "Blinding factor for this path." - ] + }, + "response": { + "required": [ + "tx", + "txid" + ], + "properties": { + "tx": { + "type": "hex", + "description": [ + "The raw transaction which was sent." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The txid of the **tx**." + ] + } + } + }, + "json_example": [ + { + "request": { + "id": "example:sendpsbt#1", + "method": "sendpsbt", + "params": { + "psbt": "some_psbt" + } + }, + "response": { + "txid": "05985072bbe20747325e69a159fe08176cc1bbc96d25e8848edad2dddc1165d0", + "tx": "02000000027032912651fc25a3e0893acd5f9640598707e2dfef92143bb5a4020e335442800100000017160014a5f48b9aa3cb8ca6cc1040c11e386745bb4dc932ffffffffd229a4b4f78638ebcac10a68b0561585a5d6e4d3b769ad0a909e9b9afaeae24e00000000171600145c83da9b685f9142016c6f5eb5f98a45cfa6f686ffffffff01915a01000000000017a9143a4dfd59e781f9c3018e7d0a9b7a26d58f8d22bf8700000000" + } }, - "hops": { - "type": "array", - "description": [ - "", - "" - ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "node", - "tlv" - ], - "properties": { - "node": { - "type": "pubkey", - "description": [ - "Public key of the node." - ] - }, - "tlv": { - "type": "u8", - "description": [ - "Contains a hexadecimal TLV to include." - ] - } + { + "request": { + "id": "example:sendpsbt#2", + "method": "sendpsbt", + "params": { + "psbt": "cHNidP8BAM0CAAAABEV+dnFRINmyeHxi4Id0OrcuzI5au5/BlPtTfu7E2m3EAAAAAAD9////cv8oioDx+0NCEnjBSYtnwF0H4VR13j+bkyb5gOOQLUUBAAAAAP3///8ehOrKm7JEq6zflkp9+zmSwE1iPe1yh3KTXvk+om/legEAAAAA/f///2s31wNrI1UavMgjC1GyrOHNbxOm68KYa13WX/mGfmjcAQAAAAD9////AcEAPQAAAAAAFgAUyQltQ/QI6lJgICYsza18hRa5KoEAAAAAAAEAcQIAAAABTzfqjIqV1wPpqc/3/Cb+tMX5EDrLmnhb5BMNx3aB/hYAAAAAAP3///8CQEIPAAAAAAAWABR9CNmX36nN45+GhjqvD4LjLMMMg/+juSkBAAAAFgAUJB0adsMdjkacZWrLwyteqfOaTrRlAAAAAQEfQEIPAAAAAAAWABR9CNmX36nN45+GhjqvD4LjLMMMgyICA1p5u7tAbUvCjfBfpqhzKM+wKn4TdDvs3NHfz+BxwuAQRzBEAiBwFb9rA0nUVlIPGd2aaiRbJ+KH4MLM3Bu+f0JuXB/hwAIgT2rrIUG9gXBZoH9fcPjCnbbM1SR4GiLYGLeALB8yENoBIgYDWnm7u0BtS8KN8F+mqHMoz7AqfhN0O+zc0d/P4HHC4BAIfQjZlwAAAAAAAQBxAgAAAAGANpEFI+CgfALTim/MWsAa62g+EmFWrFrzBDBCmCB3MgAAAAAA/f///wKZKdgpAQAAABYAFB+xhfU1pgl9WIvDKzAHZp8UeNkzQEIPAAAAAAAWABQHHEnK0vQg88gF+fa5ilcmnLFBUGUAAAABAR9AQg8AAAAAABYAFAccScrS9CDzyAX59rmKVyacsUFQIgICXTcoCCnxhsuZXNzL8jirRWQBOTlzUTljJKNldd803f9HMEQCIDtx/kEoc4PHDDm4eX5SEOmuRGu7ShpEG7xKBbuD/NjiAiBYkIKod39dcBarCT7Dbchkuwx70tJhOxQSJi2EMioGrwEiBgJdNygIKfGGy5lc3MvyOKtFZAE5OXNROWMko2V13zTd/wgHHEnKAAAAAAABAHECAAAAAVHU7RCZylzRMdlMBJ2ba4XKxv0l7LdWVnPYS6mhkf60AAAAAAD9////Av5VbSkBAAAAFgAU0BhRKzRbIC6H+s6j86d6cMpTNNhAQg8AAAAAABYAFD1D0ia8wnAZreUtej3FKnrBvii4ZQAAAAEBH0BCDwAAAAAAFgAUPUPSJrzCcBmt5S16PcUqesG+KLgiAgKKWZFo08l968cbxm5icOzwVPMA2Igwm6BUcaSCF13ZMEcwRAIgNAeIVGvUj9MWM18am0dx3JtEf79iQMX7Rqz1tttes3ICIAtNCglUlvpSidAxc/xoiy9cA13bgimJx25G+eZXfYJeASIGAopZkWjTyX3rxxvGbmJw7PBU8wDYiDCboFRxpIIXXdkwCD1D0iYAAAAAAAEAcQIAAAABRX52cVEg2bJ4fGLgh3Q6ty7Mjlq7n8GU+1N+7sTabcQBAAAAAP3///8CMmGqKQEAAAAWABSxLq0p9YAKl+hX7pFc0K/X+PIWmUBCDwAAAAAAFgAUZhwjt5DdNJE3OvCx2L7Qh31c3iJlAAAAAQEfQEIPAAAAAAAWABRmHCO3kN00kTc68LHYvtCHfVzeIiICA/qclQheQrHlADzR9BgXjDDJbkrneVTKD8SMWIJv9OsORzBEAiBKABqNV7cF5DKhtd+m+ZEmWF21vBt2uBKnzeDuUFqvDwIgJc6+/6GQqIfz869kJpUFTAMYTeL2qWR6d28EQEOJgkMBIgYD+pyVCF5CseUAPNH0GBeMMMluSud5VMoPxIxYgm/06w4IZhwjtwAAAAAAAA==", + "reserve": null } + }, + "response": { + "tx": "02000000000104457e76715120d9b2787c62e087743ab72ecc8e5abb9fc194fb537eeec4da6dc40000000000fdffffff72ff288a80f1fb43421278c1498b67c05d07e15475de3f9b9326f980e3902d450100000000fdffffff1e84eaca9bb244abacdf964a7dfb3992c04d623ded728772935ef93ea26fe57a0100000000fdffffff6b37d7036b23551abcc8230b51b2ace1cd6f13a6ebc2986b5dd65ff9867e68dc0100000000fdffffff01c1003d0000000000160014c9096d43f408ea526020262ccdad7c8516b92a810247304402207015bf6b0349d456520f19dd9a6a245b27e287e0c2ccdc1bbe7f426e5c1fe1c002204f6aeb2141bd817059a07f5f70f8c29db6ccd524781a22d818b7802c1f3210da0121035a79bbbb406d4bc28df05fa6a87328cfb02a7e13743becdcd1dfcfe071c2e0100247304402203b71fe41287383c70c39b8797e5210e9ae446bbb4a1a441bbc4a05bb83fcd8e20220589082a8777f5d7016ab093ec36dc864bb0c7bd2d2613b1412262d84322a06af0121025d37280829f186cb995cdccbf238ab45640139397351396324a36575df34ddff024730440220340788546bd48fd316335f1a9b4771dc9b447fbf6240c5fb46acf5b6db5eb37202200b4d0a095496fa5289d03173fc688b2f5c035ddb822989c76e46f9e6577d825e0121028a599168d3c97debc71bc66e6270ecf054f300d888309ba05471a482175dd9300247304402204a001a8d57b705e432a1b5dfa6f99126585db5bc1b76b812a7cde0ee505aaf0f022025cebeffa190a887f3f3af642695054c03184de2f6a9647a776f044043898243012103fa9c95085e42b1e5003cd1f418178c30c96e4ae77954ca0fc48c58826ff4eb0e00000000", + "txid": "43bb1c1bce6763ffe4d5df6b49f152f907f36f7849e55bb56075e2b256d17502" } } - } - }, - "response": { - "required": [], - "properties": {} + ], + "errors": [ + "On failure, one of the following error codes may be returned:", + "", + "- -32602: Error in given parameters or some error happened during the command process." + ], + "author": [ + "Vincenzo Palazzo <> wrote the initial version of this man page,", + "but many others did the hard work of actually implementing this rpc command." + ], + "see_also": [ + "lightning-fundpsbt(7)", + "lightning-signpsbt(7)", + "lightning-listtransactions(7)" + ], + "resources": [ + "Main web site: " + ] }, - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-fetchinvoice(7)", - "lightning-offer(7)" - ], - "resources": [ - "Main web site: ", - "", - "[bolt04]: https://github.com/lightning/bolts/blob/master/04-onion-routing.md" - ] - }, - "lightning-sendpay.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "sendpay", - "title": "Low-level command for sending a payment via a route", - "description": [ - "The **sendpay** RPC command attempts to send funds associated with the given *payment_hash*, along a route to the final destination in the route.", - "", - "Generally, a client would call lightning-getroute(7) to resolve a route, then use **sendpay** to send it. If it fails, it would call lightning-getroute(7) again to retry. If the route is empty, a payment-to-self is attempted.", - "", - "The response will occur when the payment is on its way to the destination. The **sendpay** RPC command does not wait for definite success or definite failure of the payment (except for already-succeeded payments, or to-self payments). Instead, use the **waitsendpay** RPC command to poll or wait for definite success or definite failure.", - "", - "Once a payment has succeeded, calls to **sendpay** with the same *payment_hash* but a different *amount_msat* or destination will fail; this prevents accidental multiple payments. Calls to **sendpay** with the same *payment_hash*, *amount_msat*, and destination as a previous successful payment (even if a different route or *partid*) will return immediately with success." - ], - "request": { - "required": [ - "route", - "payment_hash" + "lightning-setchannel.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "setchannel", + "title": "Command for configuring fees / htlc range advertized for a channel", + "description": [ + "The **setchannel** RPC command sets channel specific routing fees, and `htlc_minimum_msat` or `htlc_maximum_msat` as defined in BOLT #7. The channel has to be in normal or awaiting state. This can be checked by **listpeers** reporting a *state* of CHANNELD_NORMAL or CHANNELD_AWAITING_LOCKIN for the channel.", + "", + "These changes (for a public channel) will be broadcast to the rest of the network (though many nodes limit the rate of such changes they will accept: we allow 2 a day, with a few extra occasionally)." ], - "properties": { - "route": { - "type": "array", - "items": { - "type": "object", - "required": [ - "amount_msat", - "id", - "delay", - "channel" + "request": { + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string", + "description": [ + "Should contain a scid (short channel ID), channel id or peerid (pubkey) of the channel to be modified. If *id* is set to `all`, the updates are applied to all channels in states CHANNELD_NORMAL CHANNELD_AWAITING_LOCKIN or DUALOPEND_AWAITING_LOCKIN. If *id* is a peerid, all channels with the +peer in those states are changed." + ] + }, + "feebase": { + "type": "msat", + "description": [ + "Value in millisatoshi that is added as base fee to any routed payment: if omitted, it is unchanged. It can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*." + ] + }, + "feeppm": { + "type": "u32", + "description": [ + "Value that is added proportionally per-millionths to any routed payment volume in satoshi. For example, if ppm is 1,000 and 1,000,000 satoshi is being routed through the channel, an proportional fee of 1,000 satoshi is added, resulting in a 0.1% fee." + ] + }, + "htlcmin": { + "type": "msat", + "description": [ + "Value that limits how small an HTLC we will forward: if omitted, it is unchanged. It can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*. Note that the peer also enforces a minimum for the channel: setting it below that will simply set it to that value with a warning. Also note that *htlcmin* only applies to forwarded HTLCs: we can still send smaller payments ourselves." ], - "properties": { - "id": { - "type": "pubkey", - "description": [ - "The node at the end of this hop." - ] - }, - "channel": { - "type": "short_channel_id", - "description": [ - "The channel joining these nodes." - ] - }, - "delay": { - "type": "u32", - "description": [ - "The total CLTV expected by the node at the end of this hop." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount expected by the node at the end of this hop." - ] + "default": "no lower limit" + }, + "htlcmax": { + "type": "msat", + "description": [ + "Value that limits how large an HTLC we will forward: if omitted, it is unchanged. It can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*. Note that *htlcmax* only applies to forwarded HTLCs: we can still send larger payments ourselves." + ], + "default": "no effective limit" + }, + "enforcedelay": { + "type": "u32", + "description": [ + "Number of seconds to delay before enforcing the new fees/htlc max. This gives the network a chance to catch up with the new rates and avoids rejecting HTLCs before they do. This only has an effect if rates are increased (we always allow users to overpay fees) or *htlcmax* is decreased, and only applied to a single rate increase per channel (we don't remember an arbitrary number of prior feerates) and if the node is restarted the updated configuration is enforced immediately." + ], + "default": "600, which is ten minutes" + }, + "ignorefeelimits": { + "added": "v23.08", + "type": "boolean", + "description": [ + "If set to True means to allow the peer to set the commitment transaction fees (or closing transaction fees) to any value they want. This is dangerous: they could set an exorbitant fee (so HTLCs are unenforcable), or a tiny fee (so that commitment transactions cannot be relayed), but avoids channel breakage in case of feerate disagreements. (Note: the global `ignore_fee_limits` setting overrides this)." + ] + } + } + }, + "response": { + "required": [ + "channels" + ], + "properties": { + "channels": { + "type": "array", + "description": [ + "Channel(s) set, and their resulting configuration." + ], + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "peer_id", + "channel_id", + "fee_base_msat", + "fee_proportional_millionths", + "minimum_htlc_out_msat", + "maximum_htlc_out_msat", + "ignore_fee_limits" + ], + "properties": { + "peer_id": { + "type": "pubkey", + "description": [ + "The node_id of the peer." + ] + }, + "channel_id": { + "type": "hash", + "description": [ + "The channel_id of the channel." + ] + }, + "short_channel_id": { + "type": "short_channel_id", + "description": [ + "The short_channel_id (if locked in)." + ] + }, + "fee_base_msat": { + "type": "msat", + "description": [ + "The resulting feebase (this is the BOLT #7 name)." + ] + }, + "fee_proportional_millionths": { + "type": "u32", + "description": [ + "The resulting feeppm (this is the BOLT #7 name)." + ] + }, + "ignore_fee_limits": { + "type": "boolean", + "added": "v23.08", + "description": [ + "If we are now allowing peer to set feerate on commitment transaction without restriction." + ] + }, + "minimum_htlc_out_msat": { + "type": "msat", + "description": [ + "The resulting htlcmin we will advertize (the BOLT #7 name is htlc_minimum_msat)." + ] + }, + "warning_htlcmin_too_low": { + "type": "string", + "description": [ + "The requested htlcmin was too low for this peer, so we set it to the minimum they will allow." + ] + }, + "maximum_htlc_out_msat": { + "type": "msat", + "description": [ + "The resulting htlcmax we will advertize (the BOLT #7 name is htlc_maximum_msat)." + ] + }, + "warning_htlcmax_too_high": { + "type": "string", + "description": [ + "The requested htlcmax was greater than the channel capacity, so we set it to the channel capacity." + ] + } } } } - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the payment_preimage." - ] - }, - "label": { - "type": "string", - "description": [ - "The label provided when creating the invoice_request." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "Amount must be provided if *partid* is non-zero, or the payment is to-self, otherwise it must be equal to the final amount to the destination. it can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*." - ], - "default": "in millisatoshi precision" - }, - "bolt11": { - "type": "string", - "description": [ - "Bolt11 invoice to pay. If provided, will be returned in *waitsendpay* and *listsendpays* results." - ] - }, - "payment_secret": { - "type": "secret", - "description": [ - "Value that the final recipient requires to accept the payment, as defined by the `payment_data` field in BOLT 4 and the `s` field in the BOLT 11 invoice format. It is required if *partid* is non-zero." - ] - }, - "partid": { - "type": "u64", - "description": [ - "Must not be provided for self-payments. If provided and non-zero, allows for multiple parallel partial payments with the same *payment_hash*. The *amount_msat* amount (which must be provided) for each **sendpay** with matching *payment_hash* must be equal, and **sendpay** will fail if there are differing values given." - ] - }, - "localinvreqid": { - "type": "hex", - "description": [ - "Indicates that this payment is being made for a local invoice_request. This ensures that we only send a payment for a single-use invoice_request once." - ] - }, - "groupid": { - "type": "u64", - "description": [ - "Allows you to attach a number which appears in **listsendpays** so payments can be identified as part of a logical group. The *pay* plugin uses this to identify one attempt at a MPP payment, for example." - ] - }, - "payment_metadata": { - "added": "v0.11.0", - "type": "hex", - "description": [ - "Placed in the final onion hop TLV." - ] - }, - "description": { - "added": "v0.11.0", - "type": "string", - "description": [ - "Description used in the invoice." - ] - } - } - }, - "response": { - "required": [ - "id", - "created_index", - "payment_hash", - "status", - "created_at", - "amount_sent_msat" - ], - "properties": { - "created_index": { - "added": "v23.11", - "type": "u64", - "description": [ - "1-based index indicating order this payment was created in." - ] - }, - "updated_index": { - "added": "v23.11", - "type": "u64", - "description": [ - "1-based index indicating order this payment was changed (only present if it has changed since creation)." - ] - }, - "id": { - "type": "u64", - "description": [ - "Old synonym for created_index." - ] - }, - "groupid": { - "type": "u64", - "description": [ - "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "status": { - "type": "string", - "enum": [ - "pending", - "complete" - ], - "description": [ - "Status of the payment (could be complete if already sent previously)." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount delivered to destination (if known)." - ] - }, - "destination": { - "type": "pubkey", - "description": [ - "The final destination of the payment if known." - ] - }, - "created_at": { - "type": "u64", - "description": [ - "The UNIX timestamp showing when this payment was initiated." - ] - }, - "completed_at": { - "type": "u64", - "description": [ - "The UNIX timestamp showing when this payment was completed." - ] - }, - "amount_sent_msat": { - "type": "msat", - "description": [ - "The amount sent." - ] - }, - "label": { - "type": "string", - "description": [ - "The *label*, if given to sendpay." - ] - }, - "partid": { - "type": "u64", - "description": [ - "The *partid*, if given to sendpay." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "The bolt11 string (if supplied)." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 string (if supplied: **experimental-offers** only)." - ] } }, - "allOf": [ + "errors": [ + "The following error codes may occur:", + "", + "- -1: Channel is in incorrect state, i.e. Catchall nonspecific error.", + "- -32602: JSONRPC2_INVALID_PARAMS, i.e. Given id is not a channel ID or short channel ID." + ], + "json_example": [ { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "complete" - ] - } + "request": { + "id": "example:setchannel#1", + "method": "setchannel", + "params": { + "id": "103x1x0", + "feebase": null, + "feeppm": null, + "htlcmin": null, + "htlcmax": null, + "enforcedelay": null, + "ignorefeelimits": true } }, - "then": { - "additionalProperties": false, - "required": [ - "payment_preimage" - ], - "properties": { - "id": {}, - "created_index": {}, - "updated_index": {}, - "groupid": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "destination": {}, - "created_at": {}, - "completed_at": {}, - "msatoshi_sent": {}, - "amount_sent_msat": {}, - "label": {}, - "partid": {}, - "bolt11": {}, - "bolt12": {}, - "payment_preimage": { - "type": "secret", - "description": [ - "The proof of payment: SHA256 of this **payment_hash**." - ] + "response": { + "channels": [ + { + "peer_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "channel_id": "90210d39d12a65d239ece267c5f48e0a82e7cb95724e658f6d99f370064faad1", + "short_channel_id": "103x1x0", + "fee_base_msat": 1, + "fee_proportional_millionths": 10, + "minimum_htlc_out_msat": 0, + "maximum_htlc_out_msat": 990000000, + "ignore_fee_limits": true } - } + ] } }, { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "pending" - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "message" - ], - "properties": { - "id": {}, - "created_index": {}, - "updated_index": {}, - "groupid": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "destination": {}, - "created_at": {}, - "completed_at": {}, - "msatoshi_sent": {}, - "amount_sent_msat": {}, - "label": {}, - "partid": {}, - "bolt11": {}, - "bolt12": {}, - "message": { - "type": "string", - "description": [ - "Monitor status with listpays or waitsendpay." - ] - } + "request": { + "id": "example:setchannel#2", + "method": "setchannel", + "params": { + "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "feebase": 4000, + "feeppm": 300, + "htlcmin": null, + "htlcmax": null, + "enforcedelay": 0, + "ignorefeelimits": null } - } - } - ] - }, - "errors": [ - "On error, if the error occurred from a node other than the final destination, the route table will be updated so that lightning-getroute(7) should return an alternate route (if any). An error from the final destination implies the payment should not be retried.", - "", - "- -1: Catchall nonspecific error.", - "- 201: Already paid with this *hash* using different amount or destination.", - "- 202: Unparseable onion reply. The *data* field of the error will have an *onionreply* field, a hex string representation of the raw onion reply.", - "- 203: Permanent failure at destination. The *data* field of the error will be routing failure object.", - "- 204: Failure along route; retry a different route. The *data* field of the error will be routing failure object.", - "- 212: *localinvreqid* refers to an invalid, or used, local invoice_request.", - "", - "A routing failure object has the fields below:", - "", - "*erring_index*: The index of the node along the route that reported the error. 0 for the local node, 1 for the first hop, and so on.", - "*erring_node*: The hex string of the pubkey id of the node that reported the error.", - "*erring_channel*: The short channel ID of the channel that has the error, or *0:0:0* if the destination node raised the error. In addition *erring_direction* will indicate which direction of the channel caused the failure.", - "*failcode*: The failure code, as per BOLT #4.", - "*channel_update*: The hex string of the *channel_update* message received from the remote node. Only present if error is from the remote node and the *failcode* has the UPDATE bit set, as per BOLT #4." - ], - "json_example": [ - { - "request": { - "id": "example:sendpay#1", - "method": "sendpay", - "params": { - "route": [ + }, + "response": { + "channels": [ { - "amount_msat": 11000000, - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "delay": 5, - "channel": "103x1x0" + "peer_id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "channel_id": "9c54c71bbbe59591cc3162e14fc4ff58c146f085c07d0f206ea679a8231d03ab", + "short_channel_id": "103x3x0", + "fee_base_msat": 4000, + "fee_proportional_millionths": 300, + "minimum_htlc_out_msat": 0, + "maximum_htlc_out_msat": 990000000, + "ignore_fee_limits": false } - ], - "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", - "label": null, - "amount_msat": null, - "bolt11": "lnbcrt110u1pjmr5lzsp5sfjyj3xn7ux592k36hmmt4ax98n6lgct22wvj54yck0upcmep63qpp5qu436g855lr40ftdt7csatk5pdvtdzzfmfqluwtvm0fds95jsadqdpq0pzk7s6j8y69xjt6xe25j5j4g44hsatdxqyjw5qcqp99qxpqysgquwma3zrw4cd8e8j4u9uh4gxukaacckse64kx2l9dqv8rvrysdq5r5dt38t9snqj9u5ar07h2exr4fg56wpudkhkk7gtxlyt72ku5fpqqd4fnlk", - "payment_secret": "82644944d3f70d42aad1d5f7b5d7a629e7afa30b529cc952a4c59fc0e3790ea2", - "partid": null, - "groupid": null, - "payment_metadata": null + ] } - }, - "response": { - "message": "Monitor status with listpays or waitsendpay", - "created_index": 1, - "id": 1, - "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", - "groupid": 1, - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount_msat": 11000000, - "amount_sent_msat": 11000000, - "created_at": 1706152930, - "status": "pending", - "bolt11": "lnbcrt110u1pjmr5lzsp5sfjyj3xn7ux592k36hmmt4ax98n6lgct22wvj54yck0upcmep63qpp5qu436g855lr40ftdt7csatk5pdvtdzzfmfqluwtvm0fds95jsadqdpq0pzk7s6j8y69xjt6xe25j5j4g44hsatdxqyjw5qcqp99qxpqysgquwma3zrw4cd8e8j4u9uh4gxukaacckse64kx2l9dqv8rvrysdq5r5dt38t9snqj9u5ar07h2exr4fg56wpudkhkk7gtxlyt72ku5fpqqd4fnlk" } - }, - { - "request": { - "id": "example:sendpay#2", - "method": "sendpay", - "params": { - "route": [ + ], + "author": [ + "Michael Schmoock <> is the author of this feature." + ], + "see_also": [ + "lightningd-config(5)", + "lightning-fundchannel(7)", + "lightning-listchannels(7)", + "lightning-listpeers(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-setconfig.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.08", + "rpc": "setconfig", + "title": "Dynamically change some config options", + "description": [ + "The **setconfig** RPC command allows you set the (dynamic) configuration option named by `config`: options which take a value (as separate from simple flag options) also need a `val` parameter.", + "", + "This new value will *also* be written at the end of the config file, for persistence across restarts (and any old value commented out).", + "", + "You can see what options are dynamically adjustable using lightning- listconfigs(7). Note that you can also adjust existing options for stopped plugins; they will have an effect when the plugin is restarted." + ], + "request": { + "required": [ + "config" + ], + "properties": { + "config": { + "type": "string", + "description": [ + "Name of the config variable which should be set to the value of the variable." + ] + }, + "val": { + "oneOf": [ { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "channel": "103x1x0", - "direction": 1, - "amount_msat": 4211, - "style": "tlv", - "delay": 24 + "type": "string" }, { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "105x1x0", - "direction": 0, - "amount_msat": 3710, - "style": "tlv", - "delay": 16 + "type": "integer" }, { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "channel": "107x1x0", - "direction": 1, - "amount_msat": 3210, - "style": "tlv", - "delay": 8 + "type": "boolean" } ], - "payment_hash": "bc747053329402620a26bdc187cd134cdb699130d85be499ecd24160aff04c5c", - "label": null, - "amount_msat": null, - "bolt11": null, - "payment_secret": "c36a2fe9aced78c06960e2f21b369ed03f0492c97e53ba3b662163bcdaf1d7fa", - "partid": null, - "groupid": null, - "payment_metadata": null - } - }, - "response": { - "message": "Monitor status with listpays or waitsendpay", - "created_index": 2, - "id": 2, - "payment_hash": "bc747053329402620a26bdc187cd134cdb699130d85be499ecd24160aff04c5c", - "groupid": 1, - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "amount_msat": 3210, - "amount_sent_msat": 4211, - "created_at": 1708624260, - "status": "pending" - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-listinvoices(7)", - "lightning-delinvoice(7)", - "lightning-getroute(7)", - "lightning-invoice(7)", - "lightning-pay(7)", - "lightning-waitsendpay(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-sendpsbt.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "sendpsbt", - "title": "Command to finalize, extract and send a partially signed bitcoin transaction (PSBT).", - "description": [ - "The **sendpsbt** is a low-level RPC command which sends a fully-signed PSBT." - ], - "request": { - "required": [ - "psbt" - ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "The fully signed psbt to be sent." - ] - }, - "reserve": { - "type": "u32", - "description": [ - "Number of blocks to increase reservation of any of our inputs by." - ], - "default": "72" - } - } - }, - "response": { - "required": [ - "tx", - "txid" - ], - "properties": { - "tx": { - "type": "hex", - "description": [ - "The raw transaction which was sent." - ] - }, - "txid": { - "type": "txid", - "description": [ - "The txid of the **tx**." - ] - } - } - }, - "json_example": [ - { - "request": { - "id": "example:sendpsbt#1", - "method": "sendpsbt", - "params": { - "psbt": "some_psbt" + "description": [ + "Value of the config variable to be set or updated." + ] } - }, - "response": { - "txid": "05985072bbe20747325e69a159fe08176cc1bbc96d25e8848edad2dddc1165d0", - "tx": "02000000027032912651fc25a3e0893acd5f9640598707e2dfef92143bb5a4020e335442800100000017160014a5f48b9aa3cb8ca6cc1040c11e386745bb4dc932ffffffffd229a4b4f78638ebcac10a68b0561585a5d6e4d3b769ad0a909e9b9afaeae24e00000000171600145c83da9b685f9142016c6f5eb5f98a45cfa6f686ffffffff01915a01000000000017a9143a4dfd59e781f9c3018e7d0a9b7a26d58f8d22bf8700000000" } }, - { - "request": { - "id": "example:sendpsbt#2", - "method": "sendpsbt", - "params": { - "psbt": "cHNidP8BAM0CAAAABEV+dnFRINmyeHxi4Id0OrcuzI5au5/BlPtTfu7E2m3EAAAAAAD9////cv8oioDx+0NCEnjBSYtnwF0H4VR13j+bkyb5gOOQLUUBAAAAAP3///8ehOrKm7JEq6zflkp9+zmSwE1iPe1yh3KTXvk+om/legEAAAAA/f///2s31wNrI1UavMgjC1GyrOHNbxOm68KYa13WX/mGfmjcAQAAAAD9////AcEAPQAAAAAAFgAUyQltQ/QI6lJgICYsza18hRa5KoEAAAAAAAEAcQIAAAABTzfqjIqV1wPpqc/3/Cb+tMX5EDrLmnhb5BMNx3aB/hYAAAAAAP3///8CQEIPAAAAAAAWABR9CNmX36nN45+GhjqvD4LjLMMMg/+juSkBAAAAFgAUJB0adsMdjkacZWrLwyteqfOaTrRlAAAAAQEfQEIPAAAAAAAWABR9CNmX36nN45+GhjqvD4LjLMMMgyICA1p5u7tAbUvCjfBfpqhzKM+wKn4TdDvs3NHfz+BxwuAQRzBEAiBwFb9rA0nUVlIPGd2aaiRbJ+KH4MLM3Bu+f0JuXB/hwAIgT2rrIUG9gXBZoH9fcPjCnbbM1SR4GiLYGLeALB8yENoBIgYDWnm7u0BtS8KN8F+mqHMoz7AqfhN0O+zc0d/P4HHC4BAIfQjZlwAAAAAAAQBxAgAAAAGANpEFI+CgfALTim/MWsAa62g+EmFWrFrzBDBCmCB3MgAAAAAA/f///wKZKdgpAQAAABYAFB+xhfU1pgl9WIvDKzAHZp8UeNkzQEIPAAAAAAAWABQHHEnK0vQg88gF+fa5ilcmnLFBUGUAAAABAR9AQg8AAAAAABYAFAccScrS9CDzyAX59rmKVyacsUFQIgICXTcoCCnxhsuZXNzL8jirRWQBOTlzUTljJKNldd803f9HMEQCIDtx/kEoc4PHDDm4eX5SEOmuRGu7ShpEG7xKBbuD/NjiAiBYkIKod39dcBarCT7Dbchkuwx70tJhOxQSJi2EMioGrwEiBgJdNygIKfGGy5lc3MvyOKtFZAE5OXNROWMko2V13zTd/wgHHEnKAAAAAAABAHECAAAAAVHU7RCZylzRMdlMBJ2ba4XKxv0l7LdWVnPYS6mhkf60AAAAAAD9////Av5VbSkBAAAAFgAU0BhRKzRbIC6H+s6j86d6cMpTNNhAQg8AAAAAABYAFD1D0ia8wnAZreUtej3FKnrBvii4ZQAAAAEBH0BCDwAAAAAAFgAUPUPSJrzCcBmt5S16PcUqesG+KLgiAgKKWZFo08l968cbxm5icOzwVPMA2Igwm6BUcaSCF13ZMEcwRAIgNAeIVGvUj9MWM18am0dx3JtEf79iQMX7Rqz1tttes3ICIAtNCglUlvpSidAxc/xoiy9cA13bgimJx25G+eZXfYJeASIGAopZkWjTyX3rxxvGbmJw7PBU8wDYiDCboFRxpIIXXdkwCD1D0iYAAAAAAAEAcQIAAAABRX52cVEg2bJ4fGLgh3Q6ty7Mjlq7n8GU+1N+7sTabcQBAAAAAP3///8CMmGqKQEAAAAWABSxLq0p9YAKl+hX7pFc0K/X+PIWmUBCDwAAAAAAFgAUZhwjt5DdNJE3OvCx2L7Qh31c3iJlAAAAAQEfQEIPAAAAAAAWABRmHCO3kN00kTc68LHYvtCHfVzeIiICA/qclQheQrHlADzR9BgXjDDJbkrneVTKD8SMWIJv9OsORzBEAiBKABqNV7cF5DKhtd+m+ZEmWF21vBt2uBKnzeDuUFqvDwIgJc6+/6GQqIfz869kJpUFTAMYTeL2qWR6d28EQEOJgkMBIgYD+pyVCF5CseUAPNH0GBeMMMluSud5VMoPxIxYgm/06w4IZhwjtwAAAAAAAA==", - "reserve": null - } - }, - "response": { - "tx": "02000000000104457e76715120d9b2787c62e087743ab72ecc8e5abb9fc194fb537eeec4da6dc40000000000fdffffff72ff288a80f1fb43421278c1498b67c05d07e15475de3f9b9326f980e3902d450100000000fdffffff1e84eaca9bb244abacdf964a7dfb3992c04d623ded728772935ef93ea26fe57a0100000000fdffffff6b37d7036b23551abcc8230b51b2ace1cd6f13a6ebc2986b5dd65ff9867e68dc0100000000fdffffff01c1003d0000000000160014c9096d43f408ea526020262ccdad7c8516b92a810247304402207015bf6b0349d456520f19dd9a6a245b27e287e0c2ccdc1bbe7f426e5c1fe1c002204f6aeb2141bd817059a07f5f70f8c29db6ccd524781a22d818b7802c1f3210da0121035a79bbbb406d4bc28df05fa6a87328cfb02a7e13743becdcd1dfcfe071c2e0100247304402203b71fe41287383c70c39b8797e5210e9ae446bbb4a1a441bbc4a05bb83fcd8e20220589082a8777f5d7016ab093ec36dc864bb0c7bd2d2613b1412262d84322a06af0121025d37280829f186cb995cdccbf238ab45640139397351396324a36575df34ddff024730440220340788546bd48fd316335f1a9b4771dc9b447fbf6240c5fb46acf5b6db5eb37202200b4d0a095496fa5289d03173fc688b2f5c035ddb822989c76e46f9e6577d825e0121028a599168d3c97debc71bc66e6270ecf054f300d888309ba05471a482175dd9300247304402204a001a8d57b705e432a1b5dfa6f99126585db5bc1b76b812a7cde0ee505aaf0f022025cebeffa190a887f3f3af642695054c03184de2f6a9647a776f044043898243012103fa9c95085e42b1e5003cd1f418178c30c96e4ae77954ca0fc48c58826ff4eb0e00000000", - "txid": "43bb1c1bce6763ffe4d5df6b49f152f907f36f7849e55bb56075e2b256d17502" - } - } - ], - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32602: Error in given parameters or some error happened during the command process." - ], - "author": [ - "Vincenzo Palazzo <> wrote the initial version of this man page,", - "but many others did the hard work of actually implementing this rpc command." - ], - "see_also": [ - "lightning-fundpsbt(7)", - "lightning-signpsbt(7)", - "lightning-listtransactions(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-setchannel.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "setchannel", - "title": "Command for configuring fees / htlc range advertized for a channel", - "description": [ - "The **setchannel** RPC command sets channel specific routing fees, and `htlc_minimum_msat` or `htlc_maximum_msat` as defined in BOLT #7. The channel has to be in normal or awaiting state. This can be checked by **listpeers** reporting a *state* of CHANNELD_NORMAL or CHANNELD_AWAITING_LOCKIN for the channel.", - "", - "These changes (for a public channel) will be broadcast to the rest of the network (though many nodes limit the rate of such changes they will accept: we allow 2 a day, with a few extra occasionally)." - ], - "request": { - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string", - "description": [ - "Should contain a scid (short channel ID), channel id or peerid (pubkey) of the channel to be modified. If *id* is set to `all`, the updates are applied to all channels in states CHANNELD_NORMAL CHANNELD_AWAITING_LOCKIN or DUALOPEND_AWAITING_LOCKIN. If *id* is a peerid, all channels with the +peer in those states are changed." - ] - }, - "feebase": { - "type": "msat", - "description": [ - "Value in millisatoshi that is added as base fee to any routed payment: if omitted, it is unchanged. It can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*." - ] - }, - "feeppm": { - "type": "u32", - "description": [ - "Value that is added proportionally per-millionths to any routed payment volume in satoshi. For example, if ppm is 1,000 and 1,000,000 satoshi is being routed through the channel, an proportional fee of 1,000 satoshi is added, resulting in a 0.1% fee." - ] - }, - "htlcmin": { - "type": "msat", - "description": [ - "Value that limits how small an HTLC we will forward: if omitted, it is unchanged. It can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*. Note that the peer also enforces a minimum for the channel: setting it below that will simply set it to that value with a warning. Also note that *htlcmin* only applies to forwarded HTLCs: we can still send smaller payments ourselves." - ], - "default": "no lower limit" - }, - "htlcmax": { - "type": "msat", - "description": [ - "Value that limits how large an HTLC we will forward: if omitted, it is unchanged. It can be a whole number, or a whole number ending in *msat* or *sat*, or a number with three decimal places ending in *sat*, or a number with 1 to 11 decimal places ending in *btc*. Note that *htlcmax* only applies to forwarded HTLCs: we can still send larger payments ourselves." - ], - "default": "no effective limit" - }, - "enforcedelay": { - "type": "u32", - "description": [ - "Number of seconds to delay before enforcing the new fees/htlc max. This gives the network a chance to catch up with the new rates and avoids rejecting HTLCs before they do. This only has an effect if rates are increased (we always allow users to overpay fees) or *htlcmax* is decreased, and only applied to a single rate increase per channel (we don't remember an arbitrary number of prior feerates) and if the node is restarted the updated configuration is enforced immediately." - ], - "default": "600, which is ten minutes" - }, - "ignorefeelimits": { - "added": "v23.08", - "type": "boolean", - "description": [ - "If set to True means to allow the peer to set the commitment transaction fees (or closing transaction fees) to any value they want. This is dangerous: they could set an exorbitant fee (so HTLCs are unenforcable), or a tiny fee (so that commitment transactions cannot be relayed), but avoids channel breakage in case of feerate disagreements. (Note: the global `ignore_fee_limits` setting overrides this)." - ] - } - } - }, - "response": { - "required": [ - "channels" - ], - "properties": { - "channels": { - "type": "array", - "description": [ - "Channel(s) set, and their resulting configuration." - ], - "items": { + "response": { + "required": [ + "config" + ], + "properties": { + "config": { "type": "object", + "description": [ + "Config settings after completion." + ], "additionalProperties": false, "required": [ - "peer_id", - "channel_id", - "fee_base_msat", - "fee_proportional_millionths", - "minimum_htlc_out_msat", - "maximum_htlc_out_msat", - "ignore_fee_limits" + "config", + "source", + "dynamic" ], "properties": { - "peer_id": { - "type": "pubkey", - "description": [ - "The node_id of the peer." - ] - }, - "channel_id": { - "type": "hash", + "config": { + "type": "string", "description": [ - "The channel_id of the channel." + "Name of the config variable which was set." ] }, - "short_channel_id": { - "type": "short_channel_id", + "source": { + "type": "string", "description": [ - "The short_channel_id (if locked in)." + "Source of configuration setting (`file`:`linenum`)." ] }, - "fee_base_msat": { - "type": "msat", + "plugin": { + "type": "string", "description": [ - "The resulting feebase (this is the BOLT #7 name)." + "The plugin this configuration setting is for." ] }, - "fee_proportional_millionths": { - "type": "u32", + "dynamic": { + "type": "boolean", + "enum": [ + true + ], "description": [ - "The resulting feeppm (this is the BOLT #7 name)." + "Whether this option is settable via setconfig." ] }, - "ignore_fee_limits": { + "set": { "type": "boolean", - "added": "v23.08", "description": [ - "If we are now allowing peer to set feerate on commitment transaction without restriction." + "For simple flag options." ] }, - "minimum_htlc_out_msat": { - "type": "msat", + "value_str": { + "type": "string", "description": [ - "The resulting htlcmin we will advertize (the BOLT #7 name is htlc_minimum_msat)." + "For string options." ] }, - "warning_htlcmin_too_low": { - "type": "string", + "value_msat": { + "type": "msat", "description": [ - "The requested htlcmin was too low for this peer, so we set it to the minimum they will allow." + "For msat options." ] }, - "maximum_htlc_out_msat": { - "type": "msat", + "value_int": { + "type": "integer", "description": [ - "The resulting htlcmax we will advertize (the BOLT #7 name is htlc_maximum_msat)." + "For integer options." ] }, - "warning_htlcmax_too_high": { - "type": "string", + "value_bool": { + "type": "boolean", "description": [ - "The requested htlcmax was greater than the channel capacity, so we set it to the channel capacity." + "For boolean options." ] } } } } - } - }, - "errors": [ - "The following error codes may occur:", - "", - "- -1: Channel is in incorrect state, i.e. Catchall nonspecific error.", - "- -32602: JSONRPC2_INVALID_PARAMS, i.e. Given id is not a channel ID or short channel ID." - ], - "json_example": [ - { - "request": { - "id": "example:setchannel#1", - "method": "setchannel", - "params": { - "id": "103x1x0", - "feebase": null, - "feeppm": null, - "htlcmin": null, - "htlcmax": null, - "enforcedelay": null, - "ignorefeelimits": true - } - }, - "response": { - "channels": [ - { - "peer_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "channel_id": "90210d39d12a65d239ece267c5f48e0a82e7cb95724e658f6d99f370064faad1", - "short_channel_id": "103x1x0", - "fee_base_msat": 1, - "fee_proportional_millionths": 10, - "minimum_htlc_out_msat": 0, - "maximum_htlc_out_msat": 990000000, - "ignore_fee_limits": true - } - ] - } }, - { - "request": { - "id": "example:setchannel#2", - "method": "setchannel", - "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "feebase": 4000, - "feeppm": 300, - "htlcmin": null, - "htlcmax": null, - "enforcedelay": 0, - "ignorefeelimits": null + "errors": [ + "The following error codes may occur:", + "", + "- -32602: JSONRPC2_INVALID_PARAMS, i.e. the parameter is not dynamic, or the val was invalid." + ], + "json_example": [ + { + "request": { + "id": "example:setconfig#1", + "method": "setconfig", + "params": [ + "autoclean-paidinvoices-age", + 1 + ] + }, + "response": { + "config": { + "config": "autoclean-paidinvoices-age", + "value_int": 1, + "source": "/tmp/ltests-7u_8_rtu/test_autoclean_1/lightning-3/regtest/config:6", + "plugin": "~/lightning/plugins/autoclean", + "dynamic": true + } } }, - "response": { - "channels": [ - { - "peer_id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "channel_id": "9c54c71bbbe59591cc3162e14fc4ff58c146f085c07d0f206ea679a8231d03ab", - "short_channel_id": "103x3x0", - "fee_base_msat": 4000, - "fee_proportional_millionths": 300, - "minimum_htlc_out_msat": 0, - "maximum_htlc_out_msat": 990000000, - "ignore_fee_limits": false + { + "request": { + "id": "example:setconfig#2", + "method": "setconfig", + "params": [ + "test-dynamic-config", + "changed" + ] + }, + "response": { + "config": { + "config": "test-dynamic-config", + "value_str": "changed", + "source": "/tmp/ltests-7u_8_rtu/test_dynamic_option_python_plugin_1/lightning-1/regtest/config:2", + "plugin": "~/lightning/tests/plugins/dynamic_option.py", + "dynamic": true } - ] - } - } - ], - "author": [ - "Michael Schmoock <> is the author of this feature." - ], - "see_also": [ - "lightningd-config(5)", - "lightning-fundchannel(7)", - "lightning-listchannels(7)", - "lightning-listpeers(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-setconfig.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.08", - "rpc": "setconfig", - "title": "Dynamically change some config options", - "description": [ - "The **setconfig** RPC command allows you set the (dynamic) configuration option named by `config`: options which take a value (as separate from simple flag options) also need a `val` parameter.", - "", - "This new value will *also* be written at the end of the config file, for persistence across restarts (and any old value commented out).", - "", - "You can see what options are dynamically adjustable using lightning- listconfigs(7). Note that you can also adjust existing options for stopped plugins; they will have an effect when the plugin is restarted." - ], - "request": { - "required": [ - "config" - ], - "properties": { - "config": { - "type": "string", - "description": [ - "Name of the config variable which should be set to the value of the variable." - ] + } }, - "val": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "integer" - }, - { - "type": "boolean" + { + "request": { + "id": "example:setconfig#3", + "method": "setconfig", + "params": { + "config": "min-capacity-sat", + "val": 500000 } - ], - "description": [ - "Value of the config variable to be set or updated." - ] - } - } - }, - "response": { - "required": [ - "config" - ], - "properties": { - "config": { - "type": "object", - "description": [ - "Config settings after completion." - ], - "additionalProperties": false, - "required": [ - "config", - "source", - "dynamic" - ], - "properties": { + }, + "response": { "config": { - "type": "string", - "description": [ - "Name of the config variable which was set." - ] - }, - "source": { - "type": "string", - "description": [ - "Source of configuration setting (`file`:`linenum`)." - ] - }, - "plugin": { - "type": "string", - "description": [ - "The plugin this configuration setting is for." - ] - }, - "dynamic": { - "type": "boolean", - "enum": [ - true - ], - "description": [ - "Whether this option is settable via setconfig." - ] - }, - "set": { - "type": "boolean", - "description": [ - "For simple flag options." - ] - }, - "value_str": { - "type": "string", - "description": [ - "For string options." - ] - }, - "value_msat": { - "type": "msat", - "description": [ - "For msat options." - ] - }, - "value_int": { - "type": "integer", - "description": [ - "For integer options." - ] - }, - "value_bool": { - "type": "boolean", - "description": [ - "For boolean options." - ] + "config": "min-capacity-sat", + "value_int": 500000, + "source": "/tmp/ltests-nvfdbou2/test_setconfig_1/lightning-2/regtest/config:2", + "dynamic": true } } } - } + ], + "author": [ + "Rusty Russell <> is mainly responsible for this feature." + ], + "see_also": [ + "lightningd-config(5)", + "lightning-listconfigs(7)" + ], + "resources": [ + "Main web site: " + ] }, - "errors": [ - "The following error codes may occur:", - "", - "- -32602: JSONRPC2_INVALID_PARAMS, i.e. the parameter is not dynamic, or the val was invalid." - ], - "json_example": [ - { - "request": { - "id": "example:setconfig#1", - "method": "setconfig", - "params": [ - "autoclean-paidinvoices-age", - 1 - ] - }, - "response": { - "config": { - "config": "autoclean-paidinvoices-age", - "value_int": 1, - "source": "/tmp/ltests-7u_8_rtu/test_autoclean_1/lightning-3/regtest/config:6", - "plugin": "~/lightning/plugins/autoclean", - "dynamic": true + "lightning-setpsbtversion.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "setpsbtversion", + "title": "Command for setting PSBT version", + "description": [ + "The **setpsbtversion** RPC command converts the provided PSBT to the given version, and returns the base64 result of the conversion. Returns an error if version is invalid." + ], + "request": { + "required": [ + "psbt", + "version" + ], + "properties": { + "psbt": { + "type": "string", + "description": [ + "The PSBT to change versions." + ] + }, + "version": { + "type": "u32", + "description": [ + "The version to set." + ] } } }, - { - "request": { - "id": "example:setconfig#2", - "method": "setconfig", - "params": [ - "test-dynamic-config", - "changed" - ] - }, - "response": { - "config": { - "config": "test-dynamic-config", - "value_str": "changed", - "source": "/tmp/ltests-7u_8_rtu/test_dynamic_option_python_plugin_1/lightning-1/regtest/config:2", - "plugin": "~/lightning/tests/plugins/dynamic_option.py", - "dynamic": true + "response": { + "required": [ + "psbt" + ], + "properties": { + "psbt": { + "type": "string", + "description": [ + "A converted PSBT of the requested version." + ] } } }, - { - "request": { - "id": "example:setconfig#3", - "method": "setconfig", - "params": { - "config": "min-capacity-sat", - "val": 500000 + "json_example": [ + { + "request": { + "id": "example:setpsbtversion#1", + "method": "setpsbtversion", + "params": { + "psbt": "cHNidP8BAAoCAAAAAAAAAAAAAA==", + "version": "2" + } + }, + "response": { + "psbt": "cHNidP8BAgQCAAAAAQQBAAEFAQABBgEDAfsEAgAAAAA=" } }, - "response": { - "config": { - "config": "min-capacity-sat", - "value_int": 500000, - "source": "/tmp/ltests-nvfdbou2/test_setconfig_1/lightning-2/regtest/config:2", - "dynamic": true + { + "request": { + "id": "example:setpsbtversion#2", + "method": "setpsbtversion", + "params": [ + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIJd6ICNAQALFOMhoUHuSVSuzcaUdkDKlk4K+A+DR9+4uAA==", + 0 + ] + }, + "response": { + "psbt": "cHNidP8BADUCAAAAAAFAQg8AAAAAACJRIJd6ICNAQALFOMhoUHuSVSuzcaUdkDKlk4K+A+DR9+4ubwAAAAAA" } } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible for this feature." - ], - "see_also": [ - "lightningd-config(5)", - "lightning-listconfigs(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-setpsbtversion.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "setpsbtversion", - "title": "Command for setting PSBT version", - "description": [ - "The **setpsbtversion** RPC command converts the provided PSBT to the given version, and returns the base64 result of the conversion. Returns an error if version is invalid." - ], - "request": { - "required": [ - "psbt", - "version" ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "The PSBT to change versions." - ] - }, - "version": { - "type": "u32", - "description": [ - "The version to set." - ] - } - } - }, - "response": { - "required": [ - "psbt" + "errors": [ + "The following error codes may occur:", + "", + "- -32602: Parameter missed or malformed." ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "A converted PSBT of the requested version." - ] - } - } + "author": [ + "Gregory Sanders <> is mainly responsible." + ], + "see_also": [ + "lightning-fundpsbt(7)", + "lightning-utxopsbt(7)", + "lightning-signpsbt(7)" + ], + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:setpsbtversion#1", - "method": "setpsbtversion", - "params": { - "psbt": "cHNidP8BAAoCAAAAAAAAAAAAAA==", - "version": "2" + "lightning-showrunes.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.08", + "rpc": "showrunes", + "title": "Command to list previously generated runes", + "description": [ + "The **showrunes** RPC command either lists runes that we stored as we generate them (see lightning-createrune(7)) or decodes the rune given on the command line." + ], + "request": { + "required": [], + "properties": { + "rune": { + "type": "string", + "description": [ + "If specified, only details of that rune will be returned." + ] } - }, - "response": { - "psbt": "cHNidP8BAgQCAAAAAQQBAAEFAQABBgEDAfsEAgAAAAA=" } }, - { - "request": { - "id": "example:setpsbtversion#2", - "method": "setpsbtversion", - "params": [ - "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIJd6ICNAQALFOMhoUHuSVSuzcaUdkDKlk4K+A+DR9+4uAA==", - 0 - ] - }, - "response": { - "psbt": "cHNidP8BADUCAAAAAAFAQg8AAAAAACJRIJd6ICNAQALFOMhoUHuSVSuzcaUdkDKlk4K+A+DR9+4ubwAAAAAA" - } - } - ], - "errors": [ - "The following error codes may occur:", - "", - "- -32602: Parameter missed or malformed." - ], - "author": [ - "Gregory Sanders <> is mainly responsible." - ], - "see_also": [ - "lightning-fundpsbt(7)", - "lightning-utxopsbt(7)", - "lightning-signpsbt(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-showrunes.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.08", - "rpc": "showrunes", - "title": "Command to list previously generated runes", - "description": [ - "The **showrunes** RPC command either lists runes that we stored as we generate them (see lightning-createrune(7)) or decodes the rune given on the command line." - ], - "request": { - "required": [], - "properties": { - "rune": { - "type": "string", - "description": [ - "If specified, only details of that rune will be returned." - ] - } - } - }, - "response": { - "required": [ - "runes" - ], - "properties": { - "runes": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "rune", - "unique_id", - "restrictions", - "restrictions_as_english" - ], - "properties": { - "rune": { - "type": "string", - "description": [ - "Base64 encoded rune." - ] - }, - "unique_id": { - "type": "string", - "description": [ - "Unique id assigned when the rune was generated; this is always a u64 for commando runes." - ] - }, - "restrictions": { - "type": "array", - "description": [ - "The restrictions on what commands this rune can authorize." - ], - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "alternatives", - "english" + "response": { + "required": [ + "runes" + ], + "properties": { + "runes": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "rune", + "unique_id", + "restrictions", + "restrictions_as_english" + ], + "properties": { + "rune": { + "type": "string", + "description": [ + "Base64 encoded rune." + ] + }, + "unique_id": { + "type": "string", + "description": [ + "Unique id assigned when the rune was generated; this is always a u64 for commando runes." + ] + }, + "restrictions": { + "type": "array", + "description": [ + "The restrictions on what commands this rune can authorize." ], - "properties": { - "alternatives": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "required": [ - "fieldname", - "value", - "condition", - "english" - ], - "properties": { - "fieldname": { - "type": "string", - "description": [ - "The field this restriction applies to; see commando-rune(7)." - ] - }, - "value": { - "type": "string", - "description": [ - "The value accepted for this field." - ] - }, - "condition": { - "type": "string", - "description": [ - "The way to compare fieldname and value." - ] - }, - "english": { - "type": "string", - "description": [ - "English readable description of this alternative." - ] + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "alternatives", + "english" + ], + "properties": { + "alternatives": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "fieldname", + "value", + "condition", + "english" + ], + "properties": { + "fieldname": { + "type": "string", + "description": [ + "The field this restriction applies to; see commando-rune(7)." + ] + }, + "value": { + "type": "string", + "description": [ + "The value accepted for this field." + ] + }, + "condition": { + "type": "string", + "description": [ + "The way to compare fieldname and value." + ] + }, + "english": { + "type": "string", + "description": [ + "English readable description of this alternative." + ] + } } } + }, + "english": { + "type": "string", + "description": [ + "English readable summary of alternatives above." + ] } - }, - "english": { - "type": "string", - "description": [ - "English readable summary of alternatives above." - ] } } + }, + "restrictions_as_english": { + "type": "string", + "description": [ + "English readable description of the restrictions array above." + ] + }, + "stored": { + "type": "boolean", + "enum": [ + false + ], + "description": [ + "This is false if the rune does not appear in our datastore (only possible when `rune` is specified)." + ] + }, + "blacklisted": { + "type": "boolean", + "enum": [ + true + ], + "description": [ + "The rune has been blacklisted; see commando-blacklist(7)." + ] + }, + "last_used": { + "type": "number", + "description": [ + "The last time this rune was successfully used." + ], + "added": "23.11" + }, + "our_rune": { + "type": "boolean", + "enum": [ + false + ], + "description": [ + "This is not a rune for this node (only possible when `rune` is specified)." + ] } + } + } + } + } + }, + "json_example": [ + { + "request": { + "id": "example:showrunes#1", + "method": "showrunes", + "params": "{}" + }, + "response": { + "runes": [ + { + "rune": "OSqc7ixY6F-gjcigBfxtzKUI54uzgFSA6YfBQoWGDV89MA==", + "unique_id": "0", + "restrictions": [], + "restrictions_as_english": "" }, - "restrictions_as_english": { - "type": "string", - "description": [ - "English readable description of the restrictions array above." - ] - }, - "stored": { - "type": "boolean", - "enum": [ - false - ], - "description": [ - "This is false if the rune does not appear in our datastore (only possible when `rune` is specified)." - ] - }, - "blacklisted": { - "type": "boolean", - "enum": [ - true - ], - "description": [ - "The rune has been blacklisted; see commando-blacklist(7)." - ] - }, - "last_used": { - "type": "number", - "description": [ - "The last time this rune was successfully used." - ], - "added": "23.11" + { + "rune": "geZmO6U7yqpHn-moaX93FVMVWrDRfSNY4AXx9ypLcqg9MQ==", + "unique_id": "1", + "restrictions": [], + "restrictions_as_english": "" }, - "our_rune": { - "type": "boolean", - "enum": [ - false + { + "rune": "Bl0V_vkVkGr4h356JbCMCcoDyyKE8djkoQ2156iPB509MCZwZXI9MTAwMDAwMDAwMG5zZWM=", + "unique_id": "2", + "restrictions": [ + { + "alternatives": [ + { + "fieldname": "per", + "value": "1000000000nsec", + "condition": "=", + "english": "per equal to 1000000000nsec" + } + ], + "english": "per equal to 1000000000nsec" + } ], - "description": [ - "This is not a rune for this node (only possible when `rune` is specified)." - ] + "restrictions_as_english": "per equal to 1000000000nsec" } + ] + } + }, + { + "request": { + "id": "example:showrunes#2", + "method": "showrunes", + "params": { + "rune": "Bl0V_vkVkGr4h356JbCMCcoDyyKE8djkoQ2156iPB509MCZwZXI9MTAwMDAwMDAwMG5zZWM=" } + }, + "response": { + "runes": [ + { + "rune": "Bl0V_vkVkGr4h356JbCMCcoDyyKE8djkoQ2156iPB509MCZwZXI9MTAwMDAwMDAwMG5zZWM=", + "unique_id": "2", + "restrictions": [ + { + "alternatives": [ + { + "fieldname": "per", + "value": "1000000000nsec", + "condition": "=", + "english": "per equal to 1000000000nsec" + } + ], + "english": "per equal to 1000000000nsec" + } + ], + "restrictions_as_english": "per equal to 1000000000nsec" + } + ] + } + } + ], + "author": [ + "Shahana Farooqui <> is mainly responsible." + ], + "see_also": [ + "lightning-commando-showrunes(7)", + "lightning-blacklistrune(7)" + ], + "resources": [ + "Main web site: " + ] + }, + "lightning-signinvoice.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.02", + "rpc": "signinvoice", + "title": "Low-level invoice signing", + "description": [ + "The **signinvoice** RPC command signs an invoice. Unlike **createinvoice** it does not save the invoice into the database and thus does not require the preimage." + ], + "request": { + "required": [ + "invstring" + ], + "properties": { + "invstring": { + "type": "string", + "description": [ + "Bolt11 form, but the final signature is ignored. Minimal sanity checks are done." + ] + } + } + }, + "response": { + "required": [ + "bolt11" + ], + "properties": { + "bolt11": { + "type": "string", + "description": [ + "The bolt11 string." + ] + } + } + }, + "errors": [ + "The following error codes may occur:", + "", + "- -1: Catchall nonspecific error." + ], + "json_example": [ + { + "request": { + "id": "example:signinvoice#1", + "method": "signinvoice", + "params": [ + "lnbcrt10n1pjmxt3lsp5jumuz2sv3ca68kzd92hp3wdtpx8ghnxur65fs6maw6dyxsleqd0spp5nadvvh7uzk2qzh8d9d7tsxr08l9uaz2vjeuuahqtufjv52d0eassdq8d9h8vvgxqyjw5qcqp99qxpqysgq4rrn702eum6c9ld9khlz39vdyd8zcwrav5ygqvu6w54aep6yarkyfrnk990yf5prpasgzmj52stektf6mzwdl5hc6qlsglt2a0pwp0spwww44w" + ] + }, + "response": { + "bolt11": "lnbcrt10n1pjmxt3lsp5jumuz2sv3ca68kzd92hp3wdtpx8ghnxur65fs6maw6dyxsleqd0spp5nadvvh7uzk2qzh8d9d7tsxr08l9uaz2vjeuuahqtufjv52d0eassdq8d9h8vvgxqyjw5qcqp99qxpqysgq3nhrd72qe7wmc2hvwhaqnx05y6dzxh2tal02kw055er7uutkkrcreccm37ce6wv7ee8q70ktlr9fy3fd635hc2k98a4svd9c8v4cpjsppm2eee" } } - } + ], + "author": [ + "Carl Dong <> is mainly responsible." + ], + "see_also": [ + "lightning-createinvoice(7)", + "lightning-invoice(7)", + "lightning-listinvoices(7)", + "lightning-delinvoice(7)", + "lightning-getroute(7)", + "lightning-sendpay(7)", + "lightning-offer(7)" + ], + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:showrunes#1", - "method": "showrunes", - "params": "{}" - }, - "response": { - "runes": [ - { - "rune": "OSqc7ixY6F-gjcigBfxtzKUI54uzgFSA6YfBQoWGDV89MA==", - "unique_id": "0", - "restrictions": [], - "restrictions_as_english": "" - }, - { - "rune": "geZmO6U7yqpHn-moaX93FVMVWrDRfSNY4AXx9ypLcqg9MQ==", - "unique_id": "1", - "restrictions": [], - "restrictions_as_english": "" - }, - { - "rune": "Bl0V_vkVkGr4h356JbCMCcoDyyKE8djkoQ2156iPB509MCZwZXI9MTAwMDAwMDAwMG5zZWM=", - "unique_id": "2", - "restrictions": [ - { - "alternatives": [ - { - "fieldname": "per", - "value": "1000000000nsec", - "condition": "=", - "english": "per equal to 1000000000nsec" - } - ], - "english": "per equal to 1000000000nsec" - } - ], - "restrictions_as_english": "per equal to 1000000000nsec" - } - ] + "lightning-signmessage.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "signmessage", + "title": "Command to create a signature from this node", + "description": [ + "The **signmessage** RPC command creates a digital signature of *message* using this node's secret key. A receiver who knows your node's *id* and the *message* can be sure that the resulting signature could only be created by something with access to this node's secret key." + ], + "request": { + "required": [ + "message" + ], + "properties": { + "message": { + "type": "string", + "description": [ + "Less than 65536 characters long message to be signed by the node." + ] + } } }, - { - "request": { - "id": "example:showrunes#2", - "method": "showrunes", - "params": { - "rune": "Bl0V_vkVkGr4h356JbCMCcoDyyKE8djkoQ2156iPB509MCZwZXI9MTAwMDAwMDAwMG5zZWM=" + "response": { + "required": [ + "signature", + "recid", + "zbase" + ], + "properties": { + "signature": { + "type": "hex", + "description": [ + "The signature." + ], + "minLength": 128, + "maxLength": 128 + }, + "recid": { + "type": "hex", + "description": [ + "The recovery id (0, 1, 2 or 3)." + ], + "minLength": 2, + "maxLength": 2 + }, + "zbase": { + "type": "string", + "description": [ + "*signature* and *recid* encoded in a style compatible with **lnd**'s [SignMessageRequest](https://api.lightning.community/#grpc-request- signmessagerequest)." + ] + } + } + }, + "json_example": [ + { + "request": { + "id": "example:signmessage#1", + "method": "signmessage", + "params": { + "message": "this is a test!" + } + }, + "response": { + "signature": "a2ec227012795f9d6b80a3f5ea98374c6d2886917517c05336799923fcf37caf08344c0431275e1a8189da01b444ae978007fe70f0cc9009f38cabe074ade87d", + "recid": "00", + "zbase": "d6tqaeuonjhi98mmont9m4wag7gg4krg1f4txonug3h31e9h6p6k6nbwjondnj46dkyausobstnk7fhyy998bhgc1yr98dfmhb4k54d7" } }, - "response": { - "runes": [ - { - "rune": "Bl0V_vkVkGr4h356JbCMCcoDyyKE8djkoQ2156iPB509MCZwZXI9MTAwMDAwMDAwMG5zZWM=", - "unique_id": "2", - "restrictions": [ - { - "alternatives": [ - { - "fieldname": "per", - "value": "1000000000nsec", - "condition": "=", - "english": "per equal to 1000000000nsec" - } - ], - "english": "per equal to 1000000000nsec" - } - ], - "restrictions_as_english": "per equal to 1000000000nsec" + { + "request": { + "id": "example:signmessage#2", + "method": "signmessage", + "params": { + "message": "message for you" } - ] + }, + "response": { + "signature": "85843b010bc517b32eaafe70232e2c44bb5a354c74d2202390af1b272e4c6ac23ac3f97ea663d8b49116ad6c2d080515b43bcdf1ea4f38cdb18af0edf8209cd8", + "recid": "00", + "zbase": "d6naeqabbxntxc3qim98ye3qftnmsstijt4prebd1nztsj3qjticrqsd9f9kca6as1etpmmcfwrykfpw8xg9d41x8dg5dnzo7zhnb8ga" + } } - } - ], - "author": [ - "Shahana Farooqui <> is mainly responsible." - ], - "see_also": [ - "lightning-commando-showrunes(7)", - "lightning-blacklistrune(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-signinvoice.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.02", - "rpc": "signinvoice", - "title": "Low-level invoice signing", - "description": [ - "The **signinvoice** RPC command signs an invoice. Unlike **createinvoice** it does not save the invoice into the database and thus does not require the preimage." - ], - "request": { - "required": [ - "invstring" ], - "properties": { - "invstring": { - "type": "string", - "description": [ - "Bolt11 form, but the final signature is ignored. Minimal sanity checks are done." - ] - } - } + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-checkmessage(7)" + ], + "resources": [ + "Main web site: ", + "", + "[SignMessageRequest](https://api.lightning.community/#grpc-request-signmessagerequest)" + ] }, - "response": { - "required": [ - "bolt11" + "lightning-signpsbt.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "signpsbt", + "title": "Command to sign a wallet's inputs on a provided bitcoin transaction (PSBT).", + "description": [ + "**signpsbt** is a low-level RPC command which signs a PSBT as defined by BIP-174.", + "", + "By default, all known inputs are signed, and others ignored: with *signonly*, only those inputs are signed, and an error is returned if one of them cannot be signed.", + "", + "Note that the command will fail if there are no inputs to sign, or if the inputs to be signed were not previously reserved." ], - "properties": { - "bolt11": { - "type": "string", - "description": [ - "The bolt11 string." - ] + "request": { + "required": [ + "psbt" + ], + "properties": { + "psbt": { + "type": "string", + "description": [ + "The psbt to be signed." + ] + }, + "signonly": { + "type": "array", + "description": [ + "Input numbers to sign." + ], + "items": { + "type": "u32" + } + } } - } - }, - "errors": [ - "The following error codes may occur:", - "", - "- -1: Catchall nonspecific error." - ], - "json_example": [ - { - "request": { - "id": "example:signinvoice#1", - "method": "signinvoice", - "params": [ - "lnbcrt10n1pjmxt3lsp5jumuz2sv3ca68kzd92hp3wdtpx8ghnxur65fs6maw6dyxsleqd0spp5nadvvh7uzk2qzh8d9d7tsxr08l9uaz2vjeuuahqtufjv52d0eassdq8d9h8vvgxqyjw5qcqp99qxpqysgq4rrn702eum6c9ld9khlz39vdyd8zcwrav5ygqvu6w54aep6yarkyfrnk990yf5prpasgzmj52stektf6mzwdl5hc6qlsglt2a0pwp0spwww44w" - ] + }, + "response": { + "required": [ + "signed_psbt" + ], + "properties": { + "signed_psbt": { + "type": "string", + "description": [ + "The fully signed PSBT." + ] + } + } + }, + "json_example": [ + { + "request": { + "id": "example:signpsbt#1", + "method": "signpsbt", + "params": { + "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEOIFZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQ8EAAAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCCvyYqqdIt0mAAEA9gIAAAAAAQGLpTM0gWEqICjgcZNyoPhzdB5fNZBrEFbsNpsKHrTd9wEAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIBZa5i8jVPdfV4pbIzSebMb5RN+l5lJkQKAw9+ivAWfnAiBNhehz79143DbFOoTjmPYVErlY0FLlVqojX9wat0aKXgEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPGAAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oBDiBWd3IcNaQkoj1tzHyQkDblBa5oZQ4J1ZcztLfnMAOk3AEPBAEAAAABEAT9////DPwJbGlnaHRuaW5nAQg5j4QWOQoUFAABAwhOfA0AAAAAAAEEIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4M/AlsaWdodG5pbmcBCMbeD+3qn9/kAAEDCODIEAAAAAAAAQQiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQz8CWxpZ2h0bmluZwEI4upB+mjl6AIA", + "signonly": null + } + }, + "response": { + "signed_psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEOIFZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQ8EAAAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCCvyYqqdIt0mAAEA9gIAAAAAAQGLpTM0gWEqICjgcZNyoPhzdB5fNZBrEFbsNpsKHrTd9wEAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIBZa5i8jVPdfV4pbIzSebMb5RN+l5lJkQKAw9+ivAWfnAiBNhehz79143DbFOoTjmPYVErlY0FLlVqojX9wat0aKXgEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPGAAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oBDiBWd3IcNaQkoj1tzHyQkDblBa5oZQ4J1ZcztLfnMAOk3AEPBAEAAAABEAT9////ARNACI9TcWG+6uC9ElBFN3qhND7amsor/dtBhJ5ujEQAT/80548avrt7d7IJiOAaCNzzYLSXITdL2xjx6mhbBi9hTiEWkUUygSpECk12bHHNORk2lKNArhHgEuW6Gtnvum52ylMJAMLMqxcAAAAADPwJbGlnaHRuaW5nAQg5j4QWOQoUFAABAwhOfA0AAAAAAAEEIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4hB7nAxoROEqUxyWjlXFUHjsFtm/dr6SkP2H0cynK0g5oXCQDWuWnTBAAAAAz8CWxpZ2h0bmluZwEIxt4P7eqf3+QAAQMI4MgQAAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNDPwJbGlnaHRuaW5nAQji6kH6aOXoAgA=" + } }, - "response": { - "bolt11": "lnbcrt10n1pjmxt3lsp5jumuz2sv3ca68kzd92hp3wdtpx8ghnxur65fs6maw6dyxsleqd0spp5nadvvh7uzk2qzh8d9d7tsxr08l9uaz2vjeuuahqtufjv52d0eassdq8d9h8vvgxqyjw5qcqp99qxpqysgq3nhrd72qe7wmc2hvwhaqnx05y6dzxh2tal02kw055er7uutkkrcreccm37ce6wv7ee8q70ktlr9fy3fd635hc2k98a4svd9c8v4cpjsppm2eee" + { + "request": { + "id": "example:signpsbt#2", + "method": "signpsbt", + "params": { + "psbt": "cHNidP8BAP1xAQIAAAAIFTef27H2GAJBzP4UZMeDePsDVkglO47/q4jqK18ibCYAAAAAAP3///+axwap6WKnEHvLjIJZX0ZeJ87cs7PKkXBfwvbGVmjpTQEAAAAA/f///wQ1cVzb9NR7nXadyRuhQBv+2iqhZkhvUA+sPo5z/SsSAQAAAAD9////lXQ788meUtSxhBX13mx2XhyM3Ddo30QtmNW0YuE2TDABAAAAAP3///8Kr4BwElAScx3bA5ZdavrHwh4Zh+rFNvkE/+7gu1WbngEAAAAA/f///3Uei7j3k/b5tnjFGvNZhe2iWz8O6FQjTEpM5XIoduNsAQAAAAD9////fm5Om4MojcnfZiTmrwb4b5Byw9emrjITi/nkEqTK9MsBAAAAAP3///8lwdpZqt3ILPRwhINY4PGvkg2CSw7agcMPSuFoHDDkIQAAAAAA/f///wGCAXoAAAAAABYAFMkJbUP0COpSYCAmLM2tfIUWuSqBAAAAAAABAHECAAAAAZVxzFxyEg7tiQTgRHwGleR8Srxw6taAGOoEpJK/Xj5sAAAAAAD9////AkBCDwAAAAAAFgAUKvGgVL/ThjWE/P1oORVXh/ObucYzr/YpAQAAABYAFKmkod5S53U4m5tKFApyeC35UbnbZwAAAAEBH0BCDwAAAAAAFgAUKvGgVL/ThjWE/P1oORVXh/ObucYAAQBxAgAAAAEVN5/bsfYYAkHM/hRkx4N4+wNWSCU7jv+riOorXyJsJgEAAAAA/f///wJmbOcpAQAAABYAFCCSJBD9wY/VwxnBcnFiu1tA6CGTQEIPAAAAAAAWABSjI8KCqaGX/BGOwJza8hyiuxuIcmcAAAABAR9AQg8AAAAAABYAFKMjwoKpoZf8EY7AnNryHKK7G4hyAAEAcQIAAAAB98EwKZMOHiyRYWyToae6Kce3gCwqUvnVXXHlB/ps9ocBAAAAAP3///8CmNuLKQEAAAAWABQ4roxw+phYHelaRr71DYB3FEy/30BCDwAAAAAAFgAUwSDtQiY7PVvBc7ww56Y72YIQdjllAAAAAQEfQEIPAAAAAAAWABTBIO1CJjs9W8FzvDDnpjvZghB2OQABAHECAAAAAZH/SvCXvDW7b8qb55CDC4M+jgZ61H/e8rZnAGaXp+Z+AAAAAAD9////Apkp2CkBAAAAFgAUc/Y+sIq3oYyEe40GkKJsXawkzwFAQg8AAAAAABYAFLdt1h5Bte8FKvIc2jJgiIwHC7mvZwAAAAEBH0BCDwAAAAAAFgAUt23WHkG17wUq8hzaMmCIjAcLua8AAQBxAgAAAAETC3wMCv9qK3lvVkVJu9b/v2VgMepZtnfngMp2xMXRnwAAAAAA/f///wJk0E4pAQAAABYAFEIsc4cBl+BTN33Kn80+YYfkMt+cQEIPAAAAAAAWABT2/7RIxKohhGbacpBz0BZNYcnfsGUAAAABAR9AQg8AAAAAABYAFPb/tEjEqiGEZtpykHPQFk1hyd+wAAEAcQIAAAABA8J/OnC+cuH79Z6wZmzwdAjhBDaPHavh3yvhr4odDXQBAAAAAP3///8CykowKQEAAAAWABTVHuO8cKOOX/JlmMU66on6Uc54mkBCDwAAAAAAFgAUunZMZryWMqCTiMuVWNF/cleg6dVnAAAAAQEfQEIPAAAAAAAWABS6dkxmvJYyoJOIy5VY0X9yV6Dp1QABAHECAAAAAfRxBaZZ3FfDGwxhZQLYCurN+7kJj0x6nzChg434dnjRAAAAAAD9////AszmyCkBAAAAFgAULSqRp54barF/7R9XOmsLDCVWdAFAQg8AAAAAABYAFNa5adNt/9rZhpGT9mPuSA39xzSIZQAAAAEBH0BCDwAAAAAAFgAU1rlp023/2tmGkZP2Y+5IDf3HNIgAAQBxAgAAAAEgk1JYyP4oIoPoYYcTPPDvZynVfXWINJnBEFBsLv0MtAAAAAAA/f///wJAQg8AAAAAABYAFGYcI7eQ3TSRNzrwsdi+0Id9XN4iMmGqKQEAAAAWABT5XKNwVIFsUKh26sqHFSlOLq5TFGUAAAABAR9AQg8AAAAAABYAFGYcI7eQ3TSRNzrwsdi+0Id9XN4iAAA=", + "signonly": [ + 7 + ] + } + }, + "response": { + "signed_psbt": "cHNidP8BAP1xAQIAAAAIFTef27H2GAJBzP4UZMeDePsDVkglO47/q4jqK18ibCYAAAAAAP3///+axwap6WKnEHvLjIJZX0ZeJ87cs7PKkXBfwvbGVmjpTQEAAAAA/f///wQ1cVzb9NR7nXadyRuhQBv+2iqhZkhvUA+sPo5z/SsSAQAAAAD9////lXQ788meUtSxhBX13mx2XhyM3Ddo30QtmNW0YuE2TDABAAAAAP3///8Kr4BwElAScx3bA5ZdavrHwh4Zh+rFNvkE/+7gu1WbngEAAAAA/f///3Uei7j3k/b5tnjFGvNZhe2iWz8O6FQjTEpM5XIoduNsAQAAAAD9////fm5Om4MojcnfZiTmrwb4b5Byw9emrjITi/nkEqTK9MsBAAAAAP3///8lwdpZqt3ILPRwhINY4PGvkg2CSw7agcMPSuFoHDDkIQAAAAAA/f///wGCAXoAAAAAABYAFMkJbUP0COpSYCAmLM2tfIUWuSqBAAAAAAABAHECAAAAAZVxzFxyEg7tiQTgRHwGleR8Srxw6taAGOoEpJK/Xj5sAAAAAAD9////AkBCDwAAAAAAFgAUKvGgVL/ThjWE/P1oORVXh/ObucYzr/YpAQAAABYAFKmkod5S53U4m5tKFApyeC35UbnbZwAAAAEBH0BCDwAAAAAAFgAUKvGgVL/ThjWE/P1oORVXh/ObucYAAQBxAgAAAAEVN5/bsfYYAkHM/hRkx4N4+wNWSCU7jv+riOorXyJsJgEAAAAA/f///wJmbOcpAQAAABYAFCCSJBD9wY/VwxnBcnFiu1tA6CGTQEIPAAAAAAAWABSjI8KCqaGX/BGOwJza8hyiuxuIcmcAAAABAR9AQg8AAAAAABYAFKMjwoKpoZf8EY7AnNryHKK7G4hyAAEAcQIAAAAB98EwKZMOHiyRYWyToae6Kce3gCwqUvnVXXHlB/ps9ocBAAAAAP3///8CmNuLKQEAAAAWABQ4roxw+phYHelaRr71DYB3FEy/30BCDwAAAAAAFgAUwSDtQiY7PVvBc7ww56Y72YIQdjllAAAAAQEfQEIPAAAAAAAWABTBIO1CJjs9W8FzvDDnpjvZghB2OQABAHECAAAAAZH/SvCXvDW7b8qb55CDC4M+jgZ61H/e8rZnAGaXp+Z+AAAAAAD9////Apkp2CkBAAAAFgAUc/Y+sIq3oYyEe40GkKJsXawkzwFAQg8AAAAAABYAFLdt1h5Bte8FKvIc2jJgiIwHC7mvZwAAAAEBH0BCDwAAAAAAFgAUt23WHkG17wUq8hzaMmCIjAcLua8AAQBxAgAAAAETC3wMCv9qK3lvVkVJu9b/v2VgMepZtnfngMp2xMXRnwAAAAAA/f///wJk0E4pAQAAABYAFEIsc4cBl+BTN33Kn80+YYfkMt+cQEIPAAAAAAAWABT2/7RIxKohhGbacpBz0BZNYcnfsGUAAAABAR9AQg8AAAAAABYAFPb/tEjEqiGEZtpykHPQFk1hyd+wAAEAcQIAAAABA8J/OnC+cuH79Z6wZmzwdAjhBDaPHavh3yvhr4odDXQBAAAAAP3///8CykowKQEAAAAWABTVHuO8cKOOX/JlmMU66on6Uc54mkBCDwAAAAAAFgAUunZMZryWMqCTiMuVWNF/cleg6dVnAAAAAQEfQEIPAAAAAAAWABS6dkxmvJYyoJOIy5VY0X9yV6Dp1QABAHECAAAAAfRxBaZZ3FfDGwxhZQLYCurN+7kJj0x6nzChg434dnjRAAAAAAD9////AszmyCkBAAAAFgAULSqRp54barF/7R9XOmsLDCVWdAFAQg8AAAAAABYAFNa5adNt/9rZhpGT9mPuSA39xzSIZQAAAAEBH0BCDwAAAAAAFgAU1rlp023/2tmGkZP2Y+5IDf3HNIgAAQBxAgAAAAEgk1JYyP4oIoPoYYcTPPDvZynVfXWINJnBEFBsLv0MtAAAAAAA/f///wJAQg8AAAAAABYAFGYcI7eQ3TSRNzrwsdi+0Id9XN4iMmGqKQEAAAAWABT5XKNwVIFsUKh26sqHFSlOLq5TFGUAAAABAR9AQg8AAAAAABYAFGYcI7eQ3TSRNzrwsdi+0Id9XN4iIgID+pyVCF5CseUAPNH0GBeMMMluSud5VMoPxIxYgm/06w5HMEQCIG90DSr+fGNoWhCrgLbJG3Wt8PJNMWYqaa5MLWRwA0oTAiA9rsLEqqVhjV6wENfzzpudaE949uLlVqWgDjE/FSgKNAEiBgP6nJUIXkKx5QA80fQYF4wwyW5K53lUyg/EjFiCb/TrDghmHCO3AAAAAAAA" + } } - } - ], - "author": [ - "Carl Dong <> is mainly responsible." - ], - "see_also": [ - "lightning-createinvoice(7)", - "lightning-invoice(7)", - "lightning-listinvoices(7)", - "lightning-delinvoice(7)", - "lightning-getroute(7)", - "lightning-sendpay(7)", - "lightning-offer(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-signmessage.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "signmessage", - "title": "Command to create a signature from this node", - "description": [ - "The **signmessage** RPC command creates a digital signature of *message* using this node's secret key. A receiver who knows your node's *id* and the *message* can be sure that the resulting signature could only be created by something with access to this node's secret key." - ], - "request": { - "required": [ - "message" ], - "properties": { - "message": { - "type": "string", - "description": [ - "Less than 65536 characters long message to be signed by the node." - ] - } - } - }, - "response": { - "required": [ - "signature", - "recid", - "zbase" + "errors": [ + "On failure, one of the following error codes may be returned:", + "", + "- -32602: Error in given parameters, or there aren't wallet's inputs to sign, or we couldn't sign all of *signonly*, or inputs are not reserved." ], - "properties": { - "signature": { - "type": "hex", - "description": [ - "The signature." - ], - "minLength": 128, - "maxLength": 128 - }, - "recid": { - "type": "hex", - "description": [ - "The recovery id (0, 1, 2 or 3)." - ], - "minLength": 2, - "maxLength": 2 - }, - "zbase": { - "type": "string", - "description": [ - "*signature* and *recid* encoded in a style compatible with **lnd**'s [SignMessageRequest](https://api.lightning.community/#grpc-request- signmessagerequest)." - ] - } - } + "author": [ + "Vincenzo Palazzo <> wrote the initial version of this man page,", + "but many others did the hard work of actually implementing this rpc command." + ], + "see_also": [ + "lightning-fundpsbt(7)", + "lightning-sendpsbt(7)" + ], + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:signmessage#1", - "method": "signmessage", - "params": { - "message": "this is a test!" + "lightning-splice_init.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.08", + "rpc": "splice_init", + "title": "Command to initiate a channel to a peer", + "warning": "experimental-splicing only", + "description": [ + "`splice_init` is a low level RPC command which initiates a channel splice for a given channel specified by `channel_id`." + ], + "request": { + "required": [ + "channel_id", + "relative_amount" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "The channel id of the channel to be spliced." + ] + }, + "relative_amount": { + "type": "integer", + "description": [ + "A positive or negative amount of satoshis to add or subtract from the channel. Note you may need to add a double dash (--) after splice_init if using a negative *relative_amount* so it is not interpretted as a command modifier. For example: ```shell lightning-cli splice_init -- $CHANNEL_ID -100000 ```." + ] + }, + "initialpsbt": { + "type": "string", + "description": [ + "The (optional) base 64 encoded PSBT to begin with. If not specified, one will be generated automatically." + ] + }, + "feerate_per_kw": { + "type": "u32", + "description": [ + "The miner fee we promise our peer to pay for our side of the splice transaction. It is calculated by `feerate_per_kw` * our_bytes_in_splice_tx / 1000." + ] + }, + "force_feerate": { + "type": "boolean", + "description": [ + "By default splices will fail if the fee provided looks too high. This is to protect against accidentally setting your fee higher than intended. Set `force_feerate` to true to skip this saftey check." + ] } - }, - "response": { - "signature": "a2ec227012795f9d6b80a3f5ea98374c6d2886917517c05336799923fcf37caf08344c0431275e1a8189da01b444ae978007fe70f0cc9009f38cabe074ade87d", - "recid": "00", - "zbase": "d6tqaeuonjhi98mmont9m4wag7gg4krg1f4txonug3h31e9h6p6k6nbwjondnj46dkyausobstnk7fhyy998bhgc1yr98dfmhb4k54d7" } }, - { - "request": { - "id": "example:signmessage#2", - "method": "signmessage", - "params": { - "message": "message for you" + "response": { + "required": [ + "psbt" + ], + "properties": { + "psbt": { + "type": "string", + "description": [ + "The (incomplete) PSBT of the splice transaction." + ] } - }, - "response": { - "signature": "85843b010bc517b32eaafe70232e2c44bb5a354c74d2202390af1b272e4c6ac23ac3f97ea663d8b49116ad6c2d080515b43bcdf1ea4f38cdb18af0edf8209cd8", - "recid": "00", - "zbase": "d6naeqabbxntxc3qim98ye3qftnmsstijt4prebd1nztsj3qjticrqsd9f9kca6as1etpmmcfwrykfpw8xg9d41x8dg5dnzo7zhnb8ga" } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-checkmessage(7)" - ], - "resources": [ - "Main web site: ", - "", - "[SignMessageRequest](https://api.lightning.community/#grpc-request-signmessagerequest)" - ] - }, - "lightning-signpsbt.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "signpsbt", - "title": "Command to sign a wallet's inputs on a provided bitcoin transaction (PSBT).", - "description": [ - "**signpsbt** is a low-level RPC command which signs a PSBT as defined by BIP-174.", - "", - "By default, all known inputs are signed, and others ignored: with *signonly*, only those inputs are signed, and an error is returned if one of them cannot be signed.", - "", - "Note that the command will fail if there are no inputs to sign, or if the inputs to be signed were not previously reserved." - ], - "request": { - "required": [ - "psbt" + }, + "example_usage": [ + "Here is an example set of splice commands that will splice in 100,000 sats to the first channel that comes out of `listpeerchannels`. The example assumes you already have at least one confirmed channel.", + "", + "```shell", + "RESULT=$(lightning-cli listpeerchannels)", + "CHANNEL_ID=$(echo $RESULT| jq -r \".channels[0].channel_id\")", + "echo $RESULT", + "", + "RESULT=$(lightning-cli fundpsbt -k satoshi=100000sat feerate=urgent startweight=800 excess_as_change=true)", + "INITIALPSBT=$(echo $RESULT | jq -r \".psbt\")", + "echo $RESULT", + "", + "RESULT=$(lightning-cli splice_init $CHANNEL_ID 100000 $INITIALPSBT)", + "PSBT=$(echo $RESULT | jq -r \".psbt\")", + "echo $RESULT", + "", + "RESULT=$(lightning-cli splice_update $CHANNEL_ID $PSBT)", + "PSBT=$(echo $RESULT | jq -r \".psbt\")", + "echo $RESULT", + "", + "RESULT=$(lightning-cli signpsbt -k psbt=\"$PSBT\")", + "PSBT=$(echo $RESULT | jq -r \".signed_psbt\")", + "echo $RESULT", + "", + "lightning-cli splice_signed $CHANNEL_ID $PSBT", + "```", + "", + "Here is an example set of splice commands that will splice out 100,000 sats from first channel that comes out of `listpeerchannels`. The example assumes you already have at least one confirmed channel.", + "", + "```shell", + "RESULT=$(lightning-cli listpeerchannels)", + "CHANNEL_ID=$(echo $RESULT| jq -r \".channels[0].channel_id\")", + "echo $RESULT", + "", + "RESULT=$(lightning-cli addpsbtoutput 100000)", + "INITIALPSBT=$(echo $RESULT | jq -r \".psbt\")", + "echo $RESULT", + "", + "RESULT=$(lightning-cli splice_init -- $CHANNEL_ID -100500 $INITIALPSBT)", + "PSBT=$(echo $RESULT | jq -r \".psbt\")", + "echo $RESULT", + "", + "RESULT=$(lightning-cli splice_update $CHANNEL_ID $PSBT)", + "PSBT=$(echo $RESULT | jq -r \".psbt\")", + "echo $RESULT", + "", + "lightning-cli splice_signed $CHANNEL_ID $PSBT", + "```" ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "The psbt to be signed." - ] + "json_example": [ + { + "request": { + "id": "example:splice_init#1", + "method": "splice_init", + "params": { + "channel_id": "5677721c35a424a23d6dcc7c909036e505ae68650e09d59733b4b7e73003a4dc", + "relative_amount": 100000, + "initialpsbt": "cHNidP8BAF4CAAAAAVZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQAAAAD9////AU58DQAAAAAAIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL5sAAAAAAEA9gIAAAAAAQGLpTM0gWEqICjgcZNyoPhzdB5fNZBrEFbsNpsKHrTd9wEAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIBZa5i8jVPdfV4pbIzSebMb5RN+l5lJkQKAw9+ivAWfnAiBNhehz79143DbFOoTjmPYVErlY0FLlVqojX9wat0aKXgEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPGAAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oAAA==", + "feerate_per_kw": null + } + }, + "response": { + "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEFR1IhAjJCZt6EA7OrFXoJ8feE1YevYYMcmYwVG8whu3TCsjFLIQLjvTgAmGbJ2o7EqpnMTqnGwN1G3xXGHvDOHycSkXFOV1KuAQ4gVndyHDWkJKI9bcx8kJA25QWuaGUOCdWXM7S35zADpNwBDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIK/Jiqp0i3SYAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgEOIFZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCDmPhBY5ChQUAAEDCE58DQAAAAAAAQQiUSB4NjVf3IqC3EywCncsVVQVHQY4Sk3WXo0/aKwIVmuEvgz8CWxpZ2h0bmluZwEIxt4P7eqf3+QAAQMIAAAAAAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNDPwJbGlnaHRuaW5nAQji6kH6aOXoAgA=" + } }, - "signonly": { - "type": "array", - "description": [ - "Input numbers to sign." - ], - "items": { - "type": "u32" + { + "request": { + "id": "example:splice_init#2", + "method": "splice_init", + "params": { + "channel_id": "a40bb442dab0231b51d8f842d95aad548aa35e1d13c4cfcf2997344f805453a1", + "relative_amount": -105000, + "initialpsbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIoIYBAAAAAAABBCJRIHg2NV/cioLcTLAKdyxVVBUdBjhKTdZejT9orAhWa4S+AA==", + "feerate_per_kw": null + } + }, + "response": { + "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABARzi7RBt64yrfqRL2p+KiUw8cYtiKICRFHmp/4eCSemSAQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgTCjR9L+TfzP7pLJVVto5egTRbRNj/RaBhyrA3UW0aEcCIAJO5FZjXvdpRcGR949C4DnfHs3soklTjn/1upkia+TgASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M9mAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEFR1IhAjJCZt6EA7OrFXoJ8feE1YevYYMcmYwVG8whu3TCsjFLIQLjvTgAmGbJ2o7EqpnMTqnGwN1G3xXGHvDOHycSkXFOV1KuAQ4gpAu0QtqwIxtR2PhC2VqtVIqjXh0TxM/PKZc0T4BUU6EBDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIn2Ac8fyFEJwAAQMIAAAAAAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNDPwJbGlnaHRuaW5nAQgu7JK9IpBWOAABAwighgEAAAAAAAEEIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4M/AlsaWdodG5pbmcBCOZ1GpRwbKfuAA==" } } - } + ], + "author": [ + "Dusty <<@dusty_daemon>> is mainly responsible." + ], + "see_also": [ + "lightning-splice_signed(7)", + "lightning-splice_update(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "signed_psbt" + "lightning-splice_signed.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.08", + "rpc": "splice_signed", + "title": "Command to initiate a channel to a peer", + "warning": "experimental-splicing only", + "description": [ + "`splice_signed` is a low level RPC command which finishes the active channel splice associated with `channel_id`.", + "", + "The *psbt* must have all signatures attached to all inputs that you have added to it or it will fail." ], - "properties": { - "signed_psbt": { - "type": "string", - "description": [ - "The fully signed PSBT." - ] + "request": { + "required": [ + "channel_id", + "psbt" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "The channel id of the channel to be spliced." + ] + }, + "psbt": { + "type": "string", + "description": [ + "The final version of the psbt to complete the splice with." + ] + }, + "sign_first": { + "type": "boolean", + "description": [ + "A flag that makes our node offer the final splice signature first (defaults to false). When false, the node will calculate who should sign first based off who is adding inputting the least sats to the splice as per spec." + ] + } } - } + }, + "response": { + "required": [ + "tx", + "txid" + ], + "properties": { + "tx": { + "type": "hex", + "description": [ + "The hex representation of the final transaction that is published." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The txid is of the final transaction." + ] + } + } + }, + "example_usage": [ + "In this example we funded the psbt from our lightning node, so we can use the lightning node to sign for its funds.", + "", + "```shell", + "RESULT=$(lightning-cli signpsbt $PSBT)", + "PSBT=$(echo $RESULT | jq -r \".signed_psbt\")", + "echo $RESULT", + "", + "lightning-cli splice_signed $CHANNEL_ID $PSBT", + "```", + "", + "Here is a full example set of splice commands that will splice in 100,000 sats to the first channel that comes out of `listpeerchannels`. The example assumes you already have at least one confirmed channel.", + "", + "```shell", + "RESULT=$(lightning-cli listpeerchannels)", + "CHANNEL_ID=$(echo $RESULT| jq -r \".channels[0].channel_id\")", + "echo $RESULT", + "", + "RESULT=$(lightning-cli fundpsbt -k satoshi=100000sat feerate=urgent startweight=800 excess_as_change=true)", + "INITIALPSBT=$(echo $RESULT | jq -r \".psbt\")", + "echo $RESULT", + "", + "RESULT=$(lightning-cli splice_init $CHANNEL_ID 100000 $INITIALPSBT)", + "PSBT=$(echo $RESULT | jq -r \".psbt\")", + "echo $RESULT", + "", + "RESULT={\"commitments_secured\":false}", + "while [[ $(echo $RESULT | jq -r \".commitments_secured\") == \"false\" ]]", + "do", + " RESULT=$(lightning-cli splice_update $CHANNEL_ID $PSBT)", + " PSBT=$(echo $RESULT | jq -r \".psbt\")", + " echo $RESULT", + "done", + "", + "RESULT=$(lightning-cli signpsbt -k psbt=\"$PSBT\")", + "PSBT=$(echo $RESULT | jq -r \".signed_psbt\")", + "echo $RESULT", + "", + "lightning-cli splice_signed $CHANNEL_ID $PSBT", + "```" + ], + "json_example": [ + { + "request": { + "id": "example:splice_signed#1", + "method": "splice_signed", + "params": { + "channel_id": "5677721c35a424a23d6dcc7c909036e505ae68650e09d59733b4b7e73003a4dc", + "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEOIFZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQ8EAAAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCCvyYqqdIt0mAAEA9gIAAAAAAQGLpTM0gWEqICjgcZNyoPhzdB5fNZBrEFbsNpsKHrTd9wEAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIBZa5i8jVPdfV4pbIzSebMb5RN+l5lJkQKAw9+ivAWfnAiBNhehz79143DbFOoTjmPYVErlY0FLlVqojX9wat0aKXgEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPGAAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oBDiBWd3IcNaQkoj1tzHyQkDblBa5oZQ4J1ZcztLfnMAOk3AEPBAEAAAABEAT9////ARNACI9TcWG+6uC9ElBFN3qhND7amsor/dtBhJ5ujEQAT/80548avrt7d7IJiOAaCNzzYLSXITdL2xjx6mhbBi9hTiEWkUUygSpECk12bHHNORk2lKNArhHgEuW6Gtnvum52ylMJAMLMqxcAAAAADPwJbGlnaHRuaW5nAQg5j4QWOQoUFAABAwhOfA0AAAAAAAEEIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4hB7nAxoROEqUxyWjlXFUHjsFtm/dr6SkP2H0cynK0g5oXCQDWuWnTBAAAAAz8CWxpZ2h0bmluZwEIxt4P7eqf3+QAAQMI4MgQAAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNDPwJbGlnaHRuaW5nAQji6kH6aOXoAgA=" + } + }, + "response": { + "tx": "020000000001025677721c35a424a23d6dcc7c909036e505ae68650e09d59733b4b7e73003a4dc0000000000000000005677721c35a424a23d6dcc7c909036e505ae68650e09d59733b4b7e73003a4dc0100000000fdffffff024e7c0d00000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84bee0c81000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd0400473044022053269f3951a1fc942174ac0dde8462405a86c89b31b444890664ee9735872cff02204cd822c4456c15e90ad342b23e9bb252d383d4e17a8a04818c4919e4fd61efd80147304402205ac0787c79e74ebfa0eaf18964625c53eb672cc4bed2c65303bd9cc192dad6f902206c6c0cded47201dae0020f50a8998555e654d3420c64e801fc668238e3c1cdfa0147522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae0140088f537161beeae0bd125045377aa1343eda9aca2bfddb41849e6e8c44004fff34e78f1abebb7b77b20988e01a08dcf360b49721374bdb18f1ea685b062f614e6c000000", + "txid": "f00d5e230b401274c88d3e6205e2c6117028cb9878b7d2bc52b1441f0b589427" + } + } + ], + "author": [ + "Dusty <<@dusty_daemon>> is mainly responsible." + ], + "see_also": [ + "lightning-splice_init(7)", + "lightning-splice_update(7)" + ], + "resources": [ + "Main web site: " + ] }, - "json_example": [ - { - "request": { - "id": "example:signpsbt#1", - "method": "signpsbt", - "params": { - "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEOIFZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQ8EAAAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCCvyYqqdIt0mAAEA9gIAAAAAAQGLpTM0gWEqICjgcZNyoPhzdB5fNZBrEFbsNpsKHrTd9wEAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIBZa5i8jVPdfV4pbIzSebMb5RN+l5lJkQKAw9+ivAWfnAiBNhehz79143DbFOoTjmPYVErlY0FLlVqojX9wat0aKXgEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPGAAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oBDiBWd3IcNaQkoj1tzHyQkDblBa5oZQ4J1ZcztLfnMAOk3AEPBAEAAAABEAT9////DPwJbGlnaHRuaW5nAQg5j4QWOQoUFAABAwhOfA0AAAAAAAEEIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4M/AlsaWdodG5pbmcBCMbeD+3qn9/kAAEDCODIEAAAAAAAAQQiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQz8CWxpZ2h0bmluZwEI4upB+mjl6AIA", - "signonly": null + "lightning-splice_update.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.08", + "rpc": "splice_update", + "title": "Command to initiate a channel to a peer", + "warning": "experimental-splicing only", + "description": [ + "`splice_update` is a low level RPC command which updates the active channel splice associated with `channel_id`.", + "", + "`splice_update` must be called repeatidly until the result `commitments_secured` is `true`. Each time `splice_update` is called, it will return a new PSBT that may have changes. In the simplest case, you take the returned `psbt` and pass it back into `splice_update` for the incoming `psbt` field.", + "", + "For more complex use cases, you may modify the `psbt` both before calling `splice_update` and inbetween subsequent calls until `commitments_secured` is `true`. After which point you can no long make modifications to the PSBT (beyond signing, which comes later with `splice_signed`).", + "", + "Each `splice_update` result may include changes to the PSBT specified by your channel peer. You can review these changes between calls to `splice_update` to perform additional validation or strategy adjustment.", + "", + "Typically, `splice_update` will return `commitments_secured` true after one call but you should assume it will need multiple calls." + ], + "request": { + "required": [ + "channel_id", + "psbt" + ], + "properties": { + "channel_id": { + "type": "hash", + "description": [ + "The channel id of the channel to be spliced." + ] + }, + "psbt": { + "type": "string", + "description": [ + "The base 64 encoded PSBT returned from `splice_init` with any changes added by the user." + ] } - }, - "response": { - "signed_psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEOIFZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQ8EAAAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCCvyYqqdIt0mAAEA9gIAAAAAAQGLpTM0gWEqICjgcZNyoPhzdB5fNZBrEFbsNpsKHrTd9wEAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIBZa5i8jVPdfV4pbIzSebMb5RN+l5lJkQKAw9+ivAWfnAiBNhehz79143DbFOoTjmPYVErlY0FLlVqojX9wat0aKXgEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPGAAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oBDiBWd3IcNaQkoj1tzHyQkDblBa5oZQ4J1ZcztLfnMAOk3AEPBAEAAAABEAT9////ARNACI9TcWG+6uC9ElBFN3qhND7amsor/dtBhJ5ujEQAT/80548avrt7d7IJiOAaCNzzYLSXITdL2xjx6mhbBi9hTiEWkUUygSpECk12bHHNORk2lKNArhHgEuW6Gtnvum52ylMJAMLMqxcAAAAADPwJbGlnaHRuaW5nAQg5j4QWOQoUFAABAwhOfA0AAAAAAAEEIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4hB7nAxoROEqUxyWjlXFUHjsFtm/dr6SkP2H0cynK0g5oXCQDWuWnTBAAAAAz8CWxpZ2h0bmluZwEIxt4P7eqf3+QAAQMI4MgQAAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNDPwJbGlnaHRuaW5nAQji6kH6aOXoAgA=" } }, - { - "request": { - "id": "example:signpsbt#2", - "method": "signpsbt", - "params": { - "psbt": "cHNidP8BAP1xAQIAAAAIFTef27H2GAJBzP4UZMeDePsDVkglO47/q4jqK18ibCYAAAAAAP3///+axwap6WKnEHvLjIJZX0ZeJ87cs7PKkXBfwvbGVmjpTQEAAAAA/f///wQ1cVzb9NR7nXadyRuhQBv+2iqhZkhvUA+sPo5z/SsSAQAAAAD9////lXQ788meUtSxhBX13mx2XhyM3Ddo30QtmNW0YuE2TDABAAAAAP3///8Kr4BwElAScx3bA5ZdavrHwh4Zh+rFNvkE/+7gu1WbngEAAAAA/f///3Uei7j3k/b5tnjFGvNZhe2iWz8O6FQjTEpM5XIoduNsAQAAAAD9////fm5Om4MojcnfZiTmrwb4b5Byw9emrjITi/nkEqTK9MsBAAAAAP3///8lwdpZqt3ILPRwhINY4PGvkg2CSw7agcMPSuFoHDDkIQAAAAAA/f///wGCAXoAAAAAABYAFMkJbUP0COpSYCAmLM2tfIUWuSqBAAAAAAABAHECAAAAAZVxzFxyEg7tiQTgRHwGleR8Srxw6taAGOoEpJK/Xj5sAAAAAAD9////AkBCDwAAAAAAFgAUKvGgVL/ThjWE/P1oORVXh/ObucYzr/YpAQAAABYAFKmkod5S53U4m5tKFApyeC35UbnbZwAAAAEBH0BCDwAAAAAAFgAUKvGgVL/ThjWE/P1oORVXh/ObucYAAQBxAgAAAAEVN5/bsfYYAkHM/hRkx4N4+wNWSCU7jv+riOorXyJsJgEAAAAA/f///wJmbOcpAQAAABYAFCCSJBD9wY/VwxnBcnFiu1tA6CGTQEIPAAAAAAAWABSjI8KCqaGX/BGOwJza8hyiuxuIcmcAAAABAR9AQg8AAAAAABYAFKMjwoKpoZf8EY7AnNryHKK7G4hyAAEAcQIAAAAB98EwKZMOHiyRYWyToae6Kce3gCwqUvnVXXHlB/ps9ocBAAAAAP3///8CmNuLKQEAAAAWABQ4roxw+phYHelaRr71DYB3FEy/30BCDwAAAAAAFgAUwSDtQiY7PVvBc7ww56Y72YIQdjllAAAAAQEfQEIPAAAAAAAWABTBIO1CJjs9W8FzvDDnpjvZghB2OQABAHECAAAAAZH/SvCXvDW7b8qb55CDC4M+jgZ61H/e8rZnAGaXp+Z+AAAAAAD9////Apkp2CkBAAAAFgAUc/Y+sIq3oYyEe40GkKJsXawkzwFAQg8AAAAAABYAFLdt1h5Bte8FKvIc2jJgiIwHC7mvZwAAAAEBH0BCDwAAAAAAFgAUt23WHkG17wUq8hzaMmCIjAcLua8AAQBxAgAAAAETC3wMCv9qK3lvVkVJu9b/v2VgMepZtnfngMp2xMXRnwAAAAAA/f///wJk0E4pAQAAABYAFEIsc4cBl+BTN33Kn80+YYfkMt+cQEIPAAAAAAAWABT2/7RIxKohhGbacpBz0BZNYcnfsGUAAAABAR9AQg8AAAAAABYAFPb/tEjEqiGEZtpykHPQFk1hyd+wAAEAcQIAAAABA8J/OnC+cuH79Z6wZmzwdAjhBDaPHavh3yvhr4odDXQBAAAAAP3///8CykowKQEAAAAWABTVHuO8cKOOX/JlmMU66on6Uc54mkBCDwAAAAAAFgAUunZMZryWMqCTiMuVWNF/cleg6dVnAAAAAQEfQEIPAAAAAAAWABS6dkxmvJYyoJOIy5VY0X9yV6Dp1QABAHECAAAAAfRxBaZZ3FfDGwxhZQLYCurN+7kJj0x6nzChg434dnjRAAAAAAD9////AszmyCkBAAAAFgAULSqRp54barF/7R9XOmsLDCVWdAFAQg8AAAAAABYAFNa5adNt/9rZhpGT9mPuSA39xzSIZQAAAAEBH0BCDwAAAAAAFgAU1rlp023/2tmGkZP2Y+5IDf3HNIgAAQBxAgAAAAEgk1JYyP4oIoPoYYcTPPDvZynVfXWINJnBEFBsLv0MtAAAAAAA/f///wJAQg8AAAAAABYAFGYcI7eQ3TSRNzrwsdi+0Id9XN4iMmGqKQEAAAAWABT5XKNwVIFsUKh26sqHFSlOLq5TFGUAAAABAR9AQg8AAAAAABYAFGYcI7eQ3TSRNzrwsdi+0Id9XN4iAAA=", - "signonly": [ - 7 + "response": { + "required": [ + "psbt", + "commitments_secured" + ], + "properties": { + "psbt": { + "type": "string", + "description": [ + "The (incomplete) PSBT of the splice transaction." + ] + }, + "commitments_secured": { + "type": "boolean", + "description": [ + "Whether or not the commitments were secured." ] } - }, - "response": { - "signed_psbt": "cHNidP8BAP1xAQIAAAAIFTef27H2GAJBzP4UZMeDePsDVkglO47/q4jqK18ibCYAAAAAAP3///+axwap6WKnEHvLjIJZX0ZeJ87cs7PKkXBfwvbGVmjpTQEAAAAA/f///wQ1cVzb9NR7nXadyRuhQBv+2iqhZkhvUA+sPo5z/SsSAQAAAAD9////lXQ788meUtSxhBX13mx2XhyM3Ddo30QtmNW0YuE2TDABAAAAAP3///8Kr4BwElAScx3bA5ZdavrHwh4Zh+rFNvkE/+7gu1WbngEAAAAA/f///3Uei7j3k/b5tnjFGvNZhe2iWz8O6FQjTEpM5XIoduNsAQAAAAD9////fm5Om4MojcnfZiTmrwb4b5Byw9emrjITi/nkEqTK9MsBAAAAAP3///8lwdpZqt3ILPRwhINY4PGvkg2CSw7agcMPSuFoHDDkIQAAAAAA/f///wGCAXoAAAAAABYAFMkJbUP0COpSYCAmLM2tfIUWuSqBAAAAAAABAHECAAAAAZVxzFxyEg7tiQTgRHwGleR8Srxw6taAGOoEpJK/Xj5sAAAAAAD9////AkBCDwAAAAAAFgAUKvGgVL/ThjWE/P1oORVXh/ObucYzr/YpAQAAABYAFKmkod5S53U4m5tKFApyeC35UbnbZwAAAAEBH0BCDwAAAAAAFgAUKvGgVL/ThjWE/P1oORVXh/ObucYAAQBxAgAAAAEVN5/bsfYYAkHM/hRkx4N4+wNWSCU7jv+riOorXyJsJgEAAAAA/f///wJmbOcpAQAAABYAFCCSJBD9wY/VwxnBcnFiu1tA6CGTQEIPAAAAAAAWABSjI8KCqaGX/BGOwJza8hyiuxuIcmcAAAABAR9AQg8AAAAAABYAFKMjwoKpoZf8EY7AnNryHKK7G4hyAAEAcQIAAAAB98EwKZMOHiyRYWyToae6Kce3gCwqUvnVXXHlB/ps9ocBAAAAAP3///8CmNuLKQEAAAAWABQ4roxw+phYHelaRr71DYB3FEy/30BCDwAAAAAAFgAUwSDtQiY7PVvBc7ww56Y72YIQdjllAAAAAQEfQEIPAAAAAAAWABTBIO1CJjs9W8FzvDDnpjvZghB2OQABAHECAAAAAZH/SvCXvDW7b8qb55CDC4M+jgZ61H/e8rZnAGaXp+Z+AAAAAAD9////Apkp2CkBAAAAFgAUc/Y+sIq3oYyEe40GkKJsXawkzwFAQg8AAAAAABYAFLdt1h5Bte8FKvIc2jJgiIwHC7mvZwAAAAEBH0BCDwAAAAAAFgAUt23WHkG17wUq8hzaMmCIjAcLua8AAQBxAgAAAAETC3wMCv9qK3lvVkVJu9b/v2VgMepZtnfngMp2xMXRnwAAAAAA/f///wJk0E4pAQAAABYAFEIsc4cBl+BTN33Kn80+YYfkMt+cQEIPAAAAAAAWABT2/7RIxKohhGbacpBz0BZNYcnfsGUAAAABAR9AQg8AAAAAABYAFPb/tEjEqiGEZtpykHPQFk1hyd+wAAEAcQIAAAABA8J/OnC+cuH79Z6wZmzwdAjhBDaPHavh3yvhr4odDXQBAAAAAP3///8CykowKQEAAAAWABTVHuO8cKOOX/JlmMU66on6Uc54mkBCDwAAAAAAFgAUunZMZryWMqCTiMuVWNF/cleg6dVnAAAAAQEfQEIPAAAAAAAWABS6dkxmvJYyoJOIy5VY0X9yV6Dp1QABAHECAAAAAfRxBaZZ3FfDGwxhZQLYCurN+7kJj0x6nzChg434dnjRAAAAAAD9////AszmyCkBAAAAFgAULSqRp54barF/7R9XOmsLDCVWdAFAQg8AAAAAABYAFNa5adNt/9rZhpGT9mPuSA39xzSIZQAAAAEBH0BCDwAAAAAAFgAU1rlp023/2tmGkZP2Y+5IDf3HNIgAAQBxAgAAAAEgk1JYyP4oIoPoYYcTPPDvZynVfXWINJnBEFBsLv0MtAAAAAAA/f///wJAQg8AAAAAABYAFGYcI7eQ3TSRNzrwsdi+0Id9XN4iMmGqKQEAAAAWABT5XKNwVIFsUKh26sqHFSlOLq5TFGUAAAABAR9AQg8AAAAAABYAFGYcI7eQ3TSRNzrwsdi+0Id9XN4iIgID+pyVCF5CseUAPNH0GBeMMMluSud5VMoPxIxYgm/06w5HMEQCIG90DSr+fGNoWhCrgLbJG3Wt8PJNMWYqaa5MLWRwA0oTAiA9rsLEqqVhjV6wENfzzpudaE949uLlVqWgDjE/FSgKNAEiBgP6nJUIXkKx5QA80fQYF4wwyW5K53lUyg/EjFiCb/TrDghmHCO3AAAAAAAA" } - } - ], - "errors": [ - "On failure, one of the following error codes may be returned:", - "", - "- -32602: Error in given parameters, or there aren't wallet's inputs to sign, or we couldn't sign all of *signonly*, or inputs are not reserved." - ], - "author": [ - "Vincenzo Palazzo <> wrote the initial version of this man page,", - "but many others did the hard work of actually implementing this rpc command." - ], - "see_also": [ - "lightning-fundpsbt(7)", - "lightning-sendpsbt(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-splice_init.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.08", - "rpc": "splice_init", - "title": "Command to initiate a channel to a peer", - "warning": "experimental-splicing only", - "description": [ - "`splice_init` is a low level RPC command which initiates a channel splice for a given channel specified by `channel_id`." - ], - "request": { - "required": [ - "channel_id", - "relative_amount" + }, + "example_usage": [ + "Here is an example way to call `splice_update`", + "", + "```shell", + "RESULT={\"commitments_secured\":false}", + "while [[ $(echo $RESULT | jq -r \".commitments_secured\") == \"false\" ]]", + "do", + " RESULT=$(lightning-cli splice_update $CHANNEL_ID $PSBT)", + " PSBT=$(echo $RESULT | jq -r \".psbt\")", + " echo $RESULT", + "done", + "```", + "", + "Before each call to `splice_update` you have the opportunity to make additional changes.", + "", + "Here is a full example set of splice commands that will splice in 100,000 sats to the first channel that comes out of `listpeerchannels`. The example assumes you already have at least one confirmed channel.", + "", + "```shell", + "RESULT=$(lightning-cli listpeerchannels)", + "CHANNEL_ID=$(echo $RESULT| jq -r \".channels[0].channel_id\")", + "echo $RESULT", + "", + "RESULT=$(lightning-cli fundpsbt -k satoshi=100000sat feerate=urgent startweight=800 excess_as_change=true)", + "INITIALPSBT=$(echo $RESULT | jq -r \".psbt\")", + "echo $RESULT", + "", + "RESULT=$(lightning-cli splice_init $CHANNEL_ID 100000 $INITIALPSBT)", + "PSBT=$(echo $RESULT | jq -r \".psbt\")", + "echo $RESULT", + "", + "RESULT={\"commitments_secured\":false}", + "while [[ $(echo $RESULT | jq -r \".commitments_secured\") == \"false\" ]]", + "do", + " RESULT=$(lightning-cli splice_update $CHANNEL_ID $PSBT)", + " PSBT=$(echo $RESULT | jq -r \".psbt\")", + " echo $RESULT", + "done", + "", + "RESULT=$(lightning-cli signpsbt -k psbt=\"$PSBT\")", + "PSBT=$(echo $RESULT | jq -r \".signed_psbt\")", + "echo $RESULT", + "", + "lightning-cli splice_signed $CHANNEL_ID $PSBT", + "```" ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "The channel id of the channel to be spliced." - ] - }, - "relative_amount": { - "type": "integer", - "description": [ - "A positive or negative amount of satoshis to add or subtract from the channel. Note you may need to add a double dash (--) after splice_init if using a negative *relative_amount* so it is not interpretted as a command modifier. For example: ```shell lightning-cli splice_init -- $CHANNEL_ID -100000 ```." - ] - }, - "initialpsbt": { - "type": "string", - "description": [ - "The (optional) base 64 encoded PSBT to begin with. If not specified, one will be generated automatically." - ] - }, - "feerate_per_kw": { - "type": "u32", - "description": [ - "The miner fee we promise our peer to pay for our side of the splice transaction. It is calculated by `feerate_per_kw` * our_bytes_in_splice_tx / 1000." - ] - }, - "force_feerate": { - "type": "boolean", - "description": [ - "By default splices will fail if the fee provided looks too high. This is to protect against accidentally setting your fee higher than intended. Set `force_feerate` to true to skip this saftey check." - ] + "json_example": [ + { + "request": { + "id": "example:splice_update#1", + "method": "splice_update", + "params": { + "channel_id": "5677721c35a424a23d6dcc7c909036e505ae68650e09d59733b4b7e73003a4dc", + "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEFR1IhAjJCZt6EA7OrFXoJ8feE1YevYYMcmYwVG8whu3TCsjFLIQLjvTgAmGbJ2o7EqpnMTqnGwN1G3xXGHvDOHycSkXFOV1KuAQ4gVndyHDWkJKI9bcx8kJA25QWuaGUOCdWXM7S35zADpNwBDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIK/Jiqp0i3SYAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgEOIFZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCDmPhBY5ChQUAAEDCE58DQAAAAAAAQQiUSB4NjVf3IqC3EywCncsVVQVHQY4Sk3WXo0/aKwIVmuEvgz8CWxpZ2h0bmluZwEIxt4P7eqf3+QAAQMIAAAAAAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNDPwJbGlnaHRuaW5nAQji6kH6aOXoAgA=" + } + }, + "response": { + "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEOIFZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQ8EAAAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCCvyYqqdIt0mAAEA9gIAAAAAAQGLpTM0gWEqICjgcZNyoPhzdB5fNZBrEFbsNpsKHrTd9wEAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIBZa5i8jVPdfV4pbIzSebMb5RN+l5lJkQKAw9+ivAWfnAiBNhehz79143DbFOoTjmPYVErlY0FLlVqojX9wat0aKXgEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPGAAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oBDiBWd3IcNaQkoj1tzHyQkDblBa5oZQ4J1ZcztLfnMAOk3AEPBAEAAAABEAT9////DPwJbGlnaHRuaW5nAQg5j4QWOQoUFAABAwhOfA0AAAAAAAEEIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4M/AlsaWdodG5pbmcBCMbeD+3qn9/kAAEDCODIEAAAAAAAAQQiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQz8CWxpZ2h0bmluZwEI4upB+mjl6AIA", + "commitments_secured": true + } } - } - }, - "response": { - "required": [ - "psbt" ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "The (incomplete) PSBT of the splice transaction." - ] - } - } + "author": [ + "Dusty <<@dusty_daemon>> is mainly responsible." + ], + "see_also": [ + "lightning-splice_init(7)", + "lightning-splice_signed(7)" + ], + "resources": [ + "Main web site: " + ] }, - "example_usage": [ - "Here is an example set of splice commands that will splice in 100,000 sats to the first channel that comes out of `listpeerchannels`. The example assumes you already have at least one confirmed channel.", - "", - "```shell", - "RESULT=$(lightning-cli listpeerchannels)", - "CHANNEL_ID=$(echo $RESULT| jq -r \".channels[0].channel_id\")", - "echo $RESULT", - "", - "RESULT=$(lightning-cli fundpsbt -k satoshi=100000sat feerate=urgent startweight=800 excess_as_change=true)", - "INITIALPSBT=$(echo $RESULT | jq -r \".psbt\")", - "echo $RESULT", - "", - "RESULT=$(lightning-cli splice_init $CHANNEL_ID 100000 $INITIALPSBT)", - "PSBT=$(echo $RESULT | jq -r \".psbt\")", - "echo $RESULT", - "", - "RESULT=$(lightning-cli splice_update $CHANNEL_ID $PSBT)", - "PSBT=$(echo $RESULT | jq -r \".psbt\")", - "echo $RESULT", - "", - "RESULT=$(lightning-cli signpsbt -k psbt=\"$PSBT\")", - "PSBT=$(echo $RESULT | jq -r \".signed_psbt\")", - "echo $RESULT", - "", - "lightning-cli splice_signed $CHANNEL_ID $PSBT", - "```", - "", - "Here is an example set of splice commands that will splice out 100,000 sats from first channel that comes out of `listpeerchannels`. The example assumes you already have at least one confirmed channel.", - "", - "```shell", - "RESULT=$(lightning-cli listpeerchannels)", - "CHANNEL_ID=$(echo $RESULT| jq -r \".channels[0].channel_id\")", - "echo $RESULT", - "", - "RESULT=$(lightning-cli addpsbtoutput 100000)", - "INITIALPSBT=$(echo $RESULT | jq -r \".psbt\")", - "echo $RESULT", - "", - "RESULT=$(lightning-cli splice_init -- $CHANNEL_ID -100500 $INITIALPSBT)", - "PSBT=$(echo $RESULT | jq -r \".psbt\")", - "echo $RESULT", - "", - "RESULT=$(lightning-cli splice_update $CHANNEL_ID $PSBT)", - "PSBT=$(echo $RESULT | jq -r \".psbt\")", - "echo $RESULT", - "", - "lightning-cli splice_signed $CHANNEL_ID $PSBT", - "```" - ], - "json_example": [ - { - "request": { - "id": "example:splice_init#1", - "method": "splice_init", - "params": { - "channel_id": "5677721c35a424a23d6dcc7c909036e505ae68650e09d59733b4b7e73003a4dc", - "relative_amount": 100000, - "initialpsbt": "cHNidP8BAF4CAAAAAVZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQAAAAD9////AU58DQAAAAAAIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL5sAAAAAAEA9gIAAAAAAQGLpTM0gWEqICjgcZNyoPhzdB5fNZBrEFbsNpsKHrTd9wEAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIBZa5i8jVPdfV4pbIzSebMb5RN+l5lJkQKAw9+ivAWfnAiBNhehz79143DbFOoTjmPYVErlY0FLlVqojX9wat0aKXgEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPGAAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oAAA==", - "feerate_per_kw": null + "lightning-sql-template.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.02", + "rpc": "sql", + "title": "Command to do complex queries on list commands", + "description": [ + "The **sql** RPC command runs the given query across a sqlite3 database created from various list commands.", + "", + "When tables are accessed, it calls the below commands, so it's no faster than any other local access (though it goes to great length to cache `listnodes` and `listchannels`) which then processes the results.", + "", + "It is, however faster for remote access if the result of the query is much smaller than the list commands would be." + ], + "request": { + "required": [ + "query" + ], + "properties": { + "query": { + "type": "string", + "description": [ + "The standard sqlite3 query to run.", + "Note that queries like \"SELECT *\" are fragile, as columns will change across releases; see lightning-listsqlschemas(7)." + ] } - }, - "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEFR1IhAjJCZt6EA7OrFXoJ8feE1YevYYMcmYwVG8whu3TCsjFLIQLjvTgAmGbJ2o7EqpnMTqnGwN1G3xXGHvDOHycSkXFOV1KuAQ4gVndyHDWkJKI9bcx8kJA25QWuaGUOCdWXM7S35zADpNwBDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIK/Jiqp0i3SYAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgEOIFZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCDmPhBY5ChQUAAEDCE58DQAAAAAAAQQiUSB4NjVf3IqC3EywCncsVVQVHQY4Sk3WXo0/aKwIVmuEvgz8CWxpZ2h0bmluZwEIxt4P7eqf3+QAAQMIAAAAAAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNDPwJbGlnaHRuaW5nAQji6kH6aOXoAgA=" } }, - { - "request": { - "id": "example:splice_init#2", - "method": "splice_init", - "params": { - "channel_id": "a40bb442dab0231b51d8f842d95aad548aa35e1d13c4cfcf2997344f805453a1", - "relative_amount": -105000, - "initialpsbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIoIYBAAAAAAABBCJRIHg2NV/cioLcTLAKdyxVVBUdBjhKTdZejT9orAhWa4S+AA==", - "feerate_per_kw": null + "response": { + "required": [ + "rows" + ], + "properties": { + "rows": { + "type": "array", + "items": { + "type": "array" + } + }, + "warning_db_failure": { + "type": "string", + "description": [ + "A message if the database encounters an error partway through." + ] } }, - "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABARzi7RBt64yrfqRL2p+KiUw8cYtiKICRFHmp/4eCSemSAQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgTCjR9L+TfzP7pLJVVto5egTRbRNj/RaBhyrA3UW0aEcCIAJO5FZjXvdpRcGR949C4DnfHs3soklTjn/1upkia+TgASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M9mAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEFR1IhAjJCZt6EA7OrFXoJ8feE1YevYYMcmYwVG8whu3TCsjFLIQLjvTgAmGbJ2o7EqpnMTqnGwN1G3xXGHvDOHycSkXFOV1KuAQ4gpAu0QtqwIxtR2PhC2VqtVIqjXh0TxM/PKZc0T4BUU6EBDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIn2Ac8fyFEJwAAQMIAAAAAAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNDPwJbGlnaHRuaW5nAQgu7JK9IpBWOAABAwighgEAAAAAAAEEIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4M/AlsaWdodG5pbmcBCOZ1GpRwbKfuAA==" - } - } - ], - "author": [ - "Dusty <<@dusty_daemon>> is mainly responsible." - ], - "see_also": [ - "lightning-splice_signed(7)", - "lightning-splice_update(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-splice_signed.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.08", - "rpc": "splice_signed", - "title": "Command to initiate a channel to a peer", - "warning": "experimental-splicing only", - "description": [ - "`splice_signed` is a low level RPC command which finishes the active channel splice associated with `channel_id`.", - "", - "The *psbt* must have all signatures attached to all inputs that you have added to it or it will fail." - ], - "request": { - "required": [ - "channel_id", - "psbt" + "pre_return_value_notes": [ + "On success, an object containing **rows** is returned. It is an array. Each array entry contains an array of values, each an integer, real number, string or *null*, depending on the sqlite3 type.", + "", + "The object may contain **warning_db_failure** if the database fails partway through its operation." + ] + }, + "treatment_of_types": [ + "The following types are supported in schemas, and this shows how they are presented in the database. This matters: a JSON boolean is represented as an integer in the database, so a query will return 0 or 1, not true or false.", + "", + "* *hex*. A hex string.", + " * JSON: a string", + " * sqlite3: BLOB", + "", + "* *hash*/*secret*/*pubkey*/*txid*: just like *hex*.", + "", + "* *msat*/*integer*/*u64*/*u32*/*u16*/*u8*. Normal numbers.", + " * JSON: an unsigned integer", + " * sqlite3: INTEGER", + "", + "* *boolean*. True or false.", + " * JSON: literal **true** or **false**", + " * sqlite3: INTEGER", + "", + "* *number*. A floating point number (used for times in some places).", + " * JSON: number", + " * sqlite3: REAL", + "", + "* *string*. Text.", + " * JSON: string", + " * sqlite3: TEXT", + "", + "* *short_channel_id*. A short-channel-id of form 1x2x3.", + " * JSON: string", + " * sqlite3: TEXT" ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "The channel id of the channel to be spliced." - ] - }, - "psbt": { - "type": "string", - "description": [ - "The final version of the psbt to complete the splice with." - ] + "permitted_sqlite3_functions": [ + "Writing to the database is not permitted, and limits are placed on various other query parameters.", + "", + "Additionally, only the following functions are allowed:", + "", + "* abs", + "* avg", + "* coalesce", + "* count", + "* hex", + "* quote", + "* length", + "* like", + "* lower", + "* upper", + "* min", + "* max", + "* sum", + "* total" + ], + "tables": [ + "Note that the first column of every table is a unique integer called `rowid`: this is used for related tables to refer to specific rows in their parent. sqlite3 usually has this as an implicit column, but we make it explicit as the implicit version is not allowed to be used as a foreign key.", + "" + ], + "errors": [ + "On failure, an error is returned." + ], + "example_usage": [ + "Here are some example using lightning-cli. Note that you may need to use `-o` if you use queries which contain `=` (which make lightning-cli(1) default to keyword style):", + "", + "A simple peer selection query:", + "", + "```shell", + "$ lightning-cli sql \"SELECT id FROM peers\"", + "{", + " \"rows\": [", + " [", + " \"02ba9965e3db660385bd1dd2c09dd032e0f2179a94fc5db8917b60adf0b363da00\"", + " ]", + " ]", + "}", + "```", + "", + "A statement containing using `=` needs `-o`:", + "", + "```shell", + "$ lightning-cli sql -o \"SELECT node_id,last_timestamp FROM nodes WHERE last_timestamp>=1669578892\"", + "{", + " \"rows\": [", + " [", + " \"02ba9965e3db660385bd1dd2c09dd032e0f2179a94fc5db8917b60adf0b363da00\",", + " 1669601603", + " ]", + " ]", + "}", + "```", + "", + "If you want to compare a BLOB column, `x'hex'` or `X'hex'` are needed:", + "", + "```shell", + "$ lightning-cli sql -o \"SELECT nodeid FROM nodes WHERE nodeid != x'03c9d25b6c0ce4bde5ad97d7ab83f00ae8bd3800a98ccbee36f3c3205315147de1';\"", + "{", + " \"rows\": [", + " [", + " \"0214739d625944f8fdc0da9d2ef44dbd7af58443685e494117b51410c5c3ff973a\"", + " ],", + " [", + " \"02ba9965e3db660385bd1dd2c09dd032e0f2179a94fc5db8917b60adf0b363da00\"", + " ]", + " ]", + "}", + "$ lightning-cli sql -o \"SELECT nodeid FROM nodes WHERE nodeid IN (x'03c9d25b6c0ce4bde5ad97d7ab83f00ae8bd3800a98ccbee36f3c3205315147de1', x'02ba9965e3db660385bd1dd2c09dd032e0f2179a94fc5db8917b60adf0b363da00')\"", + "{", + " \"rows\": [", + " [", + " \"02ba9965e3db660385bd1dd2c09dd032e0f2179a94fc5db8917b60adf0b363da00\"", + " ],", + " [", + " \"03c9d25b6c0ce4bde5ad97d7ab83f00ae8bd3800a98ccbee36f3c3205315147de1\"", + " ]", + " ]", + "}", + "```", + "", + "Related tables are usually referenced by JOIN:", + "", + "```shell", + "$ lightning-cli sql -o \"SELECT nodeid, alias, nodes_addresses.type, nodes_addresses.port, nodes_addresses.address FROM nodes INNER JOIN nodes_addresses ON nodes_addresses.row = nodes.rowid\"", + "{", + " \"rows\": [", + " [", + " \"02ba9965e3db660385bd1dd2c09dd032e0f2179a94fc5db8917b60adf0b363da00\",", + " \"YELLOWWATCH-22.11rc2-31-gcd7593b\",", + " \"dns\",", + " 7272,", + " \"localhost\"", + " ],", + " [", + " \"0214739d625944f8fdc0da9d2ef44dbd7af58443685e494117b51410c5c3ff973a\",", + " \"HOPPINGSQUIRREL-1rc2-31-gcd7593b\",", + " \"dns\",", + " 7171,", + " \"localhost\"", + " ]", + " ]", + "}", + "```", + "", + "Simple function usage, in this case COUNT. Strings inside arrays need \", and ' to protect them from the shell:", + "", + "```shell", + "$ lightning-cli sql 'SELECT COUNT(*) FROM nodes\"", + "{", + " \"rows\": [", + " [", + " 3", + " ]", + " ]", + "}", + "```" + ], + "json_example": [ + { + "request": { + "id": "example:sql#1", + "method": "sql", + "params": [ + "SELECT * FROM forwards;" + ] + }, + "response": { + "rows": [] + } }, - "sign_first": { - "type": "boolean", - "description": [ - "A flag that makes our node offer the final splice signature first (defaults to false). When false, the node will calculate who should sign first based off who is adding inputting the least sats to the splice as per spec." - ] + { + "request": { + "id": "example:sql#2", + "method": "sql", + "params": [ + "SELECT * from peerchannels_features" + ] + }, + "response": { + "rows": [ + [ + 6, + 1, + 0, + "option_static_remotekey" + ], + [ + 7, + 1, + 1, + "option_anchors_zero_fee_htlc_tx" + ], + [ + 16, + 11, + 0, + "option_static_remotekey" + ], + [ + 17, + 11, + 1, + "option_anchors_zero_fee_htlc_tx" + ] + ] + } } - } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-listtransactions(7)", + "lightning-listchannels(7)", + "lightning-listpeers(7)", + "lightning-listnodes(7)", + "lightning-listforwards(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "tx", - "txid" + "lightning-staticbackup.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "staticbackup", + "title": "Command for deriving getting SCB of all the existing channels", + "description": [ + "The **staticbackup** RPC command returns an object with SCB of all the channels in an array." ], - "properties": { - "tx": { - "type": "hex", - "description": [ - "The hex representation of the final transaction that is published." - ] - }, - "txid": { - "type": "txid", - "description": [ - "The txid is of the final transaction." - ] + "request": { + "required": [], + "properties": {} + }, + "response": { + "required": [ + "scb" + ], + "properties": { + "scb": { + "type": "array", + "items": { + "type": "hex", + "description": [ + "SCB of a channel in TLV format." + ] + } + } } - } - }, - "example_usage": [ - "In this example we funded the psbt from our lightning node, so we can use the lightning node to sign for its funds.", - "", - "```shell", - "RESULT=$(lightning-cli signpsbt $PSBT)", - "PSBT=$(echo $RESULT | jq -r \".signed_psbt\")", - "echo $RESULT", - "", - "lightning-cli splice_signed $CHANNEL_ID $PSBT", - "```", - "", - "Here is a full example set of splice commands that will splice in 100,000 sats to the first channel that comes out of `listpeerchannels`. The example assumes you already have at least one confirmed channel.", - "", - "```shell", - "RESULT=$(lightning-cli listpeerchannels)", - "CHANNEL_ID=$(echo $RESULT| jq -r \".channels[0].channel_id\")", - "echo $RESULT", - "", - "RESULT=$(lightning-cli fundpsbt -k satoshi=100000sat feerate=urgent startweight=800 excess_as_change=true)", - "INITIALPSBT=$(echo $RESULT | jq -r \".psbt\")", - "echo $RESULT", - "", - "RESULT=$(lightning-cli splice_init $CHANNEL_ID 100000 $INITIALPSBT)", - "PSBT=$(echo $RESULT | jq -r \".psbt\")", - "echo $RESULT", - "", - "RESULT={\"commitments_secured\":false}", - "while [[ $(echo $RESULT | jq -r \".commitments_secured\") == \"false\" ]]", - "do", - " RESULT=$(lightning-cli splice_update $CHANNEL_ID $PSBT)", - " PSBT=$(echo $RESULT | jq -r \".psbt\")", - " echo $RESULT", - "done", - "", - "RESULT=$(lightning-cli signpsbt -k psbt=\"$PSBT\")", - "PSBT=$(echo $RESULT | jq -r \".signed_psbt\")", - "echo $RESULT", - "", - "lightning-cli splice_signed $CHANNEL_ID $PSBT", - "```" - ], - "json_example": [ - { - "request": { - "id": "example:splice_signed#1", - "method": "splice_signed", - "params": { - "channel_id": "5677721c35a424a23d6dcc7c909036e505ae68650e09d59733b4b7e73003a4dc", - "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEOIFZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQ8EAAAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCCvyYqqdIt0mAAEA9gIAAAAAAQGLpTM0gWEqICjgcZNyoPhzdB5fNZBrEFbsNpsKHrTd9wEAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIBZa5i8jVPdfV4pbIzSebMb5RN+l5lJkQKAw9+ivAWfnAiBNhehz79143DbFOoTjmPYVErlY0FLlVqojX9wat0aKXgEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPGAAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oBDiBWd3IcNaQkoj1tzHyQkDblBa5oZQ4J1ZcztLfnMAOk3AEPBAEAAAABEAT9////ARNACI9TcWG+6uC9ElBFN3qhND7amsor/dtBhJ5ujEQAT/80548avrt7d7IJiOAaCNzzYLSXITdL2xjx6mhbBi9hTiEWkUUygSpECk12bHHNORk2lKNArhHgEuW6Gtnvum52ylMJAMLMqxcAAAAADPwJbGlnaHRuaW5nAQg5j4QWOQoUFAABAwhOfA0AAAAAAAEEIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4hB7nAxoROEqUxyWjlXFUHjsFtm/dr6SkP2H0cynK0g5oXCQDWuWnTBAAAAAz8CWxpZ2h0bmluZwEIxt4P7eqf3+QAAQMI4MgQAAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNDPwJbGlnaHRuaW5nAQji6kH6aOXoAgA=" + }, + "json_example": [ + { + "request": { + "id": "example:staticbackup#1", + "method": "staticbackup", + "params": "{}" + }, + "response": { + "scb": [ + "0000000000000001c707da9b230e1655b0a6c082b8daf4fa44d9d1f68163ed4d531d45cf453dc651022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5900017f000001b2e3c707da9b230e1655b0a6c082b8daf4fa44d9d1f68163ed4d531d45cf453dc6510000000000000000000186a000021000" + ] } - }, - "response": { - "tx": "020000000001025677721c35a424a23d6dcc7c909036e505ae68650e09d59733b4b7e73003a4dc0000000000000000005677721c35a424a23d6dcc7c909036e505ae68650e09d59733b4b7e73003a4dc0100000000fdffffff024e7c0d00000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84bee0c81000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd0400473044022053269f3951a1fc942174ac0dde8462405a86c89b31b444890664ee9735872cff02204cd822c4456c15e90ad342b23e9bb252d383d4e17a8a04818c4919e4fd61efd80147304402205ac0787c79e74ebfa0eaf18964625c53eb672cc4bed2c65303bd9cc192dad6f902206c6c0cded47201dae0020f50a8998555e654d3420c64e801fc668238e3c1cdfa0147522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae0140088f537161beeae0bd125045377aa1343eda9aca2bfddb41849e6e8c44004fff34e78f1abebb7b77b20988e01a08dcf360b49721374bdb18f1ea685b062f614e6c000000", - "txid": "f00d5e230b401274c88d3e6205e2c6117028cb9878b7d2bc52b1441f0b589427" } - } - ], - "author": [ - "Dusty <<@dusty_daemon>> is mainly responsible." - ], - "see_also": [ - "lightning-splice_init(7)", - "lightning-splice_update(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-splice_update.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.08", - "rpc": "splice_update", - "title": "Command to initiate a channel to a peer", - "warning": "experimental-splicing only", - "description": [ - "`splice_update` is a low level RPC command which updates the active channel splice associated with `channel_id`.", - "", - "`splice_update` must be called repeatidly until the result `commitments_secured` is `true`. Each time `splice_update` is called, it will return a new PSBT that may have changes. In the simplest case, you take the returned `psbt` and pass it back into `splice_update` for the incoming `psbt` field.", - "", - "For more complex use cases, you may modify the `psbt` both before calling `splice_update` and inbetween subsequent calls until `commitments_secured` is `true`. After which point you can no long make modifications to the PSBT (beyond signing, which comes later with `splice_signed`).", - "", - "Each `splice_update` result may include changes to the PSBT specified by your channel peer. You can review these changes between calls to `splice_update` to perform additional validation or strategy adjustment.", - "", - "Typically, `splice_update` will return `commitments_secured` true after one call but you should assume it will need multiple calls." - ], - "request": { - "required": [ - "channel_id", - "psbt" ], - "properties": { - "channel_id": { - "type": "hash", - "description": [ - "The channel id of the channel to be spliced." - ] - }, - "psbt": { - "type": "string", - "description": [ - "The base 64 encoded PSBT returned from `splice_init` with any changes added by the user." - ] - } - } + "author": [ + "Aditya <> is mainly responsible." + ], + "see_also": [ + "lightning-getsharedsecret(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "psbt", - "commitments_secured" + "lightning-stop.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "stop", + "title": "Command to shutdown the Core Lightning node.", + "description": [ + "The **stop** is a RPC command to shut off the Core Lightning node." ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "The (incomplete) PSBT of the splice transaction." - ] - }, - "commitments_secured": { - "type": "boolean", - "description": [ - "Whether or not the commitments were secured." - ] + "request": { + "required": [], + "properties": {} + }, + "response": { + "required": [ + "result" + ], + "properties": { + "result": { + "type": "string", + "added": "v24.05", + "enum": [ + "Shutdown complete" + ] + } } - } - }, - "example_usage": [ - "Here is an example way to call `splice_update`", - "", - "```shell", - "RESULT={\"commitments_secured\":false}", - "while [[ $(echo $RESULT | jq -r \".commitments_secured\") == \"false\" ]]", - "do", - " RESULT=$(lightning-cli splice_update $CHANNEL_ID $PSBT)", - " PSBT=$(echo $RESULT | jq -r \".psbt\")", - " echo $RESULT", - "done", - "```", - "", - "Before each call to `splice_update` you have the opportunity to make additional changes.", - "", - "Here is a full example set of splice commands that will splice in 100,000 sats to the first channel that comes out of `listpeerchannels`. The example assumes you already have at least one confirmed channel.", - "", - "```shell", - "RESULT=$(lightning-cli listpeerchannels)", - "CHANNEL_ID=$(echo $RESULT| jq -r \".channels[0].channel_id\")", - "echo $RESULT", - "", - "RESULT=$(lightning-cli fundpsbt -k satoshi=100000sat feerate=urgent startweight=800 excess_as_change=true)", - "INITIALPSBT=$(echo $RESULT | jq -r \".psbt\")", - "echo $RESULT", - "", - "RESULT=$(lightning-cli splice_init $CHANNEL_ID 100000 $INITIALPSBT)", - "PSBT=$(echo $RESULT | jq -r \".psbt\")", - "echo $RESULT", - "", - "RESULT={\"commitments_secured\":false}", - "while [[ $(echo $RESULT | jq -r \".commitments_secured\") == \"false\" ]]", - "do", - " RESULT=$(lightning-cli splice_update $CHANNEL_ID $PSBT)", - " PSBT=$(echo $RESULT | jq -r \".psbt\")", - " echo $RESULT", - "done", - "", - "RESULT=$(lightning-cli signpsbt -k psbt=\"$PSBT\")", - "PSBT=$(echo $RESULT | jq -r \".signed_psbt\")", - "echo $RESULT", - "", - "lightning-cli splice_signed $CHANNEL_ID $PSBT", - "```" - ], - "json_example": [ - { - "request": { - "id": "example:splice_update#1", - "method": "splice_update", - "params": { - "channel_id": "5677721c35a424a23d6dcc7c909036e505ae68650e09d59733b4b7e73003a4dc", - "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEFR1IhAjJCZt6EA7OrFXoJ8feE1YevYYMcmYwVG8whu3TCsjFLIQLjvTgAmGbJ2o7EqpnMTqnGwN1G3xXGHvDOHycSkXFOV1KuAQ4gVndyHDWkJKI9bcx8kJA25QWuaGUOCdWXM7S35zADpNwBDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIK/Jiqp0i3SYAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgEOIFZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCDmPhBY5ChQUAAEDCE58DQAAAAAAAQQiUSB4NjVf3IqC3EywCncsVVQVHQY4Sk3WXo0/aKwIVmuEvgz8CWxpZ2h0bmluZwEIxt4P7eqf3+QAAQMIAAAAAAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNDPwJbGlnaHRuaW5nAQji6kH6aOXoAgA=" + }, + "json_example": [ + { + "request": { + "id": "example:stop#1", + "method": "stop", + "params": {} + }, + "response": { + "result": "Shutdown complete" } - }, - "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAYulMzSBYSogKOBxk3Kg+HN0Hl81kGsQVuw2mwoetN33AQAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgFlrmLyNU919XilsjNJ5sxvlE36XmUmRAoDD36K8BZ+cCIE2F6HPv3XjcNsU6hOOY9hUSuVjQUuVWqiNf3Bq3RopeASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8YAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEOIFZ3chw1pCSiPW3MfJCQNuUFrmhlDgnVlzO0t+cwA6TcAQ8EAAAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCCvyYqqdIt0mAAEA9gIAAAAAAQGLpTM0gWEqICjgcZNyoPhzdB5fNZBrEFbsNpsKHrTd9wEAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIBZa5i8jVPdfV4pbIzSebMb5RN+l5lJkQKAw9+ivAWfnAiBNhehz79143DbFOoTjmPYVErlY0FLlVqojX9wat0aKXgEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPGAAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oBDiBWd3IcNaQkoj1tzHyQkDblBa5oZQ4J1ZcztLfnMAOk3AEPBAEAAAABEAT9////DPwJbGlnaHRuaW5nAQg5j4QWOQoUFAABAwhOfA0AAAAAAAEEIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4M/AlsaWdodG5pbmcBCMbeD+3qn9/kAAEDCODIEAAAAAAAAQQiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQz8CWxpZ2h0bmluZwEI4upB+mjl6AIA", - "commitments_secured": true } - } - ], - "author": [ - "Dusty <<@dusty_daemon>> is mainly responsible." - ], - "see_also": [ - "lightning-splice_init(7)", - "lightning-splice_signed(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-sql-template.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.02", - "rpc": "sql", - "title": "Command to do complex queries on list commands", - "description": [ - "The **sql** RPC command runs the given query across a sqlite3 database created from various list commands.", - "", - "When tables are accessed, it calls the below commands, so it's no faster than any other local access (though it goes to great length to cache `listnodes` and `listchannels`) which then processes the results.", - "", - "It is, however faster for remote access if the result of the query is much smaller than the list commands would be." - ], - "request": { - "required": [ - "query" ], - "properties": { - "query": { - "type": "string", - "description": [ - "The standard sqlite3 query to run.", - "Note that queries like \"SELECT *\" are fragile, as columns will change across releases; see lightning-listsqlschemas(7)." - ] - } - } + "author": [ + "Vincenzo Palazzo <> wrote the initial version of this man page,", + "but many others did the hard work of actually implementing this rpc command." + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "rows" + "lightning-txdiscard.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "txdiscard", + "title": "Abandon a transaction from txprepare, release inputs", + "description": [ + "The **txdiscard** RPC command releases inputs which were reserved for use of the *txid* from lightning-txprepare(7)." ], - "properties": { - "rows": { - "type": "array", - "items": { - "type": "array" + "request": { + "required": [ + "txid" + ], + "properties": { + "txid": { + "type": "txid", + "description": [ + "The transaction id, inputs should be unreseverd from." + ] + } + } + }, + "response": { + "required": [ + "unsigned_tx", + "txid" + ], + "properties": { + "unsigned_tx": { + "type": "hex", + "description": [ + "The unsigned transaction." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The transaction id of *unsigned_tx*." + ] } }, - "warning_db_failure": { - "type": "string", - "description": [ - "A message if the database encounters an error partway through." - ] - } + "post_return_value_notes": [ + "If there is no matching *txid*, an error is reported. Note that this may happen due to incorrect usage, such as **txdiscard** or **txsend** already being called for *txid*." + ] }, - "pre_return_value_notes": [ - "On success, an object containing **rows** is returned. It is an array. Each array entry contains an array of values, each an integer, real number, string or *null*, depending on the sqlite3 type.", + "errors": [ + "The following error codes may occur:", "", - "The object may contain **warning_db_failure** if the database fails partway through its operation." + "- -1: An unknown *txid*." + ], + "json_example": [ + { + "request": { + "id": "example:txdiscard#1", + "method": "txdiscard", + "params": { + "txid": "6e680cb76077f11c838cc7aee0c0aa360f9857f00856bb1614025a1af53739fc" + } + }, + "response": { + "unsigned_tx": "020000000142dc00d81359c3a551e170e3bf5262fa9cacc2eb2e283a10e579491cd86dce4b0000000000fdffffff02ffffff00000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd42839800000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be66000000", + "txid": "6e680cb76077f11c838cc7aee0c0aa360f9857f00856bb1614025a1af53739fc" + } + } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-txprepare(7)", + "lightning-txsend(7)" + ], + "resources": [ + "Main web site: " ] }, - "treatment_of_types": [ - "The following types are supported in schemas, and this shows how they are presented in the database. This matters: a JSON boolean is represented as an integer in the database, so a query will return 0 or 1, not true or false.", - "", - "* *hex*. A hex string.", - " * JSON: a string", - " * sqlite3: BLOB", - "", - "* *hash*/*secret*/*pubkey*/*txid*: just like *hex*.", - "", - "* *msat*/*integer*/*u64*/*u32*/*u16*/*u8*. Normal numbers.", - " * JSON: an unsigned integer", - " * sqlite3: INTEGER", - "", - "* *boolean*. True or false.", - " * JSON: literal **true** or **false**", - " * sqlite3: INTEGER", - "", - "* *number*. A floating point number (used for times in some places).", - " * JSON: number", - " * sqlite3: REAL", - "", - "* *string*. Text.", - " * JSON: string", - " * sqlite3: TEXT", - "", - "* *short_channel_id*. A short-channel-id of form 1x2x3.", - " * JSON: string", - " * sqlite3: TEXT" - ], - "permitted_sqlite3_functions": [ - "Writing to the database is not permitted, and limits are placed on various other query parameters.", - "", - "Additionally, only the following functions are allowed:", - "", - "* abs", - "* avg", - "* coalesce", - "* count", - "* hex", - "* quote", - "* length", - "* like", - "* lower", - "* upper", - "* min", - "* max", - "* sum", - "* total" - ], - "tables": [ - "Note that the first column of every table is a unique integer called `rowid`: this is used for related tables to refer to specific rows in their parent. sqlite3 usually has this as an implicit column, but we make it explicit as the implicit version is not allowed to be used as a foreign key.", - "" - ], - "errors": [ - "On failure, an error is returned." - ], - "example_usage": [ - "Here are some example using lightning-cli. Note that you may need to use `-o` if you use queries which contain `=` (which make lightning-cli(1) default to keyword style):", - "", - "A simple peer selection query:", - "", - "```shell", - "$ lightning-cli sql \"SELECT id FROM peers\"", - "{", - " \"rows\": [", - " [", - " \"02ba9965e3db660385bd1dd2c09dd032e0f2179a94fc5db8917b60adf0b363da00\"", - " ]", - " ]", - "}", - "```", - "", - "A statement containing using `=` needs `-o`:", - "", - "```shell", - "$ lightning-cli sql -o \"SELECT node_id,last_timestamp FROM nodes WHERE last_timestamp>=1669578892\"", - "{", - " \"rows\": [", - " [", - " \"02ba9965e3db660385bd1dd2c09dd032e0f2179a94fc5db8917b60adf0b363da00\",", - " 1669601603", - " ]", - " ]", - "}", - "```", - "", - "If you want to compare a BLOB column, `x'hex'` or `X'hex'` are needed:", - "", - "```shell", - "$ lightning-cli sql -o \"SELECT nodeid FROM nodes WHERE nodeid != x'03c9d25b6c0ce4bde5ad97d7ab83f00ae8bd3800a98ccbee36f3c3205315147de1';\"", - "{", - " \"rows\": [", - " [", - " \"0214739d625944f8fdc0da9d2ef44dbd7af58443685e494117b51410c5c3ff973a\"", - " ],", - " [", - " \"02ba9965e3db660385bd1dd2c09dd032e0f2179a94fc5db8917b60adf0b363da00\"", - " ]", - " ]", - "}", - "$ lightning-cli sql -o \"SELECT nodeid FROM nodes WHERE nodeid IN (x'03c9d25b6c0ce4bde5ad97d7ab83f00ae8bd3800a98ccbee36f3c3205315147de1', x'02ba9965e3db660385bd1dd2c09dd032e0f2179a94fc5db8917b60adf0b363da00')\"", - "{", - " \"rows\": [", - " [", - " \"02ba9965e3db660385bd1dd2c09dd032e0f2179a94fc5db8917b60adf0b363da00\"", - " ],", - " [", - " \"03c9d25b6c0ce4bde5ad97d7ab83f00ae8bd3800a98ccbee36f3c3205315147de1\"", - " ]", - " ]", - "}", - "```", - "", - "Related tables are usually referenced by JOIN:", - "", - "```shell", - "$ lightning-cli sql -o \"SELECT nodeid, alias, nodes_addresses.type, nodes_addresses.port, nodes_addresses.address FROM nodes INNER JOIN nodes_addresses ON nodes_addresses.row = nodes.rowid\"", - "{", - " \"rows\": [", - " [", - " \"02ba9965e3db660385bd1dd2c09dd032e0f2179a94fc5db8917b60adf0b363da00\",", - " \"YELLOWWATCH-22.11rc2-31-gcd7593b\",", - " \"dns\",", - " 7272,", - " \"localhost\"", - " ],", - " [", - " \"0214739d625944f8fdc0da9d2ef44dbd7af58443685e494117b51410c5c3ff973a\",", - " \"HOPPINGSQUIRREL-1rc2-31-gcd7593b\",", - " \"dns\",", - " 7171,", - " \"localhost\"", - " ]", - " ]", - "}", - "```", - "", - "Simple function usage, in this case COUNT. Strings inside arrays need \", and ' to protect them from the shell:", - "", - "```shell", - "$ lightning-cli sql 'SELECT COUNT(*) FROM nodes\"", - "{", - " \"rows\": [", - " [", - " 3", - " ]", - " ]", - "}", - "```" - ], - "json_example": [ - { - "request": { - "id": "example:sql#1", - "method": "sql", - "params": [ - "SELECT * FROM forwards;" - ] - }, - "response": { - "rows": [] - } - }, - { - "request": { - "id": "example:sql#2", - "method": "sql", - "params": [ - "SELECT * from peerchannels_features" - ] - }, - "response": { - "rows": [ - [ - 6, - 1, - 0, - "option_static_remotekey" + "lightning-txprepare.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "txprepare", + "title": "Command to prepare to withdraw funds from the internal wallet", + "description": [ + "The **txprepare** RPC command creates an unsigned transaction which spends funds from Core Lightning's internal wallet to the outputs specified in *outputs*.", + "", + "**txprepare** is similar to the first part of a **withdraw** command, but supports multiple outputs and uses *outputs* as parameter. The second part is provided by **txsend**." + ], + "request": { + "required": [ + "outputs" + ], + "properties": { + "outputs": { + "type": "array", + "description": [ + "Format is like: [{destination1: amount1}, {destination2: amount2}] or [{destination: *all*}]. It supports any number of **confirmed** outputs." ], - [ - 7, - 1, - 1, - "option_anchors_zero_fee_htlc_tx" + "items": { + "type": "outputdesc" + } + }, + "feerate": { + "type": "feerate", + "description": [ + "Used for the transaction as initial feerate." ], - [ - 16, - 11, - 0, - "option_static_remotekey" + "default": "*normal*" + }, + "minconf": { + "type": "u32", + "description": [ + "The minimum number of confirmations that used outputs should have." ], - [ - 17, - 11, - 1, - "option_anchors_zero_fee_htlc_tx" - ] - ] + "default": 1 + }, + "utxos": { + "type": "array", + "description": [ + "To be used to fund the transaction, as an array of `txid:vout`. These must be drawn from the node's available UTXO set." + ], + "items": { + "type": "outpoint" + } + } } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-listtransactions(7)", - "lightning-listchannels(7)", - "lightning-listpeers(7)", - "lightning-listnodes(7)", - "lightning-listforwards(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-staticbackup.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "staticbackup", - "title": "Command for deriving getting SCB of all the existing channels", - "description": [ - "The **staticbackup** RPC command returns an object with SCB of all the channels in an array." - ], - "request": { - "required": [], - "properties": {} - }, - "response": { - "required": [ - "scb" - ], - "properties": { - "scb": { - "type": "array", - "items": { + }, + "response": { + "required": [ + "psbt", + "unsigned_tx", + "txid" + ], + "properties": { + "psbt": { + "type": "string", + "description": [ + "The PSBT representing the unsigned transaction." + ] + }, + "unsigned_tx": { "type": "hex", "description": [ - "SCB of a channel in TLV format." + "The unsigned transaction." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The transaction id of *unsigned_tx*; you hand this to lightning-txsend(7) or lightning-txdiscard(7), as the inputs of this transaction are reserved." ] } } - } - }, - "json_example": [ - { - "request": { - "id": "example:staticbackup#1", - "method": "staticbackup", - "params": "{}" + }, + "errors": [ + "On failure, an error is reported and the transaction is not created.", + "", + "- -1: Catchall nonspecific error.", + "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", + "- 302: The dust limit is not met." + ], + "json_example": [ + { + "request": { + "id": "example:txprepare#1", + "method": "txprepare", + "params": { + "outputs": [ + { + "bcrt1qtwxd8wg5eanumk86vfeujvp48hfkgannf77evggzct048wggsrxsum2pmm": 16777215 + } + ], + "feerate": null, + "minconf": null, + "utxos": null + } + }, + "response": { + "unsigned_tx": "020000000142dc00d81359c3a551e170e3bf5262fa9cacc2eb2e283a10e579491cd86dce4b0000000000fdffffff02ffffff00000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd42839800000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be66000000", + "txid": "6e680cb76077f11c838cc7aee0c0aa360f9857f00856bb1614025a1af53739fc", + "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQDeAgAAAAABATRHoQ9tEMHRHpf06v5uTEdjdMk1rccIaA6MNGMipNQWAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFLnqitWTi465LGxeucwoSAj16NGbAkcwRAIgVtOsUaQaPgH86aW6e6qmJa1xVb8KWvc+HALGosqVVmQCIFi4JU8Gy+vl2a2/frY+71hitYIBB/tjsRP7fpgb8b9TASECHUIV5q1r2ownjOlAFPQASTlZxxNgBvi5O3hCRvajwdJlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIELcANgTWcOlUeFw479SYvqcrMLrLig6EOV5SRzYbc5LAQ8EAAAAAAEQBP3///8AAQMI////AAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAAEDCEKDmAAAAAAAAQQiUSB4NjVf3IqC3EywCncsVVQVHQY4Sk3WXo0/aKwIVmuEvgA=" + } }, - "response": { - "scb": [ - "0000000000000001c707da9b230e1655b0a6c082b8daf4fa44d9d1f68163ed4d531d45cf453dc651022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5900017f000001b2e3c707da9b230e1655b0a6c082b8daf4fa44d9d1f68163ed4d531d45cf453dc6510000000000000000000186a000021000" - ] + { + "request": { + "id": "example:txprepare#2", + "method": "txprepare", + "params": { + "outputs": [ + { + "bcrt1qyhu7rxj3rrlcj84jtzp2mk9d89xm9v2rx4d4h8au830axugx6mmqsuplng": "100000sat" + } + ], + "feerate": null, + "minconf": null, + "utxos": null + } + }, + "response": { + "unsigned_tx": "0200000001a91077a134fb9fe4a8d13a482b718368bfd9ce3eff61ff7d96549480a1f97dca0100000000fdffffff02a08601000000000022002025f9e19a5118ff891eb25882add8ad394db2b143355b5b9fbc3c5fd37106d6f66173010000000000225120a2a01c7965289eee56b5cfcddb9856c70fa476c264d21f711c6a69af776ae40366000000", + "txid": "f11d436054607603e903fc69c4bd9b39ce97421341c7cf814ad025cb5bf59c1c", + "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQDeAgAAAAABAYZ4QwAgPq6Os8kk073f5Yx4T9LXYfbOjAdkzMXfuBQdAAAAAAD9////AjPkAioBAAAAFgAUeOeqzyifepeJAMCl4vnnJ/TRptRADQMAAAAAABYAFAH62Qq81maX4lkhZHIt5KlevuFlAkcwRAIgYBFwmqWCrVkxxZ0/tte3z4lIem0L7MkhXzGAOvBWa6YCIFx7H4zOzxjixlZMi0DYYbIEflDjYHJXLfN1wVcXYuekASEDgztw/3Rks6vKGYMXJ83VEvQcNIjg3rJW6KdxEh26uwplAAAAAQEfQA0DAAAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIKkQd6E0+5/kqNE6SCtxg2i/2c4+/2H/fZZUlICh+X3KAQ8EAQAAAAEQBP3///8AAQMIoIYBAAAAAAABBCIAICX54ZpRGP+JHrJYgq3YrTlNsrFDNVtbn7w8X9NxBtb2AAEDCGFzAQAAAAAAAQQiUSCioBx5ZSie7la1z83bmFbHD6R2wmTSH3Ecammvd2rkAwA=" + } } - } - ], - "author": [ - "Aditya <> is mainly responsible." - ], - "see_also": [ - "lightning-getsharedsecret(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-stop.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "stop", - "title": "Command to shutdown the Core Lightning node.", - "description": [ - "The **stop** is a RPC command to shut off the Core Lightning node." - ], - "request": { - "required": [], - "properties": {} + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-withdraw(7)", + "lightning-txsend(7)", + "lightning-txdiscard(7)", + "lightning-feerates(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "result" + "lightning-txsend.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "txsend", + "title": "Command to sign and send transaction from txprepare", + "description": [ + "The **txsend** RPC command signs and broadcasts a transaction created by *txprepare* RPC command." ], - "properties": { - "result": { - "type": "string", - "added": "v24.05", - "enum": [ - "Shutdown complete" - ] + "request": { + "required": [ + "txid" + ], + "properties": { + "txid": { + "type": "txid", + "description": [ + "The transaction id of the transaction created by `txprepare` rpc command." + ] + } } - } - }, - "json_example": [ - { - "request": { - "id": "example:stop#1", - "method": "stop", - "params": {} - }, - "response": { - "result": "Shutdown complete" + }, + "response": { + "required": [ + "psbt", + "tx", + "txid" + ], + "properties": { + "psbt": { + "type": "string", + "description": [ + "The completed PSBT representing the signed transaction." + ] + }, + "tx": { + "type": "hex", + "description": [ + "The fully signed transaction." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The transaction id of *tx*." + ] + } } - } - ], - "author": [ - "Vincenzo Palazzo <> wrote the initial version of this man page,", - "but many others did the hard work of actually implementing this rpc command." - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-txdiscard.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "txdiscard", - "title": "Abandon a transaction from txprepare, release inputs", - "description": [ - "The **txdiscard** RPC command releases inputs which were reserved for use of the *txid* from lightning-txprepare(7)." - ], - "request": { - "required": [ - "txid" + }, + "errors": [ + "On failure, an error is reported (from bitcoind), and the inputs from the transaction are unreserved.", + "", + "- -1: Catchall nonspecific error." ], - "properties": { - "txid": { - "type": "txid", - "description": [ - "The transaction id, inputs should be unreseverd from." - ] + "json_example": [ + { + "request": { + "id": "example:txsend#1", + "method": "txsend", + "params": { + "txid": "c9f59ba6bda8e095bb43ecabfa37de8d5194e5c839b6b63be4e29bceaae483ce" + } + }, + "response": { + "tx": "020000000142dc00d81359c3a551e170e3bf5262fa9cacc2eb2e283a10e579491cd86dce4b0000000000fdffffff020000000100000000220020b636f07026ea64952ece5b7620a9337d9ac2321c796a499260994d1b373667504183980000000000225120754a77b503fcba0fd80f0a1a8226ed6764ff9a9d9bb61b485d40d4c9f4be245966000000", + "txid": "c9f59ba6bda8e095bb43ecabfa37de8d5194e5c839b6b63be4e29bceaae483ce", + "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQDeAgAAAAABATRHoQ9tEMHRHpf06v5uTEdjdMk1rccIaA6MNGMipNQWAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFLnqitWTi465LGxeucwoSAj16NGbAkcwRAIgVtOsUaQaPgH86aW6e6qmJa1xVb8KWvc+HALGosqVVmQCIFi4JU8Gy+vl2a2/frY+71hitYIBB/tjsRP7fpgb8b9TASECHUIV5q1r2ownjOlAFPQASTlZxxNgBvi5O3hCRvajwdJlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZSICA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPRzBEAiBp/HPhg1ObOXqTr5rIjUYLMspGLz+sk1pjD9pjRFzf3wIgWycOB/dQPzwZAK3OXYs269h8o85ucDpdVhH4AyX69a0BIgYD10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8IAfrZCgAAAAABDiBC3ADYE1nDpVHhcOO/UmL6nKzC6y4oOhDleUkc2G3OSwEPBAAAAAABEAT9////AAEDCAAAAAEAAAAAAQQiACC2NvBwJupklS7OW3YgqTN9msIyHHlqSZJgmU0bNzZnUAABAwhBg5gAAAAAAAEEIlEgdUp3tQP8ug/YDwoagibtZ2T/mp2bthtIXUDUyfS+JFkhBycqmiXx/+1S+rBKLMiK6rE1tTcjhWqPFIHCZBf4ipIuCQDVXEk5CwAAAAA=" + } } - } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-txprepare(7)", + "lightning-txdiscard(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "unsigned_tx", - "txid" + "lightning-unreserveinputs.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "unreserveinputs", + "title": "Release reserved UTXOs", + "description": [ + "The **unreserveinputs** RPC command releases (or reduces reservation) on UTXOs which were previously marked as reserved, generally by lightning-reserveinputs(7)." ], - "properties": { - "unsigned_tx": { - "type": "hex", - "description": [ - "The unsigned transaction." - ] - }, - "txid": { - "type": "txid", - "description": [ - "The transaction id of *unsigned_tx*." - ] + "request": { + "required": [ + "psbt" + ], + "properties": { + "psbt": { + "type": "string", + "description": [ + "Inputs to unreserve are the inputs specified in the passed-in *psbt*." + ] + }, + "reserve": { + "type": "u32", + "description": [ + "The number of blocks to decrease reservation by." + ], + "default": 72 + } } }, - "post_return_value_notes": [ - "If there is no matching *txid*, an error is reported. Note that this may happen due to incorrect usage, such as **txdiscard** or **txsend** already being called for *txid*." - ] - }, - "errors": [ - "The following error codes may occur:", - "", - "- -1: An unknown *txid*." - ], - "json_example": [ - { - "request": { - "id": "example:txdiscard#1", - "method": "txdiscard", - "params": { - "txid": "6e680cb76077f11c838cc7aee0c0aa360f9857f00856bb1614025a1af53739fc" + "response": { + "required": [ + "reservations" + ], + "properties": { + "reservations": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true, + "required": [ + "txid", + "vout", + "was_reserved", + "reserved" + ], + "properties": { + "txid": { + "type": "txid", + "description": [ + "The transaction id." + ] + }, + "vout": { + "type": "u32", + "description": [ + "The output number which was reserved." + ] + }, + "was_reserved": { + "type": "boolean", + "description": [ + "Whether the input was already reserved (usually `true`)." + ] + }, + "reserved": { + "type": "boolean", + "description": [ + "Whether the input is now reserved (may still be `true` if it was reserved for a long time)." + ] + } + }, + "allOf": [ + { + "if": { + "additionalProperties": true, + "properties": { + "reserved": { + "enum": [ + true + ] + } + } + }, + "then": { + "required": [ + "reserved_to_block" + ], + "properties": { + "txid": {}, + "vout": {}, + "was_reserved": {}, + "reserved": {}, + "reserved_to_block": { + "type": "u32", + "description": [ + "What blockheight the reservation will expire." + ] + } + } + } + } + ] + } } - }, - "response": { - "unsigned_tx": "020000000142dc00d81359c3a551e170e3bf5262fa9cacc2eb2e283a10e579491cd86dce4b0000000000fdffffff02ffffff00000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd42839800000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be66000000", - "txid": "6e680cb76077f11c838cc7aee0c0aa360f9857f00856bb1614025a1af53739fc" } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-txprepare(7)", - "lightning-txsend(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-txprepare.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "txprepare", - "title": "Command to prepare to withdraw funds from the internal wallet", - "description": [ - "The **txprepare** RPC command creates an unsigned transaction which spends funds from Core Lightning's internal wallet to the outputs specified in *outputs*.", - "", - "**txprepare** is similar to the first part of a **withdraw** command, but supports multiple outputs and uses *outputs* as parameter. The second part is provided by **txsend**." - ], - "request": { - "required": [ - "outputs" + }, + "errors": [ + "On failure, an error is reported and no UTXOs are unreserved.", + "", + "- -32602: Invalid parameter, i.e. an unparseable PSBT." ], - "properties": { - "outputs": { - "type": "array", - "description": [ - "Format is like: [{destination1: amount1}, {destination2: amount2}] or [{destination: *all*}]. It supports any number of **confirmed** outputs." - ], - "items": { - "type": "outputdesc" + "json_example": [ + { + "request": { + "id": "example:unreserveinputs#1", + "method": "unreserveinputs", + "params": { + "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQDeAgAAAAABAXyy20ynmOFyRbegGyApk50yNIAb4C+RKV5c2n5VKL3lAAAAAAD9////Akf0EAAAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WUs/fQpAQAAABYAFN9HebR4q6498ytdeRKjC64CkCOMAkcwRAIgSTJCpWVH1FLZYPdwFe7gZckxCtk+AxPp20KUVKqPIdUCIA3hkoUco68vffiwt6TrE3KgX09JE9m7PDUUgrHQANMRASEDBOBlCza/8qXE5q8uJ+OWsKscDERWfdA+LLCa/lwMH0BlAAAAAQEfR/QQAAAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZSICA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPRzBEAiBKjSasyN29ODqXSemEQCZfRIvbJP8thKRBrd4e+NLEMQIgMGNz3+DWDnLmjnIDCaVcC7BKxuycwvtJq1qlKFtTaXcBIgYD10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8IAfrZCgAAAAABDiAoXS6QUlCcOApG/j+hr4OhNt0tT4GvCzI6z16Hepi7OwEPBAAAAAABEAT9////AAEDCCN6CAAAAAAAAQQWABQfJ4Qjje0sa2yGBz++6jkM2hGRmAz8CWxpZ2h0bmluZwQCAAEAAQMIinkIAAAAAAABBCJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aIQeRRTKBKkQKTXZscc05GTaUo0CuEeAS5boa2e+6bnbKUwkAwsyrFwIAAAAA", + "reserve": 200 + } + }, + "response": { + "reservations": [ + { + "txid": "3bbb987a875ecf3a320baf814f2ddd36a183afa13ffe460a389c5052902e5d28", + "vout": 0, + "was_reserved": true, + "reserved": false + } + ] } }, - "feerate": { - "type": "feerate", - "description": [ - "Used for the transaction as initial feerate." - ], - "default": "*normal*" - }, - "minconf": { - "type": "u32", - "description": [ - "The minimum number of confirmations that used outputs should have." - ], - "default": 1 - }, - "utxos": { - "type": "array", - "description": [ - "To be used to fund the transaction, as an array of `txid:vout`. These must be drawn from the node's available UTXO set." - ], - "items": { - "type": "outpoint" + { + "request": { + "id": "example:unreserveinputs#2", + "method": "unreserveinputs", + "params": { + "psbt": "cHNidP8BAF4CAAAAAVa79WPJoiYrzo/RgzIAn5HanoBFZo0vZvEjxPAVwLv4AAAAAAD9////AXzpHAAAAAAAIlEgBRjpLNlOD2LAbxJt/5i5q+ebfthFoVbVJFZ44mVUR11mAAAAAAEA3gIAAAAAAQENwcSElLyC0jcwUHiODBhtapHyzIdiwytOGiu/Raf4BwAAAAAA/f///wKAhB4AAAAAABYAFAH62Qq81maX4lkhZHIt5KlevuFl82znKQEAAAAWABQyIWyAI6LDf6dJ58BDPdkh+PWUZwJHMEQCIGiJFhVi/d/Hz19Cz48uHTjhgBJ6WAlgl/bLVS7A6VtxAiAwlb7xYzIM4uopFvMnpOmGIOp3+upOPPF2F8VaB8U/HQEhA6BAjey7RADP4ifoh2VXhX7QXkh+sZqozv1EPuU5TxZmZQAAAAEBH4CEHgAAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WUAAA==", + "reserve": null + } + }, + "response": { + "reservations": [] } } - } - }, - "response": { - "required": [ - "psbt", - "unsigned_tx", - "txid" ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "The PSBT representing the unsigned transaction." - ] - }, - "unsigned_tx": { - "type": "hex", - "description": [ - "The unsigned transaction." - ] - }, - "txid": { - "type": "txid", - "description": [ - "The transaction id of *unsigned_tx*; you hand this to lightning-txsend(7) or lightning-txdiscard(7), as the inputs of this transaction are reserved." - ] - } - } + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-unreserveinputs(7)", + "lightning-signpsbt(7)", + "lightning-sendpsbt(7)" + ], + "resources": [ + "Main web site: " + ] }, - "errors": [ - "On failure, an error is reported and the transaction is not created.", - "", - "- -1: Catchall nonspecific error.", - "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", - "- 302: The dust limit is not met." - ], - "json_example": [ - { - "request": { - "id": "example:txprepare#1", - "method": "txprepare", - "params": { - "outputs": [ - { - "bcrt1qtwxd8wg5eanumk86vfeujvp48hfkgannf77evggzct048wggsrxsum2pmm": 16777215 - } + "lightning-upgradewallet.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "upgradewallet", + "title": "Command to spend all P2SH-wrapped inputs into a Native Segwit output", + "description": [ + "`upgradewallet` is a convenience RPC which will spend all p2sh-wrapped Segwit deposits in a wallet into a single Native Segwit P2WPKH address." + ], + "request": { + "required": [], + "properties": { + "feerate": { + "type": "feerate", + "description": [ + "Feerate for the upgrade transaction." + ], + "added": "v23.02", + "default": "*opening*" + }, + "reservedok": { + "type": "boolean", + "description": [ + "Tells the wallet to include all P2SH-wrapped inputs, including reserved ones." ], - "feerate": null, - "minconf": null, - "utxos": null + "added": "v23.02" } - }, - "response": { - "unsigned_tx": "020000000142dc00d81359c3a551e170e3bf5262fa9cacc2eb2e283a10e579491cd86dce4b0000000000fdffffff02ffffff00000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd42839800000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be66000000", - "txid": "6e680cb76077f11c838cc7aee0c0aa360f9857f00856bb1614025a1af53739fc", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQDeAgAAAAABATRHoQ9tEMHRHpf06v5uTEdjdMk1rccIaA6MNGMipNQWAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFLnqitWTi465LGxeucwoSAj16NGbAkcwRAIgVtOsUaQaPgH86aW6e6qmJa1xVb8KWvc+HALGosqVVmQCIFi4JU8Gy+vl2a2/frY+71hitYIBB/tjsRP7fpgb8b9TASECHUIV5q1r2ownjOlAFPQASTlZxxNgBvi5O3hCRvajwdJlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIELcANgTWcOlUeFw479SYvqcrMLrLig6EOV5SRzYbc5LAQ8EAAAAAAEQBP3///8AAQMI////AAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAAEDCEKDmAAAAAAAAQQiUSB4NjVf3IqC3EywCncsVVQVHQY4Sk3WXo0/aKwIVmuEvgA=" } }, - { - "request": { - "id": "example:txprepare#2", - "method": "txprepare", - "params": { - "outputs": [ - { - "bcrt1qyhu7rxj3rrlcj84jtzp2mk9d89xm9v2rx4d4h8au830axugx6mmqsuplng": "100000sat" - } + "response": { + "required": [ + "upgraded_outs" + ], + "properties": { + "upgraded_outs": { + "type": "u64", + "description": [ + "Count of spent/upgraded UTXOs." + ], + "added": "v23.02" + }, + "psbt": { + "type": "string", + "description": [ + "The PSBT that was finalized and sent." + ], + "added": "v23.02" + }, + "tx": { + "type": "hex", + "description": [ + "The raw transaction which was sent." + ], + "added": "v23.02" + }, + "txid": { + "type": "txid", + "description": [ + "The txid of the **tx**." ], - "feerate": null, - "minconf": null, - "utxos": null + "added": "v23.02" } - }, - "response": { - "unsigned_tx": "0200000001a91077a134fb9fe4a8d13a482b718368bfd9ce3eff61ff7d96549480a1f97dca0100000000fdffffff02a08601000000000022002025f9e19a5118ff891eb25882add8ad394db2b143355b5b9fbc3c5fd37106d6f66173010000000000225120a2a01c7965289eee56b5cfcddb9856c70fa476c264d21f711c6a69af776ae40366000000", - "txid": "f11d436054607603e903fc69c4bd9b39ce97421341c7cf814ad025cb5bf59c1c", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQDeAgAAAAABAYZ4QwAgPq6Os8kk073f5Yx4T9LXYfbOjAdkzMXfuBQdAAAAAAD9////AjPkAioBAAAAFgAUeOeqzyifepeJAMCl4vnnJ/TRptRADQMAAAAAABYAFAH62Qq81maX4lkhZHIt5KlevuFlAkcwRAIgYBFwmqWCrVkxxZ0/tte3z4lIem0L7MkhXzGAOvBWa6YCIFx7H4zOzxjixlZMi0DYYbIEflDjYHJXLfN1wVcXYuekASEDgztw/3Rks6vKGYMXJ83VEvQcNIjg3rJW6KdxEh26uwplAAAAAQEfQA0DAAAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQEOIKkQd6E0+5/kqNE6SCtxg2i/2c4+/2H/fZZUlICh+X3KAQ8EAQAAAAEQBP3///8AAQMIoIYBAAAAAAABBCIAICX54ZpRGP+JHrJYgq3YrTlNsrFDNVtbn7w8X9NxBtb2AAEDCGFzAQAAAAAAAQQiUSCioBx5ZSie7la1z83bmFbHD6R2wmTSH3Ecammvd2rkAwA=" } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-withdraw(7)", - "lightning-txsend(7)", - "lightning-txdiscard(7)", - "lightning-feerates(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-txsend.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "txsend", - "title": "Command to sign and send transaction from txprepare", - "description": [ - "The **txsend** RPC command signs and broadcasts a transaction created by *txprepare* RPC command." - ], - "request": { - "required": [ - "txid" + }, + "example_usage": [ + "The caller is trying to buy a liquidity ad but the command keeps failing. They have funds in their wallet, but they're all P2SH-wrapped outputs.", + "", + "The caller can call `upgradewallet` to convert their funds to native segwit outputs, which are valid for liquidity ad buys." ], - "properties": { - "txid": { - "type": "txid", - "description": [ - "The transaction id of the transaction created by `txprepare` rpc command." - ] + "json_example": [ + { + "request": { + "id": "example:upgradewallet#1", + "method": "upgradewallet", + "params": "{}" + }, + "response": { + "upgraded_outs": 0 + } + }, + { + "request": { + "id": "example:upgradewallet#2", + "method": "upgradewallet", + "params": { + "feerate": "urgent", + "reservedok": true + } + }, + "response": { + "tx": "0200000001c08ce0a9ea1e00179ea603cb8619ec2a2df990ef931e1ccd87fa7a0e271ed8370100000000fdffffff013514310100000000225120888ab14b6e1655d1d00039b836d70b66e3351543ab6cd2f94166255f3d5e6cb5cf000000", + "txid": "de5f1d6f0b2f95cfe5cfbf8cc33bd3f279a8f800ee0efc27bbfafb2b6ead9560", + "psbt": "cHNidP8BAgQCAAAAAQMEzwAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDgAgAAAAABAZRZ0m0kaJA+ubJw1eYurGROu1BYc0i7l9xbyG06R6uZAQAAAAD9////AmQtPCgBAAAAF6kUnoGu9IUv0FGnzol3Lb/BNBNkOViHAC0xAQAAAAAXqRRlVyjzbP420BqlDTI2cERp+EpVQIcCRzBEAiBliJpjBsipwFgsLZMlzbESZ6hMTh+pgKQlXUIL0nLb3wIga/xwr/IJgEc7Ie6ApS4aVDr9xr1TZ3wj+8bRvI6WqScBIQPgYuc48PzUufScX6A6YOsdmJwn+bAQjLZ/g9jhQYduHM4AAAABASAALTEBAAAAABepFGVXKPNs/jbQGqUNMjZwRGn4SlVAhyICArnAxoROEqUxyWjlXFUHjsFtm/dr6SkP2H0cynK0g5oXRzBEAiBlTUNYfS5n5rGRVmoNb0z3AMGJjHijwpXROGIVxfoBnQIgeTx32KY3CcfYTYzXUIRQAMUQB7rlPWRptWMDD3UttkcBAQQWABTWuWnTbf/a2YaRk/Zj7kgN/cc0iCIGArnAxoROEqUxyWjlXFUHjsFtm/dr6SkP2H0cynK0g5oXCNa5adMAAAAAAQ4gwIzgqeoeABeepgPLhhnsKi35kO+THhzNh/p6Dice2DcBDwQBAAAAARAE/f///wABAwg1FDEBAAAAAAEEIlEgiIqxS24WVdHQADm4NtcLZuM1FUOrbNL5QWYlXz1ebLUhByjMj8l44gnxaV+ltWVQYdsaqyMRtSQXaUW/EBXvLUuJCQCftnv8BwAAAAA=", + "upgraded_outs": 1 + } } - } + ], + "author": [ + "Lisa Neigut <> is mainly responsible." + ], + "see_also": [ + "lightning-utxopsbt(7)", + "lightning-reserveinputs(7)", + "lightning-unreserveinputs(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "psbt", - "tx", - "txid" + "lightning-utxopsbt.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "utxopsbt", + "title": "Command to populate PSBT inputs from given UTXOs", + "description": [ + "*utxopsbt* is a low-level RPC command which creates a PSBT using unreserved inputs in the wallet, optionally reserving them as well.", + "", + "It deliberately mirrors the parameters and output of lightning-fundpsbt(7) except instead of an optional *minconf* parameter to select unreserved outputs from the wallet, it takes a compulsory list of outputs to use." ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "The completed PSBT representing the signed transaction." - ] - }, - "tx": { - "type": "hex", - "description": [ - "The fully signed transaction." - ] - }, - "txid": { - "type": "txid", - "description": [ - "The transaction id of *tx*." - ] + "request": { + "required": [ + "satoshi", + "feerate", + "startweight", + "utxos" + ], + "properties": { + "satoshi": { + "type": "msat_or_all", + "description": [ + "The minimum satoshi value of the output(s) needed (or the string `all` meaning use all unreserved inputs). If a value, it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*." + ] + }, + "feerate": { + "type": "feerate", + "description": [ + "Used for the transaction as initial feerate." + ], + "default": "*normal*" + }, + "startweight": { + "type": "u32", + "description": [ + "The weight of the transaction before *fundpsbt* has added any inputs." + ] + }, + "utxos": { + "type": "array", + "description": [ + "An array of `txid:vout`, each of which must be reserved or available." + ], + "items": { + "type": "outpoint" + } + }, + "reserve": { + "type": "u32", + "description": [ + "If not zero, then *reserveinputs* is called (successfully, with *exclusive* true) on the returned PSBT for this number of blocks." + ], + "default": "72 blocks" + }, + "reservedok": { + "type": "boolean", + "description": [ + "If set to true, it will also fail if any of the *utxos* are already reserved." + ], + "default": "false" + }, + "locktime": { + "type": "u32", + "description": [ + "If not set, it is set to a recent block height." + ] + }, + "min_witness_weight": { + "type": "u32", + "description": [ + "Minimum weight to use for a UTXO's witness. If the actual witness weight is greater than the provided minimum, the actual witness weight will be used." + ] + }, + "excess_as_change": { + "type": "boolean", + "description": [ + "Flag to add a change output for the excess sats." + ] + }, + "opening_anchor_channel": { + "added": "v23.08", + "type": "boolean", + "description": [ + "To signel that it needs emergency reserve for anchors so that we can lowball our commitment tx fees, and min-emergency-msat for reserving some sats for closing anchor channels." + ] + } } - } - }, - "errors": [ - "On failure, an error is reported (from bitcoind), and the inputs from the transaction are unreserved.", - "", - "- -1: Catchall nonspecific error." - ], - "json_example": [ - { - "request": { - "id": "example:txsend#1", - "method": "txsend", - "params": { - "txid": "c9f59ba6bda8e095bb43ecabfa37de8d5194e5c839b6b63be4e29bceaae483ce" + }, + "response": { + "required": [ + "psbt", + "feerate_per_kw", + "estimated_final_weight", + "excess_msat" + ], + "properties": { + "psbt": { + "type": "string", + "description": [ + "Unsigned PSBT which fulfills the parameters given." + ] + }, + "feerate_per_kw": { + "type": "u32", + "description": [ + "The feerate used to create the PSBT, in satoshis-per-kiloweight." + ] + }, + "estimated_final_weight": { + "type": "u32", + "description": [ + "The estimated weight of the transaction once fully signed." + ] + }, + "excess_msat": { + "type": "msat", + "description": [ + "The amount above *satoshi* which is available. This could be zero, or dust; it will be zero if *change_outnum* is also returned." + ] + }, + "change_outnum": { + "type": "u32", + "description": [ + "The 0-based output number where change was placed (only if parameter *excess_as_change* was true and there was sufficient funds)." + ] + }, + "reservations": { + "type": "array", + "description": [ + "If *reserve* was true or a non-zero number, just as per lightning- reserveinputs(7)." + ], + "items": { + "type": "object", + "required": [ + "txid", + "vout", + "was_reserved", + "reserved", + "reserved_to_block" + ], + "additionalProperties": false, + "properties": { + "txid": { + "type": "txid", + "description": [ + "The txid of the transaction." + ] + }, + "vout": { + "type": "u32", + "description": [ + "The 0-based output number." + ] + }, + "was_reserved": { + "type": "boolean", + "description": [ + "Whether this output was previously reserved." + ] + }, + "reserved": { + "type": "boolean", + "enum": [ + true + ], + "description": [ + "Whether this output is now reserved." + ] + }, + "reserved_to_block": { + "type": "u32", + "description": [ + "The blockheight the reservation will expire." + ] + } + } + } } }, - "response": { - "tx": "020000000142dc00d81359c3a551e170e3bf5262fa9cacc2eb2e283a10e579491cd86dce4b0000000000fdffffff020000000100000000220020b636f07026ea64952ece5b7620a9337d9ac2321c796a499260994d1b373667504183980000000000225120754a77b503fcba0fd80f0a1a8226ed6764ff9a9d9bb61b485d40d4c9f4be245966000000", - "txid": "c9f59ba6bda8e095bb43ecabfa37de8d5194e5c839b6b63be4e29bceaae483ce", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQDeAgAAAAABATRHoQ9tEMHRHpf06v5uTEdjdMk1rccIaA6MNGMipNQWAAAAAAD9////AoCWmAEAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WXzWm0oAQAAABYAFLnqitWTi465LGxeucwoSAj16NGbAkcwRAIgVtOsUaQaPgH86aW6e6qmJa1xVb8KWvc+HALGosqVVmQCIFi4JU8Gy+vl2a2/frY+71hitYIBB/tjsRP7fpgb8b9TASECHUIV5q1r2ownjOlAFPQASTlZxxNgBvi5O3hCRvajwdJlAAAAAQEfgJaYAQAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZSICA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPRzBEAiBp/HPhg1ObOXqTr5rIjUYLMspGLz+sk1pjD9pjRFzf3wIgWycOB/dQPzwZAK3OXYs269h8o85ucDpdVhH4AyX69a0BIgYD10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8IAfrZCgAAAAABDiBC3ADYE1nDpVHhcOO/UmL6nKzC6y4oOhDleUkc2G3OSwEPBAAAAAABEAT9////AAEDCAAAAAEAAAAAAQQiACC2NvBwJupklS7OW3YgqTN9msIyHHlqSZJgmU0bNzZnUAABAwhBg5gAAAAAAAEEIlEgdUp3tQP8ug/YDwoagibtZ2T/mp2bthtIXUDUyfS+JFkhBycqmiXx/+1S+rBKLMiK6rE1tTcjhWqPFIHCZBf4ipIuCQDVXEk5CwAAAAA=" - } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-txprepare(7)", - "lightning-txdiscard(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-unreserveinputs.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "unreserveinputs", - "title": "Release reserved UTXOs", - "description": [ - "The **unreserveinputs** RPC command releases (or reduces reservation) on UTXOs which were previously marked as reserved, generally by lightning-reserveinputs(7)." - ], - "request": { - "required": [ - "psbt" + "post_return_value_notes": [ + "On success, returns the *psbt* it created, containing the inputs, *feerate_per_kw* showing the exact numeric feerate it used, *estimated_final_weight* for the estimated weight of the transaction once fully signed, and *excess_msat* containing the amount above *satoshi* which is available. This could be zero, or dust. If *satoshi* was `all`, then *excess_msat* is the entire amount once fees are subtracted for the weights of the inputs and *startweight*.", + "", + "If *reserve* was *true* or a non-zero number, then a *reservations* array is returned, exactly like *reserveinputs*.", + "", + "If *excess_as_change* is true and the excess is enough to cover an additional output above the `dust_limit`, then an output is added to the PSBT for the excess amount. The *excess_msat* will be zero. A *change_outnum* will be returned with the index of the change output." + ] + }, + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong.", + "- -1: Catchall nonspecific error.", + "- 301: Insufficient UTXOs to meet *satoshi* value." ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "Inputs to unreserve are the inputs specified in the passed-in *psbt*." - ] + "json_example": [ + { + "request": { + "id": "example:utxopsbt#1", + "method": "utxopsbt", + "params": { + "satoshi": 0, + "feerate": "253perkw", + "startweight": 0, + "utxos": [ + "d82a99192fb333106ea8d08f5231ed45f2ed5b1ef9eb81b0fef8f9ea354d2637:1" + ], + "reserve": 0, + "reservedok": true, + "locktime": null, + "min_witness_weight": null, + "excess_as_change": false + } + }, + "response": { + "psbt": "cHNidP8BADMCAAAAATcmTTXq+fj+sIHr+R5b7fJF7TFSj9CobhAzsy8ZmSrYAQAAAAD9////AGYAAAAAAQDeAgAAAAABAWQACJva49ga8OCYXvPRWQRhoXndrJykwjgXbwT251dEAAAAAAD9////AiOI9ikBAAAAFgAU3gClv/YpAKRpfDuiFu6mIL2E4+5QaQ8AAAAAABYAFAH62Qq81maX4lkhZHIt5KlevuFlAkcwRAIgUXIQFs7oRkorVThUn3sLj7WI7g8c8RHai4ChoCvIkWsCICp1CqHl4BlMJCKFHRWHXhhekaj0r1EFSNrh8UnvysQPASEDqHIAEdaH3H6pb3VJzbJNDG4lL8PTfsheL+h2p6baK3JlAAAAAQEfUGkPAAAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQA=", + "feerate_per_kw": 253, + "estimated_final_weight": 271, + "excess_msat": 1009932000 + } }, - "reserve": { - "type": "u32", - "description": [ - "The number of blocks to decrease reservation by." - ], - "default": 72 + { + "request": { + "id": "example:utxopsbt#2", + "method": "utxopsbt", + "params": { + "satoshi": 1000000, + "feerate": "7500perkw", + "startweight": 0, + "utxos": [ + "2fc3b9f8d4aed120f6d9a6f206f07c35ef4d518ec0305d1d974873d256e38ca7:1", + "2f669f6a605ee5c7ddd2abb753bc64b1a90bd1b7448264f5d78a7ca823c00a1b:1" + ], + "reserve": null, + "reservedok": true, + "locktime": null, + "min_witness_weight": null, + "excess_as_change": false + } + }, + "response": { + "psbt": "cHNidP8BAFwCAAAAAqeM41bSc0iXHV0wwI5RTe81fPAG8qbZ9iDRrtT4ucMvAQAAAAD9////GwrAI6h8itf1ZIJEt9ELqbFkvFO3q9Ldx+VeYGqfZi8BAAAAAP3///8AZgAAAAABAN4CAAAAAAEBEaK0TQ97IsrzuO1gLt+vYbvLBG90NrCOZp7SCgrRknYAAAAAAP3///8CM6/2KQEAAAAWABQ1B/KkIVbg7yFRcCEN/VOptfOX/EBCDwAAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WUCRzBEAiA1oI1us81XEa/DRlvcP2qnbWLsV5pZcRfvj9MLyT202gIgb7noMqHYWMmm7H7VNEfWa29jjtuV9yrrSc9ui11ECQ0BIQKhZOHR4gFKMu2EKKgZ/7qnhzq9PvhtnAW2sxPZ4c9RIWUAAAABAR9AQg8AAAAAABYAFAH62Qq81maX4lkhZHIt5KlevuFlAAEA3gIAAAAAAQGnjONW0nNIlx1dMMCOUU3vNXzwBvKm2fYg0a7U+LnDLwAAAAAA/f///wJmbOcpAQAAABYAFOwPo5eUrDF7UgZBFQLRHOeX6PiGQEIPAAAAAAAWABTCzKsXHCpb6dq1LsQbglhjAkxUZgJHMEQCICgjGlauGj2eiMS4MWUK6zAWqMe1OuidQR+Hy9ZgSTuzAiA8JTb9OrLqS3hiWtT+TQ/NBsKJ2hhHLDaKUUNdgi4OkAEhA9g3oH5ejmGIqUY2ZWxc8YWF2+T+XpE/6oC40Cx3+e97ZQAAAAEBH0BCDwAAAAAAFgAUwsyrFxwqW+natS7EG4JYYwJMVGYA", + "feerate_per_kw": 7500, + "estimated_final_weight": 542, + "excess_msat": 995935000, + "reservations": [ + { + "txid": "2fc3b9f8d4aed120f6d9a6f206f07c35ef4d518ec0305d1d974873d256e38ca7", + "vout": 1, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + }, + { + "txid": "2f669f6a605ee5c7ddd2abb753bc64b1a90bd1b7448264f5d78a7ca823c00a1b", + "vout": 1, + "was_reserved": true, + "reserved": true, + "reserved_to_block": 246 + } + ] + } } - } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-fundpsbt(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "reservations" + "lightning-wait.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "added": "v23.08", + "rpc": "wait", + "title": "Command to wait for creations, changes and deletions", + "description": [ + "The **wait** RPC command returns once the index given by *indexname* in *subsystem* reaches or exceeds *nextvalue*. All indexes start at 0, when no events have happened (**wait** with a *nextvalue* of 0 is a way of getting the current index, though naturally this is racy!)." ], - "properties": { - "reservations": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true, - "required": [ - "txid", - "vout", - "was_reserved", - "reserved" + "request": { + "required": [ + "subsystem", + "indexname", + "nextvalue" + ], + "properties": { + "subsystem": { + "type": "string", + "description": [ + "The subsystem to get the next index value from.", + " `invoices`: corresponding to `listinvoices` (added in *v23.08*).", + " `sendpays`: corresponding to `listsendpays` (added in *v23.11*).", + " `forwards`: corresponding to `listforwards` (added in *v23.11*)." ], - "properties": { - "txid": { - "type": "txid", - "description": [ - "The transaction id." - ] - }, - "vout": { - "type": "u32", - "description": [ - "The output number which was reserved." - ] - }, - "was_reserved": { - "type": "boolean", - "description": [ - "Whether the input was already reserved (usually `true`)." - ] - }, - "reserved": { - "type": "boolean", - "description": [ - "Whether the input is now reserved (may still be `true` if it was reserved for a long time)." - ] + "enum": [ + "invoices", + "forwards", + "sendpays" + ] + }, + "indexname": { + "type": "string", + "description": [ + "The name of the index to get the next value for.", + " `created` is incremented by one for every new object.", + " `updated` is incremented by one every time an object is changed.", + " `deleted` is incremented by one every time an object is deleted." + ], + "enum": [ + "created", + "updated", + "deleted" + ] + }, + "nextvalue": { + "type": "u64", + "description": [ + "The next value of the index." + ] + } + } + }, + "response": { + "required": [ + "subsystem" + ], + "properties": { + "subsystem": { + "type": "string", + "enum": [ + "invoices", + "forwards", + "sendpays" + ] + }, + "created": { + "type": "u64", + "description": [ + "1-based index indicating order entry was created." + ] + }, + "updated": { + "type": "u64", + "description": [ + "1-based index indicating order entry was updated." + ] + }, + "deleted": { + "type": "u64", + "description": [ + "1-based index indicating order entry was deleted." + ] + }, + "details": {} + }, + "allOf": [ + { + "if": { + "additionalProperties": true, + "properties": { + "subsystem": { + "type": "string", + "enum": [ + "invoices" + ] + } } }, - "allOf": [ - { - "if": { - "additionalProperties": true, + "then": { + "additionalProperties": false, + "properties": { + "subsystem": {}, + "created": {}, + "updated": {}, + "deleted": {}, + "details": { + "type": "object", + "additionalProperties": false, "properties": { - "reserved": { + "status": { + "type": "string", "enum": [ - true + "unpaid", + "paid", + "expired" + ], + "description": [ + "Whether it's paid, unpaid or unpayable." + ] + }, + "label": { + "type": "string", + "description": [ + "Unique label supplied at invoice creation." + ] + }, + "description": { + "type": "string", + "description": [ + "Description used in the invoice." + ] + }, + "bolt11": { + "type": "string", + "description": [ + "The BOLT11 string." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The BOLT12 string." ] } } - }, - "then": { - "required": [ - "reserved_to_block" - ], + } + } + } + }, + { + "if": { + "additionalProperties": true, + "properties": { + "subsystem": { + "type": "string", + "enum": [ + "forwards" + ] + } + } + }, + "then": { + "additionalProperties": false, + "properties": { + "subsystem": {}, + "created": {}, + "updated": {}, + "deleted": {}, + "details": { + "type": "object", + "additionalProperties": false, "properties": { - "txid": {}, - "vout": {}, - "was_reserved": {}, - "reserved": {}, - "reserved_to_block": { - "type": "u32", + "status": { + "type": "string", + "enum": [ + "offered", + "settled", + "failed", + "local_failed" + ], + "description": [ + "Still ongoing, completed, failed locally, or failed after forwarding." + ] + }, + "in_channel": { + "type": "short_channel_id", "description": [ - "What blockheight the reservation will expire." + "Unique label supplied at invoice creation." + ] + }, + "in_htlc_id": { + "type": "u64", + "description": [ + "The unique HTLC id the sender gave this (not present if incoming channel was closed before upgrade to v22.11)." + ] + }, + "in_msat": { + "type": "msat", + "description": [ + "The value of the incoming HTLC." + ] + }, + "out_channel": { + "type": "short_channel_id", + "description": [ + "The channel that the HTLC (trying to) forward to." ] } } } } - ] - } - } - } - }, - "errors": [ - "On failure, an error is reported and no UTXOs are unreserved.", - "", - "- -32602: Invalid parameter, i.e. an unparseable PSBT." - ], - "json_example": [ - { - "request": { - "id": "example:unreserveinputs#1", - "method": "unreserveinputs", - "params": { - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQDeAgAAAAABAXyy20ynmOFyRbegGyApk50yNIAb4C+RKV5c2n5VKL3lAAAAAAD9////Akf0EAAAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WUs/fQpAQAAABYAFN9HebR4q6498ytdeRKjC64CkCOMAkcwRAIgSTJCpWVH1FLZYPdwFe7gZckxCtk+AxPp20KUVKqPIdUCIA3hkoUco68vffiwt6TrE3KgX09JE9m7PDUUgrHQANMRASEDBOBlCza/8qXE5q8uJ+OWsKscDERWfdA+LLCa/lwMH0BlAAAAAQEfR/QQAAAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZSICA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPRzBEAiBKjSasyN29ODqXSemEQCZfRIvbJP8thKRBrd4e+NLEMQIgMGNz3+DWDnLmjnIDCaVcC7BKxuycwvtJq1qlKFtTaXcBIgYD10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8IAfrZCgAAAAABDiAoXS6QUlCcOApG/j+hr4OhNt0tT4GvCzI6z16Hepi7OwEPBAAAAAABEAT9////AAEDCCN6CAAAAAAAAQQWABQfJ4Qjje0sa2yGBz++6jkM2hGRmAz8CWxpZ2h0bmluZwQCAAEAAQMIinkIAAAAAAABBCJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aIQeRRTKBKkQKTXZscc05GTaUo0CuEeAS5boa2e+6bnbKUwkAwsyrFwIAAAAA", - "reserve": 200 - } - }, - "response": { - "reservations": [ - { - "txid": "3bbb987a875ecf3a320baf814f2ddd36a183afa13ffe460a389c5052902e5d28", - "vout": 0, - "was_reserved": true, - "reserved": false } - ] - } - }, - { - "request": { - "id": "example:unreserveinputs#2", - "method": "unreserveinputs", - "params": { - "psbt": "cHNidP8BAF4CAAAAAVa79WPJoiYrzo/RgzIAn5HanoBFZo0vZvEjxPAVwLv4AAAAAAD9////AXzpHAAAAAAAIlEgBRjpLNlOD2LAbxJt/5i5q+ebfthFoVbVJFZ44mVUR11mAAAAAAEA3gIAAAAAAQENwcSElLyC0jcwUHiODBhtapHyzIdiwytOGiu/Raf4BwAAAAAA/f///wKAhB4AAAAAABYAFAH62Qq81maX4lkhZHIt5KlevuFl82znKQEAAAAWABQyIWyAI6LDf6dJ58BDPdkh+PWUZwJHMEQCIGiJFhVi/d/Hz19Cz48uHTjhgBJ6WAlgl/bLVS7A6VtxAiAwlb7xYzIM4uopFvMnpOmGIOp3+upOPPF2F8VaB8U/HQEhA6BAjey7RADP4ifoh2VXhX7QXkh+sZqozv1EPuU5TxZmZQAAAAEBH4CEHgAAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WUAAA==", - "reserve": null - } - }, - "response": { - "reservations": [] - } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-unreserveinputs(7)", - "lightning-signpsbt(7)", - "lightning-sendpsbt(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-upgradewallet.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "upgradewallet", - "title": "Command to spend all P2SH-wrapped inputs into a Native Segwit output", - "description": [ - "`upgradewallet` is a convenience RPC which will spend all p2sh-wrapped Segwit deposits in a wallet into a single Native Segwit P2WPKH address." - ], - "request": { - "required": [], - "properties": { - "feerate": { - "type": "feerate", - "description": [ - "Feerate for the upgrade transaction." - ], - "added": "v23.02", - "default": "*opening*" - }, - "reservedok": { - "type": "boolean", - "description": [ - "Tells the wallet to include all P2SH-wrapped inputs, including reserved ones." - ], - "added": "v23.02" - } - } - }, - "response": { - "required": [ - "upgraded_outs" - ], - "properties": { - "upgraded_outs": { - "type": "u64", - "description": [ - "Count of spent/upgraded UTXOs." - ], - "added": "v23.02" - }, - "psbt": { - "type": "string", - "description": [ - "The PSBT that was finalized and sent." - ], - "added": "v23.02" - }, - "tx": { - "type": "hex", - "description": [ - "The raw transaction which was sent." - ], - "added": "v23.02" - }, - "txid": { - "type": "txid", - "description": [ - "The txid of the **tx**." - ], - "added": "v23.02" - } - } - }, - "example_usage": [ - "The caller is trying to buy a liquidity ad but the command keeps failing. They have funds in their wallet, but they're all P2SH-wrapped outputs.", - "", - "The caller can call `upgradewallet` to convert their funds to native segwit outputs, which are valid for liquidity ad buys." - ], - "json_example": [ - { - "request": { - "id": "example:upgradewallet#1", - "method": "upgradewallet", - "params": "{}" - }, - "response": { - "upgraded_outs": 0 - } - }, - { - "request": { - "id": "example:upgradewallet#2", - "method": "upgradewallet", - "params": { - "feerate": "urgent", - "reservedok": true - } - }, - "response": { - "tx": "0200000001c08ce0a9ea1e00179ea603cb8619ec2a2df990ef931e1ccd87fa7a0e271ed8370100000000fdffffff013514310100000000225120888ab14b6e1655d1d00039b836d70b66e3351543ab6cd2f94166255f3d5e6cb5cf000000", - "txid": "de5f1d6f0b2f95cfe5cfbf8cc33bd3f279a8f800ee0efc27bbfafb2b6ead9560", - "psbt": "cHNidP8BAgQCAAAAAQMEzwAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQDgAgAAAAABAZRZ0m0kaJA+ubJw1eYurGROu1BYc0i7l9xbyG06R6uZAQAAAAD9////AmQtPCgBAAAAF6kUnoGu9IUv0FGnzol3Lb/BNBNkOViHAC0xAQAAAAAXqRRlVyjzbP420BqlDTI2cERp+EpVQIcCRzBEAiBliJpjBsipwFgsLZMlzbESZ6hMTh+pgKQlXUIL0nLb3wIga/xwr/IJgEc7Ie6ApS4aVDr9xr1TZ3wj+8bRvI6WqScBIQPgYuc48PzUufScX6A6YOsdmJwn+bAQjLZ/g9jhQYduHM4AAAABASAALTEBAAAAABepFGVXKPNs/jbQGqUNMjZwRGn4SlVAhyICArnAxoROEqUxyWjlXFUHjsFtm/dr6SkP2H0cynK0g5oXRzBEAiBlTUNYfS5n5rGRVmoNb0z3AMGJjHijwpXROGIVxfoBnQIgeTx32KY3CcfYTYzXUIRQAMUQB7rlPWRptWMDD3UttkcBAQQWABTWuWnTbf/a2YaRk/Zj7kgN/cc0iCIGArnAxoROEqUxyWjlXFUHjsFtm/dr6SkP2H0cynK0g5oXCNa5adMAAAAAAQ4gwIzgqeoeABeepgPLhhnsKi35kO+THhzNh/p6Dice2DcBDwQBAAAAARAE/f///wABAwg1FDEBAAAAAAEEIlEgiIqxS24WVdHQADm4NtcLZuM1FUOrbNL5QWYlXz1ebLUhByjMj8l44gnxaV+ltWVQYdsaqyMRtSQXaUW/EBXvLUuJCQCftnv8BwAAAAA=", - "upgraded_outs": 1 - } - } - ], - "author": [ - "Lisa Neigut <> is mainly responsible." - ], - "see_also": [ - "lightning-utxopsbt(7)", - "lightning-reserveinputs(7)", - "lightning-unreserveinputs(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-utxopsbt.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "utxopsbt", - "title": "Command to populate PSBT inputs from given UTXOs", - "description": [ - "*utxopsbt* is a low-level RPC command which creates a PSBT using unreserved inputs in the wallet, optionally reserving them as well.", - "", - "It deliberately mirrors the parameters and output of lightning-fundpsbt(7) except instead of an optional *minconf* parameter to select unreserved outputs from the wallet, it takes a compulsory list of outputs to use." - ], - "request": { - "required": [ - "satoshi", - "feerate", - "startweight", - "utxos" - ], - "properties": { - "satoshi": { - "type": "msat_or_all", - "description": [ - "The minimum satoshi value of the output(s) needed (or the string `all` meaning use all unreserved inputs). If a value, it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*." - ] - }, - "feerate": { - "type": "feerate", - "description": [ - "Used for the transaction as initial feerate." - ], - "default": "*normal*" - }, - "startweight": { - "type": "u32", - "description": [ - "The weight of the transaction before *fundpsbt* has added any inputs." - ] - }, - "utxos": { - "type": "array", - "description": [ - "An array of `txid:vout`, each of which must be reserved or available." - ], - "items": { - "type": "outpoint" - } - }, - "reserve": { - "type": "u32", - "description": [ - "If not zero, then *reserveinputs* is called (successfully, with *exclusive* true) on the returned PSBT for this number of blocks." - ], - "default": "72 blocks" - }, - "reservedok": { - "type": "boolean", - "description": [ - "If set to true, it will also fail if any of the *utxos* are already reserved." - ], - "default": "false" - }, - "locktime": { - "type": "u32", - "description": [ - "If not set, it is set to a recent block height." - ] - }, - "min_witness_weight": { - "type": "u32", - "description": [ - "Minimum weight to use for a UTXO's witness. If the actual witness weight is greater than the provided minimum, the actual witness weight will be used." - ] - }, - "excess_as_change": { - "type": "boolean", - "description": [ - "Flag to add a change output for the excess sats." - ] - }, - "opening_anchor_channel": { - "added": "v23.08", - "type": "boolean", - "description": [ - "To signel that it needs emergency reserve for anchors so that we can lowball our commitment tx fees, and min-emergency-msat for reserving some sats for closing anchor channels." - ] - } - } - }, - "response": { - "required": [ - "psbt", - "feerate_per_kw", - "estimated_final_weight", - "excess_msat" - ], - "properties": { - "psbt": { - "type": "string", - "description": [ - "Unsigned PSBT which fulfills the parameters given." - ] - }, - "feerate_per_kw": { - "type": "u32", - "description": [ - "The feerate used to create the PSBT, in satoshis-per-kiloweight." - ] - }, - "estimated_final_weight": { - "type": "u32", - "description": [ - "The estimated weight of the transaction once fully signed." - ] - }, - "excess_msat": { - "type": "msat", - "description": [ - "The amount above *satoshi* which is available. This could be zero, or dust; it will be zero if *change_outnum* is also returned." - ] - }, - "change_outnum": { - "type": "u32", - "description": [ - "The 0-based output number where change was placed (only if parameter *excess_as_change* was true and there was sufficient funds)." - ] - }, - "reservations": { - "type": "array", - "description": [ - "If *reserve* was true or a non-zero number, just as per lightning- reserveinputs(7)." - ], - "items": { - "type": "object", - "required": [ - "txid", - "vout", - "was_reserved", - "reserved", - "reserved_to_block" - ], - "additionalProperties": false, - "properties": { - "txid": { - "type": "txid", - "description": [ - "The txid of the transaction." - ] - }, - "vout": { - "type": "u32", - "description": [ - "The 0-based output number." - ] - }, - "was_reserved": { - "type": "boolean", - "description": [ - "Whether this output was previously reserved." - ] - }, - "reserved": { - "type": "boolean", - "enum": [ - true - ], - "description": [ - "Whether this output is now reserved." - ] - }, - "reserved_to_block": { - "type": "u32", - "description": [ - "The blockheight the reservation will expire." - ] + }, + { + "if": { + "additionalProperties": true, + "properties": { + "subsystem": { + "type": "string", + "enum": [ + "sendpays" + ] + } + } + }, + "then": { + "additionalProperties": false, + "properties": { + "subsystem": {}, + "created": {}, + "updated": {}, + "deleted": {}, + "details": { + "type": "object", + "additionalProperties": false, + "properties": { + "status": { + "type": "string", + "enum": [ + "pending", + "failed", + "complete" + ], + "description": [ + "Status of the payment." + ] + }, + "partid": { + "type": "u64", + "description": [ + "Part number (for multiple parts to a single payment)." + ] + }, + "groupid": { + "type": "u64", + "description": [ + "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + } + } + } } } } - } + ] }, - "post_return_value_notes": [ - "On success, returns the *psbt* it created, containing the inputs, *feerate_per_kw* showing the exact numeric feerate it used, *estimated_final_weight* for the estimated weight of the transaction once fully signed, and *excess_msat* containing the amount above *satoshi* which is available. This could be zero, or dust. If *satoshi* was `all`, then *excess_msat* is the entire amount once fees are subtracted for the weights of the inputs and *startweight*.", + "reliability": [ + "Indices can go forward by more than one; in particlar, if multiple objects were created and the one deleted, you could see this effect. Similarly, there are some places (e.g. invoice expiration) where we can update multiple entries at once.", + "", + "Indices only monotoncally increase." + ], + "usage": [ + "The **wait** RPC is used to track changes in the system. Consider tracking invoices being paid or expiring. The simplest (and inefficient method) would be:", + "1. Call `listinvoices` to get the current state of all invoices, and remember the highest `updated_index`. Say it was 5.", + "2. Call `wait invoices updated 6`.", + "3. When it returns, call `listinvoices` again to see what changed.", "", - "If *reserve* was *true* or a non-zero number, then a *reservations* array is returned, exactly like *reserveinputs*.", + "This is obviously inefficient, so there are two optimizations:", + "1. Call `listinvoices` with `index=updated` and `start=6` to only see invoices with `updated_index` greater than or equal to 6.", + "2. `wait` itself may also return some limited subset of fields from the list command (it can't do this in all cases); for `invoices` this is `label` and `status`, allowing many callers to avoid the `listinvoices` call." + ], + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", "", - "If *excess_as_change* is true and the excess is enough to cover an additional output above the `dust_limit`, then an output is added to the PSBT for the excess amount. The *excess_msat* will be zero. A *change_outnum* will be returned with the index of the change output." - ] - }, - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong.", - "- -1: Catchall nonspecific error.", - "- 301: Insufficient UTXOs to meet *satoshi* value." - ], - "json_example": [ - { - "request": { - "id": "example:utxopsbt#1", - "method": "utxopsbt", - "params": { - "satoshi": 0, - "feerate": "253perkw", - "startweight": 0, - "utxos": [ - "d82a99192fb333106ea8d08f5231ed45f2ed5b1ef9eb81b0fef8f9ea354d2637:1" - ], - "reserve": 0, - "reservedok": true, - "locktime": null, - "min_witness_weight": null, - "excess_as_change": false + "- -32602: If the given parameters are wrong." + ], + "json_example": [ + { + "request": { + "id": "example:wait#1", + "method": "wait", + "params": { + "subsystem": "invoices", + "indexname": "created", + "nextvalue": 1 + } + }, + "response": { + "subsystem": "invoices", + "created": 1, + "details": { + "status": "unpaid", + "label": "invlabel", + "bolt11": "lnbcrt420p1pjmxtevsp5d8c6gnaj8lyjy2qly783vklda9dfaqeyzyc37agxxp8h3uguv8pqpp5w6lhwxhqnuew4hle5h7qwjm27zz784mvsrzhmayhscy5t2hy5c4qdqvd9h8ver9wd3sxqyjw5qcqp99qxpqysgq09gxhjhwu9u3z6dlt5ln5f4g8zl78wz4pgh0am3kz54m9lllhqckf4gmhmt2ftrclq5x62zkqmggc7y0ju0ghdfwjz8hyd8l5cqvemgpyyhm6w" + } } }, - "response": { - "psbt": "cHNidP8BADMCAAAAATcmTTXq+fj+sIHr+R5b7fJF7TFSj9CobhAzsy8ZmSrYAQAAAAD9////AGYAAAAAAQDeAgAAAAABAWQACJva49ga8OCYXvPRWQRhoXndrJykwjgXbwT251dEAAAAAAD9////AiOI9ikBAAAAFgAU3gClv/YpAKRpfDuiFu6mIL2E4+5QaQ8AAAAAABYAFAH62Qq81maX4lkhZHIt5KlevuFlAkcwRAIgUXIQFs7oRkorVThUn3sLj7WI7g8c8RHai4ChoCvIkWsCICp1CqHl4BlMJCKFHRWHXhhekaj0r1EFSNrh8UnvysQPASEDqHIAEdaH3H6pb3VJzbJNDG4lL8PTfsheL+h2p6baK3JlAAAAAQEfUGkPAAAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZQA=", - "feerate_per_kw": 253, - "estimated_final_weight": 271, - "excess_msat": 1009932000 - } - }, - { - "request": { - "id": "example:utxopsbt#2", - "method": "utxopsbt", - "params": { - "satoshi": 1000000, - "feerate": "7500perkw", - "startweight": 0, - "utxos": [ - "2fc3b9f8d4aed120f6d9a6f206f07c35ef4d518ec0305d1d974873d256e38ca7:1", - "2f669f6a605ee5c7ddd2abb753bc64b1a90bd1b7448264f5d78a7ca823c00a1b:1" - ], - "reserve": null, - "reservedok": true, - "locktime": null, - "min_witness_weight": null, - "excess_as_change": false + { + "request": { + "id": "example:wait#2", + "method": "wait", + "params": { + "subsystem": "invoices", + "indexname": "updated", + "nextvalue": 2 + } + }, + "response": { + "subsystem": "invoices", + "updated": 2, + "details": { + "status": "expired" + } } }, - "response": { - "psbt": "cHNidP8BAFwCAAAAAqeM41bSc0iXHV0wwI5RTe81fPAG8qbZ9iDRrtT4ucMvAQAAAAD9////GwrAI6h8itf1ZIJEt9ELqbFkvFO3q9Ldx+VeYGqfZi8BAAAAAP3///8AZgAAAAABAN4CAAAAAAEBEaK0TQ97IsrzuO1gLt+vYbvLBG90NrCOZp7SCgrRknYAAAAAAP3///8CM6/2KQEAAAAWABQ1B/KkIVbg7yFRcCEN/VOptfOX/EBCDwAAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WUCRzBEAiA1oI1us81XEa/DRlvcP2qnbWLsV5pZcRfvj9MLyT202gIgb7noMqHYWMmm7H7VNEfWa29jjtuV9yrrSc9ui11ECQ0BIQKhZOHR4gFKMu2EKKgZ/7qnhzq9PvhtnAW2sxPZ4c9RIWUAAAABAR9AQg8AAAAAABYAFAH62Qq81maX4lkhZHIt5KlevuFlAAEA3gIAAAAAAQGnjONW0nNIlx1dMMCOUU3vNXzwBvKm2fYg0a7U+LnDLwAAAAAA/f///wJmbOcpAQAAABYAFOwPo5eUrDF7UgZBFQLRHOeX6PiGQEIPAAAAAAAWABTCzKsXHCpb6dq1LsQbglhjAkxUZgJHMEQCICgjGlauGj2eiMS4MWUK6zAWqMe1OuidQR+Hy9ZgSTuzAiA8JTb9OrLqS3hiWtT+TQ/NBsKJ2hhHLDaKUUNdgi4OkAEhA9g3oH5ejmGIqUY2ZWxc8YWF2+T+XpE/6oC40Cx3+e97ZQAAAAEBH0BCDwAAAAAAFgAUwsyrFxwqW+natS7EG4JYYwJMVGYA", - "feerate_per_kw": 7500, - "estimated_final_weight": 542, - "excess_msat": 995935000, - "reservations": [ - { - "txid": "2fc3b9f8d4aed120f6d9a6f206f07c35ef4d518ec0305d1d974873d256e38ca7", - "vout": 1, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 - }, - { - "txid": "2f669f6a605ee5c7ddd2abb753bc64b1a90bd1b7448264f5d78a7ca823c00a1b", - "vout": 1, - "was_reserved": true, - "reserved": true, - "reserved_to_block": 246 + { + "request": { + "id": "example:wait#3", + "method": "wait", + "params": { + "subsystem": "sendpays", + "indexname": "updated", + "nextvalue": 2 } - ] + }, + "response": { + "subsystem": "sendpays", + "updated": 2, + "details": { + "status": "complete", + "partid": 0, + "groupid": 1, + "payment_hash": "220dcfcf43e1fab3ce30f70eb943c3ce962393f5a65ced52d749e324b443d19e" + } + } } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-fundpsbt(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-wait.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "added": "v23.08", - "rpc": "wait", - "title": "Command to wait for creations, changes and deletions", - "description": [ - "The **wait** RPC command returns once the index given by *indexname* in *subsystem* reaches or exceeds *nextvalue*. All indexes start at 0, when no events have happened (**wait** with a *nextvalue* of 0 is a way of getting the current index, though naturally this is racy!)." - ], - "request": { - "required": [ - "subsystem", - "indexname", - "nextvalue" ], - "properties": { - "subsystem": { - "type": "string", - "description": [ - "The subsystem to get the next index value from.", - " `invoices`: corresponding to `listinvoices` (added in *v23.08*).", - " `sendpays`: corresponding to `listsendpays` (added in *v23.11*).", - " `forwards`: corresponding to `listforwards` (added in *v23.11*)." - ], - "enum": [ - "invoices", - "forwards", - "sendpays" - ] - }, - "indexname": { - "type": "string", - "description": [ - "The name of the index to get the next value for.", - " `created` is incremented by one for every new object.", - " `updated` is incremented by one every time an object is changed.", - " `deleted` is incremented by one every time an object is deleted." - ], - "enum": [ - "created", - "updated", - "deleted" - ] - }, - "nextvalue": { - "type": "u64", - "description": [ - "The next value of the index." - ] - } - } + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-listinvoices(7)", + "lightning-listforwards(7)", + "lightning-listsendpays(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "subsystem" + "lightning-waitanyinvoice.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "waitanyinvoice", + "title": "Command for waiting for payments", + "description": [ + "The **waitanyinvoice** RPC command waits until an invoice is paid, then returns a single entry as per **listinvoices**. It will not return for any invoices paid prior to or including the *lastpay_index*.", + "", + "This is usually called iteratively: once with no arguments, then repeatedly with the returned *pay_index* entry. This ensures that no paid invoice is missed. The *pay_index* is a monotonically-increasing number assigned to an invoice when it gets paid. The first valid *pay_index* is 1." ], - "properties": { - "subsystem": { - "type": "string", - "enum": [ - "invoices", - "forwards", - "sendpays" - ] - }, - "created": { - "type": "u64", - "description": [ - "1-based index indicating order entry was created." - ] - }, - "updated": { - "type": "u64", - "description": [ - "1-based index indicating order entry was updated." - ] - }, - "deleted": { - "type": "u64", - "description": [ - "1-based index indicating order entry was deleted." - ] - }, - "details": {} + "request": { + "required": [], + "properties": { + "lastpay_index": { + "type": "u64", + "description": [ + "Ignores any invoices paid prior to or including this index. 0 is equivalent to not specifying and negative value is invalid." + ] + }, + "timeout": { + "type": "u64", + "description": [ + "If specified, wait at most that number of seconds, which must be an integer. If the specified *timeout* is reached, this command will return with an error. You can specify this to 0 so that **waitanyinvoice** will return immediately with an error if no pending invoice is available yet. If unspecified, this command will wait indefinitely." + ] + } + } }, - "allOf": [ - { - "if": { - "additionalProperties": true, - "properties": { - "subsystem": { - "type": "string", - "enum": [ - "invoices" - ] - } - } + "response": { + "required": [ + "label", + "description", + "payment_hash", + "status", + "created_index", + "expires_at" + ], + "properties": { + "label": { + "type": "string", + "description": [ + "Unique label supplied at invoice creation." + ] }, - "then": { - "additionalProperties": false, - "properties": { - "subsystem": {}, - "created": {}, - "updated": {}, - "deleted": {}, - "details": { - "type": "object", - "additionalProperties": false, - "properties": { - "status": { - "type": "string", - "enum": [ - "unpaid", - "paid", - "expired" - ], - "description": [ - "Whether it's paid, unpaid or unpayable." - ] - }, - "label": { - "type": "string", - "description": [ - "Unique label supplied at invoice creation." - ] - }, - "description": { - "type": "string", - "description": [ - "Description used in the invoice." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "The BOLT11 string." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The BOLT12 string." - ] - } - } - } - } + "description": { + "type": "string", + "description": [ + "Description used in the invoice." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "status": { + "type": "string", + "enum": [ + "paid", + "expired" + ], + "description": [ + "Whether it's paid or expired." + ] + }, + "expires_at": { + "type": "u64", + "description": [ + "UNIX timestamp of when it will become / became unpayable." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount required to pay this invoice." + ] + }, + "bolt11": { + "type": "string", + "description": [ + "The BOLT11 string (always present unless *bolt12* is)." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The BOLT12 string (always present unless *bolt11* is)." + ] + }, + "created_index": { + "type": "u64", + "added": "v23.08", + "description": [ + "1-based index indicating order this invoice was created in." + ] + }, + "updated_index": { + "type": "u64", + "added": "v23.08", + "description": [ + "1-based index indicating order this invoice was changed (only present if it has changed since creation)." + ] } }, - { - "if": { - "additionalProperties": true, - "properties": { - "subsystem": { - "type": "string", - "enum": [ - "forwards" - ] + "allOf": [ + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "paid" + ] + } } - } - }, - "then": { - "additionalProperties": false, - "properties": { - "subsystem": {}, - "created": {}, - "updated": {}, - "deleted": {}, - "details": { - "type": "object", - "additionalProperties": false, - "properties": { - "status": { - "type": "string", - "enum": [ - "offered", - "settled", - "failed", - "local_failed" - ], - "description": [ - "Still ongoing, completed, failed locally, or failed after forwarding." - ] - }, - "in_channel": { - "type": "short_channel_id", - "description": [ - "Unique label supplied at invoice creation." - ] - }, - "in_htlc_id": { - "type": "u64", - "description": [ - "The unique HTLC id the sender gave this (not present if incoming channel was closed before upgrade to v22.11)." - ] - }, - "in_msat": { - "type": "msat", - "description": [ - "The value of the incoming HTLC." - ] - }, - "out_channel": { - "type": "short_channel_id", - "description": [ - "The channel that the HTLC (trying to) forward to." - ] + }, + "then": { + "additionalProperties": false, + "required": [ + "pay_index", + "amount_received_msat", + "paid_at", + "payment_preimage" + ], + "properties": { + "label": {}, + "description": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "bolt11": {}, + "bolt12": {}, + "expires_at": {}, + "created_index": {}, + "updated_index": {}, + "pay_index": { + "type": "u64", + "description": [ + "Unique incrementing index for this payment." + ] + }, + "amount_received_msat": { + "type": "msat", + "description": [ + "The amount actually received (could be slightly greater than *amount_msat*, since clients may overpay)." + ] + }, + "paid_at": { + "type": "u64", + "description": [ + "UNIX timestamp of when it was paid." + ] + }, + "paid_outpoint": { + "type": "object", + "description": [ + "Outpoint this invoice was paid with." + ], + "added": "v23.11", + "additionalProperties": false, + "required": [ + "txid", + "outnum" + ], + "properties": { + "txid": { + "added": "v23.11", + "type": "txid", + "description": [ + "ID of the transaction that paid the invoice." + ] + }, + "outnum": { + "added": "v23.11", + "type": "u32", + "description": [ + "The 0-based output number of the transaction that paid the invoice." + ] + } } + }, + "payment_preimage": { + "type": "secret", + "description": [ + "Proof of payment." + ] } } + }, + "else": { + "additionalProperties": false, + "properties": { + "label": {}, + "description": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "bolt11": {}, + "bolt12": {}, + "created_index": {}, + "updated_index": {}, + "expires_at": {} + } + } + } + ] + }, + "errors": [ + "The following error codes may occur:", + "", + "- 904: The *timeout* was reached without an invoice being paid." + ], + "json_example": [ + { + "request": { + "id": "example:waitanyinvoice#1", + "method": "waitanyinvoice", + "params": { + "lastpay_index": null, + "timeout": null } + }, + "response": { + "label": "inv1", + "bolt11": "lnbcrt10n1pjmxtsxsp56sn02x8lccjfsvunnhz5858zuyxztug9luy226w4qsmfm4r8pkcspp5gw5r0dw99yf3zqxrg24l8g9m9hun9cu06ldg4rga8s9t9kv8z45sdq8d9h8vvgxqyjw5qcqp99qxpqysgqv537uh2sx8ch640mf4t43t8qjtpg3z7gukgm07tlyq986m7nvsnxkapg37z4vsxtl4thfqzc64anqr83geygkc2xaftxgr97dltqfjqpe3mhja", + "payment_hash": "43a837b5c529131100c342abf3a0bb2df932e38fd7da8a8d1d3c0ab2d9871569", + "amount_msat": 1000, + "status": "paid", + "pay_index": 1, + "amount_received_msat": 1000, + "paid_at": 1706241546, + "payment_preimage": "a0c668998de14b975f33e1060b3efd7efc0bde784ac266ab667a1b2fddab3cd1", + "description": [ + "Inv1." + ], + "expires_at": 1706846342, + "created_index": 1, + "updated_index": 1 } }, { - "if": { - "additionalProperties": true, - "properties": { - "subsystem": { - "type": "string", - "enum": [ - "sendpays" - ] - } + "request": { + "id": "example:waitanyinvoice#2", + "method": "waitanyinvoice", + "params": { + "lastpay_index": 3, + "timeout": 0 } }, - "then": { - "additionalProperties": false, - "properties": { - "subsystem": {}, - "created": {}, - "updated": {}, - "deleted": {}, - "details": { - "type": "object", - "additionalProperties": false, - "properties": { - "status": { - "type": "string", - "enum": [ - "pending", - "failed", - "complete" - ], - "description": [ - "Status of the payment." - ] - }, - "partid": { - "type": "u64", - "description": [ - "Part number (for multiple parts to a single payment)." - ] - }, - "groupid": { - "type": "u64", - "description": [ - "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - } - } - } - } + "response": { + "label": "inv4", + "bolt11": "lnbcrt10n1pja0tkmsp57j4z9zwvdsyh57unh3da7aac5z20clfnrwy5nqm6wujaelduw23qpp580mdrwakz9xewc2vhvpucset9gjkgdvyhw7h9frcy2d6p2lwdw2qdq8d9h8vdqxqyjw5qcqp99qxpqysgqtgyzhtxs3p2dyk8wk9q028033303702d2hml4frmu38qe79mrkgzgxvyjmq2q4nhjgcuz3uhmlda3jnhf9w6mj8mj97pkgnda9l5kdcqsdgewf", + "payment_hash": "3bf6d1bbb6114d97614cbb03cc432b2a25643584bbbd72a478229ba0abee6b94", + "amount_msat": 1000, + "status": "paid", + "pay_index": 4, + "amount_received_msat": 1000, + "paid_at": 1708633825, + "payment_preimage": "77336a342dde76050c7ee7fc18599e407dfc1edad3c784ba68e9603004365b94", + "description": "inv4", + "expires_at": 1709238619, + "created_index": 4, + "updated_index": 4 } } + ], + "author": [ + "Rusty Russell <> is mainly responsible." + ], + "see_also": [ + "lightning-waitinvoice(7)", + "lightning-listinvoices(7)", + "lightning-delinvoice(7)", + "lightning-invoice(7)" + ], + "resources": [ + "Main web site: " ] }, - "reliability": [ - "Indices can go forward by more than one; in particlar, if multiple objects were created and the one deleted, you could see this effect. Similarly, there are some places (e.g. invoice expiration) where we can update multiple entries at once.", - "", - "Indices only monotoncally increase." - ], - "usage": [ - "The **wait** RPC is used to track changes in the system. Consider tracking invoices being paid or expiring. The simplest (and inefficient method) would be:", - "1. Call `listinvoices` to get the current state of all invoices, and remember the highest `updated_index`. Say it was 5.", - "2. Call `wait invoices updated 6`.", - "3. When it returns, call `listinvoices` again to see what changed.", - "", - "This is obviously inefficient, so there are two optimizations:", - "1. Call `listinvoices` with `index=updated` and `start=6` to only see invoices with `updated_index` greater than or equal to 6.", - "2. `wait` itself may also return some limited subset of fields from the list command (it can't do this in all cases); for `invoices` this is `label` and `status`, allowing many callers to avoid the `listinvoices` call." - ], - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong." - ], - "json_example": [ - { - "request": { - "id": "example:wait#1", - "method": "wait", - "params": { - "subsystem": "invoices", - "indexname": "created", - "nextvalue": 1 - } - }, - "response": { - "subsystem": "invoices", - "created": 1, - "details": { - "status": "unpaid", - "label": "invlabel", - "bolt11": "lnbcrt420p1pjmxtevsp5d8c6gnaj8lyjy2qly783vklda9dfaqeyzyc37agxxp8h3uguv8pqpp5w6lhwxhqnuew4hle5h7qwjm27zz784mvsrzhmayhscy5t2hy5c4qdqvd9h8ver9wd3sxqyjw5qcqp99qxpqysgq09gxhjhwu9u3z6dlt5ln5f4g8zl78wz4pgh0am3kz54m9lllhqckf4gmhmt2ftrclq5x62zkqmggc7y0ju0ghdfwjz8hyd8l5cqvemgpyyhm6w" + "lightning-waitblockheight.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "waitblockheight", + "title": "Command for waiting for blocks on the blockchain", + "description": [ + "The **waitblockheight** RPC command waits until the blockchain has reached the specified *blockheight*." + ], + "request": { + "required": [ + "blockheight" + ], + "properties": { + "blockheight": { + "type": "u32", + "description": [ + "Current blockheight of the blockchain if the value is greater than this number. If it is a present or past block height, then the command returns immediately." + ] + }, + "timeout": { + "type": "u32", + "description": [ + "Only wait up to specified seconds." + ], + "default": "60 seconds" } } }, - { - "request": { - "id": "example:wait#2", - "method": "wait", - "params": { - "subsystem": "invoices", - "indexname": "updated", - "nextvalue": 2 + "response": { + "required": [ + "blockheight" + ], + "properties": { + "blockheight": { + "type": "u32", + "description": [ + "The current block height (>= *blockheight* parameter)." + ] } }, - "response": { - "subsystem": "invoices", - "updated": 2, - "details": { - "status": "expired" - } - } + "post_return_value_notes": [ + "If *timeout* seconds is reached without the specified blockheight being reached, this command will fail with a code of `2000`." + ] }, - { - "request": { - "id": "example:wait#3", - "method": "wait", - "params": { - "subsystem": "sendpays", - "indexname": "updated", - "nextvalue": 2 + "errors": [ + "The following error codes may occur:", + "", + "- 2000: Timed out." + ], + "json_example": [ + { + "request": { + "id": "example:waitblockheight#1", + "method": "waitblockheight", + "params": { + "blockheight": 99, + "timeout": null + } + }, + "response": { + "blockheight": 99 } }, - "response": { - "subsystem": "sendpays", - "updated": 2, - "details": { - "status": "complete", - "partid": 0, - "groupid": 1, - "payment_hash": "220dcfcf43e1fab3ce30f70eb943c3ce962393f5a65ced52d749e324b443d19e" + { + "request": { + "id": "example:waitblockheight#2", + "method": "waitblockheight", + "params": { + "blockheight": 103, + "timeout": 600 + } + }, + "response": { + "blockheight": 103 } } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-listinvoices(7)", - "lightning-listforwards(7)", - "lightning-listsendpays(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-waitanyinvoice.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "waitanyinvoice", - "title": "Command for waiting for payments", - "description": [ - "The **waitanyinvoice** RPC command waits until an invoice is paid, then returns a single entry as per **listinvoices**. It will not return for any invoices paid prior to or including the *lastpay_index*.", - "", - "This is usually called iteratively: once with no arguments, then repeatedly with the returned *pay_index* entry. This ensures that no paid invoice is missed. The *pay_index* is a monotonically-increasing number assigned to an invoice when it gets paid. The first valid *pay_index* is 1." - ], - "request": { - "required": [], - "properties": { - "lastpay_index": { - "type": "u64", - "description": [ - "Ignores any invoices paid prior to or including this index. 0 is equivalent to not specifying and negative value is invalid." - ] - }, - "timeout": { - "type": "u64", - "description": [ - "If specified, wait at most that number of seconds, which must be an integer. If the specified *timeout* is reached, this command will return with an error. You can specify this to 0 so that **waitanyinvoice** will return immediately with an error if no pending invoice is available yet. If unspecified, this command will wait indefinitely." - ] - } - } + ], + "author": [ + "ZmnSCPxj <> is mainly responsible." + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "label", - "description", - "payment_hash", - "status", - "created_index", - "expires_at" + "lightning-waitinvoice.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "waitinvoice", + "title": "Command for waiting for specific payment", + "description": [ + "The **waitinvoice** RPC command waits until a specific invoice is paid, then returns that single entry as per **listinvoices**." ], - "properties": { - "label": { - "type": "string", - "description": [ - "Unique label supplied at invoice creation." - ] - }, - "description": { - "type": "string", - "description": [ - "Description used in the invoice." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "status": { - "type": "string", - "enum": [ - "paid", - "expired" - ], - "description": [ - "Whether it's paid or expired." - ] - }, - "expires_at": { - "type": "u64", - "description": [ - "UNIX timestamp of when it will become / became unpayable." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount required to pay this invoice." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "The BOLT11 string (always present unless *bolt12* is)." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The BOLT12 string (always present unless *bolt11* is)." - ] - }, - "created_index": { - "type": "u64", - "added": "v23.08", - "description": [ - "1-based index indicating order this invoice was created in." - ] - }, - "updated_index": { - "type": "u64", - "added": "v23.08", - "description": [ - "1-based index indicating order this invoice was changed (only present if it has changed since creation)." - ] + "request": { + "required": [ + "label" + ], + "properties": { + "label": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "description": [ + "Unique label of the invoice waiting to be paid." + ] + } } }, - "allOf": [ - { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "paid" - ] - } - } + "response": { + "required": [ + "label", + "description", + "payment_hash", + "status", + "created_index", + "expires_at" + ], + "properties": { + "label": { + "type": "string", + "description": [ + "Unique label supplied at invoice creation." + ] }, - "then": { - "additionalProperties": false, - "required": [ - "pay_index", - "amount_received_msat", - "paid_at", - "payment_preimage" + "description": { + "type": "string", + "description": [ + "Description used in the invoice." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "status": { + "type": "string", + "enum": [ + "paid", + "expired" ], - "properties": { - "label": {}, - "description": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "bolt11": {}, - "bolt12": {}, - "expires_at": {}, - "created_index": {}, - "updated_index": {}, - "pay_index": { - "type": "u64", - "description": [ - "Unique incrementing index for this payment." - ] - }, - "amount_received_msat": { - "type": "msat", - "description": [ - "The amount actually received (could be slightly greater than *amount_msat*, since clients may overpay)." - ] - }, - "paid_at": { - "type": "u64", - "description": [ - "UNIX timestamp of when it was paid." - ] - }, - "paid_outpoint": { - "type": "object", - "description": [ - "Outpoint this invoice was paid with." - ], - "added": "v23.11", - "additionalProperties": false, - "required": [ - "txid", - "outnum" - ], - "properties": { - "txid": { - "added": "v23.11", - "type": "txid", - "description": [ - "ID of the transaction that paid the invoice." - ] - }, - "outnum": { - "added": "v23.11", - "type": "u32", - "description": [ - "The 0-based output number of the transaction that paid the invoice." - ] + "description": [ + "Whether it's paid or expired." + ] + }, + "expires_at": { + "type": "u64", + "description": [ + "UNIX timestamp of when it will become / became unpayable." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount required to pay this invoice." + ] + }, + "bolt11": { + "type": "string", + "description": [ + "The BOLT11 string (always present unless *bolt12* is)." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The BOLT12 string (always present unless *bolt11* is)." + ] + }, + "created_index": { + "type": "u64", + "added": "v23.08", + "description": [ + "1-based index indicating order this invoice was created in." + ] + }, + "updated_index": { + "type": "u64", + "added": "v23.08", + "description": [ + "1-based index indicating order this invoice was changed (only present if it has changed since creation)." + ] + } + }, + "allOf": [ + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "paid" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "pay_index", + "amount_received_msat", + "paid_at", + "payment_preimage" + ], + "properties": { + "label": {}, + "description": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "bolt11": {}, + "bolt12": {}, + "expires_at": {}, + "created_index": {}, + "updated_index": {}, + "pay_index": { + "type": "u64", + "description": [ + "Unique incrementing index for this payment." + ] + }, + "amount_received_msat": { + "type": "msat", + "description": [ + "The amount actually received (could be slightly greater than *amount_msat*, since clients may overpay)." + ] + }, + "paid_at": { + "type": "u64", + "description": [ + "UNIX timestamp of when it was paid." + ] + }, + "paid_outpoint": { + "type": "object", + "description": [ + "Outpoint this invoice was paid with." + ], + "added": "v23.11", + "additionalProperties": false, + "required": [ + "txid", + "outnum" + ], + "properties": { + "txid": { + "added": "v23.11", + "type": "txid", + "description": [ + "ID of the transaction that paid the invoice." + ] + }, + "outnum": { + "added": "v23.11", + "type": "u32", + "description": [ + "The 0-based output number of the transaction that paid the invoice." + ] + } } + }, + "payment_preimage": { + "type": "secret", + "description": [ + "Proof of payment." + ] } - }, - "payment_preimage": { - "type": "secret", - "description": [ - "Proof of payment." - ] + } + }, + "else": { + "additionalProperties": false, + "properties": { + "label": {}, + "description": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "bolt11": {}, + "bolt12": {}, + "created_index": {}, + "updated_index": {}, + "expires_at": {} } } - }, - "else": { - "additionalProperties": false, - "properties": { - "label": {}, - "description": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "bolt11": {}, - "bolt12": {}, - "created_index": {}, - "updated_index": {}, - "expires_at": {} - } - } - } - ] - }, - "errors": [ - "The following error codes may occur:", - "", - "- 904: The *timeout* was reached without an invoice being paid." - ], - "json_example": [ - { - "request": { - "id": "example:waitanyinvoice#1", - "method": "waitanyinvoice", - "params": { - "lastpay_index": null, - "timeout": null } - }, - "response": { - "label": "inv1", - "bolt11": "lnbcrt10n1pjmxtsxsp56sn02x8lccjfsvunnhz5858zuyxztug9luy226w4qsmfm4r8pkcspp5gw5r0dw99yf3zqxrg24l8g9m9hun9cu06ldg4rga8s9t9kv8z45sdq8d9h8vvgxqyjw5qcqp99qxpqysgqv537uh2sx8ch640mf4t43t8qjtpg3z7gukgm07tlyq986m7nvsnxkapg37z4vsxtl4thfqzc64anqr83geygkc2xaftxgr97dltqfjqpe3mhja", - "payment_hash": "43a837b5c529131100c342abf3a0bb2df932e38fd7da8a8d1d3c0ab2d9871569", - "amount_msat": 1000, - "status": "paid", - "pay_index": 1, - "amount_received_msat": 1000, - "paid_at": 1706241546, - "payment_preimage": "a0c668998de14b975f33e1060b3efd7efc0bde784ac266ab667a1b2fddab3cd1", - "description": [ - "Inv1." - ], - "expires_at": 1706846342, - "created_index": 1, - "updated_index": 1 - } + ] }, - { - "request": { - "id": "example:waitanyinvoice#2", - "method": "waitanyinvoice", - "params": { - "lastpay_index": 3, - "timeout": 0 + "errors": [ + "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", + "", + "- -32602: If the given parameters are wrong.", + "- -1: If the invoice is deleted while unpaid, or the invoice does not exist.", + "- 903: If the invoice expires before being paid, or is already expired." + ], + "json_example": [ + { + "request": { + "id": "example:waitinvoice#1", + "method": "waitinvoice", + "params": { + "label": "inv2" + } + }, + "response": { + "label": "inv2", + "bolt11": "lnbcrt10n1pjmxtwjsp5mzvdu6v8hqsf2tlj0nlyks23afqp7ejs444syjxf74p60ztmld8qpp5q4ayz5pys3t0yj0dmkmh7ctarkv9z434paz4u9rdwnj4f43thhaqdq8d9h8vvsxqyjw5qcqp99qxpqysgqn0055ttns6pafsxh6xuqce6e4vz8gtxlzqx0l9d9f5crmqx4jymh4zy9jdaszm0dj89sq39fvhpwcs626dt0n3gw8kassfdehp5sy3sq7fzy3w", + "payment_hash": "057a4150248456f249edddb77f617d1d985156350f455e146d74e554d62bbdfa", + "amount_msat": 1000, + "status": "paid", + "pay_index": 1, + "amount_received_msat": 1000, + "paid_at": 1706241494, + "payment_preimage": "34ccd37cc85e067cb376f9ea8c70d70469f58bf296f2566ed9ad4dfb70971a26", + "description": [ + "Inv2." + ], + "expires_at": 1706846290, + "created_index": 2, + "updated_index": 1 } - }, - "response": { - "label": "inv4", - "bolt11": "lnbcrt10n1pja0tkmsp57j4z9zwvdsyh57unh3da7aac5z20clfnrwy5nqm6wujaelduw23qpp580mdrwakz9xewc2vhvpucset9gjkgdvyhw7h9frcy2d6p2lwdw2qdq8d9h8vdqxqyjw5qcqp99qxpqysgqtgyzhtxs3p2dyk8wk9q028033303702d2hml4frmu38qe79mrkgzgxvyjmq2q4nhjgcuz3uhmlda3jnhf9w6mj8mj97pkgnda9l5kdcqsdgewf", - "payment_hash": "3bf6d1bbb6114d97614cbb03cc432b2a25643584bbbd72a478229ba0abee6b94", - "amount_msat": 1000, - "status": "paid", - "pay_index": 4, - "amount_received_msat": 1000, - "paid_at": 1708633825, - "payment_preimage": "77336a342dde76050c7ee7fc18599e407dfc1edad3c784ba68e9603004365b94", - "description": "inv4", - "expires_at": 1709238619, - "created_index": 4, - "updated_index": 4 } - } - ], - "author": [ - "Rusty Russell <> is mainly responsible." - ], - "see_also": [ - "lightning-waitinvoice(7)", - "lightning-listinvoices(7)", - "lightning-delinvoice(7)", - "lightning-invoice(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-waitblockheight.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "waitblockheight", - "title": "Command for waiting for blocks on the blockchain", - "description": [ - "The **waitblockheight** RPC command waits until the blockchain has reached the specified *blockheight*." - ], - "request": { - "required": [ - "blockheight" ], - "properties": { - "blockheight": { - "type": "u32", - "description": [ - "Current blockheight of the blockchain if the value is greater than this number. If it is a present or past block height, then the command returns immediately." - ] - }, - "timeout": { - "type": "u32", - "description": [ - "Only wait up to specified seconds." - ], - "default": "60 seconds" - } - } - }, - "response": { - "required": [ - "blockheight" + "author": [ + "Christian Decker <> is mainly responsible." ], - "properties": { - "blockheight": { - "type": "u32", - "description": [ - "The current block height (>= *blockheight* parameter)." - ] - } - }, - "post_return_value_notes": [ - "If *timeout* seconds is reached without the specified blockheight being reached, this command will fail with a code of `2000`." + "see_also": [ + "lightning-waitanyinvoice(7)", + "lightning-listinvoices(7)", + "lightning-delinvoice(7)", + "lightning-invoice(7)" + ], + "resources": [ + "Main web site: " ] }, - "errors": [ - "The following error codes may occur:", - "", - "- 2000: Timed out." - ], - "json_example": [ - { - "request": { - "id": "example:waitblockheight#1", - "method": "waitblockheight", - "params": { - "blockheight": 99, - "timeout": null + "lightning-waitsendpay.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "waitsendpay", + "title": "Command for sending a payment via a route", + "description": [ + "The **waitsendpay** RPC command polls or waits for the status of an outgoing payment that was initiated by a previous **sendpay** invocation.", + "", + "If the payment completed with success, this command returns with success. Otherwise, if the payment completed with failure, this command returns an error." + ], + "request": { + "required": [ + "payment_hash" + ], + "properties": { + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage*." + ] + }, + "timeout": { + "type": "u32", + "description": [ + "A timeout in seconds, for this RPC command to return. If the *timeout* is provided and the given amount of time passes without the payment definitely succeeding or definitely failing, this command returns with a 200 error code (payment still in progress). If *timeout* is not provided this call will wait indefinitely. Indicating a *timeout* of 0 effectively makes this call a pollable query of the status of the payment." + ] + }, + "partid": { + "type": "u64", + "description": [ + "Unique ID within this (multi-part) payment. It must match that of the **sendpay** command." + ] + }, + "groupid": { + "type": "u64", + "description": [ + "Grouping key to disambiguate multiple attempts to pay the same payment_hash." + ] } }, - "response": { - "blockheight": 99 - } + "pairedWith": [ + [ + "partid", + "groupid" + ] + ] }, - { - "request": { - "id": "example:waitblockheight#2", - "method": "waitblockheight", - "params": { - "blockheight": 103, - "timeout": 600 + "response": { + "required": [ + "id", + "created_index", + "payment_hash", + "status", + "created_at", + "amount_sent_msat" + ], + "properties": { + "created_index": { + "added": "v23.11", + "type": "u64", + "description": [ + "1-based index indicating order this payment was created in." + ] + }, + "id": { + "type": "u64", + "description": [ + "Old synonym for created_index." + ] + }, + "groupid": { + "type": "u64", + "description": [ + "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash." + ] + }, + "payment_hash": { + "type": "hash", + "description": [ + "The hash of the *payment_preimage* which will prove payment." + ] + }, + "status": { + "type": "string", + "enum": [ + "complete" + ], + "description": [ + "Status of the payment." + ] + }, + "amount_msat": { + "type": "msat", + "description": [ + "The amount delivered to destination (if known)." + ] + }, + "destination": { + "type": "pubkey", + "description": [ + "The final destination of the payment if known." + ] + }, + "created_at": { + "type": "u64", + "description": [ + "The UNIX timestamp showing when this payment was initiated." + ] + }, + "updated_index": { + "added": "v23.11", + "type": "u64", + "description": [ + "1-based index indicating order this payment was changed (only present if it has changed since creation)." + ] + }, + "completed_at": { + "type": "number", + "description": [ + "The UNIX timestamp showing when this payment was completed." + ] + }, + "amount_sent_msat": { + "type": "msat", + "description": [ + "The amount sent." + ] + }, + "label": { + "type": "string", + "description": [ + "The label, if given to sendpay." + ] + }, + "partid": { + "type": "u64", + "description": [ + "The *partid*, if given to sendpay." + ] + }, + "bolt11": { + "type": "string", + "description": [ + "The bolt11 string (if pay supplied one)." + ] + }, + "bolt12": { + "type": "string", + "description": [ + "The bolt12 string (if supplied for pay: **experimental-offers** only)." + ] } }, - "response": { - "blockheight": 103 - } - } - ], - "author": [ - "ZmnSCPxj <> is mainly responsible." - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-waitinvoice.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "waitinvoice", - "title": "Command for waiting for specific payment", - "description": [ - "The **waitinvoice** RPC command waits until a specific invoice is paid, then returns that single entry as per **listinvoices**." - ], - "request": { - "required": [ - "label" - ], - "properties": { - "label": { - "oneOf": [ - { - "type": "string" + "allOf": [ + { + "if": { + "properties": { + "status": { + "type": "string", + "enum": [ + "complete" + ] + } + } }, - { - "type": "integer" + "then": { + "additionalProperties": false, + "required": [ + "payment_preimage" + ], + "properties": { + "id": {}, + "created_index": {}, + "updated_index": {}, + "groupid": {}, + "payment_hash": {}, + "status": {}, + "msatoshi": {}, + "amount_msat": {}, + "destination": {}, + "created_at": {}, + "completed_at": {}, + "msatoshi_sent": {}, + "amount_sent_msat": {}, + "label": {}, + "partid": {}, + "bolt11": {}, + "bolt12": {}, + "payment_preimage": { + "type": "secret", + "description": [ + "The proof of payment: SHA256 of this **payment_hash**." + ] + } + } } - ], - "description": [ - "Unique label of the invoice waiting to be paid." - ] + } + ] + }, + "errors": [ + "On error, and even if the error occurred from a node other than the final destination, the route table will no longer be updated. Use the *exclude* parameter of the `getroute` command to ignore the failing route.", + "", + "- -1: Catchall nonspecific error.", + "- 200: Timed out before the payment could complete.", + "- 202: Unparseable onion reply. The *data* field of the error will have an *onionreply* field, a hex string representation of the raw onion reply.", + "- 203: Permanent failure at destination. The *data* field of the error will be routing failure object.", + "- 204: Failure along route; retry a different route. The *data* field of the error will be routing failure object.", + "- 208: A payment for *payment_hash* was never made and there is nothing to wait for.", + "- 209: The payment already failed, but the reason for failure was not stored. This should only occur when querying failed payments on very old databases.", + "", + "A routing failure object has the fields below:", + "", + "*erring_index*: The index of the node along the route that reported the error. 0 for the local node, 1 for the first hop, and so on.", + "*erring_node*: The hex string of the pubkey id of the node that reported the error.", + "*erring_channel*: The short channel ID of the channel that has the error (or the final channel if the destination raised the error).", + "*erring_direction*: The direction of traversing the *erring_channel*:", + "*failcode*: The failure code, as per BOLT #4.", + "*failcodename*: The human-readable name corresponding to *failcode*, if known." + ], + "json_example": [ + { + "request": { + "id": "example:waitsendpay#1", + "method": "waitsendpay", + "params": { + "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", + "timeout": null, + "partid": null, + "groupid": null + } + }, + "response": { + "created_index": 1, + "id": 1, + "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", + "groupid": 1, + "updated_index": 1, + "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "amount_msat": 11000000, + "amount_sent_msat": 11000000, + "created_at": 1706152930, + "completed_at": 1706152933, + "status": "complete", + "payment_preimage": "af7ba559629f719c04c43a82767fe3622790a539164d6270db07f765203e574b", + "bolt11": "lnbcrt110u1pjmr5lzsp5sfjyj3xn7ux592k36hmmt4ax98n6lgct22wvj54yck0upcmep63qpp5qu436g855lr40ftdt7csatk5pdvtdzzfmfqluwtvm0fds95jsadqdpq0pzk7s6j8y69xjt6xe25j5j4g44hsatdxqyjw5qcqp99qxpqysgquwma3zrw4cd8e8j4u9uh4gxukaacckse64kx2l9dqv8rvrysdq5r5dt38t9snqj9u5ar07h2exr4fg56wpudkhkk7gtxlyt72ku5fpqqd4fnlk" + } } - } + ], + "author": [ + "ZmnSCPxj <> is mainly responsible." + ], + "see_also": [ + "lightning-sendpay(7)", + "lightning-pay(7)" + ], + "resources": [ + "Main web site: " + ] }, - "response": { - "required": [ - "label", - "description", - "payment_hash", - "status", - "created_index", - "expires_at" + "lightning-withdraw.json": { + "$schema": "../rpc-schema-draft.json", + "type": "object", + "additionalProperties": false, + "rpc": "withdraw", + "title": "Command for withdrawing funds from the internal wallet", + "description": [ + "The **withdraw** RPC command sends funds from Core Lightning's internal wallet to the address specified in *destination*." ], - "properties": { - "label": { - "type": "string", - "description": [ - "Unique label supplied at invoice creation." - ] - }, - "description": { - "type": "string", - "description": [ - "Description used in the invoice." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "status": { - "type": "string", - "enum": [ - "paid", - "expired" - ], - "description": [ - "Whether it's paid or expired." - ] - }, - "expires_at": { - "type": "u64", - "description": [ - "UNIX timestamp of when it will become / became unpayable." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount required to pay this invoice." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "The BOLT11 string (always present unless *bolt12* is)." - ] - }, - "bolt12": { - "type": "string", - "description": [ - "The BOLT12 string (always present unless *bolt11* is)." - ] - }, - "created_index": { - "type": "u64", - "added": "v23.08", - "description": [ - "1-based index indicating order this invoice was created in." - ] - }, - "updated_index": { - "type": "u64", - "added": "v23.08", - "description": [ - "1-based index indicating order this invoice was changed (only present if it has changed since creation)." - ] + "request": { + "required": [ + "destination", + "satoshi" + ], + "properties": { + "destination": { + "type": "string", + "description": [ + "Any Bitcoin accepted type, including bech32." + ] + }, + "satoshi": { + "type": "msat_or_all", + "description": [ + "The amount to be withdrawn from the internal wallet (expressed, as name suggests, in satoshi). The string *all* can be used to specify withdrawal of all available funds (but if we have any anchor channels, this will always leave at least `min-emergency-msat` as change). Otherwise, it is in satoshi precision; it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*." + ] + }, + "feerate": { + "type": "feerate", + "description": [ + "Used for the withdrawal as initial feerate." + ], + "default": "*normal*" + }, + "minconf": { + "type": "u16", + "description": [ + "Minimum number of confirmations that used outputs should have." + ], + "default": 1 + }, + "utxos": { + "type": "array", + "description": [ + "Specifies the utxos to be used to be withdrawn from, as an array of `txid:vout`. These must be drawn from the node's available UTXO set." + ], + "items": { + "type": "outpoint" + } + } + } + }, + "response": { + "required": [ + "psbt", + "tx", + "txid" + ], + "properties": { + "tx": { + "type": "hex", + "description": [ + "The fully signed bitcoin transaction." + ] + }, + "txid": { + "type": "txid", + "description": [ + "The transaction id of *tx*." + ] + }, + "psbt": { + "type": "string", + "description": [ + "The PSBT representing the unsigned transaction." + ] + } } }, - "allOf": [ + "errors": [ + "On failure, an error is reported and the withdrawal transaction is not created.", + "", + "- -1: Catchall nonspecific error.", + "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", + "- 302: The dust limit is not met.", + "- 313: The `min-emergency-msat` reserve not be preserved (and we have anchor channels)." + ], + "json_example": [ { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "paid" - ] - } + "request": { + "id": "example:withdraw#1", + "method": "withdraw", + "params": { + "destination": "bcrt1qjc7j2l5es4haw35c9jzm8dfm763ng5djp8f0s0", + "satoshi": 555555, + "feerate": null, + "minconf": null, + "utxos": null } }, - "then": { - "additionalProperties": false, - "required": [ - "pay_index", - "amount_received_msat", - "paid_at", - "payment_preimage" - ], - "properties": { - "label": {}, - "description": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "bolt11": {}, - "bolt12": {}, - "expires_at": {}, - "created_index": {}, - "updated_index": {}, - "pay_index": { - "type": "u64", - "description": [ - "Unique incrementing index for this payment." - ] - }, - "amount_received_msat": { - "type": "msat", - "description": [ - "The amount actually received (could be slightly greater than *amount_msat*, since clients may overpay)." - ] - }, - "paid_at": { - "type": "u64", - "description": [ - "UNIX timestamp of when it was paid." - ] - }, - "paid_outpoint": { - "type": "object", - "description": [ - "Outpoint this invoice was paid with." - ], - "added": "v23.11", - "additionalProperties": false, - "required": [ - "txid", - "outnum" - ], - "properties": { - "txid": { - "added": "v23.11", - "type": "txid", - "description": [ - "ID of the transaction that paid the invoice." - ] - }, - "outnum": { - "added": "v23.11", - "type": "u32", - "description": [ - "The 0-based output number of the transaction that paid the invoice." - ] - } - } - }, - "payment_preimage": { - "type": "secret", - "description": [ - "Proof of payment." - ] - } + "response": { + "tx": "0200000001ef28647baa13cc4c03b8a58c8bd08b69de434c22ff591eb68171ae992e3d816d0000000000fdffffff02237a080000000000160014963d257e99856fd746982c85b3b53bf6a33451b24d6808000000000022512063ffee4ea7d51e6cadf9086e286a2527922aaa25b8c53aebf32fa32a0a627f5a66000000", + "txid": "ccb97d7dc695cabb78b217c0b27d7d00d2941966199480e6443e0680d24d69eb", + "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQDeAgAAAAABAWPCRda9hy4QKqUEmtb7gK7SAqzh1xBP8nZ7PCj+7+JDAAAAAAD9////Akf0EAAAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WUs/fQpAQAAABYAFOIj6yaI/g85utJBtkPPdK1X59cfAkcwRAIgH7J57HuUTpnCbDrDqE8W7ryuCXk+i/TszQ/NF55lWncCIDeN4y+EzIDP3l2XO5/wjk98krYqnzvEhrStk+0+fTowASEC6Ng5r5KTNIXBRRvjivsd8SKnHF59r/ViDj2+CLJVb75lAAAAAQEfR/QQAAAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZSICA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPRzBEAiBY0urYSHLnnXaAJH7yaGfvGmm+VuNCNIBhQaJU6iDNEgIgA7EASW+V00Su+lRQAE3Qbe4wavLq7l6Jn2vR+6Snyd0BIgYD10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8IAfrZCgAAAAABDiDvKGR7qhPMTAO4pYyL0Itp3kNMIv9ZHraBca6ZLj2BbQEPBAAAAAABEAT9////AAEDCCN6CAAAAAAAAQQWABSWPSV+mYVv10aYLIWztTv2ozRRsgz8CWxpZ2h0bmluZwQCAAEAAQMITWgIAAAAAAABBCJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aIQeRRTKBKkQKTXZscc05GTaUo0CuEeAS5boa2e+6bnbKUwkAwsyrFwIAAAAA" + } + }, + { + "request": { + "id": "example:withdraw#2", + "method": "withdraw", + "params": { + "destination": "bcrt1q66ukn5mdllddnp53j0mx8mjgph7uwdygn0uy45", + "satoshi": "all", + "feerate": "20000perkb", + "minconf": 0, + "utxos": [ + "218390859cf94d869e33f69161f4187a98f691afe868c20811528f589e90a61f:1" + ] } }, - "else": { - "additionalProperties": false, - "properties": { - "label": {}, - "description": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "bolt11": {}, - "bolt12": {}, - "created_index": {}, - "updated_index": {}, - "expires_at": {} - } + "response": { + "tx": "02000000011fa6909e588f521108c268e8af91f6987a18f46191f6339e864df99c859083210100000000fdffffff0158070f0000000000160014d6b969d36dffdad9869193f663ee480dfdc7348867000000", + "txid": "ad9a712a201214c68c39ca5be68c9d153d1cac91e540d88aa3207b241e23acf8", + "psbt": "cHNidP8BAgQCAAAAAQMEZwAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQD9ZQECAAAAAAEBVa+m1d1amChv4Dwq1rVoS4KSm0BUUnVa3fUYcB3dH9oAAAAAAP////8CECcAAAAAAAAiUSBXeaBg8gDUDo+HGkDrkWFMxb+m0KX4UuBTQAp/7/hhUOEPDwAAAAAAIlEg7tdFgE2peEzCA/Vj76mf+lT98BsTe8lk5jwxJAcP++YEAEcwRAIgPsWO/4IxeW6OclDdXVnwL99X7B18sRlxgFqyvUAzN7gCIGOQOq0wZ6bV+wdYQP+9sH8IkfmqWZbQRRDkZEgfcprMAUcwRAIgb5/dI4+uVhluQjSA2q/3oAGxZd4vYzQWexfmcRQML7ECIFfgRwCaHYdyu5/H5moOPlfQlLc2gPgB6bgtfNSfRA6jAUdSIQIyQmbehAOzqxV6CfH3hNWHr2GDHJmMFRvMIbt0wrIxSyEC4704AJhmydqOxKqZzE6pxsDdRt8Vxh7wzh8nEpFxTldSrgAAAAABASvhDw8AAAAAACJRIO7XRYBNqXhMwgP1Y++pn/pU/fAbE3vJZOY8MSQHD/vmAQ4gH6aQnliPUhEIwmjor5H2mHoY9GGR9jOehk35nIWQgyEBDwQBAAAAARAE/f///wETQL0MqyYsx9Z9q14BhByMgWLW4oJHOqED5qcZ3wyJ4eDuLYfNGq6Ck30dAqFzJL4VhZLSuv87zN/1AEDNMl2DmTohFl03KAgp8YbLmVzcy/I4q0VkATk5c1E5YySjZXXfNN3/CQAHHEnKAAAAAAAiAgK5wMaEThKlMclo5VxVB47BbZv3a+kpD9h9HMpytIOaFwjWuWnTBAAAAAEDCFgHDwAAAAAAAQQWABTWuWnTbf/a2YaRk/Zj7kgN/cc0iAz8CWxpZ2h0bmluZwQCAAEA" } } + ], + "author": [ + "Felix <> is mainly responsible." + ], + "see_also": [ + "lightning-listfunds(7)", + "lightning-fundchannel(7)", + "lightning-newaddr(7)", + "lightning-txprepare(7)", + "lightning-feerates(7)" + ], + "resources": [ + "Main web site: " ] + } + }, + "notifications": { + "block_added.request.json": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", + "properties": {} }, - "errors": [ - "On error the returned object will contain `code` and `message` properties, with `code` being one of the following:", - "", - "- -32602: If the given parameters are wrong.", - "- -1: If the invoice is deleted while unpaid, or the invoice does not exist.", - "- 903: If the invoice expires before being paid, or is already expired." - ], - "json_example": [ - { - "request": { - "id": "example:waitinvoice#1", - "method": "waitinvoice", - "params": { - "label": "inv2" - } + "block_added.schema.json": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", + "required": [ + "hash", + "height" + ], + "properties": { + "hash": { + "type": "hash", + "added": "v24.05" }, - "response": { - "label": "inv2", - "bolt11": "lnbcrt10n1pjmxtwjsp5mzvdu6v8hqsf2tlj0nlyks23afqp7ejs444syjxf74p60ztmld8qpp5q4ayz5pys3t0yj0dmkmh7ctarkv9z434paz4u9rdwnj4f43thhaqdq8d9h8vvsxqyjw5qcqp99qxpqysgqn0055ttns6pafsxh6xuqce6e4vz8gtxlzqx0l9d9f5crmqx4jymh4zy9jdaszm0dj89sq39fvhpwcs626dt0n3gw8kassfdehp5sy3sq7fzy3w", - "payment_hash": "057a4150248456f249edddb77f617d1d985156350f455e146d74e554d62bbdfa", - "amount_msat": 1000, - "status": "paid", - "pay_index": 1, - "amount_received_msat": 1000, - "paid_at": 1706241494, - "payment_preimage": "34ccd37cc85e067cb376f9ea8c70d70469f58bf296f2566ed9ad4dfb70971a26", - "description": [ - "Inv2." - ], - "expires_at": 1706846290, - "created_index": 2, - "updated_index": 1 + "height": { + "type": "u32", + "added": "v24.05" } } - ], - "author": [ - "Christian Decker <> is mainly responsible." - ], - "see_also": [ - "lightning-waitanyinvoice(7)", - "lightning-listinvoices(7)", - "lightning-delinvoice(7)", - "lightning-invoice(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-waitsendpay.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "waitsendpay", - "title": "Command for sending a payment via a route", - "description": [ - "The **waitsendpay** RPC command polls or waits for the status of an outgoing payment that was initiated by a previous **sendpay** invocation.", - "", - "If the payment completed with success, this command returns with success. Otherwise, if the payment completed with failure, this command returns an error." - ], - "request": { + }, + "channel_open_failed.request.json": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", + "properties": {} + }, + "channel_open_failed.schema.json": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", "required": [ - "payment_hash" + "channel_id" ], "properties": { - "payment_hash": { + "channel_id": { "type": "hash", - "description": [ - "The hash of the *payment_preimage*." - ] - }, - "timeout": { - "type": "u32", - "description": [ - "A timeout in seconds, for this RPC command to return. If the *timeout* is provided and the given amount of time passes without the payment definitely succeeding or definitely failing, this command returns with a 200 error code (payment still in progress). If *timeout* is not provided this call will wait indefinitely. Indicating a *timeout* of 0 effectively makes this call a pollable query of the status of the payment." - ] - }, - "partid": { - "type": "u64", - "description": [ - "Unique ID within this (multi-part) payment. It must match that of the **sendpay** command." - ] - }, - "groupid": { - "type": "u64", - "description": [ - "Grouping key to disambiguate multiple attempts to pay the same payment_hash." - ] + "added": "v24.05" } - }, - "pairedWith": [ - [ - "partid", - "groupid" - ] - ] + } + }, + "channel_opened.request.json": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", + "properties": {} }, - "response": { + "channel_opened.schema.json": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", "required": [ - "id", - "created_index", - "payment_hash", - "status", - "created_at", - "amount_sent_msat" + "pubkey", + "funding_msat", + "funding_txid", + "channel_ready" ], "properties": { - "created_index": { - "added": "v23.11", - "type": "u64", - "description": [ - "1-based index indicating order this payment was created in." - ] - }, "id": { - "type": "u64", - "description": [ - "Old synonym for created_index." - ] - }, - "groupid": { - "type": "u64", - "description": [ - "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash." - ] - }, - "payment_hash": { - "type": "hash", - "description": [ - "The hash of the *payment_preimage* which will prove payment." - ] - }, - "status": { - "type": "string", - "enum": [ - "complete" - ], - "description": [ - "Status of the payment." - ] - }, - "amount_msat": { - "type": "msat", - "description": [ - "The amount delivered to destination (if known)." - ] - }, - "destination": { "type": "pubkey", - "description": [ - "The final destination of the payment if known." - ] - }, - "created_at": { - "type": "u64", - "description": [ - "The UNIX timestamp showing when this payment was initiated." - ] - }, - "updated_index": { - "added": "v23.11", - "type": "u64", - "description": [ - "1-based index indicating order this payment was changed (only present if it has changed since creation)." - ] - }, - "completed_at": { - "type": "number", - "description": [ - "The UNIX timestamp showing when this payment was completed." - ] + "added": "v24.05", + "description": "The id of the peer which opened the channel" }, - "amount_sent_msat": { + "funding_msat": { "type": "msat", - "description": [ - "The amount sent." - ] - }, - "label": { - "type": "string", - "description": [ - "The label, if given to sendpay." - ] - }, - "partid": { - "type": "u64", - "description": [ - "The *partid*, if given to sendpay." - ] - }, - "bolt11": { - "type": "string", - "description": [ - "The bolt11 string (if pay supplied one)." - ] + "added": "v24.05", + "description": "The amount of the funding transaction" }, - "bolt12": { - "type": "string", - "description": [ - "The bolt12 string (if supplied for pay: **experimental-offers** only)." - ] - } - }, - "allOf": [ - { - "if": { - "properties": { - "status": { - "type": "string", - "enum": [ - "complete" - ] - } - } - }, - "then": { - "additionalProperties": false, - "required": [ - "payment_preimage" - ], - "properties": { - "id": {}, - "created_index": {}, - "updated_index": {}, - "groupid": {}, - "payment_hash": {}, - "status": {}, - "msatoshi": {}, - "amount_msat": {}, - "destination": {}, - "created_at": {}, - "completed_at": {}, - "msatoshi_sent": {}, - "amount_sent_msat": {}, - "label": {}, - "partid": {}, - "bolt11": {}, - "bolt12": {}, - "payment_preimage": { - "type": "secret", - "description": [ - "The proof of payment: SHA256 of this **payment_hash**." - ] - } - } - } - } - ] - }, - "errors": [ - "On error, and even if the error occurred from a node other than the final destination, the route table will no longer be updated. Use the *exclude* parameter of the `getroute` command to ignore the failing route.", - "", - "- -1: Catchall nonspecific error.", - "- 200: Timed out before the payment could complete.", - "- 202: Unparseable onion reply. The *data* field of the error will have an *onionreply* field, a hex string representation of the raw onion reply.", - "- 203: Permanent failure at destination. The *data* field of the error will be routing failure object.", - "- 204: Failure along route; retry a different route. The *data* field of the error will be routing failure object.", - "- 208: A payment for *payment_hash* was never made and there is nothing to wait for.", - "- 209: The payment already failed, but the reason for failure was not stored. This should only occur when querying failed payments on very old databases.", - "", - "A routing failure object has the fields below:", - "", - "*erring_index*: The index of the node along the route that reported the error. 0 for the local node, 1 for the first hop, and so on.", - "*erring_node*: The hex string of the pubkey id of the node that reported the error.", - "*erring_channel*: The short channel ID of the channel that has the error (or the final channel if the destination raised the error).", - "*erring_direction*: The direction of traversing the *erring_channel*:", - "*failcode*: The failure code, as per BOLT #4.", - "*failcodename*: The human-readable name corresponding to *failcode*, if known." - ], - "json_example": [ - { - "request": { - "id": "example:waitsendpay#1", - "method": "waitsendpay", - "params": { - "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", - "timeout": null, - "partid": null, - "groupid": null - } + "funding_txid": { + "type": "txid", + "added": "v24.05", + "description": "The transaction id of the funding transaction" }, - "response": { - "created_index": 1, - "id": 1, - "payment_hash": "072b1d20f4a7c757a56d5fb10eaed40b58b68849da41fe396cdbd2d81692875a", - "groupid": 1, - "updated_index": 1, - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount_msat": 11000000, - "amount_sent_msat": 11000000, - "created_at": 1706152930, - "completed_at": 1706152933, - "status": "complete", - "payment_preimage": "af7ba559629f719c04c43a82767fe3622790a539164d6270db07f765203e574b", - "bolt11": "lnbcrt110u1pjmr5lzsp5sfjyj3xn7ux592k36hmmt4ax98n6lgct22wvj54yck0upcmep63qpp5qu436g855lr40ftdt7csatk5pdvtdzzfmfqluwtvm0fds95jsadqdpq0pzk7s6j8y69xjt6xe25j5j4g44hsatdxqyjw5qcqp99qxpqysgquwma3zrw4cd8e8j4u9uh4gxukaacckse64kx2l9dqv8rvrysdq5r5dt38t9snqj9u5ar07h2exr4fg56wpudkhkk7gtxlyt72ku5fpqqd4fnlk" + "channel_ready": { + "type": "boolean", + "added": "v24.05", + "description": "true if the channel is ready" } } - ], - "author": [ - "ZmnSCPxj <> is mainly responsible." - ], - "see_also": [ - "lightning-sendpay(7)", - "lightning-pay(7)" - ], - "resources": [ - "Main web site: " - ] - }, - "lightning-withdraw.json": { - "$schema": "../rpc-schema-draft.json", - "type": "object", - "additionalProperties": false, - "rpc": "withdraw", - "title": "Command for withdrawing funds from the internal wallet", - "description": [ - "The **withdraw** RPC command sends funds from Core Lightning's internal wallet to the address specified in *destination*." - ], - "request": { + }, + "channel_state_changed.request.json": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [], + "additionalProperties": false, + "added": "v24.05", + "properties": {} + }, + "channel_state_changed.schema.json": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", "required": [ - "destination", - "satoshi" + "peer_id", + "channel_id", + "short_channel_id", + "timestamp", + "old_state", + "new_state", + "cause", + "message" ], "properties": { - "destination": { - "type": "string", - "description": [ - "Any Bitcoin accepted type, including bech32." - ] + "peer_id": { + "type": "pubkey", + "added": "v24.05" }, - "satoshi": { - "type": "msat_or_all", - "description": [ - "The amount to be withdrawn from the internal wallet (expressed, as name suggests, in satoshi). The string *all* can be used to specify withdrawal of all available funds (but if we have any anchor channels, this will always leave at least `min-emergency-msat` as change). Otherwise, it is in satoshi precision; it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*." - ] + "channel_id": { + "type": "hash", + "added": "v24.05" }, - "feerate": { - "type": "feerate", - "description": [ - "Used for the withdrawal as initial feerate." - ], - "default": "*normal*" + "short_channel_id": { + "type": "short_channel_id", + "added": "v24.05" }, - "minconf": { - "type": "u16", - "description": [ - "Minimum number of confirmations that used outputs should have." - ], - "default": 1 + "timestamp": { + "type": "string", + "added": "v24.05" }, - "utxos": { - "type": "array", - "description": [ - "Specifies the utxos to be used to be withdrawn from, as an array of `txid:vout`. These must be drawn from the node's available UTXO set." + "old_state": { + "type": "string", + "enum": [ + "OPENINGD", + "CHANNELD_AWAITING_LOCKIN", + "CHANNELD_NORMAL", + "CHANNELD_SHUTTING_DOWN", + "CLOSINGD_SIGEXCHANGE", + "CLOSINGD_COMPLETE", + "AWAITING_UNILATERAL", + "FUNDING_SPEND_SEEN", + "ONCHAIN", + "DUALOPEND_OPEN_INIT", + "DUALOPEND_AWAITING_LOCKIN", + "CHANNELD_AWAITING_SPLICE", + "DUALOPEND_OPEN_COMMITTED", + "DUALOPEND_OPEN_COMMIT_READY" + ], + "description": "the channel state, in particular \"CHANNELD_NORMAL\" means the channel can be used normally", + "added": "v24.05" + }, + "new_state": { + "type": "string", + "enum": [ + "OPENINGD", + "CHANNELD_AWAITING_LOCKIN", + "CHANNELD_NORMAL", + "CHANNELD_SHUTTING_DOWN", + "CLOSINGD_SIGEXCHANGE", + "CLOSINGD_COMPLETE", + "AWAITING_UNILATERAL", + "FUNDING_SPEND_SEEN", + "ONCHAIN", + "DUALOPEND_OPEN_INIT", + "DUALOPEND_AWAITING_LOCKIN", + "CHANNELD_AWAITING_SPLICE", + "DUALOPEND_OPEN_COMMITTED", + "DUALOPEND_OPEN_COMMIT_READY" + ], + "description": "the channel state, in particular \"CHANNELD_NORMAL\" means the channel can be used normally", + "added": "v24.05" + }, + "cause": { + "type": "string", + "enum": [ + "unknown", + "local", + "user", + "remote", + "protocol", + "onchain" ], - "items": { - "type": "outpoint" - } + "added": "v24.05" + }, + "message": { + "type": "string", + "added": "v24.05" } } }, - "response": { + "connect.request.json": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [], + "additionalProperties": false, + "added": "v24.05", + "properties": {} + }, + "connect.schema.json": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", "required": [ - "psbt", - "tx", - "txid" + "id", + "direction", + "address" ], "properties": { - "tx": { - "type": "hex", - "description": [ - "The fully signed bitcoin transaction." - ] + "id": { + "type": "pubkey", + "description": "The id of the peer which sent the custom message", + "added": "v24.05" }, - "txid": { - "type": "txid", - "description": [ - "The transaction id of *tx*." - ] + "direction": { + "type": "string", + "enum": [ + "in", + "out" + ], + "added": "v24.05" }, - "psbt": { + "address": { "type": "string", - "description": [ - "The PSBT representing the unsigned transaction." - ] + "added": "v24.05" } } }, - "errors": [ - "On failure, an error is reported and the withdrawal transaction is not created.", - "", - "- -1: Catchall nonspecific error.", - "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", - "- 302: The dust limit is not met.", - "- 313: The `min-emergency-msat` reserve not be preserved (and we have anchor channels)." - ], - "json_example": [ - { - "request": { - "id": "example:withdraw#1", - "method": "withdraw", - "params": { - "destination": "bcrt1qjc7j2l5es4haw35c9jzm8dfm763ng5djp8f0s0", - "satoshi": 555555, - "feerate": null, - "minconf": null, - "utxos": null - } - }, - "response": { - "tx": "0200000001ef28647baa13cc4c03b8a58c8bd08b69de434c22ff591eb68171ae992e3d816d0000000000fdffffff02237a080000000000160014963d257e99856fd746982c85b3b53bf6a33451b24d6808000000000022512063ffee4ea7d51e6cadf9086e286a2527922aaa25b8c53aebf32fa32a0a627f5a66000000", - "txid": "ccb97d7dc695cabb78b217c0b27d7d00d2941966199480e6443e0680d24d69eb", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQDeAgAAAAABAWPCRda9hy4QKqUEmtb7gK7SAqzh1xBP8nZ7PCj+7+JDAAAAAAD9////Akf0EAAAAAAAFgAUAfrZCrzWZpfiWSFkci3kqV6+4WUs/fQpAQAAABYAFOIj6yaI/g85utJBtkPPdK1X59cfAkcwRAIgH7J57HuUTpnCbDrDqE8W7ryuCXk+i/TszQ/NF55lWncCIDeN4y+EzIDP3l2XO5/wjk98krYqnzvEhrStk+0+fTowASEC6Ng5r5KTNIXBRRvjivsd8SKnHF59r/ViDj2+CLJVb75lAAAAAQEfR/QQAAAAAAAWABQB+tkKvNZml+JZIWRyLeSpXr7hZSICA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPRzBEAiBY0urYSHLnnXaAJH7yaGfvGmm+VuNCNIBhQaJU6iDNEgIgA7EASW+V00Su+lRQAE3Qbe4wavLq7l6Jn2vR+6Snyd0BIgYD10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M8IAfrZCgAAAAABDiDvKGR7qhPMTAO4pYyL0Itp3kNMIv9ZHraBca6ZLj2BbQEPBAAAAAABEAT9////AAEDCCN6CAAAAAAAAQQWABSWPSV+mYVv10aYLIWztTv2ozRRsgz8CWxpZ2h0bmluZwQCAAEAAQMITWgIAAAAAAABBCJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aIQeRRTKBKkQKTXZscc05GTaUo0CuEeAS5boa2e+6bnbKUwkAwsyrFwIAAAAA" - } - }, - { - "request": { - "id": "example:withdraw#2", - "method": "withdraw", - "params": { - "destination": "bcrt1q66ukn5mdllddnp53j0mx8mjgph7uwdygn0uy45", - "satoshi": "all", - "feerate": "20000perkb", - "minconf": 0, - "utxos": [ - "218390859cf94d869e33f69161f4187a98f691afe868c20811528f589e90a61f:1" - ] - } + "custommsg.request.json": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [], + "additionalProperties": false, + "added": "v24.05", + "properties": {} + }, + "custommsg.schema.json": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "added": "v24.05", + "required": [ + "peer_id", + "payload" + ], + "properties": { + "peer_id": { + "type": "pubkey", + "description": "The id of the peer which sent the custom message", + "added": "v24.05" }, - "response": { - "tx": "02000000011fa6909e588f521108c268e8af91f6987a18f46191f6339e864df99c859083210100000000fdffffff0158070f0000000000160014d6b969d36dffdad9869193f663ee480dfdc7348867000000", - "txid": "ad9a712a201214c68c39ca5be68c9d153d1cac91e540d88aa3207b241e23acf8", - "psbt": "cHNidP8BAgQCAAAAAQMEZwAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQD9ZQECAAAAAAEBVa+m1d1amChv4Dwq1rVoS4KSm0BUUnVa3fUYcB3dH9oAAAAAAP////8CECcAAAAAAAAiUSBXeaBg8gDUDo+HGkDrkWFMxb+m0KX4UuBTQAp/7/hhUOEPDwAAAAAAIlEg7tdFgE2peEzCA/Vj76mf+lT98BsTe8lk5jwxJAcP++YEAEcwRAIgPsWO/4IxeW6OclDdXVnwL99X7B18sRlxgFqyvUAzN7gCIGOQOq0wZ6bV+wdYQP+9sH8IkfmqWZbQRRDkZEgfcprMAUcwRAIgb5/dI4+uVhluQjSA2q/3oAGxZd4vYzQWexfmcRQML7ECIFfgRwCaHYdyu5/H5moOPlfQlLc2gPgB6bgtfNSfRA6jAUdSIQIyQmbehAOzqxV6CfH3hNWHr2GDHJmMFRvMIbt0wrIxSyEC4704AJhmydqOxKqZzE6pxsDdRt8Vxh7wzh8nEpFxTldSrgAAAAABASvhDw8AAAAAACJRIO7XRYBNqXhMwgP1Y++pn/pU/fAbE3vJZOY8MSQHD/vmAQ4gH6aQnliPUhEIwmjor5H2mHoY9GGR9jOehk35nIWQgyEBDwQBAAAAARAE/f///wETQL0MqyYsx9Z9q14BhByMgWLW4oJHOqED5qcZ3wyJ4eDuLYfNGq6Ck30dAqFzJL4VhZLSuv87zN/1AEDNMl2DmTohFl03KAgp8YbLmVzcy/I4q0VkATk5c1E5YySjZXXfNN3/CQAHHEnKAAAAAAAiAgK5wMaEThKlMclo5VxVB47BbZv3a+kpD9h9HMpytIOaFwjWuWnTBAAAAAEDCFgHDwAAAAAAAQQWABTWuWnTbf/a2YaRk/Zj7kgN/cc0iAz8CWxpZ2h0bmluZwQCAAEA" + "payload": { + "type": "hex", + "description": "The hex-encoded payload. The first 2 bytes represent the BOLT-8 message type followed by the message content", + "added": "v24.05" } } - ], - "author": [ - "Felix <> is mainly responsible." - ], - "see_also": [ - "lightning-listfunds(7)", - "lightning-fundchannel(7)", - "lightning-newaddr(7)", - "lightning-txprepare(7)", - "lightning-feerates(7)" - ], - "resources": [ - "Main web site: " - ] + } } } \ No newline at end of file diff --git a/contrib/msggen/msggen/utils/utils.py b/contrib/msggen/msggen/utils/utils.py index b31ca1fbd95e..a0df48dee714 100644 --- a/contrib/msggen/msggen/utils/utils.py +++ b/contrib/msggen/msggen/utils/utils.py @@ -1,7 +1,7 @@ import json from pathlib import Path from importlib import resources -from msggen.model import Method, CompositeField, Service +from msggen.model import Method, CompositeField, Service, Notification, TypeName import functools from collections import OrderedDict @@ -9,13 +9,27 @@ def combine_schemas(schema_dir: Path, dest: Path): """Enumerate all schema files, and combine it into a single JSON file.""" bundle = OrderedDict() - files = sorted(list(schema_dir.iterdir())) + methods = OrderedDict() + notifications = OrderedDict() + # Parse methods + files = sorted(list(schema_dir.iterdir())) for f in files: # Ignore lightning-sql.json because it will be auto generated by sql plugin and lightning-sql-template.json if not f.name.endswith(".json") or f.name == "lightning-sql.json": continue - bundle[f.name] = json.load(f.open()) + methods[f.name] = json.load(f.open()) + + # Parse notifications + notifications_dir = schema_dir / "notification" + files = sorted(list(notifications_dir.iterdir())) + for f in files: + if not f.name.endswith("json"): + continue + notifications[f.name] = json.load(f.open()) + + bundle["methods"] = methods + bundle["notifications"] = notifications with dest.open(mode='w') as f: json.dump( @@ -41,8 +55,8 @@ def load_jsonrpc_method(name): """ schema = get_schema_bundle() rpc_name = f"lightning-{name.lower()}.json" - request = CompositeField.from_js(schema[rpc_name]['request'], path=name) - response = CompositeField.from_js(schema[rpc_name]['response'], path=name) + request = CompositeField.from_js(schema["methods"][rpc_name]['request'], path=name) + response = CompositeField.from_js(schema["methods"][rpc_name]['response'], path=name) # Normalize the method request and response typename so they no # longer conflict. @@ -56,6 +70,24 @@ def load_jsonrpc_method(name): ) +def load_notification(name, typename: TypeName): + """Load a notification that can be received by a plug-in + """ + typename = str(typename) + + schema = get_schema_bundle() + notifications = schema["notifications"] + req_file = f"{name.lower()}.request.json" + resp_file = f"{name.lower()}.schema.json" + request = CompositeField.from_js(notifications[req_file], path=name) + response = CompositeField.from_js(notifications[resp_file], path=name) + + request.typename = TypeName(f"Stream{typename}Request") + response.typename = TypeName(f"{typename}Notification") + + return Notification(name, TypeName(typename), request, response) + + def load_jsonrpc_service(): method_names = [ "Getinfo", @@ -162,7 +194,32 @@ def load_jsonrpc_service(): "Bkpr-ListBalances", "Bkpr-ListIncome", ] + + notification_names = [ + { + "name": "block_added", + "typename": "BlockAdded" + }, + { + "name": "channel_open_failed", + "typename": "ChannelOpenFailed" + }, + { + "name": "channel_opened", + "typename": "ChannelOpened" + }, + { + "name": "connect", + "typename": "Connect" + }, + { + "name": "custommsg", + "typename": "CustomMsg" + }, + ] + methods = [load_jsonrpc_method(name) for name in method_names] - service = Service(name="Node", methods=methods) + notifications = [load_notification(name=names["name"], typename=names["typename"]) for names in notification_names] + service = Service(name="Node", methods=methods, notifications=notifications) service.includes = ['primitives.proto'] # Make sure we have the primitives included. return service From 8ff5b1d5f5f256d34dcf04c28838e20fe8bfe4a8 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Wed, 7 Feb 2024 14:51:45 +0100 Subject: [PATCH 03/24] msggen: Cut gprc into pieces!!! No, this isn't my last resort. The file to generate `gprc`-bindings got quite long. I've put it in a separate folder and cut it into smaller pieces --- contrib/msggen/msggen/gen/grpc.py | 620 -------------------- contrib/msggen/msggen/gen/grpc/__init__.py | 11 + contrib/msggen/msggen/gen/grpc/convert.py | 193 ++++++ contrib/msggen/msggen/gen/grpc/proto.py | 220 +++++++ contrib/msggen/msggen/gen/grpc/server.py | 93 +++ contrib/msggen/msggen/gen/grpc/unconvert.py | 140 +++++ contrib/msggen/msggen/gen/grpc/util.py | 38 ++ 7 files changed, 695 insertions(+), 620 deletions(-) delete mode 100644 contrib/msggen/msggen/gen/grpc.py create mode 100644 contrib/msggen/msggen/gen/grpc/__init__.py create mode 100644 contrib/msggen/msggen/gen/grpc/convert.py create mode 100644 contrib/msggen/msggen/gen/grpc/proto.py create mode 100644 contrib/msggen/msggen/gen/grpc/server.py create mode 100644 contrib/msggen/msggen/gen/grpc/unconvert.py create mode 100644 contrib/msggen/msggen/gen/grpc/util.py diff --git a/contrib/msggen/msggen/gen/grpc.py b/contrib/msggen/msggen/gen/grpc.py deleted file mode 100644 index e712d5b46ce7..000000000000 --- a/contrib/msggen/msggen/gen/grpc.py +++ /dev/null @@ -1,620 +0,0 @@ -# A grpc model -from msggen.model import ArrayField, Field, CompositeField, EnumField, PrimitiveField, Service, MethodName, TypeName -from msggen.gen import IGenerator -from typing import TextIO, List, Dict, Any -from textwrap import indent, dedent -import re -import logging - - -typemap = { - 'boolean': 'bool', - 'hex': 'bytes', - 'msat': 'Amount', - 'msat_or_all': 'AmountOrAll', - 'msat_or_any': 'AmountOrAny', - 'currency': 'string', - 'number': 'double', - 'pubkey': 'bytes', - 'short_channel_id': 'string', - 'signature': 'string', - 'string': 'string', - 'txid': 'bytes', - 'u8': 'uint32', # Yep, this is the smallest integer type in grpc... - 'u32': 'uint32', - 'u64': 'uint64', - 's8': 'int32', - 's16': 'int32', - 's32': 'int32', - 's64': 'int64', - 'u16': 'uint32', # Yeah, I know... - 'f32': 'float', - 'integer': 'sint64', - "outpoint": "Outpoint", - "feerate": "Feerate", - "outputdesc": "OutputDesc", - "secret": "bytes", - "bip340sig": "string", - "hash": "bytes", -} - - -# GRPC builds a stub with the methods declared in the protobuf file, -# but it also comes with its own methods, e.g., `connect` which can -# clash with the generated ones. So rename the ones we know clash. -method_name_overrides = { - "Connect": "ConnectPeer", -} - - -class GrpcGenerator(IGenerator): - """A generator that generates protobuf files. - """ - - def __init__(self, dest: TextIO, meta: Dict[str, Any]): - self.dest = dest - self.logger = logging.getLogger("msggen.grpc.GrpcGenerator") - self.meta = meta - - def write(self, text: str, cleanup: bool = True) -> None: - if cleanup: - self.dest.write(dedent(text)) - else: - self.dest.write(text) - - def field2number(self, message_name: TypeName, field): - m = self.meta['grpc-field-map'] - - message_name = message_name.name # TypeName is not JSON-serializable, use the unaltered name. - - # Wrap each field mapping by the message_name, since otherwise - # requests and responses share the same number space (just - # cosmetic really, but why not do it?) - if message_name not in m: - m[message_name] = {} - m = m[message_name] - - # Simple case first: if we've already assigned a number let's reuse that - if field.path in m: - return m[field.path] - - # Now let's find the highest number we have in the parent - # context - parent = '.'.join(field.path.split('.')[:-1]) - maxnum = 0 - for k, v in m.items(): - parent2 = '.'.join(k.split('.')[:-1]) - if parent2 == parent: - maxnum = max(maxnum, v) - - m[field.path] = maxnum + 1 - self.logger.warn(f"Assigning new field number to {field.path} => {m[field.path]}") - - return m[field.path] - - def enumerate_fields(self, message_name, fields): - """Use the meta map to identify which number this field will get. - """ - enumerated_values = [(self.field2number(message_name, f), f) for f in fields] - sorted_enumerated_values = sorted(enumerated_values, key=lambda x: x[0]) - for i, v in sorted_enumerated_values: - yield (i, v) - - def enumvar2number(self, typename: TypeName, variant): - """Find an existing variant number of generate a new one. - - If we don't have a variant number yet we'll just take the - largest one assigned so far and increment it by 1. """ - - typename = str(typename.name) - - m = self.meta['grpc-enum-map'] - variant = str(variant) - if typename not in m: - m[typename] = {} - - variants = m[typename] - if variant in variants: - return variants[variant] - - # Now find the maximum and increment once - n = max(variants.values()) if len(variants) else -1 - - m[typename][variant] = n + 1 - return m[typename][variant] - - def enumerate_enum(self, typename, variants): - enumerated_values = [(self.enumvar2number(typename, v), v) for v in variants] - sorted_enumerated_values = sorted(enumerated_values, key=lambda x: x[0]) - for i, v in sorted_enumerated_values: - yield (i, v) - - def gather_types(self, service): - """Gather all types that might need to be defined. - """ - - def gather_subfields(field: Field) -> List[Field]: - fields = [field] - - if isinstance(field, CompositeField): - for f in field.fields: - fields.extend(gather_subfields(f)) - elif isinstance(field, ArrayField): - fields = [] - fields.extend(gather_subfields(field.itemtype)) - - return fields - - types = [] - for method in service.methods: - types.extend([method.request, method.response]) - for field in method.request.fields: - types.extend(gather_subfields(field)) - for field in method.response.fields: - types.extend(gather_subfields(field)) - return types - - def generate_service(self, service: Service) -> None: - self.write(f""" - service {service.name} {{ - """) - - for method in service.methods: - mname = MethodName(method_name_overrides.get(method.name, method.name)) - self.write( - f" rpc {mname}({method.request.typename}) returns ({method.response.typename}) {{}}\n", - cleanup=False, - ) - - self.write(f"""}} - """) - - def generate_enum(self, e: EnumField, indent=0): - self.logger.debug(f"Generating enum {e}") - prefix = "\t" * indent - self.write(f"{prefix}// {e.path}\n", False) - self.write(f"{prefix}enum {e.typename} {{\n", False) - - for i, v in self.enumerate_enum(e.typename, e.variants): - self.logger.debug(f"Generating enum variant {v}") - self.write(f"{prefix}\t{v.normalized()} = {i};\n", False) - - self.write(f"""{prefix}}}\n""", False) - - def generate_message(self, message: CompositeField): - if message.omit(): - return - - self.write(f""" - message {message.typename} {{ - """) - - # Declare enums inline so they are scoped correctly in C++ - for _, f in enumerate(message.fields): - if isinstance(f, EnumField) and not f.override(): - self.generate_enum(f, indent=1) - - for i, f in self.enumerate_fields(message.typename, message.fields): - if f.omit(): - continue - - opt = "optional " if f.optional else "" - - if isinstance(f, ArrayField): - typename = f.override(typemap.get(f.itemtype.typename, f.itemtype.typename)) - self.write(f"\trepeated {typename} {f.normalized()} = {i};\n", False) - elif isinstance(f, PrimitiveField): - typename = f.override(typemap.get(f.typename, f.typename)) - self.write(f"\t{opt}{typename} {f.normalized()} = {i};\n", False) - elif isinstance(f, EnumField): - typename = f.override(f.typename) - self.write(f"\t{opt}{typename} {f.normalized()} = {i};\n", False) - elif isinstance(f, CompositeField): - typename = f.override(f.typename) - self.write(f"\t{opt}{typename} {f.normalized()} = {i};\n", False) - - self.write("""} - """) - - def generate(self, service: Service) -> None: - """Generate the GRPC protobuf file and write to `dest` - """ - self.write(f"""syntax = "proto3";\npackage cln;\n""") - self.write(""" - // This file was automatically derived from the JSON-RPC schemas in - // `doc/schemas`. Do not edit this file manually as it would get - // overwritten. - - """) - - for i in service.includes: - self.write(f"import \"{i}\";\n") - - self.generate_service(service) - - fields = self.gather_types(service) - - for message in [f for f in fields if isinstance(f, CompositeField)]: - self.generate_message(message) - - -class GrpcConverterGenerator(IGenerator): - def __init__(self, dest: TextIO): - self.dest = dest - self.logger = logging.getLogger("msggen.grpc.GrpcConversionGenerator") - - def generate_array(self, prefix, field: ArrayField): - if isinstance(field.itemtype, CompositeField): - self.generate_composite(prefix, field.itemtype) - - def generate_composite(self, prefix, field: CompositeField): - """Generates the conversions from JSON-RPC to GRPC. - """ - if field.omit(): - return - - field.sort() - - # First pass: generate any sub-fields before we generate the - # top-level field itself. - for f in field.fields: - if isinstance(f, ArrayField): - self.generate_array(prefix, f) - elif isinstance(f, CompositeField): - self.generate_composite(prefix, f) - - pbname = self.to_camel_case(str(field.typename)) - - # If any of the field accesses would result in a deprecated - # warning we mark the construction here to allow deprecated - # fields being access. - - has_deprecated = any([f.deprecated for f in field.fields]) - deprecated = ",deprecated" if has_deprecated else "" - - # And now we can convert the current field: - self.write(f"""\ - #[allow(unused_variables{deprecated})] - impl From<{prefix}::{field.typename}> for pb::{pbname} {{ - fn from(c: {prefix}::{field.typename}) -> Self {{ - Self {{ - """) - - for f in field.fields: - if f.omit(): - continue - - name = f.normalized() - name = re.sub(r'(?>::as_ref(&i).to_vec()', - }.get(typ, f'i.into()') - - self.write(f"// Field: {f.path}\n", numindent=3) - if not f.optional: - self.write(f"{name}: c.{name}.into_iter().map(|i| {mapping}).collect(), // Rule #3 for type {typ}\n", numindent=3) - else: - self.write(f"{name}: c.{name}.map(|arr| arr.into_iter().map(|i| {mapping}).collect()).unwrap_or(vec![]), // Rule #3\n", numindent=3) - elif isinstance(f, EnumField): - if not f.optional: - self.write(f"{name}: c.{name} as i32,\n", numindent=3) - else: - self.write(f"{name}: c.{name}.map(|v| v as i32),\n", numindent=3) - - elif isinstance(f, PrimitiveField): - typ = f.typename + ("?" if f.optional else "") - # We may need to reduce or increase the size of some - # types, or have some conversion such as - # hex-decoding. Also includes the `Some()` that grpc - # requires for non-native types. - rhs = { - 'u8': f'c.{name}.into()', - 'u16': f'c.{name}.into()', - 'u16?': f'c.{name}.map(|v| v.into())', - 'msat': f'Some(c.{name}.into())', - 'msat?': f'c.{name}.map(|f| f.into())', - 'pubkey': f'c.{name}.serialize().to_vec()', - 'pubkey?': f'c.{name}.map(|v| v.serialize().to_vec())', - 'hex': f'hex::decode(&c.{name}).unwrap()', - 'hex?': f'c.{name}.map(|v| hex::decode(v).unwrap())', - 'txid': f'hex::decode(&c.{name}).unwrap()', - 'txid?': f'c.{name}.map(|v| hex::decode(v).unwrap())', - 'short_channel_id': f'c.{name}.to_string()', - 'short_channel_id?': f'c.{name}.map(|v| v.to_string())', - 'hash': f'>::as_ref(&c.{name}).to_vec()', - 'hash?': f'c.{name}.map(|v| >::as_ref(&v).to_vec())', - 'secret': f'c.{name}.to_vec()', - 'secret?': f'c.{name}.map(|v| v.to_vec())', - 'msat_or_any': f'Some(c.{name}.into())', - 'msat_or_all': f'Some(c.{name}.into())', - 'msat_or_all?': f'c.{name}.map(|o|o.into())', - 'feerate?': f'c.{name}.map(|o|o.into())', - 'feerate': f'Some(c.{name}.into())', - 'outpoint?': f'c.{name}.map(|o|o.into())', - 'TlvStream?': f'c.{name}.map(|s| s.into())', - 'RoutehintList?': f'c.{name}.map(|rl| rl.into())', - - - }.get( - typ, - f'c.{name}' # default to just assignment - ) - - if f.deprecated: - self.write(f"#[allow(deprecated)]\n", numindent=3) - self.write(f"{name}: {rhs}, // Rule #2 for type {typ}\n", numindent=3) - - elif isinstance(f, CompositeField): - rhs = "" - if not f.optional: - rhs = f'Some(c.{name}.into())' - else: - rhs = f'c.{name}.map(|v| v.into())' - self.write(f"{name}: {rhs},\n", numindent=3) - self.write(f"""\ - }} - }} - }} - - """) - - def to_camel_case(self, snake_str): - components = snake_str.split('_') - # We capitalize the first letter of each component except the first one - # with the 'capitalize' method and join them together, while preserving - # existing camel cases. - camel_case = components[0] - for word in components[1:]: - if not word.isupper(): - camel_case += word[0].upper() + word[1:] - else: - camel_case += word.capitalize() - return camel_case - - def generate_requests(self, service): - for meth in service.methods: - req = meth.request - self.generate_composite("requests", req) - - def generate_responses(self, service): - for meth in service.methods: - res = meth.response - self.generate_composite("responses", res) - - def generate(self, service: Service) -> None: - self.write(""" - // This file was automatically derived from the JSON-RPC schemas in - // `doc/schemas`. Do not edit this file manually as it would get - // overwritten. - - use std::convert::From; - #[allow(unused_imports)] - use cln_rpc::model::{responses,requests}; - use crate::pb; - use std::str::FromStr; - use bitcoin::hashes::sha256::Hash as Sha256; - use bitcoin::hashes::Hash; - use cln_rpc::primitives::PublicKey; - - """) - - self.generate_responses(service) - self.generate_requests(service) - self.write("\n") - - def write(self, text: str, numindent: int = 0) -> None: - raw = dedent(text) - if numindent > 0: - raw = indent(text, " " * numindent) - - self.dest.write(raw) - - -class GrpcUnconverterGenerator(GrpcConverterGenerator): - """Generator to generate the conversions from GRPC to JSON-RPC (for requests). - """ - def generate(self, service: Service): - self.generate_requests(service) - - # TODO Temporarily disabled since the use of overrides is lossy - # self.generate_responses(service) - - def generate_composite(self, prefix, field: CompositeField) -> None: - # First pass: generate any sub-fields before we generate the - # top-level field itself. - if field.omit(): - return - - for f in field.fields: - if isinstance(f, ArrayField): - self.generate_array(prefix, f) - elif isinstance(f, CompositeField): - self.generate_composite(prefix, f) - - has_deprecated = any([f.deprecated for f in field.fields]) - deprecated = ",deprecated" if has_deprecated else "" - - pbname = self.to_camel_case(str(field.typename)) - # And now we can convert the current field: - self.write(f"""\ - #[allow(unused_variables{deprecated})] - impl From for {prefix}::{field.typename} {{ - fn from(c: pb::{pbname}) -> Self {{ - Self {{ - """) - - for f in field.fields: - name = f.normalized() - if f.omit(): - continue - - if isinstance(f, ArrayField): - typ = f.itemtype.typename - mapping = { - 'hex': f'hex::encode(s)', - 'u32': f's', - 'secret': f's.try_into().unwrap()', - 'hash': f'Sha256::from_slice(&s).unwrap()', - }.get(typ, f's.into()') - - # TODO fix properly - if typ in ["ListtransactionsTransactionsType"]: - continue - if name == 'state_changes': - self.write(f" state_changes: None,") - continue - - if not f.optional: - self.write(f"{name}: c.{name}.into_iter().map(|s| {mapping}).collect(), // Rule #4\n", numindent=3) - else: - self.write(f"{name}: Some(c.{name}.into_iter().map(|s| {mapping}).collect()), // Rule #4\n", numindent=3) - - elif isinstance(f, EnumField): - if f.path == 'ListPeers.peers[].channels[].htlcs[].state': - continue - if not f.optional: - self.write(f"{name}: c.{name}.try_into().unwrap(),\n", numindent=3) - else: - self.write(f"{name}: c.{name}.map(|v| v.try_into().unwrap()),\n", numindent=3) - pass - elif isinstance(f, PrimitiveField): - typ = f.typename + ("?" if f.optional else "") - # We may need to reduce or increase the size of some - # types, or have some conversion such as - # hex-decoding. Also includes the `Some()` that grpc - # requires for non-native types. - - if name == "scriptPubKey": - name = "script_pub_key" - - rhs = { - 'u8': f'c.{name} as u8', - 'u16': f'c.{name} as u16', - 'u16?': f'c.{name}.map(|v| v as u16)', - 'hex': f'hex::encode(&c.{name})', - 'hex?': f'c.{name}.map(|v| hex::encode(v))', - 'txid?': f'c.{name}.map(|v| hex::encode(v))', - 'pubkey': f'PublicKey::from_slice(&c.{name}).unwrap()', - 'pubkey?': f'c.{name}.map(|v| PublicKey::from_slice(&v).unwrap())', - 'msat': f'c.{name}.unwrap().into()', - 'msat?': f'c.{name}.map(|a| a.into())', - 'msat_or_all': f'c.{name}.unwrap().into()', - 'msat_or_all?': f'c.{name}.map(|a| a.into())', - 'msat_or_any': f'c.{name}.unwrap().into()', - 'msat_or_any?': f'c.{name}.map(|a| a.into())', - 'feerate': f'c.{name}.unwrap().into()', - 'feerate?': f'c.{name}.map(|a| a.into())', - 'outpoint?': f'c.{name}.map(|a| a.into())', - 'RoutehintList?': f'c.{name}.map(|rl| rl.into())', - 'short_channel_id': f'cln_rpc::primitives::ShortChannelId::from_str(&c.{name}).unwrap()', - 'short_channel_id?': f'c.{name}.map(|v| cln_rpc::primitives::ShortChannelId::from_str(&v).unwrap())', - 'secret': f'c.{name}.try_into().unwrap()', - 'secret?': f'c.{name}.map(|v| v.try_into().unwrap())', - 'hash': f'Sha256::from_slice(&c.{name}).unwrap()', - 'hash?': f'c.{name}.map(|v| Sha256::from_slice(&v).unwrap())', - 'txid': f'hex::encode(&c.{name})', - 'TlvStream?': f'c.{name}.map(|s| s.into())', - }.get( - typ, - f'c.{name}' # default to just assignment - ) - self.write(f"{name}: {rhs}, // Rule #1 for type {typ}\n", numindent=3) - elif isinstance(f, CompositeField): - rhs = "" - if not f.optional: - rhs = f'c.{name}.unwrap().into()' - else: - rhs = f'c.{name}.map(|v| v.into())' - self.write(f"{name}: {rhs},\n", numindent=3) - - self.write(f"""\ - }} - }} - }} - - """) - - -class GrpcServerGenerator(GrpcConverterGenerator): - def generate(self, service: Service) -> None: - self.write(f"""\ - use crate::pb::node_server::Node; - use crate::pb; - use cln_rpc::{{Request, Response, ClnRpc}}; - use anyhow::Result; - use std::path::{{Path, PathBuf}}; - use cln_rpc::model::requests; - use log::{{debug, trace}}; - use tonic::{{Code, Status}}; - - #[derive(Clone)] - pub struct Server - {{ - rpc_path: PathBuf, - }} - - impl Server - {{ - pub async fn new(path: &Path) -> Result - {{ - Ok(Self {{ - rpc_path: path.to_path_buf(), - }}) - }} - }} - - #[tonic::async_trait] - impl Node for Server - {{ - """) - - for method in service.methods: - mname = method_name_overrides.get(method.name, method.name) - # Tonic will convert to snake-case, so we have to do it here too - name = re.sub(r'(?, - ) -> Result, tonic::Status> {{ - let req = request.into_inner(); - let req: requests::{method.request.typename} = req.into(); - debug!("Client asked for {name}"); - trace!("{name} request: {{:?}}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::{method.name}(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method {method.name}: {{:?}}", e)))?; - match result {{ - Response::{method.name}(r) => {{ - trace!("{name} response: {{:?}}", r); - Ok(tonic::Response::new(r.into())) - }}, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {{:?}} to method call {method.name}", - r - ) - )), - }} - - }}\n\n""", numindent=0) - - self.write(f"""\ - }} - """, numindent=0) diff --git a/contrib/msggen/msggen/gen/grpc/__init__.py b/contrib/msggen/msggen/gen/grpc/__init__.py new file mode 100644 index 000000000000..4675fcb5e1e4 --- /dev/null +++ b/contrib/msggen/msggen/gen/grpc/__init__.py @@ -0,0 +1,11 @@ +from msggen.gen.grpc.convert import GrpcConverterGenerator +from msggen.gen.grpc.unconvert import GrpcUnconverterGenerator +from msggen.gen.grpc.proto import GrpcGenerator +from msggen.gen.grpc.server import GrpcServerGenerator + +__all__ = [ + GrpcGenerator, + GrpcServerGenerator, + GrpcConverterGenerator, + GrpcUnconverterGenerator, +] diff --git a/contrib/msggen/msggen/gen/grpc/convert.py b/contrib/msggen/msggen/gen/grpc/convert.py new file mode 100644 index 000000000000..567681ad5c12 --- /dev/null +++ b/contrib/msggen/msggen/gen/grpc/convert.py @@ -0,0 +1,193 @@ +# A grpc model +from msggen.model import ArrayField, CompositeField, EnumField, PrimitiveField, Service +from msggen.gen import IGenerator +from typing import TextIO +from textwrap import indent, dedent +import re +import logging + + +class GrpcConverterGenerator(IGenerator): + def __init__(self, dest: TextIO): + self.dest = dest + self.logger = logging.getLogger("msggen.grpc.GrpcConversionGenerator") + + def generate_array(self, prefix, field: ArrayField): + if isinstance(field.itemtype, CompositeField): + self.generate_composite(prefix, field.itemtype) + + def generate_composite(self, prefix, field: CompositeField): + """Generates the conversions from JSON-RPC to GRPC.""" + if field.omit(): + return + + field.sort() + + # First pass: generate any sub-fields before we generate the + # top-level field itself. + for f in field.fields: + if isinstance(f, ArrayField): + self.generate_array(prefix, f) + elif isinstance(f, CompositeField): + self.generate_composite(prefix, f) + + pbname = self.to_camel_case(str(field.typename)) + + # If any of the field accesses would result in a deprecated + # warning we mark the construction here to allow deprecated + # fields being access. + + has_deprecated = any([f.deprecated for f in field.fields]) + deprecated = ",deprecated" if has_deprecated else "" + + # And now we can convert the current field: + self.write( + f"""\ + #[allow(unused_variables{deprecated})] + impl From<{prefix}::{field.typename}> for pb::{pbname} {{ + fn from(c: {prefix}::{field.typename}) -> Self {{ + Self {{ + """ + ) + + for f in field.fields: + if f.omit(): + continue + + name = f.normalized() + name = re.sub(r"(?>::as_ref(&i).to_vec()", + }.get(typ, f"i.into()") + + self.write(f"// Field: {f.path}\n", numindent=3) + if not f.optional: + self.write( + f"{name}: c.{name}.into_iter().map(|i| {mapping}).collect(), // Rule #3 for type {typ}\n", + numindent=3, + ) + else: + self.write( + f"{name}: c.{name}.map(|arr| arr.into_iter().map(|i| {mapping}).collect()).unwrap_or(vec![]), // Rule #3\n", + numindent=3, + ) + elif isinstance(f, EnumField): + if not f.optional: + self.write(f"{name}: c.{name} as i32,\n", numindent=3) + else: + self.write(f"{name}: c.{name}.map(|v| v as i32),\n", numindent=3) + + elif isinstance(f, PrimitiveField): + typ = f.typename + ("?" if f.optional else "") + # We may need to reduce or increase the size of some + # types, or have some conversion such as + # hex-decoding. Also includes the `Some()` that grpc + # requires for non-native types. + rhs = { + "u8": f"c.{name}.into()", + "u16": f"c.{name}.into()", + "u16?": f"c.{name}.map(|v| v.into())", + "msat": f"Some(c.{name}.into())", + "msat?": f"c.{name}.map(|f| f.into())", + "pubkey": f"c.{name}.serialize().to_vec()", + "pubkey?": f"c.{name}.map(|v| v.serialize().to_vec())", + "hex": f"hex::decode(&c.{name}).unwrap()", + "hex?": f"c.{name}.map(|v| hex::decode(v).unwrap())", + "txid": f"hex::decode(&c.{name}).unwrap()", + "txid?": f"c.{name}.map(|v| hex::decode(v).unwrap())", + "short_channel_id": f"c.{name}.to_string()", + "short_channel_id?": f"c.{name}.map(|v| v.to_string())", + "hash": f">::as_ref(&c.{name}).to_vec()", + "hash?": f"c.{name}.map(|v| >::as_ref(&v).to_vec())", + "secret": f"c.{name}.to_vec()", + "secret?": f"c.{name}.map(|v| v.to_vec())", + "msat_or_any": f"Some(c.{name}.into())", + "msat_or_all": f"Some(c.{name}.into())", + "msat_or_all?": f"c.{name}.map(|o|o.into())", + "feerate?": f"c.{name}.map(|o|o.into())", + "feerate": f"Some(c.{name}.into())", + "outpoint?": f"c.{name}.map(|o|o.into())", + "TlvStream?": f"c.{name}.map(|s| s.into())", + "RoutehintList?": f"c.{name}.map(|rl| rl.into())", + }.get( + typ, f"c.{name}" # default to just assignment + ) + + if f.deprecated: + self.write(f"#[allow(deprecated)]\n", numindent=3) + self.write(f"{name}: {rhs}, // Rule #2 for type {typ}\n", numindent=3) + + elif isinstance(f, CompositeField): + rhs = "" + if not f.optional: + rhs = f"Some(c.{name}.into())" + else: + rhs = f"c.{name}.map(|v| v.into())" + self.write(f"{name}: {rhs},\n", numindent=3) + self.write( + f"""\ + }} + }} + }} + + """ + ) + + def to_camel_case(self, snake_str): + components = snake_str.split("_") + # We capitalize the first letter of each component except the first one + # with the 'capitalize' method and join them together, while preserving + # existing camel cases. + camel_case = components[0] + for word in components[1:]: + if not word.isupper(): + camel_case += word[0].upper() + word[1:] + else: + camel_case += word.capitalize() + return camel_case + + def generate_requests(self, service): + for meth in service.methods: + req = meth.request + self.generate_composite("requests", req) + + def generate_responses(self, service): + for meth in service.methods: + res = meth.response + self.generate_composite("responses", res) + + def generate(self, service: Service) -> None: + self.write( + """ + // This file was automatically derived from the JSON-RPC schemas in + // `doc/schemas`. Do not edit this file manually as it would get + // overwritten. + + use std::convert::From; + #[allow(unused_imports)] + use cln_rpc::model::{responses,requests}; + use crate::pb; + use std::str::FromStr; + use bitcoin::hashes::sha256::Hash as Sha256; + use bitcoin::hashes::Hash; + use cln_rpc::primitives::PublicKey; + + """ + ) + + self.generate_responses(service) + self.generate_requests(service) + self.write("\n") + + def write(self, text: str, numindent: int = 0) -> None: + raw = dedent(text) + if numindent > 0: + raw = indent(text, " " * numindent) + + self.dest.write(raw) diff --git a/contrib/msggen/msggen/gen/grpc/proto.py b/contrib/msggen/msggen/gen/grpc/proto.py new file mode 100644 index 000000000000..11539ea8a97f --- /dev/null +++ b/contrib/msggen/msggen/gen/grpc/proto.py @@ -0,0 +1,220 @@ +# A grpc model +from typing import TextIO, List, Dict, Any +from textwrap import dedent +import logging + +from msggen.gen import IGenerator +from msggen.gen.grpc.util import typemap, method_name_overrides +from msggen.model import ( + ArrayField, + Field, + CompositeField, + EnumField, + PrimitiveField, + Service, + MethodName, + TypeName, +) + + +class GrpcGenerator(IGenerator): + """A generator that generates protobuf files.""" + + def __init__(self, dest: TextIO, meta: Dict[str, Any]): + self.dest = dest + self.logger = logging.getLogger("msggen.grpc.GrpcGenerator") + self.meta = meta + + def write(self, text: str, cleanup: bool = True) -> None: + if cleanup: + self.dest.write(dedent(text)) + else: + self.dest.write(text) + + def field2number(self, message_name: TypeName, field): + m = self.meta["grpc-field-map"] + + message_name = ( + message_name.name + ) # TypeName is not JSON-serializable, use the unaltered name. + + # Wrap each field mapping by the message_name, since otherwise + # requests and responses share the same number space (just + # cosmetic really, but why not do it?) + if message_name not in m: + m[message_name] = {} + m = m[message_name] + + # Simple case first: if we've already assigned a number let's reuse that + if field.path in m: + return m[field.path] + + # Now let's find the highest number we have in the parent + # context + parent = ".".join(field.path.split(".")[:-1]) + maxnum = 0 + for k, v in m.items(): + parent2 = ".".join(k.split(".")[:-1]) + if parent2 == parent: + maxnum = max(maxnum, v) + + m[field.path] = maxnum + 1 + self.logger.warn( + f"Assigning new field number to {field.path} => {m[field.path]}" + ) + + return m[field.path] + + def enumerate_fields(self, message_name, fields): + """Use the meta map to identify which number this field will get.""" + enumerated_values = [(self.field2number(message_name, f), f) for f in fields] + sorted_enumerated_values = sorted(enumerated_values, key=lambda x: x[0]) + for i, v in sorted_enumerated_values: + yield (i, v) + + def enumvar2number(self, typename: TypeName, variant): + """Find an existing variant number of generate a new one. + + If we don't have a variant number yet we'll just take the + largest one assigned so far and increment it by 1.""" + + typename = str(typename.name) + + m = self.meta["grpc-enum-map"] + variant = str(variant) + if typename not in m: + m[typename] = {} + + variants = m[typename] + if variant in variants: + return variants[variant] + + # Now find the maximum and increment once + n = max(variants.values()) if len(variants) else -1 + + m[typename][variant] = n + 1 + return m[typename][variant] + + def enumerate_enum(self, typename, variants): + enumerated_values = [(self.enumvar2number(typename, v), v) for v in variants] + sorted_enumerated_values = sorted(enumerated_values, key=lambda x: x[0]) + for i, v in sorted_enumerated_values: + yield (i, v) + + def gather_types(self, service): + """Gather all types that might need to be defined.""" + + def gather_subfields(field: Field) -> List[Field]: + fields = [field] + + if isinstance(field, CompositeField): + for f in field.fields: + fields.extend(gather_subfields(f)) + elif isinstance(field, ArrayField): + fields = [] + fields.extend(gather_subfields(field.itemtype)) + + return fields + + types = [] + for method in service.methods: + types.extend([method.request, method.response]) + for field in method.request.fields: + types.extend(gather_subfields(field)) + for field in method.response.fields: + types.extend(gather_subfields(field)) + return types + + def generate_service(self, service: Service) -> None: + self.write( + f""" + service {service.name} {{ + """ + ) + + for method in service.methods: + mname = MethodName(method_name_overrides.get(method.name, method.name)) + self.write( + f" rpc {mname}({method.request.typename}) returns ({method.response.typename}) {{}}\n", + cleanup=False, + ) + + self.write( + f"""}} + """ + ) + + def generate_enum(self, e: EnumField, indent=0): + self.logger.debug(f"Generating enum {e}") + prefix = "\t" * indent + self.write(f"{prefix}// {e.path}\n", False) + self.write(f"{prefix}enum {e.typename} {{\n", False) + + for i, v in self.enumerate_enum(e.typename, e.variants): + self.logger.debug(f"Generating enum variant {v}") + self.write(f"{prefix}\t{v.normalized()} = {i};\n", False) + + self.write(f"""{prefix}}}\n""", False) + + def generate_message(self, message: CompositeField): + if message.omit(): + return + + self.write( + f""" + message {message.typename} {{ + """ + ) + + # Declare enums inline so they are scoped correctly in C++ + for _, f in enumerate(message.fields): + if isinstance(f, EnumField) and not f.override(): + self.generate_enum(f, indent=1) + + for i, f in self.enumerate_fields(message.typename, message.fields): + if f.omit(): + continue + + opt = "optional " if f.optional else "" + + if isinstance(f, ArrayField): + typename = f.override( + typemap.get(f.itemtype.typename, f.itemtype.typename) + ) + self.write(f"\trepeated {typename} {f.normalized()} = {i};\n", False) + elif isinstance(f, PrimitiveField): + typename = f.override(typemap.get(f.typename, f.typename)) + self.write(f"\t{opt}{typename} {f.normalized()} = {i};\n", False) + elif isinstance(f, EnumField): + typename = f.override(f.typename) + self.write(f"\t{opt}{typename} {f.normalized()} = {i};\n", False) + elif isinstance(f, CompositeField): + typename = f.override(f.typename) + self.write(f"\t{opt}{typename} {f.normalized()} = {i};\n", False) + + self.write( + """} + """ + ) + + def generate(self, service: Service) -> None: + """Generate the GRPC protobuf file and write to `dest`""" + self.write(f"""syntax = "proto3";\npackage cln;\n""") + self.write( + """ + // This file was automatically derived from the JSON-RPC schemas in + // `doc/schemas`. Do not edit this file manually as it would get + // overwritten. + + """ + ) + + for i in service.includes: + self.write(f'import "{i}";\n') + + self.generate_service(service) + + fields = self.gather_types(service) + + for message in [f for f in fields if isinstance(f, CompositeField)]: + self.generate_message(message) diff --git a/contrib/msggen/msggen/gen/grpc/server.py b/contrib/msggen/msggen/gen/grpc/server.py new file mode 100644 index 000000000000..cfac60d48af0 --- /dev/null +++ b/contrib/msggen/msggen/gen/grpc/server.py @@ -0,0 +1,93 @@ +# A grpc model +import re + +from msggen.model import Service +from msggen.gen.grpc.convert import GrpcConverterGenerator +from msggen.gen.grpc.util import method_name_overrides + + +class GrpcServerGenerator(GrpcConverterGenerator): + def generate(self, service: Service) -> None: + self.write( + f"""\ + use crate::pb::node_server::Node; + use crate::pb; + use cln_rpc::{{Request, Response, ClnRpc}}; + use anyhow::Result; + use std::path::{{Path, PathBuf}}; + use cln_rpc::model::requests; + use log::{{debug, trace}}; + use tonic::{{Code, Status}}; + + #[derive(Clone)] + pub struct Server + {{ + rpc_path: PathBuf, + }} + + impl Server + {{ + pub async fn new(path: &Path) -> Result + {{ + Ok(Self {{ + rpc_path: path.to_path_buf(), + }}) + }} + }} + + #[tonic::async_trait] + impl Node for Server + {{ + """ + ) + + for method in service.methods: + mname = method_name_overrides.get(method.name, method.name) + # Tonic will convert to snake-case, so we have to do it here too + name = re.sub(r"(?, + ) -> Result, tonic::Status> {{ + let req = request.into_inner(); + let req: requests::{method.request.typename} = req.into(); + debug!("Client asked for {name}"); + trace!("{name} request: {{:?}}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::{method.name}(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method {method.name}: {{:?}}", e)))?; + match result {{ + Response::{method.name}(r) => {{ + trace!("{name} response: {{:?}}", r); + Ok(tonic::Response::new(r.into())) + }}, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {{:?}} to method call {method.name}", + r + ) + )), + }} + + }}\n\n""", + numindent=0, + ) + + self.write( + f"""\ + }} + """, + numindent=0, + ) diff --git a/contrib/msggen/msggen/gen/grpc/unconvert.py b/contrib/msggen/msggen/gen/grpc/unconvert.py new file mode 100644 index 000000000000..45eb3e51adf7 --- /dev/null +++ b/contrib/msggen/msggen/gen/grpc/unconvert.py @@ -0,0 +1,140 @@ +# A grpc model +from msggen.model import ArrayField, CompositeField, EnumField, PrimitiveField, Service +from msggen.gen.grpc.convert import GrpcConverterGenerator + + +class GrpcUnconverterGenerator(GrpcConverterGenerator): + """Generator to generate the conversions from GRPC to JSON-RPC (for requests).""" + + def generate(self, service: Service): + self.generate_requests(service) + + # TODO Temporarily disabled since the use of overrides is lossy + # self.generate_responses(service) + + def generate_composite(self, prefix, field: CompositeField) -> None: + # First pass: generate any sub-fields before we generate the + # top-level field itself. + if field.omit(): + return + + for f in field.fields: + if isinstance(f, ArrayField): + self.generate_array(prefix, f) + elif isinstance(f, CompositeField): + self.generate_composite(prefix, f) + + has_deprecated = any([f.deprecated for f in field.fields]) + deprecated = ",deprecated" if has_deprecated else "" + + pbname = self.to_camel_case(str(field.typename)) + # And now we can convert the current field: + self.write( + f"""\ + #[allow(unused_variables{deprecated})] + impl From for {prefix}::{field.typename} {{ + fn from(c: pb::{pbname}) -> Self {{ + Self {{ + """ + ) + + for f in field.fields: + name = f.normalized() + if f.omit(): + continue + + if isinstance(f, ArrayField): + typ = f.itemtype.typename + mapping = { + "hex": f"hex::encode(s)", + "u32": f"s", + "secret": f"s.try_into().unwrap()", + "hash": f"Sha256::from_slice(&s).unwrap()", + }.get(typ, f"s.into()") + + # TODO fix properly + if typ in ["ListtransactionsTransactionsType"]: + continue + if name == "state_changes": + self.write(f" state_changes: None,") + continue + + if not f.optional: + self.write( + f"{name}: c.{name}.into_iter().map(|s| {mapping}).collect(), // Rule #4\n", + numindent=3, + ) + else: + self.write( + f"{name}: Some(c.{name}.into_iter().map(|s| {mapping}).collect()), // Rule #4\n", + numindent=3, + ) + + elif isinstance(f, EnumField): + if f.path == "ListPeers.peers[].channels[].htlcs[].state": + continue + if not f.optional: + self.write(f"{name}: c.{name}.try_into().unwrap(),\n", numindent=3) + else: + self.write( + f"{name}: c.{name}.map(|v| v.try_into().unwrap()),\n", + numindent=3, + ) + pass + elif isinstance(f, PrimitiveField): + typ = f.typename + ("?" if f.optional else "") + # We may need to reduce or increase the size of some + # types, or have some conversion such as + # hex-decoding. Also includes the `Some()` that grpc + # requires for non-native types. + + if name == "scriptPubKey": + name = "script_pub_key" + + rhs = { + "u8": f"c.{name} as u8", + "u16": f"c.{name} as u16", + "u16?": f"c.{name}.map(|v| v as u16)", + "hex": f"hex::encode(&c.{name})", + "hex?": f"c.{name}.map(|v| hex::encode(v))", + "txid?": f"c.{name}.map(|v| hex::encode(v))", + "pubkey": f"PublicKey::from_slice(&c.{name}).unwrap()", + "pubkey?": f"c.{name}.map(|v| PublicKey::from_slice(&v).unwrap())", + "msat": f"c.{name}.unwrap().into()", + "msat?": f"c.{name}.map(|a| a.into())", + "msat_or_all": f"c.{name}.unwrap().into()", + "msat_or_all?": f"c.{name}.map(|a| a.into())", + "msat_or_any": f"c.{name}.unwrap().into()", + "msat_or_any?": f"c.{name}.map(|a| a.into())", + "feerate": f"c.{name}.unwrap().into()", + "feerate?": f"c.{name}.map(|a| a.into())", + "outpoint?": f"c.{name}.map(|a| a.into())", + "RoutehintList?": f"c.{name}.map(|rl| rl.into())", + "short_channel_id": f"cln_rpc::primitives::ShortChannelId::from_str(&c.{name}).unwrap()", + "short_channel_id?": f"c.{name}.map(|v| cln_rpc::primitives::ShortChannelId::from_str(&v).unwrap())", + "secret": f"c.{name}.try_into().unwrap()", + "secret?": f"c.{name}.map(|v| v.try_into().unwrap())", + "hash": f"Sha256::from_slice(&c.{name}).unwrap()", + "hash?": f"c.{name}.map(|v| Sha256::from_slice(&v).unwrap())", + "txid": f"hex::encode(&c.{name})", + "TlvStream?": f"c.{name}.map(|s| s.into())", + }.get( + typ, f"c.{name}" # default to just assignment + ) + self.write(f"{name}: {rhs}, // Rule #1 for type {typ}\n", numindent=3) + elif isinstance(f, CompositeField): + rhs = "" + if not f.optional: + rhs = f"c.{name}.unwrap().into()" + else: + rhs = f"c.{name}.map(|v| v.into())" + self.write(f"{name}: {rhs},\n", numindent=3) + + self.write( + f"""\ + }} + }} + }} + + """ + ) diff --git a/contrib/msggen/msggen/gen/grpc/util.py b/contrib/msggen/msggen/gen/grpc/util.py new file mode 100644 index 000000000000..c5add644408b --- /dev/null +++ b/contrib/msggen/msggen/gen/grpc/util.py @@ -0,0 +1,38 @@ +typemap = { + "boolean": "bool", + "hex": "bytes", + "msat": "Amount", + "msat_or_all": "AmountOrAll", + "msat_or_any": "AmountOrAny", + "currency": "string", + "number": "double", + "pubkey": "bytes", + "short_channel_id": "string", + "signature": "string", + "string": "string", + "txid": "bytes", + "u8": "uint32", # Yep, this is the smallest integer type in grpc... + "u32": "uint32", + "u64": "uint64", + "s8": "int32", + "s16": "int32", + "s32": "int32", + "s64": "int64", + "u16": "uint32", # Yeah, I know... + "f32": "float", + "integer": "sint64", + "outpoint": "Outpoint", + "feerate": "Feerate", + "outputdesc": "OutputDesc", + "secret": "bytes", + "bip340sig": "string", + "hash": "bytes", +} + + +# GRPC builds a stub with the methods declared in the protobuf file, +# but it also comes with its own methods, e.g., `connect` which can +# clash with the generated ones. So rename the ones we know clash. +method_name_overrides = { + "Connect": "ConnectPeer", +} From 84e950a54942a5e1d9af6615caab18e5032e19b1 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Mon, 12 Feb 2024 13:40:44 +0100 Subject: [PATCH 04/24] msggen: Move rpc-model generator --- contrib/msggen/msggen/__main__.py | 2 +- contrib/msggen/msggen/gen/__init__.py | 2 +- contrib/msggen/msggen/gen/{ => rpc}/rust.py | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename contrib/msggen/msggen/gen/{ => rpc}/rust.py (100%) diff --git a/contrib/msggen/msggen/__main__.py b/contrib/msggen/msggen/__main__.py index 821d4c16bf41..7c6b638f5dbb 100644 --- a/contrib/msggen/msggen/__main__.py +++ b/contrib/msggen/msggen/__main__.py @@ -4,7 +4,7 @@ from pathlib import Path from msggen.gen.grpc import GrpcGenerator, GrpcConverterGenerator, GrpcUnconverterGenerator, GrpcServerGenerator from msggen.gen.grpc2py import Grpc2PyGenerator -from msggen.gen.rust import RustGenerator +from msggen.gen.rpc.rust import RustGenerator from msggen.gen.generator import GeneratorChain from msggen.utils import load_jsonrpc_service, combine_schemas import logging diff --git a/contrib/msggen/msggen/gen/__init__.py b/contrib/msggen/msggen/gen/__init__.py index 107f713ffcb7..2ef4a56433eb 100644 --- a/contrib/msggen/msggen/gen/__init__.py +++ b/contrib/msggen/msggen/gen/__init__.py @@ -1,3 +1,3 @@ from .generator import IGenerator, GeneratorChain # noqa from .grpc import GrpcGenerator, GrpcConverterGenerator, GrpcUnconverterGenerator, GrpcServerGenerator # noqa -from .rust import RustGenerator # noqa +from .rpc.rust import RustGenerator # noqa diff --git a/contrib/msggen/msggen/gen/rust.py b/contrib/msggen/msggen/gen/rpc/rust.py similarity index 100% rename from contrib/msggen/msggen/gen/rust.py rename to contrib/msggen/msggen/gen/rpc/rust.py From 090f0a69a7e76ae1bc696a4f08f9bedc6f4da32b Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Wed, 7 Feb 2024 15:04:07 +0100 Subject: [PATCH 05/24] msggen: Add notification-structs to `cln_rpc` In Core Lightning notifications are JSON-messages. This commit introduces structs that can be used to parse the notification messages. Using `msggen` all required tructs are automatically generated --- cln-rpc/src/notifications.rs | 96 ++++++++++++++++++- contrib/msggen/msggen/__main__.py | 6 +- contrib/msggen/msggen/gen/rpc/__init__.py | 4 + contrib/msggen/msggen/gen/rpc/notification.py | 46 +++++++++ 4 files changed, 148 insertions(+), 4 deletions(-) create mode 100644 contrib/msggen/msggen/gen/rpc/__init__.py create mode 100644 contrib/msggen/msggen/gen/rpc/notification.py diff --git a/cln-rpc/src/notifications.rs b/cln-rpc/src/notifications.rs index 4256350f9b47..17326dcbcdca 100644 --- a/cln-rpc/src/notifications.rs +++ b/cln-rpc/src/notifications.rs @@ -1,4 +1,94 @@ -use serde::{Deserialize, Serialize}; +// This file is autogenerated by `msggen` +// Do not edit it manually, your changes will be overwritten + + + +use crate::primitives::*; +use serde::{Serialize, Deserialize}; +#[derive(Clone, Debug, Deserialize, Serialize)] +pub enum Notification { + #[serde(rename = "block_added")] + BlockAdded(BlockAddedNotification), + #[serde(rename = "channel_open_failed")] + ChannelOpenFailed(ChannelOpenFailedNotification), + #[serde(rename = "channel_opened")] + ChannelOpened(ChannelOpenedNotification), + #[serde(rename = "connect")] + Connect(ConnectNotification), + #[serde(rename = "custommsg")] + CustomMsg(CustomMsgNotification), +} + + +#[derive(Clone, Debug, Deserialize, Serialize)] +pub struct BlockAddedNotification { + #[serde(skip_serializing_if = "Option::is_none")] + pub hash: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub height: Option, +} + +#[derive(Clone, Debug, Deserialize, Serialize)] +pub struct ChannelOpenFailedNotification { + #[serde(skip_serializing_if = "Option::is_none")] + pub channel_id: Option, +} + +#[derive(Clone, Debug, Deserialize, Serialize)] +pub struct ChannelOpenedNotification { + #[serde(skip_serializing_if = "Option::is_none")] + pub channel_ready: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub funding_msat: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub funding_txid: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub id: Option, +} + +#[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, Eq)] +pub enum ConnectDirection { + #[serde(rename = "in")] + IN = 0, + #[serde(rename = "out")] + OUT = 1, +} + +impl TryFrom for ConnectDirection { + type Error = anyhow::Error; + fn try_from(c: i32) -> Result { + match c { + 0 => Ok(ConnectDirection::IN), + 1 => Ok(ConnectDirection::OUT), + o => Err(anyhow::anyhow!("Unknown variant {} for enum ConnectDirection", o)), + } + } +} + +impl ToString for ConnectDirection { + fn to_string(&self) -> String { + match self { + ConnectDirection::IN => "IN", + ConnectDirection::OUT => "OUT", + }.to_string() + } +} + +#[derive(Clone, Debug, Deserialize, Serialize)] +pub struct ConnectNotification { + #[serde(skip_serializing_if = "Option::is_none")] + pub address: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub direction: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub id: Option, +} + +#[derive(Clone, Debug, Deserialize, Serialize)] +pub struct CustomMsgNotification { + #[serde(skip_serializing_if = "Option::is_none")] + pub payload: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub peer_id: Option, +} -#[derive(Debug, Deserialize, Serialize)] -pub enum Notification {} diff --git a/contrib/msggen/msggen/__main__.py b/contrib/msggen/msggen/__main__.py index 7c6b638f5dbb..cb0124e9b3cd 100644 --- a/contrib/msggen/msggen/__main__.py +++ b/contrib/msggen/msggen/__main__.py @@ -4,7 +4,7 @@ from pathlib import Path from msggen.gen.grpc import GrpcGenerator, GrpcConverterGenerator, GrpcUnconverterGenerator, GrpcServerGenerator from msggen.gen.grpc2py import Grpc2PyGenerator -from msggen.gen.rpc.rust import RustGenerator +from msggen.gen.rpc import RustGenerator, NotificationGenerator from msggen.gen.generator import GeneratorChain from msggen.utils import load_jsonrpc_service, combine_schemas import logging @@ -49,6 +49,10 @@ def add_handler_gen_rust_jsonrpc(generator_chain: GeneratorChain, meta): dest = open(fname, "w") generator_chain.add_generator(RustGenerator(dest, meta)) + fname = Path("cln-rpc") / "src" / "notifications.rs" + dest = open(fname, "w") + generator_chain.add_generator(NotificationGenerator(dest, meta)) + def load_msggen_meta(): meta = json.load(open('.msggen.json', 'r')) diff --git a/contrib/msggen/msggen/gen/rpc/__init__.py b/contrib/msggen/msggen/gen/rpc/__init__.py new file mode 100644 index 000000000000..dee5ba87eede --- /dev/null +++ b/contrib/msggen/msggen/gen/rpc/__init__.py @@ -0,0 +1,4 @@ +from msggen.gen.rpc.notification import NotificationGenerator +from msggen.gen.rpc.rust import RustGenerator + +__all__ = [RustGenerator, NotificationGenerator] diff --git a/contrib/msggen/msggen/gen/rpc/notification.py b/contrib/msggen/msggen/gen/rpc/notification.py new file mode 100644 index 000000000000..8cc8e466e832 --- /dev/null +++ b/contrib/msggen/msggen/gen/rpc/notification.py @@ -0,0 +1,46 @@ +import logging +from textwrap import dedent, indent +from typing import Any, Dict, Optional, TextIO + +from msggen.model import Service +from msggen.gen.generator import IGenerator +from msggen.gen.rpc.rust import gen_composite + + +class NotificationGenerator(IGenerator): + + def __init__(self, dest: TextIO, meta: Dict[str, Any]): + self.dest = dest + self.logger = logging.getLogger(__name__) + self.meta = meta + + def write(self, text: str, numindent: Optional[int] = None) -> None: + raw = dedent(text) + if numindent is not None: + raw = indent(text, " " * numindent) + + self.dest.write(raw) + + def generate_enum(self, service: Service): + self.write("#[derive(Clone, Debug, Deserialize, Serialize)]\n") + self.write("pub enum Notification {\n") + for notification in service.notifications: + tn = notification.typename + name = notification.name + self.write(f'#[serde(rename = "{name}")]\n', numindent=1) + self.write(f"{tn}({tn}Notification),\n", numindent=1), + self.write("}\n") + + def generate(self, service: Service) -> None: + self.write("// This file is autogenerated by `msggen`\n") + self.write("// Do not edit it manually, your changes will be overwritten\n\n\n") + self.write("\n") + self.write("use crate::primitives::*;\n") + self.write("use serde::{Serialize, Deserialize};\n") + + self.generate_enum(service) + self.write("\n\n") + + for notification in service.notifications: + _, resp_decl = gen_composite(notification.response, self.meta) + self.write(resp_decl) From 1ce856581a943719a1c920c2646e89ab8118ef7e Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Thu, 8 Feb 2024 10:35:51 +0100 Subject: [PATCH 06/24] msggen: Provide parent in `visit`-method of patch In the next commit I'll change the behavior of `OptionalPatch`. The changes require me to have access to the `parent` of a field. Splitting it up in a separate commit makes it easier to review. You can run `msggen` against this version and the previous `version`. I've tested it. It returns exactly the same output. --- contrib/msggen/msggen/patch.py | 145 +++++++++++++++++---------------- 1 file changed, 77 insertions(+), 68 deletions(-) diff --git a/contrib/msggen/msggen/patch.py b/contrib/msggen/msggen/patch.py index 4281333c6ba2..5ae7171108b9 100644 --- a/contrib/msggen/msggen/patch.py +++ b/contrib/msggen/msggen/patch.py @@ -1,4 +1,5 @@ from abc import ABC +from typing import Optional from msggen import model @@ -10,9 +11,8 @@ class Patch(ABC): """ - def visit(self, field: model.Field) -> None: - """Gets called for each node in the model. - """ + def visit(self, field: model.Field, parent: Optional[model.Field] = None) -> None: + """Gets called for each node in the model.""" pass def apply(self, service: model.Service) -> None: @@ -20,17 +20,20 @@ def apply(self, service: model.Service) -> None: pre-order on each node in the schema tree. """ + def recurse(f: model.Field): # First recurse if we have further type definitions + self.visit(f) + if isinstance(f, model.ArrayField): - self.visit(f.itemtype) + self.visit(f.itemtype, f) recurse(f.itemtype) elif isinstance(f, model.CompositeField): for c in f.fields: - self.visit(c) + self.visit(c, f) recurse(c) # Now visit ourselves - self.visit(f) + for m in service.methods: recurse(m.request) recurse(m.response) @@ -52,12 +55,11 @@ class VersionAnnotationPatch(Patch): """ def __init__(self, meta) -> None: - """Create a patch that can annotate `added` and `deprecated` - """ + """Create a patch that can annotate `added` and `deprecated`""" self.meta = meta - def visit(self, f: model.Field) -> None: - m = self.meta['model-field-versions'].get(f.path, {}) + def visit(self, f: model.Field, parent: Optional[model.Field] = None) -> None: + m = self.meta["model-field-versions"].get(f.path, {}) # The following lines are used to backfill fields that predate # the introduction, so they need to use a default version to @@ -67,15 +69,17 @@ def visit(self, f: model.Field) -> None: # if f.added is None and 'added' not in m: # m['added'] = 'pre-v0.10.1' - added = m.get('added', None) - deprecated = m.get('deprecated', None) + added = m.get("added", None) + deprecated = m.get("deprecated", None) assert added or f.added, f"Field {f.path} does not have an `added` annotation" # We do not allow the added and deprecated flags to be # modified after the fact. - if f.added and added and f.added != m['added']: - raise ValueError(f"Field {f.path} changed `added` annotation: {f.added} != {m['added']}") + if f.added and added and f.added != m["added"]: + raise ValueError( + f"Field {f.path} changed `added` annotation: {f.added} != {m['added']}" + ) if f.deprecated: # We don't care about finishing value. @@ -83,7 +87,9 @@ def visit(self, f: model.Field) -> None: assert len(f.deprecated) == 2 f.deprecated = f.deprecated[0] if f.deprecated != deprecated: - raise ValueError(f"Field {f.path} changed `deprecated` annotation: {f.deprecated} vs {deprecated}") + raise ValueError( + f"Field {f.path} changed `deprecated` annotation: {f.deprecated} vs {deprecated}" + ) if f.added is None: f.added = added @@ -91,9 +97,9 @@ def visit(self, f: model.Field) -> None: f.deprecated = deprecated # Backfill the metadata using the annotation - self.meta['model-field-versions'][f.path] = { - 'added': f.added, - 'deprecated': f.deprecated, + self.meta["model-field-versions"][f.path] = { + "added": f.added, + "deprecated": f.deprecated, } @@ -108,10 +114,10 @@ class OptionalPatch(Patch): @staticmethod def version_to_number(version): # Dummy versions collecting all fields that predate the versioning. - if version == 'pre-v0.10.1': + if version == "pre-v0.10.1": return 0 - assert version[0] == 'v' - parts = version[1:].split('.') + assert version[0] == "v" + parts = version[1:].split(".") # Months, plus 10 for minor versions. num = (int(parts[0]) * 12 + int(parts[1])) * 10 @@ -126,9 +132,14 @@ def supported(): fields more stringent. """ - return OptionalPatch.version_to_number('v0.10.1') + return OptionalPatch.version_to_number("v0.10.1") + + def visit(self, f: model.Field, parent: Optional[model.Field] = None) -> None: + # Return if the optional field has been set already + if "optional" in dir(f): + if f.optional is not None: + return - def visit(self, f: model.Field) -> None: # Default to false, and then overwrite it if required. f.optional = False if not f.required: @@ -144,60 +155,58 @@ def visit(self, f: model.Field) -> None: class OverridePatch(Patch): - """Allows omitting some fields and overriding the type of fields based on configuration. + """Allows omitting some fields and overriding the type of fields based on configuration.""" - """ omit = [ - 'Decode.invoice_paths[]', - 'Decode.invoice_paths[].payinfo', - 'Decode.offer_paths[].path[]', - 'Decode.offer_recurrence', - 'Decode.routes[][]', - 'Decode.unknown_invoice_request_tlvs[]', - 'Decode.unknown_invoice_tlvs[]', - 'Decode.unknown_offer_tlvs[]', - 'DecodePay.routes[][]', - 'DecodeRoutes.routes', - 'Invoice.exposeprivatechannels', - 'ListClosedChannels.closedchannels[].channel_type', - 'ListPeerChannels.channels[].channel_type', - 'ListPeerChannels.channels[].features[]', - 'ListPeerChannels.channels[].state_changes[]', - 'ListPeers.peers[].channels[].state_changes[]', - 'ListTransactions.transactions[].type[]', + "Decode.invoice_paths[]", + "Decode.invoice_paths[].payinfo", + "Decode.offer_paths[].path[]", + "Decode.offer_recurrence", + "Decode.routes[][]", + "Decode.unknown_invoice_request_tlvs[]", + "Decode.unknown_invoice_tlvs[]", + "Decode.unknown_offer_tlvs[]", + "DecodePay.routes[][]", + "DecodeRoutes.routes", + "Invoice.exposeprivatechannels", + "ListClosedChannels.closedchannels[].channel_type", + "ListPeerChannels.channels[].channel_type", + "ListPeerChannels.channels[].features[]", + "ListPeerChannels.channels[].state_changes[]", + "ListPeers.peers[].channels[].state_changes[]", + "ListTransactions.transactions[].type[]", ] # Handcoded types to use instead of generating the types from the # schema. Useful for repeated types, and types that have # redundancies. overrides = { - 'ListClosedChannels.closedchannels[].closer': "ChannelSide", - 'ListClosedChannels.closedchannels[].opener': "ChannelSide", - 'ListFunds.channels[].state': 'ChannelState', - 'ListPeerChannels.channels[].closer': "ChannelSide", - 'ListPeerChannels.channels[].opener': "ChannelSide", - 'ListPeers.peers[].channels[].closer': "ChannelSide", - 'ListPeers.peers[].channels[].features[]': "string", - 'ListPeers.peers[].channels[].opener': "ChannelSide", - 'ListPeers.peers[].channels[].state_changes[].cause': "ChannelStateChangeCause", - 'ListPeers.peers[].channels[].state_changes[].old_state': "ChannelState", - 'ListPeers.peers[].channels[].htlcs[].state': "HtlcState", - 'ListPeerChannels.channels[].htlcs[].state': "HtlcState", - 'ListHtlcs.htlcs[].state': "HtlcState", - 'FundChannel.channel_type.names[]': 'ChannelTypeName', - 'FundChannel_Start.channel_type.names[]': 'ChannelTypeName', - 'MultiFundChannel.channel_ids[].channel_type.names[]': 'ChannelTypeName', - 'OpenChannel_Init.channel_type.names[]': 'ChannelTypeName', - 'OpenChannel_Bump.channel_type.names[]': 'ChannelTypeName', - 'OpenChannel_Update.channel_type.names[]': 'ChannelTypeName', - 'AutoClean-Once.subsystem': "AutocleanSubsystem", - 'AutoClean-Status.subsystem': "AutocleanSubsystem", - 'Plugin.subcommand': 'PluginSubcommand', - 'Plugin.command': 'PluginSubcommand', + "ListClosedChannels.closedchannels[].closer": "ChannelSide", + "ListClosedChannels.closedchannels[].opener": "ChannelSide", + "ListFunds.channels[].state": "ChannelState", + "ListPeerChannels.channels[].closer": "ChannelSide", + "ListPeerChannels.channels[].opener": "ChannelSide", + "ListPeers.peers[].channels[].closer": "ChannelSide", + "ListPeers.peers[].channels[].features[]": "string", + "ListPeers.peers[].channels[].opener": "ChannelSide", + "ListPeers.peers[].channels[].state_changes[].cause": "ChannelStateChangeCause", + "ListPeers.peers[].channels[].state_changes[].old_state": "ChannelState", + "ListPeers.peers[].channels[].htlcs[].state": "HtlcState", + "ListPeerChannels.channels[].htlcs[].state": "HtlcState", + "ListHtlcs.htlcs[].state": "HtlcState", + "FundChannel.channel_type.names[]": "ChannelTypeName", + "FundChannel_Start.channel_type.names[]": "ChannelTypeName", + "MultiFundChannel.channel_ids[].channel_type.names[]": "ChannelTypeName", + "OpenChannel_Init.channel_type.names[]": "ChannelTypeName", + "OpenChannel_Bump.channel_type.names[]": "ChannelTypeName", + "OpenChannel_Update.channel_type.names[]": "ChannelTypeName", + "AutoClean-Once.subsystem": "AutocleanSubsystem", + "AutoClean-Status.subsystem": "AutocleanSubsystem", + "Plugin.subcommand": "PluginSubcommand", + "Plugin.command": "PluginSubcommand", } - def visit(self, f: model.Field) -> None: - """For now just skips the fields we can't convert. - """ + def visit(self, f: model.Field, parent: Optional[model.Field] = None) -> None: + """For now just skips the fields we can't convert.""" f.omitted = f.path in self.omit f.type_override = self.overrides.get(f.path, None) From cf996164e235d28cf75da460d8c9006dea90a76a Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Thu, 8 Feb 2024 10:46:38 +0100 Subject: [PATCH 07/24] msggen: Choose better when a subfield is optional **Problem Description** In previous commits I introduced some new fields to `msggen`. One example is `CustomMsgResponse` in `cln-grpc/src/notification.rs`. ```rust pub struct CustomMsgResponse { #[serde(skip_serializing_if = "Option::is_none")] pub peer_id: Option, #[serde(skip_serializing_if = "Option::is_none")] pub payload: Option, } ``` The `peer_id` and `payload` are required parameters. However, the generated code is still marking them as `Optional`. This is a choice made by `msggen`. It does this because `payload` and `peer_id` are recently added fields. By marking the field as optional the language bindings would also work when used on an older version of Core-Lightning. In this scenario. Marking them as optional is overkill. The `CustomMsgStruct` and `payload` field are created in the same version of CoreLightning. This commit solves this behavior. --- cln-grpc/proto/node.proto | 102 +- cln-grpc/src/convert.rs | 136 +- cln-rpc/src/model.rs | 312 ++--- cln-rpc/src/notifications.rs | 34 +- cln-rpc/src/primitives.rs | 2 +- contrib/msggen/msggen/gen/rpc/notification.py | 1 + contrib/msggen/msggen/patch.py | 18 +- contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py | 1164 ++++++++--------- 8 files changed, 855 insertions(+), 914 deletions(-) diff --git a/cln-grpc/proto/node.proto b/cln-grpc/proto/node.proto index 88ea69b48ff6..ea607efa6487 100644 --- a/cln-grpc/proto/node.proto +++ b/cln-grpc/proto/node.proto @@ -548,8 +548,8 @@ message CreateinvoiceResponse { } message CreateinvoicePaid_outpoint { - optional bytes txid = 1; - optional uint32 outnum = 2; + bytes txid = 1; + uint32 outnum = 2; } message DatastoreRequest { @@ -580,12 +580,12 @@ message DatastoreusageRequest { } message DatastoreusageResponse { - optional DatastoreusageDatastoreusage datastoreusage = 1; + DatastoreusageDatastoreusage datastoreusage = 1; } message DatastoreusageDatastoreusage { - optional string key = 1; - optional uint64 total_bytes = 2; + string key = 1; + uint64 total_bytes = 2; } message CreateonionRequest { @@ -739,8 +739,8 @@ message ListinvoicesInvoices { } message ListinvoicesInvoicesPaid_outpoint { - optional bytes txid = 1; - optional uint32 outnum = 2; + bytes txid = 1; + uint32 outnum = 2; } message SendonionRequest { @@ -972,8 +972,8 @@ message WaitanyinvoiceResponse { } message WaitanyinvoicePaid_outpoint { - optional bytes txid = 1; - optional uint32 outnum = 2; + bytes txid = 1; + uint32 outnum = 2; } message WaitinvoiceRequest { @@ -1004,8 +1004,8 @@ message WaitinvoiceResponse { } message WaitinvoicePaid_outpoint { - optional bytes txid = 1; - optional uint32 outnum = 2; + bytes txid = 1; + uint32 outnum = 2; } message WaitsendpayRequest { @@ -1232,9 +1232,9 @@ message ListpeerchannelsChannels { DUALOPEND_OPEN_COMMITTED = 12; DUALOPEND_OPEN_COMMIT_READY = 13; } - optional bytes peer_id = 1; - optional bool peer_connected = 2; - optional ListpeerchannelsChannelsState state = 3; + bytes peer_id = 1; + bool peer_connected = 2; + ListpeerchannelsChannelsState state = 3; optional bytes scratch_txid = 4; optional ListpeerchannelsChannelsFeerate feerate = 6; optional string owner = 7; @@ -1249,7 +1249,7 @@ message ListpeerchannelsChannels { repeated ListpeerchannelsChannelsInflight inflight = 16; optional bytes close_to = 17; optional bool private = 18; - optional ChannelSide opener = 19; + ChannelSide opener = 19; optional ChannelSide closer = 20; optional ListpeerchannelsChannelsFunding funding = 22; optional Amount to_us_msat = 23; @@ -1292,45 +1292,45 @@ message ListpeerchannelsChannels { } message ListpeerchannelsChannelsUpdates { - optional ListpeerchannelsChannelsUpdatesLocal local = 1; + ListpeerchannelsChannelsUpdatesLocal local = 1; optional ListpeerchannelsChannelsUpdatesRemote remote = 2; } message ListpeerchannelsChannelsUpdatesLocal { - optional Amount htlc_minimum_msat = 1; - optional Amount htlc_maximum_msat = 2; - optional uint32 cltv_expiry_delta = 3; - optional Amount fee_base_msat = 4; - optional uint32 fee_proportional_millionths = 5; + Amount htlc_minimum_msat = 1; + Amount htlc_maximum_msat = 2; + uint32 cltv_expiry_delta = 3; + Amount fee_base_msat = 4; + uint32 fee_proportional_millionths = 5; } message ListpeerchannelsChannelsUpdatesRemote { - optional Amount htlc_minimum_msat = 1; - optional Amount htlc_maximum_msat = 2; - optional uint32 cltv_expiry_delta = 3; - optional Amount fee_base_msat = 4; - optional uint32 fee_proportional_millionths = 5; + Amount htlc_minimum_msat = 1; + Amount htlc_maximum_msat = 2; + uint32 cltv_expiry_delta = 3; + Amount fee_base_msat = 4; + uint32 fee_proportional_millionths = 5; } message ListpeerchannelsChannelsFeerate { - optional uint32 perkw = 1; - optional uint32 perkb = 2; + uint32 perkw = 1; + uint32 perkb = 2; } message ListpeerchannelsChannelsInflight { - optional bytes funding_txid = 1; - optional uint32 funding_outnum = 2; - optional string feerate = 3; - optional Amount total_funding_msat = 4; - optional Amount our_funding_msat = 5; + bytes funding_txid = 1; + uint32 funding_outnum = 2; + string feerate = 3; + Amount total_funding_msat = 4; + Amount our_funding_msat = 5; optional bytes scratch_txid = 6; optional sint64 splice_amount = 7; } message ListpeerchannelsChannelsFunding { optional Amount pushed_msat = 1; - optional Amount local_funds_msat = 2; - optional Amount remote_funds_msat = 3; + Amount local_funds_msat = 2; + Amount remote_funds_msat = 3; optional Amount fee_paid_msat = 4; optional Amount fee_rcvd_msat = 5; } @@ -1346,14 +1346,14 @@ message ListpeerchannelsChannelsHtlcs { IN = 0; OUT = 1; } - optional ListpeerchannelsChannelsHtlcsDirection direction = 1; - optional uint64 id = 2; - optional Amount amount_msat = 3; - optional uint32 expiry = 4; - optional bytes payment_hash = 5; + ListpeerchannelsChannelsHtlcsDirection direction = 1; + uint64 id = 2; + Amount amount_msat = 3; + uint32 expiry = 4; + bytes payment_hash = 5; optional bool local_trimmed = 6; optional string status = 7; - optional HtlcState state = 8; + HtlcState state = 8; } message ListclosedchannelsRequest { @@ -1696,9 +1696,9 @@ message FeeratesPerkb { } message FeeratesPerkbEstimates { - optional uint32 blockcount = 1; - optional uint32 feerate = 2; - optional uint32 smoothed_feerate = 3; + uint32 blockcount = 1; + uint32 feerate = 2; + uint32 smoothed_feerate = 3; } message FeeratesPerkw { @@ -1716,9 +1716,9 @@ message FeeratesPerkw { } message FeeratesPerkwEstimates { - optional uint32 blockcount = 1; - optional uint32 feerate = 2; - optional uint32 smoothed_feerate = 3; + uint32 blockcount = 1; + uint32 feerate = 2; + uint32 smoothed_feerate = 3; } message FeeratesOnchain_fee_estimates { @@ -2587,16 +2587,16 @@ message StopResponse { } message PreapprovekeysendRequest { - optional bytes destination = 1; - optional bytes payment_hash = 2; - optional Amount amount_msat = 3; + bytes destination = 1; + bytes payment_hash = 2; + Amount amount_msat = 3; } message PreapprovekeysendResponse { } message PreapproveinvoiceRequest { - optional string bolt11 = 1; + string bolt11 = 1; } message PreapproveinvoiceResponse { diff --git a/cln-grpc/src/convert.rs b/cln-grpc/src/convert.rs index 8bc153426042..2a48bb6ed5bb 100644 --- a/cln-grpc/src/convert.rs +++ b/cln-grpc/src/convert.rs @@ -463,8 +463,8 @@ impl From for pb::ConnectResponse { impl From for pb::CreateinvoicePaidOutpoint { fn from(c: responses::CreateinvoicePaid_outpoint) -> Self { Self { - outnum: c.outnum, // Rule #2 for type u32? - txid: c.txid.map(|v| hex::decode(v).unwrap()), // Rule #2 for type txid? + outnum: c.outnum, // Rule #2 for type u32 + txid: hex::decode(&c.txid).unwrap(), // Rule #2 for type txid } } } @@ -510,8 +510,8 @@ impl From for pb::DatastoreResponse { impl From for pb::DatastoreusageDatastoreusage { fn from(c: responses::DatastoreusageDatastoreusage) -> Self { Self { - key: c.key, // Rule #2 for type string? - total_bytes: c.total_bytes, // Rule #2 for type u64? + key: c.key, // Rule #2 for type string + total_bytes: c.total_bytes, // Rule #2 for type u64 } } } @@ -520,7 +520,7 @@ impl From for pb::DatastoreusageDatasto impl From for pb::DatastoreusageResponse { fn from(c: responses::DatastoreusageResponse) -> Self { Self { - datastoreusage: c.datastoreusage.map(|v| v.into()), + datastoreusage: Some(c.datastoreusage.into()), } } } @@ -618,8 +618,8 @@ impl From for pb::ListdatastoreResponse { impl From for pb::ListinvoicesInvoicesPaidOutpoint { fn from(c: responses::ListinvoicesInvoicesPaid_outpoint) -> Self { Self { - outnum: c.outnum, // Rule #2 for type u32? - txid: c.txid.map(|v| hex::decode(v).unwrap()), // Rule #2 for type txid? + outnum: c.outnum, // Rule #2 for type u32 + txid: hex::decode(&c.txid).unwrap(), // Rule #2 for type txid } } } @@ -840,8 +840,8 @@ impl From for pb::ListnodesResponse { impl From for pb::WaitanyinvoicePaidOutpoint { fn from(c: responses::WaitanyinvoicePaid_outpoint) -> Self { Self { - outnum: c.outnum, // Rule #2 for type u32? - txid: c.txid.map(|v| hex::decode(v).unwrap()), // Rule #2 for type txid? + outnum: c.outnum, // Rule #2 for type u32 + txid: hex::decode(&c.txid).unwrap(), // Rule #2 for type txid } } } @@ -873,8 +873,8 @@ impl From for pb::WaitanyinvoiceResponse { impl From for pb::WaitinvoicePaidOutpoint { fn from(c: responses::WaitinvoicePaid_outpoint) -> Self { Self { - outnum: c.outnum, // Rule #2 for type u32? - txid: c.txid.map(|v| hex::decode(v).unwrap()), // Rule #2 for type txid? + outnum: c.outnum, // Rule #2 for type u32 + txid: hex::decode(&c.txid).unwrap(), // Rule #2 for type txid } } } @@ -1085,8 +1085,8 @@ impl From for pb::ListpeerchannelsChan impl From for pb::ListpeerchannelsChannelsFeerate { fn from(c: responses::ListpeerchannelsChannelsFeerate) -> Self { Self { - perkb: c.perkb, // Rule #2 for type u32? - perkw: c.perkw, // Rule #2 for type u32? + perkb: c.perkb, // Rule #2 for type u32 + perkw: c.perkw, // Rule #2 for type u32 } } } @@ -1097,9 +1097,9 @@ impl From for pb::ListpeerchannelsCh Self { fee_paid_msat: c.fee_paid_msat.map(|f| f.into()), // Rule #2 for type msat? fee_rcvd_msat: c.fee_rcvd_msat.map(|f| f.into()), // Rule #2 for type msat? - local_funds_msat: c.local_funds_msat.map(|f| f.into()), // Rule #2 for type msat? + local_funds_msat: Some(c.local_funds_msat.into()), // Rule #2 for type msat pushed_msat: c.pushed_msat.map(|f| f.into()), // Rule #2 for type msat? - remote_funds_msat: c.remote_funds_msat.map(|f| f.into()), // Rule #2 for type msat? + remote_funds_msat: Some(c.remote_funds_msat.into()), // Rule #2 for type msat } } } @@ -1108,13 +1108,13 @@ impl From for pb::ListpeerchannelsCh impl From for pb::ListpeerchannelsChannelsHtlcs { fn from(c: responses::ListpeerchannelsChannelsHtlcs) -> Self { Self { - amount_msat: c.amount_msat.map(|f| f.into()), // Rule #2 for type msat? - direction: c.direction.map(|v| v as i32), - expiry: c.expiry, // Rule #2 for type u32? - id: c.id, // Rule #2 for type u64? + amount_msat: Some(c.amount_msat.into()), // Rule #2 for type msat + direction: c.direction as i32, + expiry: c.expiry, // Rule #2 for type u32 + id: c.id, // Rule #2 for type u64 local_trimmed: c.local_trimmed, // Rule #2 for type boolean? - payment_hash: c.payment_hash.map(|v| >::as_ref(&v).to_vec()), // Rule #2 for type hash? - state: c.state.map(|v| v as i32), + payment_hash: >::as_ref(&c.payment_hash).to_vec(), // Rule #2 for type hash + state: c.state as i32, status: c.status, // Rule #2 for type string? } } @@ -1124,13 +1124,13 @@ impl From for pb::ListpeerchannelsChan impl From for pb::ListpeerchannelsChannelsInflight { fn from(c: responses::ListpeerchannelsChannelsInflight) -> Self { Self { - feerate: c.feerate, // Rule #2 for type string? - funding_outnum: c.funding_outnum, // Rule #2 for type u32? - funding_txid: c.funding_txid.map(|v| hex::decode(v).unwrap()), // Rule #2 for type txid? - our_funding_msat: c.our_funding_msat.map(|f| f.into()), // Rule #2 for type msat? + feerate: c.feerate, // Rule #2 for type string + funding_outnum: c.funding_outnum, // Rule #2 for type u32 + funding_txid: hex::decode(&c.funding_txid).unwrap(), // Rule #2 for type txid + our_funding_msat: Some(c.our_funding_msat.into()), // Rule #2 for type msat scratch_txid: c.scratch_txid.map(|v| hex::decode(v).unwrap()), // Rule #2 for type txid? splice_amount: c.splice_amount, // Rule #2 for type integer? - total_funding_msat: c.total_funding_msat.map(|f| f.into()), // Rule #2 for type msat? + total_funding_msat: Some(c.total_funding_msat.into()), // Rule #2 for type msat } } } @@ -1139,11 +1139,11 @@ impl From for pb::ListpeerchannelsC impl From for pb::ListpeerchannelsChannelsUpdatesLocal { fn from(c: responses::ListpeerchannelsChannelsUpdatesLocal) -> Self { Self { - cltv_expiry_delta: c.cltv_expiry_delta, // Rule #2 for type u32? - fee_base_msat: c.fee_base_msat.map(|f| f.into()), // Rule #2 for type msat? - fee_proportional_millionths: c.fee_proportional_millionths, // Rule #2 for type u32? - htlc_maximum_msat: c.htlc_maximum_msat.map(|f| f.into()), // Rule #2 for type msat? - htlc_minimum_msat: c.htlc_minimum_msat.map(|f| f.into()), // Rule #2 for type msat? + cltv_expiry_delta: c.cltv_expiry_delta, // Rule #2 for type u32 + fee_base_msat: Some(c.fee_base_msat.into()), // Rule #2 for type msat + fee_proportional_millionths: c.fee_proportional_millionths, // Rule #2 for type u32 + htlc_maximum_msat: Some(c.htlc_maximum_msat.into()), // Rule #2 for type msat + htlc_minimum_msat: Some(c.htlc_minimum_msat.into()), // Rule #2 for type msat } } } @@ -1152,11 +1152,11 @@ impl From for pb::Listpeerchann impl From for pb::ListpeerchannelsChannelsUpdatesRemote { fn from(c: responses::ListpeerchannelsChannelsUpdatesRemote) -> Self { Self { - cltv_expiry_delta: c.cltv_expiry_delta, // Rule #2 for type u32? - fee_base_msat: c.fee_base_msat.map(|f| f.into()), // Rule #2 for type msat? - fee_proportional_millionths: c.fee_proportional_millionths, // Rule #2 for type u32? - htlc_maximum_msat: c.htlc_maximum_msat.map(|f| f.into()), // Rule #2 for type msat? - htlc_minimum_msat: c.htlc_minimum_msat.map(|f| f.into()), // Rule #2 for type msat? + cltv_expiry_delta: c.cltv_expiry_delta, // Rule #2 for type u32 + fee_base_msat: Some(c.fee_base_msat.into()), // Rule #2 for type msat + fee_proportional_millionths: c.fee_proportional_millionths, // Rule #2 for type u32 + htlc_maximum_msat: Some(c.htlc_maximum_msat.into()), // Rule #2 for type msat + htlc_minimum_msat: Some(c.htlc_minimum_msat.into()), // Rule #2 for type msat } } } @@ -1165,7 +1165,7 @@ impl From for pb::Listpeerchan impl From for pb::ListpeerchannelsChannelsUpdates { fn from(c: responses::ListpeerchannelsChannelsUpdates) -> Self { Self { - local: c.local.map(|v| v.into()), + local: Some(c.local.into()), remote: c.remote.map(|v| v.into()), } } @@ -1211,7 +1211,7 @@ impl From for pb::ListpeerchannelsChannels minimum_htlc_out_msat: c.minimum_htlc_out_msat.map(|f| f.into()), // Rule #2 for type msat? next_fee_step: c.next_fee_step, // Rule #2 for type u32? next_feerate: c.next_feerate, // Rule #2 for type string? - opener: c.opener.map(|v| v as i32), + opener: c.opener as i32, our_reserve_msat: c.our_reserve_msat.map(|f| f.into()), // Rule #2 for type msat? our_to_self_delay: c.our_to_self_delay, // Rule #2 for type u32? out_fulfilled_msat: c.out_fulfilled_msat.map(|f| f.into()), // Rule #2 for type msat? @@ -1219,15 +1219,15 @@ impl From for pb::ListpeerchannelsChannels out_payments_fulfilled: c.out_payments_fulfilled, // Rule #2 for type u64? out_payments_offered: c.out_payments_offered, // Rule #2 for type u64? owner: c.owner, // Rule #2 for type string? - peer_connected: c.peer_connected, // Rule #2 for type boolean? - peer_id: c.peer_id.map(|v| v.serialize().to_vec()), // Rule #2 for type pubkey? + peer_connected: c.peer_connected, // Rule #2 for type boolean + peer_id: c.peer_id.serialize().to_vec(), // Rule #2 for type pubkey private: c.private, // Rule #2 for type boolean? receivable_msat: c.receivable_msat.map(|f| f.into()), // Rule #2 for type msat? reestablished: c.reestablished, // Rule #2 for type boolean? scratch_txid: c.scratch_txid.map(|v| hex::decode(v).unwrap()), // Rule #2 for type txid? short_channel_id: c.short_channel_id.map(|v| v.to_string()), // Rule #2 for type short_channel_id? spendable_msat: c.spendable_msat.map(|f| f.into()), // Rule #2 for type msat? - state: c.state.map(|v| v as i32), + state: c.state as i32, // Field: ListPeerChannels.channels[].status[] status: c.status.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 their_reserve_msat: c.their_reserve_msat.map(|f| f.into()), // Rule #2 for type msat? @@ -1244,7 +1244,7 @@ impl From for pb::ListpeerchannelsResponse fn from(c: responses::ListpeerchannelsResponse) -> Self { Self { // Field: ListPeerChannels.channels[] - channels: c.channels.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + channels: c.channels.into_iter().map(|i| i.into()).collect(), // Rule #3 for type ListpeerchannelsChannels } } } @@ -1575,9 +1575,9 @@ impl From for pb::FeeratesOnchainFeeEs impl From for pb::FeeratesPerkbEstimates { fn from(c: responses::FeeratesPerkbEstimates) -> Self { Self { - blockcount: c.blockcount, // Rule #2 for type u32? - feerate: c.feerate, // Rule #2 for type u32? - smoothed_feerate: c.smoothed_feerate, // Rule #2 for type u32? + blockcount: c.blockcount, // Rule #2 for type u32 + feerate: c.feerate, // Rule #2 for type u32 + smoothed_feerate: c.smoothed_feerate, // Rule #2 for type u32 } } } @@ -1608,9 +1608,9 @@ impl From for pb::FeeratesPerkb { impl From for pb::FeeratesPerkwEstimates { fn from(c: responses::FeeratesPerkwEstimates) -> Self { Self { - blockcount: c.blockcount, // Rule #2 for type u32? - feerate: c.feerate, // Rule #2 for type u32? - smoothed_feerate: c.smoothed_feerate, // Rule #2 for type u32? + blockcount: c.blockcount, // Rule #2 for type u32 + feerate: c.feerate, // Rule #2 for type u32 + smoothed_feerate: c.smoothed_feerate, // Rule #2 for type u32 } } } @@ -1710,9 +1710,9 @@ impl From for pb::FundchannelChannelType { fn from(c: responses::FundchannelChannel_type) -> Self { Self { // Field: FundChannel.channel_type.bits[] - bits: c.bits.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + bits: c.bits.into_iter().map(|i| i.into()).collect(), // Rule #3 for type u32 // Field: FundChannel.channel_type.names[] - names: c.names.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + names: c.names.into_iter().map(|i| i.into()).collect(), // Rule #3 for type FundchannelChannel_typeNames } } } @@ -1737,9 +1737,9 @@ impl From for pb::FundchannelStartChan fn from(c: responses::Fundchannel_startChannel_type) -> Self { Self { // Field: FundChannel_Start.channel_type.bits[] - bits: c.bits.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + bits: c.bits.into_iter().map(|i| i.into()).collect(), // Rule #3 for type u32 // Field: FundChannel_Start.channel_type.names[] - names: c.names.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + names: c.names.into_iter().map(|i| i.into()).collect(), // Rule #3 for type Fundchannel_startChannel_typeNames } } } @@ -1929,9 +1929,9 @@ impl From for pb::Multifundc fn from(c: responses::MultifundchannelChannel_idsChannel_type) -> Self { Self { // Field: MultiFundChannel.channel_ids[].channel_type.bits[] - bits: c.bits.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + bits: c.bits.into_iter().map(|i| i.into()).collect(), // Rule #3 for type u32 // Field: MultiFundChannel.channel_ids[].channel_type.names[] - names: c.names.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + names: c.names.into_iter().map(|i| i.into()).collect(), // Rule #3 for type MultifundchannelChannel_idsChannel_typeNames } } } @@ -2015,9 +2015,9 @@ impl From for pb::OpenchannelBumpChanne fn from(c: responses::Openchannel_bumpChannel_type) -> Self { Self { // Field: OpenChannel_Bump.channel_type.bits[] - bits: c.bits.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + bits: c.bits.into_iter().map(|i| i.into()).collect(), // Rule #3 for type u32 // Field: OpenChannel_Bump.channel_type.names[] - names: c.names.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + names: c.names.into_iter().map(|i| i.into()).collect(), // Rule #3 for type Openchannel_bumpChannel_typeNames } } } @@ -2041,9 +2041,9 @@ impl From for pb::OpenchannelInitChanne fn from(c: responses::Openchannel_initChannel_type) -> Self { Self { // Field: OpenChannel_Init.channel_type.bits[] - bits: c.bits.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + bits: c.bits.into_iter().map(|i| i.into()).collect(), // Rule #3 for type u32 // Field: OpenChannel_Init.channel_type.names[] - names: c.names.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + names: c.names.into_iter().map(|i| i.into()).collect(), // Rule #3 for type Openchannel_initChannel_typeNames } } } @@ -2078,9 +2078,9 @@ impl From for pb::OpenchannelUpdateCh fn from(c: responses::Openchannel_updateChannel_type) -> Self { Self { // Field: OpenChannel_Update.channel_type.bits[] - bits: c.bits.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + bits: c.bits.into_iter().map(|i| i.into()).collect(), // Rule #3 for type u32 // Field: OpenChannel_Update.channel_type.names[] - names: c.names.map(|arr| arr.into_iter().map(|i| i.into()).collect()).unwrap_or(vec![]), // Rule #3 + names: c.names.into_iter().map(|i| i.into()).collect(), // Rule #3 for type Openchannel_updateChannel_typeNames } } } @@ -3758,9 +3758,9 @@ impl From for pb::StopRequest { impl From for pb::PreapprovekeysendRequest { fn from(c: requests::PreapprovekeysendRequest) -> Self { Self { - amount_msat: c.amount_msat.map(|f| f.into()), // Rule #2 for type msat? - destination: c.destination.map(|v| v.serialize().to_vec()), // Rule #2 for type pubkey? - payment_hash: c.payment_hash.map(|v| hex::decode(v).unwrap()), // Rule #2 for type hex? + amount_msat: Some(c.amount_msat.into()), // Rule #2 for type msat + destination: c.destination.serialize().to_vec(), // Rule #2 for type pubkey + payment_hash: hex::decode(&c.payment_hash).unwrap(), // Rule #2 for type hex } } } @@ -3769,7 +3769,7 @@ impl From for pb::PreapprovekeysendRequest { impl From for pb::PreapproveinvoiceRequest { fn from(c: requests::PreapproveinvoiceRequest) -> Self { Self { - bolt11: c.bolt11, // Rule #2 for type string? + bolt11: c.bolt11, // Rule #2 for type string } } } @@ -4924,9 +4924,9 @@ impl From for requests::StopRequest { impl From for requests::PreapprovekeysendRequest { fn from(c: pb::PreapprovekeysendRequest) -> Self { Self { - amount_msat: c.amount_msat.map(|a| a.into()), // Rule #1 for type msat? - destination: c.destination.map(|v| PublicKey::from_slice(&v).unwrap()), // Rule #1 for type pubkey? - payment_hash: c.payment_hash.map(|v| hex::encode(v)), // Rule #1 for type hex? + amount_msat: c.amount_msat.unwrap().into(), // Rule #1 for type msat + destination: PublicKey::from_slice(&c.destination).unwrap(), // Rule #1 for type pubkey + payment_hash: hex::encode(&c.payment_hash), // Rule #1 for type hex } } } @@ -4935,7 +4935,7 @@ impl From for requests::PreapprovekeysendRequest { impl From for requests::PreapproveinvoiceRequest { fn from(c: pb::PreapproveinvoiceRequest) -> Self { Self { - bolt11: c.bolt11, // Rule #1 for type string? + bolt11: c.bolt11, // Rule #1 for type string } } } diff --git a/cln-rpc/src/model.rs b/cln-rpc/src/model.rs index d304013d189d..d1ebfc57b23c 100644 --- a/cln-rpc/src/model.rs +++ b/cln-rpc/src/model.rs @@ -3214,12 +3214,9 @@ pub mod requests { } #[derive(Clone, Debug, Deserialize, Serialize)] pub struct PreapprovekeysendRequest { - #[serde(skip_serializing_if = "Option::is_none")] - pub amount_msat: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub destination: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub payment_hash: Option, + pub amount_msat: Amount, + pub destination: PublicKey, + pub payment_hash: String, } impl From for Request { @@ -3241,8 +3238,7 @@ pub mod requests { } #[derive(Clone, Debug, Deserialize, Serialize)] pub struct PreapproveinvoiceRequest { - #[serde(skip_serializing_if = "Option::is_none")] - pub bolt11: Option, + pub bolt11: String, } impl From for Request { @@ -4261,10 +4257,8 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct CreateinvoicePaid_outpoint { - #[serde(skip_serializing_if = "Option::is_none")] - pub outnum: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub txid: Option, + pub outnum: u32, + pub txid: String, } /// ['Whether it has been paid, or can no longer be paid.'] @@ -4367,16 +4361,13 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct DatastoreusageDatastoreusage { - #[serde(skip_serializing_if = "Option::is_none")] - pub key: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub total_bytes: Option, + pub key: String, + pub total_bytes: u64, } #[derive(Clone, Debug, Deserialize, Serialize)] pub struct DatastoreusageResponse { - #[serde(skip_serializing_if = "Option::is_none")] - pub datastoreusage: Option, + pub datastoreusage: DatastoreusageDatastoreusage, } impl TryFrom for DatastoreusageResponse { @@ -4566,10 +4557,8 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct ListinvoicesInvoicesPaid_outpoint { - #[serde(skip_serializing_if = "Option::is_none")] - pub outnum: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub txid: Option, + pub outnum: u32, + pub txid: String, } /// ["Whether it's paid, unpaid or unpayable."] @@ -5009,10 +4998,8 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct WaitanyinvoicePaid_outpoint { - #[serde(skip_serializing_if = "Option::is_none")] - pub outnum: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub txid: Option, + pub outnum: u32, + pub txid: String, } /// ["Whether it's paid or expired."] @@ -5087,10 +5074,8 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct WaitinvoicePaid_outpoint { - #[serde(skip_serializing_if = "Option::is_none")] - pub outnum: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub txid: Option, + pub outnum: u32, + pub txid: String, } /// ["Whether it's paid or expired."] @@ -5480,10 +5465,8 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct ListpeerchannelsChannelsFeerate { - #[serde(skip_serializing_if = "Option::is_none")] - pub perkb: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub perkw: Option, + pub perkb: u32, + pub perkw: u32, } #[derive(Clone, Debug, Deserialize, Serialize)] @@ -5493,11 +5476,92 @@ pub mod responses { #[serde(skip_serializing_if = "Option::is_none")] pub fee_rcvd_msat: Option, #[serde(skip_serializing_if = "Option::is_none")] - pub local_funds_msat: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub pushed_msat: Option, + pub local_funds_msat: Amount, + pub remote_funds_msat: Amount, + } + + #[derive(Clone, Debug, Deserialize, Serialize)] + pub struct ListpeerchannelsChannelsUpdatesRemote { + pub cltv_expiry_delta: u32, + pub fee_base_msat: Amount, + pub fee_proportional_millionths: u32, + pub htlc_maximum_msat: Amount, + pub htlc_minimum_msat: Amount, + } + + #[derive(Clone, Debug, Deserialize, Serialize)] + pub struct ListpeerchannelsChannelsUpdatesLocal { + pub cltv_expiry_delta: u32, + pub fee_base_msat: Amount, + pub fee_proportional_millionths: u32, + pub htlc_maximum_msat: Amount, + pub htlc_minimum_msat: Amount, + } + + #[derive(Clone, Debug, Deserialize, Serialize)] + pub struct ListpeerchannelsChannelsUpdates { #[serde(skip_serializing_if = "Option::is_none")] - pub remote_funds_msat: Option, + pub remote: Option, + pub local: ListpeerchannelsChannelsUpdatesLocal, + } + + /// ['Whether it came from peer, or is going to peer.'] + #[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, Eq)] + pub enum ListpeerchannelsChannelsHtlcsDirection { + #[serde(rename = "in")] + IN = 0, + #[serde(rename = "out")] + OUT = 1, + } + + impl TryFrom for ListpeerchannelsChannelsHtlcsDirection { + type Error = anyhow::Error; + fn try_from(c: i32) -> Result { + match c { + 0 => Ok(ListpeerchannelsChannelsHtlcsDirection::IN), + 1 => Ok(ListpeerchannelsChannelsHtlcsDirection::OUT), + o => Err(anyhow::anyhow!("Unknown variant {} for enum ListpeerchannelsChannelsHtlcsDirection", o)), + } + } + } + + impl ToString for ListpeerchannelsChannelsHtlcsDirection { + fn to_string(&self) -> String { + match self { + ListpeerchannelsChannelsHtlcsDirection::IN => "IN", + ListpeerchannelsChannelsHtlcsDirection::OUT => "OUT", + }.to_string() + } + } + + #[derive(Clone, Debug, Deserialize, Serialize)] + pub struct ListpeerchannelsChannelsHtlcs { + #[serde(skip_serializing_if = "Option::is_none")] + pub local_trimmed: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub status: Option, + // Path `ListPeerChannels.channels[].htlcs[].direction` + pub direction: ListpeerchannelsChannelsHtlcsDirection, + // Path `ListPeerChannels.channels[].htlcs[].state` + pub state: HtlcState, + pub amount_msat: Amount, + pub expiry: u32, + pub id: u64, + pub payment_hash: Sha256, + } + + #[derive(Clone, Debug, Deserialize, Serialize)] + pub struct ListpeerchannelsChannelsInflight { + #[serde(skip_serializing_if = "Option::is_none")] + pub scratch_txid: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub splice_amount: Option, + pub feerate: String, + pub funding_outnum: u32, + pub funding_txid: String, + pub our_funding_msat: Amount, + pub total_funding_msat: Amount, } /// ['The channel state, in particular `CHANNELD_NORMAL` means the channel can be used normally.'] @@ -5577,109 +5641,6 @@ pub mod responses { } } - #[derive(Clone, Debug, Deserialize, Serialize)] - pub struct ListpeerchannelsChannelsUpdatesLocal { - #[serde(skip_serializing_if = "Option::is_none")] - pub cltv_expiry_delta: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub fee_base_msat: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub fee_proportional_millionths: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub htlc_maximum_msat: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub htlc_minimum_msat: Option, - } - - #[derive(Clone, Debug, Deserialize, Serialize)] - pub struct ListpeerchannelsChannelsUpdatesRemote { - #[serde(skip_serializing_if = "Option::is_none")] - pub cltv_expiry_delta: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub fee_base_msat: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub fee_proportional_millionths: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub htlc_maximum_msat: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub htlc_minimum_msat: Option, - } - - #[derive(Clone, Debug, Deserialize, Serialize)] - pub struct ListpeerchannelsChannelsUpdates { - #[serde(skip_serializing_if = "Option::is_none")] - pub local: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub remote: Option, - } - - /// ['Whether it came from peer, or is going to peer.'] - #[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, Eq)] - pub enum ListpeerchannelsChannelsHtlcsDirection { - #[serde(rename = "in")] - IN = 0, - #[serde(rename = "out")] - OUT = 1, - } - - impl TryFrom for ListpeerchannelsChannelsHtlcsDirection { - type Error = anyhow::Error; - fn try_from(c: i32) -> Result { - match c { - 0 => Ok(ListpeerchannelsChannelsHtlcsDirection::IN), - 1 => Ok(ListpeerchannelsChannelsHtlcsDirection::OUT), - o => Err(anyhow::anyhow!("Unknown variant {} for enum ListpeerchannelsChannelsHtlcsDirection", o)), - } - } - } - - impl ToString for ListpeerchannelsChannelsHtlcsDirection { - fn to_string(&self) -> String { - match self { - ListpeerchannelsChannelsHtlcsDirection::IN => "IN", - ListpeerchannelsChannelsHtlcsDirection::OUT => "OUT", - }.to_string() - } - } - - #[derive(Clone, Debug, Deserialize, Serialize)] - pub struct ListpeerchannelsChannelsHtlcs { - #[serde(skip_serializing_if = "Option::is_none")] - pub amount_msat: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub direction: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub expiry: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub id: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub local_trimmed: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub payment_hash: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub state: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub status: Option, - } - - #[derive(Clone, Debug, Deserialize, Serialize)] - pub struct ListpeerchannelsChannelsInflight { - #[serde(skip_serializing_if = "Option::is_none")] - pub feerate: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub funding_outnum: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub funding_txid: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub our_funding_msat: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub scratch_txid: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub splice_amount: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub total_funding_msat: Option, - } - #[derive(Clone, Debug, Deserialize, Serialize)] pub struct ListpeerchannelsChannels { #[serde(skip_serializing_if = "Option::is_none")] @@ -5747,8 +5708,6 @@ pub mod responses { #[serde(skip_serializing_if = "Option::is_none")] pub next_feerate: Option, #[serde(skip_serializing_if = "Option::is_none")] - pub opener: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub our_reserve_msat: Option, #[serde(skip_serializing_if = "Option::is_none")] pub our_to_self_delay: Option, @@ -5763,10 +5722,6 @@ pub mod responses { #[serde(skip_serializing_if = "Option::is_none")] pub owner: Option, #[serde(skip_serializing_if = "Option::is_none")] - pub peer_connected: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub peer_id: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub private: Option, #[serde(skip_serializing_if = "Option::is_none")] pub receivable_msat: Option, @@ -5779,8 +5734,6 @@ pub mod responses { #[serde(skip_serializing_if = "Option::is_none")] pub spendable_msat: Option, #[serde(skip_serializing_if = "Option::is_none")] - pub state: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub their_reserve_msat: Option, #[serde(skip_serializing_if = "Option::is_none")] pub their_to_self_delay: Option, @@ -5796,12 +5749,17 @@ pub mod responses { pub inflight: Option>, #[serde(skip_serializing_if = "crate::is_none_or_empty")] pub status: Option>, + // Path `ListPeerChannels.channels[].opener` + pub opener: ChannelSide, + // Path `ListPeerChannels.channels[].state` + pub state: ListpeerchannelsChannelsState, + pub peer_connected: bool, + pub peer_id: PublicKey, } #[derive(Clone, Debug, Deserialize, Serialize)] pub struct ListpeerchannelsResponse { - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub channels: Option>, + pub channels: Vec, } impl TryFrom for ListpeerchannelsResponse { @@ -6461,12 +6419,9 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct FeeratesPerkbEstimates { - #[serde(skip_serializing_if = "Option::is_none")] - pub blockcount: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub feerate: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub smoothed_feerate: Option, + pub blockcount: u32, + pub feerate: u32, + pub smoothed_feerate: u32, } #[derive(Clone, Debug, Deserialize, Serialize)] @@ -6497,12 +6452,9 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct FeeratesPerkwEstimates { - #[serde(skip_serializing_if = "Option::is_none")] - pub blockcount: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub feerate: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub smoothed_feerate: Option, + pub blockcount: u32, + pub feerate: u32, + pub smoothed_feerate: u32, } #[derive(Clone, Debug, Deserialize, Serialize)] @@ -6631,10 +6583,8 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct FundchannelChannel_type { - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub bits: Option>, - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub names: Option>, + pub bits: Vec, + pub names: Vec, } #[derive(Clone, Debug, Deserialize, Serialize)] @@ -6664,10 +6614,8 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Fundchannel_startChannel_type { - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub bits: Option>, - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub names: Option>, + pub bits: Vec, + pub names: Vec, } #[derive(Clone, Debug, Deserialize, Serialize)] @@ -7166,10 +7114,8 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct MultifundchannelChannel_idsChannel_type { - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub bits: Option>, - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub names: Option>, + pub bits: Vec, + pub names: Vec, } #[derive(Clone, Debug, Deserialize, Serialize)] @@ -7246,10 +7192,8 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Openchannel_bumpChannel_type { - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub bits: Option>, - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub names: Option>, + pub bits: Vec, + pub names: Vec, } #[derive(Clone, Debug, Deserialize, Serialize)] @@ -7277,10 +7221,8 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Openchannel_initChannel_type { - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub bits: Option>, - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub names: Option>, + pub bits: Vec, + pub names: Vec, } #[derive(Clone, Debug, Deserialize, Serialize)] @@ -7326,10 +7268,8 @@ pub mod responses { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Openchannel_updateChannel_type { - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub bits: Option>, - #[serde(skip_serializing_if = "crate::is_none_or_empty")] - pub names: Option>, + pub bits: Vec, + pub names: Vec, } #[derive(Clone, Debug, Deserialize, Serialize)] diff --git a/cln-rpc/src/notifications.rs b/cln-rpc/src/notifications.rs index 17326dcbcdca..69aa974309b5 100644 --- a/cln-rpc/src/notifications.rs +++ b/cln-rpc/src/notifications.rs @@ -22,28 +22,22 @@ pub enum Notification { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct BlockAddedNotification { - #[serde(skip_serializing_if = "Option::is_none")] - pub hash: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub height: Option, + pub hash: Sha256, + pub height: u32, } #[derive(Clone, Debug, Deserialize, Serialize)] pub struct ChannelOpenFailedNotification { - #[serde(skip_serializing_if = "Option::is_none")] - pub channel_id: Option, + pub channel_id: Sha256, } #[derive(Clone, Debug, Deserialize, Serialize)] pub struct ChannelOpenedNotification { - #[serde(skip_serializing_if = "Option::is_none")] - pub channel_ready: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub funding_msat: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub funding_txid: Option, #[serde(skip_serializing_if = "Option::is_none")] pub id: Option, + pub channel_ready: bool, + pub funding_msat: Amount, + pub funding_txid: String, } #[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, Eq)] @@ -76,19 +70,15 @@ impl ToString for ConnectDirection { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct ConnectNotification { - #[serde(skip_serializing_if = "Option::is_none")] - pub address: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub direction: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub id: Option, + // Path `connect.direction` + pub direction: ConnectDirection, + pub address: String, + pub id: PublicKey, } #[derive(Clone, Debug, Deserialize, Serialize)] pub struct CustomMsgNotification { - #[serde(skip_serializing_if = "Option::is_none")] - pub payload: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub peer_id: Option, + pub payload: String, + pub peer_id: PublicKey, } diff --git a/cln-rpc/src/primitives.rs b/cln-rpc/src/primitives.rs index 015088a3b61c..fb1bd6c8540d 100644 --- a/cln-rpc/src/primitives.rs +++ b/cln-rpc/src/primitives.rs @@ -793,7 +793,7 @@ mod test { }); let p: FundchannelResponse = serde_json::from_value(r).unwrap(); - assert_eq!(p.channel_type.unwrap().bits, Some(vec![1, 3, 5])); + assert_eq!(p.channel_type.unwrap().bits, vec![1,3,5]); } } diff --git a/contrib/msggen/msggen/gen/rpc/notification.py b/contrib/msggen/msggen/gen/rpc/notification.py index 8cc8e466e832..a997cd6fc3a2 100644 --- a/contrib/msggen/msggen/gen/rpc/notification.py +++ b/contrib/msggen/msggen/gen/rpc/notification.py @@ -11,6 +11,7 @@ class NotificationGenerator(IGenerator): def __init__(self, dest: TextIO, meta: Dict[str, Any]): self.dest = dest + self.meta = meta self.logger = logging.getLogger(__name__) self.meta = meta diff --git a/contrib/msggen/msggen/patch.py b/contrib/msggen/msggen/patch.py index 5ae7171108b9..6f5c5aff2267 100644 --- a/contrib/msggen/msggen/patch.py +++ b/contrib/msggen/msggen/patch.py @@ -145,14 +145,24 @@ def visit(self, f: model.Field, parent: Optional[model.Field] = None) -> None: if not f.required: f.optional = True - added = self.version_to_number(f.added) - if added >= self.supported(): - f.optional = True - # Even if it's deprecated in future, reduce churn. if f.deprecated: f.optional = True + # Set to optional if support has been added recently + # This ensures generated code will run both on + # newer and older versions of core lightning + # + # There is an exception though. If the entire struct + # has been added we dont' treat subfields as optional + if parent is not None: + if parent.added == f.added: + return + + added = self.version_to_number(f.added) + if added >= self.supported(): + f.optional = True + class OverridePatch(Patch): """Allows omitting some fields and overriding the type of fields based on configuration.""" diff --git a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py index 9cf2759b97ab..333f3e1b092d 100644 --- a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py +++ b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py @@ -14,7 +14,7 @@ from pyln.grpc import primitives_pb2 as primitives__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nnode.proto\x12\x03\x63ln\x1a\x10primitives.proto\"\x10\n\x0eGetinfoRequest\"\xc1\x04\n\x0fGetinfoResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x61lias\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\r\n\x05\x63olor\x18\x03 \x01(\x0c\x12\x11\n\tnum_peers\x18\x04 \x01(\r\x12\x1c\n\x14num_pending_channels\x18\x05 \x01(\r\x12\x1b\n\x13num_active_channels\x18\x06 \x01(\r\x12\x1d\n\x15num_inactive_channels\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\t\x12\x15\n\rlightning_dir\x18\t \x01(\t\x12\x33\n\x0cour_features\x18\n \x01(\x0b\x32\x18.cln.GetinfoOur_featuresH\x01\x88\x01\x01\x12\x13\n\x0b\x62lockheight\x18\x0b \x01(\r\x12\x0f\n\x07network\x18\x0c \x01(\t\x12(\n\x13\x66\x65\x65s_collected_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x07\x61\x64\x64ress\x18\x0e \x03(\x0b\x32\x13.cln.GetinfoAddress\x12$\n\x07\x62inding\x18\x0f \x03(\x0b\x32\x13.cln.GetinfoBinding\x12\"\n\x15warning_bitcoind_sync\x18\x10 \x01(\tH\x02\x88\x01\x01\x12$\n\x17warning_lightningd_sync\x18\x11 \x01(\tH\x03\x88\x01\x01\x42\x08\n\x06_aliasB\x0f\n\r_our_featuresB\x18\n\x16_warning_bitcoind_syncB\x1a\n\x18_warning_lightningd_sync\"S\n\x13GetinfoOur_features\x12\x0c\n\x04init\x18\x01 \x01(\x0c\x12\x0c\n\x04node\x18\x02 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x03 \x01(\x0c\x12\x0f\n\x07invoice\x18\x04 \x01(\x0c\"\xc4\x01\n\x0eGetinfoAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoAddress.GetinfoAddressType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"G\n\x12GetinfoAddressType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"\xac\x02\n\x0eGetinfoBinding\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoBinding.GetinfoBindingType\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06socket\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x14\n\x07subtype\x18\x05 \x01(\tH\x03\x88\x01\x01\"_\n\x12GetinfoBindingType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x12\r\n\tWEBSOCKET\x10\x05\x42\n\n\x08_addressB\x07\n\x05_portB\t\n\x07_socketB\n\n\x08_subtype\"\xb5\x01\n\x10ListpeersRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x38\n\x05level\x18\x02 \x01(\x0e\x32$.cln.ListpeersRequest.ListpeersLevelH\x01\x88\x01\x01\"E\n\x0eListpeersLevel\x12\x06\n\x02IO\x10\x00\x12\t\n\x05\x44\x45\x42UG\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\x0b\n\x07UNUSUAL\x10\x03\x12\t\n\x05TRACE\x10\x04\x42\x05\n\x03_idB\x08\n\x06_level\"7\n\x11ListpeersResponse\x12\"\n\x05peers\x18\x01 \x03(\x0b\x32\x13.cln.ListpeersPeers\"\xdf\x01\n\x0eListpeersPeers\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x11\n\tconnected\x18\x02 \x01(\x08\x12#\n\x03log\x18\x03 \x03(\x0b\x32\x16.cln.ListpeersPeersLog\x12\x0f\n\x07netaddr\x18\x05 \x03(\t\x12\x15\n\x08\x66\x65\x61tures\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0bremote_addr\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cnum_channels\x18\x08 \x01(\rH\x02\x88\x01\x01\x42\x0b\n\t_featuresB\x0e\n\x0c_remote_addrB\x0f\n\r_num_channels\"\x88\x03\n\x11ListpeersPeersLog\x12?\n\titem_type\x18\x01 \x01(\x0e\x32,.cln.ListpeersPeersLog.ListpeersPeersLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"t\n\x15ListpeersPeersLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"0\n\x10ListfundsRequest\x12\x12\n\x05spent\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_spent\"e\n\x11ListfundsResponse\x12&\n\x07outputs\x18\x01 \x03(\x0b\x32\x15.cln.ListfundsOutputs\x12(\n\x08\x63hannels\x18\x02 \x03(\x0b\x32\x16.cln.ListfundsChannels\"\xb9\x03\n\x10ListfundsOutputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06output\x18\x02 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0cscriptpubkey\x18\x04 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0credeemscript\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12<\n\x06status\x18\x07 \x01(\x0e\x32,.cln.ListfundsOutputs.ListfundsOutputsStatus\x12\x18\n\x0b\x62lockheight\x18\x08 \x01(\rH\x02\x88\x01\x01\x12\x10\n\x08reserved\x18\t \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\n \x01(\rH\x03\x88\x01\x01\"Q\n\x16ListfundsOutputsStatus\x12\x0f\n\x0bUNCONFIRMED\x10\x00\x12\r\n\tCONFIRMED\x10\x01\x12\t\n\x05SPENT\x10\x02\x12\x0c\n\x08IMMATURE\x10\x03\x42\n\n\x08_addressB\x0f\n\r_redeemscriptB\x0e\n\x0c_blockheightB\x14\n\x12_reserved_to_block\"\xab\x02\n\x11ListfundsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12$\n\x0four_amount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x04 \x01(\x0c\x12\x16\n\x0e\x66unding_output\x18\x05 \x01(\r\x12\x11\n\tconnected\x18\x06 \x01(\x08\x12 \n\x05state\x18\x07 \x01(\x0e\x32\x11.cln.ChannelState\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x01\x88\x01\x01\x42\x13\n\x11_short_channel_idB\r\n\x0b_channel_id\"\xbb\x03\n\x0eSendpayRequest\x12 \n\x05route\x18\x01 \x03(\x0b\x32\x11.cln.SendpayRoute\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x13\n\x06partid\x18\x07 \x01(\x04H\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\t \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x0c \x01(\x0cH\x07\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x08\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_bolt11B\x11\n\x0f_payment_secretB\t\n\x07_partidB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x13\n\x11_payment_metadataB\x0e\n\x0c_description\"\xad\x05\n\x0fSendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x32\n\x06status\x18\x04 \x01(\x0e\x32\".cln.SendpayResponse.SendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x14\n\x07message\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\"*\n\rSendpayStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\\\n\x0cSendpayRoute\x12\n\n\x02id\x18\x02 \x01(\x0c\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\x12\x0f\n\x07\x63hannel\x18\x04 \x01(\t\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x01\n\x13ListchannelsRequest\x12\x1d\n\x10short_channel_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06source\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x42\x13\n\x11_short_channel_idB\t\n\x07_sourceB\x0e\n\x0c_destination\"C\n\x14ListchannelsResponse\x12+\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x19.cln.ListchannelsChannels\"\xb3\x03\n\x14ListchannelsChannels\x12\x0e\n\x06source\x18\x01 \x01(\x0c\x12\x13\n\x0b\x64\x65stination\x18\x02 \x01(\x0c\x12\x18\n\x10short_channel_id\x18\x03 \x01(\t\x12\x0e\n\x06public\x18\x04 \x01(\x08\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x15\n\rmessage_flags\x18\x06 \x01(\r\x12\x15\n\rchannel_flags\x18\x07 \x01(\r\x12\x0e\n\x06\x61\x63tive\x18\x08 \x01(\x08\x12\x13\n\x0blast_update\x18\t \x01(\r\x12\x1d\n\x15\x62\x61se_fee_millisatoshi\x18\n \x01(\r\x12\x19\n\x11\x66\x65\x65_per_millionth\x18\x0b \x01(\r\x12\r\n\x05\x64\x65lay\x18\x0c \x01(\r\x12&\n\x11htlc_minimum_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x11htlc_maximum_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x10\n\x08\x66\x65\x61tures\x18\x0f \x01(\x0c\x12\x11\n\tdirection\x18\x10 \x01(\rB\x14\n\x12_htlc_maximum_msat\"#\n\x10\x41\x64\x64gossipRequest\x12\x0f\n\x07message\x18\x01 \x01(\x0c\"\x13\n\x11\x41\x64\x64gossipResponse\"o\n\x17\x41utocleaninvoiceRequest\x12\x17\n\nexpired_by\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"\x81\x01\n\x18\x41utocleaninvoiceResponse\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x17\n\nexpired_by\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x03 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"O\n\x14\x41utocleanonceRequest\x12*\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystem\x12\x0b\n\x03\x61ge\x18\x02 \x01(\x04\"G\n\x15\x41utocleanonceResponse\x12.\n\tautoclean\x18\x01 \x01(\x0b\x32\x1b.cln.AutocleanonceAutoclean\"\xb1\x04\n\x16\x41utocleanonceAutoclean\x12L\n\x11succeededforwards\x18\x01 \x01(\x0b\x32,.cln.AutocleanonceAutocleanSucceededforwardsH\x00\x88\x01\x01\x12\x46\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32).cln.AutocleanonceAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x44\n\rsucceededpays\x18\x03 \x01(\x0b\x32(.cln.AutocleanonceAutocleanSucceededpaysH\x02\x88\x01\x01\x12>\n\nfailedpays\x18\x04 \x01(\x0b\x32%.cln.AutocleanonceAutocleanFailedpaysH\x03\x88\x01\x01\x12\x42\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32\'.cln.AutocleanonceAutocleanPaidinvoicesH\x04\x88\x01\x01\x12H\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32*.cln.AutocleanonceAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"M\n\'AutocleanonceAutocleanSucceededforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"J\n$AutocleanonceAutocleanFailedforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"I\n#AutocleanonceAutocleanSucceededpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"F\n AutocleanonceAutocleanFailedpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"H\n\"AutocleanonceAutocleanPaidinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"K\n%AutocleanonceAutocleanExpiredinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"W\n\x16\x41utocleanstatusRequest\x12/\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystemH\x00\x88\x01\x01\x42\x0c\n\n_subsystem\"K\n\x17\x41utocleanstatusResponse\x12\x30\n\tautoclean\x18\x01 \x01(\x0b\x32\x1d.cln.AutocleanstatusAutoclean\"\xbf\x04\n\x18\x41utocleanstatusAutoclean\x12N\n\x11succeededforwards\x18\x01 \x01(\x0b\x32..cln.AutocleanstatusAutocleanSucceededforwardsH\x00\x88\x01\x01\x12H\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32+.cln.AutocleanstatusAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x46\n\rsucceededpays\x18\x03 \x01(\x0b\x32*.cln.AutocleanstatusAutocleanSucceededpaysH\x02\x88\x01\x01\x12@\n\nfailedpays\x18\x04 \x01(\x0b\x32\'.cln.AutocleanstatusAutocleanFailedpaysH\x03\x88\x01\x01\x12\x44\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32).cln.AutocleanstatusAutocleanPaidinvoicesH\x04\x88\x01\x01\x12J\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32,.cln.AutocleanstatusAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"g\n)AutocleanstatusAutocleanSucceededforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"d\n&AutocleanstatusAutocleanFailedforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"c\n%AutocleanstatusAutocleanSucceededpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"`\n\"AutocleanstatusAutocleanFailedpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"b\n$AutocleanstatusAutocleanPaidinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"e\n\'AutocleanstatusAutocleanExpiredinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"U\n\x13\x43heckmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\r\n\x05zbase\x18\x02 \x01(\t\x12\x13\n\x06pubkey\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x42\t\n\x07_pubkey\"8\n\x14\x43heckmessageResponse\x12\x10\n\x08verified\x18\x01 \x01(\x08\x12\x0e\n\x06pubkey\x18\x02 \x01(\x0c\"\xcb\x02\n\x0c\x43loseRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x11unilateraltimeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x66\x65\x65_negotiation_step\x18\x04 \x01(\tH\x02\x88\x01\x01\x12)\n\rwrong_funding\x18\x05 \x01(\x0b\x32\r.cln.OutpointH\x03\x88\x01\x01\x12\x1f\n\x12\x66orce_lease_closed\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1e\n\x08\x66\x65\x65range\x18\x07 \x03(\x0b\x32\x0c.cln.FeerateB\x14\n\x12_unilateraltimeoutB\x0e\n\x0c_destinationB\x17\n\x15_fee_negotiation_stepB\x10\n\x0e_wrong_fundingB\x15\n\x13_force_lease_closed\"\xab\x01\n\rCloseResponse\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.CloseResponse.CloseType\x12\x0f\n\x02tx\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04txid\x18\x03 \x01(\x0cH\x01\x88\x01\x01\"5\n\tCloseType\x12\n\n\x06MUTUAL\x10\x00\x12\x0e\n\nUNILATERAL\x10\x01\x12\x0c\n\x08UNOPENED\x10\x02\x42\x05\n\x03_txB\x07\n\x05_txid\"T\n\x0e\x43onnectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04host\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x07\n\x05_hostB\x07\n\x05_port\"\xb4\x01\n\x0f\x43onnectResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0c\x12\x38\n\tdirection\x18\x03 \x01(\x0e\x32%.cln.ConnectResponse.ConnectDirection\x12$\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x13.cln.ConnectAddress\"#\n\x10\x43onnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\xfb\x01\n\x0e\x43onnectAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.ConnectAddress.ConnectAddressType\x12\x13\n\x06socket\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04port\x18\x04 \x01(\rH\x02\x88\x01\x01\"P\n\x12\x43onnectAddressType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\t\n\x07_socketB\n\n\x08_addressB\x07\n\x05_port\"J\n\x14\x43reateinvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x10\n\x08preimage\x18\x03 \x01(\x0c\"\xfe\x05\n\x15\x43reateinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12>\n\x06status\x18\x06 \x01(\x0e\x32..cln.CreateinvoiceResponse.CreateinvoiceStatus\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12;\n\rpaid_outpoint\x18\x11 \x01(\x0b\x32\x1f.cln.CreateinvoicePaid_outpointH\n\x88\x01\x01\"8\n\x13\x43reateinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_paid_outpoint\"X\n\x1a\x43reateinvoicePaid_outpoint\x12\x11\n\x04txid\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x13\n\x06outnum\x18\x02 \x01(\rH\x01\x88\x01\x01\x42\x07\n\x05_txidB\t\n\x07_outnum\"\xb4\x02\n\x10\x44\x61tastoreRequest\x12\x10\n\x03hex\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x36\n\x04mode\x18\x03 \x01(\x0e\x32#.cln.DatastoreRequest.DatastoreModeH\x01\x88\x01\x01\x12\x17\n\ngeneration\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\t\x12\x13\n\x06string\x18\x06 \x01(\tH\x03\x88\x01\x01\"p\n\rDatastoreMode\x12\x0f\n\x0bMUST_CREATE\x10\x00\x12\x10\n\x0cMUST_REPLACE\x10\x01\x12\x15\n\x11\x43REATE_OR_REPLACE\x10\x02\x12\x0f\n\x0bMUST_APPEND\x10\x03\x12\x14\n\x10\x43REATE_OR_APPEND\x10\x04\x42\x06\n\x04_hexB\x07\n\x05_modeB\r\n\x0b_generationB\t\n\x07_string\"\x82\x01\n\x11\x44\x61tastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"$\n\x15\x44\x61tastoreusageRequest\x12\x0b\n\x03key\x18\x01 \x03(\t\"k\n\x16\x44\x61tastoreusageResponse\x12>\n\x0e\x64\x61tastoreusage\x18\x01 \x01(\x0b\x32!.cln.DatastoreusageDatastoreusageH\x00\x88\x01\x01\x42\x11\n\x0f_datastoreusage\"b\n\x1c\x44\x61tastoreusageDatastoreusage\x12\x10\n\x03key\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0btotal_bytes\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\x06\n\x04_keyB\x0e\n\x0c_total_bytes\"\x9d\x01\n\x12\x43reateonionRequest\x12\"\n\x04hops\x18\x01 \x03(\x0b\x32\x14.cln.CreateonionHops\x12\x11\n\tassocdata\x18\x02 \x01(\x0c\x12\x18\n\x0bsession_key\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x17\n\nonion_size\x18\x04 \x01(\rH\x01\x88\x01\x01\x42\x0e\n\x0c_session_keyB\r\n\x0b_onion_size\"<\n\x13\x43reateonionResponse\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12\x16\n\x0eshared_secrets\x18\x02 \x03(\x0c\"2\n\x0f\x43reateonionHops\x12\x0e\n\x06pubkey\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\"J\n\x13\x44\x65ldatastoreRequest\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x03 \x03(\tB\r\n\x0b_generation\"\x85\x01\n\x14\x44\x65ldatastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xb6\x01\n\x11\x44\x65linvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\x12\x37\n\x06status\x18\x02 \x01(\x0e\x32\'.cln.DelinvoiceRequest.DelinvoiceStatus\x12\x15\n\x08\x64\x65sconly\x18\x03 \x01(\x08H\x00\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\x0b\n\t_desconly\"\xe6\x05\n\x12\x44\x65linvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x38\n\x06status\x18\x07 \x01(\x0e\x32(.cln.DelinvoiceResponse.DelinvoiceStatus\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x16\n\tpay_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\t\x88\x01\x01\x12\x14\n\x07paid_at\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"\xfa\x01\n\x0eInvoiceRequest\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tfallbacks\x18\x04 \x03(\t\x12\x15\n\x08preimage\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04\x63ltv\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18\x07 \x01(\x04H\x02\x88\x01\x01\x12\x19\n\x0c\x64\x65schashonly\x18\t \x01(\x08H\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x10.cln.AmountOrAnyB\x0b\n\t_preimageB\x07\n\x05_cltvB\t\n\x07_expiryB\x0f\n\r_deschashonly\"\x95\x03\n\x0fInvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x16\n\x0epayment_secret\x18\x03 \x01(\x0c\x12\x12\n\nexpires_at\x18\x04 \x01(\x04\x12\x1d\n\x10warning_capacity\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0fwarning_offline\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10warning_deadends\x18\x07 \x01(\tH\x02\x88\x01\x01\x12#\n\x16warning_private_unused\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x18\n\x0bwarning_mpp\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rcreated_index\x18\n \x01(\x04H\x05\x88\x01\x01\x42\x13\n\x11_warning_capacityB\x12\n\x10_warning_offlineB\x13\n\x11_warning_deadendsB\x19\n\x17_warning_private_unusedB\x0e\n\x0c_warning_mppB\x10\n\x0e_created_index\"#\n\x14ListdatastoreRequest\x12\x0b\n\x03key\x18\x02 \x03(\t\"G\n\x15ListdatastoreResponse\x12.\n\tdatastore\x18\x01 \x03(\x0b\x32\x1b.cln.ListdatastoreDatastore\"\x87\x01\n\x16ListdatastoreDatastore\x12\x0b\n\x03key\x18\x01 \x03(\t\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xde\x02\n\x13ListinvoicesRequest\x12\x12\n\x05label\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tinvstring\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08offer_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x12>\n\x05index\x18\x05 \x01(\x0e\x32*.cln.ListinvoicesRequest.ListinvoicesIndexH\x04\x88\x01\x01\x12\x12\n\x05start\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x12\n\x05limit\x18\x07 \x01(\rH\x06\x88\x01\x01\"-\n\x11ListinvoicesIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\x08\n\x06_labelB\x0c\n\n_invstringB\x0f\n\r_payment_hashB\x0b\n\t_offer_idB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListinvoicesResponse\x12+\n\x08invoices\x18\x01 \x03(\x0b\x32\x19.cln.ListinvoicesInvoices\"\xd4\x06\n\x14ListinvoicesInvoices\x12\r\n\x05label\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListinvoicesInvoices.ListinvoicesInvoicesStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x16\n\tpay_index\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x14\n\x07paid_at\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0e \x01(\x0cH\x08\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\x12\x42\n\rpaid_outpoint\x18\x12 \x01(\x0b\x32&.cln.ListinvoicesInvoicesPaid_outpointH\x0c\x88\x01\x01\"?\n\x1aListinvoicesInvoicesStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x11\n\x0f_local_offer_idB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"_\n!ListinvoicesInvoicesPaid_outpoint\x12\x11\n\x04txid\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x13\n\x06outnum\x18\x02 \x01(\rH\x01\x88\x01\x01\x42\x07\n\x05_txidB\t\n\x07_outnum\"\xb4\x03\n\x10SendonionRequest\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12*\n\tfirst_hop\x18\x02 \x01(\x0b\x32\x17.cln.SendonionFirst_hop\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\x05label\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0eshared_secrets\x18\x05 \x03(\x0c\x12\x13\n\x06partid\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\t \x01(\x0cH\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\x0b \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\x0e\n\x0c_destinationB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0e\n\x0c_description\"\xe7\x04\n\x11SendonionResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x36\n\x06status\x18\x03 \x01(\x0e\x32&.cln.SendonionResponse.SendonionStatus\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x06 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\n \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0b \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x07message\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x13\n\x06partid\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\",\n\x0fSendonionStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"Q\n\x12SendonionFirst_hop\x12\n\n\x02id\x18\x01 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\"\xa0\x03\n\x13ListsendpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12@\n\x06status\x18\x03 \x01(\x0e\x32+.cln.ListsendpaysRequest.ListsendpaysStatusH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListsendpaysRequest.ListsendpaysIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\";\n\x12ListsendpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"-\n\x11ListsendpaysIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_statusB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListsendpaysResponse\x12+\n\x08payments\x18\x01 \x03(\x0b\x32\x19.cln.ListsendpaysPayments\"\xfc\x05\n\x14ListsendpaysPayments\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0f\n\x07groupid\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListsendpaysPayments.ListsendpaysPaymentsStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\n \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x12\x13\n\x06partid\x18\x0f \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\n\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x12 \x01(\x04H\x0b\x88\x01\x01\"C\n\x1aListsendpaysPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0f\n\r_completed_at\"\x19\n\x17ListtransactionsRequest\"S\n\x18ListtransactionsResponse\x12\x37\n\x0ctransactions\x18\x01 \x03(\x0b\x32!.cln.ListtransactionsTransactions\"\xf8\x01\n\x1cListtransactionsTransactions\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\r\n\x05rawtx\x18\x02 \x01(\x0c\x12\x13\n\x0b\x62lockheight\x18\x03 \x01(\r\x12\x0f\n\x07txindex\x18\x04 \x01(\r\x12\x10\n\x08locktime\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\r\x12\x37\n\x06inputs\x18\t \x03(\x0b\x32\'.cln.ListtransactionsTransactionsInputs\x12\x39\n\x07outputs\x18\n \x03(\x0b\x32(.cln.ListtransactionsTransactionsOutputs\"S\n\"ListtransactionsTransactionsInputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\r\n\x05index\x18\x02 \x01(\r\x12\x10\n\x08sequence\x18\x03 \x01(\r\"l\n#ListtransactionsTransactionsOutputs\x12\r\n\x05index\x18\x01 \x01(\r\x12\x14\n\x0cscriptPubKey\x18\x03 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x04\n\nPayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x17\n\nriskfactor\x18\x08 \x01(\x01H\x05\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\n \x03(\t\x12 \n\x06maxfee\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0c \x01(\tH\x07\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0e \x01(\x0cH\t\x88\x01\x01\x12&\n\x0cpartial_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x42\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_riskfactorB\t\n\x07_maxfeeB\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0f\n\r_partial_msat\"\xfb\x02\n\x0bPayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12*\n\x06status\x18\t \x01(\x0e\x32\x1a.cln.PayResponse.PayStatus\"2\n\tPayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"*\n\x10ListnodesRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListnodesResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.cln.ListnodesNodes\"\xba\x02\n\x0eListnodesNodes\x12\x0e\n\x06nodeid\x18\x01 \x01(\x0c\x12\x1b\n\x0elast_timestamp\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x12\n\x05\x61lias\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x12\n\x05\x63olor\x18\x04 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x05 \x01(\x0cH\x03\x88\x01\x01\x12/\n\taddresses\x18\x06 \x03(\x0b\x32\x1c.cln.ListnodesNodesAddresses\x12\x42\n\x10option_will_fund\x18\x07 \x01(\x0b\x32#.cln.ListnodesNodesOption_will_fundH\x04\x88\x01\x01\x42\x11\n\x0f_last_timestampB\x08\n\x06_aliasB\x08\n\x06_colorB\x0b\n\t_featuresB\x13\n\x11_option_will_fund\"\xf4\x01\n\x1eListnodesNodesOption_will_fund\x12(\n\x13lease_fee_base_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x17\n\x0flease_fee_basis\x18\x02 \x01(\r\x12\x16\n\x0e\x66unding_weight\x18\x03 \x01(\r\x12.\n\x19\x63hannel_fee_max_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x30\n(channel_fee_max_proportional_thousandths\x18\x05 \x01(\r\x12\x15\n\rcompact_lease\x18\x06 \x01(\x0c\"\xe8\x01\n\x17ListnodesNodesAddresses\x12K\n\titem_type\x18\x01 \x01(\x0e\x32\x38.cln.ListnodesNodesAddresses.ListnodesNodesAddressesType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"P\n\x1bListnodesNodesAddressesType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"g\n\x15WaitanyinvoiceRequest\x12\x1a\n\rlastpay_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\x10\n\x0e_lastpay_indexB\n\n\x08_timeout\"\xbf\x05\n\x16WaitanyinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12@\n\x06status\x18\x04 \x01(\x0e\x32\x30.cln.WaitanyinvoiceResponse.WaitanyinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12<\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32 .cln.WaitanyinvoicePaid_outpointH\t\x88\x01\x01\"-\n\x14WaitanyinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"Y\n\x1bWaitanyinvoicePaid_outpoint\x12\x11\n\x04txid\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x13\n\x06outnum\x18\x02 \x01(\rH\x01\x88\x01\x01\x42\x07\n\x05_txidB\t\n\x07_outnum\"#\n\x12WaitinvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\"\xb0\x05\n\x13WaitinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitinvoiceResponse.WaitinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x39\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32\x1d.cln.WaitinvoicePaid_outpointH\t\x88\x01\x01\"*\n\x11WaitinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"V\n\x18WaitinvoicePaid_outpoint\x12\x11\n\x04txid\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x13\n\x06outnum\x18\x02 \x01(\rH\x01\x88\x01\x01\x42\x07\n\x05_txidB\t\n\x07_outnum\"\x8e\x01\n\x12WaitsendpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x13\n\x06partid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x02\x88\x01\x01\x42\t\n\x07_partidB\n\n\x08_timeoutB\n\n\x08_groupid\"\x8e\x05\n\x13WaitsendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitsendpayResponse.WaitsendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\"!\n\x11WaitsendpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\x97\x01\n\x0eNewaddrRequest\x12@\n\x0b\x61\x64\x64resstype\x18\x01 \x01(\x0e\x32&.cln.NewaddrRequest.NewaddrAddresstypeH\x00\x88\x01\x01\"3\n\x12NewaddrAddresstype\x12\n\n\x06\x42\x45\x43H32\x10\x00\x12\x07\n\x03\x41LL\x10\x02\x12\x08\n\x04P2TR\x10\x03\x42\x0e\n\x0c_addresstype\"M\n\x0fNewaddrResponse\x12\x13\n\x06\x62\x65\x63h32\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04p2tr\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\t\n\x07_bech32B\x07\n\x05_p2tr\"\xb9\x01\n\x0fWithdrawRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\t\x12!\n\x07satoshi\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\"\n\x07\x66\x65\x65rate\x18\x05 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_feerate\":\n\x10WithdrawResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0c\n\x04psbt\x18\x03 \x01(\t\"\x82\x03\n\x0eKeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12+\n\nroutehints\x18\x08 \x01(\x0b\x32\x12.cln.RoutehintListH\x05\x88\x01\x01\x12&\n\textratlvs\x18\t \x01(\x0b\x32\x0e.cln.TlvStreamH\x06\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_routehintsB\x0c\n\n_extratlvs\"\xf2\x02\n\x0fKeysendResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x32\n\x06status\x18\t \x01(\x0e\x32\".cln.KeysendResponse.KeysendStatus\"\x1d\n\rKeysendStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"\xa4\x03\n\x0f\x46undpsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x14\n\x07minconf\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\x08 \x01(\x08H\x04\x88\x01\x01\x12\x17\n\nnonwrapped\x18\t \x01(\x08H\x05\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x06\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\x13\n\x11_excess_as_changeB\r\n\x0b_nonwrappedB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10\x46undpsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.FundpsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14\x46undpsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"A\n\x0fSendpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\",\n\x10SendpsbtResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"1\n\x0fSignpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x10\n\x08signonly\x18\x02 \x03(\r\"\'\n\x10SignpsbtResponse\x12\x13\n\x0bsigned_psbt\x18\x01 \x01(\t\"\xa0\x03\n\x0fUtxopsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x00\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x02\x88\x01\x01\x12\x17\n\nreservedok\x18\x08 \x01(\x08H\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\t \x01(\x08H\x04\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\r\n\x0b_reservedokB\x13\n\x11_excess_as_changeB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10UtxopsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.UtxopsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14UtxopsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\" \n\x10TxdiscardRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"6\n\x11TxdiscardResponse\x12\x13\n\x0bunsigned_tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"\xa4\x01\n\x10TxprepareRequest\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12 \n\x07outputs\x18\x05 \x03(\x0b\x32\x0f.cln.OutputDescB\n\n\x08_feerateB\n\n\x08_minconf\"D\n\x11TxprepareResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x13\n\x0bunsigned_tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"\x1d\n\rTxsendRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"8\n\x0eTxsendResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"1\n\x17ListpeerchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"K\n\x18ListpeerchannelsResponse\x12/\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x1d.cln.ListpeerchannelsChannels\"\x9f\x1c\n\x18ListpeerchannelsChannels\x12\x14\n\x07peer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x1b\n\x0epeer_connected\x18\x02 \x01(\x08H\x01\x88\x01\x01\x12O\n\x05state\x18\x03 \x01(\x0e\x32;.cln.ListpeerchannelsChannels.ListpeerchannelsChannelsStateH\x02\x88\x01\x01\x12\x19\n\x0cscratch_txid\x18\x04 \x01(\x0cH\x03\x88\x01\x01\x12:\n\x07\x66\x65\x65rate\x18\x06 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFeerateH\x04\x88\x01\x01\x12\x12\n\x05owner\x18\x07 \x01(\tH\x05\x88\x01\x01\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x06\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x07\x88\x01\x01\x12\x19\n\x0c\x66unding_txid\x18\n \x01(\x0cH\x08\x88\x01\x01\x12\x1b\n\x0e\x66unding_outnum\x18\x0b \x01(\rH\t\x88\x01\x01\x12\x1c\n\x0finitial_feerate\x18\x0c \x01(\tH\n\x88\x01\x01\x12\x19\n\x0clast_feerate\x18\r \x01(\tH\x0b\x88\x01\x01\x12\x19\n\x0cnext_feerate\x18\x0e \x01(\tH\x0c\x88\x01\x01\x12\x1a\n\rnext_fee_step\x18\x0f \x01(\rH\r\x88\x01\x01\x12\x37\n\x08inflight\x18\x10 \x03(\x0b\x32%.cln.ListpeerchannelsChannelsInflight\x12\x15\n\x08\x63lose_to\x18\x11 \x01(\x0cH\x0e\x88\x01\x01\x12\x14\n\x07private\x18\x12 \x01(\x08H\x0f\x88\x01\x01\x12%\n\x06opener\x18\x13 \x01(\x0e\x32\x10.cln.ChannelSideH\x10\x88\x01\x01\x12%\n\x06\x63loser\x18\x14 \x01(\x0e\x32\x10.cln.ChannelSideH\x11\x88\x01\x01\x12:\n\x07\x66unding\x18\x16 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFundingH\x12\x88\x01\x01\x12$\n\nto_us_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x13\x88\x01\x01\x12(\n\x0emin_to_us_msat\x18\x18 \x01(\x0b\x32\x0b.cln.AmountH\x14\x88\x01\x01\x12(\n\x0emax_to_us_msat\x18\x19 \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12$\n\ntotal_msat\x18\x1a \x01(\x0b\x32\x0b.cln.AmountH\x16\x88\x01\x01\x12\'\n\rfee_base_msat\x18\x1b \x01(\x0b\x32\x0b.cln.AmountH\x17\x88\x01\x01\x12(\n\x1b\x66\x65\x65_proportional_millionths\x18\x1c \x01(\rH\x18\x88\x01\x01\x12)\n\x0f\x64ust_limit_msat\x18\x1d \x01(\x0b\x32\x0b.cln.AmountH\x19\x88\x01\x01\x12\x30\n\x16max_total_htlc_in_msat\x18\x1e \x01(\x0b\x32\x0b.cln.AmountH\x1a\x88\x01\x01\x12,\n\x12their_reserve_msat\x18\x1f \x01(\x0b\x32\x0b.cln.AmountH\x1b\x88\x01\x01\x12*\n\x10our_reserve_msat\x18 \x01(\x0b\x32\x0b.cln.AmountH\x1c\x88\x01\x01\x12(\n\x0espendable_msat\x18! \x01(\x0b\x32\x0b.cln.AmountH\x1d\x88\x01\x01\x12)\n\x0freceivable_msat\x18\" \x01(\x0b\x32\x0b.cln.AmountH\x1e\x88\x01\x01\x12.\n\x14minimum_htlc_in_msat\x18# \x01(\x0b\x32\x0b.cln.AmountH\x1f\x88\x01\x01\x12/\n\x15minimum_htlc_out_msat\x18$ \x01(\x0b\x32\x0b.cln.AmountH \x88\x01\x01\x12/\n\x15maximum_htlc_out_msat\x18% \x01(\x0b\x32\x0b.cln.AmountH!\x88\x01\x01\x12 \n\x13their_to_self_delay\x18& \x01(\rH\"\x88\x01\x01\x12\x1e\n\x11our_to_self_delay\x18\' \x01(\rH#\x88\x01\x01\x12\x1f\n\x12max_accepted_htlcs\x18( \x01(\rH$\x88\x01\x01\x12\x36\n\x05\x61lias\x18) \x01(\x0b\x32\".cln.ListpeerchannelsChannelsAliasH%\x88\x01\x01\x12\x0e\n\x06status\x18+ \x03(\t\x12 \n\x13in_payments_offered\x18, \x01(\x04H&\x88\x01\x01\x12)\n\x0fin_offered_msat\x18- \x01(\x0b\x32\x0b.cln.AmountH\'\x88\x01\x01\x12\"\n\x15in_payments_fulfilled\x18. \x01(\x04H(\x88\x01\x01\x12+\n\x11in_fulfilled_msat\x18/ \x01(\x0b\x32\x0b.cln.AmountH)\x88\x01\x01\x12!\n\x14out_payments_offered\x18\x30 \x01(\x04H*\x88\x01\x01\x12*\n\x10out_offered_msat\x18\x31 \x01(\x0b\x32\x0b.cln.AmountH+\x88\x01\x01\x12#\n\x16out_payments_fulfilled\x18\x32 \x01(\x04H,\x88\x01\x01\x12,\n\x12out_fulfilled_msat\x18\x33 \x01(\x0b\x32\x0b.cln.AmountH-\x88\x01\x01\x12\x31\n\x05htlcs\x18\x34 \x03(\x0b\x32\".cln.ListpeerchannelsChannelsHtlcs\x12\x1a\n\rclose_to_addr\x18\x35 \x01(\tH.\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\x36 \x01(\x08H/\x88\x01\x01\x12:\n\x07updates\x18\x37 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsUpdatesH0\x88\x01\x01\x12#\n\x16last_stable_connection\x18\x38 \x01(\x04H1\x88\x01\x01\x12\x17\n\nlost_state\x18\x39 \x01(\x08H2\x88\x01\x01\x12\x1a\n\rreestablished\x18: \x01(\x08H3\x88\x01\x01\x12*\n\x10last_tx_fee_msat\x18; \x01(\x0b\x32\x0b.cln.AmountH4\x88\x01\x01\x12\x16\n\tdirection\x18< \x01(\rH5\x88\x01\x01\"\x80\x03\n\x1dListpeerchannelsChannelsState\x12\x0c\n\x08OPENINGD\x10\x00\x12\x1c\n\x18\x43HANNELD_AWAITING_LOCKIN\x10\x01\x12\x13\n\x0f\x43HANNELD_NORMAL\x10\x02\x12\x1a\n\x16\x43HANNELD_SHUTTING_DOWN\x10\x03\x12\x18\n\x14\x43LOSINGD_SIGEXCHANGE\x10\x04\x12\x15\n\x11\x43LOSINGD_COMPLETE\x10\x05\x12\x17\n\x13\x41WAITING_UNILATERAL\x10\x06\x12\x16\n\x12\x46UNDING_SPEND_SEEN\x10\x07\x12\x0b\n\x07ONCHAIN\x10\x08\x12\x17\n\x13\x44UALOPEND_OPEN_INIT\x10\t\x12\x1d\n\x19\x44UALOPEND_AWAITING_LOCKIN\x10\n\x12\x1c\n\x18\x43HANNELD_AWAITING_SPLICE\x10\x0b\x12\x1c\n\x18\x44UALOPEND_OPEN_COMMITTED\x10\x0c\x12\x1f\n\x1b\x44UALOPEND_OPEN_COMMIT_READY\x10\rB\n\n\x08_peer_idB\x11\n\x0f_peer_connectedB\x08\n\x06_stateB\x0f\n\r_scratch_txidB\n\n\x08_feerateB\x08\n\x06_ownerB\x13\n\x11_short_channel_idB\r\n\x0b_channel_idB\x0f\n\r_funding_txidB\x11\n\x0f_funding_outnumB\x12\n\x10_initial_feerateB\x0f\n\r_last_feerateB\x0f\n\r_next_feerateB\x10\n\x0e_next_fee_stepB\x0b\n\t_close_toB\n\n\x08_privateB\t\n\x07_openerB\t\n\x07_closerB\n\n\x08_fundingB\r\n\x0b_to_us_msatB\x11\n\x0f_min_to_us_msatB\x11\n\x0f_max_to_us_msatB\r\n\x0b_total_msatB\x10\n\x0e_fee_base_msatB\x1e\n\x1c_fee_proportional_millionthsB\x12\n\x10_dust_limit_msatB\x19\n\x17_max_total_htlc_in_msatB\x15\n\x13_their_reserve_msatB\x13\n\x11_our_reserve_msatB\x11\n\x0f_spendable_msatB\x12\n\x10_receivable_msatB\x17\n\x15_minimum_htlc_in_msatB\x18\n\x16_minimum_htlc_out_msatB\x18\n\x16_maximum_htlc_out_msatB\x16\n\x14_their_to_self_delayB\x14\n\x12_our_to_self_delayB\x15\n\x13_max_accepted_htlcsB\x08\n\x06_aliasB\x16\n\x14_in_payments_offeredB\x12\n\x10_in_offered_msatB\x18\n\x16_in_payments_fulfilledB\x14\n\x12_in_fulfilled_msatB\x17\n\x15_out_payments_offeredB\x13\n\x11_out_offered_msatB\x19\n\x17_out_payments_fulfilledB\x15\n\x13_out_fulfilled_msatB\x10\n\x0e_close_to_addrB\x14\n\x12_ignore_fee_limitsB\n\n\x08_updatesB\x19\n\x17_last_stable_connectionB\r\n\x0b_lost_stateB\x10\n\x0e_reestablishedB\x13\n\x11_last_tx_fee_msatB\x0c\n\n_direction\"\xb6\x01\n\x1fListpeerchannelsChannelsUpdates\x12=\n\x05local\x18\x01 \x01(\x0b\x32).cln.ListpeerchannelsChannelsUpdatesLocalH\x00\x88\x01\x01\x12?\n\x06remote\x18\x02 \x01(\x0b\x32*.cln.ListpeerchannelsChannelsUpdatesRemoteH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"\xe7\x02\n$ListpeerchannelsChannelsUpdatesLocal\x12+\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12+\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x1e\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\rH\x02\x88\x01\x01\x12\'\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12(\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\rH\x04\x88\x01\x01\x42\x14\n\x12_htlc_minimum_msatB\x14\n\x12_htlc_maximum_msatB\x14\n\x12_cltv_expiry_deltaB\x10\n\x0e_fee_base_msatB\x1e\n\x1c_fee_proportional_millionths\"\xe8\x02\n%ListpeerchannelsChannelsUpdatesRemote\x12+\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12+\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x1e\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\rH\x02\x88\x01\x01\x12\'\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12(\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\rH\x04\x88\x01\x01\x42\x14\n\x12_htlc_minimum_msatB\x14\n\x12_htlc_maximum_msatB\x14\n\x12_cltv_expiry_deltaB\x10\n\x0e_fee_base_msatB\x1e\n\x1c_fee_proportional_millionths\"]\n\x1fListpeerchannelsChannelsFeerate\x12\x12\n\x05perkw\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x12\n\x05perkb\x18\x02 \x01(\rH\x01\x88\x01\x01\x42\x08\n\x06_perkwB\x08\n\x06_perkb\"\x80\x03\n ListpeerchannelsChannelsInflight\x12\x19\n\x0c\x66unding_txid\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x1b\n\x0e\x66unding_outnum\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x14\n\x07\x66\x65\x65rate\x18\x03 \x01(\tH\x02\x88\x01\x01\x12,\n\x12total_funding_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12*\n\x10our_funding_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x19\n\x0cscratch_txid\x18\x06 \x01(\x0cH\x05\x88\x01\x01\x12\x1a\n\rsplice_amount\x18\x07 \x01(\x12H\x06\x88\x01\x01\x42\x0f\n\r_funding_txidB\x11\n\x0f_funding_outnumB\n\n\x08_feerateB\x15\n\x13_total_funding_msatB\x13\n\x11_our_funding_msatB\x0f\n\r_scratch_txidB\x10\n\x0e_splice_amount\"\xd2\x02\n\x1fListpeerchannelsChannelsFunding\x12%\n\x0bpushed_msat\x18\x01 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12*\n\x10local_funds_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12+\n\x11remote_funds_msat\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\'\n\rfee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\'\n\rfee_rcvd_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x42\x0e\n\x0c_pushed_msatB\x13\n\x11_local_funds_msatB\x14\n\x12_remote_funds_msatB\x10\n\x0e_fee_paid_msatB\x10\n\x0e_fee_rcvd_msat\"]\n\x1dListpeerchannelsChannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"\xe2\x03\n\x1dListpeerchannelsChannelsHtlcs\x12\x61\n\tdirection\x18\x01 \x01(\x0e\x32I.cln.ListpeerchannelsChannelsHtlcs.ListpeerchannelsChannelsHtlcsDirectionH\x00\x88\x01\x01\x12\x0f\n\x02id\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18\x04 \x01(\rH\x03\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x05 \x01(\x0cH\x04\x88\x01\x01\x12\x1a\n\rlocal_trimmed\x18\x06 \x01(\x08H\x05\x88\x01\x01\x12\x13\n\x06status\x18\x07 \x01(\tH\x06\x88\x01\x01\x12\"\n\x05state\x18\x08 \x01(\x0e\x32\x0e.cln.HtlcStateH\x07\x88\x01\x01\"9\n&ListpeerchannelsChannelsHtlcsDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\x42\x0c\n\n_directionB\x05\n\x03_idB\x0e\n\x0c_amount_msatB\t\n\x07_expiryB\x0f\n\r_payment_hashB\x10\n\x0e_local_trimmedB\t\n\x07_statusB\x08\n\x06_state\"3\n\x19ListclosedchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"[\n\x1aListclosedchannelsResponse\x12=\n\x0e\x63losedchannels\x18\x01 \x03(\x0b\x32%.cln.ListclosedchannelsClosedchannels\"\xf2\t\n ListclosedchannelsClosedchannels\x12\x14\n\x07peer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x01\x88\x01\x01\x12>\n\x05\x61lias\x18\x04 \x01(\x0b\x32*.cln.ListclosedchannelsClosedchannelsAliasH\x02\x88\x01\x01\x12 \n\x06opener\x18\x05 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x06 \x01(\x0e\x32\x10.cln.ChannelSideH\x03\x88\x01\x01\x12\x0f\n\x07private\x18\x07 \x01(\x08\x12\x1f\n\x17total_local_commitments\x18\t \x01(\x04\x12 \n\x18total_remote_commitments\x18\n \x01(\x04\x12\x18\n\x10total_htlcs_sent\x18\x0b \x01(\x04\x12\x14\n\x0c\x66unding_txid\x18\x0c \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\r \x01(\r\x12\x0e\n\x06leased\x18\x0e \x01(\x08\x12/\n\x15\x66unding_fee_paid_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12/\n\x15\x66unding_fee_rcvd_msat\x18\x10 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12-\n\x13\x66unding_pushed_msat\x18\x11 \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1f\n\ntotal_msat\x18\x12 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x66inal_to_us_msat\x18\x13 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emin_to_us_msat\x18\x14 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emax_to_us_msat\x18\x15 \x01(\x0b\x32\x0b.cln.Amount\x12!\n\x14last_commitment_txid\x18\x16 \x01(\x0cH\x07\x88\x01\x01\x12\x32\n\x18last_commitment_fee_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x66\n\x0b\x63lose_cause\x18\x18 \x01(\x0e\x32Q.cln.ListclosedchannelsClosedchannels.ListclosedchannelsClosedchannelsClose_cause\x12#\n\x16last_stable_connection\x18\x19 \x01(\x04H\t\x88\x01\x01\"v\n+ListclosedchannelsClosedchannelsClose_cause\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05LOCAL\x10\x01\x12\x08\n\x04USER\x10\x02\x12\n\n\x06REMOTE\x10\x03\x12\x0c\n\x08PROTOCOL\x10\x04\x12\x0b\n\x07ONCHAIN\x10\x05\x42\n\n\x08_peer_idB\x13\n\x11_short_channel_idB\x08\n\x06_aliasB\t\n\x07_closerB\x18\n\x16_funding_fee_paid_msatB\x18\n\x16_funding_fee_rcvd_msatB\x16\n\x14_funding_pushed_msatB\x17\n\x15_last_commitment_txidB\x1b\n\x19_last_commitment_fee_msatB\x19\n\x17_last_stable_connection\"e\n%ListclosedchannelsClosedchannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"L\n\x10\x44\x65\x63odepayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\x8d\x04\n\x11\x44\x65\x63odepayResponse\x12\x10\n\x08\x63urrency\x18\x01 \x01(\t\x12\x12\n\ncreated_at\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\x04\x12\r\n\x05payee\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x11\n\tsignature\x18\x07 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x1d\n\x15min_final_cltv_expiry\x18\n \x01(\r\x12\x1b\n\x0epayment_secret\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\r \x01(\x0cH\x05\x88\x01\x01\x12*\n\tfallbacks\x18\x0e \x03(\x0b\x32\x17.cln.DecodepayFallbacks\x12\"\n\x05\x65xtra\x18\x10 \x03(\x0b\x32\x13.cln.DecodepayExtraB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x13\n\x11_description_hashB\x11\n\x0f_payment_secretB\x0b\n\t_featuresB\x13\n\x11_payment_metadata\"\xd0\x01\n\x12\x44\x65\x63odepayFallbacks\x12\x41\n\titem_type\x18\x01 \x01(\x0e\x32..cln.DecodepayFallbacks.DecodepayFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x0b\n\x03hex\x18\x03 \x01(\x0c\"N\n\x16\x44\x65\x63odepayFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42\x07\n\x05_addr\"+\n\x0e\x44\x65\x63odepayExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\"\x1f\n\rDecodeRequest\x12\x0e\n\x06string\x18\x01 \x01(\t\"\xb7#\n\x0e\x44\x65\x63odeResponse\x12\x31\n\titem_type\x18\x01 \x01(\x0e\x32\x1e.cln.DecodeResponse.DecodeType\x12\r\n\x05valid\x18\x02 \x01(\x08\x12\x15\n\x08offer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0coffer_chains\x18\x04 \x03(\x0c\x12\x1b\n\x0eoffer_metadata\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x1b\n\x0eoffer_currency\x18\x06 \x01(\tH\x02\x88\x01\x01\x12+\n\x1ewarning_unknown_offer_currency\x18\x07 \x01(\tH\x03\x88\x01\x01\x12 \n\x13\x63urrency_minor_unit\x18\x08 \x01(\rH\x04\x88\x01\x01\x12\x19\n\x0coffer_amount\x18\t \x01(\x04H\x05\x88\x01\x01\x12+\n\x11offer_amount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1e\n\x11offer_description\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0coffer_issuer\x18\x0c \x01(\tH\x08\x88\x01\x01\x12\x1b\n\x0eoffer_features\x18\r \x01(\x0cH\t\x88\x01\x01\x12\"\n\x15offer_absolute_expiry\x18\x0e \x01(\x04H\n\x88\x01\x01\x12\x1f\n\x12offer_quantity_max\x18\x0f \x01(\x04H\x0b\x88\x01\x01\x12+\n\x0boffer_paths\x18\x10 \x03(\x0b\x32\x16.cln.DecodeOffer_paths\x12\x1a\n\roffer_node_id\x18\x11 \x01(\x0cH\x0c\x88\x01\x01\x12*\n\x1dwarning_missing_offer_node_id\x18\x14 \x01(\tH\r\x88\x01\x01\x12.\n!warning_invalid_offer_description\x18\x15 \x01(\tH\x0e\x88\x01\x01\x12.\n!warning_missing_offer_description\x18\x16 \x01(\tH\x0f\x88\x01\x01\x12+\n\x1ewarning_invalid_offer_currency\x18\x17 \x01(\tH\x10\x88\x01\x01\x12)\n\x1cwarning_invalid_offer_issuer\x18\x18 \x01(\tH\x11\x88\x01\x01\x12\x1c\n\x0finvreq_metadata\x18\x19 \x01(\x0cH\x12\x88\x01\x01\x12\x1c\n\x0finvreq_payer_id\x18\x1a \x01(\x0cH\x13\x88\x01\x01\x12\x19\n\x0cinvreq_chain\x18\x1b \x01(\x0cH\x14\x88\x01\x01\x12,\n\x12invreq_amount_msat\x18\x1c \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x1c\n\x0finvreq_features\x18\x1d \x01(\x0cH\x16\x88\x01\x01\x12\x1c\n\x0finvreq_quantity\x18\x1e \x01(\x04H\x17\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x1f \x01(\tH\x18\x88\x01\x01\x12&\n\x19invreq_recurrence_counter\x18 \x01(\rH\x19\x88\x01\x01\x12$\n\x17invreq_recurrence_start\x18! \x01(\rH\x1a\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_metadata\x18# \x01(\tH\x1b\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_payer_id\x18$ \x01(\tH\x1c\x88\x01\x01\x12.\n!warning_invalid_invreq_payer_note\x18% \x01(\tH\x1d\x88\x01\x01\x12\x36\n)warning_missing_invoice_request_signature\x18& \x01(\tH\x1e\x88\x01\x01\x12\x36\n)warning_invalid_invoice_request_signature\x18\' \x01(\tH\x1f\x88\x01\x01\x12\x1f\n\x12invoice_created_at\x18) \x01(\x04H \x88\x01\x01\x12$\n\x17invoice_relative_expiry\x18* \x01(\rH!\x88\x01\x01\x12!\n\x14invoice_payment_hash\x18+ \x01(\x0cH\"\x88\x01\x01\x12-\n\x13invoice_amount_msat\x18, \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\x37\n\x11invoice_fallbacks\x18- \x03(\x0b\x32\x1c.cln.DecodeInvoice_fallbacks\x12\x1d\n\x10invoice_features\x18. \x01(\x0cH$\x88\x01\x01\x12\x1c\n\x0finvoice_node_id\x18/ \x01(\x0cH%\x88\x01\x01\x12(\n\x1binvoice_recurrence_basetime\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x1dwarning_missing_invoice_paths\x18\x32 \x01(\tH\'\x88\x01\x01\x12/\n\"warning_missing_invoice_blindedpay\x18\x33 \x01(\tH(\x88\x01\x01\x12/\n\"warning_missing_invoice_created_at\x18\x34 \x01(\tH)\x88\x01\x01\x12\x31\n$warning_missing_invoice_payment_hash\x18\x35 \x01(\tH*\x88\x01\x01\x12+\n\x1ewarning_missing_invoice_amount\x18\x36 \x01(\tH+\x88\x01\x01\x12\x38\n+warning_missing_invoice_recurrence_basetime\x18\x37 \x01(\tH,\x88\x01\x01\x12,\n\x1fwarning_missing_invoice_node_id\x18\x38 \x01(\tH-\x88\x01\x01\x12.\n!warning_missing_invoice_signature\x18\x39 \x01(\tH.\x88\x01\x01\x12.\n!warning_invalid_invoice_signature\x18: \x01(\tH/\x88\x01\x01\x12\'\n\tfallbacks\x18; \x03(\x0b\x32\x14.cln.DecodeFallbacks\x12\x17\n\ncreated_at\x18< \x01(\x04H0\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18= \x01(\x04H1\x88\x01\x01\x12\x12\n\x05payee\x18> \x01(\x0cH2\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18? \x01(\x0cH3\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18@ \x01(\x0cH4\x88\x01\x01\x12\"\n\x15min_final_cltv_expiry\x18\x41 \x01(\rH5\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x42 \x01(\x0cH6\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x43 \x01(\x0cH7\x88\x01\x01\x12\x1f\n\x05\x65xtra\x18\x45 \x03(\x0b\x32\x10.cln.DecodeExtra\x12\x16\n\tunique_id\x18\x46 \x01(\tH8\x88\x01\x01\x12\x14\n\x07version\x18G \x01(\tH9\x88\x01\x01\x12\x13\n\x06string\x18H \x01(\tH:\x88\x01\x01\x12-\n\x0crestrictions\x18I \x03(\x0b\x32\x17.cln.DecodeRestrictions\x12&\n\x19warning_rune_invalid_utf8\x18J \x01(\tH;\x88\x01\x01\x12\x10\n\x03hex\x18K \x01(\x0cH<\x88\x01\x01\x12\x16\n\tdecrypted\x18L \x01(\x0cH=\x88\x01\x01\x12\x16\n\tsignature\x18M \x01(\tH>\x88\x01\x01\x12\x15\n\x08\x63urrency\x18N \x01(\tH?\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18O \x01(\x0b\x32\x0b.cln.AmountH@\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18P \x01(\tHA\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18Q \x01(\x0cHB\x88\x01\x01\"\x83\x01\n\nDecodeType\x12\x10\n\x0c\x42OLT12_OFFER\x10\x00\x12\x12\n\x0e\x42OLT12_INVOICE\x10\x01\x12\x1a\n\x16\x42OLT12_INVOICE_REQUEST\x10\x02\x12\x12\n\x0e\x42OLT11_INVOICE\x10\x03\x12\x08\n\x04RUNE\x10\x04\x12\x15\n\x11\x45MERGENCY_RECOVER\x10\x05\x42\x0b\n\t_offer_idB\x11\n\x0f_offer_metadataB\x11\n\x0f_offer_currencyB!\n\x1f_warning_unknown_offer_currencyB\x16\n\x14_currency_minor_unitB\x0f\n\r_offer_amountB\x14\n\x12_offer_amount_msatB\x14\n\x12_offer_descriptionB\x0f\n\r_offer_issuerB\x11\n\x0f_offer_featuresB\x18\n\x16_offer_absolute_expiryB\x15\n\x13_offer_quantity_maxB\x10\n\x0e_offer_node_idB \n\x1e_warning_missing_offer_node_idB$\n\"_warning_invalid_offer_descriptionB$\n\"_warning_missing_offer_descriptionB!\n\x1f_warning_invalid_offer_currencyB\x1f\n\x1d_warning_invalid_offer_issuerB\x12\n\x10_invreq_metadataB\x12\n\x10_invreq_payer_idB\x0f\n\r_invreq_chainB\x15\n\x13_invreq_amount_msatB\x12\n\x10_invreq_featuresB\x12\n\x10_invreq_quantityB\x14\n\x12_invreq_payer_noteB\x1c\n\x1a_invreq_recurrence_counterB\x1a\n\x18_invreq_recurrence_startB\"\n _warning_missing_invreq_metadataB\"\n _warning_missing_invreq_payer_idB$\n\"_warning_invalid_invreq_payer_noteB,\n*_warning_missing_invoice_request_signatureB,\n*_warning_invalid_invoice_request_signatureB\x15\n\x13_invoice_created_atB\x1a\n\x18_invoice_relative_expiryB\x17\n\x15_invoice_payment_hashB\x16\n\x14_invoice_amount_msatB\x13\n\x11_invoice_featuresB\x12\n\x10_invoice_node_idB\x1e\n\x1c_invoice_recurrence_basetimeB \n\x1e_warning_missing_invoice_pathsB%\n#_warning_missing_invoice_blindedpayB%\n#_warning_missing_invoice_created_atB\'\n%_warning_missing_invoice_payment_hashB!\n\x1f_warning_missing_invoice_amountB.\n,_warning_missing_invoice_recurrence_basetimeB\"\n _warning_missing_invoice_node_idB$\n\"_warning_missing_invoice_signatureB$\n\"_warning_invalid_invoice_signatureB\r\n\x0b_created_atB\t\n\x07_expiryB\x08\n\x06_payeeB\x0f\n\r_payment_hashB\x13\n\x11_description_hashB\x18\n\x16_min_final_cltv_expiryB\x11\n\x0f_payment_secretB\x13\n\x11_payment_metadataB\x0c\n\n_unique_idB\n\n\x08_versionB\t\n\x07_stringB\x1c\n\x1a_warning_rune_invalid_utf8B\x06\n\x04_hexB\x0c\n\n_decryptedB\x0c\n\n_signatureB\x0b\n\t_currencyB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x0b\n\t_features\"\xab\x01\n\x11\x44\x65\x63odeOffer_paths\x12\x1a\n\rfirst_node_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\x1b\n\x0e\x66irst_scid_dir\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x17\n\nfirst_scid\x18\x05 \x01(\tH\x02\x88\x01\x01\x42\x10\n\x0e_first_node_idB\x11\n\x0f_first_scid_dirB\r\n\x0b_first_scid\"\x8a\x01\n\x1f\x44\x65\x63odeOffer_recurrencePaywindow\x12\x16\n\x0eseconds_before\x18\x01 \x01(\r\x12\x15\n\rseconds_after\x18\x02 \x01(\r\x12 \n\x13proportional_amount\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\x16\n\x14_proportional_amount\"T\n\x17\x44\x65\x63odeInvoice_pathsPath\x12\x17\n\x0f\x62linded_node_id\x18\x01 \x01(\x0c\x12 \n\x18\x65ncrypted_recipient_data\x18\x02 \x01(\x0c\"Y\n\x17\x44\x65\x63odeInvoice_fallbacks\x12\x0f\n\x07version\x18\x01 \x01(\r\x12\x0b\n\x03hex\x18\x02 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_address\"\xaa\x02\n\x0f\x44\x65\x63odeFallbacks\x12\x36\n)warning_invoice_fallbacks_version_invalid\x18\x01 \x01(\tH\x00\x88\x01\x01\x12;\n\titem_type\x18\x02 \x01(\x0e\x32(.cln.DecodeFallbacks.DecodeFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0b\n\x03hex\x18\x04 \x01(\x0c\"K\n\x13\x44\x65\x63odeFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42,\n*_warning_invoice_fallbacks_version_invalidB\x07\n\x05_addr\"(\n\x0b\x44\x65\x63odeExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\";\n\x12\x44\x65\x63odeRestrictions\x12\x14\n\x0c\x61lternatives\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\"\xc2\x01\n\rDelpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12/\n\x06status\x18\x02 \x01(\x0e\x32\x1f.cln.DelpayRequest.DelpayStatus\x12\x13\n\x06partid\x18\x03 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x01\x88\x01\x01\"(\n\x0c\x44\x65lpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x42\t\n\x07_partidB\n\n\x08_groupid\"7\n\x0e\x44\x65lpayResponse\x12%\n\x08payments\x18\x01 \x03(\x0b\x32\x13.cln.DelpayPayments\"\xcb\x05\n\x0e\x44\x65lpayPayments\x12\x1a\n\rcreated_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x38\n\x06status\x18\x04 \x01(\x0e\x32(.cln.DelpayPayments.DelpayPaymentsStatus\x12%\n\x10\x61mount_sent_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x07 \x01(\x0cH\x02\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x12\n\ncreated_at\x18\t \x01(\x04\x12\x1a\n\rupdated_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x12\n\x05label\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x10 \x01(\tH\n\x88\x01\x01\x12\x17\n\nerroronion\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"=\n\x14\x44\x65lpayPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x10\n\x0e_created_indexB\t\n\x07_partidB\x0e\n\x0c_destinationB\x0e\n\x0c_amount_msatB\x10\n\x0e_updated_indexB\x0f\n\r_completed_atB\n\n\x08_groupidB\x13\n\x11_payment_preimageB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\r\n\x0b_erroronion\"\xb3\x01\n\x11\x44\x65lforwardRequest\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x12\n\nin_htlc_id\x18\x02 \x01(\x04\x12\x37\n\x06status\x18\x03 \x01(\x0e\x32\'.cln.DelforwardRequest.DelforwardStatus\"=\n\x10\x44\x65lforwardStatus\x12\x0b\n\x07SETTLED\x10\x00\x12\x10\n\x0cLOCAL_FAILED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"\x14\n\x12\x44\x65lforwardResponse\"\'\n\x13\x44isableofferRequest\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\"\x88\x01\n\x14\x44isableofferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"=\n\x11\x44isconnectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_force\"\x14\n\x12\x44isconnectResponse\"k\n\x0f\x46\x65\x65ratesRequest\x12\x31\n\x05style\x18\x01 \x01(\x0e\x32\".cln.FeeratesRequest.FeeratesStyle\"%\n\rFeeratesStyle\x12\t\n\x05PERKB\x10\x00\x12\t\n\x05PERKW\x10\x01\"\x9c\x02\n\x10\x46\x65\x65ratesResponse\x12%\n\x18warning_missing_feerates\x18\x01 \x01(\tH\x00\x88\x01\x01\x12&\n\x05perkb\x18\x02 \x01(\x0b\x32\x12.cln.FeeratesPerkbH\x01\x88\x01\x01\x12&\n\x05perkw\x18\x03 \x01(\x0b\x32\x12.cln.FeeratesPerkwH\x02\x88\x01\x01\x12\x46\n\x15onchain_fee_estimates\x18\x04 \x01(\x0b\x32\".cln.FeeratesOnchain_fee_estimatesH\x03\x88\x01\x01\x42\x1b\n\x19_warning_missing_feeratesB\x08\n\x06_perkbB\x08\n\x06_perkwB\x18\n\x16_onchain_fee_estimates\"\xd3\x03\n\rFeeratesPerkb\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkbEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"\x96\x01\n\x16\x46\x65\x65ratesPerkbEstimates\x12\x17\n\nblockcount\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x14\n\x07\x66\x65\x65rate\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10smoothed_feerate\x18\x03 \x01(\rH\x02\x88\x01\x01\x42\r\n\x0b_blockcountB\n\n\x08_feerateB\x13\n\x11_smoothed_feerate\"\xd3\x03\n\rFeeratesPerkw\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkwEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"\x96\x01\n\x16\x46\x65\x65ratesPerkwEstimates\x12\x17\n\nblockcount\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x14\n\x07\x66\x65\x65rate\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10smoothed_feerate\x18\x03 \x01(\rH\x02\x88\x01\x01\x42\r\n\x0b_blockcountB\n\n\x08_feerateB\x13\n\x11_smoothed_feerate\"\x9b\x02\n\x1d\x46\x65\x65ratesOnchain_fee_estimates\x12 \n\x18opening_channel_satoshis\x18\x01 \x01(\x04\x12\x1d\n\x15mutual_close_satoshis\x18\x02 \x01(\x04\x12!\n\x19unilateral_close_satoshis\x18\x03 \x01(\x04\x12\x1d\n\x15htlc_timeout_satoshis\x18\x04 \x01(\x04\x12\x1d\n\x15htlc_success_satoshis\x18\x05 \x01(\x04\x12\x30\n#unilateral_close_nonanchor_satoshis\x18\x06 \x01(\x04H\x00\x88\x01\x01\x42&\n$_unilateral_close_nonanchor_satoshis\"\xe9\x02\n\x13\x46\x65tchinvoiceRequest\x12\r\n\x05offer\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x15\n\x08quantity\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x1f\n\x12recurrence_counter\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x1d\n\x10recurrence_start\x18\x05 \x01(\x01H\x03\x88\x01\x01\x12\x1d\n\x10recurrence_label\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x14\n\x07timeout\x18\x07 \x01(\x01H\x05\x88\x01\x01\x12\x17\n\npayer_note\x18\x08 \x01(\tH\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\x0b\n\t_quantityB\x15\n\x13_recurrence_counterB\x13\n\x11_recurrence_startB\x13\n\x11_recurrence_labelB\n\n\x08_timeoutB\r\n\x0b_payer_note\"\x9a\x01\n\x14\x46\x65tchinvoiceResponse\x12\x0f\n\x07invoice\x18\x01 \x01(\t\x12)\n\x07\x63hanges\x18\x02 \x01(\x0b\x32\x18.cln.FetchinvoiceChanges\x12\x36\n\x0bnext_period\x18\x03 \x01(\x0b\x32\x1c.cln.FetchinvoiceNext_periodH\x00\x88\x01\x01\x42\x0e\n\x0c_next_period\"\x82\x02\n\x13\x46\x65tchinvoiceChanges\x12!\n\x14\x64\x65scription_appended\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0evendor_removed\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06vendor\x18\x04 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x42\x17\n\x15_description_appendedB\x0e\n\x0c_descriptionB\x11\n\x0f_vendor_removedB\t\n\x07_vendorB\x0e\n\x0c_amount_msat\"~\n\x17\x46\x65tchinvoiceNext_period\x12\x0f\n\x07\x63ounter\x18\x01 \x01(\x04\x12\x11\n\tstarttime\x18\x02 \x01(\x04\x12\x0f\n\x07\x65ndtime\x18\x03 \x01(\x04\x12\x17\n\x0fpaywindow_start\x18\x04 \x01(\x04\x12\x15\n\rpaywindow_end\x18\x05 \x01(\x04\"\'\n\x19\x46undchannel_cancelRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\"/\n\x1a\x46undchannel_cancelResponse\x12\x11\n\tcancelled\x18\x01 \x01(\t\"7\n\x1b\x46undchannel_completeRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"O\n\x1c\x46undchannel_completeResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"\xfb\x03\n\x12\x46undchannelRequest\x12 \n\x06\x61mount\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12#\n\tpush_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\tH\x05\x88\x01\x01\x12\n\n\x02id\x18\t \x01(\x0c\x12\x14\n\x07minconf\x18\n \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x05utxos\x18\x0b \x03(\x0b\x32\r.cln.Outpoint\x12\x15\n\x08mindepth\x18\x0c \x01(\rH\x07\x88\x01\x01\x12!\n\x07reserve\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\x0e \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\n\n\x08_minconfB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xe5\x01\n\x13\x46undchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0e\n\x06outnum\x18\x03 \x01(\r\x12\x12\n\nchannel_id\x18\x04 \x01(\x0c\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x37\n\x0c\x63hannel_type\x18\x07 \x01(\x0b\x32\x1c.cln.FundchannelChannel_typeH\x02\x88\x01\x01\x42\x0b\n\t_close_toB\x0b\n\t_mindepthB\x0f\n\r_channel_type\"L\n\x17\x46undchannelChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xd7\x02\n\x18\x46undchannel_startRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x1b\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\x07\x66\x65\x65rate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12#\n\tpush_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x15\n\x08mindepth\x18\x07 \x01(\rH\x04\x88\x01\x01\x12!\n\x07reserve\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0c\n\n_push_msatB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xf9\x01\n\x19\x46undchannel_startResponse\x12\x17\n\x0f\x66unding_address\x18\x01 \x01(\t\x12\x14\n\x0cscriptpubkey\x18\x02 \x01(\x0c\x12=\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32\".cln.Fundchannel_startChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x04 \x01(\x0cH\x01\x88\x01\x01\x12\x15\n\rwarning_usage\x18\x05 \x01(\t\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x0b\n\t_mindepth\"R\n\x1d\x46undchannel_startChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x9d\x01\n\rGetlogRequest\x12\x32\n\x05level\x18\x01 \x01(\x0e\x32\x1e.cln.GetlogRequest.GetlogLevelH\x00\x88\x01\x01\"N\n\x0bGetlogLevel\x12\n\n\x06\x42ROKEN\x10\x00\x12\x0b\n\x07UNUSUAL\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x06\n\x02IO\x10\x04\x12\t\n\x05TRACE\x10\x05\x42\x08\n\x06_level\"h\n\x0eGetlogResponse\x12\x12\n\ncreated_at\x18\x01 \x01(\t\x12\x12\n\nbytes_used\x18\x02 \x01(\r\x12\x11\n\tbytes_max\x18\x03 \x01(\r\x12\x1b\n\x03log\x18\x04 \x03(\x0b\x32\x0e.cln.GetlogLog\"\xe8\x02\n\tGetlogLog\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.GetlogLog.GetlogLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"l\n\rGetlogLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"\xec\x01\n\x0fGetrouteRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\nriskfactor\x18\x03 \x01(\x04\x12\x11\n\x04\x63ltv\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x13\n\x06\x66romid\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x66uzzpercent\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\x07 \x03(\t\x12\x14\n\x07maxhops\x18\x08 \x01(\rH\x03\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountB\x07\n\x05_cltvB\t\n\x07_fromidB\x0e\n\x0c_fuzzpercentB\n\n\x08_maxhops\"5\n\x10GetrouteResponse\x12!\n\x05route\x18\x01 \x03(\x0b\x32\x12.cln.GetrouteRoute\"\xc5\x01\n\rGetrouteRoute\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x05 \x01(\r\x12\x34\n\x05style\x18\x06 \x01(\x0e\x32%.cln.GetrouteRoute.GetrouteRouteStyle\"\x1d\n\x12GetrouteRouteStyle\x12\x07\n\x03TLV\x10\x00\"\xb7\x03\n\x13ListforwardsRequest\x12@\n\x06status\x18\x01 \x01(\x0e\x32+.cln.ListforwardsRequest.ListforwardsStatusH\x00\x88\x01\x01\x12\x17\n\nin_channel\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x03 \x01(\tH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListforwardsRequest.ListforwardsIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\"L\n\x12ListforwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"-\n\x11ListforwardsIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_statusB\r\n\x0b_in_channelB\x0e\n\x0c_out_channelB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListforwardsResponse\x12+\n\x08\x66orwards\x18\x01 \x03(\x0b\x32\x19.cln.ListforwardsForwards\"\xb4\x06\n\x14ListforwardsForwards\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x1c\n\x07in_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x44\n\x06status\x18\x03 \x01(\x0e\x32\x34.cln.ListforwardsForwards.ListforwardsForwardsStatus\x12\x15\n\rreceived_time\x18\x04 \x01(\x01\x12\x18\n\x0bout_channel\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\"\n\x08\x66\x65\x65_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\"\n\x08out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12G\n\x05style\x18\t \x01(\x0e\x32\x33.cln.ListforwardsForwards.ListforwardsForwardsStyleH\x03\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x18\n\x0bout_htlc_id\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rresolved_time\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x15\n\x08\x66\x61ilcode\x18\x0f \x01(\rH\t\x88\x01\x01\x12\x17\n\nfailreason\x18\x10 \x01(\tH\n\x88\x01\x01\"T\n\x1aListforwardsForwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"0\n\x19ListforwardsForwardsStyle\x12\n\n\x06LEGACY\x10\x00\x12\x07\n\x03TLV\x10\x01\x42\x0e\n\x0c_out_channelB\x0b\n\t_fee_msatB\x0b\n\t_out_msatB\x08\n\x06_styleB\r\n\x0b_in_htlc_idB\x0e\n\x0c_out_htlc_idB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_resolved_timeB\x0b\n\t_failcodeB\r\n\x0b_failreason\"a\n\x11ListoffersRequest\x12\x15\n\x08offer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0b\x61\x63tive_only\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\x0b\n\t_offer_idB\x0e\n\x0c_active_only\";\n\x12ListoffersResponse\x12%\n\x06offers\x18\x01 \x03(\x0b\x32\x15.cln.ListoffersOffers\"\x84\x01\n\x10ListoffersOffers\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"\xdb\x01\n\x0fListpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x38\n\x06status\x18\x03 \x01(\x0e\x32#.cln.ListpaysRequest.ListpaysStatusH\x02\x88\x01\x01\"7\n\x0eListpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_status\"3\n\x10ListpaysResponse\x12\x1f\n\x04pays\x18\x01 \x03(\x0b\x32\x11.cln.ListpaysPays\"\xff\x04\n\x0cListpaysPays\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x34\n\x06status\x18\x02 \x01(\x0e\x32$.cln.ListpaysPays.ListpaysPaysStatus\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x04\x12\x12\n\x05label\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x06 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12*\n\x10\x61mount_sent_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\n \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0c \x01(\x04H\x08\x88\x01\x01\x12\x15\n\x08preimage\x18\r \x01(\x0cH\t\x88\x01\x01\x12\x1c\n\x0fnumber_of_parts\x18\x0e \x01(\x04H\n\x88\x01\x01\";\n\x12ListpaysPaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x13\n\x11_amount_sent_msatB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\x0f\n\r_completed_atB\x0b\n\t_preimageB\x12\n\x10_number_of_parts\"*\n\x10ListhtlcsRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListhtlcsResponse\x12\"\n\x05htlcs\x18\x01 \x03(\x0b\x32\x13.cln.ListhtlcsHtlcs\"\x89\x02\n\x0eListhtlcsHtlcs\x12\x18\n\x10short_channel_id\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12>\n\tdirection\x18\x05 \x01(\x0e\x32+.cln.ListhtlcsHtlcs.ListhtlcsHtlcsDirection\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x1d\n\x05state\x18\x07 \x01(\x0e\x32\x0e.cln.HtlcState\"*\n\x17ListhtlcsHtlcsDirection\x12\x07\n\x03OUT\x10\x00\x12\x06\n\x02IN\x10\x01\"\xb2\x02\n\x17MultifundchannelRequest\x12\x37\n\x0c\x64\x65stinations\x18\x01 \x03(\x0b\x32!.cln.MultifundchannelDestinations\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\x12H\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x18\n\x0bminchannels\x18\x05 \x01(\x12H\x02\x88\x01\x01\x12-\n\x12\x63ommitment_feerate\x18\x06 \x01(\x0b\x32\x0c.cln.FeerateH\x03\x88\x01\x01\x42\n\n\x08_feerateB\n\n\x08_minconfB\x0e\n\x0c_minchannelsB\x15\n\x13_commitment_feerate\"\x98\x01\n\x18MultifundchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x35\n\x0b\x63hannel_ids\x18\x03 \x03(\x0b\x32 .cln.MultifundchannelChannel_ids\x12+\n\x06\x66\x61iled\x18\x04 \x03(\x0b\x32\x1b.cln.MultifundchannelFailed\"\xff\x02\n\x1cMultifundchannelDestinations\x12\n\n\x02id\x18\x01 \x01(\t\x12 \n\x06\x61mount\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12#\n\tpush_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12%\n\x0brequest_amt\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08mindepth\x18\x08 \x01(\rH\x05\x88\x01\x01\x12!\n\x07reserve\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x42\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xcb\x01\n\x1bMultifundchannelChannel_ids\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12\x12\n\nchannel_id\x18\x03 \x01(\x0c\x12G\n\x0c\x63hannel_type\x18\x04 \x01(\x0b\x32,.cln.MultifundchannelChannel_idsChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_to\"\\\n\'MultifundchannelChannel_idsChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x93\x02\n\x16MultifundchannelFailed\x12\n\n\x02id\x18\x01 \x01(\x0c\x12H\n\x06method\x18\x02 \x01(\x0e\x32\x38.cln.MultifundchannelFailed.MultifundchannelFailedMethod\x12/\n\x05\x65rror\x18\x03 \x01(\x0b\x32 .cln.MultifundchannelFailedError\"r\n\x1cMultifundchannelFailedMethod\x12\x0b\n\x07\x43ONNECT\x10\x00\x12\x14\n\x10OPENCHANNEL_INIT\x10\x01\x12\x15\n\x11\x46UNDCHANNEL_START\x10\x02\x12\x18\n\x14\x46UNDCHANNEL_COMPLETE\x10\x03\"<\n\x1bMultifundchannelFailedError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x12\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xc1\x03\n\x0cOfferRequest\x12\x0e\n\x06\x61mount\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x06issuer\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cquantity_max\x18\x05 \x01(\x04H\x02\x88\x01\x01\x12\x1c\n\x0f\x61\x62solute_expiry\x18\x06 \x01(\x04H\x03\x88\x01\x01\x12\x17\n\nrecurrence\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x1c\n\x0frecurrence_base\x18\x08 \x01(\tH\x05\x88\x01\x01\x12!\n\x14recurrence_paywindow\x18\t \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10recurrence_limit\x18\n \x01(\rH\x07\x88\x01\x01\x12\x17\n\nsingle_use\x18\x0b \x01(\x08H\x08\x88\x01\x01\x42\t\n\x07_issuerB\x08\n\x06_labelB\x0f\n\r_quantity_maxB\x12\n\x10_absolute_expiryB\r\n\x0b_recurrenceB\x12\n\x10_recurrence_baseB\x17\n\x15_recurrence_paywindowB\x13\n\x11_recurrence_limitB\r\n\x0b_single_use\"\x92\x01\n\rOfferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x0f\n\x07\x63reated\x18\x06 \x01(\x08\x12\x12\n\x05label\x18\x07 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\".\n\x18Openchannel_abortRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"Y\n\x19Openchannel_abortResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x18\n\x10\x63hannel_canceled\x18\x02 \x01(\x08\x12\x0e\n\x06reason\x18\x03 \x01(\t\"\x9f\x01\n\x17Openchannel_bumpRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12*\n\x0f\x66unding_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x1b\n\x06\x61mount\x18\x04 \x01(\x0b\x32\x0b.cln.AmountB\x12\n\x10_funding_feerate\"\x86\x02\n\x18Openchannel_bumpResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12<\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32!.cln.Openchannel_bumpChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_bumpChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xa0\x03\n\x17Openchannel_initRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12-\n\x12\x63ommitment_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12*\n\x0f\x66unding_feerate\x18\x04 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\r\x12\x1b\n\x06\x61mount\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x15\n\x13_commitment_feerateB\x12\n\x10_funding_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_lease\"\x86\x02\n\x18Openchannel_initResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12<\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32!.cln.Openchannel_initChannel_typeH\x00\x88\x01\x01\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_initChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"D\n\x19Openchannel_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0bsigned_psbt\x18\x02 \x01(\t\"J\n\x1aOpenchannel_signedResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"=\n\x19Openchannel_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"\xae\x02\n\x1aOpenchannel_updateResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12>\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32#.cln.Openchannel_updateChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_outnum\x18\x05 \x01(\r\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12&\n\x19requires_confirmed_inputs\x18\x07 \x01(\x08H\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x1c\n\x1a_requires_confirmed_inputs\"S\n\x1eOpenchannel_updateChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"Y\n\x0bPingRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x03len\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x16\n\tpongbytes\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x06\n\x04_lenB\x0c\n\n_pongbytes\"\x1e\n\x0cPingResponse\x12\x0e\n\x06totlen\x18\x01 \x01(\r\"\x91\x01\n\rPluginRequest\x12)\n\nsubcommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12\x13\n\x06plugin\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tdirectory\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x07options\x18\x04 \x03(\tB\t\n\x07_pluginB\x0c\n\n_directory\"}\n\x0ePluginResponse\x12&\n\x07\x63ommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12#\n\x07plugins\x18\x02 \x03(\x0b\x32\x12.cln.PluginPlugins\x12\x13\n\x06result\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\t\n\x07_result\">\n\rPluginPlugins\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x0f\n\x07\x64ynamic\x18\x03 \x01(\x08\"<\n\x14RenepaystatusRequest\x12\x16\n\tinvstring\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_invstring\"G\n\x15RenepaystatusResponse\x12.\n\tpaystatus\x18\x01 \x03(\x0b\x32\x1b.cln.RenepaystatusPaystatus\"\xe2\x03\n\x16RenepaystatusPaystatus\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x1d\n\x10payment_preimage\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\x0f\n\x07groupid\x18\x05 \x01(\r\x12\x12\n\x05parts\x18\x06 \x01(\rH\x01\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12H\n\x06status\x18\t \x01(\x0e\x32\x38.cln.RenepaystatusPaystatus.RenepaystatusPaystatusStatus\x12\x18\n\x0b\x64\x65stination\x18\n \x01(\x0cH\x03\x88\x01\x01\x12\r\n\x05notes\x18\x0b \x03(\t\"E\n\x1cRenepaystatusPaystatusStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x13\n\x11_payment_preimageB\x08\n\x06_partsB\x13\n\x11_amount_sent_msatB\x0e\n\x0c_destination\"\xc9\x02\n\x0eRenepayRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12 \n\x06maxfee\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x03\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x12\n\x05label\x18\x07 \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0e\x64\x65v_use_shadow\x18\x08 \x01(\x08H\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_maxfeeB\x0b\n\t_maxdelayB\x0c\n\n_retry_forB\x0e\n\x0c_descriptionB\x08\n\x06_labelB\x11\n\x0f_dev_use_shadow\"\xc3\x02\n\x0fRenepayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\ncreated_at\x18\x03 \x01(\x01\x12\r\n\x05parts\x18\x04 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12\x32\n\x06status\x18\x07 \x01(\x0e\x32\".cln.RenepayResponse.RenepayStatus\x12\x18\n\x0b\x64\x65stination\x18\x08 \x01(\x0cH\x00\x88\x01\x01\"6\n\rRenepayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destination\"l\n\x14ReserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\texclusive\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x0c\n\n_exclusiveB\n\n\x08_reserve\"M\n\x15ReserveinputsResponse\x12\x34\n\x0creservations\x18\x01 \x03(\x0b\x32\x1e.cln.ReserveinputsReservations\"z\n\x19ReserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"4\n\x14SendcustommsgRequest\x12\x0f\n\x07node_id\x18\x01 \x01(\x0c\x12\x0b\n\x03msg\x18\x02 \x01(\x0c\"\'\n\x15SendcustommsgResponse\x12\x0e\n\x06status\x18\x01 \x01(\t\"\xb0\x01\n\x12SendinvoiceRequest\x12\x0e\n\x06invreq\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08quantity\x18\x05 \x01(\x04H\x02\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\n\n\x08_timeoutB\x0b\n\t_quantity\"\xcf\x04\n\x13SendinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.SendinvoiceResponse.SendinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x08 \x01(\x04H\x02\x88\x01\x01\x12\x1a\n\rupdated_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12\x16\n\tpay_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\"6\n\x11SendinvoiceStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt12B\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"f\n\x17SendonionmessageRequest\x12\x10\n\x08\x66irst_id\x18\x01 \x01(\x0c\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\'\n\x04hops\x18\x03 \x03(\x0b\x32\x19.cln.SendonionmessageHops\"\x1a\n\x18SendonionmessageResponse\"1\n\x14SendonionmessageHops\x12\x0c\n\x04node\x18\x01 \x01(\x0c\x12\x0b\n\x03tlv\x18\x02 \x01(\r\"\xaa\x02\n\x11SetchannelRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x07\x66\x65\x65\x62\x61se\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x66\x65\x65ppm\x18\x03 \x01(\rH\x01\x88\x01\x01\x12!\n\x07htlcmin\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12!\n\x07htlcmax\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x19\n\x0c\x65nforcedelay\x18\x06 \x01(\rH\x04\x88\x01\x01\x12\x1c\n\x0fignorefeelimits\x18\x07 \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_feebaseB\t\n\x07_feeppmB\n\n\x08_htlcminB\n\n\x08_htlcmaxB\x0f\n\r_enforcedelayB\x12\n\x10_ignorefeelimits\"?\n\x12SetchannelResponse\x12)\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x17.cln.SetchannelChannels\"\xca\x03\n\x12SetchannelChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\x12*\n\x15minimum_htlc_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x17warning_htlcmin_too_low\x18\x07 \x01(\tH\x01\x88\x01\x01\x12*\n\x15maximum_htlc_out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x18warning_htlcmax_too_high\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\n \x01(\x08H\x03\x88\x01\x01\x42\x13\n\x11_short_channel_idB\x1a\n\x18_warning_htlcmin_too_lowB\x1b\n\x19_warning_htlcmax_too_highB\x14\n\x12_ignore_fee_limits\"<\n\x10SetconfigRequest\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x10\n\x03val\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_val\"9\n\x11SetconfigResponse\x12$\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x14.cln.SetconfigConfig\"\xa5\x02\n\x0fSetconfigConfig\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x06plugin\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07\x64ynamic\x18\x04 \x01(\x08\x12\x10\n\x03set\x18\x05 \x01(\x08H\x01\x88\x01\x01\x12\x16\n\tvalue_str\x18\x06 \x01(\tH\x02\x88\x01\x01\x12$\n\nvalue_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x16\n\tvalue_int\x18\x08 \x01(\x12H\x04\x88\x01\x01\x12\x17\n\nvalue_bool\x18\t \x01(\x08H\x05\x88\x01\x01\x42\t\n\x07_pluginB\x06\n\x04_setB\x0c\n\n_value_strB\r\n\x0b_value_msatB\x0c\n\n_value_intB\r\n\x0b_value_bool\"6\n\x15SetpsbtversionRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\r\"&\n\x16SetpsbtversionResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"\'\n\x12SigninvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\"%\n\x13SigninvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"%\n\x12SignmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\"F\n\x13SignmessageResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\r\n\x05recid\x18\x02 \x01(\x0c\x12\r\n\x05zbase\x18\x03 \x01(\t\"\xc9\x01\n\x12Splice_initRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x17\n\x0frelative_amount\x18\x02 \x01(\x12\x12\x18\n\x0binitialpsbt\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0e\x66\x65\x65rate_per_kw\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1a\n\rforce_feerate\x18\x05 \x01(\x08H\x02\x88\x01\x01\x42\x0e\n\x0c_initialpsbtB\x11\n\x0f_feerate_per_kwB\x10\n\x0e_force_feerate\"#\n\x13Splice_initResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"`\n\x14Splice_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12\x17\n\nsign_first\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\r\n\x0b_sign_first\"1\n\x15Splice_signedResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"8\n\x14Splice_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"B\n\x15Splice_updateResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"H\n\x16UnreserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\"Q\n\x17UnreserveinputsResponse\x12\x36\n\x0creservations\x18\x01 \x03(\x0b\x32 .cln.UnreserveinputsReservations\"\x97\x01\n\x1bUnreserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\x05 \x01(\rH\x00\x88\x01\x01\x42\x14\n\x12_reserved_to_block\"n\n\x14UpgradewalletRequest\x12\"\n\x07\x66\x65\x65rate\x18\x01 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x17\n\nreservedok\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\n\n\x08_feerateB\r\n\x0b_reservedok\"\x95\x01\n\x15UpgradewalletResponse\x12\x1a\n\rupgraded_outs\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x11\n\x04psbt\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x02tx\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x11\n\x04txid\x18\x04 \x01(\x0cH\x03\x88\x01\x01\x42\x10\n\x0e_upgraded_outsB\x07\n\x05_psbtB\x05\n\x03_txB\x07\n\x05_txid\"O\n\x16WaitblockheightRequest\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\x12\x14\n\x07timeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_timeout\".\n\x17WaitblockheightResponse\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\"\xf9\x01\n\x0bWaitRequest\x12\x31\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitSubsystem\x12\x31\n\tindexname\x18\x02 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitIndexname\x12\x11\n\tnextvalue\x18\x03 \x01(\x04\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\"6\n\rWaitIndexname\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\"\x97\x02\n\x0cWaitResponse\x12\x32\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1f.cln.WaitResponse.WaitSubsystem\x12\x14\n\x07\x63reated\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07updated\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x14\n\x07\x64\x65leted\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12&\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32\x10.cln.WaitDetailsH\x03\x88\x01\x01\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\x42\n\n\x08_createdB\n\n\x08_updatedB\n\n\x08_deletedB\n\n\x08_details\"\xfc\x04\n\x0bWaitDetails\x12\x37\n\x06status\x18\x01 \x01(\x0e\x32\".cln.WaitDetails.WaitDetailsStatusH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x07 \x01(\x04H\x06\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x08 \x01(\x0cH\x07\x88\x01\x01\x12\x17\n\nin_channel\x18\t \x01(\tH\x08\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\t\x88\x01\x01\x12!\n\x07in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x0c \x01(\tH\x0b\x88\x01\x01\"\x89\x01\n\x11WaitDetailsStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x43OMPLETE\x10\x05\x12\x0b\n\x07OFFERED\x10\x06\x12\x0b\n\x07SETTLED\x10\x07\x12\x10\n\x0cLOCAL_FAILED\x10\x08\x42\t\n\x07_statusB\x08\n\x06_labelB\x0e\n\x0c_descriptionB\t\n\x07_bolt11B\t\n\x07_bolt12B\t\n\x07_partidB\n\n\x08_groupidB\x0f\n\r_payment_hashB\r\n\x0b_in_channelB\r\n\x0b_in_htlc_idB\n\n\x08_in_msatB\x0e\n\x0c_out_channel\"\r\n\x0bStopRequest\"q\n\x0cStopResponse\x12\x31\n\x06result\x18\x01 \x01(\x0e\x32\x1c.cln.StopResponse.StopResultH\x00\x88\x01\x01\"#\n\nStopResult\x12\x15\n\x11SHUTDOWN_COMPLETE\x10\x00\x42\t\n\x07_result\"\xa7\x01\n\x18PreapprovekeysendRequest\x12\x18\n\x0b\x64\x65stination\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x42\x0e\n\x0c_destinationB\x0f\n\r_payment_hashB\x0e\n\x0c_amount_msat\"\x1b\n\x19PreapprovekeysendResponse\":\n\x18PreapproveinvoiceRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\t\n\x07_bolt11\"\x1b\n\x19PreapproveinvoiceResponse\"\x15\n\x13StaticbackupRequest\"#\n\x14StaticbackupResponse\x12\x0b\n\x03scb\x18\x01 \x03(\x0c\"d\n\x16\x42kprchannelsapyRequest\x12\x17\n\nstart_time\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x17\x42kprchannelsapyResponse\x12\x36\n\x0c\x63hannels_apy\x18\x01 \x03(\x0b\x32 .cln.BkprchannelsapyChannels_apy\"\xfa\x06\n\x1b\x42kprchannelsapyChannels_apy\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12$\n\x0frouted_out_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0erouted_in_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12(\n\x13lease_fee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x15lease_fee_earned_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x0fpushed_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0epushed_in_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x16our_start_balance_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12/\n\x1a\x63hannel_start_balance_msat\x18\t \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\rfees_out_msat\x18\n \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x0c\x66\x65\x65s_in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x17\n\x0futilization_out\x18\x0c \x01(\t\x12$\n\x17utilization_out_initial\x18\r \x01(\tH\x01\x88\x01\x01\x12\x16\n\x0eutilization_in\x18\x0e \x01(\t\x12#\n\x16utilization_in_initial\x18\x0f \x01(\tH\x02\x88\x01\x01\x12\x0f\n\x07\x61py_out\x18\x10 \x01(\t\x12\x1c\n\x0f\x61py_out_initial\x18\x11 \x01(\tH\x03\x88\x01\x01\x12\x0e\n\x06\x61py_in\x18\x12 \x01(\t\x12\x1b\n\x0e\x61py_in_initial\x18\x13 \x01(\tH\x04\x88\x01\x01\x12\x11\n\tapy_total\x18\x14 \x01(\t\x12\x1e\n\x11\x61py_total_initial\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x16\n\tapy_lease\x18\x16 \x01(\tH\x06\x88\x01\x01\x42\x0f\n\r_fees_in_msatB\x1a\n\x18_utilization_out_initialB\x19\n\x17_utilization_in_initialB\x12\n\x10_apy_out_initialB\x11\n\x0f_apy_in_initialB\x14\n\x12_apy_total_initialB\x0c\n\n_apy_lease\"\xd2\x01\n\x18\x42kprdumpincomecsvRequest\x12\x12\n\ncsv_format\x18\x01 \x01(\t\x12\x15\n\x08\x63sv_file\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10\x63onsolidate_fees\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x17\n\nstart_time\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x05 \x01(\x04H\x03\x88\x01\x01\x42\x0b\n\t_csv_fileB\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"\xd6\x01\n\x19\x42kprdumpincomecsvResponse\x12\x10\n\x08\x63sv_file\x18\x01 \x01(\t\x12N\n\ncsv_format\x18\x02 \x01(\x0e\x32:.cln.BkprdumpincomecsvResponse.BkprdumpincomecsvCsv_format\"W\n\x1b\x42kprdumpincomecsvCsv_format\x12\x0f\n\x0b\x43OINTRACKER\x10\x00\x12\n\n\x06KOINLY\x10\x01\x12\x0b\n\x07HARMONY\x10\x02\x12\x0e\n\nQUICKBOOKS\x10\x03\"%\n\x12\x42kprinspectRequest\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\"7\n\x13\x42kprinspectResponse\x12 \n\x03txs\x18\x01 \x03(\x0b\x32\x13.cln.BkprinspectTxs\"\x9a\x01\n\x0e\x42kprinspectTxs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x18\n\x0b\x62lockheight\x18\x02 \x01(\rH\x00\x88\x01\x01\x12#\n\x0e\x66\x65\x65s_paid_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x07outputs\x18\x04 \x03(\x0b\x32\x1a.cln.BkprinspectTxsOutputsB\x0e\n\x0c_blockheight\"\xbc\x03\n\x15\x42kprinspectTxsOutputs\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12&\n\x11output_value_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x04 \x01(\t\x12%\n\x0b\x63redit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12$\n\ndebit_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12 \n\x13originating_account\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x17\n\noutput_tag\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x16\n\tspend_tag\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rspending_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x42\x0e\n\x0c_credit_msatB\r\n\x0b_debit_msatB\x16\n\x14_originating_accountB\r\n\x0b_output_tagB\x0c\n\n_spend_tagB\x10\n\x0e_spending_txidB\r\n\x0b_payment_id\"@\n\x1c\x42kprlistaccounteventsRequest\x12\x14\n\x07\x61\x63\x63ount\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_account\"Q\n\x1d\x42kprlistaccounteventsResponse\x12\x30\n\x06\x65vents\x18\x01 \x03(\x0b\x32 .cln.BkprlistaccounteventsEvents\"\xa1\x05\n\x1b\x42kprlistaccounteventsEvents\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12S\n\titem_type\x18\x02 \x01(\x0e\x32@.cln.BkprlistaccounteventsEvents.BkprlistaccounteventsEventsType\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x06 \x01(\t\x12\x11\n\ttimestamp\x18\x07 \x01(\r\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x62lockheight\x18\t \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06origin\x18\n \x01(\tH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x11\n\x04txid\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x05\x88\x01\x01\x12#\n\tfees_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x19\n\x0cis_rebalance\x18\x0f \x01(\x08H\x07\x88\x01\x01\x12\x14\n\x07part_id\x18\x10 \x01(\rH\x08\x88\x01\x01\"J\n\x1f\x42kprlistaccounteventsEventsType\x12\x0f\n\x0bONCHAIN_FEE\x10\x00\x12\t\n\x05\x43HAIN\x10\x01\x12\x0b\n\x07\x43HANNEL\x10\x02\x42\x0b\n\t_outpointB\x0e\n\x0c_blockheightB\t\n\x07_originB\r\n\x0b_payment_idB\x07\n\x05_txidB\x0e\n\x0c_descriptionB\x0c\n\n_fees_msatB\x0f\n\r_is_rebalanceB\n\n\x08_part_id\"\x19\n\x17\x42kprlistbalancesRequest\"K\n\x18\x42kprlistbalancesResponse\x12/\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x1d.cln.BkprlistbalancesAccounts\"\xc6\x02\n\x18\x42kprlistbalancesAccounts\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x37\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32%.cln.BkprlistbalancesAccountsBalances\x12\x14\n\x07peer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x16\n\twe_opened\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x0e\x61\x63\x63ount_closed\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x1d\n\x10\x61\x63\x63ount_resolved\x18\x06 \x01(\x08H\x03\x88\x01\x01\x12\x1e\n\x11resolved_at_block\x18\x07 \x01(\rH\x04\x88\x01\x01\x42\n\n\x08_peer_idB\x0c\n\n_we_openedB\x11\n\x0f_account_closedB\x13\n\x11_account_resolvedB\x14\n\x12_resolved_at_block\"X\n BkprlistbalancesAccountsBalances\x12!\n\x0c\x62\x61lance_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x11\n\tcoin_type\x18\x02 \x01(\t\"\x97\x01\n\x15\x42kprlistincomeRequest\x12\x1d\n\x10\x63onsolidate_fees\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x17\n\nstart_time\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x03 \x01(\rH\x02\x88\x01\x01\x42\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x16\x42kprlistincomeResponse\x12\x37\n\rincome_events\x18\x01 \x03(\x0b\x32 .cln.BkprlistincomeIncome_events\"\xb5\x02\n\x1b\x42kprlistincomeIncome_events\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0b\n\x03tag\x18\x02 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x05 \x01(\t\x12\x11\n\ttimestamp\x18\x06 \x01(\r\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04txid\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\n \x01(\x0cH\x03\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x0b\n\t_outpointB\x07\n\x05_txidB\r\n\x0b_payment_id2\xdb\x33\n\x04Node\x12\x36\n\x07Getinfo\x12\x13.cln.GetinfoRequest\x1a\x14.cln.GetinfoResponse\"\x00\x12<\n\tListPeers\x12\x15.cln.ListpeersRequest\x1a\x16.cln.ListpeersResponse\"\x00\x12<\n\tListFunds\x12\x15.cln.ListfundsRequest\x1a\x16.cln.ListfundsResponse\"\x00\x12\x36\n\x07SendPay\x12\x13.cln.SendpayRequest\x1a\x14.cln.SendpayResponse\"\x00\x12\x45\n\x0cListChannels\x12\x18.cln.ListchannelsRequest\x1a\x19.cln.ListchannelsResponse\"\x00\x12<\n\tAddGossip\x12\x15.cln.AddgossipRequest\x1a\x16.cln.AddgossipResponse\"\x00\x12Q\n\x10\x41utoCleanInvoice\x12\x1c.cln.AutocleaninvoiceRequest\x1a\x1d.cln.AutocleaninvoiceResponse\"\x00\x12H\n\rAutoCleanOnce\x12\x19.cln.AutocleanonceRequest\x1a\x1a.cln.AutocleanonceResponse\"\x00\x12N\n\x0f\x41utoCleanStatus\x12\x1b.cln.AutocleanstatusRequest\x1a\x1c.cln.AutocleanstatusResponse\"\x00\x12\x45\n\x0c\x43heckMessage\x12\x18.cln.CheckmessageRequest\x1a\x19.cln.CheckmessageResponse\"\x00\x12\x30\n\x05\x43lose\x12\x11.cln.CloseRequest\x1a\x12.cln.CloseResponse\"\x00\x12:\n\x0b\x43onnectPeer\x12\x13.cln.ConnectRequest\x1a\x14.cln.ConnectResponse\"\x00\x12H\n\rCreateInvoice\x12\x19.cln.CreateinvoiceRequest\x1a\x1a.cln.CreateinvoiceResponse\"\x00\x12<\n\tDatastore\x12\x15.cln.DatastoreRequest\x1a\x16.cln.DatastoreResponse\"\x00\x12K\n\x0e\x44\x61tastoreUsage\x12\x1a.cln.DatastoreusageRequest\x1a\x1b.cln.DatastoreusageResponse\"\x00\x12\x42\n\x0b\x43reateOnion\x12\x17.cln.CreateonionRequest\x1a\x18.cln.CreateonionResponse\"\x00\x12\x45\n\x0c\x44\x65lDatastore\x12\x18.cln.DeldatastoreRequest\x1a\x19.cln.DeldatastoreResponse\"\x00\x12?\n\nDelInvoice\x12\x16.cln.DelinvoiceRequest\x1a\x17.cln.DelinvoiceResponse\"\x00\x12\x36\n\x07Invoice\x12\x13.cln.InvoiceRequest\x1a\x14.cln.InvoiceResponse\"\x00\x12H\n\rListDatastore\x12\x19.cln.ListdatastoreRequest\x1a\x1a.cln.ListdatastoreResponse\"\x00\x12\x45\n\x0cListInvoices\x12\x18.cln.ListinvoicesRequest\x1a\x19.cln.ListinvoicesResponse\"\x00\x12<\n\tSendOnion\x12\x15.cln.SendonionRequest\x1a\x16.cln.SendonionResponse\"\x00\x12\x45\n\x0cListSendPays\x12\x18.cln.ListsendpaysRequest\x1a\x19.cln.ListsendpaysResponse\"\x00\x12Q\n\x10ListTransactions\x12\x1c.cln.ListtransactionsRequest\x1a\x1d.cln.ListtransactionsResponse\"\x00\x12*\n\x03Pay\x12\x0f.cln.PayRequest\x1a\x10.cln.PayResponse\"\x00\x12<\n\tListNodes\x12\x15.cln.ListnodesRequest\x1a\x16.cln.ListnodesResponse\"\x00\x12K\n\x0eWaitAnyInvoice\x12\x1a.cln.WaitanyinvoiceRequest\x1a\x1b.cln.WaitanyinvoiceResponse\"\x00\x12\x42\n\x0bWaitInvoice\x12\x17.cln.WaitinvoiceRequest\x1a\x18.cln.WaitinvoiceResponse\"\x00\x12\x42\n\x0bWaitSendPay\x12\x17.cln.WaitsendpayRequest\x1a\x18.cln.WaitsendpayResponse\"\x00\x12\x36\n\x07NewAddr\x12\x13.cln.NewaddrRequest\x1a\x14.cln.NewaddrResponse\"\x00\x12\x39\n\x08Withdraw\x12\x14.cln.WithdrawRequest\x1a\x15.cln.WithdrawResponse\"\x00\x12\x36\n\x07KeySend\x12\x13.cln.KeysendRequest\x1a\x14.cln.KeysendResponse\"\x00\x12\x39\n\x08\x46undPsbt\x12\x14.cln.FundpsbtRequest\x1a\x15.cln.FundpsbtResponse\"\x00\x12\x39\n\x08SendPsbt\x12\x14.cln.SendpsbtRequest\x1a\x15.cln.SendpsbtResponse\"\x00\x12\x39\n\x08SignPsbt\x12\x14.cln.SignpsbtRequest\x1a\x15.cln.SignpsbtResponse\"\x00\x12\x39\n\x08UtxoPsbt\x12\x14.cln.UtxopsbtRequest\x1a\x15.cln.UtxopsbtResponse\"\x00\x12<\n\tTxDiscard\x12\x15.cln.TxdiscardRequest\x1a\x16.cln.TxdiscardResponse\"\x00\x12<\n\tTxPrepare\x12\x15.cln.TxprepareRequest\x1a\x16.cln.TxprepareResponse\"\x00\x12\x33\n\x06TxSend\x12\x12.cln.TxsendRequest\x1a\x13.cln.TxsendResponse\"\x00\x12Q\n\x10ListPeerChannels\x12\x1c.cln.ListpeerchannelsRequest\x1a\x1d.cln.ListpeerchannelsResponse\"\x00\x12W\n\x12ListClosedChannels\x12\x1e.cln.ListclosedchannelsRequest\x1a\x1f.cln.ListclosedchannelsResponse\"\x00\x12<\n\tDecodePay\x12\x15.cln.DecodepayRequest\x1a\x16.cln.DecodepayResponse\"\x00\x12\x33\n\x06\x44\x65\x63ode\x12\x12.cln.DecodeRequest\x1a\x13.cln.DecodeResponse\"\x00\x12\x33\n\x06\x44\x65lPay\x12\x12.cln.DelpayRequest\x1a\x13.cln.DelpayResponse\"\x00\x12?\n\nDelForward\x12\x16.cln.DelforwardRequest\x1a\x17.cln.DelforwardResponse\"\x00\x12\x45\n\x0c\x44isableOffer\x12\x18.cln.DisableofferRequest\x1a\x19.cln.DisableofferResponse\"\x00\x12?\n\nDisconnect\x12\x16.cln.DisconnectRequest\x1a\x17.cln.DisconnectResponse\"\x00\x12\x39\n\x08\x46\x65\x65rates\x12\x14.cln.FeeratesRequest\x1a\x15.cln.FeeratesResponse\"\x00\x12\x45\n\x0c\x46\x65tchInvoice\x12\x18.cln.FetchinvoiceRequest\x1a\x19.cln.FetchinvoiceResponse\"\x00\x12W\n\x12\x46undChannel_Cancel\x12\x1e.cln.Fundchannel_cancelRequest\x1a\x1f.cln.Fundchannel_cancelResponse\"\x00\x12]\n\x14\x46undChannel_Complete\x12 .cln.Fundchannel_completeRequest\x1a!.cln.Fundchannel_completeResponse\"\x00\x12\x42\n\x0b\x46undChannel\x12\x17.cln.FundchannelRequest\x1a\x18.cln.FundchannelResponse\"\x00\x12T\n\x11\x46undChannel_Start\x12\x1d.cln.Fundchannel_startRequest\x1a\x1e.cln.Fundchannel_startResponse\"\x00\x12\x33\n\x06GetLog\x12\x12.cln.GetlogRequest\x1a\x13.cln.GetlogResponse\"\x00\x12\x39\n\x08GetRoute\x12\x14.cln.GetrouteRequest\x1a\x15.cln.GetrouteResponse\"\x00\x12\x45\n\x0cListForwards\x12\x18.cln.ListforwardsRequest\x1a\x19.cln.ListforwardsResponse\"\x00\x12?\n\nListOffers\x12\x16.cln.ListoffersRequest\x1a\x17.cln.ListoffersResponse\"\x00\x12\x39\n\x08ListPays\x12\x14.cln.ListpaysRequest\x1a\x15.cln.ListpaysResponse\"\x00\x12<\n\tListHtlcs\x12\x15.cln.ListhtlcsRequest\x1a\x16.cln.ListhtlcsResponse\"\x00\x12Q\n\x10MultiFundChannel\x12\x1c.cln.MultifundchannelRequest\x1a\x1d.cln.MultifundchannelResponse\"\x00\x12\x30\n\x05Offer\x12\x11.cln.OfferRequest\x1a\x12.cln.OfferResponse\"\x00\x12T\n\x11OpenChannel_Abort\x12\x1d.cln.Openchannel_abortRequest\x1a\x1e.cln.Openchannel_abortResponse\"\x00\x12Q\n\x10OpenChannel_Bump\x12\x1c.cln.Openchannel_bumpRequest\x1a\x1d.cln.Openchannel_bumpResponse\"\x00\x12Q\n\x10OpenChannel_Init\x12\x1c.cln.Openchannel_initRequest\x1a\x1d.cln.Openchannel_initResponse\"\x00\x12W\n\x12OpenChannel_Signed\x12\x1e.cln.Openchannel_signedRequest\x1a\x1f.cln.Openchannel_signedResponse\"\x00\x12W\n\x12OpenChannel_Update\x12\x1e.cln.Openchannel_updateRequest\x1a\x1f.cln.Openchannel_updateResponse\"\x00\x12-\n\x04Ping\x12\x10.cln.PingRequest\x1a\x11.cln.PingResponse\"\x00\x12\x33\n\x06Plugin\x12\x12.cln.PluginRequest\x1a\x13.cln.PluginResponse\"\x00\x12H\n\rRenePayStatus\x12\x19.cln.RenepaystatusRequest\x1a\x1a.cln.RenepaystatusResponse\"\x00\x12\x36\n\x07RenePay\x12\x13.cln.RenepayRequest\x1a\x14.cln.RenepayResponse\"\x00\x12H\n\rReserveInputs\x12\x19.cln.ReserveinputsRequest\x1a\x1a.cln.ReserveinputsResponse\"\x00\x12H\n\rSendCustomMsg\x12\x19.cln.SendcustommsgRequest\x1a\x1a.cln.SendcustommsgResponse\"\x00\x12\x42\n\x0bSendInvoice\x12\x17.cln.SendinvoiceRequest\x1a\x18.cln.SendinvoiceResponse\"\x00\x12Q\n\x10SendOnionMessage\x12\x1c.cln.SendonionmessageRequest\x1a\x1d.cln.SendonionmessageResponse\"\x00\x12?\n\nSetChannel\x12\x16.cln.SetchannelRequest\x1a\x17.cln.SetchannelResponse\"\x00\x12<\n\tSetConfig\x12\x15.cln.SetconfigRequest\x1a\x16.cln.SetconfigResponse\"\x00\x12K\n\x0eSetPsbtVersion\x12\x1a.cln.SetpsbtversionRequest\x1a\x1b.cln.SetpsbtversionResponse\"\x00\x12\x42\n\x0bSignInvoice\x12\x17.cln.SigninvoiceRequest\x1a\x18.cln.SigninvoiceResponse\"\x00\x12\x42\n\x0bSignMessage\x12\x17.cln.SignmessageRequest\x1a\x18.cln.SignmessageResponse\"\x00\x12\x42\n\x0bSplice_Init\x12\x17.cln.Splice_initRequest\x1a\x18.cln.Splice_initResponse\"\x00\x12H\n\rSplice_Signed\x12\x19.cln.Splice_signedRequest\x1a\x1a.cln.Splice_signedResponse\"\x00\x12H\n\rSplice_Update\x12\x19.cln.Splice_updateRequest\x1a\x1a.cln.Splice_updateResponse\"\x00\x12N\n\x0fUnreserveInputs\x12\x1b.cln.UnreserveinputsRequest\x1a\x1c.cln.UnreserveinputsResponse\"\x00\x12H\n\rUpgradeWallet\x12\x19.cln.UpgradewalletRequest\x1a\x1a.cln.UpgradewalletResponse\"\x00\x12N\n\x0fWaitBlockHeight\x12\x1b.cln.WaitblockheightRequest\x1a\x1c.cln.WaitblockheightResponse\"\x00\x12-\n\x04Wait\x12\x10.cln.WaitRequest\x1a\x11.cln.WaitResponse\"\x00\x12-\n\x04Stop\x12\x10.cln.StopRequest\x1a\x11.cln.StopResponse\"\x00\x12T\n\x11PreApproveKeysend\x12\x1d.cln.PreapprovekeysendRequest\x1a\x1e.cln.PreapprovekeysendResponse\"\x00\x12T\n\x11PreApproveInvoice\x12\x1d.cln.PreapproveinvoiceRequest\x1a\x1e.cln.PreapproveinvoiceResponse\"\x00\x12\x45\n\x0cStaticBackup\x12\x18.cln.StaticbackupRequest\x1a\x19.cln.StaticbackupResponse\"\x00\x12N\n\x0f\x42kprChannelsApy\x12\x1b.cln.BkprchannelsapyRequest\x1a\x1c.cln.BkprchannelsapyResponse\"\x00\x12T\n\x11\x42kprDumpIncomeCsv\x12\x1d.cln.BkprdumpincomecsvRequest\x1a\x1e.cln.BkprdumpincomecsvResponse\"\x00\x12\x42\n\x0b\x42kprInspect\x12\x17.cln.BkprinspectRequest\x1a\x18.cln.BkprinspectResponse\"\x00\x12`\n\x15\x42kprListAccountEvents\x12!.cln.BkprlistaccounteventsRequest\x1a\".cln.BkprlistaccounteventsResponse\"\x00\x12Q\n\x10\x42kprListBalances\x12\x1c.cln.BkprlistbalancesRequest\x1a\x1d.cln.BkprlistbalancesResponse\"\x00\x12K\n\x0e\x42kprListIncome\x12\x1a.cln.BkprlistincomeRequest\x1a\x1b.cln.BkprlistincomeResponse\"\x00\x62\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nnode.proto\x12\x03\x63ln\x1a\x10primitives.proto\"\x10\n\x0eGetinfoRequest\"\xc1\x04\n\x0fGetinfoResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x61lias\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\r\n\x05\x63olor\x18\x03 \x01(\x0c\x12\x11\n\tnum_peers\x18\x04 \x01(\r\x12\x1c\n\x14num_pending_channels\x18\x05 \x01(\r\x12\x1b\n\x13num_active_channels\x18\x06 \x01(\r\x12\x1d\n\x15num_inactive_channels\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\t\x12\x15\n\rlightning_dir\x18\t \x01(\t\x12\x33\n\x0cour_features\x18\n \x01(\x0b\x32\x18.cln.GetinfoOur_featuresH\x01\x88\x01\x01\x12\x13\n\x0b\x62lockheight\x18\x0b \x01(\r\x12\x0f\n\x07network\x18\x0c \x01(\t\x12(\n\x13\x66\x65\x65s_collected_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x07\x61\x64\x64ress\x18\x0e \x03(\x0b\x32\x13.cln.GetinfoAddress\x12$\n\x07\x62inding\x18\x0f \x03(\x0b\x32\x13.cln.GetinfoBinding\x12\"\n\x15warning_bitcoind_sync\x18\x10 \x01(\tH\x02\x88\x01\x01\x12$\n\x17warning_lightningd_sync\x18\x11 \x01(\tH\x03\x88\x01\x01\x42\x08\n\x06_aliasB\x0f\n\r_our_featuresB\x18\n\x16_warning_bitcoind_syncB\x1a\n\x18_warning_lightningd_sync\"S\n\x13GetinfoOur_features\x12\x0c\n\x04init\x18\x01 \x01(\x0c\x12\x0c\n\x04node\x18\x02 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x03 \x01(\x0c\x12\x0f\n\x07invoice\x18\x04 \x01(\x0c\"\xc4\x01\n\x0eGetinfoAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoAddress.GetinfoAddressType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"G\n\x12GetinfoAddressType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"\xac\x02\n\x0eGetinfoBinding\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoBinding.GetinfoBindingType\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06socket\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x14\n\x07subtype\x18\x05 \x01(\tH\x03\x88\x01\x01\"_\n\x12GetinfoBindingType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x12\r\n\tWEBSOCKET\x10\x05\x42\n\n\x08_addressB\x07\n\x05_portB\t\n\x07_socketB\n\n\x08_subtype\"\xb5\x01\n\x10ListpeersRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x38\n\x05level\x18\x02 \x01(\x0e\x32$.cln.ListpeersRequest.ListpeersLevelH\x01\x88\x01\x01\"E\n\x0eListpeersLevel\x12\x06\n\x02IO\x10\x00\x12\t\n\x05\x44\x45\x42UG\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\x0b\n\x07UNUSUAL\x10\x03\x12\t\n\x05TRACE\x10\x04\x42\x05\n\x03_idB\x08\n\x06_level\"7\n\x11ListpeersResponse\x12\"\n\x05peers\x18\x01 \x03(\x0b\x32\x13.cln.ListpeersPeers\"\xdf\x01\n\x0eListpeersPeers\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x11\n\tconnected\x18\x02 \x01(\x08\x12#\n\x03log\x18\x03 \x03(\x0b\x32\x16.cln.ListpeersPeersLog\x12\x0f\n\x07netaddr\x18\x05 \x03(\t\x12\x15\n\x08\x66\x65\x61tures\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0bremote_addr\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cnum_channels\x18\x08 \x01(\rH\x02\x88\x01\x01\x42\x0b\n\t_featuresB\x0e\n\x0c_remote_addrB\x0f\n\r_num_channels\"\x88\x03\n\x11ListpeersPeersLog\x12?\n\titem_type\x18\x01 \x01(\x0e\x32,.cln.ListpeersPeersLog.ListpeersPeersLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"t\n\x15ListpeersPeersLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"0\n\x10ListfundsRequest\x12\x12\n\x05spent\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_spent\"e\n\x11ListfundsResponse\x12&\n\x07outputs\x18\x01 \x03(\x0b\x32\x15.cln.ListfundsOutputs\x12(\n\x08\x63hannels\x18\x02 \x03(\x0b\x32\x16.cln.ListfundsChannels\"\xb9\x03\n\x10ListfundsOutputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06output\x18\x02 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0cscriptpubkey\x18\x04 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0credeemscript\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12<\n\x06status\x18\x07 \x01(\x0e\x32,.cln.ListfundsOutputs.ListfundsOutputsStatus\x12\x18\n\x0b\x62lockheight\x18\x08 \x01(\rH\x02\x88\x01\x01\x12\x10\n\x08reserved\x18\t \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\n \x01(\rH\x03\x88\x01\x01\"Q\n\x16ListfundsOutputsStatus\x12\x0f\n\x0bUNCONFIRMED\x10\x00\x12\r\n\tCONFIRMED\x10\x01\x12\t\n\x05SPENT\x10\x02\x12\x0c\n\x08IMMATURE\x10\x03\x42\n\n\x08_addressB\x0f\n\r_redeemscriptB\x0e\n\x0c_blockheightB\x14\n\x12_reserved_to_block\"\xab\x02\n\x11ListfundsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12$\n\x0four_amount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x04 \x01(\x0c\x12\x16\n\x0e\x66unding_output\x18\x05 \x01(\r\x12\x11\n\tconnected\x18\x06 \x01(\x08\x12 \n\x05state\x18\x07 \x01(\x0e\x32\x11.cln.ChannelState\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x01\x88\x01\x01\x42\x13\n\x11_short_channel_idB\r\n\x0b_channel_id\"\xbb\x03\n\x0eSendpayRequest\x12 \n\x05route\x18\x01 \x03(\x0b\x32\x11.cln.SendpayRoute\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x13\n\x06partid\x18\x07 \x01(\x04H\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\t \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x0c \x01(\x0cH\x07\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x08\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_bolt11B\x11\n\x0f_payment_secretB\t\n\x07_partidB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x13\n\x11_payment_metadataB\x0e\n\x0c_description\"\xad\x05\n\x0fSendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x32\n\x06status\x18\x04 \x01(\x0e\x32\".cln.SendpayResponse.SendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x14\n\x07message\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\"*\n\rSendpayStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\\\n\x0cSendpayRoute\x12\n\n\x02id\x18\x02 \x01(\x0c\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\x12\x0f\n\x07\x63hannel\x18\x04 \x01(\t\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x01\n\x13ListchannelsRequest\x12\x1d\n\x10short_channel_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06source\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x42\x13\n\x11_short_channel_idB\t\n\x07_sourceB\x0e\n\x0c_destination\"C\n\x14ListchannelsResponse\x12+\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x19.cln.ListchannelsChannels\"\xb3\x03\n\x14ListchannelsChannels\x12\x0e\n\x06source\x18\x01 \x01(\x0c\x12\x13\n\x0b\x64\x65stination\x18\x02 \x01(\x0c\x12\x18\n\x10short_channel_id\x18\x03 \x01(\t\x12\x0e\n\x06public\x18\x04 \x01(\x08\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x15\n\rmessage_flags\x18\x06 \x01(\r\x12\x15\n\rchannel_flags\x18\x07 \x01(\r\x12\x0e\n\x06\x61\x63tive\x18\x08 \x01(\x08\x12\x13\n\x0blast_update\x18\t \x01(\r\x12\x1d\n\x15\x62\x61se_fee_millisatoshi\x18\n \x01(\r\x12\x19\n\x11\x66\x65\x65_per_millionth\x18\x0b \x01(\r\x12\r\n\x05\x64\x65lay\x18\x0c \x01(\r\x12&\n\x11htlc_minimum_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x11htlc_maximum_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x10\n\x08\x66\x65\x61tures\x18\x0f \x01(\x0c\x12\x11\n\tdirection\x18\x10 \x01(\rB\x14\n\x12_htlc_maximum_msat\"#\n\x10\x41\x64\x64gossipRequest\x12\x0f\n\x07message\x18\x01 \x01(\x0c\"\x13\n\x11\x41\x64\x64gossipResponse\"o\n\x17\x41utocleaninvoiceRequest\x12\x17\n\nexpired_by\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"\x81\x01\n\x18\x41utocleaninvoiceResponse\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x17\n\nexpired_by\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x03 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"O\n\x14\x41utocleanonceRequest\x12*\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystem\x12\x0b\n\x03\x61ge\x18\x02 \x01(\x04\"G\n\x15\x41utocleanonceResponse\x12.\n\tautoclean\x18\x01 \x01(\x0b\x32\x1b.cln.AutocleanonceAutoclean\"\xb1\x04\n\x16\x41utocleanonceAutoclean\x12L\n\x11succeededforwards\x18\x01 \x01(\x0b\x32,.cln.AutocleanonceAutocleanSucceededforwardsH\x00\x88\x01\x01\x12\x46\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32).cln.AutocleanonceAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x44\n\rsucceededpays\x18\x03 \x01(\x0b\x32(.cln.AutocleanonceAutocleanSucceededpaysH\x02\x88\x01\x01\x12>\n\nfailedpays\x18\x04 \x01(\x0b\x32%.cln.AutocleanonceAutocleanFailedpaysH\x03\x88\x01\x01\x12\x42\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32\'.cln.AutocleanonceAutocleanPaidinvoicesH\x04\x88\x01\x01\x12H\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32*.cln.AutocleanonceAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"M\n\'AutocleanonceAutocleanSucceededforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"J\n$AutocleanonceAutocleanFailedforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"I\n#AutocleanonceAutocleanSucceededpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"F\n AutocleanonceAutocleanFailedpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"H\n\"AutocleanonceAutocleanPaidinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"K\n%AutocleanonceAutocleanExpiredinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"W\n\x16\x41utocleanstatusRequest\x12/\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystemH\x00\x88\x01\x01\x42\x0c\n\n_subsystem\"K\n\x17\x41utocleanstatusResponse\x12\x30\n\tautoclean\x18\x01 \x01(\x0b\x32\x1d.cln.AutocleanstatusAutoclean\"\xbf\x04\n\x18\x41utocleanstatusAutoclean\x12N\n\x11succeededforwards\x18\x01 \x01(\x0b\x32..cln.AutocleanstatusAutocleanSucceededforwardsH\x00\x88\x01\x01\x12H\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32+.cln.AutocleanstatusAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x46\n\rsucceededpays\x18\x03 \x01(\x0b\x32*.cln.AutocleanstatusAutocleanSucceededpaysH\x02\x88\x01\x01\x12@\n\nfailedpays\x18\x04 \x01(\x0b\x32\'.cln.AutocleanstatusAutocleanFailedpaysH\x03\x88\x01\x01\x12\x44\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32).cln.AutocleanstatusAutocleanPaidinvoicesH\x04\x88\x01\x01\x12J\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32,.cln.AutocleanstatusAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"g\n)AutocleanstatusAutocleanSucceededforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"d\n&AutocleanstatusAutocleanFailedforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"c\n%AutocleanstatusAutocleanSucceededpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"`\n\"AutocleanstatusAutocleanFailedpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"b\n$AutocleanstatusAutocleanPaidinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"e\n\'AutocleanstatusAutocleanExpiredinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"U\n\x13\x43heckmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\r\n\x05zbase\x18\x02 \x01(\t\x12\x13\n\x06pubkey\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x42\t\n\x07_pubkey\"8\n\x14\x43heckmessageResponse\x12\x10\n\x08verified\x18\x01 \x01(\x08\x12\x0e\n\x06pubkey\x18\x02 \x01(\x0c\"\xcb\x02\n\x0c\x43loseRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x11unilateraltimeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x66\x65\x65_negotiation_step\x18\x04 \x01(\tH\x02\x88\x01\x01\x12)\n\rwrong_funding\x18\x05 \x01(\x0b\x32\r.cln.OutpointH\x03\x88\x01\x01\x12\x1f\n\x12\x66orce_lease_closed\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1e\n\x08\x66\x65\x65range\x18\x07 \x03(\x0b\x32\x0c.cln.FeerateB\x14\n\x12_unilateraltimeoutB\x0e\n\x0c_destinationB\x17\n\x15_fee_negotiation_stepB\x10\n\x0e_wrong_fundingB\x15\n\x13_force_lease_closed\"\xab\x01\n\rCloseResponse\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.CloseResponse.CloseType\x12\x0f\n\x02tx\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04txid\x18\x03 \x01(\x0cH\x01\x88\x01\x01\"5\n\tCloseType\x12\n\n\x06MUTUAL\x10\x00\x12\x0e\n\nUNILATERAL\x10\x01\x12\x0c\n\x08UNOPENED\x10\x02\x42\x05\n\x03_txB\x07\n\x05_txid\"T\n\x0e\x43onnectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04host\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x07\n\x05_hostB\x07\n\x05_port\"\xb4\x01\n\x0f\x43onnectResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0c\x12\x38\n\tdirection\x18\x03 \x01(\x0e\x32%.cln.ConnectResponse.ConnectDirection\x12$\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x13.cln.ConnectAddress\"#\n\x10\x43onnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\xfb\x01\n\x0e\x43onnectAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.ConnectAddress.ConnectAddressType\x12\x13\n\x06socket\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04port\x18\x04 \x01(\rH\x02\x88\x01\x01\"P\n\x12\x43onnectAddressType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\t\n\x07_socketB\n\n\x08_addressB\x07\n\x05_port\"J\n\x14\x43reateinvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x10\n\x08preimage\x18\x03 \x01(\x0c\"\xfe\x05\n\x15\x43reateinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12>\n\x06status\x18\x06 \x01(\x0e\x32..cln.CreateinvoiceResponse.CreateinvoiceStatus\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12;\n\rpaid_outpoint\x18\x11 \x01(\x0b\x32\x1f.cln.CreateinvoicePaid_outpointH\n\x88\x01\x01\"8\n\x13\x43reateinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_paid_outpoint\":\n\x1a\x43reateinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x02\n\x10\x44\x61tastoreRequest\x12\x10\n\x03hex\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x36\n\x04mode\x18\x03 \x01(\x0e\x32#.cln.DatastoreRequest.DatastoreModeH\x01\x88\x01\x01\x12\x17\n\ngeneration\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\t\x12\x13\n\x06string\x18\x06 \x01(\tH\x03\x88\x01\x01\"p\n\rDatastoreMode\x12\x0f\n\x0bMUST_CREATE\x10\x00\x12\x10\n\x0cMUST_REPLACE\x10\x01\x12\x15\n\x11\x43REATE_OR_REPLACE\x10\x02\x12\x0f\n\x0bMUST_APPEND\x10\x03\x12\x14\n\x10\x43REATE_OR_APPEND\x10\x04\x42\x06\n\x04_hexB\x07\n\x05_modeB\r\n\x0b_generationB\t\n\x07_string\"\x82\x01\n\x11\x44\x61tastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"$\n\x15\x44\x61tastoreusageRequest\x12\x0b\n\x03key\x18\x01 \x03(\t\"S\n\x16\x44\x61tastoreusageResponse\x12\x39\n\x0e\x64\x61tastoreusage\x18\x01 \x01(\x0b\x32!.cln.DatastoreusageDatastoreusage\"@\n\x1c\x44\x61tastoreusageDatastoreusage\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x13\n\x0btotal_bytes\x18\x02 \x01(\x04\"\x9d\x01\n\x12\x43reateonionRequest\x12\"\n\x04hops\x18\x01 \x03(\x0b\x32\x14.cln.CreateonionHops\x12\x11\n\tassocdata\x18\x02 \x01(\x0c\x12\x18\n\x0bsession_key\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x17\n\nonion_size\x18\x04 \x01(\rH\x01\x88\x01\x01\x42\x0e\n\x0c_session_keyB\r\n\x0b_onion_size\"<\n\x13\x43reateonionResponse\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12\x16\n\x0eshared_secrets\x18\x02 \x03(\x0c\"2\n\x0f\x43reateonionHops\x12\x0e\n\x06pubkey\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\"J\n\x13\x44\x65ldatastoreRequest\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x03 \x03(\tB\r\n\x0b_generation\"\x85\x01\n\x14\x44\x65ldatastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xb6\x01\n\x11\x44\x65linvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\x12\x37\n\x06status\x18\x02 \x01(\x0e\x32\'.cln.DelinvoiceRequest.DelinvoiceStatus\x12\x15\n\x08\x64\x65sconly\x18\x03 \x01(\x08H\x00\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\x0b\n\t_desconly\"\xe6\x05\n\x12\x44\x65linvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x38\n\x06status\x18\x07 \x01(\x0e\x32(.cln.DelinvoiceResponse.DelinvoiceStatus\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x16\n\tpay_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\t\x88\x01\x01\x12\x14\n\x07paid_at\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"\xfa\x01\n\x0eInvoiceRequest\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tfallbacks\x18\x04 \x03(\t\x12\x15\n\x08preimage\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04\x63ltv\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18\x07 \x01(\x04H\x02\x88\x01\x01\x12\x19\n\x0c\x64\x65schashonly\x18\t \x01(\x08H\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x10.cln.AmountOrAnyB\x0b\n\t_preimageB\x07\n\x05_cltvB\t\n\x07_expiryB\x0f\n\r_deschashonly\"\x95\x03\n\x0fInvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x16\n\x0epayment_secret\x18\x03 \x01(\x0c\x12\x12\n\nexpires_at\x18\x04 \x01(\x04\x12\x1d\n\x10warning_capacity\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0fwarning_offline\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10warning_deadends\x18\x07 \x01(\tH\x02\x88\x01\x01\x12#\n\x16warning_private_unused\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x18\n\x0bwarning_mpp\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rcreated_index\x18\n \x01(\x04H\x05\x88\x01\x01\x42\x13\n\x11_warning_capacityB\x12\n\x10_warning_offlineB\x13\n\x11_warning_deadendsB\x19\n\x17_warning_private_unusedB\x0e\n\x0c_warning_mppB\x10\n\x0e_created_index\"#\n\x14ListdatastoreRequest\x12\x0b\n\x03key\x18\x02 \x03(\t\"G\n\x15ListdatastoreResponse\x12.\n\tdatastore\x18\x01 \x03(\x0b\x32\x1b.cln.ListdatastoreDatastore\"\x87\x01\n\x16ListdatastoreDatastore\x12\x0b\n\x03key\x18\x01 \x03(\t\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xde\x02\n\x13ListinvoicesRequest\x12\x12\n\x05label\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tinvstring\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08offer_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x12>\n\x05index\x18\x05 \x01(\x0e\x32*.cln.ListinvoicesRequest.ListinvoicesIndexH\x04\x88\x01\x01\x12\x12\n\x05start\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x12\n\x05limit\x18\x07 \x01(\rH\x06\x88\x01\x01\"-\n\x11ListinvoicesIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\x08\n\x06_labelB\x0c\n\n_invstringB\x0f\n\r_payment_hashB\x0b\n\t_offer_idB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListinvoicesResponse\x12+\n\x08invoices\x18\x01 \x03(\x0b\x32\x19.cln.ListinvoicesInvoices\"\xd4\x06\n\x14ListinvoicesInvoices\x12\r\n\x05label\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListinvoicesInvoices.ListinvoicesInvoicesStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x16\n\tpay_index\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x14\n\x07paid_at\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0e \x01(\x0cH\x08\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\x12\x42\n\rpaid_outpoint\x18\x12 \x01(\x0b\x32&.cln.ListinvoicesInvoicesPaid_outpointH\x0c\x88\x01\x01\"?\n\x1aListinvoicesInvoicesStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x11\n\x0f_local_offer_idB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"A\n!ListinvoicesInvoicesPaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x03\n\x10SendonionRequest\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12*\n\tfirst_hop\x18\x02 \x01(\x0b\x32\x17.cln.SendonionFirst_hop\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\x05label\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0eshared_secrets\x18\x05 \x03(\x0c\x12\x13\n\x06partid\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\t \x01(\x0cH\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\x0b \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\x0e\n\x0c_destinationB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0e\n\x0c_description\"\xe7\x04\n\x11SendonionResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x36\n\x06status\x18\x03 \x01(\x0e\x32&.cln.SendonionResponse.SendonionStatus\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x06 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\n \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0b \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x07message\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x13\n\x06partid\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\",\n\x0fSendonionStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"Q\n\x12SendonionFirst_hop\x12\n\n\x02id\x18\x01 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\"\xa0\x03\n\x13ListsendpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12@\n\x06status\x18\x03 \x01(\x0e\x32+.cln.ListsendpaysRequest.ListsendpaysStatusH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListsendpaysRequest.ListsendpaysIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\";\n\x12ListsendpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"-\n\x11ListsendpaysIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_statusB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListsendpaysResponse\x12+\n\x08payments\x18\x01 \x03(\x0b\x32\x19.cln.ListsendpaysPayments\"\xfc\x05\n\x14ListsendpaysPayments\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0f\n\x07groupid\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListsendpaysPayments.ListsendpaysPaymentsStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\n \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x12\x13\n\x06partid\x18\x0f \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\n\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x12 \x01(\x04H\x0b\x88\x01\x01\"C\n\x1aListsendpaysPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0f\n\r_completed_at\"\x19\n\x17ListtransactionsRequest\"S\n\x18ListtransactionsResponse\x12\x37\n\x0ctransactions\x18\x01 \x03(\x0b\x32!.cln.ListtransactionsTransactions\"\xf8\x01\n\x1cListtransactionsTransactions\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\r\n\x05rawtx\x18\x02 \x01(\x0c\x12\x13\n\x0b\x62lockheight\x18\x03 \x01(\r\x12\x0f\n\x07txindex\x18\x04 \x01(\r\x12\x10\n\x08locktime\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\r\x12\x37\n\x06inputs\x18\t \x03(\x0b\x32\'.cln.ListtransactionsTransactionsInputs\x12\x39\n\x07outputs\x18\n \x03(\x0b\x32(.cln.ListtransactionsTransactionsOutputs\"S\n\"ListtransactionsTransactionsInputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\r\n\x05index\x18\x02 \x01(\r\x12\x10\n\x08sequence\x18\x03 \x01(\r\"l\n#ListtransactionsTransactionsOutputs\x12\r\n\x05index\x18\x01 \x01(\r\x12\x14\n\x0cscriptPubKey\x18\x03 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x04\n\nPayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x17\n\nriskfactor\x18\x08 \x01(\x01H\x05\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\n \x03(\t\x12 \n\x06maxfee\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0c \x01(\tH\x07\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0e \x01(\x0cH\t\x88\x01\x01\x12&\n\x0cpartial_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x42\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_riskfactorB\t\n\x07_maxfeeB\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0f\n\r_partial_msat\"\xfb\x02\n\x0bPayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12*\n\x06status\x18\t \x01(\x0e\x32\x1a.cln.PayResponse.PayStatus\"2\n\tPayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"*\n\x10ListnodesRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListnodesResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.cln.ListnodesNodes\"\xba\x02\n\x0eListnodesNodes\x12\x0e\n\x06nodeid\x18\x01 \x01(\x0c\x12\x1b\n\x0elast_timestamp\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x12\n\x05\x61lias\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x12\n\x05\x63olor\x18\x04 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x05 \x01(\x0cH\x03\x88\x01\x01\x12/\n\taddresses\x18\x06 \x03(\x0b\x32\x1c.cln.ListnodesNodesAddresses\x12\x42\n\x10option_will_fund\x18\x07 \x01(\x0b\x32#.cln.ListnodesNodesOption_will_fundH\x04\x88\x01\x01\x42\x11\n\x0f_last_timestampB\x08\n\x06_aliasB\x08\n\x06_colorB\x0b\n\t_featuresB\x13\n\x11_option_will_fund\"\xf4\x01\n\x1eListnodesNodesOption_will_fund\x12(\n\x13lease_fee_base_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x17\n\x0flease_fee_basis\x18\x02 \x01(\r\x12\x16\n\x0e\x66unding_weight\x18\x03 \x01(\r\x12.\n\x19\x63hannel_fee_max_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x30\n(channel_fee_max_proportional_thousandths\x18\x05 \x01(\r\x12\x15\n\rcompact_lease\x18\x06 \x01(\x0c\"\xe8\x01\n\x17ListnodesNodesAddresses\x12K\n\titem_type\x18\x01 \x01(\x0e\x32\x38.cln.ListnodesNodesAddresses.ListnodesNodesAddressesType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"P\n\x1bListnodesNodesAddressesType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"g\n\x15WaitanyinvoiceRequest\x12\x1a\n\rlastpay_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\x10\n\x0e_lastpay_indexB\n\n\x08_timeout\"\xbf\x05\n\x16WaitanyinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12@\n\x06status\x18\x04 \x01(\x0e\x32\x30.cln.WaitanyinvoiceResponse.WaitanyinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12<\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32 .cln.WaitanyinvoicePaid_outpointH\t\x88\x01\x01\"-\n\x14WaitanyinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\";\n\x1bWaitanyinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"#\n\x12WaitinvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\"\xb0\x05\n\x13WaitinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitinvoiceResponse.WaitinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x39\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32\x1d.cln.WaitinvoicePaid_outpointH\t\x88\x01\x01\"*\n\x11WaitinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"8\n\x18WaitinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\x8e\x01\n\x12WaitsendpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x13\n\x06partid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x02\x88\x01\x01\x42\t\n\x07_partidB\n\n\x08_timeoutB\n\n\x08_groupid\"\x8e\x05\n\x13WaitsendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitsendpayResponse.WaitsendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\"!\n\x11WaitsendpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\x97\x01\n\x0eNewaddrRequest\x12@\n\x0b\x61\x64\x64resstype\x18\x01 \x01(\x0e\x32&.cln.NewaddrRequest.NewaddrAddresstypeH\x00\x88\x01\x01\"3\n\x12NewaddrAddresstype\x12\n\n\x06\x42\x45\x43H32\x10\x00\x12\x07\n\x03\x41LL\x10\x02\x12\x08\n\x04P2TR\x10\x03\x42\x0e\n\x0c_addresstype\"M\n\x0fNewaddrResponse\x12\x13\n\x06\x62\x65\x63h32\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04p2tr\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\t\n\x07_bech32B\x07\n\x05_p2tr\"\xb9\x01\n\x0fWithdrawRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\t\x12!\n\x07satoshi\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\"\n\x07\x66\x65\x65rate\x18\x05 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_feerate\":\n\x10WithdrawResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0c\n\x04psbt\x18\x03 \x01(\t\"\x82\x03\n\x0eKeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12+\n\nroutehints\x18\x08 \x01(\x0b\x32\x12.cln.RoutehintListH\x05\x88\x01\x01\x12&\n\textratlvs\x18\t \x01(\x0b\x32\x0e.cln.TlvStreamH\x06\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_routehintsB\x0c\n\n_extratlvs\"\xf2\x02\n\x0fKeysendResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x32\n\x06status\x18\t \x01(\x0e\x32\".cln.KeysendResponse.KeysendStatus\"\x1d\n\rKeysendStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"\xa4\x03\n\x0f\x46undpsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x14\n\x07minconf\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\x08 \x01(\x08H\x04\x88\x01\x01\x12\x17\n\nnonwrapped\x18\t \x01(\x08H\x05\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x06\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\x13\n\x11_excess_as_changeB\r\n\x0b_nonwrappedB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10\x46undpsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.FundpsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14\x46undpsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"A\n\x0fSendpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\",\n\x10SendpsbtResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"1\n\x0fSignpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x10\n\x08signonly\x18\x02 \x03(\r\"\'\n\x10SignpsbtResponse\x12\x13\n\x0bsigned_psbt\x18\x01 \x01(\t\"\xa0\x03\n\x0fUtxopsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x00\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x02\x88\x01\x01\x12\x17\n\nreservedok\x18\x08 \x01(\x08H\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\t \x01(\x08H\x04\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\r\n\x0b_reservedokB\x13\n\x11_excess_as_changeB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10UtxopsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.UtxopsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14UtxopsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\" \n\x10TxdiscardRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"6\n\x11TxdiscardResponse\x12\x13\n\x0bunsigned_tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"\xa4\x01\n\x10TxprepareRequest\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12 \n\x07outputs\x18\x05 \x03(\x0b\x32\x0f.cln.OutputDescB\n\n\x08_feerateB\n\n\x08_minconf\"D\n\x11TxprepareResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x13\n\x0bunsigned_tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"\x1d\n\rTxsendRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"8\n\x0eTxsendResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"1\n\x17ListpeerchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"K\n\x18ListpeerchannelsResponse\x12/\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x1d.cln.ListpeerchannelsChannels\"\xd7\x1b\n\x18ListpeerchannelsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x16\n\x0epeer_connected\x18\x02 \x01(\x08\x12J\n\x05state\x18\x03 \x01(\x0e\x32;.cln.ListpeerchannelsChannels.ListpeerchannelsChannelsState\x12\x19\n\x0cscratch_txid\x18\x04 \x01(\x0cH\x00\x88\x01\x01\x12:\n\x07\x66\x65\x65rate\x18\x06 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFeerateH\x01\x88\x01\x01\x12\x12\n\x05owner\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x19\n\x0c\x66unding_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x1b\n\x0e\x66unding_outnum\x18\x0b \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x0finitial_feerate\x18\x0c \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0clast_feerate\x18\r \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0cnext_feerate\x18\x0e \x01(\tH\t\x88\x01\x01\x12\x1a\n\rnext_fee_step\x18\x0f \x01(\rH\n\x88\x01\x01\x12\x37\n\x08inflight\x18\x10 \x03(\x0b\x32%.cln.ListpeerchannelsChannelsInflight\x12\x15\n\x08\x63lose_to\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\x12\x14\n\x07private\x18\x12 \x01(\x08H\x0c\x88\x01\x01\x12 \n\x06opener\x18\x13 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x14 \x01(\x0e\x32\x10.cln.ChannelSideH\r\x88\x01\x01\x12:\n\x07\x66unding\x18\x16 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFundingH\x0e\x88\x01\x01\x12$\n\nto_us_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x0f\x88\x01\x01\x12(\n\x0emin_to_us_msat\x18\x18 \x01(\x0b\x32\x0b.cln.AmountH\x10\x88\x01\x01\x12(\n\x0emax_to_us_msat\x18\x19 \x01(\x0b\x32\x0b.cln.AmountH\x11\x88\x01\x01\x12$\n\ntotal_msat\x18\x1a \x01(\x0b\x32\x0b.cln.AmountH\x12\x88\x01\x01\x12\'\n\rfee_base_msat\x18\x1b \x01(\x0b\x32\x0b.cln.AmountH\x13\x88\x01\x01\x12(\n\x1b\x66\x65\x65_proportional_millionths\x18\x1c \x01(\rH\x14\x88\x01\x01\x12)\n\x0f\x64ust_limit_msat\x18\x1d \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x30\n\x16max_total_htlc_in_msat\x18\x1e \x01(\x0b\x32\x0b.cln.AmountH\x16\x88\x01\x01\x12,\n\x12their_reserve_msat\x18\x1f \x01(\x0b\x32\x0b.cln.AmountH\x17\x88\x01\x01\x12*\n\x10our_reserve_msat\x18 \x01(\x0b\x32\x0b.cln.AmountH\x18\x88\x01\x01\x12(\n\x0espendable_msat\x18! \x01(\x0b\x32\x0b.cln.AmountH\x19\x88\x01\x01\x12)\n\x0freceivable_msat\x18\" \x01(\x0b\x32\x0b.cln.AmountH\x1a\x88\x01\x01\x12.\n\x14minimum_htlc_in_msat\x18# \x01(\x0b\x32\x0b.cln.AmountH\x1b\x88\x01\x01\x12/\n\x15minimum_htlc_out_msat\x18$ \x01(\x0b\x32\x0b.cln.AmountH\x1c\x88\x01\x01\x12/\n\x15maximum_htlc_out_msat\x18% \x01(\x0b\x32\x0b.cln.AmountH\x1d\x88\x01\x01\x12 \n\x13their_to_self_delay\x18& \x01(\rH\x1e\x88\x01\x01\x12\x1e\n\x11our_to_self_delay\x18\' \x01(\rH\x1f\x88\x01\x01\x12\x1f\n\x12max_accepted_htlcs\x18( \x01(\rH \x88\x01\x01\x12\x36\n\x05\x61lias\x18) \x01(\x0b\x32\".cln.ListpeerchannelsChannelsAliasH!\x88\x01\x01\x12\x0e\n\x06status\x18+ \x03(\t\x12 \n\x13in_payments_offered\x18, \x01(\x04H\"\x88\x01\x01\x12)\n\x0fin_offered_msat\x18- \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\"\n\x15in_payments_fulfilled\x18. \x01(\x04H$\x88\x01\x01\x12+\n\x11in_fulfilled_msat\x18/ \x01(\x0b\x32\x0b.cln.AmountH%\x88\x01\x01\x12!\n\x14out_payments_offered\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x10out_offered_msat\x18\x31 \x01(\x0b\x32\x0b.cln.AmountH\'\x88\x01\x01\x12#\n\x16out_payments_fulfilled\x18\x32 \x01(\x04H(\x88\x01\x01\x12,\n\x12out_fulfilled_msat\x18\x33 \x01(\x0b\x32\x0b.cln.AmountH)\x88\x01\x01\x12\x31\n\x05htlcs\x18\x34 \x03(\x0b\x32\".cln.ListpeerchannelsChannelsHtlcs\x12\x1a\n\rclose_to_addr\x18\x35 \x01(\tH*\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\x36 \x01(\x08H+\x88\x01\x01\x12:\n\x07updates\x18\x37 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsUpdatesH,\x88\x01\x01\x12#\n\x16last_stable_connection\x18\x38 \x01(\x04H-\x88\x01\x01\x12\x17\n\nlost_state\x18\x39 \x01(\x08H.\x88\x01\x01\x12\x1a\n\rreestablished\x18: \x01(\x08H/\x88\x01\x01\x12*\n\x10last_tx_fee_msat\x18; \x01(\x0b\x32\x0b.cln.AmountH0\x88\x01\x01\x12\x16\n\tdirection\x18< \x01(\rH1\x88\x01\x01\"\x80\x03\n\x1dListpeerchannelsChannelsState\x12\x0c\n\x08OPENINGD\x10\x00\x12\x1c\n\x18\x43HANNELD_AWAITING_LOCKIN\x10\x01\x12\x13\n\x0f\x43HANNELD_NORMAL\x10\x02\x12\x1a\n\x16\x43HANNELD_SHUTTING_DOWN\x10\x03\x12\x18\n\x14\x43LOSINGD_SIGEXCHANGE\x10\x04\x12\x15\n\x11\x43LOSINGD_COMPLETE\x10\x05\x12\x17\n\x13\x41WAITING_UNILATERAL\x10\x06\x12\x16\n\x12\x46UNDING_SPEND_SEEN\x10\x07\x12\x0b\n\x07ONCHAIN\x10\x08\x12\x17\n\x13\x44UALOPEND_OPEN_INIT\x10\t\x12\x1d\n\x19\x44UALOPEND_AWAITING_LOCKIN\x10\n\x12\x1c\n\x18\x43HANNELD_AWAITING_SPLICE\x10\x0b\x12\x1c\n\x18\x44UALOPEND_OPEN_COMMITTED\x10\x0c\x12\x1f\n\x1b\x44UALOPEND_OPEN_COMMIT_READY\x10\rB\x0f\n\r_scratch_txidB\n\n\x08_feerateB\x08\n\x06_ownerB\x13\n\x11_short_channel_idB\r\n\x0b_channel_idB\x0f\n\r_funding_txidB\x11\n\x0f_funding_outnumB\x12\n\x10_initial_feerateB\x0f\n\r_last_feerateB\x0f\n\r_next_feerateB\x10\n\x0e_next_fee_stepB\x0b\n\t_close_toB\n\n\x08_privateB\t\n\x07_closerB\n\n\x08_fundingB\r\n\x0b_to_us_msatB\x11\n\x0f_min_to_us_msatB\x11\n\x0f_max_to_us_msatB\r\n\x0b_total_msatB\x10\n\x0e_fee_base_msatB\x1e\n\x1c_fee_proportional_millionthsB\x12\n\x10_dust_limit_msatB\x19\n\x17_max_total_htlc_in_msatB\x15\n\x13_their_reserve_msatB\x13\n\x11_our_reserve_msatB\x11\n\x0f_spendable_msatB\x12\n\x10_receivable_msatB\x17\n\x15_minimum_htlc_in_msatB\x18\n\x16_minimum_htlc_out_msatB\x18\n\x16_maximum_htlc_out_msatB\x16\n\x14_their_to_self_delayB\x14\n\x12_our_to_self_delayB\x15\n\x13_max_accepted_htlcsB\x08\n\x06_aliasB\x16\n\x14_in_payments_offeredB\x12\n\x10_in_offered_msatB\x18\n\x16_in_payments_fulfilledB\x14\n\x12_in_fulfilled_msatB\x17\n\x15_out_payments_offeredB\x13\n\x11_out_offered_msatB\x19\n\x17_out_payments_fulfilledB\x15\n\x13_out_fulfilled_msatB\x10\n\x0e_close_to_addrB\x14\n\x12_ignore_fee_limitsB\n\n\x08_updatesB\x19\n\x17_last_stable_connectionB\r\n\x0b_lost_stateB\x10\n\x0e_reestablishedB\x13\n\x11_last_tx_fee_msatB\x0c\n\n_direction\"\xa7\x01\n\x1fListpeerchannelsChannelsUpdates\x12\x38\n\x05local\x18\x01 \x01(\x0b\x32).cln.ListpeerchannelsChannelsUpdatesLocal\x12?\n\x06remote\x18\x02 \x01(\x0b\x32*.cln.ListpeerchannelsChannelsUpdatesRemoteH\x00\x88\x01\x01\x42\t\n\x07_remote\"\xda\x01\n$ListpeerchannelsChannelsUpdatesLocal\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"\xdb\x01\n%ListpeerchannelsChannelsUpdatesRemote\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"?\n\x1fListpeerchannelsChannelsFeerate\x12\r\n\x05perkw\x18\x01 \x01(\r\x12\r\n\x05perkb\x18\x02 \x01(\r\"\x8b\x02\n ListpeerchannelsChannelsInflight\x12\x14\n\x0c\x66unding_txid\x18\x01 \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\x02 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x03 \x01(\t\x12\'\n\x12total_funding_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10our_funding_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x0cscratch_txid\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x1a\n\rsplice_amount\x18\x07 \x01(\x12H\x01\x88\x01\x01\x42\x0f\n\r_scratch_txidB\x10\n\x0e_splice_amount\"\x9d\x02\n\x1fListpeerchannelsChannelsFunding\x12%\n\x0bpushed_msat\x18\x01 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12%\n\x10local_funds_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11remote_funds_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\rfee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\'\n\rfee_rcvd_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x42\x0e\n\x0c_pushed_msatB\x10\n\x0e_fee_paid_msatB\x10\n\x0e_fee_rcvd_msat\"]\n\x1dListpeerchannelsChannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"\xf9\x02\n\x1dListpeerchannelsChannelsHtlcs\x12\\\n\tdirection\x18\x01 \x01(\x0e\x32I.cln.ListpeerchannelsChannelsHtlcs.ListpeerchannelsChannelsHtlcsDirection\x12\n\n\x02id\x18\x02 \x01(\x04\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x0e\n\x06\x65xpiry\x18\x04 \x01(\r\x12\x14\n\x0cpayment_hash\x18\x05 \x01(\x0c\x12\x1a\n\rlocal_trimmed\x18\x06 \x01(\x08H\x00\x88\x01\x01\x12\x13\n\x06status\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x05state\x18\x08 \x01(\x0e\x32\x0e.cln.HtlcState\"9\n&ListpeerchannelsChannelsHtlcsDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\x42\x10\n\x0e_local_trimmedB\t\n\x07_status\"3\n\x19ListclosedchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"[\n\x1aListclosedchannelsResponse\x12=\n\x0e\x63losedchannels\x18\x01 \x03(\x0b\x32%.cln.ListclosedchannelsClosedchannels\"\xf2\t\n ListclosedchannelsClosedchannels\x12\x14\n\x07peer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x01\x88\x01\x01\x12>\n\x05\x61lias\x18\x04 \x01(\x0b\x32*.cln.ListclosedchannelsClosedchannelsAliasH\x02\x88\x01\x01\x12 \n\x06opener\x18\x05 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x06 \x01(\x0e\x32\x10.cln.ChannelSideH\x03\x88\x01\x01\x12\x0f\n\x07private\x18\x07 \x01(\x08\x12\x1f\n\x17total_local_commitments\x18\t \x01(\x04\x12 \n\x18total_remote_commitments\x18\n \x01(\x04\x12\x18\n\x10total_htlcs_sent\x18\x0b \x01(\x04\x12\x14\n\x0c\x66unding_txid\x18\x0c \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\r \x01(\r\x12\x0e\n\x06leased\x18\x0e \x01(\x08\x12/\n\x15\x66unding_fee_paid_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12/\n\x15\x66unding_fee_rcvd_msat\x18\x10 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12-\n\x13\x66unding_pushed_msat\x18\x11 \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1f\n\ntotal_msat\x18\x12 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x66inal_to_us_msat\x18\x13 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emin_to_us_msat\x18\x14 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emax_to_us_msat\x18\x15 \x01(\x0b\x32\x0b.cln.Amount\x12!\n\x14last_commitment_txid\x18\x16 \x01(\x0cH\x07\x88\x01\x01\x12\x32\n\x18last_commitment_fee_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x66\n\x0b\x63lose_cause\x18\x18 \x01(\x0e\x32Q.cln.ListclosedchannelsClosedchannels.ListclosedchannelsClosedchannelsClose_cause\x12#\n\x16last_stable_connection\x18\x19 \x01(\x04H\t\x88\x01\x01\"v\n+ListclosedchannelsClosedchannelsClose_cause\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05LOCAL\x10\x01\x12\x08\n\x04USER\x10\x02\x12\n\n\x06REMOTE\x10\x03\x12\x0c\n\x08PROTOCOL\x10\x04\x12\x0b\n\x07ONCHAIN\x10\x05\x42\n\n\x08_peer_idB\x13\n\x11_short_channel_idB\x08\n\x06_aliasB\t\n\x07_closerB\x18\n\x16_funding_fee_paid_msatB\x18\n\x16_funding_fee_rcvd_msatB\x16\n\x14_funding_pushed_msatB\x17\n\x15_last_commitment_txidB\x1b\n\x19_last_commitment_fee_msatB\x19\n\x17_last_stable_connection\"e\n%ListclosedchannelsClosedchannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"L\n\x10\x44\x65\x63odepayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\x8d\x04\n\x11\x44\x65\x63odepayResponse\x12\x10\n\x08\x63urrency\x18\x01 \x01(\t\x12\x12\n\ncreated_at\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\x04\x12\r\n\x05payee\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x11\n\tsignature\x18\x07 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x1d\n\x15min_final_cltv_expiry\x18\n \x01(\r\x12\x1b\n\x0epayment_secret\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\r \x01(\x0cH\x05\x88\x01\x01\x12*\n\tfallbacks\x18\x0e \x03(\x0b\x32\x17.cln.DecodepayFallbacks\x12\"\n\x05\x65xtra\x18\x10 \x03(\x0b\x32\x13.cln.DecodepayExtraB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x13\n\x11_description_hashB\x11\n\x0f_payment_secretB\x0b\n\t_featuresB\x13\n\x11_payment_metadata\"\xd0\x01\n\x12\x44\x65\x63odepayFallbacks\x12\x41\n\titem_type\x18\x01 \x01(\x0e\x32..cln.DecodepayFallbacks.DecodepayFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x0b\n\x03hex\x18\x03 \x01(\x0c\"N\n\x16\x44\x65\x63odepayFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42\x07\n\x05_addr\"+\n\x0e\x44\x65\x63odepayExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\"\x1f\n\rDecodeRequest\x12\x0e\n\x06string\x18\x01 \x01(\t\"\xb7#\n\x0e\x44\x65\x63odeResponse\x12\x31\n\titem_type\x18\x01 \x01(\x0e\x32\x1e.cln.DecodeResponse.DecodeType\x12\r\n\x05valid\x18\x02 \x01(\x08\x12\x15\n\x08offer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0coffer_chains\x18\x04 \x03(\x0c\x12\x1b\n\x0eoffer_metadata\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x1b\n\x0eoffer_currency\x18\x06 \x01(\tH\x02\x88\x01\x01\x12+\n\x1ewarning_unknown_offer_currency\x18\x07 \x01(\tH\x03\x88\x01\x01\x12 \n\x13\x63urrency_minor_unit\x18\x08 \x01(\rH\x04\x88\x01\x01\x12\x19\n\x0coffer_amount\x18\t \x01(\x04H\x05\x88\x01\x01\x12+\n\x11offer_amount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1e\n\x11offer_description\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0coffer_issuer\x18\x0c \x01(\tH\x08\x88\x01\x01\x12\x1b\n\x0eoffer_features\x18\r \x01(\x0cH\t\x88\x01\x01\x12\"\n\x15offer_absolute_expiry\x18\x0e \x01(\x04H\n\x88\x01\x01\x12\x1f\n\x12offer_quantity_max\x18\x0f \x01(\x04H\x0b\x88\x01\x01\x12+\n\x0boffer_paths\x18\x10 \x03(\x0b\x32\x16.cln.DecodeOffer_paths\x12\x1a\n\roffer_node_id\x18\x11 \x01(\x0cH\x0c\x88\x01\x01\x12*\n\x1dwarning_missing_offer_node_id\x18\x14 \x01(\tH\r\x88\x01\x01\x12.\n!warning_invalid_offer_description\x18\x15 \x01(\tH\x0e\x88\x01\x01\x12.\n!warning_missing_offer_description\x18\x16 \x01(\tH\x0f\x88\x01\x01\x12+\n\x1ewarning_invalid_offer_currency\x18\x17 \x01(\tH\x10\x88\x01\x01\x12)\n\x1cwarning_invalid_offer_issuer\x18\x18 \x01(\tH\x11\x88\x01\x01\x12\x1c\n\x0finvreq_metadata\x18\x19 \x01(\x0cH\x12\x88\x01\x01\x12\x1c\n\x0finvreq_payer_id\x18\x1a \x01(\x0cH\x13\x88\x01\x01\x12\x19\n\x0cinvreq_chain\x18\x1b \x01(\x0cH\x14\x88\x01\x01\x12,\n\x12invreq_amount_msat\x18\x1c \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x1c\n\x0finvreq_features\x18\x1d \x01(\x0cH\x16\x88\x01\x01\x12\x1c\n\x0finvreq_quantity\x18\x1e \x01(\x04H\x17\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x1f \x01(\tH\x18\x88\x01\x01\x12&\n\x19invreq_recurrence_counter\x18 \x01(\rH\x19\x88\x01\x01\x12$\n\x17invreq_recurrence_start\x18! \x01(\rH\x1a\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_metadata\x18# \x01(\tH\x1b\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_payer_id\x18$ \x01(\tH\x1c\x88\x01\x01\x12.\n!warning_invalid_invreq_payer_note\x18% \x01(\tH\x1d\x88\x01\x01\x12\x36\n)warning_missing_invoice_request_signature\x18& \x01(\tH\x1e\x88\x01\x01\x12\x36\n)warning_invalid_invoice_request_signature\x18\' \x01(\tH\x1f\x88\x01\x01\x12\x1f\n\x12invoice_created_at\x18) \x01(\x04H \x88\x01\x01\x12$\n\x17invoice_relative_expiry\x18* \x01(\rH!\x88\x01\x01\x12!\n\x14invoice_payment_hash\x18+ \x01(\x0cH\"\x88\x01\x01\x12-\n\x13invoice_amount_msat\x18, \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\x37\n\x11invoice_fallbacks\x18- \x03(\x0b\x32\x1c.cln.DecodeInvoice_fallbacks\x12\x1d\n\x10invoice_features\x18. \x01(\x0cH$\x88\x01\x01\x12\x1c\n\x0finvoice_node_id\x18/ \x01(\x0cH%\x88\x01\x01\x12(\n\x1binvoice_recurrence_basetime\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x1dwarning_missing_invoice_paths\x18\x32 \x01(\tH\'\x88\x01\x01\x12/\n\"warning_missing_invoice_blindedpay\x18\x33 \x01(\tH(\x88\x01\x01\x12/\n\"warning_missing_invoice_created_at\x18\x34 \x01(\tH)\x88\x01\x01\x12\x31\n$warning_missing_invoice_payment_hash\x18\x35 \x01(\tH*\x88\x01\x01\x12+\n\x1ewarning_missing_invoice_amount\x18\x36 \x01(\tH+\x88\x01\x01\x12\x38\n+warning_missing_invoice_recurrence_basetime\x18\x37 \x01(\tH,\x88\x01\x01\x12,\n\x1fwarning_missing_invoice_node_id\x18\x38 \x01(\tH-\x88\x01\x01\x12.\n!warning_missing_invoice_signature\x18\x39 \x01(\tH.\x88\x01\x01\x12.\n!warning_invalid_invoice_signature\x18: \x01(\tH/\x88\x01\x01\x12\'\n\tfallbacks\x18; \x03(\x0b\x32\x14.cln.DecodeFallbacks\x12\x17\n\ncreated_at\x18< \x01(\x04H0\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18= \x01(\x04H1\x88\x01\x01\x12\x12\n\x05payee\x18> \x01(\x0cH2\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18? \x01(\x0cH3\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18@ \x01(\x0cH4\x88\x01\x01\x12\"\n\x15min_final_cltv_expiry\x18\x41 \x01(\rH5\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x42 \x01(\x0cH6\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x43 \x01(\x0cH7\x88\x01\x01\x12\x1f\n\x05\x65xtra\x18\x45 \x03(\x0b\x32\x10.cln.DecodeExtra\x12\x16\n\tunique_id\x18\x46 \x01(\tH8\x88\x01\x01\x12\x14\n\x07version\x18G \x01(\tH9\x88\x01\x01\x12\x13\n\x06string\x18H \x01(\tH:\x88\x01\x01\x12-\n\x0crestrictions\x18I \x03(\x0b\x32\x17.cln.DecodeRestrictions\x12&\n\x19warning_rune_invalid_utf8\x18J \x01(\tH;\x88\x01\x01\x12\x10\n\x03hex\x18K \x01(\x0cH<\x88\x01\x01\x12\x16\n\tdecrypted\x18L \x01(\x0cH=\x88\x01\x01\x12\x16\n\tsignature\x18M \x01(\tH>\x88\x01\x01\x12\x15\n\x08\x63urrency\x18N \x01(\tH?\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18O \x01(\x0b\x32\x0b.cln.AmountH@\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18P \x01(\tHA\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18Q \x01(\x0cHB\x88\x01\x01\"\x83\x01\n\nDecodeType\x12\x10\n\x0c\x42OLT12_OFFER\x10\x00\x12\x12\n\x0e\x42OLT12_INVOICE\x10\x01\x12\x1a\n\x16\x42OLT12_INVOICE_REQUEST\x10\x02\x12\x12\n\x0e\x42OLT11_INVOICE\x10\x03\x12\x08\n\x04RUNE\x10\x04\x12\x15\n\x11\x45MERGENCY_RECOVER\x10\x05\x42\x0b\n\t_offer_idB\x11\n\x0f_offer_metadataB\x11\n\x0f_offer_currencyB!\n\x1f_warning_unknown_offer_currencyB\x16\n\x14_currency_minor_unitB\x0f\n\r_offer_amountB\x14\n\x12_offer_amount_msatB\x14\n\x12_offer_descriptionB\x0f\n\r_offer_issuerB\x11\n\x0f_offer_featuresB\x18\n\x16_offer_absolute_expiryB\x15\n\x13_offer_quantity_maxB\x10\n\x0e_offer_node_idB \n\x1e_warning_missing_offer_node_idB$\n\"_warning_invalid_offer_descriptionB$\n\"_warning_missing_offer_descriptionB!\n\x1f_warning_invalid_offer_currencyB\x1f\n\x1d_warning_invalid_offer_issuerB\x12\n\x10_invreq_metadataB\x12\n\x10_invreq_payer_idB\x0f\n\r_invreq_chainB\x15\n\x13_invreq_amount_msatB\x12\n\x10_invreq_featuresB\x12\n\x10_invreq_quantityB\x14\n\x12_invreq_payer_noteB\x1c\n\x1a_invreq_recurrence_counterB\x1a\n\x18_invreq_recurrence_startB\"\n _warning_missing_invreq_metadataB\"\n _warning_missing_invreq_payer_idB$\n\"_warning_invalid_invreq_payer_noteB,\n*_warning_missing_invoice_request_signatureB,\n*_warning_invalid_invoice_request_signatureB\x15\n\x13_invoice_created_atB\x1a\n\x18_invoice_relative_expiryB\x17\n\x15_invoice_payment_hashB\x16\n\x14_invoice_amount_msatB\x13\n\x11_invoice_featuresB\x12\n\x10_invoice_node_idB\x1e\n\x1c_invoice_recurrence_basetimeB \n\x1e_warning_missing_invoice_pathsB%\n#_warning_missing_invoice_blindedpayB%\n#_warning_missing_invoice_created_atB\'\n%_warning_missing_invoice_payment_hashB!\n\x1f_warning_missing_invoice_amountB.\n,_warning_missing_invoice_recurrence_basetimeB\"\n _warning_missing_invoice_node_idB$\n\"_warning_missing_invoice_signatureB$\n\"_warning_invalid_invoice_signatureB\r\n\x0b_created_atB\t\n\x07_expiryB\x08\n\x06_payeeB\x0f\n\r_payment_hashB\x13\n\x11_description_hashB\x18\n\x16_min_final_cltv_expiryB\x11\n\x0f_payment_secretB\x13\n\x11_payment_metadataB\x0c\n\n_unique_idB\n\n\x08_versionB\t\n\x07_stringB\x1c\n\x1a_warning_rune_invalid_utf8B\x06\n\x04_hexB\x0c\n\n_decryptedB\x0c\n\n_signatureB\x0b\n\t_currencyB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x0b\n\t_features\"\xab\x01\n\x11\x44\x65\x63odeOffer_paths\x12\x1a\n\rfirst_node_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\x1b\n\x0e\x66irst_scid_dir\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x17\n\nfirst_scid\x18\x05 \x01(\tH\x02\x88\x01\x01\x42\x10\n\x0e_first_node_idB\x11\n\x0f_first_scid_dirB\r\n\x0b_first_scid\"\x8a\x01\n\x1f\x44\x65\x63odeOffer_recurrencePaywindow\x12\x16\n\x0eseconds_before\x18\x01 \x01(\r\x12\x15\n\rseconds_after\x18\x02 \x01(\r\x12 \n\x13proportional_amount\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\x16\n\x14_proportional_amount\"T\n\x17\x44\x65\x63odeInvoice_pathsPath\x12\x17\n\x0f\x62linded_node_id\x18\x01 \x01(\x0c\x12 \n\x18\x65ncrypted_recipient_data\x18\x02 \x01(\x0c\"Y\n\x17\x44\x65\x63odeInvoice_fallbacks\x12\x0f\n\x07version\x18\x01 \x01(\r\x12\x0b\n\x03hex\x18\x02 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_address\"\xaa\x02\n\x0f\x44\x65\x63odeFallbacks\x12\x36\n)warning_invoice_fallbacks_version_invalid\x18\x01 \x01(\tH\x00\x88\x01\x01\x12;\n\titem_type\x18\x02 \x01(\x0e\x32(.cln.DecodeFallbacks.DecodeFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0b\n\x03hex\x18\x04 \x01(\x0c\"K\n\x13\x44\x65\x63odeFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42,\n*_warning_invoice_fallbacks_version_invalidB\x07\n\x05_addr\"(\n\x0b\x44\x65\x63odeExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\";\n\x12\x44\x65\x63odeRestrictions\x12\x14\n\x0c\x61lternatives\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\"\xc2\x01\n\rDelpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12/\n\x06status\x18\x02 \x01(\x0e\x32\x1f.cln.DelpayRequest.DelpayStatus\x12\x13\n\x06partid\x18\x03 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x01\x88\x01\x01\"(\n\x0c\x44\x65lpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x42\t\n\x07_partidB\n\n\x08_groupid\"7\n\x0e\x44\x65lpayResponse\x12%\n\x08payments\x18\x01 \x03(\x0b\x32\x13.cln.DelpayPayments\"\xcb\x05\n\x0e\x44\x65lpayPayments\x12\x1a\n\rcreated_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x38\n\x06status\x18\x04 \x01(\x0e\x32(.cln.DelpayPayments.DelpayPaymentsStatus\x12%\n\x10\x61mount_sent_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x07 \x01(\x0cH\x02\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x12\n\ncreated_at\x18\t \x01(\x04\x12\x1a\n\rupdated_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x12\n\x05label\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x10 \x01(\tH\n\x88\x01\x01\x12\x17\n\nerroronion\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"=\n\x14\x44\x65lpayPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x10\n\x0e_created_indexB\t\n\x07_partidB\x0e\n\x0c_destinationB\x0e\n\x0c_amount_msatB\x10\n\x0e_updated_indexB\x0f\n\r_completed_atB\n\n\x08_groupidB\x13\n\x11_payment_preimageB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\r\n\x0b_erroronion\"\xb3\x01\n\x11\x44\x65lforwardRequest\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x12\n\nin_htlc_id\x18\x02 \x01(\x04\x12\x37\n\x06status\x18\x03 \x01(\x0e\x32\'.cln.DelforwardRequest.DelforwardStatus\"=\n\x10\x44\x65lforwardStatus\x12\x0b\n\x07SETTLED\x10\x00\x12\x10\n\x0cLOCAL_FAILED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"\x14\n\x12\x44\x65lforwardResponse\"\'\n\x13\x44isableofferRequest\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\"\x88\x01\n\x14\x44isableofferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"=\n\x11\x44isconnectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_force\"\x14\n\x12\x44isconnectResponse\"k\n\x0f\x46\x65\x65ratesRequest\x12\x31\n\x05style\x18\x01 \x01(\x0e\x32\".cln.FeeratesRequest.FeeratesStyle\"%\n\rFeeratesStyle\x12\t\n\x05PERKB\x10\x00\x12\t\n\x05PERKW\x10\x01\"\x9c\x02\n\x10\x46\x65\x65ratesResponse\x12%\n\x18warning_missing_feerates\x18\x01 \x01(\tH\x00\x88\x01\x01\x12&\n\x05perkb\x18\x02 \x01(\x0b\x32\x12.cln.FeeratesPerkbH\x01\x88\x01\x01\x12&\n\x05perkw\x18\x03 \x01(\x0b\x32\x12.cln.FeeratesPerkwH\x02\x88\x01\x01\x12\x46\n\x15onchain_fee_estimates\x18\x04 \x01(\x0b\x32\".cln.FeeratesOnchain_fee_estimatesH\x03\x88\x01\x01\x42\x1b\n\x19_warning_missing_feeratesB\x08\n\x06_perkbB\x08\n\x06_perkwB\x18\n\x16_onchain_fee_estimates\"\xd3\x03\n\rFeeratesPerkb\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkbEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkbEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\xd3\x03\n\rFeeratesPerkw\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkwEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkwEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\x9b\x02\n\x1d\x46\x65\x65ratesOnchain_fee_estimates\x12 \n\x18opening_channel_satoshis\x18\x01 \x01(\x04\x12\x1d\n\x15mutual_close_satoshis\x18\x02 \x01(\x04\x12!\n\x19unilateral_close_satoshis\x18\x03 \x01(\x04\x12\x1d\n\x15htlc_timeout_satoshis\x18\x04 \x01(\x04\x12\x1d\n\x15htlc_success_satoshis\x18\x05 \x01(\x04\x12\x30\n#unilateral_close_nonanchor_satoshis\x18\x06 \x01(\x04H\x00\x88\x01\x01\x42&\n$_unilateral_close_nonanchor_satoshis\"\xe9\x02\n\x13\x46\x65tchinvoiceRequest\x12\r\n\x05offer\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x15\n\x08quantity\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x1f\n\x12recurrence_counter\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x1d\n\x10recurrence_start\x18\x05 \x01(\x01H\x03\x88\x01\x01\x12\x1d\n\x10recurrence_label\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x14\n\x07timeout\x18\x07 \x01(\x01H\x05\x88\x01\x01\x12\x17\n\npayer_note\x18\x08 \x01(\tH\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\x0b\n\t_quantityB\x15\n\x13_recurrence_counterB\x13\n\x11_recurrence_startB\x13\n\x11_recurrence_labelB\n\n\x08_timeoutB\r\n\x0b_payer_note\"\x9a\x01\n\x14\x46\x65tchinvoiceResponse\x12\x0f\n\x07invoice\x18\x01 \x01(\t\x12)\n\x07\x63hanges\x18\x02 \x01(\x0b\x32\x18.cln.FetchinvoiceChanges\x12\x36\n\x0bnext_period\x18\x03 \x01(\x0b\x32\x1c.cln.FetchinvoiceNext_periodH\x00\x88\x01\x01\x42\x0e\n\x0c_next_period\"\x82\x02\n\x13\x46\x65tchinvoiceChanges\x12!\n\x14\x64\x65scription_appended\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0evendor_removed\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06vendor\x18\x04 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x42\x17\n\x15_description_appendedB\x0e\n\x0c_descriptionB\x11\n\x0f_vendor_removedB\t\n\x07_vendorB\x0e\n\x0c_amount_msat\"~\n\x17\x46\x65tchinvoiceNext_period\x12\x0f\n\x07\x63ounter\x18\x01 \x01(\x04\x12\x11\n\tstarttime\x18\x02 \x01(\x04\x12\x0f\n\x07\x65ndtime\x18\x03 \x01(\x04\x12\x17\n\x0fpaywindow_start\x18\x04 \x01(\x04\x12\x15\n\rpaywindow_end\x18\x05 \x01(\x04\"\'\n\x19\x46undchannel_cancelRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\"/\n\x1a\x46undchannel_cancelResponse\x12\x11\n\tcancelled\x18\x01 \x01(\t\"7\n\x1b\x46undchannel_completeRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"O\n\x1c\x46undchannel_completeResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"\xfb\x03\n\x12\x46undchannelRequest\x12 \n\x06\x61mount\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12#\n\tpush_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\tH\x05\x88\x01\x01\x12\n\n\x02id\x18\t \x01(\x0c\x12\x14\n\x07minconf\x18\n \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x05utxos\x18\x0b \x03(\x0b\x32\r.cln.Outpoint\x12\x15\n\x08mindepth\x18\x0c \x01(\rH\x07\x88\x01\x01\x12!\n\x07reserve\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\x0e \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\n\n\x08_minconfB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xe5\x01\n\x13\x46undchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0e\n\x06outnum\x18\x03 \x01(\r\x12\x12\n\nchannel_id\x18\x04 \x01(\x0c\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x37\n\x0c\x63hannel_type\x18\x07 \x01(\x0b\x32\x1c.cln.FundchannelChannel_typeH\x02\x88\x01\x01\x42\x0b\n\t_close_toB\x0b\n\t_mindepthB\x0f\n\r_channel_type\"L\n\x17\x46undchannelChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xd7\x02\n\x18\x46undchannel_startRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x1b\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\x07\x66\x65\x65rate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12#\n\tpush_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x15\n\x08mindepth\x18\x07 \x01(\rH\x04\x88\x01\x01\x12!\n\x07reserve\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0c\n\n_push_msatB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xf9\x01\n\x19\x46undchannel_startResponse\x12\x17\n\x0f\x66unding_address\x18\x01 \x01(\t\x12\x14\n\x0cscriptpubkey\x18\x02 \x01(\x0c\x12=\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32\".cln.Fundchannel_startChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x04 \x01(\x0cH\x01\x88\x01\x01\x12\x15\n\rwarning_usage\x18\x05 \x01(\t\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x0b\n\t_mindepth\"R\n\x1d\x46undchannel_startChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x9d\x01\n\rGetlogRequest\x12\x32\n\x05level\x18\x01 \x01(\x0e\x32\x1e.cln.GetlogRequest.GetlogLevelH\x00\x88\x01\x01\"N\n\x0bGetlogLevel\x12\n\n\x06\x42ROKEN\x10\x00\x12\x0b\n\x07UNUSUAL\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x06\n\x02IO\x10\x04\x12\t\n\x05TRACE\x10\x05\x42\x08\n\x06_level\"h\n\x0eGetlogResponse\x12\x12\n\ncreated_at\x18\x01 \x01(\t\x12\x12\n\nbytes_used\x18\x02 \x01(\r\x12\x11\n\tbytes_max\x18\x03 \x01(\r\x12\x1b\n\x03log\x18\x04 \x03(\x0b\x32\x0e.cln.GetlogLog\"\xe8\x02\n\tGetlogLog\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.GetlogLog.GetlogLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"l\n\rGetlogLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"\xec\x01\n\x0fGetrouteRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\nriskfactor\x18\x03 \x01(\x04\x12\x11\n\x04\x63ltv\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x13\n\x06\x66romid\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x66uzzpercent\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\x07 \x03(\t\x12\x14\n\x07maxhops\x18\x08 \x01(\rH\x03\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountB\x07\n\x05_cltvB\t\n\x07_fromidB\x0e\n\x0c_fuzzpercentB\n\n\x08_maxhops\"5\n\x10GetrouteResponse\x12!\n\x05route\x18\x01 \x03(\x0b\x32\x12.cln.GetrouteRoute\"\xc5\x01\n\rGetrouteRoute\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x05 \x01(\r\x12\x34\n\x05style\x18\x06 \x01(\x0e\x32%.cln.GetrouteRoute.GetrouteRouteStyle\"\x1d\n\x12GetrouteRouteStyle\x12\x07\n\x03TLV\x10\x00\"\xb7\x03\n\x13ListforwardsRequest\x12@\n\x06status\x18\x01 \x01(\x0e\x32+.cln.ListforwardsRequest.ListforwardsStatusH\x00\x88\x01\x01\x12\x17\n\nin_channel\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x03 \x01(\tH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListforwardsRequest.ListforwardsIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\"L\n\x12ListforwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"-\n\x11ListforwardsIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_statusB\r\n\x0b_in_channelB\x0e\n\x0c_out_channelB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListforwardsResponse\x12+\n\x08\x66orwards\x18\x01 \x03(\x0b\x32\x19.cln.ListforwardsForwards\"\xb4\x06\n\x14ListforwardsForwards\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x1c\n\x07in_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x44\n\x06status\x18\x03 \x01(\x0e\x32\x34.cln.ListforwardsForwards.ListforwardsForwardsStatus\x12\x15\n\rreceived_time\x18\x04 \x01(\x01\x12\x18\n\x0bout_channel\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\"\n\x08\x66\x65\x65_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\"\n\x08out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12G\n\x05style\x18\t \x01(\x0e\x32\x33.cln.ListforwardsForwards.ListforwardsForwardsStyleH\x03\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x18\n\x0bout_htlc_id\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rresolved_time\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x15\n\x08\x66\x61ilcode\x18\x0f \x01(\rH\t\x88\x01\x01\x12\x17\n\nfailreason\x18\x10 \x01(\tH\n\x88\x01\x01\"T\n\x1aListforwardsForwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"0\n\x19ListforwardsForwardsStyle\x12\n\n\x06LEGACY\x10\x00\x12\x07\n\x03TLV\x10\x01\x42\x0e\n\x0c_out_channelB\x0b\n\t_fee_msatB\x0b\n\t_out_msatB\x08\n\x06_styleB\r\n\x0b_in_htlc_idB\x0e\n\x0c_out_htlc_idB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_resolved_timeB\x0b\n\t_failcodeB\r\n\x0b_failreason\"a\n\x11ListoffersRequest\x12\x15\n\x08offer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0b\x61\x63tive_only\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\x0b\n\t_offer_idB\x0e\n\x0c_active_only\";\n\x12ListoffersResponse\x12%\n\x06offers\x18\x01 \x03(\x0b\x32\x15.cln.ListoffersOffers\"\x84\x01\n\x10ListoffersOffers\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"\xdb\x01\n\x0fListpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x38\n\x06status\x18\x03 \x01(\x0e\x32#.cln.ListpaysRequest.ListpaysStatusH\x02\x88\x01\x01\"7\n\x0eListpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_status\"3\n\x10ListpaysResponse\x12\x1f\n\x04pays\x18\x01 \x03(\x0b\x32\x11.cln.ListpaysPays\"\xff\x04\n\x0cListpaysPays\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x34\n\x06status\x18\x02 \x01(\x0e\x32$.cln.ListpaysPays.ListpaysPaysStatus\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x04\x12\x12\n\x05label\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x06 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12*\n\x10\x61mount_sent_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\n \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0c \x01(\x04H\x08\x88\x01\x01\x12\x15\n\x08preimage\x18\r \x01(\x0cH\t\x88\x01\x01\x12\x1c\n\x0fnumber_of_parts\x18\x0e \x01(\x04H\n\x88\x01\x01\";\n\x12ListpaysPaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x13\n\x11_amount_sent_msatB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\x0f\n\r_completed_atB\x0b\n\t_preimageB\x12\n\x10_number_of_parts\"*\n\x10ListhtlcsRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListhtlcsResponse\x12\"\n\x05htlcs\x18\x01 \x03(\x0b\x32\x13.cln.ListhtlcsHtlcs\"\x89\x02\n\x0eListhtlcsHtlcs\x12\x18\n\x10short_channel_id\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12>\n\tdirection\x18\x05 \x01(\x0e\x32+.cln.ListhtlcsHtlcs.ListhtlcsHtlcsDirection\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x1d\n\x05state\x18\x07 \x01(\x0e\x32\x0e.cln.HtlcState\"*\n\x17ListhtlcsHtlcsDirection\x12\x07\n\x03OUT\x10\x00\x12\x06\n\x02IN\x10\x01\"\xb2\x02\n\x17MultifundchannelRequest\x12\x37\n\x0c\x64\x65stinations\x18\x01 \x03(\x0b\x32!.cln.MultifundchannelDestinations\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\x12H\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x18\n\x0bminchannels\x18\x05 \x01(\x12H\x02\x88\x01\x01\x12-\n\x12\x63ommitment_feerate\x18\x06 \x01(\x0b\x32\x0c.cln.FeerateH\x03\x88\x01\x01\x42\n\n\x08_feerateB\n\n\x08_minconfB\x0e\n\x0c_minchannelsB\x15\n\x13_commitment_feerate\"\x98\x01\n\x18MultifundchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x35\n\x0b\x63hannel_ids\x18\x03 \x03(\x0b\x32 .cln.MultifundchannelChannel_ids\x12+\n\x06\x66\x61iled\x18\x04 \x03(\x0b\x32\x1b.cln.MultifundchannelFailed\"\xff\x02\n\x1cMultifundchannelDestinations\x12\n\n\x02id\x18\x01 \x01(\t\x12 \n\x06\x61mount\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12#\n\tpush_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12%\n\x0brequest_amt\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08mindepth\x18\x08 \x01(\rH\x05\x88\x01\x01\x12!\n\x07reserve\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x42\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xcb\x01\n\x1bMultifundchannelChannel_ids\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12\x12\n\nchannel_id\x18\x03 \x01(\x0c\x12G\n\x0c\x63hannel_type\x18\x04 \x01(\x0b\x32,.cln.MultifundchannelChannel_idsChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_to\"\\\n\'MultifundchannelChannel_idsChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x93\x02\n\x16MultifundchannelFailed\x12\n\n\x02id\x18\x01 \x01(\x0c\x12H\n\x06method\x18\x02 \x01(\x0e\x32\x38.cln.MultifundchannelFailed.MultifundchannelFailedMethod\x12/\n\x05\x65rror\x18\x03 \x01(\x0b\x32 .cln.MultifundchannelFailedError\"r\n\x1cMultifundchannelFailedMethod\x12\x0b\n\x07\x43ONNECT\x10\x00\x12\x14\n\x10OPENCHANNEL_INIT\x10\x01\x12\x15\n\x11\x46UNDCHANNEL_START\x10\x02\x12\x18\n\x14\x46UNDCHANNEL_COMPLETE\x10\x03\"<\n\x1bMultifundchannelFailedError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x12\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xc1\x03\n\x0cOfferRequest\x12\x0e\n\x06\x61mount\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x06issuer\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cquantity_max\x18\x05 \x01(\x04H\x02\x88\x01\x01\x12\x1c\n\x0f\x61\x62solute_expiry\x18\x06 \x01(\x04H\x03\x88\x01\x01\x12\x17\n\nrecurrence\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x1c\n\x0frecurrence_base\x18\x08 \x01(\tH\x05\x88\x01\x01\x12!\n\x14recurrence_paywindow\x18\t \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10recurrence_limit\x18\n \x01(\rH\x07\x88\x01\x01\x12\x17\n\nsingle_use\x18\x0b \x01(\x08H\x08\x88\x01\x01\x42\t\n\x07_issuerB\x08\n\x06_labelB\x0f\n\r_quantity_maxB\x12\n\x10_absolute_expiryB\r\n\x0b_recurrenceB\x12\n\x10_recurrence_baseB\x17\n\x15_recurrence_paywindowB\x13\n\x11_recurrence_limitB\r\n\x0b_single_use\"\x92\x01\n\rOfferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x0f\n\x07\x63reated\x18\x06 \x01(\x08\x12\x12\n\x05label\x18\x07 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\".\n\x18Openchannel_abortRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"Y\n\x19Openchannel_abortResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x18\n\x10\x63hannel_canceled\x18\x02 \x01(\x08\x12\x0e\n\x06reason\x18\x03 \x01(\t\"\x9f\x01\n\x17Openchannel_bumpRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12*\n\x0f\x66unding_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x1b\n\x06\x61mount\x18\x04 \x01(\x0b\x32\x0b.cln.AmountB\x12\n\x10_funding_feerate\"\x86\x02\n\x18Openchannel_bumpResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12<\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32!.cln.Openchannel_bumpChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_bumpChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xa0\x03\n\x17Openchannel_initRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12-\n\x12\x63ommitment_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12*\n\x0f\x66unding_feerate\x18\x04 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\r\x12\x1b\n\x06\x61mount\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x15\n\x13_commitment_feerateB\x12\n\x10_funding_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_lease\"\x86\x02\n\x18Openchannel_initResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12<\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32!.cln.Openchannel_initChannel_typeH\x00\x88\x01\x01\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_initChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"D\n\x19Openchannel_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0bsigned_psbt\x18\x02 \x01(\t\"J\n\x1aOpenchannel_signedResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"=\n\x19Openchannel_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"\xae\x02\n\x1aOpenchannel_updateResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12>\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32#.cln.Openchannel_updateChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_outnum\x18\x05 \x01(\r\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12&\n\x19requires_confirmed_inputs\x18\x07 \x01(\x08H\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x1c\n\x1a_requires_confirmed_inputs\"S\n\x1eOpenchannel_updateChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"Y\n\x0bPingRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x03len\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x16\n\tpongbytes\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x06\n\x04_lenB\x0c\n\n_pongbytes\"\x1e\n\x0cPingResponse\x12\x0e\n\x06totlen\x18\x01 \x01(\r\"\x91\x01\n\rPluginRequest\x12)\n\nsubcommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12\x13\n\x06plugin\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tdirectory\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x07options\x18\x04 \x03(\tB\t\n\x07_pluginB\x0c\n\n_directory\"}\n\x0ePluginResponse\x12&\n\x07\x63ommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12#\n\x07plugins\x18\x02 \x03(\x0b\x32\x12.cln.PluginPlugins\x12\x13\n\x06result\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\t\n\x07_result\">\n\rPluginPlugins\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x0f\n\x07\x64ynamic\x18\x03 \x01(\x08\"<\n\x14RenepaystatusRequest\x12\x16\n\tinvstring\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_invstring\"G\n\x15RenepaystatusResponse\x12.\n\tpaystatus\x18\x01 \x03(\x0b\x32\x1b.cln.RenepaystatusPaystatus\"\xe2\x03\n\x16RenepaystatusPaystatus\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x1d\n\x10payment_preimage\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\x0f\n\x07groupid\x18\x05 \x01(\r\x12\x12\n\x05parts\x18\x06 \x01(\rH\x01\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12H\n\x06status\x18\t \x01(\x0e\x32\x38.cln.RenepaystatusPaystatus.RenepaystatusPaystatusStatus\x12\x18\n\x0b\x64\x65stination\x18\n \x01(\x0cH\x03\x88\x01\x01\x12\r\n\x05notes\x18\x0b \x03(\t\"E\n\x1cRenepaystatusPaystatusStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x13\n\x11_payment_preimageB\x08\n\x06_partsB\x13\n\x11_amount_sent_msatB\x0e\n\x0c_destination\"\xc9\x02\n\x0eRenepayRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12 \n\x06maxfee\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x03\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x12\n\x05label\x18\x07 \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0e\x64\x65v_use_shadow\x18\x08 \x01(\x08H\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_maxfeeB\x0b\n\t_maxdelayB\x0c\n\n_retry_forB\x0e\n\x0c_descriptionB\x08\n\x06_labelB\x11\n\x0f_dev_use_shadow\"\xc3\x02\n\x0fRenepayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\ncreated_at\x18\x03 \x01(\x01\x12\r\n\x05parts\x18\x04 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12\x32\n\x06status\x18\x07 \x01(\x0e\x32\".cln.RenepayResponse.RenepayStatus\x12\x18\n\x0b\x64\x65stination\x18\x08 \x01(\x0cH\x00\x88\x01\x01\"6\n\rRenepayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destination\"l\n\x14ReserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\texclusive\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x0c\n\n_exclusiveB\n\n\x08_reserve\"M\n\x15ReserveinputsResponse\x12\x34\n\x0creservations\x18\x01 \x03(\x0b\x32\x1e.cln.ReserveinputsReservations\"z\n\x19ReserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"4\n\x14SendcustommsgRequest\x12\x0f\n\x07node_id\x18\x01 \x01(\x0c\x12\x0b\n\x03msg\x18\x02 \x01(\x0c\"\'\n\x15SendcustommsgResponse\x12\x0e\n\x06status\x18\x01 \x01(\t\"\xb0\x01\n\x12SendinvoiceRequest\x12\x0e\n\x06invreq\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08quantity\x18\x05 \x01(\x04H\x02\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\n\n\x08_timeoutB\x0b\n\t_quantity\"\xcf\x04\n\x13SendinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.SendinvoiceResponse.SendinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x08 \x01(\x04H\x02\x88\x01\x01\x12\x1a\n\rupdated_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12\x16\n\tpay_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\"6\n\x11SendinvoiceStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt12B\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"f\n\x17SendonionmessageRequest\x12\x10\n\x08\x66irst_id\x18\x01 \x01(\x0c\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\'\n\x04hops\x18\x03 \x03(\x0b\x32\x19.cln.SendonionmessageHops\"\x1a\n\x18SendonionmessageResponse\"1\n\x14SendonionmessageHops\x12\x0c\n\x04node\x18\x01 \x01(\x0c\x12\x0b\n\x03tlv\x18\x02 \x01(\r\"\xaa\x02\n\x11SetchannelRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x07\x66\x65\x65\x62\x61se\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x66\x65\x65ppm\x18\x03 \x01(\rH\x01\x88\x01\x01\x12!\n\x07htlcmin\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12!\n\x07htlcmax\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x19\n\x0c\x65nforcedelay\x18\x06 \x01(\rH\x04\x88\x01\x01\x12\x1c\n\x0fignorefeelimits\x18\x07 \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_feebaseB\t\n\x07_feeppmB\n\n\x08_htlcminB\n\n\x08_htlcmaxB\x0f\n\r_enforcedelayB\x12\n\x10_ignorefeelimits\"?\n\x12SetchannelResponse\x12)\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x17.cln.SetchannelChannels\"\xca\x03\n\x12SetchannelChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\x12*\n\x15minimum_htlc_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x17warning_htlcmin_too_low\x18\x07 \x01(\tH\x01\x88\x01\x01\x12*\n\x15maximum_htlc_out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x18warning_htlcmax_too_high\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\n \x01(\x08H\x03\x88\x01\x01\x42\x13\n\x11_short_channel_idB\x1a\n\x18_warning_htlcmin_too_lowB\x1b\n\x19_warning_htlcmax_too_highB\x14\n\x12_ignore_fee_limits\"<\n\x10SetconfigRequest\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x10\n\x03val\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_val\"9\n\x11SetconfigResponse\x12$\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x14.cln.SetconfigConfig\"\xa5\x02\n\x0fSetconfigConfig\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x06plugin\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07\x64ynamic\x18\x04 \x01(\x08\x12\x10\n\x03set\x18\x05 \x01(\x08H\x01\x88\x01\x01\x12\x16\n\tvalue_str\x18\x06 \x01(\tH\x02\x88\x01\x01\x12$\n\nvalue_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x16\n\tvalue_int\x18\x08 \x01(\x12H\x04\x88\x01\x01\x12\x17\n\nvalue_bool\x18\t \x01(\x08H\x05\x88\x01\x01\x42\t\n\x07_pluginB\x06\n\x04_setB\x0c\n\n_value_strB\r\n\x0b_value_msatB\x0c\n\n_value_intB\r\n\x0b_value_bool\"6\n\x15SetpsbtversionRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\r\"&\n\x16SetpsbtversionResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"\'\n\x12SigninvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\"%\n\x13SigninvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"%\n\x12SignmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\"F\n\x13SignmessageResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\r\n\x05recid\x18\x02 \x01(\x0c\x12\r\n\x05zbase\x18\x03 \x01(\t\"\xc9\x01\n\x12Splice_initRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x17\n\x0frelative_amount\x18\x02 \x01(\x12\x12\x18\n\x0binitialpsbt\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0e\x66\x65\x65rate_per_kw\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1a\n\rforce_feerate\x18\x05 \x01(\x08H\x02\x88\x01\x01\x42\x0e\n\x0c_initialpsbtB\x11\n\x0f_feerate_per_kwB\x10\n\x0e_force_feerate\"#\n\x13Splice_initResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"`\n\x14Splice_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12\x17\n\nsign_first\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\r\n\x0b_sign_first\"1\n\x15Splice_signedResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"8\n\x14Splice_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"B\n\x15Splice_updateResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"H\n\x16UnreserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\"Q\n\x17UnreserveinputsResponse\x12\x36\n\x0creservations\x18\x01 \x03(\x0b\x32 .cln.UnreserveinputsReservations\"\x97\x01\n\x1bUnreserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\x05 \x01(\rH\x00\x88\x01\x01\x42\x14\n\x12_reserved_to_block\"n\n\x14UpgradewalletRequest\x12\"\n\x07\x66\x65\x65rate\x18\x01 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x17\n\nreservedok\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\n\n\x08_feerateB\r\n\x0b_reservedok\"\x95\x01\n\x15UpgradewalletResponse\x12\x1a\n\rupgraded_outs\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x11\n\x04psbt\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x02tx\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x11\n\x04txid\x18\x04 \x01(\x0cH\x03\x88\x01\x01\x42\x10\n\x0e_upgraded_outsB\x07\n\x05_psbtB\x05\n\x03_txB\x07\n\x05_txid\"O\n\x16WaitblockheightRequest\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\x12\x14\n\x07timeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_timeout\".\n\x17WaitblockheightResponse\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\"\xf9\x01\n\x0bWaitRequest\x12\x31\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitSubsystem\x12\x31\n\tindexname\x18\x02 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitIndexname\x12\x11\n\tnextvalue\x18\x03 \x01(\x04\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\"6\n\rWaitIndexname\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\"\x97\x02\n\x0cWaitResponse\x12\x32\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1f.cln.WaitResponse.WaitSubsystem\x12\x14\n\x07\x63reated\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07updated\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x14\n\x07\x64\x65leted\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12&\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32\x10.cln.WaitDetailsH\x03\x88\x01\x01\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\x42\n\n\x08_createdB\n\n\x08_updatedB\n\n\x08_deletedB\n\n\x08_details\"\xfc\x04\n\x0bWaitDetails\x12\x37\n\x06status\x18\x01 \x01(\x0e\x32\".cln.WaitDetails.WaitDetailsStatusH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x07 \x01(\x04H\x06\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x08 \x01(\x0cH\x07\x88\x01\x01\x12\x17\n\nin_channel\x18\t \x01(\tH\x08\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\t\x88\x01\x01\x12!\n\x07in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x0c \x01(\tH\x0b\x88\x01\x01\"\x89\x01\n\x11WaitDetailsStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x43OMPLETE\x10\x05\x12\x0b\n\x07OFFERED\x10\x06\x12\x0b\n\x07SETTLED\x10\x07\x12\x10\n\x0cLOCAL_FAILED\x10\x08\x42\t\n\x07_statusB\x08\n\x06_labelB\x0e\n\x0c_descriptionB\t\n\x07_bolt11B\t\n\x07_bolt12B\t\n\x07_partidB\n\n\x08_groupidB\x0f\n\r_payment_hashB\r\n\x0b_in_channelB\r\n\x0b_in_htlc_idB\n\n\x08_in_msatB\x0e\n\x0c_out_channel\"\r\n\x0bStopRequest\"q\n\x0cStopResponse\x12\x31\n\x06result\x18\x01 \x01(\x0e\x32\x1c.cln.StopResponse.StopResultH\x00\x88\x01\x01\"#\n\nStopResult\x12\x15\n\x11SHUTDOWN_COMPLETE\x10\x00\x42\t\n\x07_result\"g\n\x18PreapprovekeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\"\x1b\n\x19PreapprovekeysendResponse\"*\n\x18PreapproveinvoiceRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"\x1b\n\x19PreapproveinvoiceResponse\"\x15\n\x13StaticbackupRequest\"#\n\x14StaticbackupResponse\x12\x0b\n\x03scb\x18\x01 \x03(\x0c\"d\n\x16\x42kprchannelsapyRequest\x12\x17\n\nstart_time\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x17\x42kprchannelsapyResponse\x12\x36\n\x0c\x63hannels_apy\x18\x01 \x03(\x0b\x32 .cln.BkprchannelsapyChannels_apy\"\xfa\x06\n\x1b\x42kprchannelsapyChannels_apy\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12$\n\x0frouted_out_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0erouted_in_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12(\n\x13lease_fee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x15lease_fee_earned_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x0fpushed_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0epushed_in_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x16our_start_balance_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12/\n\x1a\x63hannel_start_balance_msat\x18\t \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\rfees_out_msat\x18\n \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x0c\x66\x65\x65s_in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x17\n\x0futilization_out\x18\x0c \x01(\t\x12$\n\x17utilization_out_initial\x18\r \x01(\tH\x01\x88\x01\x01\x12\x16\n\x0eutilization_in\x18\x0e \x01(\t\x12#\n\x16utilization_in_initial\x18\x0f \x01(\tH\x02\x88\x01\x01\x12\x0f\n\x07\x61py_out\x18\x10 \x01(\t\x12\x1c\n\x0f\x61py_out_initial\x18\x11 \x01(\tH\x03\x88\x01\x01\x12\x0e\n\x06\x61py_in\x18\x12 \x01(\t\x12\x1b\n\x0e\x61py_in_initial\x18\x13 \x01(\tH\x04\x88\x01\x01\x12\x11\n\tapy_total\x18\x14 \x01(\t\x12\x1e\n\x11\x61py_total_initial\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x16\n\tapy_lease\x18\x16 \x01(\tH\x06\x88\x01\x01\x42\x0f\n\r_fees_in_msatB\x1a\n\x18_utilization_out_initialB\x19\n\x17_utilization_in_initialB\x12\n\x10_apy_out_initialB\x11\n\x0f_apy_in_initialB\x14\n\x12_apy_total_initialB\x0c\n\n_apy_lease\"\xd2\x01\n\x18\x42kprdumpincomecsvRequest\x12\x12\n\ncsv_format\x18\x01 \x01(\t\x12\x15\n\x08\x63sv_file\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10\x63onsolidate_fees\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x17\n\nstart_time\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x05 \x01(\x04H\x03\x88\x01\x01\x42\x0b\n\t_csv_fileB\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"\xd6\x01\n\x19\x42kprdumpincomecsvResponse\x12\x10\n\x08\x63sv_file\x18\x01 \x01(\t\x12N\n\ncsv_format\x18\x02 \x01(\x0e\x32:.cln.BkprdumpincomecsvResponse.BkprdumpincomecsvCsv_format\"W\n\x1b\x42kprdumpincomecsvCsv_format\x12\x0f\n\x0b\x43OINTRACKER\x10\x00\x12\n\n\x06KOINLY\x10\x01\x12\x0b\n\x07HARMONY\x10\x02\x12\x0e\n\nQUICKBOOKS\x10\x03\"%\n\x12\x42kprinspectRequest\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\"7\n\x13\x42kprinspectResponse\x12 \n\x03txs\x18\x01 \x03(\x0b\x32\x13.cln.BkprinspectTxs\"\x9a\x01\n\x0e\x42kprinspectTxs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x18\n\x0b\x62lockheight\x18\x02 \x01(\rH\x00\x88\x01\x01\x12#\n\x0e\x66\x65\x65s_paid_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x07outputs\x18\x04 \x03(\x0b\x32\x1a.cln.BkprinspectTxsOutputsB\x0e\n\x0c_blockheight\"\xbc\x03\n\x15\x42kprinspectTxsOutputs\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12&\n\x11output_value_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x04 \x01(\t\x12%\n\x0b\x63redit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12$\n\ndebit_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12 \n\x13originating_account\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x17\n\noutput_tag\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x16\n\tspend_tag\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rspending_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x42\x0e\n\x0c_credit_msatB\r\n\x0b_debit_msatB\x16\n\x14_originating_accountB\r\n\x0b_output_tagB\x0c\n\n_spend_tagB\x10\n\x0e_spending_txidB\r\n\x0b_payment_id\"@\n\x1c\x42kprlistaccounteventsRequest\x12\x14\n\x07\x61\x63\x63ount\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_account\"Q\n\x1d\x42kprlistaccounteventsResponse\x12\x30\n\x06\x65vents\x18\x01 \x03(\x0b\x32 .cln.BkprlistaccounteventsEvents\"\xa1\x05\n\x1b\x42kprlistaccounteventsEvents\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12S\n\titem_type\x18\x02 \x01(\x0e\x32@.cln.BkprlistaccounteventsEvents.BkprlistaccounteventsEventsType\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x06 \x01(\t\x12\x11\n\ttimestamp\x18\x07 \x01(\r\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x62lockheight\x18\t \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06origin\x18\n \x01(\tH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x11\n\x04txid\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x05\x88\x01\x01\x12#\n\tfees_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x19\n\x0cis_rebalance\x18\x0f \x01(\x08H\x07\x88\x01\x01\x12\x14\n\x07part_id\x18\x10 \x01(\rH\x08\x88\x01\x01\"J\n\x1f\x42kprlistaccounteventsEventsType\x12\x0f\n\x0bONCHAIN_FEE\x10\x00\x12\t\n\x05\x43HAIN\x10\x01\x12\x0b\n\x07\x43HANNEL\x10\x02\x42\x0b\n\t_outpointB\x0e\n\x0c_blockheightB\t\n\x07_originB\r\n\x0b_payment_idB\x07\n\x05_txidB\x0e\n\x0c_descriptionB\x0c\n\n_fees_msatB\x0f\n\r_is_rebalanceB\n\n\x08_part_id\"\x19\n\x17\x42kprlistbalancesRequest\"K\n\x18\x42kprlistbalancesResponse\x12/\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x1d.cln.BkprlistbalancesAccounts\"\xc6\x02\n\x18\x42kprlistbalancesAccounts\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x37\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32%.cln.BkprlistbalancesAccountsBalances\x12\x14\n\x07peer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x16\n\twe_opened\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x0e\x61\x63\x63ount_closed\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x1d\n\x10\x61\x63\x63ount_resolved\x18\x06 \x01(\x08H\x03\x88\x01\x01\x12\x1e\n\x11resolved_at_block\x18\x07 \x01(\rH\x04\x88\x01\x01\x42\n\n\x08_peer_idB\x0c\n\n_we_openedB\x11\n\x0f_account_closedB\x13\n\x11_account_resolvedB\x14\n\x12_resolved_at_block\"X\n BkprlistbalancesAccountsBalances\x12!\n\x0c\x62\x61lance_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x11\n\tcoin_type\x18\x02 \x01(\t\"\x97\x01\n\x15\x42kprlistincomeRequest\x12\x1d\n\x10\x63onsolidate_fees\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x17\n\nstart_time\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x03 \x01(\rH\x02\x88\x01\x01\x42\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x16\x42kprlistincomeResponse\x12\x37\n\rincome_events\x18\x01 \x03(\x0b\x32 .cln.BkprlistincomeIncome_events\"\xb5\x02\n\x1b\x42kprlistincomeIncome_events\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0b\n\x03tag\x18\x02 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x05 \x01(\t\x12\x11\n\ttimestamp\x18\x06 \x01(\r\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04txid\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\n \x01(\x0cH\x03\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x0b\n\t_outpointB\x07\n\x05_txidB\r\n\x0b_payment_id2\xdb\x33\n\x04Node\x12\x36\n\x07Getinfo\x12\x13.cln.GetinfoRequest\x1a\x14.cln.GetinfoResponse\"\x00\x12<\n\tListPeers\x12\x15.cln.ListpeersRequest\x1a\x16.cln.ListpeersResponse\"\x00\x12<\n\tListFunds\x12\x15.cln.ListfundsRequest\x1a\x16.cln.ListfundsResponse\"\x00\x12\x36\n\x07SendPay\x12\x13.cln.SendpayRequest\x1a\x14.cln.SendpayResponse\"\x00\x12\x45\n\x0cListChannels\x12\x18.cln.ListchannelsRequest\x1a\x19.cln.ListchannelsResponse\"\x00\x12<\n\tAddGossip\x12\x15.cln.AddgossipRequest\x1a\x16.cln.AddgossipResponse\"\x00\x12Q\n\x10\x41utoCleanInvoice\x12\x1c.cln.AutocleaninvoiceRequest\x1a\x1d.cln.AutocleaninvoiceResponse\"\x00\x12H\n\rAutoCleanOnce\x12\x19.cln.AutocleanonceRequest\x1a\x1a.cln.AutocleanonceResponse\"\x00\x12N\n\x0f\x41utoCleanStatus\x12\x1b.cln.AutocleanstatusRequest\x1a\x1c.cln.AutocleanstatusResponse\"\x00\x12\x45\n\x0c\x43heckMessage\x12\x18.cln.CheckmessageRequest\x1a\x19.cln.CheckmessageResponse\"\x00\x12\x30\n\x05\x43lose\x12\x11.cln.CloseRequest\x1a\x12.cln.CloseResponse\"\x00\x12:\n\x0b\x43onnectPeer\x12\x13.cln.ConnectRequest\x1a\x14.cln.ConnectResponse\"\x00\x12H\n\rCreateInvoice\x12\x19.cln.CreateinvoiceRequest\x1a\x1a.cln.CreateinvoiceResponse\"\x00\x12<\n\tDatastore\x12\x15.cln.DatastoreRequest\x1a\x16.cln.DatastoreResponse\"\x00\x12K\n\x0e\x44\x61tastoreUsage\x12\x1a.cln.DatastoreusageRequest\x1a\x1b.cln.DatastoreusageResponse\"\x00\x12\x42\n\x0b\x43reateOnion\x12\x17.cln.CreateonionRequest\x1a\x18.cln.CreateonionResponse\"\x00\x12\x45\n\x0c\x44\x65lDatastore\x12\x18.cln.DeldatastoreRequest\x1a\x19.cln.DeldatastoreResponse\"\x00\x12?\n\nDelInvoice\x12\x16.cln.DelinvoiceRequest\x1a\x17.cln.DelinvoiceResponse\"\x00\x12\x36\n\x07Invoice\x12\x13.cln.InvoiceRequest\x1a\x14.cln.InvoiceResponse\"\x00\x12H\n\rListDatastore\x12\x19.cln.ListdatastoreRequest\x1a\x1a.cln.ListdatastoreResponse\"\x00\x12\x45\n\x0cListInvoices\x12\x18.cln.ListinvoicesRequest\x1a\x19.cln.ListinvoicesResponse\"\x00\x12<\n\tSendOnion\x12\x15.cln.SendonionRequest\x1a\x16.cln.SendonionResponse\"\x00\x12\x45\n\x0cListSendPays\x12\x18.cln.ListsendpaysRequest\x1a\x19.cln.ListsendpaysResponse\"\x00\x12Q\n\x10ListTransactions\x12\x1c.cln.ListtransactionsRequest\x1a\x1d.cln.ListtransactionsResponse\"\x00\x12*\n\x03Pay\x12\x0f.cln.PayRequest\x1a\x10.cln.PayResponse\"\x00\x12<\n\tListNodes\x12\x15.cln.ListnodesRequest\x1a\x16.cln.ListnodesResponse\"\x00\x12K\n\x0eWaitAnyInvoice\x12\x1a.cln.WaitanyinvoiceRequest\x1a\x1b.cln.WaitanyinvoiceResponse\"\x00\x12\x42\n\x0bWaitInvoice\x12\x17.cln.WaitinvoiceRequest\x1a\x18.cln.WaitinvoiceResponse\"\x00\x12\x42\n\x0bWaitSendPay\x12\x17.cln.WaitsendpayRequest\x1a\x18.cln.WaitsendpayResponse\"\x00\x12\x36\n\x07NewAddr\x12\x13.cln.NewaddrRequest\x1a\x14.cln.NewaddrResponse\"\x00\x12\x39\n\x08Withdraw\x12\x14.cln.WithdrawRequest\x1a\x15.cln.WithdrawResponse\"\x00\x12\x36\n\x07KeySend\x12\x13.cln.KeysendRequest\x1a\x14.cln.KeysendResponse\"\x00\x12\x39\n\x08\x46undPsbt\x12\x14.cln.FundpsbtRequest\x1a\x15.cln.FundpsbtResponse\"\x00\x12\x39\n\x08SendPsbt\x12\x14.cln.SendpsbtRequest\x1a\x15.cln.SendpsbtResponse\"\x00\x12\x39\n\x08SignPsbt\x12\x14.cln.SignpsbtRequest\x1a\x15.cln.SignpsbtResponse\"\x00\x12\x39\n\x08UtxoPsbt\x12\x14.cln.UtxopsbtRequest\x1a\x15.cln.UtxopsbtResponse\"\x00\x12<\n\tTxDiscard\x12\x15.cln.TxdiscardRequest\x1a\x16.cln.TxdiscardResponse\"\x00\x12<\n\tTxPrepare\x12\x15.cln.TxprepareRequest\x1a\x16.cln.TxprepareResponse\"\x00\x12\x33\n\x06TxSend\x12\x12.cln.TxsendRequest\x1a\x13.cln.TxsendResponse\"\x00\x12Q\n\x10ListPeerChannels\x12\x1c.cln.ListpeerchannelsRequest\x1a\x1d.cln.ListpeerchannelsResponse\"\x00\x12W\n\x12ListClosedChannels\x12\x1e.cln.ListclosedchannelsRequest\x1a\x1f.cln.ListclosedchannelsResponse\"\x00\x12<\n\tDecodePay\x12\x15.cln.DecodepayRequest\x1a\x16.cln.DecodepayResponse\"\x00\x12\x33\n\x06\x44\x65\x63ode\x12\x12.cln.DecodeRequest\x1a\x13.cln.DecodeResponse\"\x00\x12\x33\n\x06\x44\x65lPay\x12\x12.cln.DelpayRequest\x1a\x13.cln.DelpayResponse\"\x00\x12?\n\nDelForward\x12\x16.cln.DelforwardRequest\x1a\x17.cln.DelforwardResponse\"\x00\x12\x45\n\x0c\x44isableOffer\x12\x18.cln.DisableofferRequest\x1a\x19.cln.DisableofferResponse\"\x00\x12?\n\nDisconnect\x12\x16.cln.DisconnectRequest\x1a\x17.cln.DisconnectResponse\"\x00\x12\x39\n\x08\x46\x65\x65rates\x12\x14.cln.FeeratesRequest\x1a\x15.cln.FeeratesResponse\"\x00\x12\x45\n\x0c\x46\x65tchInvoice\x12\x18.cln.FetchinvoiceRequest\x1a\x19.cln.FetchinvoiceResponse\"\x00\x12W\n\x12\x46undChannel_Cancel\x12\x1e.cln.Fundchannel_cancelRequest\x1a\x1f.cln.Fundchannel_cancelResponse\"\x00\x12]\n\x14\x46undChannel_Complete\x12 .cln.Fundchannel_completeRequest\x1a!.cln.Fundchannel_completeResponse\"\x00\x12\x42\n\x0b\x46undChannel\x12\x17.cln.FundchannelRequest\x1a\x18.cln.FundchannelResponse\"\x00\x12T\n\x11\x46undChannel_Start\x12\x1d.cln.Fundchannel_startRequest\x1a\x1e.cln.Fundchannel_startResponse\"\x00\x12\x33\n\x06GetLog\x12\x12.cln.GetlogRequest\x1a\x13.cln.GetlogResponse\"\x00\x12\x39\n\x08GetRoute\x12\x14.cln.GetrouteRequest\x1a\x15.cln.GetrouteResponse\"\x00\x12\x45\n\x0cListForwards\x12\x18.cln.ListforwardsRequest\x1a\x19.cln.ListforwardsResponse\"\x00\x12?\n\nListOffers\x12\x16.cln.ListoffersRequest\x1a\x17.cln.ListoffersResponse\"\x00\x12\x39\n\x08ListPays\x12\x14.cln.ListpaysRequest\x1a\x15.cln.ListpaysResponse\"\x00\x12<\n\tListHtlcs\x12\x15.cln.ListhtlcsRequest\x1a\x16.cln.ListhtlcsResponse\"\x00\x12Q\n\x10MultiFundChannel\x12\x1c.cln.MultifundchannelRequest\x1a\x1d.cln.MultifundchannelResponse\"\x00\x12\x30\n\x05Offer\x12\x11.cln.OfferRequest\x1a\x12.cln.OfferResponse\"\x00\x12T\n\x11OpenChannel_Abort\x12\x1d.cln.Openchannel_abortRequest\x1a\x1e.cln.Openchannel_abortResponse\"\x00\x12Q\n\x10OpenChannel_Bump\x12\x1c.cln.Openchannel_bumpRequest\x1a\x1d.cln.Openchannel_bumpResponse\"\x00\x12Q\n\x10OpenChannel_Init\x12\x1c.cln.Openchannel_initRequest\x1a\x1d.cln.Openchannel_initResponse\"\x00\x12W\n\x12OpenChannel_Signed\x12\x1e.cln.Openchannel_signedRequest\x1a\x1f.cln.Openchannel_signedResponse\"\x00\x12W\n\x12OpenChannel_Update\x12\x1e.cln.Openchannel_updateRequest\x1a\x1f.cln.Openchannel_updateResponse\"\x00\x12-\n\x04Ping\x12\x10.cln.PingRequest\x1a\x11.cln.PingResponse\"\x00\x12\x33\n\x06Plugin\x12\x12.cln.PluginRequest\x1a\x13.cln.PluginResponse\"\x00\x12H\n\rRenePayStatus\x12\x19.cln.RenepaystatusRequest\x1a\x1a.cln.RenepaystatusResponse\"\x00\x12\x36\n\x07RenePay\x12\x13.cln.RenepayRequest\x1a\x14.cln.RenepayResponse\"\x00\x12H\n\rReserveInputs\x12\x19.cln.ReserveinputsRequest\x1a\x1a.cln.ReserveinputsResponse\"\x00\x12H\n\rSendCustomMsg\x12\x19.cln.SendcustommsgRequest\x1a\x1a.cln.SendcustommsgResponse\"\x00\x12\x42\n\x0bSendInvoice\x12\x17.cln.SendinvoiceRequest\x1a\x18.cln.SendinvoiceResponse\"\x00\x12Q\n\x10SendOnionMessage\x12\x1c.cln.SendonionmessageRequest\x1a\x1d.cln.SendonionmessageResponse\"\x00\x12?\n\nSetChannel\x12\x16.cln.SetchannelRequest\x1a\x17.cln.SetchannelResponse\"\x00\x12<\n\tSetConfig\x12\x15.cln.SetconfigRequest\x1a\x16.cln.SetconfigResponse\"\x00\x12K\n\x0eSetPsbtVersion\x12\x1a.cln.SetpsbtversionRequest\x1a\x1b.cln.SetpsbtversionResponse\"\x00\x12\x42\n\x0bSignInvoice\x12\x17.cln.SigninvoiceRequest\x1a\x18.cln.SigninvoiceResponse\"\x00\x12\x42\n\x0bSignMessage\x12\x17.cln.SignmessageRequest\x1a\x18.cln.SignmessageResponse\"\x00\x12\x42\n\x0bSplice_Init\x12\x17.cln.Splice_initRequest\x1a\x18.cln.Splice_initResponse\"\x00\x12H\n\rSplice_Signed\x12\x19.cln.Splice_signedRequest\x1a\x1a.cln.Splice_signedResponse\"\x00\x12H\n\rSplice_Update\x12\x19.cln.Splice_updateRequest\x1a\x1a.cln.Splice_updateResponse\"\x00\x12N\n\x0fUnreserveInputs\x12\x1b.cln.UnreserveinputsRequest\x1a\x1c.cln.UnreserveinputsResponse\"\x00\x12H\n\rUpgradeWallet\x12\x19.cln.UpgradewalletRequest\x1a\x1a.cln.UpgradewalletResponse\"\x00\x12N\n\x0fWaitBlockHeight\x12\x1b.cln.WaitblockheightRequest\x1a\x1c.cln.WaitblockheightResponse\"\x00\x12-\n\x04Wait\x12\x10.cln.WaitRequest\x1a\x11.cln.WaitResponse\"\x00\x12-\n\x04Stop\x12\x10.cln.StopRequest\x1a\x11.cln.StopResponse\"\x00\x12T\n\x11PreApproveKeysend\x12\x1d.cln.PreapprovekeysendRequest\x1a\x1e.cln.PreapprovekeysendResponse\"\x00\x12T\n\x11PreApproveInvoice\x12\x1d.cln.PreapproveinvoiceRequest\x1a\x1e.cln.PreapproveinvoiceResponse\"\x00\x12\x45\n\x0cStaticBackup\x12\x18.cln.StaticbackupRequest\x1a\x19.cln.StaticbackupResponse\"\x00\x12N\n\x0f\x42kprChannelsApy\x12\x1b.cln.BkprchannelsapyRequest\x1a\x1c.cln.BkprchannelsapyResponse\"\x00\x12T\n\x11\x42kprDumpIncomeCsv\x12\x1d.cln.BkprdumpincomecsvRequest\x1a\x1e.cln.BkprdumpincomecsvResponse\"\x00\x12\x42\n\x0b\x42kprInspect\x12\x17.cln.BkprinspectRequest\x1a\x18.cln.BkprinspectResponse\"\x00\x12`\n\x15\x42kprListAccountEvents\x12!.cln.BkprlistaccounteventsRequest\x1a\".cln.BkprlistaccounteventsResponse\"\x00\x12Q\n\x10\x42kprListBalances\x12\x1c.cln.BkprlistbalancesRequest\x1a\x1d.cln.BkprlistbalancesResponse\"\x00\x12K\n\x0e\x42kprListIncome\x12\x1a.cln.BkprlistincomeRequest\x1a\x1b.cln.BkprlistincomeResponse\"\x00\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -142,585 +142,585 @@ _globals['_CREATEINVOICERESPONSE_CREATEINVOICESTATUS']._serialized_start=9471 _globals['_CREATEINVOICERESPONSE_CREATEINVOICESTATUS']._serialized_end=9527 _globals['_CREATEINVOICEPAID_OUTPOINT']._serialized_start=9716 - _globals['_CREATEINVOICEPAID_OUTPOINT']._serialized_end=9804 - _globals['_DATASTOREREQUEST']._serialized_start=9807 - _globals['_DATASTOREREQUEST']._serialized_end=10115 - _globals['_DATASTOREREQUEST_DATASTOREMODE']._serialized_start=9960 - _globals['_DATASTOREREQUEST_DATASTOREMODE']._serialized_end=10072 - _globals['_DATASTORERESPONSE']._serialized_start=10118 - _globals['_DATASTORERESPONSE']._serialized_end=10248 - _globals['_DATASTOREUSAGEREQUEST']._serialized_start=10250 - _globals['_DATASTOREUSAGEREQUEST']._serialized_end=10286 - _globals['_DATASTOREUSAGERESPONSE']._serialized_start=10288 - _globals['_DATASTOREUSAGERESPONSE']._serialized_end=10395 - _globals['_DATASTOREUSAGEDATASTOREUSAGE']._serialized_start=10397 - _globals['_DATASTOREUSAGEDATASTOREUSAGE']._serialized_end=10495 - _globals['_CREATEONIONREQUEST']._serialized_start=10498 - _globals['_CREATEONIONREQUEST']._serialized_end=10655 - _globals['_CREATEONIONRESPONSE']._serialized_start=10657 - _globals['_CREATEONIONRESPONSE']._serialized_end=10717 - _globals['_CREATEONIONHOPS']._serialized_start=10719 - _globals['_CREATEONIONHOPS']._serialized_end=10769 - _globals['_DELDATASTOREREQUEST']._serialized_start=10771 - _globals['_DELDATASTOREREQUEST']._serialized_end=10845 - _globals['_DELDATASTORERESPONSE']._serialized_start=10848 - _globals['_DELDATASTORERESPONSE']._serialized_end=10981 - _globals['_DELINVOICEREQUEST']._serialized_start=10984 - _globals['_DELINVOICEREQUEST']._serialized_end=11166 - _globals['_DELINVOICEREQUEST_DELINVOICESTATUS']._serialized_start=11100 - _globals['_DELINVOICEREQUEST_DELINVOICESTATUS']._serialized_end=11153 - _globals['_DELINVOICERESPONSE']._serialized_start=11169 - _globals['_DELINVOICERESPONSE']._serialized_end=11911 - _globals['_DELINVOICERESPONSE_DELINVOICESTATUS']._serialized_start=11100 - _globals['_DELINVOICERESPONSE_DELINVOICESTATUS']._serialized_end=11153 - _globals['_INVOICEREQUEST']._serialized_start=11914 - _globals['_INVOICEREQUEST']._serialized_end=12164 - _globals['_INVOICERESPONSE']._serialized_start=12167 - _globals['_INVOICERESPONSE']._serialized_end=12572 - _globals['_LISTDATASTOREREQUEST']._serialized_start=12574 - _globals['_LISTDATASTOREREQUEST']._serialized_end=12609 - _globals['_LISTDATASTORERESPONSE']._serialized_start=12611 - _globals['_LISTDATASTORERESPONSE']._serialized_end=12682 - _globals['_LISTDATASTOREDATASTORE']._serialized_start=12685 - _globals['_LISTDATASTOREDATASTORE']._serialized_end=12820 - _globals['_LISTINVOICESREQUEST']._serialized_start=12823 - _globals['_LISTINVOICESREQUEST']._serialized_end=13173 - _globals['_LISTINVOICESREQUEST_LISTINVOICESINDEX']._serialized_start=13044 - _globals['_LISTINVOICESREQUEST_LISTINVOICESINDEX']._serialized_end=13089 - _globals['_LISTINVOICESRESPONSE']._serialized_start=13175 - _globals['_LISTINVOICESRESPONSE']._serialized_end=13242 - _globals['_LISTINVOICESINVOICES']._serialized_start=13245 - _globals['_LISTINVOICESINVOICES']._serialized_end=14097 - _globals['_LISTINVOICESINVOICES_LISTINVOICESINVOICESSTATUS']._serialized_start=13813 - _globals['_LISTINVOICESINVOICES_LISTINVOICESINVOICESSTATUS']._serialized_end=13876 - _globals['_LISTINVOICESINVOICESPAID_OUTPOINT']._serialized_start=14099 - _globals['_LISTINVOICESINVOICESPAID_OUTPOINT']._serialized_end=14194 - _globals['_SENDONIONREQUEST']._serialized_start=14197 - _globals['_SENDONIONREQUEST']._serialized_end=14633 - _globals['_SENDONIONRESPONSE']._serialized_start=14636 - _globals['_SENDONIONRESPONSE']._serialized_end=15251 - _globals['_SENDONIONRESPONSE_SENDONIONSTATUS']._serialized_start=15063 - _globals['_SENDONIONRESPONSE_SENDONIONSTATUS']._serialized_end=15107 - _globals['_SENDONIONFIRST_HOP']._serialized_start=15253 - _globals['_SENDONIONFIRST_HOP']._serialized_end=15334 - _globals['_LISTSENDPAYSREQUEST']._serialized_start=15337 - _globals['_LISTSENDPAYSREQUEST']._serialized_end=15753 - _globals['_LISTSENDPAYSREQUEST_LISTSENDPAYSSTATUS']._serialized_start=15578 - _globals['_LISTSENDPAYSREQUEST_LISTSENDPAYSSTATUS']._serialized_end=15637 - _globals['_LISTSENDPAYSREQUEST_LISTSENDPAYSINDEX']._serialized_start=15639 - _globals['_LISTSENDPAYSREQUEST_LISTSENDPAYSINDEX']._serialized_end=15684 - _globals['_LISTSENDPAYSRESPONSE']._serialized_start=15755 - _globals['_LISTSENDPAYSRESPONSE']._serialized_end=15822 - _globals['_LISTSENDPAYSPAYMENTS']._serialized_start=15825 - _globals['_LISTSENDPAYSPAYMENTS']._serialized_end=16589 - _globals['_LISTSENDPAYSPAYMENTS_LISTSENDPAYSPAYMENTSSTATUS']._serialized_start=16342 - _globals['_LISTSENDPAYSPAYMENTS_LISTSENDPAYSPAYMENTSSTATUS']._serialized_end=16409 - _globals['_LISTTRANSACTIONSREQUEST']._serialized_start=16591 - _globals['_LISTTRANSACTIONSREQUEST']._serialized_end=16616 - _globals['_LISTTRANSACTIONSRESPONSE']._serialized_start=16618 - _globals['_LISTTRANSACTIONSRESPONSE']._serialized_end=16701 - _globals['_LISTTRANSACTIONSTRANSACTIONS']._serialized_start=16704 - _globals['_LISTTRANSACTIONSTRANSACTIONS']._serialized_end=16952 - _globals['_LISTTRANSACTIONSTRANSACTIONSINPUTS']._serialized_start=16954 - _globals['_LISTTRANSACTIONSTRANSACTIONSINPUTS']._serialized_end=17037 - _globals['_LISTTRANSACTIONSTRANSACTIONSOUTPUTS']._serialized_start=17039 - _globals['_LISTTRANSACTIONSTRANSACTIONSOUTPUTS']._serialized_end=17147 - _globals['_PAYREQUEST']._serialized_start=17150 - _globals['_PAYREQUEST']._serialized_end=17681 - _globals['_PAYRESPONSE']._serialized_start=17684 - _globals['_PAYRESPONSE']._serialized_end=18063 - _globals['_PAYRESPONSE_PAYSTATUS']._serialized_start=17966 - _globals['_PAYRESPONSE_PAYSTATUS']._serialized_end=18016 - _globals['_LISTNODESREQUEST']._serialized_start=18065 - _globals['_LISTNODESREQUEST']._serialized_end=18107 - _globals['_LISTNODESRESPONSE']._serialized_start=18109 - _globals['_LISTNODESRESPONSE']._serialized_end=18164 - _globals['_LISTNODESNODES']._serialized_start=18167 - _globals['_LISTNODESNODES']._serialized_end=18481 - _globals['_LISTNODESNODESOPTION_WILL_FUND']._serialized_start=18484 - _globals['_LISTNODESNODESOPTION_WILL_FUND']._serialized_end=18728 - _globals['_LISTNODESNODESADDRESSES']._serialized_start=18731 - _globals['_LISTNODESNODESADDRESSES']._serialized_end=18963 - _globals['_LISTNODESNODESADDRESSES_LISTNODESNODESADDRESSESTYPE']._serialized_start=18871 - _globals['_LISTNODESNODESADDRESSES_LISTNODESNODESADDRESSESTYPE']._serialized_end=18951 - _globals['_WAITANYINVOICEREQUEST']._serialized_start=18965 - _globals['_WAITANYINVOICEREQUEST']._serialized_end=19068 - _globals['_WAITANYINVOICERESPONSE']._serialized_start=19071 - _globals['_WAITANYINVOICERESPONSE']._serialized_end=19774 - _globals['_WAITANYINVOICERESPONSE_WAITANYINVOICESTATUS']._serialized_start=19565 - _globals['_WAITANYINVOICERESPONSE_WAITANYINVOICESTATUS']._serialized_end=19610 - _globals['_WAITANYINVOICEPAID_OUTPOINT']._serialized_start=19776 - _globals['_WAITANYINVOICEPAID_OUTPOINT']._serialized_end=19865 - _globals['_WAITINVOICEREQUEST']._serialized_start=19867 - _globals['_WAITINVOICEREQUEST']._serialized_end=19902 - _globals['_WAITINVOICERESPONSE']._serialized_start=19905 - _globals['_WAITINVOICERESPONSE']._serialized_end=20593 - _globals['_WAITINVOICERESPONSE_WAITINVOICESTATUS']._serialized_start=20387 - _globals['_WAITINVOICERESPONSE_WAITINVOICESTATUS']._serialized_end=20429 - _globals['_WAITINVOICEPAID_OUTPOINT']._serialized_start=20595 - _globals['_WAITINVOICEPAID_OUTPOINT']._serialized_end=20681 - _globals['_WAITSENDPAYREQUEST']._serialized_start=20684 - _globals['_WAITSENDPAYREQUEST']._serialized_end=20826 - _globals['_WAITSENDPAYRESPONSE']._serialized_start=20829 - _globals['_WAITSENDPAYRESPONSE']._serialized_end=21483 - _globals['_WAITSENDPAYRESPONSE_WAITSENDPAYSTATUS']._serialized_start=21289 - _globals['_WAITSENDPAYRESPONSE_WAITSENDPAYSTATUS']._serialized_end=21322 - _globals['_NEWADDRREQUEST']._serialized_start=21486 - _globals['_NEWADDRREQUEST']._serialized_end=21637 - _globals['_NEWADDRREQUEST_NEWADDRADDRESSTYPE']._serialized_start=21570 - _globals['_NEWADDRREQUEST_NEWADDRADDRESSTYPE']._serialized_end=21621 - _globals['_NEWADDRRESPONSE']._serialized_start=21639 - _globals['_NEWADDRRESPONSE']._serialized_end=21716 - _globals['_WITHDRAWREQUEST']._serialized_start=21719 - _globals['_WITHDRAWREQUEST']._serialized_end=21904 - _globals['_WITHDRAWRESPONSE']._serialized_start=21906 - _globals['_WITHDRAWRESPONSE']._serialized_end=21964 - _globals['_KEYSENDREQUEST']._serialized_start=21967 - _globals['_KEYSENDREQUEST']._serialized_end=22353 - _globals['_KEYSENDRESPONSE']._serialized_start=22356 - _globals['_KEYSENDRESPONSE']._serialized_end=22726 - _globals['_KEYSENDRESPONSE_KEYSENDSTATUS']._serialized_start=22650 - _globals['_KEYSENDRESPONSE_KEYSENDSTATUS']._serialized_end=22679 - _globals['_FUNDPSBTREQUEST']._serialized_start=22729 - _globals['_FUNDPSBTREQUEST']._serialized_end=23149 - _globals['_FUNDPSBTRESPONSE']._serialized_start=23152 - _globals['_FUNDPSBTRESPONSE']._serialized_end=23369 - _globals['_FUNDPSBTRESERVATIONS']._serialized_start=23371 - _globals['_FUNDPSBTRESERVATIONS']._serialized_end=23488 - _globals['_SENDPSBTREQUEST']._serialized_start=23490 - _globals['_SENDPSBTREQUEST']._serialized_end=23555 - _globals['_SENDPSBTRESPONSE']._serialized_start=23557 - _globals['_SENDPSBTRESPONSE']._serialized_end=23601 - _globals['_SIGNPSBTREQUEST']._serialized_start=23603 - _globals['_SIGNPSBTREQUEST']._serialized_end=23652 - _globals['_SIGNPSBTRESPONSE']._serialized_start=23654 - _globals['_SIGNPSBTRESPONSE']._serialized_end=23693 - _globals['_UTXOPSBTREQUEST']._serialized_start=23696 - _globals['_UTXOPSBTREQUEST']._serialized_end=24112 - _globals['_UTXOPSBTRESPONSE']._serialized_start=24115 - _globals['_UTXOPSBTRESPONSE']._serialized_end=24332 - _globals['_UTXOPSBTRESERVATIONS']._serialized_start=24334 - _globals['_UTXOPSBTRESERVATIONS']._serialized_end=24451 - _globals['_TXDISCARDREQUEST']._serialized_start=24453 - _globals['_TXDISCARDREQUEST']._serialized_end=24485 - _globals['_TXDISCARDRESPONSE']._serialized_start=24487 - _globals['_TXDISCARDRESPONSE']._serialized_end=24541 - _globals['_TXPREPAREREQUEST']._serialized_start=24544 - _globals['_TXPREPAREREQUEST']._serialized_end=24708 - _globals['_TXPREPARERESPONSE']._serialized_start=24710 - _globals['_TXPREPARERESPONSE']._serialized_end=24778 - _globals['_TXSENDREQUEST']._serialized_start=24780 - _globals['_TXSENDREQUEST']._serialized_end=24809 - _globals['_TXSENDRESPONSE']._serialized_start=24811 - _globals['_TXSENDRESPONSE']._serialized_end=24867 - _globals['_LISTPEERCHANNELSREQUEST']._serialized_start=24869 - _globals['_LISTPEERCHANNELSREQUEST']._serialized_end=24918 - _globals['_LISTPEERCHANNELSRESPONSE']._serialized_start=24920 - _globals['_LISTPEERCHANNELSRESPONSE']._serialized_end=24995 - _globals['_LISTPEERCHANNELSCHANNELS']._serialized_start=24998 - _globals['_LISTPEERCHANNELSCHANNELS']._serialized_end=28613 - _globals['_LISTPEERCHANNELSCHANNELS_LISTPEERCHANNELSCHANNELSSTATE']._serialized_start=27207 - _globals['_LISTPEERCHANNELSCHANNELS_LISTPEERCHANNELSCHANNELSSTATE']._serialized_end=27591 - _globals['_LISTPEERCHANNELSCHANNELSUPDATES']._serialized_start=28616 - _globals['_LISTPEERCHANNELSCHANNELSUPDATES']._serialized_end=28798 - _globals['_LISTPEERCHANNELSCHANNELSUPDATESLOCAL']._serialized_start=28801 - _globals['_LISTPEERCHANNELSCHANNELSUPDATESLOCAL']._serialized_end=29160 - _globals['_LISTPEERCHANNELSCHANNELSUPDATESREMOTE']._serialized_start=29163 - _globals['_LISTPEERCHANNELSCHANNELSUPDATESREMOTE']._serialized_end=29523 - _globals['_LISTPEERCHANNELSCHANNELSFEERATE']._serialized_start=29525 - _globals['_LISTPEERCHANNELSCHANNELSFEERATE']._serialized_end=29618 - _globals['_LISTPEERCHANNELSCHANNELSINFLIGHT']._serialized_start=29621 - _globals['_LISTPEERCHANNELSCHANNELSINFLIGHT']._serialized_end=30005 - _globals['_LISTPEERCHANNELSCHANNELSFUNDING']._serialized_start=30008 - _globals['_LISTPEERCHANNELSCHANNELSFUNDING']._serialized_end=30346 - _globals['_LISTPEERCHANNELSCHANNELSALIAS']._serialized_start=30348 - _globals['_LISTPEERCHANNELSCHANNELSALIAS']._serialized_end=30441 - _globals['_LISTPEERCHANNELSCHANNELSHTLCS']._serialized_start=30444 - _globals['_LISTPEERCHANNELSCHANNELSHTLCS']._serialized_end=30926 - _globals['_LISTPEERCHANNELSCHANNELSHTLCS_LISTPEERCHANNELSCHANNELSHTLCSDIRECTION']._serialized_start=30765 - _globals['_LISTPEERCHANNELSCHANNELSHTLCS_LISTPEERCHANNELSCHANNELSHTLCSDIRECTION']._serialized_end=30822 - _globals['_LISTCLOSEDCHANNELSREQUEST']._serialized_start=30928 - _globals['_LISTCLOSEDCHANNELSREQUEST']._serialized_end=30979 - _globals['_LISTCLOSEDCHANNELSRESPONSE']._serialized_start=30981 - _globals['_LISTCLOSEDCHANNELSRESPONSE']._serialized_end=31072 - _globals['_LISTCLOSEDCHANNELSCLOSEDCHANNELS']._serialized_start=31075 - _globals['_LISTCLOSEDCHANNELSCLOSEDCHANNELS']._serialized_end=32341 - _globals['_LISTCLOSEDCHANNELSCLOSEDCHANNELS_LISTCLOSEDCHANNELSCLOSEDCHANNELSCLOSE_CAUSE']._serialized_start=32012 - _globals['_LISTCLOSEDCHANNELSCLOSEDCHANNELS_LISTCLOSEDCHANNELSCLOSEDCHANNELSCLOSE_CAUSE']._serialized_end=32130 - _globals['_LISTCLOSEDCHANNELSCLOSEDCHANNELSALIAS']._serialized_start=32343 - _globals['_LISTCLOSEDCHANNELSCLOSEDCHANNELSALIAS']._serialized_end=32444 - _globals['_DECODEPAYREQUEST']._serialized_start=32446 - _globals['_DECODEPAYREQUEST']._serialized_end=32522 - _globals['_DECODEPAYRESPONSE']._serialized_start=32525 - _globals['_DECODEPAYRESPONSE']._serialized_end=33050 - _globals['_DECODEPAYFALLBACKS']._serialized_start=33053 - _globals['_DECODEPAYFALLBACKS']._serialized_end=33261 - _globals['_DECODEPAYFALLBACKS_DECODEPAYFALLBACKSTYPE']._serialized_start=33174 - _globals['_DECODEPAYFALLBACKS_DECODEPAYFALLBACKSTYPE']._serialized_end=33252 - _globals['_DECODEPAYEXTRA']._serialized_start=33263 - _globals['_DECODEPAYEXTRA']._serialized_end=33306 - _globals['_DECODEREQUEST']._serialized_start=33308 - _globals['_DECODEREQUEST']._serialized_end=33339 - _globals['_DECODERESPONSE']._serialized_start=33342 - _globals['_DECODERESPONSE']._serialized_end=37877 - _globals['_DECODERESPONSE_DECODETYPE']._serialized_start=36070 - _globals['_DECODERESPONSE_DECODETYPE']._serialized_end=36201 - _globals['_DECODEOFFER_PATHS']._serialized_start=37880 - _globals['_DECODEOFFER_PATHS']._serialized_end=38051 - _globals['_DECODEOFFER_RECURRENCEPAYWINDOW']._serialized_start=38054 - _globals['_DECODEOFFER_RECURRENCEPAYWINDOW']._serialized_end=38192 - _globals['_DECODEINVOICE_PATHSPATH']._serialized_start=38194 - _globals['_DECODEINVOICE_PATHSPATH']._serialized_end=38278 - _globals['_DECODEINVOICE_FALLBACKS']._serialized_start=38280 - _globals['_DECODEINVOICE_FALLBACKS']._serialized_end=38369 - _globals['_DECODEFALLBACKS']._serialized_start=38372 - _globals['_DECODEFALLBACKS']._serialized_end=38670 - _globals['_DECODEFALLBACKS_DECODEFALLBACKSTYPE']._serialized_start=38540 - _globals['_DECODEFALLBACKS_DECODEFALLBACKSTYPE']._serialized_end=38615 - _globals['_DECODEEXTRA']._serialized_start=38672 - _globals['_DECODEEXTRA']._serialized_end=38712 - _globals['_DECODERESTRICTIONS']._serialized_start=38714 - _globals['_DECODERESTRICTIONS']._serialized_end=38773 - _globals['_DELPAYREQUEST']._serialized_start=38776 - _globals['_DELPAYREQUEST']._serialized_end=38970 - _globals['_DELPAYREQUEST_DELPAYSTATUS']._serialized_start=38907 - _globals['_DELPAYREQUEST_DELPAYSTATUS']._serialized_end=38947 - _globals['_DELPAYRESPONSE']._serialized_start=38972 - _globals['_DELPAYRESPONSE']._serialized_end=39027 - _globals['_DELPAYPAYMENTS']._serialized_start=39030 - _globals['_DELPAYPAYMENTS']._serialized_end=39745 - _globals['_DELPAYPAYMENTS_DELPAYPAYMENTSSTATUS']._serialized_start=39508 - _globals['_DELPAYPAYMENTS_DELPAYPAYMENTSSTATUS']._serialized_end=39569 - _globals['_DELFORWARDREQUEST']._serialized_start=39748 - _globals['_DELFORWARDREQUEST']._serialized_end=39927 - _globals['_DELFORWARDREQUEST_DELFORWARDSTATUS']._serialized_start=39866 - _globals['_DELFORWARDREQUEST_DELFORWARDSTATUS']._serialized_end=39927 - _globals['_DELFORWARDRESPONSE']._serialized_start=39929 - _globals['_DELFORWARDRESPONSE']._serialized_end=39949 - _globals['_DISABLEOFFERREQUEST']._serialized_start=39951 - _globals['_DISABLEOFFERREQUEST']._serialized_end=39990 - _globals['_DISABLEOFFERRESPONSE']._serialized_start=39993 - _globals['_DISABLEOFFERRESPONSE']._serialized_end=40129 - _globals['_DISCONNECTREQUEST']._serialized_start=40131 - _globals['_DISCONNECTREQUEST']._serialized_end=40192 - _globals['_DISCONNECTRESPONSE']._serialized_start=40194 - _globals['_DISCONNECTRESPONSE']._serialized_end=40214 - _globals['_FEERATESREQUEST']._serialized_start=40216 - _globals['_FEERATESREQUEST']._serialized_end=40323 - _globals['_FEERATESREQUEST_FEERATESSTYLE']._serialized_start=40286 - _globals['_FEERATESREQUEST_FEERATESSTYLE']._serialized_end=40323 - _globals['_FEERATESRESPONSE']._serialized_start=40326 - _globals['_FEERATESRESPONSE']._serialized_end=40610 - _globals['_FEERATESPERKB']._serialized_start=40613 - _globals['_FEERATESPERKB']._serialized_end=41080 - _globals['_FEERATESPERKBESTIMATES']._serialized_start=41083 - _globals['_FEERATESPERKBESTIMATES']._serialized_end=41233 - _globals['_FEERATESPERKW']._serialized_start=41236 - _globals['_FEERATESPERKW']._serialized_end=41703 - _globals['_FEERATESPERKWESTIMATES']._serialized_start=41706 - _globals['_FEERATESPERKWESTIMATES']._serialized_end=41856 - _globals['_FEERATESONCHAIN_FEE_ESTIMATES']._serialized_start=41859 - _globals['_FEERATESONCHAIN_FEE_ESTIMATES']._serialized_end=42142 - _globals['_FETCHINVOICEREQUEST']._serialized_start=42145 - _globals['_FETCHINVOICEREQUEST']._serialized_end=42506 - _globals['_FETCHINVOICERESPONSE']._serialized_start=42509 - _globals['_FETCHINVOICERESPONSE']._serialized_end=42663 - _globals['_FETCHINVOICECHANGES']._serialized_start=42666 - _globals['_FETCHINVOICECHANGES']._serialized_end=42924 - _globals['_FETCHINVOICENEXT_PERIOD']._serialized_start=42926 - _globals['_FETCHINVOICENEXT_PERIOD']._serialized_end=43052 - _globals['_FUNDCHANNEL_CANCELREQUEST']._serialized_start=43054 - _globals['_FUNDCHANNEL_CANCELREQUEST']._serialized_end=43093 - _globals['_FUNDCHANNEL_CANCELRESPONSE']._serialized_start=43095 - _globals['_FUNDCHANNEL_CANCELRESPONSE']._serialized_end=43142 - _globals['_FUNDCHANNEL_COMPLETEREQUEST']._serialized_start=43144 - _globals['_FUNDCHANNEL_COMPLETEREQUEST']._serialized_end=43199 - _globals['_FUNDCHANNEL_COMPLETERESPONSE']._serialized_start=43201 - _globals['_FUNDCHANNEL_COMPLETERESPONSE']._serialized_end=43280 - _globals['_FUNDCHANNELREQUEST']._serialized_start=43283 - _globals['_FUNDCHANNELREQUEST']._serialized_end=43790 - _globals['_FUNDCHANNELRESPONSE']._serialized_start=43793 - _globals['_FUNDCHANNELRESPONSE']._serialized_end=44022 - _globals['_FUNDCHANNELCHANNEL_TYPE']._serialized_start=44024 - _globals['_FUNDCHANNELCHANNEL_TYPE']._serialized_end=44100 - _globals['_FUNDCHANNEL_STARTREQUEST']._serialized_start=44103 - _globals['_FUNDCHANNEL_STARTREQUEST']._serialized_end=44446 - _globals['_FUNDCHANNEL_STARTRESPONSE']._serialized_start=44449 - _globals['_FUNDCHANNEL_STARTRESPONSE']._serialized_end=44698 - _globals['_FUNDCHANNEL_STARTCHANNEL_TYPE']._serialized_start=44700 - _globals['_FUNDCHANNEL_STARTCHANNEL_TYPE']._serialized_end=44782 - _globals['_GETLOGREQUEST']._serialized_start=44785 - _globals['_GETLOGREQUEST']._serialized_end=44942 - _globals['_GETLOGREQUEST_GETLOGLEVEL']._serialized_start=44854 - _globals['_GETLOGREQUEST_GETLOGLEVEL']._serialized_end=44932 - _globals['_GETLOGRESPONSE']._serialized_start=44944 - _globals['_GETLOGRESPONSE']._serialized_end=45048 - _globals['_GETLOGLOG']._serialized_start=45051 - _globals['_GETLOGLOG']._serialized_end=45411 - _globals['_GETLOGLOG_GETLOGLOGTYPE']._serialized_start=45238 - _globals['_GETLOGLOG_GETLOGLOGTYPE']._serialized_end=45346 - _globals['_GETROUTEREQUEST']._serialized_start=45414 - _globals['_GETROUTEREQUEST']._serialized_end=45650 - _globals['_GETROUTERESPONSE']._serialized_start=45652 - _globals['_GETROUTERESPONSE']._serialized_end=45705 - _globals['_GETROUTEROUTE']._serialized_start=45708 - _globals['_GETROUTEROUTE']._serialized_end=45905 - _globals['_GETROUTEROUTE_GETROUTEROUTESTYLE']._serialized_start=45876 - _globals['_GETROUTEROUTE_GETROUTEROUTESTYLE']._serialized_end=45905 - _globals['_LISTFORWARDSREQUEST']._serialized_start=45908 - _globals['_LISTFORWARDSREQUEST']._serialized_end=46347 - _globals['_LISTFORWARDSREQUEST_LISTFORWARDSSTATUS']._serialized_start=46152 - _globals['_LISTFORWARDSREQUEST_LISTFORWARDSSTATUS']._serialized_end=46228 - _globals['_LISTFORWARDSREQUEST_LISTFORWARDSINDEX']._serialized_start=46230 - _globals['_LISTFORWARDSREQUEST_LISTFORWARDSINDEX']._serialized_end=46275 - _globals['_LISTFORWARDSRESPONSE']._serialized_start=46349 - _globals['_LISTFORWARDSRESPONSE']._serialized_end=46416 - _globals['_LISTFORWARDSFORWARDS']._serialized_start=46419 - _globals['_LISTFORWARDSFORWARDS']._serialized_end=47239 - _globals['_LISTFORWARDSFORWARDS_LISTFORWARDSFORWARDSSTATUS']._serialized_start=46940 - _globals['_LISTFORWARDSFORWARDS_LISTFORWARDSFORWARDSSTATUS']._serialized_end=47024 - _globals['_LISTFORWARDSFORWARDS_LISTFORWARDSFORWARDSSTYLE']._serialized_start=47026 - _globals['_LISTFORWARDSFORWARDS_LISTFORWARDSFORWARDSSTYLE']._serialized_end=47074 - _globals['_LISTOFFERSREQUEST']._serialized_start=47241 - _globals['_LISTOFFERSREQUEST']._serialized_end=47338 - _globals['_LISTOFFERSRESPONSE']._serialized_start=47340 - _globals['_LISTOFFERSRESPONSE']._serialized_end=47399 - _globals['_LISTOFFERSOFFERS']._serialized_start=47402 - _globals['_LISTOFFERSOFFERS']._serialized_end=47534 - _globals['_LISTPAYSREQUEST']._serialized_start=47537 - _globals['_LISTPAYSREQUEST']._serialized_end=47756 - _globals['_LISTPAYSREQUEST_LISTPAYSSTATUS']._serialized_start=47662 - _globals['_LISTPAYSREQUEST_LISTPAYSSTATUS']._serialized_end=47717 - _globals['_LISTPAYSRESPONSE']._serialized_start=47758 - _globals['_LISTPAYSRESPONSE']._serialized_end=47809 - _globals['_LISTPAYSPAYS']._serialized_start=47812 - _globals['_LISTPAYSPAYS']._serialized_end=48451 - _globals['_LISTPAYSPAYS_LISTPAYSPAYSSTATUS']._serialized_start=48226 - _globals['_LISTPAYSPAYS_LISTPAYSPAYSSTATUS']._serialized_end=48285 - _globals['_LISTHTLCSREQUEST']._serialized_start=48453 - _globals['_LISTHTLCSREQUEST']._serialized_end=48495 - _globals['_LISTHTLCSRESPONSE']._serialized_start=48497 - _globals['_LISTHTLCSRESPONSE']._serialized_end=48552 - _globals['_LISTHTLCSHTLCS']._serialized_start=48555 - _globals['_LISTHTLCSHTLCS']._serialized_end=48820 - _globals['_LISTHTLCSHTLCS_LISTHTLCSHTLCSDIRECTION']._serialized_start=48778 - _globals['_LISTHTLCSHTLCS_LISTHTLCSHTLCSDIRECTION']._serialized_end=48820 - _globals['_MULTIFUNDCHANNELREQUEST']._serialized_start=48823 - _globals['_MULTIFUNDCHANNELREQUEST']._serialized_end=49129 - _globals['_MULTIFUNDCHANNELRESPONSE']._serialized_start=49132 - _globals['_MULTIFUNDCHANNELRESPONSE']._serialized_end=49284 - _globals['_MULTIFUNDCHANNELDESTINATIONS']._serialized_start=49287 - _globals['_MULTIFUNDCHANNELDESTINATIONS']._serialized_end=49670 - _globals['_MULTIFUNDCHANNELCHANNEL_IDS']._serialized_start=49673 - _globals['_MULTIFUNDCHANNELCHANNEL_IDS']._serialized_end=49876 - _globals['_MULTIFUNDCHANNELCHANNEL_IDSCHANNEL_TYPE']._serialized_start=49878 - _globals['_MULTIFUNDCHANNELCHANNEL_IDSCHANNEL_TYPE']._serialized_end=49970 - _globals['_MULTIFUNDCHANNELFAILED']._serialized_start=49973 - _globals['_MULTIFUNDCHANNELFAILED']._serialized_end=50248 - _globals['_MULTIFUNDCHANNELFAILED_MULTIFUNDCHANNELFAILEDMETHOD']._serialized_start=50134 - _globals['_MULTIFUNDCHANNELFAILED_MULTIFUNDCHANNELFAILEDMETHOD']._serialized_end=50248 - _globals['_MULTIFUNDCHANNELFAILEDERROR']._serialized_start=50250 - _globals['_MULTIFUNDCHANNELFAILEDERROR']._serialized_end=50310 - _globals['_OFFERREQUEST']._serialized_start=50313 - _globals['_OFFERREQUEST']._serialized_end=50762 - _globals['_OFFERRESPONSE']._serialized_start=50765 - _globals['_OFFERRESPONSE']._serialized_end=50911 - _globals['_OPENCHANNEL_ABORTREQUEST']._serialized_start=50913 - _globals['_OPENCHANNEL_ABORTREQUEST']._serialized_end=50959 - _globals['_OPENCHANNEL_ABORTRESPONSE']._serialized_start=50961 - _globals['_OPENCHANNEL_ABORTRESPONSE']._serialized_end=51050 - _globals['_OPENCHANNEL_BUMPREQUEST']._serialized_start=51053 - _globals['_OPENCHANNEL_BUMPREQUEST']._serialized_end=51212 - _globals['_OPENCHANNEL_BUMPRESPONSE']._serialized_start=51215 - _globals['_OPENCHANNEL_BUMPRESPONSE']._serialized_end=51477 - _globals['_OPENCHANNEL_BUMPCHANNEL_TYPE']._serialized_start=51479 - _globals['_OPENCHANNEL_BUMPCHANNEL_TYPE']._serialized_end=51560 - _globals['_OPENCHANNEL_INITREQUEST']._serialized_start=51563 - _globals['_OPENCHANNEL_INITREQUEST']._serialized_end=51979 - _globals['_OPENCHANNEL_INITRESPONSE']._serialized_start=51982 - _globals['_OPENCHANNEL_INITRESPONSE']._serialized_end=52244 - _globals['_OPENCHANNEL_INITCHANNEL_TYPE']._serialized_start=52246 - _globals['_OPENCHANNEL_INITCHANNEL_TYPE']._serialized_end=52327 - _globals['_OPENCHANNEL_SIGNEDREQUEST']._serialized_start=52329 - _globals['_OPENCHANNEL_SIGNEDREQUEST']._serialized_end=52397 - _globals['_OPENCHANNEL_SIGNEDRESPONSE']._serialized_start=52399 - _globals['_OPENCHANNEL_SIGNEDRESPONSE']._serialized_end=52473 - _globals['_OPENCHANNEL_UPDATEREQUEST']._serialized_start=52475 - _globals['_OPENCHANNEL_UPDATEREQUEST']._serialized_end=52536 - _globals['_OPENCHANNEL_UPDATERESPONSE']._serialized_start=52539 - _globals['_OPENCHANNEL_UPDATERESPONSE']._serialized_end=52841 - _globals['_OPENCHANNEL_UPDATECHANNEL_TYPE']._serialized_start=52843 - _globals['_OPENCHANNEL_UPDATECHANNEL_TYPE']._serialized_end=52926 - _globals['_PINGREQUEST']._serialized_start=52928 - _globals['_PINGREQUEST']._serialized_end=53017 - _globals['_PINGRESPONSE']._serialized_start=53019 - _globals['_PINGRESPONSE']._serialized_end=53049 - _globals['_PLUGINREQUEST']._serialized_start=53052 - _globals['_PLUGINREQUEST']._serialized_end=53197 - _globals['_PLUGINRESPONSE']._serialized_start=53199 - _globals['_PLUGINRESPONSE']._serialized_end=53324 - _globals['_PLUGINPLUGINS']._serialized_start=53326 - _globals['_PLUGINPLUGINS']._serialized_end=53388 - _globals['_RENEPAYSTATUSREQUEST']._serialized_start=53390 - _globals['_RENEPAYSTATUSREQUEST']._serialized_end=53450 - _globals['_RENEPAYSTATUSRESPONSE']._serialized_start=53452 - _globals['_RENEPAYSTATUSRESPONSE']._serialized_end=53523 - _globals['_RENEPAYSTATUSPAYSTATUS']._serialized_start=53526 - _globals['_RENEPAYSTATUSPAYSTATUS']._serialized_end=54008 - _globals['_RENEPAYSTATUSPAYSTATUS_RENEPAYSTATUSPAYSTATUSSTATUS']._serialized_start=53871 - _globals['_RENEPAYSTATUSPAYSTATUS_RENEPAYSTATUSPAYSTATUSSTATUS']._serialized_end=53940 - _globals['_RENEPAYREQUEST']._serialized_start=54011 - _globals['_RENEPAYREQUEST']._serialized_end=54340 - _globals['_RENEPAYRESPONSE']._serialized_start=54343 - _globals['_RENEPAYRESPONSE']._serialized_end=54666 - _globals['_RENEPAYRESPONSE_RENEPAYSTATUS']._serialized_start=54596 - _globals['_RENEPAYRESPONSE_RENEPAYSTATUS']._serialized_end=54650 - _globals['_RESERVEINPUTSREQUEST']._serialized_start=54668 - _globals['_RESERVEINPUTSREQUEST']._serialized_end=54776 - _globals['_RESERVEINPUTSRESPONSE']._serialized_start=54778 - _globals['_RESERVEINPUTSRESPONSE']._serialized_end=54855 - _globals['_RESERVEINPUTSRESERVATIONS']._serialized_start=54857 - _globals['_RESERVEINPUTSRESERVATIONS']._serialized_end=54979 - _globals['_SENDCUSTOMMSGREQUEST']._serialized_start=54981 - _globals['_SENDCUSTOMMSGREQUEST']._serialized_end=55033 - _globals['_SENDCUSTOMMSGRESPONSE']._serialized_start=55035 - _globals['_SENDCUSTOMMSGRESPONSE']._serialized_end=55074 - _globals['_SENDINVOICEREQUEST']._serialized_start=55077 - _globals['_SENDINVOICEREQUEST']._serialized_end=55253 - _globals['_SENDINVOICERESPONSE']._serialized_start=55256 - _globals['_SENDINVOICERESPONSE']._serialized_end=55847 - _globals['_SENDINVOICERESPONSE_SENDINVOICESTATUS']._serialized_start=55658 - _globals['_SENDINVOICERESPONSE_SENDINVOICESTATUS']._serialized_end=55712 - _globals['_SENDONIONMESSAGEREQUEST']._serialized_start=55849 - _globals['_SENDONIONMESSAGEREQUEST']._serialized_end=55951 - _globals['_SENDONIONMESSAGERESPONSE']._serialized_start=55953 - _globals['_SENDONIONMESSAGERESPONSE']._serialized_end=55979 - _globals['_SENDONIONMESSAGEHOPS']._serialized_start=55981 - _globals['_SENDONIONMESSAGEHOPS']._serialized_end=56030 - _globals['_SETCHANNELREQUEST']._serialized_start=56033 - _globals['_SETCHANNELREQUEST']._serialized_end=56331 - _globals['_SETCHANNELRESPONSE']._serialized_start=56333 - _globals['_SETCHANNELRESPONSE']._serialized_end=56396 - _globals['_SETCHANNELCHANNELS']._serialized_start=56399 - _globals['_SETCHANNELCHANNELS']._serialized_end=56857 - _globals['_SETCONFIGREQUEST']._serialized_start=56859 - _globals['_SETCONFIGREQUEST']._serialized_end=56919 - _globals['_SETCONFIGRESPONSE']._serialized_start=56921 - _globals['_SETCONFIGRESPONSE']._serialized_end=56978 - _globals['_SETCONFIGCONFIG']._serialized_start=56981 - _globals['_SETCONFIGCONFIG']._serialized_end=57274 - _globals['_SETPSBTVERSIONREQUEST']._serialized_start=57276 - _globals['_SETPSBTVERSIONREQUEST']._serialized_end=57330 - _globals['_SETPSBTVERSIONRESPONSE']._serialized_start=57332 - _globals['_SETPSBTVERSIONRESPONSE']._serialized_end=57370 - _globals['_SIGNINVOICEREQUEST']._serialized_start=57372 - _globals['_SIGNINVOICEREQUEST']._serialized_end=57411 - _globals['_SIGNINVOICERESPONSE']._serialized_start=57413 - _globals['_SIGNINVOICERESPONSE']._serialized_end=57450 - _globals['_SIGNMESSAGEREQUEST']._serialized_start=57452 - _globals['_SIGNMESSAGEREQUEST']._serialized_end=57489 - _globals['_SIGNMESSAGERESPONSE']._serialized_start=57491 - _globals['_SIGNMESSAGERESPONSE']._serialized_end=57561 - _globals['_SPLICE_INITREQUEST']._serialized_start=57564 - _globals['_SPLICE_INITREQUEST']._serialized_end=57765 - _globals['_SPLICE_INITRESPONSE']._serialized_start=57767 - _globals['_SPLICE_INITRESPONSE']._serialized_end=57802 - _globals['_SPLICE_SIGNEDREQUEST']._serialized_start=57804 - _globals['_SPLICE_SIGNEDREQUEST']._serialized_end=57900 - _globals['_SPLICE_SIGNEDRESPONSE']._serialized_start=57902 - _globals['_SPLICE_SIGNEDRESPONSE']._serialized_end=57951 - _globals['_SPLICE_UPDATEREQUEST']._serialized_start=57953 - _globals['_SPLICE_UPDATEREQUEST']._serialized_end=58009 - _globals['_SPLICE_UPDATERESPONSE']._serialized_start=58011 - _globals['_SPLICE_UPDATERESPONSE']._serialized_end=58077 - _globals['_UNRESERVEINPUTSREQUEST']._serialized_start=58079 - _globals['_UNRESERVEINPUTSREQUEST']._serialized_end=58151 - _globals['_UNRESERVEINPUTSRESPONSE']._serialized_start=58153 - _globals['_UNRESERVEINPUTSRESPONSE']._serialized_end=58234 - _globals['_UNRESERVEINPUTSRESERVATIONS']._serialized_start=58237 - _globals['_UNRESERVEINPUTSRESERVATIONS']._serialized_end=58388 - _globals['_UPGRADEWALLETREQUEST']._serialized_start=58390 - _globals['_UPGRADEWALLETREQUEST']._serialized_end=58500 - _globals['_UPGRADEWALLETRESPONSE']._serialized_start=58503 - _globals['_UPGRADEWALLETRESPONSE']._serialized_end=58652 - _globals['_WAITBLOCKHEIGHTREQUEST']._serialized_start=58654 - _globals['_WAITBLOCKHEIGHTREQUEST']._serialized_end=58733 - _globals['_WAITBLOCKHEIGHTRESPONSE']._serialized_start=58735 - _globals['_WAITBLOCKHEIGHTRESPONSE']._serialized_end=58781 - _globals['_WAITREQUEST']._serialized_start=58784 - _globals['_WAITREQUEST']._serialized_end=59033 - _globals['_WAITREQUEST_WAITSUBSYSTEM']._serialized_start=58920 - _globals['_WAITREQUEST_WAITSUBSYSTEM']._serialized_end=58977 - _globals['_WAITREQUEST_WAITINDEXNAME']._serialized_start=58979 - _globals['_WAITREQUEST_WAITINDEXNAME']._serialized_end=59033 - _globals['_WAITRESPONSE']._serialized_start=59036 - _globals['_WAITRESPONSE']._serialized_end=59315 - _globals['_WAITRESPONSE_WAITSUBSYSTEM']._serialized_start=58920 - _globals['_WAITRESPONSE_WAITSUBSYSTEM']._serialized_end=58977 - _globals['_WAITDETAILS']._serialized_start=59318 - _globals['_WAITDETAILS']._serialized_end=59954 - _globals['_WAITDETAILS_WAITDETAILSSTATUS']._serialized_start=59660 - _globals['_WAITDETAILS_WAITDETAILSSTATUS']._serialized_end=59797 - _globals['_STOPREQUEST']._serialized_start=59956 - _globals['_STOPREQUEST']._serialized_end=59969 - _globals['_STOPRESPONSE']._serialized_start=59971 - _globals['_STOPRESPONSE']._serialized_end=60084 - _globals['_STOPRESPONSE_STOPRESULT']._serialized_start=60038 - _globals['_STOPRESPONSE_STOPRESULT']._serialized_end=60073 - _globals['_PREAPPROVEKEYSENDREQUEST']._serialized_start=60087 - _globals['_PREAPPROVEKEYSENDREQUEST']._serialized_end=60254 - _globals['_PREAPPROVEKEYSENDRESPONSE']._serialized_start=60256 - _globals['_PREAPPROVEKEYSENDRESPONSE']._serialized_end=60283 - _globals['_PREAPPROVEINVOICEREQUEST']._serialized_start=60285 - _globals['_PREAPPROVEINVOICEREQUEST']._serialized_end=60343 - _globals['_PREAPPROVEINVOICERESPONSE']._serialized_start=60345 - _globals['_PREAPPROVEINVOICERESPONSE']._serialized_end=60372 - _globals['_STATICBACKUPREQUEST']._serialized_start=60374 - _globals['_STATICBACKUPREQUEST']._serialized_end=60395 - _globals['_STATICBACKUPRESPONSE']._serialized_start=60397 - _globals['_STATICBACKUPRESPONSE']._serialized_end=60432 - _globals['_BKPRCHANNELSAPYREQUEST']._serialized_start=60434 - _globals['_BKPRCHANNELSAPYREQUEST']._serialized_end=60534 - _globals['_BKPRCHANNELSAPYRESPONSE']._serialized_start=60536 - _globals['_BKPRCHANNELSAPYRESPONSE']._serialized_end=60617 - _globals['_BKPRCHANNELSAPYCHANNELS_APY']._serialized_start=60620 - _globals['_BKPRCHANNELSAPYCHANNELS_APY']._serialized_end=61510 - _globals['_BKPRDUMPINCOMECSVREQUEST']._serialized_start=61513 - _globals['_BKPRDUMPINCOMECSVREQUEST']._serialized_end=61723 - _globals['_BKPRDUMPINCOMECSVRESPONSE']._serialized_start=61726 - _globals['_BKPRDUMPINCOMECSVRESPONSE']._serialized_end=61940 - _globals['_BKPRDUMPINCOMECSVRESPONSE_BKPRDUMPINCOMECSVCSV_FORMAT']._serialized_start=61853 - _globals['_BKPRDUMPINCOMECSVRESPONSE_BKPRDUMPINCOMECSVCSV_FORMAT']._serialized_end=61940 - _globals['_BKPRINSPECTREQUEST']._serialized_start=61942 - _globals['_BKPRINSPECTREQUEST']._serialized_end=61979 - _globals['_BKPRINSPECTRESPONSE']._serialized_start=61981 - _globals['_BKPRINSPECTRESPONSE']._serialized_end=62036 - _globals['_BKPRINSPECTTXS']._serialized_start=62039 - _globals['_BKPRINSPECTTXS']._serialized_end=62193 - _globals['_BKPRINSPECTTXSOUTPUTS']._serialized_start=62196 - _globals['_BKPRINSPECTTXSOUTPUTS']._serialized_end=62640 - _globals['_BKPRLISTACCOUNTEVENTSREQUEST']._serialized_start=62642 - _globals['_BKPRLISTACCOUNTEVENTSREQUEST']._serialized_end=62706 - _globals['_BKPRLISTACCOUNTEVENTSRESPONSE']._serialized_start=62708 - _globals['_BKPRLISTACCOUNTEVENTSRESPONSE']._serialized_end=62789 - _globals['_BKPRLISTACCOUNTEVENTSEVENTS']._serialized_start=62792 - _globals['_BKPRLISTACCOUNTEVENTSEVENTS']._serialized_end=63465 - _globals['_BKPRLISTACCOUNTEVENTSEVENTS_BKPRLISTACCOUNTEVENTSEVENTSTYPE']._serialized_start=63268 - _globals['_BKPRLISTACCOUNTEVENTSEVENTS_BKPRLISTACCOUNTEVENTSEVENTSTYPE']._serialized_end=63342 - _globals['_BKPRLISTBALANCESREQUEST']._serialized_start=63467 - _globals['_BKPRLISTBALANCESREQUEST']._serialized_end=63492 - _globals['_BKPRLISTBALANCESRESPONSE']._serialized_start=63494 - _globals['_BKPRLISTBALANCESRESPONSE']._serialized_end=63569 - _globals['_BKPRLISTBALANCESACCOUNTS']._serialized_start=63572 - _globals['_BKPRLISTBALANCESACCOUNTS']._serialized_end=63898 - _globals['_BKPRLISTBALANCESACCOUNTSBALANCES']._serialized_start=63900 - _globals['_BKPRLISTBALANCESACCOUNTSBALANCES']._serialized_end=63988 - _globals['_BKPRLISTINCOMEREQUEST']._serialized_start=63991 - _globals['_BKPRLISTINCOMEREQUEST']._serialized_end=64142 - _globals['_BKPRLISTINCOMERESPONSE']._serialized_start=64144 - _globals['_BKPRLISTINCOMERESPONSE']._serialized_end=64225 - _globals['_BKPRLISTINCOMEINCOME_EVENTS']._serialized_start=64228 - _globals['_BKPRLISTINCOMEINCOME_EVENTS']._serialized_end=64537 - _globals['_NODE']._serialized_start=64540 - _globals['_NODE']._serialized_end=71159 + _globals['_CREATEINVOICEPAID_OUTPOINT']._serialized_end=9774 + _globals['_DATASTOREREQUEST']._serialized_start=9777 + _globals['_DATASTOREREQUEST']._serialized_end=10085 + _globals['_DATASTOREREQUEST_DATASTOREMODE']._serialized_start=9930 + _globals['_DATASTOREREQUEST_DATASTOREMODE']._serialized_end=10042 + _globals['_DATASTORERESPONSE']._serialized_start=10088 + _globals['_DATASTORERESPONSE']._serialized_end=10218 + _globals['_DATASTOREUSAGEREQUEST']._serialized_start=10220 + _globals['_DATASTOREUSAGEREQUEST']._serialized_end=10256 + _globals['_DATASTOREUSAGERESPONSE']._serialized_start=10258 + _globals['_DATASTOREUSAGERESPONSE']._serialized_end=10341 + _globals['_DATASTOREUSAGEDATASTOREUSAGE']._serialized_start=10343 + _globals['_DATASTOREUSAGEDATASTOREUSAGE']._serialized_end=10407 + _globals['_CREATEONIONREQUEST']._serialized_start=10410 + _globals['_CREATEONIONREQUEST']._serialized_end=10567 + _globals['_CREATEONIONRESPONSE']._serialized_start=10569 + _globals['_CREATEONIONRESPONSE']._serialized_end=10629 + _globals['_CREATEONIONHOPS']._serialized_start=10631 + _globals['_CREATEONIONHOPS']._serialized_end=10681 + _globals['_DELDATASTOREREQUEST']._serialized_start=10683 + _globals['_DELDATASTOREREQUEST']._serialized_end=10757 + _globals['_DELDATASTORERESPONSE']._serialized_start=10760 + _globals['_DELDATASTORERESPONSE']._serialized_end=10893 + _globals['_DELINVOICEREQUEST']._serialized_start=10896 + _globals['_DELINVOICEREQUEST']._serialized_end=11078 + _globals['_DELINVOICEREQUEST_DELINVOICESTATUS']._serialized_start=11012 + _globals['_DELINVOICEREQUEST_DELINVOICESTATUS']._serialized_end=11065 + _globals['_DELINVOICERESPONSE']._serialized_start=11081 + _globals['_DELINVOICERESPONSE']._serialized_end=11823 + _globals['_DELINVOICERESPONSE_DELINVOICESTATUS']._serialized_start=11012 + _globals['_DELINVOICERESPONSE_DELINVOICESTATUS']._serialized_end=11065 + _globals['_INVOICEREQUEST']._serialized_start=11826 + _globals['_INVOICEREQUEST']._serialized_end=12076 + _globals['_INVOICERESPONSE']._serialized_start=12079 + _globals['_INVOICERESPONSE']._serialized_end=12484 + _globals['_LISTDATASTOREREQUEST']._serialized_start=12486 + _globals['_LISTDATASTOREREQUEST']._serialized_end=12521 + _globals['_LISTDATASTORERESPONSE']._serialized_start=12523 + _globals['_LISTDATASTORERESPONSE']._serialized_end=12594 + _globals['_LISTDATASTOREDATASTORE']._serialized_start=12597 + _globals['_LISTDATASTOREDATASTORE']._serialized_end=12732 + _globals['_LISTINVOICESREQUEST']._serialized_start=12735 + _globals['_LISTINVOICESREQUEST']._serialized_end=13085 + _globals['_LISTINVOICESREQUEST_LISTINVOICESINDEX']._serialized_start=12956 + _globals['_LISTINVOICESREQUEST_LISTINVOICESINDEX']._serialized_end=13001 + _globals['_LISTINVOICESRESPONSE']._serialized_start=13087 + _globals['_LISTINVOICESRESPONSE']._serialized_end=13154 + _globals['_LISTINVOICESINVOICES']._serialized_start=13157 + _globals['_LISTINVOICESINVOICES']._serialized_end=14009 + _globals['_LISTINVOICESINVOICES_LISTINVOICESINVOICESSTATUS']._serialized_start=13725 + _globals['_LISTINVOICESINVOICES_LISTINVOICESINVOICESSTATUS']._serialized_end=13788 + _globals['_LISTINVOICESINVOICESPAID_OUTPOINT']._serialized_start=14011 + _globals['_LISTINVOICESINVOICESPAID_OUTPOINT']._serialized_end=14076 + _globals['_SENDONIONREQUEST']._serialized_start=14079 + _globals['_SENDONIONREQUEST']._serialized_end=14515 + _globals['_SENDONIONRESPONSE']._serialized_start=14518 + _globals['_SENDONIONRESPONSE']._serialized_end=15133 + _globals['_SENDONIONRESPONSE_SENDONIONSTATUS']._serialized_start=14945 + _globals['_SENDONIONRESPONSE_SENDONIONSTATUS']._serialized_end=14989 + _globals['_SENDONIONFIRST_HOP']._serialized_start=15135 + _globals['_SENDONIONFIRST_HOP']._serialized_end=15216 + _globals['_LISTSENDPAYSREQUEST']._serialized_start=15219 + _globals['_LISTSENDPAYSREQUEST']._serialized_end=15635 + _globals['_LISTSENDPAYSREQUEST_LISTSENDPAYSSTATUS']._serialized_start=15460 + _globals['_LISTSENDPAYSREQUEST_LISTSENDPAYSSTATUS']._serialized_end=15519 + _globals['_LISTSENDPAYSREQUEST_LISTSENDPAYSINDEX']._serialized_start=15521 + _globals['_LISTSENDPAYSREQUEST_LISTSENDPAYSINDEX']._serialized_end=15566 + _globals['_LISTSENDPAYSRESPONSE']._serialized_start=15637 + _globals['_LISTSENDPAYSRESPONSE']._serialized_end=15704 + _globals['_LISTSENDPAYSPAYMENTS']._serialized_start=15707 + _globals['_LISTSENDPAYSPAYMENTS']._serialized_end=16471 + _globals['_LISTSENDPAYSPAYMENTS_LISTSENDPAYSPAYMENTSSTATUS']._serialized_start=16224 + _globals['_LISTSENDPAYSPAYMENTS_LISTSENDPAYSPAYMENTSSTATUS']._serialized_end=16291 + _globals['_LISTTRANSACTIONSREQUEST']._serialized_start=16473 + _globals['_LISTTRANSACTIONSREQUEST']._serialized_end=16498 + _globals['_LISTTRANSACTIONSRESPONSE']._serialized_start=16500 + _globals['_LISTTRANSACTIONSRESPONSE']._serialized_end=16583 + _globals['_LISTTRANSACTIONSTRANSACTIONS']._serialized_start=16586 + _globals['_LISTTRANSACTIONSTRANSACTIONS']._serialized_end=16834 + _globals['_LISTTRANSACTIONSTRANSACTIONSINPUTS']._serialized_start=16836 + _globals['_LISTTRANSACTIONSTRANSACTIONSINPUTS']._serialized_end=16919 + _globals['_LISTTRANSACTIONSTRANSACTIONSOUTPUTS']._serialized_start=16921 + _globals['_LISTTRANSACTIONSTRANSACTIONSOUTPUTS']._serialized_end=17029 + _globals['_PAYREQUEST']._serialized_start=17032 + _globals['_PAYREQUEST']._serialized_end=17563 + _globals['_PAYRESPONSE']._serialized_start=17566 + _globals['_PAYRESPONSE']._serialized_end=17945 + _globals['_PAYRESPONSE_PAYSTATUS']._serialized_start=17848 + _globals['_PAYRESPONSE_PAYSTATUS']._serialized_end=17898 + _globals['_LISTNODESREQUEST']._serialized_start=17947 + _globals['_LISTNODESREQUEST']._serialized_end=17989 + _globals['_LISTNODESRESPONSE']._serialized_start=17991 + _globals['_LISTNODESRESPONSE']._serialized_end=18046 + _globals['_LISTNODESNODES']._serialized_start=18049 + _globals['_LISTNODESNODES']._serialized_end=18363 + _globals['_LISTNODESNODESOPTION_WILL_FUND']._serialized_start=18366 + _globals['_LISTNODESNODESOPTION_WILL_FUND']._serialized_end=18610 + _globals['_LISTNODESNODESADDRESSES']._serialized_start=18613 + _globals['_LISTNODESNODESADDRESSES']._serialized_end=18845 + _globals['_LISTNODESNODESADDRESSES_LISTNODESNODESADDRESSESTYPE']._serialized_start=18753 + _globals['_LISTNODESNODESADDRESSES_LISTNODESNODESADDRESSESTYPE']._serialized_end=18833 + _globals['_WAITANYINVOICEREQUEST']._serialized_start=18847 + _globals['_WAITANYINVOICEREQUEST']._serialized_end=18950 + _globals['_WAITANYINVOICERESPONSE']._serialized_start=18953 + _globals['_WAITANYINVOICERESPONSE']._serialized_end=19656 + _globals['_WAITANYINVOICERESPONSE_WAITANYINVOICESTATUS']._serialized_start=19447 + _globals['_WAITANYINVOICERESPONSE_WAITANYINVOICESTATUS']._serialized_end=19492 + _globals['_WAITANYINVOICEPAID_OUTPOINT']._serialized_start=19658 + _globals['_WAITANYINVOICEPAID_OUTPOINT']._serialized_end=19717 + _globals['_WAITINVOICEREQUEST']._serialized_start=19719 + _globals['_WAITINVOICEREQUEST']._serialized_end=19754 + _globals['_WAITINVOICERESPONSE']._serialized_start=19757 + _globals['_WAITINVOICERESPONSE']._serialized_end=20445 + _globals['_WAITINVOICERESPONSE_WAITINVOICESTATUS']._serialized_start=20239 + _globals['_WAITINVOICERESPONSE_WAITINVOICESTATUS']._serialized_end=20281 + _globals['_WAITINVOICEPAID_OUTPOINT']._serialized_start=20447 + _globals['_WAITINVOICEPAID_OUTPOINT']._serialized_end=20503 + _globals['_WAITSENDPAYREQUEST']._serialized_start=20506 + _globals['_WAITSENDPAYREQUEST']._serialized_end=20648 + _globals['_WAITSENDPAYRESPONSE']._serialized_start=20651 + _globals['_WAITSENDPAYRESPONSE']._serialized_end=21305 + _globals['_WAITSENDPAYRESPONSE_WAITSENDPAYSTATUS']._serialized_start=21111 + _globals['_WAITSENDPAYRESPONSE_WAITSENDPAYSTATUS']._serialized_end=21144 + _globals['_NEWADDRREQUEST']._serialized_start=21308 + _globals['_NEWADDRREQUEST']._serialized_end=21459 + _globals['_NEWADDRREQUEST_NEWADDRADDRESSTYPE']._serialized_start=21392 + _globals['_NEWADDRREQUEST_NEWADDRADDRESSTYPE']._serialized_end=21443 + _globals['_NEWADDRRESPONSE']._serialized_start=21461 + _globals['_NEWADDRRESPONSE']._serialized_end=21538 + _globals['_WITHDRAWREQUEST']._serialized_start=21541 + _globals['_WITHDRAWREQUEST']._serialized_end=21726 + _globals['_WITHDRAWRESPONSE']._serialized_start=21728 + _globals['_WITHDRAWRESPONSE']._serialized_end=21786 + _globals['_KEYSENDREQUEST']._serialized_start=21789 + _globals['_KEYSENDREQUEST']._serialized_end=22175 + _globals['_KEYSENDRESPONSE']._serialized_start=22178 + _globals['_KEYSENDRESPONSE']._serialized_end=22548 + _globals['_KEYSENDRESPONSE_KEYSENDSTATUS']._serialized_start=22472 + _globals['_KEYSENDRESPONSE_KEYSENDSTATUS']._serialized_end=22501 + _globals['_FUNDPSBTREQUEST']._serialized_start=22551 + _globals['_FUNDPSBTREQUEST']._serialized_end=22971 + _globals['_FUNDPSBTRESPONSE']._serialized_start=22974 + _globals['_FUNDPSBTRESPONSE']._serialized_end=23191 + _globals['_FUNDPSBTRESERVATIONS']._serialized_start=23193 + _globals['_FUNDPSBTRESERVATIONS']._serialized_end=23310 + _globals['_SENDPSBTREQUEST']._serialized_start=23312 + _globals['_SENDPSBTREQUEST']._serialized_end=23377 + _globals['_SENDPSBTRESPONSE']._serialized_start=23379 + _globals['_SENDPSBTRESPONSE']._serialized_end=23423 + _globals['_SIGNPSBTREQUEST']._serialized_start=23425 + _globals['_SIGNPSBTREQUEST']._serialized_end=23474 + _globals['_SIGNPSBTRESPONSE']._serialized_start=23476 + _globals['_SIGNPSBTRESPONSE']._serialized_end=23515 + _globals['_UTXOPSBTREQUEST']._serialized_start=23518 + _globals['_UTXOPSBTREQUEST']._serialized_end=23934 + _globals['_UTXOPSBTRESPONSE']._serialized_start=23937 + _globals['_UTXOPSBTRESPONSE']._serialized_end=24154 + _globals['_UTXOPSBTRESERVATIONS']._serialized_start=24156 + _globals['_UTXOPSBTRESERVATIONS']._serialized_end=24273 + _globals['_TXDISCARDREQUEST']._serialized_start=24275 + _globals['_TXDISCARDREQUEST']._serialized_end=24307 + _globals['_TXDISCARDRESPONSE']._serialized_start=24309 + _globals['_TXDISCARDRESPONSE']._serialized_end=24363 + _globals['_TXPREPAREREQUEST']._serialized_start=24366 + _globals['_TXPREPAREREQUEST']._serialized_end=24530 + _globals['_TXPREPARERESPONSE']._serialized_start=24532 + _globals['_TXPREPARERESPONSE']._serialized_end=24600 + _globals['_TXSENDREQUEST']._serialized_start=24602 + _globals['_TXSENDREQUEST']._serialized_end=24631 + _globals['_TXSENDRESPONSE']._serialized_start=24633 + _globals['_TXSENDRESPONSE']._serialized_end=24689 + _globals['_LISTPEERCHANNELSREQUEST']._serialized_start=24691 + _globals['_LISTPEERCHANNELSREQUEST']._serialized_end=24740 + _globals['_LISTPEERCHANNELSRESPONSE']._serialized_start=24742 + _globals['_LISTPEERCHANNELSRESPONSE']._serialized_end=24817 + _globals['_LISTPEERCHANNELSCHANNELS']._serialized_start=24820 + _globals['_LISTPEERCHANNELSCHANNELS']._serialized_end=28363 + _globals['_LISTPEERCHANNELSCHANNELS_LISTPEERCHANNELSCHANNELSSTATE']._serialized_start=27009 + _globals['_LISTPEERCHANNELSCHANNELS_LISTPEERCHANNELSCHANNELSSTATE']._serialized_end=27393 + _globals['_LISTPEERCHANNELSCHANNELSUPDATES']._serialized_start=28366 + _globals['_LISTPEERCHANNELSCHANNELSUPDATES']._serialized_end=28533 + _globals['_LISTPEERCHANNELSCHANNELSUPDATESLOCAL']._serialized_start=28536 + _globals['_LISTPEERCHANNELSCHANNELSUPDATESLOCAL']._serialized_end=28754 + _globals['_LISTPEERCHANNELSCHANNELSUPDATESREMOTE']._serialized_start=28757 + _globals['_LISTPEERCHANNELSCHANNELSUPDATESREMOTE']._serialized_end=28976 + _globals['_LISTPEERCHANNELSCHANNELSFEERATE']._serialized_start=28978 + _globals['_LISTPEERCHANNELSCHANNELSFEERATE']._serialized_end=29041 + _globals['_LISTPEERCHANNELSCHANNELSINFLIGHT']._serialized_start=29044 + _globals['_LISTPEERCHANNELSCHANNELSINFLIGHT']._serialized_end=29311 + _globals['_LISTPEERCHANNELSCHANNELSFUNDING']._serialized_start=29314 + _globals['_LISTPEERCHANNELSCHANNELSFUNDING']._serialized_end=29599 + _globals['_LISTPEERCHANNELSCHANNELSALIAS']._serialized_start=29601 + _globals['_LISTPEERCHANNELSCHANNELSALIAS']._serialized_end=29694 + _globals['_LISTPEERCHANNELSCHANNELSHTLCS']._serialized_start=29697 + _globals['_LISTPEERCHANNELSCHANNELSHTLCS']._serialized_end=30074 + _globals['_LISTPEERCHANNELSCHANNELSHTLCS_LISTPEERCHANNELSCHANNELSHTLCSDIRECTION']._serialized_start=29988 + _globals['_LISTPEERCHANNELSCHANNELSHTLCS_LISTPEERCHANNELSCHANNELSHTLCSDIRECTION']._serialized_end=30045 + _globals['_LISTCLOSEDCHANNELSREQUEST']._serialized_start=30076 + _globals['_LISTCLOSEDCHANNELSREQUEST']._serialized_end=30127 + _globals['_LISTCLOSEDCHANNELSRESPONSE']._serialized_start=30129 + _globals['_LISTCLOSEDCHANNELSRESPONSE']._serialized_end=30220 + _globals['_LISTCLOSEDCHANNELSCLOSEDCHANNELS']._serialized_start=30223 + _globals['_LISTCLOSEDCHANNELSCLOSEDCHANNELS']._serialized_end=31489 + _globals['_LISTCLOSEDCHANNELSCLOSEDCHANNELS_LISTCLOSEDCHANNELSCLOSEDCHANNELSCLOSE_CAUSE']._serialized_start=31160 + _globals['_LISTCLOSEDCHANNELSCLOSEDCHANNELS_LISTCLOSEDCHANNELSCLOSEDCHANNELSCLOSE_CAUSE']._serialized_end=31278 + _globals['_LISTCLOSEDCHANNELSCLOSEDCHANNELSALIAS']._serialized_start=31491 + _globals['_LISTCLOSEDCHANNELSCLOSEDCHANNELSALIAS']._serialized_end=31592 + _globals['_DECODEPAYREQUEST']._serialized_start=31594 + _globals['_DECODEPAYREQUEST']._serialized_end=31670 + _globals['_DECODEPAYRESPONSE']._serialized_start=31673 + _globals['_DECODEPAYRESPONSE']._serialized_end=32198 + _globals['_DECODEPAYFALLBACKS']._serialized_start=32201 + _globals['_DECODEPAYFALLBACKS']._serialized_end=32409 + _globals['_DECODEPAYFALLBACKS_DECODEPAYFALLBACKSTYPE']._serialized_start=32322 + _globals['_DECODEPAYFALLBACKS_DECODEPAYFALLBACKSTYPE']._serialized_end=32400 + _globals['_DECODEPAYEXTRA']._serialized_start=32411 + _globals['_DECODEPAYEXTRA']._serialized_end=32454 + _globals['_DECODEREQUEST']._serialized_start=32456 + _globals['_DECODEREQUEST']._serialized_end=32487 + _globals['_DECODERESPONSE']._serialized_start=32490 + _globals['_DECODERESPONSE']._serialized_end=37025 + _globals['_DECODERESPONSE_DECODETYPE']._serialized_start=35218 + _globals['_DECODERESPONSE_DECODETYPE']._serialized_end=35349 + _globals['_DECODEOFFER_PATHS']._serialized_start=37028 + _globals['_DECODEOFFER_PATHS']._serialized_end=37199 + _globals['_DECODEOFFER_RECURRENCEPAYWINDOW']._serialized_start=37202 + _globals['_DECODEOFFER_RECURRENCEPAYWINDOW']._serialized_end=37340 + _globals['_DECODEINVOICE_PATHSPATH']._serialized_start=37342 + _globals['_DECODEINVOICE_PATHSPATH']._serialized_end=37426 + _globals['_DECODEINVOICE_FALLBACKS']._serialized_start=37428 + _globals['_DECODEINVOICE_FALLBACKS']._serialized_end=37517 + _globals['_DECODEFALLBACKS']._serialized_start=37520 + _globals['_DECODEFALLBACKS']._serialized_end=37818 + _globals['_DECODEFALLBACKS_DECODEFALLBACKSTYPE']._serialized_start=37688 + _globals['_DECODEFALLBACKS_DECODEFALLBACKSTYPE']._serialized_end=37763 + _globals['_DECODEEXTRA']._serialized_start=37820 + _globals['_DECODEEXTRA']._serialized_end=37860 + _globals['_DECODERESTRICTIONS']._serialized_start=37862 + _globals['_DECODERESTRICTIONS']._serialized_end=37921 + _globals['_DELPAYREQUEST']._serialized_start=37924 + _globals['_DELPAYREQUEST']._serialized_end=38118 + _globals['_DELPAYREQUEST_DELPAYSTATUS']._serialized_start=38055 + _globals['_DELPAYREQUEST_DELPAYSTATUS']._serialized_end=38095 + _globals['_DELPAYRESPONSE']._serialized_start=38120 + _globals['_DELPAYRESPONSE']._serialized_end=38175 + _globals['_DELPAYPAYMENTS']._serialized_start=38178 + _globals['_DELPAYPAYMENTS']._serialized_end=38893 + _globals['_DELPAYPAYMENTS_DELPAYPAYMENTSSTATUS']._serialized_start=38656 + _globals['_DELPAYPAYMENTS_DELPAYPAYMENTSSTATUS']._serialized_end=38717 + _globals['_DELFORWARDREQUEST']._serialized_start=38896 + _globals['_DELFORWARDREQUEST']._serialized_end=39075 + _globals['_DELFORWARDREQUEST_DELFORWARDSTATUS']._serialized_start=39014 + _globals['_DELFORWARDREQUEST_DELFORWARDSTATUS']._serialized_end=39075 + _globals['_DELFORWARDRESPONSE']._serialized_start=39077 + _globals['_DELFORWARDRESPONSE']._serialized_end=39097 + _globals['_DISABLEOFFERREQUEST']._serialized_start=39099 + _globals['_DISABLEOFFERREQUEST']._serialized_end=39138 + _globals['_DISABLEOFFERRESPONSE']._serialized_start=39141 + _globals['_DISABLEOFFERRESPONSE']._serialized_end=39277 + _globals['_DISCONNECTREQUEST']._serialized_start=39279 + _globals['_DISCONNECTREQUEST']._serialized_end=39340 + _globals['_DISCONNECTRESPONSE']._serialized_start=39342 + _globals['_DISCONNECTRESPONSE']._serialized_end=39362 + _globals['_FEERATESREQUEST']._serialized_start=39364 + _globals['_FEERATESREQUEST']._serialized_end=39471 + _globals['_FEERATESREQUEST_FEERATESSTYLE']._serialized_start=39434 + _globals['_FEERATESREQUEST_FEERATESSTYLE']._serialized_end=39471 + _globals['_FEERATESRESPONSE']._serialized_start=39474 + _globals['_FEERATESRESPONSE']._serialized_end=39758 + _globals['_FEERATESPERKB']._serialized_start=39761 + _globals['_FEERATESPERKB']._serialized_end=40228 + _globals['_FEERATESPERKBESTIMATES']._serialized_start=40230 + _globals['_FEERATESPERKBESTIMATES']._serialized_end=40317 + _globals['_FEERATESPERKW']._serialized_start=40320 + _globals['_FEERATESPERKW']._serialized_end=40787 + _globals['_FEERATESPERKWESTIMATES']._serialized_start=40789 + _globals['_FEERATESPERKWESTIMATES']._serialized_end=40876 + _globals['_FEERATESONCHAIN_FEE_ESTIMATES']._serialized_start=40879 + _globals['_FEERATESONCHAIN_FEE_ESTIMATES']._serialized_end=41162 + _globals['_FETCHINVOICEREQUEST']._serialized_start=41165 + _globals['_FETCHINVOICEREQUEST']._serialized_end=41526 + _globals['_FETCHINVOICERESPONSE']._serialized_start=41529 + _globals['_FETCHINVOICERESPONSE']._serialized_end=41683 + _globals['_FETCHINVOICECHANGES']._serialized_start=41686 + _globals['_FETCHINVOICECHANGES']._serialized_end=41944 + _globals['_FETCHINVOICENEXT_PERIOD']._serialized_start=41946 + _globals['_FETCHINVOICENEXT_PERIOD']._serialized_end=42072 + _globals['_FUNDCHANNEL_CANCELREQUEST']._serialized_start=42074 + _globals['_FUNDCHANNEL_CANCELREQUEST']._serialized_end=42113 + _globals['_FUNDCHANNEL_CANCELRESPONSE']._serialized_start=42115 + _globals['_FUNDCHANNEL_CANCELRESPONSE']._serialized_end=42162 + _globals['_FUNDCHANNEL_COMPLETEREQUEST']._serialized_start=42164 + _globals['_FUNDCHANNEL_COMPLETEREQUEST']._serialized_end=42219 + _globals['_FUNDCHANNEL_COMPLETERESPONSE']._serialized_start=42221 + _globals['_FUNDCHANNEL_COMPLETERESPONSE']._serialized_end=42300 + _globals['_FUNDCHANNELREQUEST']._serialized_start=42303 + _globals['_FUNDCHANNELREQUEST']._serialized_end=42810 + _globals['_FUNDCHANNELRESPONSE']._serialized_start=42813 + _globals['_FUNDCHANNELRESPONSE']._serialized_end=43042 + _globals['_FUNDCHANNELCHANNEL_TYPE']._serialized_start=43044 + _globals['_FUNDCHANNELCHANNEL_TYPE']._serialized_end=43120 + _globals['_FUNDCHANNEL_STARTREQUEST']._serialized_start=43123 + _globals['_FUNDCHANNEL_STARTREQUEST']._serialized_end=43466 + _globals['_FUNDCHANNEL_STARTRESPONSE']._serialized_start=43469 + _globals['_FUNDCHANNEL_STARTRESPONSE']._serialized_end=43718 + _globals['_FUNDCHANNEL_STARTCHANNEL_TYPE']._serialized_start=43720 + _globals['_FUNDCHANNEL_STARTCHANNEL_TYPE']._serialized_end=43802 + _globals['_GETLOGREQUEST']._serialized_start=43805 + _globals['_GETLOGREQUEST']._serialized_end=43962 + _globals['_GETLOGREQUEST_GETLOGLEVEL']._serialized_start=43874 + _globals['_GETLOGREQUEST_GETLOGLEVEL']._serialized_end=43952 + _globals['_GETLOGRESPONSE']._serialized_start=43964 + _globals['_GETLOGRESPONSE']._serialized_end=44068 + _globals['_GETLOGLOG']._serialized_start=44071 + _globals['_GETLOGLOG']._serialized_end=44431 + _globals['_GETLOGLOG_GETLOGLOGTYPE']._serialized_start=44258 + _globals['_GETLOGLOG_GETLOGLOGTYPE']._serialized_end=44366 + _globals['_GETROUTEREQUEST']._serialized_start=44434 + _globals['_GETROUTEREQUEST']._serialized_end=44670 + _globals['_GETROUTERESPONSE']._serialized_start=44672 + _globals['_GETROUTERESPONSE']._serialized_end=44725 + _globals['_GETROUTEROUTE']._serialized_start=44728 + _globals['_GETROUTEROUTE']._serialized_end=44925 + _globals['_GETROUTEROUTE_GETROUTEROUTESTYLE']._serialized_start=44896 + _globals['_GETROUTEROUTE_GETROUTEROUTESTYLE']._serialized_end=44925 + _globals['_LISTFORWARDSREQUEST']._serialized_start=44928 + _globals['_LISTFORWARDSREQUEST']._serialized_end=45367 + _globals['_LISTFORWARDSREQUEST_LISTFORWARDSSTATUS']._serialized_start=45172 + _globals['_LISTFORWARDSREQUEST_LISTFORWARDSSTATUS']._serialized_end=45248 + _globals['_LISTFORWARDSREQUEST_LISTFORWARDSINDEX']._serialized_start=45250 + _globals['_LISTFORWARDSREQUEST_LISTFORWARDSINDEX']._serialized_end=45295 + _globals['_LISTFORWARDSRESPONSE']._serialized_start=45369 + _globals['_LISTFORWARDSRESPONSE']._serialized_end=45436 + _globals['_LISTFORWARDSFORWARDS']._serialized_start=45439 + _globals['_LISTFORWARDSFORWARDS']._serialized_end=46259 + _globals['_LISTFORWARDSFORWARDS_LISTFORWARDSFORWARDSSTATUS']._serialized_start=45960 + _globals['_LISTFORWARDSFORWARDS_LISTFORWARDSFORWARDSSTATUS']._serialized_end=46044 + _globals['_LISTFORWARDSFORWARDS_LISTFORWARDSFORWARDSSTYLE']._serialized_start=46046 + _globals['_LISTFORWARDSFORWARDS_LISTFORWARDSFORWARDSSTYLE']._serialized_end=46094 + _globals['_LISTOFFERSREQUEST']._serialized_start=46261 + _globals['_LISTOFFERSREQUEST']._serialized_end=46358 + _globals['_LISTOFFERSRESPONSE']._serialized_start=46360 + _globals['_LISTOFFERSRESPONSE']._serialized_end=46419 + _globals['_LISTOFFERSOFFERS']._serialized_start=46422 + _globals['_LISTOFFERSOFFERS']._serialized_end=46554 + _globals['_LISTPAYSREQUEST']._serialized_start=46557 + _globals['_LISTPAYSREQUEST']._serialized_end=46776 + _globals['_LISTPAYSREQUEST_LISTPAYSSTATUS']._serialized_start=46682 + _globals['_LISTPAYSREQUEST_LISTPAYSSTATUS']._serialized_end=46737 + _globals['_LISTPAYSRESPONSE']._serialized_start=46778 + _globals['_LISTPAYSRESPONSE']._serialized_end=46829 + _globals['_LISTPAYSPAYS']._serialized_start=46832 + _globals['_LISTPAYSPAYS']._serialized_end=47471 + _globals['_LISTPAYSPAYS_LISTPAYSPAYSSTATUS']._serialized_start=47246 + _globals['_LISTPAYSPAYS_LISTPAYSPAYSSTATUS']._serialized_end=47305 + _globals['_LISTHTLCSREQUEST']._serialized_start=47473 + _globals['_LISTHTLCSREQUEST']._serialized_end=47515 + _globals['_LISTHTLCSRESPONSE']._serialized_start=47517 + _globals['_LISTHTLCSRESPONSE']._serialized_end=47572 + _globals['_LISTHTLCSHTLCS']._serialized_start=47575 + _globals['_LISTHTLCSHTLCS']._serialized_end=47840 + _globals['_LISTHTLCSHTLCS_LISTHTLCSHTLCSDIRECTION']._serialized_start=47798 + _globals['_LISTHTLCSHTLCS_LISTHTLCSHTLCSDIRECTION']._serialized_end=47840 + _globals['_MULTIFUNDCHANNELREQUEST']._serialized_start=47843 + _globals['_MULTIFUNDCHANNELREQUEST']._serialized_end=48149 + _globals['_MULTIFUNDCHANNELRESPONSE']._serialized_start=48152 + _globals['_MULTIFUNDCHANNELRESPONSE']._serialized_end=48304 + _globals['_MULTIFUNDCHANNELDESTINATIONS']._serialized_start=48307 + _globals['_MULTIFUNDCHANNELDESTINATIONS']._serialized_end=48690 + _globals['_MULTIFUNDCHANNELCHANNEL_IDS']._serialized_start=48693 + _globals['_MULTIFUNDCHANNELCHANNEL_IDS']._serialized_end=48896 + _globals['_MULTIFUNDCHANNELCHANNEL_IDSCHANNEL_TYPE']._serialized_start=48898 + _globals['_MULTIFUNDCHANNELCHANNEL_IDSCHANNEL_TYPE']._serialized_end=48990 + _globals['_MULTIFUNDCHANNELFAILED']._serialized_start=48993 + _globals['_MULTIFUNDCHANNELFAILED']._serialized_end=49268 + _globals['_MULTIFUNDCHANNELFAILED_MULTIFUNDCHANNELFAILEDMETHOD']._serialized_start=49154 + _globals['_MULTIFUNDCHANNELFAILED_MULTIFUNDCHANNELFAILEDMETHOD']._serialized_end=49268 + _globals['_MULTIFUNDCHANNELFAILEDERROR']._serialized_start=49270 + _globals['_MULTIFUNDCHANNELFAILEDERROR']._serialized_end=49330 + _globals['_OFFERREQUEST']._serialized_start=49333 + _globals['_OFFERREQUEST']._serialized_end=49782 + _globals['_OFFERRESPONSE']._serialized_start=49785 + _globals['_OFFERRESPONSE']._serialized_end=49931 + _globals['_OPENCHANNEL_ABORTREQUEST']._serialized_start=49933 + _globals['_OPENCHANNEL_ABORTREQUEST']._serialized_end=49979 + _globals['_OPENCHANNEL_ABORTRESPONSE']._serialized_start=49981 + _globals['_OPENCHANNEL_ABORTRESPONSE']._serialized_end=50070 + _globals['_OPENCHANNEL_BUMPREQUEST']._serialized_start=50073 + _globals['_OPENCHANNEL_BUMPREQUEST']._serialized_end=50232 + _globals['_OPENCHANNEL_BUMPRESPONSE']._serialized_start=50235 + _globals['_OPENCHANNEL_BUMPRESPONSE']._serialized_end=50497 + _globals['_OPENCHANNEL_BUMPCHANNEL_TYPE']._serialized_start=50499 + _globals['_OPENCHANNEL_BUMPCHANNEL_TYPE']._serialized_end=50580 + _globals['_OPENCHANNEL_INITREQUEST']._serialized_start=50583 + _globals['_OPENCHANNEL_INITREQUEST']._serialized_end=50999 + _globals['_OPENCHANNEL_INITRESPONSE']._serialized_start=51002 + _globals['_OPENCHANNEL_INITRESPONSE']._serialized_end=51264 + _globals['_OPENCHANNEL_INITCHANNEL_TYPE']._serialized_start=51266 + _globals['_OPENCHANNEL_INITCHANNEL_TYPE']._serialized_end=51347 + _globals['_OPENCHANNEL_SIGNEDREQUEST']._serialized_start=51349 + _globals['_OPENCHANNEL_SIGNEDREQUEST']._serialized_end=51417 + _globals['_OPENCHANNEL_SIGNEDRESPONSE']._serialized_start=51419 + _globals['_OPENCHANNEL_SIGNEDRESPONSE']._serialized_end=51493 + _globals['_OPENCHANNEL_UPDATEREQUEST']._serialized_start=51495 + _globals['_OPENCHANNEL_UPDATEREQUEST']._serialized_end=51556 + _globals['_OPENCHANNEL_UPDATERESPONSE']._serialized_start=51559 + _globals['_OPENCHANNEL_UPDATERESPONSE']._serialized_end=51861 + _globals['_OPENCHANNEL_UPDATECHANNEL_TYPE']._serialized_start=51863 + _globals['_OPENCHANNEL_UPDATECHANNEL_TYPE']._serialized_end=51946 + _globals['_PINGREQUEST']._serialized_start=51948 + _globals['_PINGREQUEST']._serialized_end=52037 + _globals['_PINGRESPONSE']._serialized_start=52039 + _globals['_PINGRESPONSE']._serialized_end=52069 + _globals['_PLUGINREQUEST']._serialized_start=52072 + _globals['_PLUGINREQUEST']._serialized_end=52217 + _globals['_PLUGINRESPONSE']._serialized_start=52219 + _globals['_PLUGINRESPONSE']._serialized_end=52344 + _globals['_PLUGINPLUGINS']._serialized_start=52346 + _globals['_PLUGINPLUGINS']._serialized_end=52408 + _globals['_RENEPAYSTATUSREQUEST']._serialized_start=52410 + _globals['_RENEPAYSTATUSREQUEST']._serialized_end=52470 + _globals['_RENEPAYSTATUSRESPONSE']._serialized_start=52472 + _globals['_RENEPAYSTATUSRESPONSE']._serialized_end=52543 + _globals['_RENEPAYSTATUSPAYSTATUS']._serialized_start=52546 + _globals['_RENEPAYSTATUSPAYSTATUS']._serialized_end=53028 + _globals['_RENEPAYSTATUSPAYSTATUS_RENEPAYSTATUSPAYSTATUSSTATUS']._serialized_start=52891 + _globals['_RENEPAYSTATUSPAYSTATUS_RENEPAYSTATUSPAYSTATUSSTATUS']._serialized_end=52960 + _globals['_RENEPAYREQUEST']._serialized_start=53031 + _globals['_RENEPAYREQUEST']._serialized_end=53360 + _globals['_RENEPAYRESPONSE']._serialized_start=53363 + _globals['_RENEPAYRESPONSE']._serialized_end=53686 + _globals['_RENEPAYRESPONSE_RENEPAYSTATUS']._serialized_start=53616 + _globals['_RENEPAYRESPONSE_RENEPAYSTATUS']._serialized_end=53670 + _globals['_RESERVEINPUTSREQUEST']._serialized_start=53688 + _globals['_RESERVEINPUTSREQUEST']._serialized_end=53796 + _globals['_RESERVEINPUTSRESPONSE']._serialized_start=53798 + _globals['_RESERVEINPUTSRESPONSE']._serialized_end=53875 + _globals['_RESERVEINPUTSRESERVATIONS']._serialized_start=53877 + _globals['_RESERVEINPUTSRESERVATIONS']._serialized_end=53999 + _globals['_SENDCUSTOMMSGREQUEST']._serialized_start=54001 + _globals['_SENDCUSTOMMSGREQUEST']._serialized_end=54053 + _globals['_SENDCUSTOMMSGRESPONSE']._serialized_start=54055 + _globals['_SENDCUSTOMMSGRESPONSE']._serialized_end=54094 + _globals['_SENDINVOICEREQUEST']._serialized_start=54097 + _globals['_SENDINVOICEREQUEST']._serialized_end=54273 + _globals['_SENDINVOICERESPONSE']._serialized_start=54276 + _globals['_SENDINVOICERESPONSE']._serialized_end=54867 + _globals['_SENDINVOICERESPONSE_SENDINVOICESTATUS']._serialized_start=54678 + _globals['_SENDINVOICERESPONSE_SENDINVOICESTATUS']._serialized_end=54732 + _globals['_SENDONIONMESSAGEREQUEST']._serialized_start=54869 + _globals['_SENDONIONMESSAGEREQUEST']._serialized_end=54971 + _globals['_SENDONIONMESSAGERESPONSE']._serialized_start=54973 + _globals['_SENDONIONMESSAGERESPONSE']._serialized_end=54999 + _globals['_SENDONIONMESSAGEHOPS']._serialized_start=55001 + _globals['_SENDONIONMESSAGEHOPS']._serialized_end=55050 + _globals['_SETCHANNELREQUEST']._serialized_start=55053 + _globals['_SETCHANNELREQUEST']._serialized_end=55351 + _globals['_SETCHANNELRESPONSE']._serialized_start=55353 + _globals['_SETCHANNELRESPONSE']._serialized_end=55416 + _globals['_SETCHANNELCHANNELS']._serialized_start=55419 + _globals['_SETCHANNELCHANNELS']._serialized_end=55877 + _globals['_SETCONFIGREQUEST']._serialized_start=55879 + _globals['_SETCONFIGREQUEST']._serialized_end=55939 + _globals['_SETCONFIGRESPONSE']._serialized_start=55941 + _globals['_SETCONFIGRESPONSE']._serialized_end=55998 + _globals['_SETCONFIGCONFIG']._serialized_start=56001 + _globals['_SETCONFIGCONFIG']._serialized_end=56294 + _globals['_SETPSBTVERSIONREQUEST']._serialized_start=56296 + _globals['_SETPSBTVERSIONREQUEST']._serialized_end=56350 + _globals['_SETPSBTVERSIONRESPONSE']._serialized_start=56352 + _globals['_SETPSBTVERSIONRESPONSE']._serialized_end=56390 + _globals['_SIGNINVOICEREQUEST']._serialized_start=56392 + _globals['_SIGNINVOICEREQUEST']._serialized_end=56431 + _globals['_SIGNINVOICERESPONSE']._serialized_start=56433 + _globals['_SIGNINVOICERESPONSE']._serialized_end=56470 + _globals['_SIGNMESSAGEREQUEST']._serialized_start=56472 + _globals['_SIGNMESSAGEREQUEST']._serialized_end=56509 + _globals['_SIGNMESSAGERESPONSE']._serialized_start=56511 + _globals['_SIGNMESSAGERESPONSE']._serialized_end=56581 + _globals['_SPLICE_INITREQUEST']._serialized_start=56584 + _globals['_SPLICE_INITREQUEST']._serialized_end=56785 + _globals['_SPLICE_INITRESPONSE']._serialized_start=56787 + _globals['_SPLICE_INITRESPONSE']._serialized_end=56822 + _globals['_SPLICE_SIGNEDREQUEST']._serialized_start=56824 + _globals['_SPLICE_SIGNEDREQUEST']._serialized_end=56920 + _globals['_SPLICE_SIGNEDRESPONSE']._serialized_start=56922 + _globals['_SPLICE_SIGNEDRESPONSE']._serialized_end=56971 + _globals['_SPLICE_UPDATEREQUEST']._serialized_start=56973 + _globals['_SPLICE_UPDATEREQUEST']._serialized_end=57029 + _globals['_SPLICE_UPDATERESPONSE']._serialized_start=57031 + _globals['_SPLICE_UPDATERESPONSE']._serialized_end=57097 + _globals['_UNRESERVEINPUTSREQUEST']._serialized_start=57099 + _globals['_UNRESERVEINPUTSREQUEST']._serialized_end=57171 + _globals['_UNRESERVEINPUTSRESPONSE']._serialized_start=57173 + _globals['_UNRESERVEINPUTSRESPONSE']._serialized_end=57254 + _globals['_UNRESERVEINPUTSRESERVATIONS']._serialized_start=57257 + _globals['_UNRESERVEINPUTSRESERVATIONS']._serialized_end=57408 + _globals['_UPGRADEWALLETREQUEST']._serialized_start=57410 + _globals['_UPGRADEWALLETREQUEST']._serialized_end=57520 + _globals['_UPGRADEWALLETRESPONSE']._serialized_start=57523 + _globals['_UPGRADEWALLETRESPONSE']._serialized_end=57672 + _globals['_WAITBLOCKHEIGHTREQUEST']._serialized_start=57674 + _globals['_WAITBLOCKHEIGHTREQUEST']._serialized_end=57753 + _globals['_WAITBLOCKHEIGHTRESPONSE']._serialized_start=57755 + _globals['_WAITBLOCKHEIGHTRESPONSE']._serialized_end=57801 + _globals['_WAITREQUEST']._serialized_start=57804 + _globals['_WAITREQUEST']._serialized_end=58053 + _globals['_WAITREQUEST_WAITSUBSYSTEM']._serialized_start=57940 + _globals['_WAITREQUEST_WAITSUBSYSTEM']._serialized_end=57997 + _globals['_WAITREQUEST_WAITINDEXNAME']._serialized_start=57999 + _globals['_WAITREQUEST_WAITINDEXNAME']._serialized_end=58053 + _globals['_WAITRESPONSE']._serialized_start=58056 + _globals['_WAITRESPONSE']._serialized_end=58335 + _globals['_WAITRESPONSE_WAITSUBSYSTEM']._serialized_start=57940 + _globals['_WAITRESPONSE_WAITSUBSYSTEM']._serialized_end=57997 + _globals['_WAITDETAILS']._serialized_start=58338 + _globals['_WAITDETAILS']._serialized_end=58974 + _globals['_WAITDETAILS_WAITDETAILSSTATUS']._serialized_start=58680 + _globals['_WAITDETAILS_WAITDETAILSSTATUS']._serialized_end=58817 + _globals['_STOPREQUEST']._serialized_start=58976 + _globals['_STOPREQUEST']._serialized_end=58989 + _globals['_STOPRESPONSE']._serialized_start=58991 + _globals['_STOPRESPONSE']._serialized_end=59104 + _globals['_STOPRESPONSE_STOPRESULT']._serialized_start=59058 + _globals['_STOPRESPONSE_STOPRESULT']._serialized_end=59093 + _globals['_PREAPPROVEKEYSENDREQUEST']._serialized_start=59106 + _globals['_PREAPPROVEKEYSENDREQUEST']._serialized_end=59209 + _globals['_PREAPPROVEKEYSENDRESPONSE']._serialized_start=59211 + _globals['_PREAPPROVEKEYSENDRESPONSE']._serialized_end=59238 + _globals['_PREAPPROVEINVOICEREQUEST']._serialized_start=59240 + _globals['_PREAPPROVEINVOICEREQUEST']._serialized_end=59282 + _globals['_PREAPPROVEINVOICERESPONSE']._serialized_start=59284 + _globals['_PREAPPROVEINVOICERESPONSE']._serialized_end=59311 + _globals['_STATICBACKUPREQUEST']._serialized_start=59313 + _globals['_STATICBACKUPREQUEST']._serialized_end=59334 + _globals['_STATICBACKUPRESPONSE']._serialized_start=59336 + _globals['_STATICBACKUPRESPONSE']._serialized_end=59371 + _globals['_BKPRCHANNELSAPYREQUEST']._serialized_start=59373 + _globals['_BKPRCHANNELSAPYREQUEST']._serialized_end=59473 + _globals['_BKPRCHANNELSAPYRESPONSE']._serialized_start=59475 + _globals['_BKPRCHANNELSAPYRESPONSE']._serialized_end=59556 + _globals['_BKPRCHANNELSAPYCHANNELS_APY']._serialized_start=59559 + _globals['_BKPRCHANNELSAPYCHANNELS_APY']._serialized_end=60449 + _globals['_BKPRDUMPINCOMECSVREQUEST']._serialized_start=60452 + _globals['_BKPRDUMPINCOMECSVREQUEST']._serialized_end=60662 + _globals['_BKPRDUMPINCOMECSVRESPONSE']._serialized_start=60665 + _globals['_BKPRDUMPINCOMECSVRESPONSE']._serialized_end=60879 + _globals['_BKPRDUMPINCOMECSVRESPONSE_BKPRDUMPINCOMECSVCSV_FORMAT']._serialized_start=60792 + _globals['_BKPRDUMPINCOMECSVRESPONSE_BKPRDUMPINCOMECSVCSV_FORMAT']._serialized_end=60879 + _globals['_BKPRINSPECTREQUEST']._serialized_start=60881 + _globals['_BKPRINSPECTREQUEST']._serialized_end=60918 + _globals['_BKPRINSPECTRESPONSE']._serialized_start=60920 + _globals['_BKPRINSPECTRESPONSE']._serialized_end=60975 + _globals['_BKPRINSPECTTXS']._serialized_start=60978 + _globals['_BKPRINSPECTTXS']._serialized_end=61132 + _globals['_BKPRINSPECTTXSOUTPUTS']._serialized_start=61135 + _globals['_BKPRINSPECTTXSOUTPUTS']._serialized_end=61579 + _globals['_BKPRLISTACCOUNTEVENTSREQUEST']._serialized_start=61581 + _globals['_BKPRLISTACCOUNTEVENTSREQUEST']._serialized_end=61645 + _globals['_BKPRLISTACCOUNTEVENTSRESPONSE']._serialized_start=61647 + _globals['_BKPRLISTACCOUNTEVENTSRESPONSE']._serialized_end=61728 + _globals['_BKPRLISTACCOUNTEVENTSEVENTS']._serialized_start=61731 + _globals['_BKPRLISTACCOUNTEVENTSEVENTS']._serialized_end=62404 + _globals['_BKPRLISTACCOUNTEVENTSEVENTS_BKPRLISTACCOUNTEVENTSEVENTSTYPE']._serialized_start=62207 + _globals['_BKPRLISTACCOUNTEVENTSEVENTS_BKPRLISTACCOUNTEVENTSEVENTSTYPE']._serialized_end=62281 + _globals['_BKPRLISTBALANCESREQUEST']._serialized_start=62406 + _globals['_BKPRLISTBALANCESREQUEST']._serialized_end=62431 + _globals['_BKPRLISTBALANCESRESPONSE']._serialized_start=62433 + _globals['_BKPRLISTBALANCESRESPONSE']._serialized_end=62508 + _globals['_BKPRLISTBALANCESACCOUNTS']._serialized_start=62511 + _globals['_BKPRLISTBALANCESACCOUNTS']._serialized_end=62837 + _globals['_BKPRLISTBALANCESACCOUNTSBALANCES']._serialized_start=62839 + _globals['_BKPRLISTBALANCESACCOUNTSBALANCES']._serialized_end=62927 + _globals['_BKPRLISTINCOMEREQUEST']._serialized_start=62930 + _globals['_BKPRLISTINCOMEREQUEST']._serialized_end=63081 + _globals['_BKPRLISTINCOMERESPONSE']._serialized_start=63083 + _globals['_BKPRLISTINCOMERESPONSE']._serialized_end=63164 + _globals['_BKPRLISTINCOMEINCOME_EVENTS']._serialized_start=63167 + _globals['_BKPRLISTINCOMEINCOME_EVENTS']._serialized_end=63476 + _globals['_NODE']._serialized_start=63479 + _globals['_NODE']._serialized_end=70098 # @@protoc_insertion_point(module_scope) From 694d4221d0fcecf25f148d12abb23cbd984cfe5e Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Tue, 13 Feb 2024 13:15:18 +0100 Subject: [PATCH 08/24] msggen: Add test for serialization of notifications --- cln-rpc/src/lib.rs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/cln-rpc/src/lib.rs b/cln-rpc/src/lib.rs index 6d47b4c1366c..af829a0c313e 100644 --- a/cln-rpc/src/lib.rs +++ b/cln-rpc/src/lib.rs @@ -331,6 +331,8 @@ where #[cfg(test)] mod test { + use self::notifications::CustomMsgNotification; + use super::*; use crate::model::*; use crate::primitives::PublicKey; @@ -553,4 +555,27 @@ mod test { assert_eq!(rpc_error.code.unwrap(), 666); assert_eq!(rpc_error.message, "MOCK_ERROR"); } + + #[test] + fn serialize_custom_msg_notification() { + let msg = CustomMsgNotification { + peer_id : PublicKey::from_str("0364aeb75519be29d1af7b8cc6232dbda9fdabb79b66e4e1f6a223750954db210b").unwrap(), + payload : String::from("941746573749") + }; + + let notification = Notification::CustomMsg(msg); + + assert_eq!( + serde_json::to_value(notification).unwrap(), + serde_json::json!( + { + "custommsg" : { + "peer_id" : "0364aeb75519be29d1af7b8cc6232dbda9fdabb79b66e4e1f6a223750954db210b", + "payload" : "941746573749" + } + } + ) + ); + + } } From fb766d1be2765e6a8c0a0d233e8fd165878e2415 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Fri, 16 Feb 2024 11:52:34 +0100 Subject: [PATCH 09/24] cln-rpc: Test for serialization of block_added --- cln-rpc/src/lib.rs | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/cln-rpc/src/lib.rs b/cln-rpc/src/lib.rs index af829a0c313e..f4f207f07f6d 100644 --- a/cln-rpc/src/lib.rs +++ b/cln-rpc/src/lib.rs @@ -331,7 +331,7 @@ where #[cfg(test)] mod test { - use self::notifications::CustomMsgNotification; + use self::notifications::{BlockAddedNotification, CustomMsgNotification}; use super::*; use crate::model::*; @@ -578,4 +578,25 @@ mod test { ); } + + #[test] + fn serialize_block_added_notification() { + let block_added = BlockAddedNotification { + hash : crate::primitives::Sha256::from_str("000000000000000000000acab8abe0c67a52ed7e5a90a19c64930ff11fa84eca").unwrap(), + height : 830702 + }; + + let notification = Notification::BlockAdded(block_added); + + assert_eq!( + serde_json::to_value(notification).unwrap(), + serde_json::json!({ + "block_added" : { + "hash" : "000000000000000000000acab8abe0c67a52ed7e5a90a19c64930ff11fa84eca", + "height" : 830702 + } + }) + ) + + } } From f96f3a75369a74052a9814b756f5ba1b3a955053 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Tue, 13 Feb 2024 10:46:55 +0100 Subject: [PATCH 10/24] msggen: RequestStructs for notification-streams I'm working to expose a stream of notifications over grpc. This requries me to define structs that can be used to request a stream of notifications. These structs are all empty. --- cln-rpc/src/notifications.rs | 24 +++++++++++++++++++ contrib/msggen/msggen/gen/grpc/convert.py | 2 +- contrib/msggen/msggen/gen/rpc/notification.py | 7 ++++++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/cln-rpc/src/notifications.rs b/cln-rpc/src/notifications.rs index 69aa974309b5..564b56795670 100644 --- a/cln-rpc/src/notifications.rs +++ b/cln-rpc/src/notifications.rs @@ -82,3 +82,27 @@ pub struct CustomMsgNotification { pub peer_id: PublicKey, } +pub mod requests{ +use serde::{Serialize, Deserialize}; + + #[derive(Clone, Debug, Deserialize, Serialize)] + pub struct StreamBlockAddedRequest { + } + + #[derive(Clone, Debug, Deserialize, Serialize)] + pub struct StreamChannelOpenFailedRequest { + } + + #[derive(Clone, Debug, Deserialize, Serialize)] + pub struct StreamChannelOpenedRequest { + } + + #[derive(Clone, Debug, Deserialize, Serialize)] + pub struct StreamConnectRequest { + } + + #[derive(Clone, Debug, Deserialize, Serialize)] + pub struct StreamCustomMsgRequest { + } + +} diff --git a/contrib/msggen/msggen/gen/grpc/convert.py b/contrib/msggen/msggen/gen/grpc/convert.py index 567681ad5c12..1cfe6a515c24 100644 --- a/contrib/msggen/msggen/gen/grpc/convert.py +++ b/contrib/msggen/msggen/gen/grpc/convert.py @@ -152,7 +152,7 @@ def to_camel_case(self, snake_str): camel_case += word.capitalize() return camel_case - def generate_requests(self, service): + def generate_requests(self, service: Service): for meth in service.methods: req = meth.request self.generate_composite("requests", req) diff --git a/contrib/msggen/msggen/gen/rpc/notification.py b/contrib/msggen/msggen/gen/rpc/notification.py index a997cd6fc3a2..21a20e585c7a 100644 --- a/contrib/msggen/msggen/gen/rpc/notification.py +++ b/contrib/msggen/msggen/gen/rpc/notification.py @@ -45,3 +45,10 @@ def generate(self, service: Service) -> None: for notification in service.notifications: _, resp_decl = gen_composite(notification.response, self.meta) self.write(resp_decl) + + self.write("pub mod requests{\n") + self.write(" use serde::{Serialize, Deserialize};\n\n") + for notification in service.notifications: + _, req_decl = gen_composite(notification.request, self.meta) + self.write(req_decl, numindent=1) + self.write("}\n") From 5f33625005e560746de8e6bfcaaa45cf43f43489 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Thu, 8 Feb 2024 11:32:36 +0100 Subject: [PATCH 11/24] msggen : Add notification-messages to proto-file --- .msggen.json | 22 +++++++++ cln-grpc/proto/node.proto | 47 +++++++++++++++++++ contrib/msggen/msggen/gen/grpc/proto.py | 8 ++++ contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py | 28 +++++++++-- 4 files changed, 102 insertions(+), 3 deletions(-) diff --git a/.msggen.json b/.msggen.json index ba45a76083b1..dcf5b040ac18 100644 --- a/.msggen.json +++ b/.msggen.json @@ -685,6 +685,19 @@ "Bkpr-listincomeResponse": { "Bkpr-ListIncome.income_events[]": 1 }, + "BlockAddedNotification": { + "block_added.hash": 1, + "block_added.height": 2 + }, + "ChannelOpenFailedNotification": { + "channel_open_failed.channel_id": 1 + }, + "ChannelOpenedNotification": { + "channel_opened.channel_ready": 4, + "channel_opened.funding_msat": 2, + "channel_opened.funding_txid": 3, + "channel_opened.id": 1 + }, "CheckmessageRequest": { "CheckMessage.message": 1, "CheckMessage.pubkey": 3, @@ -714,6 +727,11 @@ "Connect.address.socket": 2, "Connect.address.type": 1 }, + "ConnectNotification": { + "connect.address": 3, + "connect.direction": 2, + "connect.id": 1 + }, "ConnectRequest": { "Connect.host": 2, "Connect.id": 1, @@ -767,6 +785,10 @@ "CreateOnion.onion": 1, "CreateOnion.shared_secrets[]": 2 }, + "CustomMsgNotification": { + "custommsg.payload": 2, + "custommsg.peer_id": 1 + }, "DatastoreRequest": { "Datastore.generation": 4, "Datastore.hex": 2, diff --git a/cln-grpc/proto/node.proto b/cln-grpc/proto/node.proto index ea607efa6487..0bfc229db5a6 100644 --- a/cln-grpc/proto/node.proto +++ b/cln-grpc/proto/node.proto @@ -2769,3 +2769,50 @@ message BkprlistincomeIncome_events { optional bytes txid = 9; optional bytes payment_id = 10; } + +message StreamBlockAddedRequest { +} + +message BlockAddedNotification { + bytes hash = 1; + uint32 height = 2; +} + +message StreamChannelOpenFailedRequest { +} + +message ChannelOpenFailedNotification { + bytes channel_id = 1; +} + +message StreamChannelOpenedRequest { +} + +message ChannelOpenedNotification { + optional bytes id = 1; + Amount funding_msat = 2; + bytes funding_txid = 3; + bool channel_ready = 4; +} + +message StreamConnectRequest { +} + +message ConnectNotification { + // connect.direction + enum ConnectDirection { + IN = 0; + OUT = 1; + } + bytes id = 1; + ConnectDirection direction = 2; + string address = 3; +} + +message StreamCustomMsgRequest { +} + +message CustomMsgNotification { + bytes peer_id = 1; + bytes payload = 2; +} diff --git a/contrib/msggen/msggen/gen/grpc/proto.py b/contrib/msggen/msggen/gen/grpc/proto.py index 11539ea8a97f..fb52e63a48ad 100644 --- a/contrib/msggen/msggen/gen/grpc/proto.py +++ b/contrib/msggen/msggen/gen/grpc/proto.py @@ -123,6 +123,14 @@ def gather_subfields(field: Field) -> List[Field]: types.extend(gather_subfields(field)) for field in method.response.fields: types.extend(gather_subfields(field)) + + for notification in service.notifications: + types.extend([notification.request, notification.response]) + for field in notification.request.fields: + types.extend(gather_subfields(field)) + for field in notification.response.fields: + types.extend(gather_subfields(field)) + return types def generate_service(self, service: Service) -> None: diff --git a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py index 333f3e1b092d..cfea4dc0b0b1 100644 --- a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py +++ b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py @@ -14,7 +14,7 @@ from pyln.grpc import primitives_pb2 as primitives__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nnode.proto\x12\x03\x63ln\x1a\x10primitives.proto\"\x10\n\x0eGetinfoRequest\"\xc1\x04\n\x0fGetinfoResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x61lias\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\r\n\x05\x63olor\x18\x03 \x01(\x0c\x12\x11\n\tnum_peers\x18\x04 \x01(\r\x12\x1c\n\x14num_pending_channels\x18\x05 \x01(\r\x12\x1b\n\x13num_active_channels\x18\x06 \x01(\r\x12\x1d\n\x15num_inactive_channels\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\t\x12\x15\n\rlightning_dir\x18\t \x01(\t\x12\x33\n\x0cour_features\x18\n \x01(\x0b\x32\x18.cln.GetinfoOur_featuresH\x01\x88\x01\x01\x12\x13\n\x0b\x62lockheight\x18\x0b \x01(\r\x12\x0f\n\x07network\x18\x0c \x01(\t\x12(\n\x13\x66\x65\x65s_collected_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x07\x61\x64\x64ress\x18\x0e \x03(\x0b\x32\x13.cln.GetinfoAddress\x12$\n\x07\x62inding\x18\x0f \x03(\x0b\x32\x13.cln.GetinfoBinding\x12\"\n\x15warning_bitcoind_sync\x18\x10 \x01(\tH\x02\x88\x01\x01\x12$\n\x17warning_lightningd_sync\x18\x11 \x01(\tH\x03\x88\x01\x01\x42\x08\n\x06_aliasB\x0f\n\r_our_featuresB\x18\n\x16_warning_bitcoind_syncB\x1a\n\x18_warning_lightningd_sync\"S\n\x13GetinfoOur_features\x12\x0c\n\x04init\x18\x01 \x01(\x0c\x12\x0c\n\x04node\x18\x02 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x03 \x01(\x0c\x12\x0f\n\x07invoice\x18\x04 \x01(\x0c\"\xc4\x01\n\x0eGetinfoAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoAddress.GetinfoAddressType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"G\n\x12GetinfoAddressType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"\xac\x02\n\x0eGetinfoBinding\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoBinding.GetinfoBindingType\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06socket\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x14\n\x07subtype\x18\x05 \x01(\tH\x03\x88\x01\x01\"_\n\x12GetinfoBindingType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x12\r\n\tWEBSOCKET\x10\x05\x42\n\n\x08_addressB\x07\n\x05_portB\t\n\x07_socketB\n\n\x08_subtype\"\xb5\x01\n\x10ListpeersRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x38\n\x05level\x18\x02 \x01(\x0e\x32$.cln.ListpeersRequest.ListpeersLevelH\x01\x88\x01\x01\"E\n\x0eListpeersLevel\x12\x06\n\x02IO\x10\x00\x12\t\n\x05\x44\x45\x42UG\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\x0b\n\x07UNUSUAL\x10\x03\x12\t\n\x05TRACE\x10\x04\x42\x05\n\x03_idB\x08\n\x06_level\"7\n\x11ListpeersResponse\x12\"\n\x05peers\x18\x01 \x03(\x0b\x32\x13.cln.ListpeersPeers\"\xdf\x01\n\x0eListpeersPeers\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x11\n\tconnected\x18\x02 \x01(\x08\x12#\n\x03log\x18\x03 \x03(\x0b\x32\x16.cln.ListpeersPeersLog\x12\x0f\n\x07netaddr\x18\x05 \x03(\t\x12\x15\n\x08\x66\x65\x61tures\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0bremote_addr\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cnum_channels\x18\x08 \x01(\rH\x02\x88\x01\x01\x42\x0b\n\t_featuresB\x0e\n\x0c_remote_addrB\x0f\n\r_num_channels\"\x88\x03\n\x11ListpeersPeersLog\x12?\n\titem_type\x18\x01 \x01(\x0e\x32,.cln.ListpeersPeersLog.ListpeersPeersLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"t\n\x15ListpeersPeersLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"0\n\x10ListfundsRequest\x12\x12\n\x05spent\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_spent\"e\n\x11ListfundsResponse\x12&\n\x07outputs\x18\x01 \x03(\x0b\x32\x15.cln.ListfundsOutputs\x12(\n\x08\x63hannels\x18\x02 \x03(\x0b\x32\x16.cln.ListfundsChannels\"\xb9\x03\n\x10ListfundsOutputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06output\x18\x02 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0cscriptpubkey\x18\x04 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0credeemscript\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12<\n\x06status\x18\x07 \x01(\x0e\x32,.cln.ListfundsOutputs.ListfundsOutputsStatus\x12\x18\n\x0b\x62lockheight\x18\x08 \x01(\rH\x02\x88\x01\x01\x12\x10\n\x08reserved\x18\t \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\n \x01(\rH\x03\x88\x01\x01\"Q\n\x16ListfundsOutputsStatus\x12\x0f\n\x0bUNCONFIRMED\x10\x00\x12\r\n\tCONFIRMED\x10\x01\x12\t\n\x05SPENT\x10\x02\x12\x0c\n\x08IMMATURE\x10\x03\x42\n\n\x08_addressB\x0f\n\r_redeemscriptB\x0e\n\x0c_blockheightB\x14\n\x12_reserved_to_block\"\xab\x02\n\x11ListfundsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12$\n\x0four_amount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x04 \x01(\x0c\x12\x16\n\x0e\x66unding_output\x18\x05 \x01(\r\x12\x11\n\tconnected\x18\x06 \x01(\x08\x12 \n\x05state\x18\x07 \x01(\x0e\x32\x11.cln.ChannelState\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x01\x88\x01\x01\x42\x13\n\x11_short_channel_idB\r\n\x0b_channel_id\"\xbb\x03\n\x0eSendpayRequest\x12 \n\x05route\x18\x01 \x03(\x0b\x32\x11.cln.SendpayRoute\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x13\n\x06partid\x18\x07 \x01(\x04H\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\t \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x0c \x01(\x0cH\x07\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x08\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_bolt11B\x11\n\x0f_payment_secretB\t\n\x07_partidB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x13\n\x11_payment_metadataB\x0e\n\x0c_description\"\xad\x05\n\x0fSendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x32\n\x06status\x18\x04 \x01(\x0e\x32\".cln.SendpayResponse.SendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x14\n\x07message\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\"*\n\rSendpayStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\\\n\x0cSendpayRoute\x12\n\n\x02id\x18\x02 \x01(\x0c\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\x12\x0f\n\x07\x63hannel\x18\x04 \x01(\t\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x01\n\x13ListchannelsRequest\x12\x1d\n\x10short_channel_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06source\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x42\x13\n\x11_short_channel_idB\t\n\x07_sourceB\x0e\n\x0c_destination\"C\n\x14ListchannelsResponse\x12+\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x19.cln.ListchannelsChannels\"\xb3\x03\n\x14ListchannelsChannels\x12\x0e\n\x06source\x18\x01 \x01(\x0c\x12\x13\n\x0b\x64\x65stination\x18\x02 \x01(\x0c\x12\x18\n\x10short_channel_id\x18\x03 \x01(\t\x12\x0e\n\x06public\x18\x04 \x01(\x08\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x15\n\rmessage_flags\x18\x06 \x01(\r\x12\x15\n\rchannel_flags\x18\x07 \x01(\r\x12\x0e\n\x06\x61\x63tive\x18\x08 \x01(\x08\x12\x13\n\x0blast_update\x18\t \x01(\r\x12\x1d\n\x15\x62\x61se_fee_millisatoshi\x18\n \x01(\r\x12\x19\n\x11\x66\x65\x65_per_millionth\x18\x0b \x01(\r\x12\r\n\x05\x64\x65lay\x18\x0c \x01(\r\x12&\n\x11htlc_minimum_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x11htlc_maximum_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x10\n\x08\x66\x65\x61tures\x18\x0f \x01(\x0c\x12\x11\n\tdirection\x18\x10 \x01(\rB\x14\n\x12_htlc_maximum_msat\"#\n\x10\x41\x64\x64gossipRequest\x12\x0f\n\x07message\x18\x01 \x01(\x0c\"\x13\n\x11\x41\x64\x64gossipResponse\"o\n\x17\x41utocleaninvoiceRequest\x12\x17\n\nexpired_by\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"\x81\x01\n\x18\x41utocleaninvoiceResponse\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x17\n\nexpired_by\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x03 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"O\n\x14\x41utocleanonceRequest\x12*\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystem\x12\x0b\n\x03\x61ge\x18\x02 \x01(\x04\"G\n\x15\x41utocleanonceResponse\x12.\n\tautoclean\x18\x01 \x01(\x0b\x32\x1b.cln.AutocleanonceAutoclean\"\xb1\x04\n\x16\x41utocleanonceAutoclean\x12L\n\x11succeededforwards\x18\x01 \x01(\x0b\x32,.cln.AutocleanonceAutocleanSucceededforwardsH\x00\x88\x01\x01\x12\x46\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32).cln.AutocleanonceAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x44\n\rsucceededpays\x18\x03 \x01(\x0b\x32(.cln.AutocleanonceAutocleanSucceededpaysH\x02\x88\x01\x01\x12>\n\nfailedpays\x18\x04 \x01(\x0b\x32%.cln.AutocleanonceAutocleanFailedpaysH\x03\x88\x01\x01\x12\x42\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32\'.cln.AutocleanonceAutocleanPaidinvoicesH\x04\x88\x01\x01\x12H\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32*.cln.AutocleanonceAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"M\n\'AutocleanonceAutocleanSucceededforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"J\n$AutocleanonceAutocleanFailedforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"I\n#AutocleanonceAutocleanSucceededpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"F\n AutocleanonceAutocleanFailedpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"H\n\"AutocleanonceAutocleanPaidinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"K\n%AutocleanonceAutocleanExpiredinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"W\n\x16\x41utocleanstatusRequest\x12/\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystemH\x00\x88\x01\x01\x42\x0c\n\n_subsystem\"K\n\x17\x41utocleanstatusResponse\x12\x30\n\tautoclean\x18\x01 \x01(\x0b\x32\x1d.cln.AutocleanstatusAutoclean\"\xbf\x04\n\x18\x41utocleanstatusAutoclean\x12N\n\x11succeededforwards\x18\x01 \x01(\x0b\x32..cln.AutocleanstatusAutocleanSucceededforwardsH\x00\x88\x01\x01\x12H\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32+.cln.AutocleanstatusAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x46\n\rsucceededpays\x18\x03 \x01(\x0b\x32*.cln.AutocleanstatusAutocleanSucceededpaysH\x02\x88\x01\x01\x12@\n\nfailedpays\x18\x04 \x01(\x0b\x32\'.cln.AutocleanstatusAutocleanFailedpaysH\x03\x88\x01\x01\x12\x44\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32).cln.AutocleanstatusAutocleanPaidinvoicesH\x04\x88\x01\x01\x12J\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32,.cln.AutocleanstatusAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"g\n)AutocleanstatusAutocleanSucceededforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"d\n&AutocleanstatusAutocleanFailedforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"c\n%AutocleanstatusAutocleanSucceededpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"`\n\"AutocleanstatusAutocleanFailedpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"b\n$AutocleanstatusAutocleanPaidinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"e\n\'AutocleanstatusAutocleanExpiredinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"U\n\x13\x43heckmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\r\n\x05zbase\x18\x02 \x01(\t\x12\x13\n\x06pubkey\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x42\t\n\x07_pubkey\"8\n\x14\x43heckmessageResponse\x12\x10\n\x08verified\x18\x01 \x01(\x08\x12\x0e\n\x06pubkey\x18\x02 \x01(\x0c\"\xcb\x02\n\x0c\x43loseRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x11unilateraltimeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x66\x65\x65_negotiation_step\x18\x04 \x01(\tH\x02\x88\x01\x01\x12)\n\rwrong_funding\x18\x05 \x01(\x0b\x32\r.cln.OutpointH\x03\x88\x01\x01\x12\x1f\n\x12\x66orce_lease_closed\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1e\n\x08\x66\x65\x65range\x18\x07 \x03(\x0b\x32\x0c.cln.FeerateB\x14\n\x12_unilateraltimeoutB\x0e\n\x0c_destinationB\x17\n\x15_fee_negotiation_stepB\x10\n\x0e_wrong_fundingB\x15\n\x13_force_lease_closed\"\xab\x01\n\rCloseResponse\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.CloseResponse.CloseType\x12\x0f\n\x02tx\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04txid\x18\x03 \x01(\x0cH\x01\x88\x01\x01\"5\n\tCloseType\x12\n\n\x06MUTUAL\x10\x00\x12\x0e\n\nUNILATERAL\x10\x01\x12\x0c\n\x08UNOPENED\x10\x02\x42\x05\n\x03_txB\x07\n\x05_txid\"T\n\x0e\x43onnectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04host\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x07\n\x05_hostB\x07\n\x05_port\"\xb4\x01\n\x0f\x43onnectResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0c\x12\x38\n\tdirection\x18\x03 \x01(\x0e\x32%.cln.ConnectResponse.ConnectDirection\x12$\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x13.cln.ConnectAddress\"#\n\x10\x43onnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\xfb\x01\n\x0e\x43onnectAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.ConnectAddress.ConnectAddressType\x12\x13\n\x06socket\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04port\x18\x04 \x01(\rH\x02\x88\x01\x01\"P\n\x12\x43onnectAddressType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\t\n\x07_socketB\n\n\x08_addressB\x07\n\x05_port\"J\n\x14\x43reateinvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x10\n\x08preimage\x18\x03 \x01(\x0c\"\xfe\x05\n\x15\x43reateinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12>\n\x06status\x18\x06 \x01(\x0e\x32..cln.CreateinvoiceResponse.CreateinvoiceStatus\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12;\n\rpaid_outpoint\x18\x11 \x01(\x0b\x32\x1f.cln.CreateinvoicePaid_outpointH\n\x88\x01\x01\"8\n\x13\x43reateinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_paid_outpoint\":\n\x1a\x43reateinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x02\n\x10\x44\x61tastoreRequest\x12\x10\n\x03hex\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x36\n\x04mode\x18\x03 \x01(\x0e\x32#.cln.DatastoreRequest.DatastoreModeH\x01\x88\x01\x01\x12\x17\n\ngeneration\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\t\x12\x13\n\x06string\x18\x06 \x01(\tH\x03\x88\x01\x01\"p\n\rDatastoreMode\x12\x0f\n\x0bMUST_CREATE\x10\x00\x12\x10\n\x0cMUST_REPLACE\x10\x01\x12\x15\n\x11\x43REATE_OR_REPLACE\x10\x02\x12\x0f\n\x0bMUST_APPEND\x10\x03\x12\x14\n\x10\x43REATE_OR_APPEND\x10\x04\x42\x06\n\x04_hexB\x07\n\x05_modeB\r\n\x0b_generationB\t\n\x07_string\"\x82\x01\n\x11\x44\x61tastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"$\n\x15\x44\x61tastoreusageRequest\x12\x0b\n\x03key\x18\x01 \x03(\t\"S\n\x16\x44\x61tastoreusageResponse\x12\x39\n\x0e\x64\x61tastoreusage\x18\x01 \x01(\x0b\x32!.cln.DatastoreusageDatastoreusage\"@\n\x1c\x44\x61tastoreusageDatastoreusage\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x13\n\x0btotal_bytes\x18\x02 \x01(\x04\"\x9d\x01\n\x12\x43reateonionRequest\x12\"\n\x04hops\x18\x01 \x03(\x0b\x32\x14.cln.CreateonionHops\x12\x11\n\tassocdata\x18\x02 \x01(\x0c\x12\x18\n\x0bsession_key\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x17\n\nonion_size\x18\x04 \x01(\rH\x01\x88\x01\x01\x42\x0e\n\x0c_session_keyB\r\n\x0b_onion_size\"<\n\x13\x43reateonionResponse\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12\x16\n\x0eshared_secrets\x18\x02 \x03(\x0c\"2\n\x0f\x43reateonionHops\x12\x0e\n\x06pubkey\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\"J\n\x13\x44\x65ldatastoreRequest\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x03 \x03(\tB\r\n\x0b_generation\"\x85\x01\n\x14\x44\x65ldatastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xb6\x01\n\x11\x44\x65linvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\x12\x37\n\x06status\x18\x02 \x01(\x0e\x32\'.cln.DelinvoiceRequest.DelinvoiceStatus\x12\x15\n\x08\x64\x65sconly\x18\x03 \x01(\x08H\x00\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\x0b\n\t_desconly\"\xe6\x05\n\x12\x44\x65linvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x38\n\x06status\x18\x07 \x01(\x0e\x32(.cln.DelinvoiceResponse.DelinvoiceStatus\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x16\n\tpay_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\t\x88\x01\x01\x12\x14\n\x07paid_at\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"\xfa\x01\n\x0eInvoiceRequest\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tfallbacks\x18\x04 \x03(\t\x12\x15\n\x08preimage\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04\x63ltv\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18\x07 \x01(\x04H\x02\x88\x01\x01\x12\x19\n\x0c\x64\x65schashonly\x18\t \x01(\x08H\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x10.cln.AmountOrAnyB\x0b\n\t_preimageB\x07\n\x05_cltvB\t\n\x07_expiryB\x0f\n\r_deschashonly\"\x95\x03\n\x0fInvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x16\n\x0epayment_secret\x18\x03 \x01(\x0c\x12\x12\n\nexpires_at\x18\x04 \x01(\x04\x12\x1d\n\x10warning_capacity\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0fwarning_offline\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10warning_deadends\x18\x07 \x01(\tH\x02\x88\x01\x01\x12#\n\x16warning_private_unused\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x18\n\x0bwarning_mpp\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rcreated_index\x18\n \x01(\x04H\x05\x88\x01\x01\x42\x13\n\x11_warning_capacityB\x12\n\x10_warning_offlineB\x13\n\x11_warning_deadendsB\x19\n\x17_warning_private_unusedB\x0e\n\x0c_warning_mppB\x10\n\x0e_created_index\"#\n\x14ListdatastoreRequest\x12\x0b\n\x03key\x18\x02 \x03(\t\"G\n\x15ListdatastoreResponse\x12.\n\tdatastore\x18\x01 \x03(\x0b\x32\x1b.cln.ListdatastoreDatastore\"\x87\x01\n\x16ListdatastoreDatastore\x12\x0b\n\x03key\x18\x01 \x03(\t\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xde\x02\n\x13ListinvoicesRequest\x12\x12\n\x05label\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tinvstring\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08offer_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x12>\n\x05index\x18\x05 \x01(\x0e\x32*.cln.ListinvoicesRequest.ListinvoicesIndexH\x04\x88\x01\x01\x12\x12\n\x05start\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x12\n\x05limit\x18\x07 \x01(\rH\x06\x88\x01\x01\"-\n\x11ListinvoicesIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\x08\n\x06_labelB\x0c\n\n_invstringB\x0f\n\r_payment_hashB\x0b\n\t_offer_idB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListinvoicesResponse\x12+\n\x08invoices\x18\x01 \x03(\x0b\x32\x19.cln.ListinvoicesInvoices\"\xd4\x06\n\x14ListinvoicesInvoices\x12\r\n\x05label\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListinvoicesInvoices.ListinvoicesInvoicesStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x16\n\tpay_index\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x14\n\x07paid_at\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0e \x01(\x0cH\x08\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\x12\x42\n\rpaid_outpoint\x18\x12 \x01(\x0b\x32&.cln.ListinvoicesInvoicesPaid_outpointH\x0c\x88\x01\x01\"?\n\x1aListinvoicesInvoicesStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x11\n\x0f_local_offer_idB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"A\n!ListinvoicesInvoicesPaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x03\n\x10SendonionRequest\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12*\n\tfirst_hop\x18\x02 \x01(\x0b\x32\x17.cln.SendonionFirst_hop\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\x05label\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0eshared_secrets\x18\x05 \x03(\x0c\x12\x13\n\x06partid\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\t \x01(\x0cH\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\x0b \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\x0e\n\x0c_destinationB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0e\n\x0c_description\"\xe7\x04\n\x11SendonionResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x36\n\x06status\x18\x03 \x01(\x0e\x32&.cln.SendonionResponse.SendonionStatus\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x06 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\n \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0b \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x07message\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x13\n\x06partid\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\",\n\x0fSendonionStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"Q\n\x12SendonionFirst_hop\x12\n\n\x02id\x18\x01 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\"\xa0\x03\n\x13ListsendpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12@\n\x06status\x18\x03 \x01(\x0e\x32+.cln.ListsendpaysRequest.ListsendpaysStatusH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListsendpaysRequest.ListsendpaysIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\";\n\x12ListsendpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"-\n\x11ListsendpaysIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_statusB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListsendpaysResponse\x12+\n\x08payments\x18\x01 \x03(\x0b\x32\x19.cln.ListsendpaysPayments\"\xfc\x05\n\x14ListsendpaysPayments\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0f\n\x07groupid\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListsendpaysPayments.ListsendpaysPaymentsStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\n \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x12\x13\n\x06partid\x18\x0f \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\n\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x12 \x01(\x04H\x0b\x88\x01\x01\"C\n\x1aListsendpaysPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0f\n\r_completed_at\"\x19\n\x17ListtransactionsRequest\"S\n\x18ListtransactionsResponse\x12\x37\n\x0ctransactions\x18\x01 \x03(\x0b\x32!.cln.ListtransactionsTransactions\"\xf8\x01\n\x1cListtransactionsTransactions\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\r\n\x05rawtx\x18\x02 \x01(\x0c\x12\x13\n\x0b\x62lockheight\x18\x03 \x01(\r\x12\x0f\n\x07txindex\x18\x04 \x01(\r\x12\x10\n\x08locktime\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\r\x12\x37\n\x06inputs\x18\t \x03(\x0b\x32\'.cln.ListtransactionsTransactionsInputs\x12\x39\n\x07outputs\x18\n \x03(\x0b\x32(.cln.ListtransactionsTransactionsOutputs\"S\n\"ListtransactionsTransactionsInputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\r\n\x05index\x18\x02 \x01(\r\x12\x10\n\x08sequence\x18\x03 \x01(\r\"l\n#ListtransactionsTransactionsOutputs\x12\r\n\x05index\x18\x01 \x01(\r\x12\x14\n\x0cscriptPubKey\x18\x03 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x04\n\nPayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x17\n\nriskfactor\x18\x08 \x01(\x01H\x05\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\n \x03(\t\x12 \n\x06maxfee\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0c \x01(\tH\x07\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0e \x01(\x0cH\t\x88\x01\x01\x12&\n\x0cpartial_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x42\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_riskfactorB\t\n\x07_maxfeeB\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0f\n\r_partial_msat\"\xfb\x02\n\x0bPayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12*\n\x06status\x18\t \x01(\x0e\x32\x1a.cln.PayResponse.PayStatus\"2\n\tPayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"*\n\x10ListnodesRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListnodesResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.cln.ListnodesNodes\"\xba\x02\n\x0eListnodesNodes\x12\x0e\n\x06nodeid\x18\x01 \x01(\x0c\x12\x1b\n\x0elast_timestamp\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x12\n\x05\x61lias\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x12\n\x05\x63olor\x18\x04 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x05 \x01(\x0cH\x03\x88\x01\x01\x12/\n\taddresses\x18\x06 \x03(\x0b\x32\x1c.cln.ListnodesNodesAddresses\x12\x42\n\x10option_will_fund\x18\x07 \x01(\x0b\x32#.cln.ListnodesNodesOption_will_fundH\x04\x88\x01\x01\x42\x11\n\x0f_last_timestampB\x08\n\x06_aliasB\x08\n\x06_colorB\x0b\n\t_featuresB\x13\n\x11_option_will_fund\"\xf4\x01\n\x1eListnodesNodesOption_will_fund\x12(\n\x13lease_fee_base_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x17\n\x0flease_fee_basis\x18\x02 \x01(\r\x12\x16\n\x0e\x66unding_weight\x18\x03 \x01(\r\x12.\n\x19\x63hannel_fee_max_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x30\n(channel_fee_max_proportional_thousandths\x18\x05 \x01(\r\x12\x15\n\rcompact_lease\x18\x06 \x01(\x0c\"\xe8\x01\n\x17ListnodesNodesAddresses\x12K\n\titem_type\x18\x01 \x01(\x0e\x32\x38.cln.ListnodesNodesAddresses.ListnodesNodesAddressesType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"P\n\x1bListnodesNodesAddressesType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"g\n\x15WaitanyinvoiceRequest\x12\x1a\n\rlastpay_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\x10\n\x0e_lastpay_indexB\n\n\x08_timeout\"\xbf\x05\n\x16WaitanyinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12@\n\x06status\x18\x04 \x01(\x0e\x32\x30.cln.WaitanyinvoiceResponse.WaitanyinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12<\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32 .cln.WaitanyinvoicePaid_outpointH\t\x88\x01\x01\"-\n\x14WaitanyinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\";\n\x1bWaitanyinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"#\n\x12WaitinvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\"\xb0\x05\n\x13WaitinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitinvoiceResponse.WaitinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x39\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32\x1d.cln.WaitinvoicePaid_outpointH\t\x88\x01\x01\"*\n\x11WaitinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"8\n\x18WaitinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\x8e\x01\n\x12WaitsendpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x13\n\x06partid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x02\x88\x01\x01\x42\t\n\x07_partidB\n\n\x08_timeoutB\n\n\x08_groupid\"\x8e\x05\n\x13WaitsendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitsendpayResponse.WaitsendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\"!\n\x11WaitsendpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\x97\x01\n\x0eNewaddrRequest\x12@\n\x0b\x61\x64\x64resstype\x18\x01 \x01(\x0e\x32&.cln.NewaddrRequest.NewaddrAddresstypeH\x00\x88\x01\x01\"3\n\x12NewaddrAddresstype\x12\n\n\x06\x42\x45\x43H32\x10\x00\x12\x07\n\x03\x41LL\x10\x02\x12\x08\n\x04P2TR\x10\x03\x42\x0e\n\x0c_addresstype\"M\n\x0fNewaddrResponse\x12\x13\n\x06\x62\x65\x63h32\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04p2tr\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\t\n\x07_bech32B\x07\n\x05_p2tr\"\xb9\x01\n\x0fWithdrawRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\t\x12!\n\x07satoshi\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\"\n\x07\x66\x65\x65rate\x18\x05 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_feerate\":\n\x10WithdrawResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0c\n\x04psbt\x18\x03 \x01(\t\"\x82\x03\n\x0eKeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12+\n\nroutehints\x18\x08 \x01(\x0b\x32\x12.cln.RoutehintListH\x05\x88\x01\x01\x12&\n\textratlvs\x18\t \x01(\x0b\x32\x0e.cln.TlvStreamH\x06\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_routehintsB\x0c\n\n_extratlvs\"\xf2\x02\n\x0fKeysendResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x32\n\x06status\x18\t \x01(\x0e\x32\".cln.KeysendResponse.KeysendStatus\"\x1d\n\rKeysendStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"\xa4\x03\n\x0f\x46undpsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x14\n\x07minconf\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\x08 \x01(\x08H\x04\x88\x01\x01\x12\x17\n\nnonwrapped\x18\t \x01(\x08H\x05\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x06\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\x13\n\x11_excess_as_changeB\r\n\x0b_nonwrappedB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10\x46undpsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.FundpsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14\x46undpsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"A\n\x0fSendpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\",\n\x10SendpsbtResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"1\n\x0fSignpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x10\n\x08signonly\x18\x02 \x03(\r\"\'\n\x10SignpsbtResponse\x12\x13\n\x0bsigned_psbt\x18\x01 \x01(\t\"\xa0\x03\n\x0fUtxopsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x00\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x02\x88\x01\x01\x12\x17\n\nreservedok\x18\x08 \x01(\x08H\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\t \x01(\x08H\x04\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\r\n\x0b_reservedokB\x13\n\x11_excess_as_changeB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10UtxopsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.UtxopsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14UtxopsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\" \n\x10TxdiscardRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"6\n\x11TxdiscardResponse\x12\x13\n\x0bunsigned_tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"\xa4\x01\n\x10TxprepareRequest\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12 \n\x07outputs\x18\x05 \x03(\x0b\x32\x0f.cln.OutputDescB\n\n\x08_feerateB\n\n\x08_minconf\"D\n\x11TxprepareResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x13\n\x0bunsigned_tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"\x1d\n\rTxsendRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"8\n\x0eTxsendResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"1\n\x17ListpeerchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"K\n\x18ListpeerchannelsResponse\x12/\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x1d.cln.ListpeerchannelsChannels\"\xd7\x1b\n\x18ListpeerchannelsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x16\n\x0epeer_connected\x18\x02 \x01(\x08\x12J\n\x05state\x18\x03 \x01(\x0e\x32;.cln.ListpeerchannelsChannels.ListpeerchannelsChannelsState\x12\x19\n\x0cscratch_txid\x18\x04 \x01(\x0cH\x00\x88\x01\x01\x12:\n\x07\x66\x65\x65rate\x18\x06 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFeerateH\x01\x88\x01\x01\x12\x12\n\x05owner\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x19\n\x0c\x66unding_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x1b\n\x0e\x66unding_outnum\x18\x0b \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x0finitial_feerate\x18\x0c \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0clast_feerate\x18\r \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0cnext_feerate\x18\x0e \x01(\tH\t\x88\x01\x01\x12\x1a\n\rnext_fee_step\x18\x0f \x01(\rH\n\x88\x01\x01\x12\x37\n\x08inflight\x18\x10 \x03(\x0b\x32%.cln.ListpeerchannelsChannelsInflight\x12\x15\n\x08\x63lose_to\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\x12\x14\n\x07private\x18\x12 \x01(\x08H\x0c\x88\x01\x01\x12 \n\x06opener\x18\x13 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x14 \x01(\x0e\x32\x10.cln.ChannelSideH\r\x88\x01\x01\x12:\n\x07\x66unding\x18\x16 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFundingH\x0e\x88\x01\x01\x12$\n\nto_us_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x0f\x88\x01\x01\x12(\n\x0emin_to_us_msat\x18\x18 \x01(\x0b\x32\x0b.cln.AmountH\x10\x88\x01\x01\x12(\n\x0emax_to_us_msat\x18\x19 \x01(\x0b\x32\x0b.cln.AmountH\x11\x88\x01\x01\x12$\n\ntotal_msat\x18\x1a \x01(\x0b\x32\x0b.cln.AmountH\x12\x88\x01\x01\x12\'\n\rfee_base_msat\x18\x1b \x01(\x0b\x32\x0b.cln.AmountH\x13\x88\x01\x01\x12(\n\x1b\x66\x65\x65_proportional_millionths\x18\x1c \x01(\rH\x14\x88\x01\x01\x12)\n\x0f\x64ust_limit_msat\x18\x1d \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x30\n\x16max_total_htlc_in_msat\x18\x1e \x01(\x0b\x32\x0b.cln.AmountH\x16\x88\x01\x01\x12,\n\x12their_reserve_msat\x18\x1f \x01(\x0b\x32\x0b.cln.AmountH\x17\x88\x01\x01\x12*\n\x10our_reserve_msat\x18 \x01(\x0b\x32\x0b.cln.AmountH\x18\x88\x01\x01\x12(\n\x0espendable_msat\x18! \x01(\x0b\x32\x0b.cln.AmountH\x19\x88\x01\x01\x12)\n\x0freceivable_msat\x18\" \x01(\x0b\x32\x0b.cln.AmountH\x1a\x88\x01\x01\x12.\n\x14minimum_htlc_in_msat\x18# \x01(\x0b\x32\x0b.cln.AmountH\x1b\x88\x01\x01\x12/\n\x15minimum_htlc_out_msat\x18$ \x01(\x0b\x32\x0b.cln.AmountH\x1c\x88\x01\x01\x12/\n\x15maximum_htlc_out_msat\x18% \x01(\x0b\x32\x0b.cln.AmountH\x1d\x88\x01\x01\x12 \n\x13their_to_self_delay\x18& \x01(\rH\x1e\x88\x01\x01\x12\x1e\n\x11our_to_self_delay\x18\' \x01(\rH\x1f\x88\x01\x01\x12\x1f\n\x12max_accepted_htlcs\x18( \x01(\rH \x88\x01\x01\x12\x36\n\x05\x61lias\x18) \x01(\x0b\x32\".cln.ListpeerchannelsChannelsAliasH!\x88\x01\x01\x12\x0e\n\x06status\x18+ \x03(\t\x12 \n\x13in_payments_offered\x18, \x01(\x04H\"\x88\x01\x01\x12)\n\x0fin_offered_msat\x18- \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\"\n\x15in_payments_fulfilled\x18. \x01(\x04H$\x88\x01\x01\x12+\n\x11in_fulfilled_msat\x18/ \x01(\x0b\x32\x0b.cln.AmountH%\x88\x01\x01\x12!\n\x14out_payments_offered\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x10out_offered_msat\x18\x31 \x01(\x0b\x32\x0b.cln.AmountH\'\x88\x01\x01\x12#\n\x16out_payments_fulfilled\x18\x32 \x01(\x04H(\x88\x01\x01\x12,\n\x12out_fulfilled_msat\x18\x33 \x01(\x0b\x32\x0b.cln.AmountH)\x88\x01\x01\x12\x31\n\x05htlcs\x18\x34 \x03(\x0b\x32\".cln.ListpeerchannelsChannelsHtlcs\x12\x1a\n\rclose_to_addr\x18\x35 \x01(\tH*\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\x36 \x01(\x08H+\x88\x01\x01\x12:\n\x07updates\x18\x37 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsUpdatesH,\x88\x01\x01\x12#\n\x16last_stable_connection\x18\x38 \x01(\x04H-\x88\x01\x01\x12\x17\n\nlost_state\x18\x39 \x01(\x08H.\x88\x01\x01\x12\x1a\n\rreestablished\x18: \x01(\x08H/\x88\x01\x01\x12*\n\x10last_tx_fee_msat\x18; \x01(\x0b\x32\x0b.cln.AmountH0\x88\x01\x01\x12\x16\n\tdirection\x18< \x01(\rH1\x88\x01\x01\"\x80\x03\n\x1dListpeerchannelsChannelsState\x12\x0c\n\x08OPENINGD\x10\x00\x12\x1c\n\x18\x43HANNELD_AWAITING_LOCKIN\x10\x01\x12\x13\n\x0f\x43HANNELD_NORMAL\x10\x02\x12\x1a\n\x16\x43HANNELD_SHUTTING_DOWN\x10\x03\x12\x18\n\x14\x43LOSINGD_SIGEXCHANGE\x10\x04\x12\x15\n\x11\x43LOSINGD_COMPLETE\x10\x05\x12\x17\n\x13\x41WAITING_UNILATERAL\x10\x06\x12\x16\n\x12\x46UNDING_SPEND_SEEN\x10\x07\x12\x0b\n\x07ONCHAIN\x10\x08\x12\x17\n\x13\x44UALOPEND_OPEN_INIT\x10\t\x12\x1d\n\x19\x44UALOPEND_AWAITING_LOCKIN\x10\n\x12\x1c\n\x18\x43HANNELD_AWAITING_SPLICE\x10\x0b\x12\x1c\n\x18\x44UALOPEND_OPEN_COMMITTED\x10\x0c\x12\x1f\n\x1b\x44UALOPEND_OPEN_COMMIT_READY\x10\rB\x0f\n\r_scratch_txidB\n\n\x08_feerateB\x08\n\x06_ownerB\x13\n\x11_short_channel_idB\r\n\x0b_channel_idB\x0f\n\r_funding_txidB\x11\n\x0f_funding_outnumB\x12\n\x10_initial_feerateB\x0f\n\r_last_feerateB\x0f\n\r_next_feerateB\x10\n\x0e_next_fee_stepB\x0b\n\t_close_toB\n\n\x08_privateB\t\n\x07_closerB\n\n\x08_fundingB\r\n\x0b_to_us_msatB\x11\n\x0f_min_to_us_msatB\x11\n\x0f_max_to_us_msatB\r\n\x0b_total_msatB\x10\n\x0e_fee_base_msatB\x1e\n\x1c_fee_proportional_millionthsB\x12\n\x10_dust_limit_msatB\x19\n\x17_max_total_htlc_in_msatB\x15\n\x13_their_reserve_msatB\x13\n\x11_our_reserve_msatB\x11\n\x0f_spendable_msatB\x12\n\x10_receivable_msatB\x17\n\x15_minimum_htlc_in_msatB\x18\n\x16_minimum_htlc_out_msatB\x18\n\x16_maximum_htlc_out_msatB\x16\n\x14_their_to_self_delayB\x14\n\x12_our_to_self_delayB\x15\n\x13_max_accepted_htlcsB\x08\n\x06_aliasB\x16\n\x14_in_payments_offeredB\x12\n\x10_in_offered_msatB\x18\n\x16_in_payments_fulfilledB\x14\n\x12_in_fulfilled_msatB\x17\n\x15_out_payments_offeredB\x13\n\x11_out_offered_msatB\x19\n\x17_out_payments_fulfilledB\x15\n\x13_out_fulfilled_msatB\x10\n\x0e_close_to_addrB\x14\n\x12_ignore_fee_limitsB\n\n\x08_updatesB\x19\n\x17_last_stable_connectionB\r\n\x0b_lost_stateB\x10\n\x0e_reestablishedB\x13\n\x11_last_tx_fee_msatB\x0c\n\n_direction\"\xa7\x01\n\x1fListpeerchannelsChannelsUpdates\x12\x38\n\x05local\x18\x01 \x01(\x0b\x32).cln.ListpeerchannelsChannelsUpdatesLocal\x12?\n\x06remote\x18\x02 \x01(\x0b\x32*.cln.ListpeerchannelsChannelsUpdatesRemoteH\x00\x88\x01\x01\x42\t\n\x07_remote\"\xda\x01\n$ListpeerchannelsChannelsUpdatesLocal\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"\xdb\x01\n%ListpeerchannelsChannelsUpdatesRemote\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"?\n\x1fListpeerchannelsChannelsFeerate\x12\r\n\x05perkw\x18\x01 \x01(\r\x12\r\n\x05perkb\x18\x02 \x01(\r\"\x8b\x02\n ListpeerchannelsChannelsInflight\x12\x14\n\x0c\x66unding_txid\x18\x01 \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\x02 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x03 \x01(\t\x12\'\n\x12total_funding_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10our_funding_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x0cscratch_txid\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x1a\n\rsplice_amount\x18\x07 \x01(\x12H\x01\x88\x01\x01\x42\x0f\n\r_scratch_txidB\x10\n\x0e_splice_amount\"\x9d\x02\n\x1fListpeerchannelsChannelsFunding\x12%\n\x0bpushed_msat\x18\x01 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12%\n\x10local_funds_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11remote_funds_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\rfee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\'\n\rfee_rcvd_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x42\x0e\n\x0c_pushed_msatB\x10\n\x0e_fee_paid_msatB\x10\n\x0e_fee_rcvd_msat\"]\n\x1dListpeerchannelsChannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"\xf9\x02\n\x1dListpeerchannelsChannelsHtlcs\x12\\\n\tdirection\x18\x01 \x01(\x0e\x32I.cln.ListpeerchannelsChannelsHtlcs.ListpeerchannelsChannelsHtlcsDirection\x12\n\n\x02id\x18\x02 \x01(\x04\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x0e\n\x06\x65xpiry\x18\x04 \x01(\r\x12\x14\n\x0cpayment_hash\x18\x05 \x01(\x0c\x12\x1a\n\rlocal_trimmed\x18\x06 \x01(\x08H\x00\x88\x01\x01\x12\x13\n\x06status\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x05state\x18\x08 \x01(\x0e\x32\x0e.cln.HtlcState\"9\n&ListpeerchannelsChannelsHtlcsDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\x42\x10\n\x0e_local_trimmedB\t\n\x07_status\"3\n\x19ListclosedchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"[\n\x1aListclosedchannelsResponse\x12=\n\x0e\x63losedchannels\x18\x01 \x03(\x0b\x32%.cln.ListclosedchannelsClosedchannels\"\xf2\t\n ListclosedchannelsClosedchannels\x12\x14\n\x07peer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x01\x88\x01\x01\x12>\n\x05\x61lias\x18\x04 \x01(\x0b\x32*.cln.ListclosedchannelsClosedchannelsAliasH\x02\x88\x01\x01\x12 \n\x06opener\x18\x05 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x06 \x01(\x0e\x32\x10.cln.ChannelSideH\x03\x88\x01\x01\x12\x0f\n\x07private\x18\x07 \x01(\x08\x12\x1f\n\x17total_local_commitments\x18\t \x01(\x04\x12 \n\x18total_remote_commitments\x18\n \x01(\x04\x12\x18\n\x10total_htlcs_sent\x18\x0b \x01(\x04\x12\x14\n\x0c\x66unding_txid\x18\x0c \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\r \x01(\r\x12\x0e\n\x06leased\x18\x0e \x01(\x08\x12/\n\x15\x66unding_fee_paid_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12/\n\x15\x66unding_fee_rcvd_msat\x18\x10 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12-\n\x13\x66unding_pushed_msat\x18\x11 \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1f\n\ntotal_msat\x18\x12 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x66inal_to_us_msat\x18\x13 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emin_to_us_msat\x18\x14 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emax_to_us_msat\x18\x15 \x01(\x0b\x32\x0b.cln.Amount\x12!\n\x14last_commitment_txid\x18\x16 \x01(\x0cH\x07\x88\x01\x01\x12\x32\n\x18last_commitment_fee_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x66\n\x0b\x63lose_cause\x18\x18 \x01(\x0e\x32Q.cln.ListclosedchannelsClosedchannels.ListclosedchannelsClosedchannelsClose_cause\x12#\n\x16last_stable_connection\x18\x19 \x01(\x04H\t\x88\x01\x01\"v\n+ListclosedchannelsClosedchannelsClose_cause\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05LOCAL\x10\x01\x12\x08\n\x04USER\x10\x02\x12\n\n\x06REMOTE\x10\x03\x12\x0c\n\x08PROTOCOL\x10\x04\x12\x0b\n\x07ONCHAIN\x10\x05\x42\n\n\x08_peer_idB\x13\n\x11_short_channel_idB\x08\n\x06_aliasB\t\n\x07_closerB\x18\n\x16_funding_fee_paid_msatB\x18\n\x16_funding_fee_rcvd_msatB\x16\n\x14_funding_pushed_msatB\x17\n\x15_last_commitment_txidB\x1b\n\x19_last_commitment_fee_msatB\x19\n\x17_last_stable_connection\"e\n%ListclosedchannelsClosedchannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"L\n\x10\x44\x65\x63odepayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\x8d\x04\n\x11\x44\x65\x63odepayResponse\x12\x10\n\x08\x63urrency\x18\x01 \x01(\t\x12\x12\n\ncreated_at\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\x04\x12\r\n\x05payee\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x11\n\tsignature\x18\x07 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x1d\n\x15min_final_cltv_expiry\x18\n \x01(\r\x12\x1b\n\x0epayment_secret\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\r \x01(\x0cH\x05\x88\x01\x01\x12*\n\tfallbacks\x18\x0e \x03(\x0b\x32\x17.cln.DecodepayFallbacks\x12\"\n\x05\x65xtra\x18\x10 \x03(\x0b\x32\x13.cln.DecodepayExtraB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x13\n\x11_description_hashB\x11\n\x0f_payment_secretB\x0b\n\t_featuresB\x13\n\x11_payment_metadata\"\xd0\x01\n\x12\x44\x65\x63odepayFallbacks\x12\x41\n\titem_type\x18\x01 \x01(\x0e\x32..cln.DecodepayFallbacks.DecodepayFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x0b\n\x03hex\x18\x03 \x01(\x0c\"N\n\x16\x44\x65\x63odepayFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42\x07\n\x05_addr\"+\n\x0e\x44\x65\x63odepayExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\"\x1f\n\rDecodeRequest\x12\x0e\n\x06string\x18\x01 \x01(\t\"\xb7#\n\x0e\x44\x65\x63odeResponse\x12\x31\n\titem_type\x18\x01 \x01(\x0e\x32\x1e.cln.DecodeResponse.DecodeType\x12\r\n\x05valid\x18\x02 \x01(\x08\x12\x15\n\x08offer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0coffer_chains\x18\x04 \x03(\x0c\x12\x1b\n\x0eoffer_metadata\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x1b\n\x0eoffer_currency\x18\x06 \x01(\tH\x02\x88\x01\x01\x12+\n\x1ewarning_unknown_offer_currency\x18\x07 \x01(\tH\x03\x88\x01\x01\x12 \n\x13\x63urrency_minor_unit\x18\x08 \x01(\rH\x04\x88\x01\x01\x12\x19\n\x0coffer_amount\x18\t \x01(\x04H\x05\x88\x01\x01\x12+\n\x11offer_amount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1e\n\x11offer_description\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0coffer_issuer\x18\x0c \x01(\tH\x08\x88\x01\x01\x12\x1b\n\x0eoffer_features\x18\r \x01(\x0cH\t\x88\x01\x01\x12\"\n\x15offer_absolute_expiry\x18\x0e \x01(\x04H\n\x88\x01\x01\x12\x1f\n\x12offer_quantity_max\x18\x0f \x01(\x04H\x0b\x88\x01\x01\x12+\n\x0boffer_paths\x18\x10 \x03(\x0b\x32\x16.cln.DecodeOffer_paths\x12\x1a\n\roffer_node_id\x18\x11 \x01(\x0cH\x0c\x88\x01\x01\x12*\n\x1dwarning_missing_offer_node_id\x18\x14 \x01(\tH\r\x88\x01\x01\x12.\n!warning_invalid_offer_description\x18\x15 \x01(\tH\x0e\x88\x01\x01\x12.\n!warning_missing_offer_description\x18\x16 \x01(\tH\x0f\x88\x01\x01\x12+\n\x1ewarning_invalid_offer_currency\x18\x17 \x01(\tH\x10\x88\x01\x01\x12)\n\x1cwarning_invalid_offer_issuer\x18\x18 \x01(\tH\x11\x88\x01\x01\x12\x1c\n\x0finvreq_metadata\x18\x19 \x01(\x0cH\x12\x88\x01\x01\x12\x1c\n\x0finvreq_payer_id\x18\x1a \x01(\x0cH\x13\x88\x01\x01\x12\x19\n\x0cinvreq_chain\x18\x1b \x01(\x0cH\x14\x88\x01\x01\x12,\n\x12invreq_amount_msat\x18\x1c \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x1c\n\x0finvreq_features\x18\x1d \x01(\x0cH\x16\x88\x01\x01\x12\x1c\n\x0finvreq_quantity\x18\x1e \x01(\x04H\x17\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x1f \x01(\tH\x18\x88\x01\x01\x12&\n\x19invreq_recurrence_counter\x18 \x01(\rH\x19\x88\x01\x01\x12$\n\x17invreq_recurrence_start\x18! \x01(\rH\x1a\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_metadata\x18# \x01(\tH\x1b\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_payer_id\x18$ \x01(\tH\x1c\x88\x01\x01\x12.\n!warning_invalid_invreq_payer_note\x18% \x01(\tH\x1d\x88\x01\x01\x12\x36\n)warning_missing_invoice_request_signature\x18& \x01(\tH\x1e\x88\x01\x01\x12\x36\n)warning_invalid_invoice_request_signature\x18\' \x01(\tH\x1f\x88\x01\x01\x12\x1f\n\x12invoice_created_at\x18) \x01(\x04H \x88\x01\x01\x12$\n\x17invoice_relative_expiry\x18* \x01(\rH!\x88\x01\x01\x12!\n\x14invoice_payment_hash\x18+ \x01(\x0cH\"\x88\x01\x01\x12-\n\x13invoice_amount_msat\x18, \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\x37\n\x11invoice_fallbacks\x18- \x03(\x0b\x32\x1c.cln.DecodeInvoice_fallbacks\x12\x1d\n\x10invoice_features\x18. \x01(\x0cH$\x88\x01\x01\x12\x1c\n\x0finvoice_node_id\x18/ \x01(\x0cH%\x88\x01\x01\x12(\n\x1binvoice_recurrence_basetime\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x1dwarning_missing_invoice_paths\x18\x32 \x01(\tH\'\x88\x01\x01\x12/\n\"warning_missing_invoice_blindedpay\x18\x33 \x01(\tH(\x88\x01\x01\x12/\n\"warning_missing_invoice_created_at\x18\x34 \x01(\tH)\x88\x01\x01\x12\x31\n$warning_missing_invoice_payment_hash\x18\x35 \x01(\tH*\x88\x01\x01\x12+\n\x1ewarning_missing_invoice_amount\x18\x36 \x01(\tH+\x88\x01\x01\x12\x38\n+warning_missing_invoice_recurrence_basetime\x18\x37 \x01(\tH,\x88\x01\x01\x12,\n\x1fwarning_missing_invoice_node_id\x18\x38 \x01(\tH-\x88\x01\x01\x12.\n!warning_missing_invoice_signature\x18\x39 \x01(\tH.\x88\x01\x01\x12.\n!warning_invalid_invoice_signature\x18: \x01(\tH/\x88\x01\x01\x12\'\n\tfallbacks\x18; \x03(\x0b\x32\x14.cln.DecodeFallbacks\x12\x17\n\ncreated_at\x18< \x01(\x04H0\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18= \x01(\x04H1\x88\x01\x01\x12\x12\n\x05payee\x18> \x01(\x0cH2\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18? \x01(\x0cH3\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18@ \x01(\x0cH4\x88\x01\x01\x12\"\n\x15min_final_cltv_expiry\x18\x41 \x01(\rH5\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x42 \x01(\x0cH6\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x43 \x01(\x0cH7\x88\x01\x01\x12\x1f\n\x05\x65xtra\x18\x45 \x03(\x0b\x32\x10.cln.DecodeExtra\x12\x16\n\tunique_id\x18\x46 \x01(\tH8\x88\x01\x01\x12\x14\n\x07version\x18G \x01(\tH9\x88\x01\x01\x12\x13\n\x06string\x18H \x01(\tH:\x88\x01\x01\x12-\n\x0crestrictions\x18I \x03(\x0b\x32\x17.cln.DecodeRestrictions\x12&\n\x19warning_rune_invalid_utf8\x18J \x01(\tH;\x88\x01\x01\x12\x10\n\x03hex\x18K \x01(\x0cH<\x88\x01\x01\x12\x16\n\tdecrypted\x18L \x01(\x0cH=\x88\x01\x01\x12\x16\n\tsignature\x18M \x01(\tH>\x88\x01\x01\x12\x15\n\x08\x63urrency\x18N \x01(\tH?\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18O \x01(\x0b\x32\x0b.cln.AmountH@\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18P \x01(\tHA\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18Q \x01(\x0cHB\x88\x01\x01\"\x83\x01\n\nDecodeType\x12\x10\n\x0c\x42OLT12_OFFER\x10\x00\x12\x12\n\x0e\x42OLT12_INVOICE\x10\x01\x12\x1a\n\x16\x42OLT12_INVOICE_REQUEST\x10\x02\x12\x12\n\x0e\x42OLT11_INVOICE\x10\x03\x12\x08\n\x04RUNE\x10\x04\x12\x15\n\x11\x45MERGENCY_RECOVER\x10\x05\x42\x0b\n\t_offer_idB\x11\n\x0f_offer_metadataB\x11\n\x0f_offer_currencyB!\n\x1f_warning_unknown_offer_currencyB\x16\n\x14_currency_minor_unitB\x0f\n\r_offer_amountB\x14\n\x12_offer_amount_msatB\x14\n\x12_offer_descriptionB\x0f\n\r_offer_issuerB\x11\n\x0f_offer_featuresB\x18\n\x16_offer_absolute_expiryB\x15\n\x13_offer_quantity_maxB\x10\n\x0e_offer_node_idB \n\x1e_warning_missing_offer_node_idB$\n\"_warning_invalid_offer_descriptionB$\n\"_warning_missing_offer_descriptionB!\n\x1f_warning_invalid_offer_currencyB\x1f\n\x1d_warning_invalid_offer_issuerB\x12\n\x10_invreq_metadataB\x12\n\x10_invreq_payer_idB\x0f\n\r_invreq_chainB\x15\n\x13_invreq_amount_msatB\x12\n\x10_invreq_featuresB\x12\n\x10_invreq_quantityB\x14\n\x12_invreq_payer_noteB\x1c\n\x1a_invreq_recurrence_counterB\x1a\n\x18_invreq_recurrence_startB\"\n _warning_missing_invreq_metadataB\"\n _warning_missing_invreq_payer_idB$\n\"_warning_invalid_invreq_payer_noteB,\n*_warning_missing_invoice_request_signatureB,\n*_warning_invalid_invoice_request_signatureB\x15\n\x13_invoice_created_atB\x1a\n\x18_invoice_relative_expiryB\x17\n\x15_invoice_payment_hashB\x16\n\x14_invoice_amount_msatB\x13\n\x11_invoice_featuresB\x12\n\x10_invoice_node_idB\x1e\n\x1c_invoice_recurrence_basetimeB \n\x1e_warning_missing_invoice_pathsB%\n#_warning_missing_invoice_blindedpayB%\n#_warning_missing_invoice_created_atB\'\n%_warning_missing_invoice_payment_hashB!\n\x1f_warning_missing_invoice_amountB.\n,_warning_missing_invoice_recurrence_basetimeB\"\n _warning_missing_invoice_node_idB$\n\"_warning_missing_invoice_signatureB$\n\"_warning_invalid_invoice_signatureB\r\n\x0b_created_atB\t\n\x07_expiryB\x08\n\x06_payeeB\x0f\n\r_payment_hashB\x13\n\x11_description_hashB\x18\n\x16_min_final_cltv_expiryB\x11\n\x0f_payment_secretB\x13\n\x11_payment_metadataB\x0c\n\n_unique_idB\n\n\x08_versionB\t\n\x07_stringB\x1c\n\x1a_warning_rune_invalid_utf8B\x06\n\x04_hexB\x0c\n\n_decryptedB\x0c\n\n_signatureB\x0b\n\t_currencyB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x0b\n\t_features\"\xab\x01\n\x11\x44\x65\x63odeOffer_paths\x12\x1a\n\rfirst_node_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\x1b\n\x0e\x66irst_scid_dir\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x17\n\nfirst_scid\x18\x05 \x01(\tH\x02\x88\x01\x01\x42\x10\n\x0e_first_node_idB\x11\n\x0f_first_scid_dirB\r\n\x0b_first_scid\"\x8a\x01\n\x1f\x44\x65\x63odeOffer_recurrencePaywindow\x12\x16\n\x0eseconds_before\x18\x01 \x01(\r\x12\x15\n\rseconds_after\x18\x02 \x01(\r\x12 \n\x13proportional_amount\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\x16\n\x14_proportional_amount\"T\n\x17\x44\x65\x63odeInvoice_pathsPath\x12\x17\n\x0f\x62linded_node_id\x18\x01 \x01(\x0c\x12 \n\x18\x65ncrypted_recipient_data\x18\x02 \x01(\x0c\"Y\n\x17\x44\x65\x63odeInvoice_fallbacks\x12\x0f\n\x07version\x18\x01 \x01(\r\x12\x0b\n\x03hex\x18\x02 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_address\"\xaa\x02\n\x0f\x44\x65\x63odeFallbacks\x12\x36\n)warning_invoice_fallbacks_version_invalid\x18\x01 \x01(\tH\x00\x88\x01\x01\x12;\n\titem_type\x18\x02 \x01(\x0e\x32(.cln.DecodeFallbacks.DecodeFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0b\n\x03hex\x18\x04 \x01(\x0c\"K\n\x13\x44\x65\x63odeFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42,\n*_warning_invoice_fallbacks_version_invalidB\x07\n\x05_addr\"(\n\x0b\x44\x65\x63odeExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\";\n\x12\x44\x65\x63odeRestrictions\x12\x14\n\x0c\x61lternatives\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\"\xc2\x01\n\rDelpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12/\n\x06status\x18\x02 \x01(\x0e\x32\x1f.cln.DelpayRequest.DelpayStatus\x12\x13\n\x06partid\x18\x03 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x01\x88\x01\x01\"(\n\x0c\x44\x65lpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x42\t\n\x07_partidB\n\n\x08_groupid\"7\n\x0e\x44\x65lpayResponse\x12%\n\x08payments\x18\x01 \x03(\x0b\x32\x13.cln.DelpayPayments\"\xcb\x05\n\x0e\x44\x65lpayPayments\x12\x1a\n\rcreated_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x38\n\x06status\x18\x04 \x01(\x0e\x32(.cln.DelpayPayments.DelpayPaymentsStatus\x12%\n\x10\x61mount_sent_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x07 \x01(\x0cH\x02\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x12\n\ncreated_at\x18\t \x01(\x04\x12\x1a\n\rupdated_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x12\n\x05label\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x10 \x01(\tH\n\x88\x01\x01\x12\x17\n\nerroronion\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"=\n\x14\x44\x65lpayPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x10\n\x0e_created_indexB\t\n\x07_partidB\x0e\n\x0c_destinationB\x0e\n\x0c_amount_msatB\x10\n\x0e_updated_indexB\x0f\n\r_completed_atB\n\n\x08_groupidB\x13\n\x11_payment_preimageB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\r\n\x0b_erroronion\"\xb3\x01\n\x11\x44\x65lforwardRequest\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x12\n\nin_htlc_id\x18\x02 \x01(\x04\x12\x37\n\x06status\x18\x03 \x01(\x0e\x32\'.cln.DelforwardRequest.DelforwardStatus\"=\n\x10\x44\x65lforwardStatus\x12\x0b\n\x07SETTLED\x10\x00\x12\x10\n\x0cLOCAL_FAILED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"\x14\n\x12\x44\x65lforwardResponse\"\'\n\x13\x44isableofferRequest\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\"\x88\x01\n\x14\x44isableofferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"=\n\x11\x44isconnectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_force\"\x14\n\x12\x44isconnectResponse\"k\n\x0f\x46\x65\x65ratesRequest\x12\x31\n\x05style\x18\x01 \x01(\x0e\x32\".cln.FeeratesRequest.FeeratesStyle\"%\n\rFeeratesStyle\x12\t\n\x05PERKB\x10\x00\x12\t\n\x05PERKW\x10\x01\"\x9c\x02\n\x10\x46\x65\x65ratesResponse\x12%\n\x18warning_missing_feerates\x18\x01 \x01(\tH\x00\x88\x01\x01\x12&\n\x05perkb\x18\x02 \x01(\x0b\x32\x12.cln.FeeratesPerkbH\x01\x88\x01\x01\x12&\n\x05perkw\x18\x03 \x01(\x0b\x32\x12.cln.FeeratesPerkwH\x02\x88\x01\x01\x12\x46\n\x15onchain_fee_estimates\x18\x04 \x01(\x0b\x32\".cln.FeeratesOnchain_fee_estimatesH\x03\x88\x01\x01\x42\x1b\n\x19_warning_missing_feeratesB\x08\n\x06_perkbB\x08\n\x06_perkwB\x18\n\x16_onchain_fee_estimates\"\xd3\x03\n\rFeeratesPerkb\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkbEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkbEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\xd3\x03\n\rFeeratesPerkw\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkwEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkwEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\x9b\x02\n\x1d\x46\x65\x65ratesOnchain_fee_estimates\x12 \n\x18opening_channel_satoshis\x18\x01 \x01(\x04\x12\x1d\n\x15mutual_close_satoshis\x18\x02 \x01(\x04\x12!\n\x19unilateral_close_satoshis\x18\x03 \x01(\x04\x12\x1d\n\x15htlc_timeout_satoshis\x18\x04 \x01(\x04\x12\x1d\n\x15htlc_success_satoshis\x18\x05 \x01(\x04\x12\x30\n#unilateral_close_nonanchor_satoshis\x18\x06 \x01(\x04H\x00\x88\x01\x01\x42&\n$_unilateral_close_nonanchor_satoshis\"\xe9\x02\n\x13\x46\x65tchinvoiceRequest\x12\r\n\x05offer\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x15\n\x08quantity\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x1f\n\x12recurrence_counter\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x1d\n\x10recurrence_start\x18\x05 \x01(\x01H\x03\x88\x01\x01\x12\x1d\n\x10recurrence_label\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x14\n\x07timeout\x18\x07 \x01(\x01H\x05\x88\x01\x01\x12\x17\n\npayer_note\x18\x08 \x01(\tH\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\x0b\n\t_quantityB\x15\n\x13_recurrence_counterB\x13\n\x11_recurrence_startB\x13\n\x11_recurrence_labelB\n\n\x08_timeoutB\r\n\x0b_payer_note\"\x9a\x01\n\x14\x46\x65tchinvoiceResponse\x12\x0f\n\x07invoice\x18\x01 \x01(\t\x12)\n\x07\x63hanges\x18\x02 \x01(\x0b\x32\x18.cln.FetchinvoiceChanges\x12\x36\n\x0bnext_period\x18\x03 \x01(\x0b\x32\x1c.cln.FetchinvoiceNext_periodH\x00\x88\x01\x01\x42\x0e\n\x0c_next_period\"\x82\x02\n\x13\x46\x65tchinvoiceChanges\x12!\n\x14\x64\x65scription_appended\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0evendor_removed\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06vendor\x18\x04 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x42\x17\n\x15_description_appendedB\x0e\n\x0c_descriptionB\x11\n\x0f_vendor_removedB\t\n\x07_vendorB\x0e\n\x0c_amount_msat\"~\n\x17\x46\x65tchinvoiceNext_period\x12\x0f\n\x07\x63ounter\x18\x01 \x01(\x04\x12\x11\n\tstarttime\x18\x02 \x01(\x04\x12\x0f\n\x07\x65ndtime\x18\x03 \x01(\x04\x12\x17\n\x0fpaywindow_start\x18\x04 \x01(\x04\x12\x15\n\rpaywindow_end\x18\x05 \x01(\x04\"\'\n\x19\x46undchannel_cancelRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\"/\n\x1a\x46undchannel_cancelResponse\x12\x11\n\tcancelled\x18\x01 \x01(\t\"7\n\x1b\x46undchannel_completeRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"O\n\x1c\x46undchannel_completeResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"\xfb\x03\n\x12\x46undchannelRequest\x12 \n\x06\x61mount\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12#\n\tpush_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\tH\x05\x88\x01\x01\x12\n\n\x02id\x18\t \x01(\x0c\x12\x14\n\x07minconf\x18\n \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x05utxos\x18\x0b \x03(\x0b\x32\r.cln.Outpoint\x12\x15\n\x08mindepth\x18\x0c \x01(\rH\x07\x88\x01\x01\x12!\n\x07reserve\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\x0e \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\n\n\x08_minconfB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xe5\x01\n\x13\x46undchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0e\n\x06outnum\x18\x03 \x01(\r\x12\x12\n\nchannel_id\x18\x04 \x01(\x0c\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x37\n\x0c\x63hannel_type\x18\x07 \x01(\x0b\x32\x1c.cln.FundchannelChannel_typeH\x02\x88\x01\x01\x42\x0b\n\t_close_toB\x0b\n\t_mindepthB\x0f\n\r_channel_type\"L\n\x17\x46undchannelChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xd7\x02\n\x18\x46undchannel_startRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x1b\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\x07\x66\x65\x65rate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12#\n\tpush_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x15\n\x08mindepth\x18\x07 \x01(\rH\x04\x88\x01\x01\x12!\n\x07reserve\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0c\n\n_push_msatB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xf9\x01\n\x19\x46undchannel_startResponse\x12\x17\n\x0f\x66unding_address\x18\x01 \x01(\t\x12\x14\n\x0cscriptpubkey\x18\x02 \x01(\x0c\x12=\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32\".cln.Fundchannel_startChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x04 \x01(\x0cH\x01\x88\x01\x01\x12\x15\n\rwarning_usage\x18\x05 \x01(\t\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x0b\n\t_mindepth\"R\n\x1d\x46undchannel_startChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x9d\x01\n\rGetlogRequest\x12\x32\n\x05level\x18\x01 \x01(\x0e\x32\x1e.cln.GetlogRequest.GetlogLevelH\x00\x88\x01\x01\"N\n\x0bGetlogLevel\x12\n\n\x06\x42ROKEN\x10\x00\x12\x0b\n\x07UNUSUAL\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x06\n\x02IO\x10\x04\x12\t\n\x05TRACE\x10\x05\x42\x08\n\x06_level\"h\n\x0eGetlogResponse\x12\x12\n\ncreated_at\x18\x01 \x01(\t\x12\x12\n\nbytes_used\x18\x02 \x01(\r\x12\x11\n\tbytes_max\x18\x03 \x01(\r\x12\x1b\n\x03log\x18\x04 \x03(\x0b\x32\x0e.cln.GetlogLog\"\xe8\x02\n\tGetlogLog\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.GetlogLog.GetlogLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"l\n\rGetlogLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"\xec\x01\n\x0fGetrouteRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\nriskfactor\x18\x03 \x01(\x04\x12\x11\n\x04\x63ltv\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x13\n\x06\x66romid\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x66uzzpercent\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\x07 \x03(\t\x12\x14\n\x07maxhops\x18\x08 \x01(\rH\x03\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountB\x07\n\x05_cltvB\t\n\x07_fromidB\x0e\n\x0c_fuzzpercentB\n\n\x08_maxhops\"5\n\x10GetrouteResponse\x12!\n\x05route\x18\x01 \x03(\x0b\x32\x12.cln.GetrouteRoute\"\xc5\x01\n\rGetrouteRoute\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x05 \x01(\r\x12\x34\n\x05style\x18\x06 \x01(\x0e\x32%.cln.GetrouteRoute.GetrouteRouteStyle\"\x1d\n\x12GetrouteRouteStyle\x12\x07\n\x03TLV\x10\x00\"\xb7\x03\n\x13ListforwardsRequest\x12@\n\x06status\x18\x01 \x01(\x0e\x32+.cln.ListforwardsRequest.ListforwardsStatusH\x00\x88\x01\x01\x12\x17\n\nin_channel\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x03 \x01(\tH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListforwardsRequest.ListforwardsIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\"L\n\x12ListforwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"-\n\x11ListforwardsIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_statusB\r\n\x0b_in_channelB\x0e\n\x0c_out_channelB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListforwardsResponse\x12+\n\x08\x66orwards\x18\x01 \x03(\x0b\x32\x19.cln.ListforwardsForwards\"\xb4\x06\n\x14ListforwardsForwards\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x1c\n\x07in_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x44\n\x06status\x18\x03 \x01(\x0e\x32\x34.cln.ListforwardsForwards.ListforwardsForwardsStatus\x12\x15\n\rreceived_time\x18\x04 \x01(\x01\x12\x18\n\x0bout_channel\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\"\n\x08\x66\x65\x65_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\"\n\x08out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12G\n\x05style\x18\t \x01(\x0e\x32\x33.cln.ListforwardsForwards.ListforwardsForwardsStyleH\x03\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x18\n\x0bout_htlc_id\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rresolved_time\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x15\n\x08\x66\x61ilcode\x18\x0f \x01(\rH\t\x88\x01\x01\x12\x17\n\nfailreason\x18\x10 \x01(\tH\n\x88\x01\x01\"T\n\x1aListforwardsForwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"0\n\x19ListforwardsForwardsStyle\x12\n\n\x06LEGACY\x10\x00\x12\x07\n\x03TLV\x10\x01\x42\x0e\n\x0c_out_channelB\x0b\n\t_fee_msatB\x0b\n\t_out_msatB\x08\n\x06_styleB\r\n\x0b_in_htlc_idB\x0e\n\x0c_out_htlc_idB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_resolved_timeB\x0b\n\t_failcodeB\r\n\x0b_failreason\"a\n\x11ListoffersRequest\x12\x15\n\x08offer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0b\x61\x63tive_only\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\x0b\n\t_offer_idB\x0e\n\x0c_active_only\";\n\x12ListoffersResponse\x12%\n\x06offers\x18\x01 \x03(\x0b\x32\x15.cln.ListoffersOffers\"\x84\x01\n\x10ListoffersOffers\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"\xdb\x01\n\x0fListpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x38\n\x06status\x18\x03 \x01(\x0e\x32#.cln.ListpaysRequest.ListpaysStatusH\x02\x88\x01\x01\"7\n\x0eListpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_status\"3\n\x10ListpaysResponse\x12\x1f\n\x04pays\x18\x01 \x03(\x0b\x32\x11.cln.ListpaysPays\"\xff\x04\n\x0cListpaysPays\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x34\n\x06status\x18\x02 \x01(\x0e\x32$.cln.ListpaysPays.ListpaysPaysStatus\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x04\x12\x12\n\x05label\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x06 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12*\n\x10\x61mount_sent_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\n \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0c \x01(\x04H\x08\x88\x01\x01\x12\x15\n\x08preimage\x18\r \x01(\x0cH\t\x88\x01\x01\x12\x1c\n\x0fnumber_of_parts\x18\x0e \x01(\x04H\n\x88\x01\x01\";\n\x12ListpaysPaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x13\n\x11_amount_sent_msatB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\x0f\n\r_completed_atB\x0b\n\t_preimageB\x12\n\x10_number_of_parts\"*\n\x10ListhtlcsRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListhtlcsResponse\x12\"\n\x05htlcs\x18\x01 \x03(\x0b\x32\x13.cln.ListhtlcsHtlcs\"\x89\x02\n\x0eListhtlcsHtlcs\x12\x18\n\x10short_channel_id\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12>\n\tdirection\x18\x05 \x01(\x0e\x32+.cln.ListhtlcsHtlcs.ListhtlcsHtlcsDirection\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x1d\n\x05state\x18\x07 \x01(\x0e\x32\x0e.cln.HtlcState\"*\n\x17ListhtlcsHtlcsDirection\x12\x07\n\x03OUT\x10\x00\x12\x06\n\x02IN\x10\x01\"\xb2\x02\n\x17MultifundchannelRequest\x12\x37\n\x0c\x64\x65stinations\x18\x01 \x03(\x0b\x32!.cln.MultifundchannelDestinations\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\x12H\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x18\n\x0bminchannels\x18\x05 \x01(\x12H\x02\x88\x01\x01\x12-\n\x12\x63ommitment_feerate\x18\x06 \x01(\x0b\x32\x0c.cln.FeerateH\x03\x88\x01\x01\x42\n\n\x08_feerateB\n\n\x08_minconfB\x0e\n\x0c_minchannelsB\x15\n\x13_commitment_feerate\"\x98\x01\n\x18MultifundchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x35\n\x0b\x63hannel_ids\x18\x03 \x03(\x0b\x32 .cln.MultifundchannelChannel_ids\x12+\n\x06\x66\x61iled\x18\x04 \x03(\x0b\x32\x1b.cln.MultifundchannelFailed\"\xff\x02\n\x1cMultifundchannelDestinations\x12\n\n\x02id\x18\x01 \x01(\t\x12 \n\x06\x61mount\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12#\n\tpush_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12%\n\x0brequest_amt\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08mindepth\x18\x08 \x01(\rH\x05\x88\x01\x01\x12!\n\x07reserve\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x42\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xcb\x01\n\x1bMultifundchannelChannel_ids\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12\x12\n\nchannel_id\x18\x03 \x01(\x0c\x12G\n\x0c\x63hannel_type\x18\x04 \x01(\x0b\x32,.cln.MultifundchannelChannel_idsChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_to\"\\\n\'MultifundchannelChannel_idsChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x93\x02\n\x16MultifundchannelFailed\x12\n\n\x02id\x18\x01 \x01(\x0c\x12H\n\x06method\x18\x02 \x01(\x0e\x32\x38.cln.MultifundchannelFailed.MultifundchannelFailedMethod\x12/\n\x05\x65rror\x18\x03 \x01(\x0b\x32 .cln.MultifundchannelFailedError\"r\n\x1cMultifundchannelFailedMethod\x12\x0b\n\x07\x43ONNECT\x10\x00\x12\x14\n\x10OPENCHANNEL_INIT\x10\x01\x12\x15\n\x11\x46UNDCHANNEL_START\x10\x02\x12\x18\n\x14\x46UNDCHANNEL_COMPLETE\x10\x03\"<\n\x1bMultifundchannelFailedError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x12\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xc1\x03\n\x0cOfferRequest\x12\x0e\n\x06\x61mount\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x06issuer\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cquantity_max\x18\x05 \x01(\x04H\x02\x88\x01\x01\x12\x1c\n\x0f\x61\x62solute_expiry\x18\x06 \x01(\x04H\x03\x88\x01\x01\x12\x17\n\nrecurrence\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x1c\n\x0frecurrence_base\x18\x08 \x01(\tH\x05\x88\x01\x01\x12!\n\x14recurrence_paywindow\x18\t \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10recurrence_limit\x18\n \x01(\rH\x07\x88\x01\x01\x12\x17\n\nsingle_use\x18\x0b \x01(\x08H\x08\x88\x01\x01\x42\t\n\x07_issuerB\x08\n\x06_labelB\x0f\n\r_quantity_maxB\x12\n\x10_absolute_expiryB\r\n\x0b_recurrenceB\x12\n\x10_recurrence_baseB\x17\n\x15_recurrence_paywindowB\x13\n\x11_recurrence_limitB\r\n\x0b_single_use\"\x92\x01\n\rOfferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x0f\n\x07\x63reated\x18\x06 \x01(\x08\x12\x12\n\x05label\x18\x07 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\".\n\x18Openchannel_abortRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"Y\n\x19Openchannel_abortResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x18\n\x10\x63hannel_canceled\x18\x02 \x01(\x08\x12\x0e\n\x06reason\x18\x03 \x01(\t\"\x9f\x01\n\x17Openchannel_bumpRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12*\n\x0f\x66unding_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x1b\n\x06\x61mount\x18\x04 \x01(\x0b\x32\x0b.cln.AmountB\x12\n\x10_funding_feerate\"\x86\x02\n\x18Openchannel_bumpResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12<\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32!.cln.Openchannel_bumpChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_bumpChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xa0\x03\n\x17Openchannel_initRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12-\n\x12\x63ommitment_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12*\n\x0f\x66unding_feerate\x18\x04 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\r\x12\x1b\n\x06\x61mount\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x15\n\x13_commitment_feerateB\x12\n\x10_funding_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_lease\"\x86\x02\n\x18Openchannel_initResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12<\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32!.cln.Openchannel_initChannel_typeH\x00\x88\x01\x01\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_initChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"D\n\x19Openchannel_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0bsigned_psbt\x18\x02 \x01(\t\"J\n\x1aOpenchannel_signedResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"=\n\x19Openchannel_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"\xae\x02\n\x1aOpenchannel_updateResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12>\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32#.cln.Openchannel_updateChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_outnum\x18\x05 \x01(\r\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12&\n\x19requires_confirmed_inputs\x18\x07 \x01(\x08H\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x1c\n\x1a_requires_confirmed_inputs\"S\n\x1eOpenchannel_updateChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"Y\n\x0bPingRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x03len\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x16\n\tpongbytes\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x06\n\x04_lenB\x0c\n\n_pongbytes\"\x1e\n\x0cPingResponse\x12\x0e\n\x06totlen\x18\x01 \x01(\r\"\x91\x01\n\rPluginRequest\x12)\n\nsubcommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12\x13\n\x06plugin\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tdirectory\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x07options\x18\x04 \x03(\tB\t\n\x07_pluginB\x0c\n\n_directory\"}\n\x0ePluginResponse\x12&\n\x07\x63ommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12#\n\x07plugins\x18\x02 \x03(\x0b\x32\x12.cln.PluginPlugins\x12\x13\n\x06result\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\t\n\x07_result\">\n\rPluginPlugins\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x0f\n\x07\x64ynamic\x18\x03 \x01(\x08\"<\n\x14RenepaystatusRequest\x12\x16\n\tinvstring\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_invstring\"G\n\x15RenepaystatusResponse\x12.\n\tpaystatus\x18\x01 \x03(\x0b\x32\x1b.cln.RenepaystatusPaystatus\"\xe2\x03\n\x16RenepaystatusPaystatus\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x1d\n\x10payment_preimage\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\x0f\n\x07groupid\x18\x05 \x01(\r\x12\x12\n\x05parts\x18\x06 \x01(\rH\x01\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12H\n\x06status\x18\t \x01(\x0e\x32\x38.cln.RenepaystatusPaystatus.RenepaystatusPaystatusStatus\x12\x18\n\x0b\x64\x65stination\x18\n \x01(\x0cH\x03\x88\x01\x01\x12\r\n\x05notes\x18\x0b \x03(\t\"E\n\x1cRenepaystatusPaystatusStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x13\n\x11_payment_preimageB\x08\n\x06_partsB\x13\n\x11_amount_sent_msatB\x0e\n\x0c_destination\"\xc9\x02\n\x0eRenepayRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12 \n\x06maxfee\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x03\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x12\n\x05label\x18\x07 \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0e\x64\x65v_use_shadow\x18\x08 \x01(\x08H\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_maxfeeB\x0b\n\t_maxdelayB\x0c\n\n_retry_forB\x0e\n\x0c_descriptionB\x08\n\x06_labelB\x11\n\x0f_dev_use_shadow\"\xc3\x02\n\x0fRenepayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\ncreated_at\x18\x03 \x01(\x01\x12\r\n\x05parts\x18\x04 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12\x32\n\x06status\x18\x07 \x01(\x0e\x32\".cln.RenepayResponse.RenepayStatus\x12\x18\n\x0b\x64\x65stination\x18\x08 \x01(\x0cH\x00\x88\x01\x01\"6\n\rRenepayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destination\"l\n\x14ReserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\texclusive\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x0c\n\n_exclusiveB\n\n\x08_reserve\"M\n\x15ReserveinputsResponse\x12\x34\n\x0creservations\x18\x01 \x03(\x0b\x32\x1e.cln.ReserveinputsReservations\"z\n\x19ReserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"4\n\x14SendcustommsgRequest\x12\x0f\n\x07node_id\x18\x01 \x01(\x0c\x12\x0b\n\x03msg\x18\x02 \x01(\x0c\"\'\n\x15SendcustommsgResponse\x12\x0e\n\x06status\x18\x01 \x01(\t\"\xb0\x01\n\x12SendinvoiceRequest\x12\x0e\n\x06invreq\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08quantity\x18\x05 \x01(\x04H\x02\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\n\n\x08_timeoutB\x0b\n\t_quantity\"\xcf\x04\n\x13SendinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.SendinvoiceResponse.SendinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x08 \x01(\x04H\x02\x88\x01\x01\x12\x1a\n\rupdated_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12\x16\n\tpay_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\"6\n\x11SendinvoiceStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt12B\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"f\n\x17SendonionmessageRequest\x12\x10\n\x08\x66irst_id\x18\x01 \x01(\x0c\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\'\n\x04hops\x18\x03 \x03(\x0b\x32\x19.cln.SendonionmessageHops\"\x1a\n\x18SendonionmessageResponse\"1\n\x14SendonionmessageHops\x12\x0c\n\x04node\x18\x01 \x01(\x0c\x12\x0b\n\x03tlv\x18\x02 \x01(\r\"\xaa\x02\n\x11SetchannelRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x07\x66\x65\x65\x62\x61se\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x66\x65\x65ppm\x18\x03 \x01(\rH\x01\x88\x01\x01\x12!\n\x07htlcmin\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12!\n\x07htlcmax\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x19\n\x0c\x65nforcedelay\x18\x06 \x01(\rH\x04\x88\x01\x01\x12\x1c\n\x0fignorefeelimits\x18\x07 \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_feebaseB\t\n\x07_feeppmB\n\n\x08_htlcminB\n\n\x08_htlcmaxB\x0f\n\r_enforcedelayB\x12\n\x10_ignorefeelimits\"?\n\x12SetchannelResponse\x12)\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x17.cln.SetchannelChannels\"\xca\x03\n\x12SetchannelChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\x12*\n\x15minimum_htlc_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x17warning_htlcmin_too_low\x18\x07 \x01(\tH\x01\x88\x01\x01\x12*\n\x15maximum_htlc_out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x18warning_htlcmax_too_high\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\n \x01(\x08H\x03\x88\x01\x01\x42\x13\n\x11_short_channel_idB\x1a\n\x18_warning_htlcmin_too_lowB\x1b\n\x19_warning_htlcmax_too_highB\x14\n\x12_ignore_fee_limits\"<\n\x10SetconfigRequest\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x10\n\x03val\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_val\"9\n\x11SetconfigResponse\x12$\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x14.cln.SetconfigConfig\"\xa5\x02\n\x0fSetconfigConfig\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x06plugin\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07\x64ynamic\x18\x04 \x01(\x08\x12\x10\n\x03set\x18\x05 \x01(\x08H\x01\x88\x01\x01\x12\x16\n\tvalue_str\x18\x06 \x01(\tH\x02\x88\x01\x01\x12$\n\nvalue_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x16\n\tvalue_int\x18\x08 \x01(\x12H\x04\x88\x01\x01\x12\x17\n\nvalue_bool\x18\t \x01(\x08H\x05\x88\x01\x01\x42\t\n\x07_pluginB\x06\n\x04_setB\x0c\n\n_value_strB\r\n\x0b_value_msatB\x0c\n\n_value_intB\r\n\x0b_value_bool\"6\n\x15SetpsbtversionRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\r\"&\n\x16SetpsbtversionResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"\'\n\x12SigninvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\"%\n\x13SigninvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"%\n\x12SignmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\"F\n\x13SignmessageResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\r\n\x05recid\x18\x02 \x01(\x0c\x12\r\n\x05zbase\x18\x03 \x01(\t\"\xc9\x01\n\x12Splice_initRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x17\n\x0frelative_amount\x18\x02 \x01(\x12\x12\x18\n\x0binitialpsbt\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0e\x66\x65\x65rate_per_kw\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1a\n\rforce_feerate\x18\x05 \x01(\x08H\x02\x88\x01\x01\x42\x0e\n\x0c_initialpsbtB\x11\n\x0f_feerate_per_kwB\x10\n\x0e_force_feerate\"#\n\x13Splice_initResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"`\n\x14Splice_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12\x17\n\nsign_first\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\r\n\x0b_sign_first\"1\n\x15Splice_signedResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"8\n\x14Splice_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"B\n\x15Splice_updateResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"H\n\x16UnreserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\"Q\n\x17UnreserveinputsResponse\x12\x36\n\x0creservations\x18\x01 \x03(\x0b\x32 .cln.UnreserveinputsReservations\"\x97\x01\n\x1bUnreserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\x05 \x01(\rH\x00\x88\x01\x01\x42\x14\n\x12_reserved_to_block\"n\n\x14UpgradewalletRequest\x12\"\n\x07\x66\x65\x65rate\x18\x01 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x17\n\nreservedok\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\n\n\x08_feerateB\r\n\x0b_reservedok\"\x95\x01\n\x15UpgradewalletResponse\x12\x1a\n\rupgraded_outs\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x11\n\x04psbt\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x02tx\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x11\n\x04txid\x18\x04 \x01(\x0cH\x03\x88\x01\x01\x42\x10\n\x0e_upgraded_outsB\x07\n\x05_psbtB\x05\n\x03_txB\x07\n\x05_txid\"O\n\x16WaitblockheightRequest\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\x12\x14\n\x07timeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_timeout\".\n\x17WaitblockheightResponse\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\"\xf9\x01\n\x0bWaitRequest\x12\x31\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitSubsystem\x12\x31\n\tindexname\x18\x02 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitIndexname\x12\x11\n\tnextvalue\x18\x03 \x01(\x04\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\"6\n\rWaitIndexname\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\"\x97\x02\n\x0cWaitResponse\x12\x32\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1f.cln.WaitResponse.WaitSubsystem\x12\x14\n\x07\x63reated\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07updated\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x14\n\x07\x64\x65leted\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12&\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32\x10.cln.WaitDetailsH\x03\x88\x01\x01\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\x42\n\n\x08_createdB\n\n\x08_updatedB\n\n\x08_deletedB\n\n\x08_details\"\xfc\x04\n\x0bWaitDetails\x12\x37\n\x06status\x18\x01 \x01(\x0e\x32\".cln.WaitDetails.WaitDetailsStatusH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x07 \x01(\x04H\x06\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x08 \x01(\x0cH\x07\x88\x01\x01\x12\x17\n\nin_channel\x18\t \x01(\tH\x08\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\t\x88\x01\x01\x12!\n\x07in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x0c \x01(\tH\x0b\x88\x01\x01\"\x89\x01\n\x11WaitDetailsStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x43OMPLETE\x10\x05\x12\x0b\n\x07OFFERED\x10\x06\x12\x0b\n\x07SETTLED\x10\x07\x12\x10\n\x0cLOCAL_FAILED\x10\x08\x42\t\n\x07_statusB\x08\n\x06_labelB\x0e\n\x0c_descriptionB\t\n\x07_bolt11B\t\n\x07_bolt12B\t\n\x07_partidB\n\n\x08_groupidB\x0f\n\r_payment_hashB\r\n\x0b_in_channelB\r\n\x0b_in_htlc_idB\n\n\x08_in_msatB\x0e\n\x0c_out_channel\"\r\n\x0bStopRequest\"q\n\x0cStopResponse\x12\x31\n\x06result\x18\x01 \x01(\x0e\x32\x1c.cln.StopResponse.StopResultH\x00\x88\x01\x01\"#\n\nStopResult\x12\x15\n\x11SHUTDOWN_COMPLETE\x10\x00\x42\t\n\x07_result\"g\n\x18PreapprovekeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\"\x1b\n\x19PreapprovekeysendResponse\"*\n\x18PreapproveinvoiceRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"\x1b\n\x19PreapproveinvoiceResponse\"\x15\n\x13StaticbackupRequest\"#\n\x14StaticbackupResponse\x12\x0b\n\x03scb\x18\x01 \x03(\x0c\"d\n\x16\x42kprchannelsapyRequest\x12\x17\n\nstart_time\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x17\x42kprchannelsapyResponse\x12\x36\n\x0c\x63hannels_apy\x18\x01 \x03(\x0b\x32 .cln.BkprchannelsapyChannels_apy\"\xfa\x06\n\x1b\x42kprchannelsapyChannels_apy\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12$\n\x0frouted_out_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0erouted_in_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12(\n\x13lease_fee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x15lease_fee_earned_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x0fpushed_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0epushed_in_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x16our_start_balance_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12/\n\x1a\x63hannel_start_balance_msat\x18\t \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\rfees_out_msat\x18\n \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x0c\x66\x65\x65s_in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x17\n\x0futilization_out\x18\x0c \x01(\t\x12$\n\x17utilization_out_initial\x18\r \x01(\tH\x01\x88\x01\x01\x12\x16\n\x0eutilization_in\x18\x0e \x01(\t\x12#\n\x16utilization_in_initial\x18\x0f \x01(\tH\x02\x88\x01\x01\x12\x0f\n\x07\x61py_out\x18\x10 \x01(\t\x12\x1c\n\x0f\x61py_out_initial\x18\x11 \x01(\tH\x03\x88\x01\x01\x12\x0e\n\x06\x61py_in\x18\x12 \x01(\t\x12\x1b\n\x0e\x61py_in_initial\x18\x13 \x01(\tH\x04\x88\x01\x01\x12\x11\n\tapy_total\x18\x14 \x01(\t\x12\x1e\n\x11\x61py_total_initial\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x16\n\tapy_lease\x18\x16 \x01(\tH\x06\x88\x01\x01\x42\x0f\n\r_fees_in_msatB\x1a\n\x18_utilization_out_initialB\x19\n\x17_utilization_in_initialB\x12\n\x10_apy_out_initialB\x11\n\x0f_apy_in_initialB\x14\n\x12_apy_total_initialB\x0c\n\n_apy_lease\"\xd2\x01\n\x18\x42kprdumpincomecsvRequest\x12\x12\n\ncsv_format\x18\x01 \x01(\t\x12\x15\n\x08\x63sv_file\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10\x63onsolidate_fees\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x17\n\nstart_time\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x05 \x01(\x04H\x03\x88\x01\x01\x42\x0b\n\t_csv_fileB\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"\xd6\x01\n\x19\x42kprdumpincomecsvResponse\x12\x10\n\x08\x63sv_file\x18\x01 \x01(\t\x12N\n\ncsv_format\x18\x02 \x01(\x0e\x32:.cln.BkprdumpincomecsvResponse.BkprdumpincomecsvCsv_format\"W\n\x1b\x42kprdumpincomecsvCsv_format\x12\x0f\n\x0b\x43OINTRACKER\x10\x00\x12\n\n\x06KOINLY\x10\x01\x12\x0b\n\x07HARMONY\x10\x02\x12\x0e\n\nQUICKBOOKS\x10\x03\"%\n\x12\x42kprinspectRequest\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\"7\n\x13\x42kprinspectResponse\x12 \n\x03txs\x18\x01 \x03(\x0b\x32\x13.cln.BkprinspectTxs\"\x9a\x01\n\x0e\x42kprinspectTxs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x18\n\x0b\x62lockheight\x18\x02 \x01(\rH\x00\x88\x01\x01\x12#\n\x0e\x66\x65\x65s_paid_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x07outputs\x18\x04 \x03(\x0b\x32\x1a.cln.BkprinspectTxsOutputsB\x0e\n\x0c_blockheight\"\xbc\x03\n\x15\x42kprinspectTxsOutputs\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12&\n\x11output_value_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x04 \x01(\t\x12%\n\x0b\x63redit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12$\n\ndebit_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12 \n\x13originating_account\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x17\n\noutput_tag\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x16\n\tspend_tag\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rspending_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x42\x0e\n\x0c_credit_msatB\r\n\x0b_debit_msatB\x16\n\x14_originating_accountB\r\n\x0b_output_tagB\x0c\n\n_spend_tagB\x10\n\x0e_spending_txidB\r\n\x0b_payment_id\"@\n\x1c\x42kprlistaccounteventsRequest\x12\x14\n\x07\x61\x63\x63ount\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_account\"Q\n\x1d\x42kprlistaccounteventsResponse\x12\x30\n\x06\x65vents\x18\x01 \x03(\x0b\x32 .cln.BkprlistaccounteventsEvents\"\xa1\x05\n\x1b\x42kprlistaccounteventsEvents\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12S\n\titem_type\x18\x02 \x01(\x0e\x32@.cln.BkprlistaccounteventsEvents.BkprlistaccounteventsEventsType\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x06 \x01(\t\x12\x11\n\ttimestamp\x18\x07 \x01(\r\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x62lockheight\x18\t \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06origin\x18\n \x01(\tH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x11\n\x04txid\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x05\x88\x01\x01\x12#\n\tfees_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x19\n\x0cis_rebalance\x18\x0f \x01(\x08H\x07\x88\x01\x01\x12\x14\n\x07part_id\x18\x10 \x01(\rH\x08\x88\x01\x01\"J\n\x1f\x42kprlistaccounteventsEventsType\x12\x0f\n\x0bONCHAIN_FEE\x10\x00\x12\t\n\x05\x43HAIN\x10\x01\x12\x0b\n\x07\x43HANNEL\x10\x02\x42\x0b\n\t_outpointB\x0e\n\x0c_blockheightB\t\n\x07_originB\r\n\x0b_payment_idB\x07\n\x05_txidB\x0e\n\x0c_descriptionB\x0c\n\n_fees_msatB\x0f\n\r_is_rebalanceB\n\n\x08_part_id\"\x19\n\x17\x42kprlistbalancesRequest\"K\n\x18\x42kprlistbalancesResponse\x12/\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x1d.cln.BkprlistbalancesAccounts\"\xc6\x02\n\x18\x42kprlistbalancesAccounts\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x37\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32%.cln.BkprlistbalancesAccountsBalances\x12\x14\n\x07peer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x16\n\twe_opened\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x0e\x61\x63\x63ount_closed\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x1d\n\x10\x61\x63\x63ount_resolved\x18\x06 \x01(\x08H\x03\x88\x01\x01\x12\x1e\n\x11resolved_at_block\x18\x07 \x01(\rH\x04\x88\x01\x01\x42\n\n\x08_peer_idB\x0c\n\n_we_openedB\x11\n\x0f_account_closedB\x13\n\x11_account_resolvedB\x14\n\x12_resolved_at_block\"X\n BkprlistbalancesAccountsBalances\x12!\n\x0c\x62\x61lance_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x11\n\tcoin_type\x18\x02 \x01(\t\"\x97\x01\n\x15\x42kprlistincomeRequest\x12\x1d\n\x10\x63onsolidate_fees\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x17\n\nstart_time\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x03 \x01(\rH\x02\x88\x01\x01\x42\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x16\x42kprlistincomeResponse\x12\x37\n\rincome_events\x18\x01 \x03(\x0b\x32 .cln.BkprlistincomeIncome_events\"\xb5\x02\n\x1b\x42kprlistincomeIncome_events\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0b\n\x03tag\x18\x02 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x05 \x01(\t\x12\x11\n\ttimestamp\x18\x06 \x01(\r\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04txid\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\n \x01(\x0cH\x03\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x0b\n\t_outpointB\x07\n\x05_txidB\r\n\x0b_payment_id2\xdb\x33\n\x04Node\x12\x36\n\x07Getinfo\x12\x13.cln.GetinfoRequest\x1a\x14.cln.GetinfoResponse\"\x00\x12<\n\tListPeers\x12\x15.cln.ListpeersRequest\x1a\x16.cln.ListpeersResponse\"\x00\x12<\n\tListFunds\x12\x15.cln.ListfundsRequest\x1a\x16.cln.ListfundsResponse\"\x00\x12\x36\n\x07SendPay\x12\x13.cln.SendpayRequest\x1a\x14.cln.SendpayResponse\"\x00\x12\x45\n\x0cListChannels\x12\x18.cln.ListchannelsRequest\x1a\x19.cln.ListchannelsResponse\"\x00\x12<\n\tAddGossip\x12\x15.cln.AddgossipRequest\x1a\x16.cln.AddgossipResponse\"\x00\x12Q\n\x10\x41utoCleanInvoice\x12\x1c.cln.AutocleaninvoiceRequest\x1a\x1d.cln.AutocleaninvoiceResponse\"\x00\x12H\n\rAutoCleanOnce\x12\x19.cln.AutocleanonceRequest\x1a\x1a.cln.AutocleanonceResponse\"\x00\x12N\n\x0f\x41utoCleanStatus\x12\x1b.cln.AutocleanstatusRequest\x1a\x1c.cln.AutocleanstatusResponse\"\x00\x12\x45\n\x0c\x43heckMessage\x12\x18.cln.CheckmessageRequest\x1a\x19.cln.CheckmessageResponse\"\x00\x12\x30\n\x05\x43lose\x12\x11.cln.CloseRequest\x1a\x12.cln.CloseResponse\"\x00\x12:\n\x0b\x43onnectPeer\x12\x13.cln.ConnectRequest\x1a\x14.cln.ConnectResponse\"\x00\x12H\n\rCreateInvoice\x12\x19.cln.CreateinvoiceRequest\x1a\x1a.cln.CreateinvoiceResponse\"\x00\x12<\n\tDatastore\x12\x15.cln.DatastoreRequest\x1a\x16.cln.DatastoreResponse\"\x00\x12K\n\x0e\x44\x61tastoreUsage\x12\x1a.cln.DatastoreusageRequest\x1a\x1b.cln.DatastoreusageResponse\"\x00\x12\x42\n\x0b\x43reateOnion\x12\x17.cln.CreateonionRequest\x1a\x18.cln.CreateonionResponse\"\x00\x12\x45\n\x0c\x44\x65lDatastore\x12\x18.cln.DeldatastoreRequest\x1a\x19.cln.DeldatastoreResponse\"\x00\x12?\n\nDelInvoice\x12\x16.cln.DelinvoiceRequest\x1a\x17.cln.DelinvoiceResponse\"\x00\x12\x36\n\x07Invoice\x12\x13.cln.InvoiceRequest\x1a\x14.cln.InvoiceResponse\"\x00\x12H\n\rListDatastore\x12\x19.cln.ListdatastoreRequest\x1a\x1a.cln.ListdatastoreResponse\"\x00\x12\x45\n\x0cListInvoices\x12\x18.cln.ListinvoicesRequest\x1a\x19.cln.ListinvoicesResponse\"\x00\x12<\n\tSendOnion\x12\x15.cln.SendonionRequest\x1a\x16.cln.SendonionResponse\"\x00\x12\x45\n\x0cListSendPays\x12\x18.cln.ListsendpaysRequest\x1a\x19.cln.ListsendpaysResponse\"\x00\x12Q\n\x10ListTransactions\x12\x1c.cln.ListtransactionsRequest\x1a\x1d.cln.ListtransactionsResponse\"\x00\x12*\n\x03Pay\x12\x0f.cln.PayRequest\x1a\x10.cln.PayResponse\"\x00\x12<\n\tListNodes\x12\x15.cln.ListnodesRequest\x1a\x16.cln.ListnodesResponse\"\x00\x12K\n\x0eWaitAnyInvoice\x12\x1a.cln.WaitanyinvoiceRequest\x1a\x1b.cln.WaitanyinvoiceResponse\"\x00\x12\x42\n\x0bWaitInvoice\x12\x17.cln.WaitinvoiceRequest\x1a\x18.cln.WaitinvoiceResponse\"\x00\x12\x42\n\x0bWaitSendPay\x12\x17.cln.WaitsendpayRequest\x1a\x18.cln.WaitsendpayResponse\"\x00\x12\x36\n\x07NewAddr\x12\x13.cln.NewaddrRequest\x1a\x14.cln.NewaddrResponse\"\x00\x12\x39\n\x08Withdraw\x12\x14.cln.WithdrawRequest\x1a\x15.cln.WithdrawResponse\"\x00\x12\x36\n\x07KeySend\x12\x13.cln.KeysendRequest\x1a\x14.cln.KeysendResponse\"\x00\x12\x39\n\x08\x46undPsbt\x12\x14.cln.FundpsbtRequest\x1a\x15.cln.FundpsbtResponse\"\x00\x12\x39\n\x08SendPsbt\x12\x14.cln.SendpsbtRequest\x1a\x15.cln.SendpsbtResponse\"\x00\x12\x39\n\x08SignPsbt\x12\x14.cln.SignpsbtRequest\x1a\x15.cln.SignpsbtResponse\"\x00\x12\x39\n\x08UtxoPsbt\x12\x14.cln.UtxopsbtRequest\x1a\x15.cln.UtxopsbtResponse\"\x00\x12<\n\tTxDiscard\x12\x15.cln.TxdiscardRequest\x1a\x16.cln.TxdiscardResponse\"\x00\x12<\n\tTxPrepare\x12\x15.cln.TxprepareRequest\x1a\x16.cln.TxprepareResponse\"\x00\x12\x33\n\x06TxSend\x12\x12.cln.TxsendRequest\x1a\x13.cln.TxsendResponse\"\x00\x12Q\n\x10ListPeerChannels\x12\x1c.cln.ListpeerchannelsRequest\x1a\x1d.cln.ListpeerchannelsResponse\"\x00\x12W\n\x12ListClosedChannels\x12\x1e.cln.ListclosedchannelsRequest\x1a\x1f.cln.ListclosedchannelsResponse\"\x00\x12<\n\tDecodePay\x12\x15.cln.DecodepayRequest\x1a\x16.cln.DecodepayResponse\"\x00\x12\x33\n\x06\x44\x65\x63ode\x12\x12.cln.DecodeRequest\x1a\x13.cln.DecodeResponse\"\x00\x12\x33\n\x06\x44\x65lPay\x12\x12.cln.DelpayRequest\x1a\x13.cln.DelpayResponse\"\x00\x12?\n\nDelForward\x12\x16.cln.DelforwardRequest\x1a\x17.cln.DelforwardResponse\"\x00\x12\x45\n\x0c\x44isableOffer\x12\x18.cln.DisableofferRequest\x1a\x19.cln.DisableofferResponse\"\x00\x12?\n\nDisconnect\x12\x16.cln.DisconnectRequest\x1a\x17.cln.DisconnectResponse\"\x00\x12\x39\n\x08\x46\x65\x65rates\x12\x14.cln.FeeratesRequest\x1a\x15.cln.FeeratesResponse\"\x00\x12\x45\n\x0c\x46\x65tchInvoice\x12\x18.cln.FetchinvoiceRequest\x1a\x19.cln.FetchinvoiceResponse\"\x00\x12W\n\x12\x46undChannel_Cancel\x12\x1e.cln.Fundchannel_cancelRequest\x1a\x1f.cln.Fundchannel_cancelResponse\"\x00\x12]\n\x14\x46undChannel_Complete\x12 .cln.Fundchannel_completeRequest\x1a!.cln.Fundchannel_completeResponse\"\x00\x12\x42\n\x0b\x46undChannel\x12\x17.cln.FundchannelRequest\x1a\x18.cln.FundchannelResponse\"\x00\x12T\n\x11\x46undChannel_Start\x12\x1d.cln.Fundchannel_startRequest\x1a\x1e.cln.Fundchannel_startResponse\"\x00\x12\x33\n\x06GetLog\x12\x12.cln.GetlogRequest\x1a\x13.cln.GetlogResponse\"\x00\x12\x39\n\x08GetRoute\x12\x14.cln.GetrouteRequest\x1a\x15.cln.GetrouteResponse\"\x00\x12\x45\n\x0cListForwards\x12\x18.cln.ListforwardsRequest\x1a\x19.cln.ListforwardsResponse\"\x00\x12?\n\nListOffers\x12\x16.cln.ListoffersRequest\x1a\x17.cln.ListoffersResponse\"\x00\x12\x39\n\x08ListPays\x12\x14.cln.ListpaysRequest\x1a\x15.cln.ListpaysResponse\"\x00\x12<\n\tListHtlcs\x12\x15.cln.ListhtlcsRequest\x1a\x16.cln.ListhtlcsResponse\"\x00\x12Q\n\x10MultiFundChannel\x12\x1c.cln.MultifundchannelRequest\x1a\x1d.cln.MultifundchannelResponse\"\x00\x12\x30\n\x05Offer\x12\x11.cln.OfferRequest\x1a\x12.cln.OfferResponse\"\x00\x12T\n\x11OpenChannel_Abort\x12\x1d.cln.Openchannel_abortRequest\x1a\x1e.cln.Openchannel_abortResponse\"\x00\x12Q\n\x10OpenChannel_Bump\x12\x1c.cln.Openchannel_bumpRequest\x1a\x1d.cln.Openchannel_bumpResponse\"\x00\x12Q\n\x10OpenChannel_Init\x12\x1c.cln.Openchannel_initRequest\x1a\x1d.cln.Openchannel_initResponse\"\x00\x12W\n\x12OpenChannel_Signed\x12\x1e.cln.Openchannel_signedRequest\x1a\x1f.cln.Openchannel_signedResponse\"\x00\x12W\n\x12OpenChannel_Update\x12\x1e.cln.Openchannel_updateRequest\x1a\x1f.cln.Openchannel_updateResponse\"\x00\x12-\n\x04Ping\x12\x10.cln.PingRequest\x1a\x11.cln.PingResponse\"\x00\x12\x33\n\x06Plugin\x12\x12.cln.PluginRequest\x1a\x13.cln.PluginResponse\"\x00\x12H\n\rRenePayStatus\x12\x19.cln.RenepaystatusRequest\x1a\x1a.cln.RenepaystatusResponse\"\x00\x12\x36\n\x07RenePay\x12\x13.cln.RenepayRequest\x1a\x14.cln.RenepayResponse\"\x00\x12H\n\rReserveInputs\x12\x19.cln.ReserveinputsRequest\x1a\x1a.cln.ReserveinputsResponse\"\x00\x12H\n\rSendCustomMsg\x12\x19.cln.SendcustommsgRequest\x1a\x1a.cln.SendcustommsgResponse\"\x00\x12\x42\n\x0bSendInvoice\x12\x17.cln.SendinvoiceRequest\x1a\x18.cln.SendinvoiceResponse\"\x00\x12Q\n\x10SendOnionMessage\x12\x1c.cln.SendonionmessageRequest\x1a\x1d.cln.SendonionmessageResponse\"\x00\x12?\n\nSetChannel\x12\x16.cln.SetchannelRequest\x1a\x17.cln.SetchannelResponse\"\x00\x12<\n\tSetConfig\x12\x15.cln.SetconfigRequest\x1a\x16.cln.SetconfigResponse\"\x00\x12K\n\x0eSetPsbtVersion\x12\x1a.cln.SetpsbtversionRequest\x1a\x1b.cln.SetpsbtversionResponse\"\x00\x12\x42\n\x0bSignInvoice\x12\x17.cln.SigninvoiceRequest\x1a\x18.cln.SigninvoiceResponse\"\x00\x12\x42\n\x0bSignMessage\x12\x17.cln.SignmessageRequest\x1a\x18.cln.SignmessageResponse\"\x00\x12\x42\n\x0bSplice_Init\x12\x17.cln.Splice_initRequest\x1a\x18.cln.Splice_initResponse\"\x00\x12H\n\rSplice_Signed\x12\x19.cln.Splice_signedRequest\x1a\x1a.cln.Splice_signedResponse\"\x00\x12H\n\rSplice_Update\x12\x19.cln.Splice_updateRequest\x1a\x1a.cln.Splice_updateResponse\"\x00\x12N\n\x0fUnreserveInputs\x12\x1b.cln.UnreserveinputsRequest\x1a\x1c.cln.UnreserveinputsResponse\"\x00\x12H\n\rUpgradeWallet\x12\x19.cln.UpgradewalletRequest\x1a\x1a.cln.UpgradewalletResponse\"\x00\x12N\n\x0fWaitBlockHeight\x12\x1b.cln.WaitblockheightRequest\x1a\x1c.cln.WaitblockheightResponse\"\x00\x12-\n\x04Wait\x12\x10.cln.WaitRequest\x1a\x11.cln.WaitResponse\"\x00\x12-\n\x04Stop\x12\x10.cln.StopRequest\x1a\x11.cln.StopResponse\"\x00\x12T\n\x11PreApproveKeysend\x12\x1d.cln.PreapprovekeysendRequest\x1a\x1e.cln.PreapprovekeysendResponse\"\x00\x12T\n\x11PreApproveInvoice\x12\x1d.cln.PreapproveinvoiceRequest\x1a\x1e.cln.PreapproveinvoiceResponse\"\x00\x12\x45\n\x0cStaticBackup\x12\x18.cln.StaticbackupRequest\x1a\x19.cln.StaticbackupResponse\"\x00\x12N\n\x0f\x42kprChannelsApy\x12\x1b.cln.BkprchannelsapyRequest\x1a\x1c.cln.BkprchannelsapyResponse\"\x00\x12T\n\x11\x42kprDumpIncomeCsv\x12\x1d.cln.BkprdumpincomecsvRequest\x1a\x1e.cln.BkprdumpincomecsvResponse\"\x00\x12\x42\n\x0b\x42kprInspect\x12\x17.cln.BkprinspectRequest\x1a\x18.cln.BkprinspectResponse\"\x00\x12`\n\x15\x42kprListAccountEvents\x12!.cln.BkprlistaccounteventsRequest\x1a\".cln.BkprlistaccounteventsResponse\"\x00\x12Q\n\x10\x42kprListBalances\x12\x1c.cln.BkprlistbalancesRequest\x1a\x1d.cln.BkprlistbalancesResponse\"\x00\x12K\n\x0e\x42kprListIncome\x12\x1a.cln.BkprlistincomeRequest\x1a\x1b.cln.BkprlistincomeResponse\"\x00\x62\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nnode.proto\x12\x03\x63ln\x1a\x10primitives.proto\"\x10\n\x0eGetinfoRequest\"\xc1\x04\n\x0fGetinfoResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x61lias\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\r\n\x05\x63olor\x18\x03 \x01(\x0c\x12\x11\n\tnum_peers\x18\x04 \x01(\r\x12\x1c\n\x14num_pending_channels\x18\x05 \x01(\r\x12\x1b\n\x13num_active_channels\x18\x06 \x01(\r\x12\x1d\n\x15num_inactive_channels\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\t\x12\x15\n\rlightning_dir\x18\t \x01(\t\x12\x33\n\x0cour_features\x18\n \x01(\x0b\x32\x18.cln.GetinfoOur_featuresH\x01\x88\x01\x01\x12\x13\n\x0b\x62lockheight\x18\x0b \x01(\r\x12\x0f\n\x07network\x18\x0c \x01(\t\x12(\n\x13\x66\x65\x65s_collected_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x07\x61\x64\x64ress\x18\x0e \x03(\x0b\x32\x13.cln.GetinfoAddress\x12$\n\x07\x62inding\x18\x0f \x03(\x0b\x32\x13.cln.GetinfoBinding\x12\"\n\x15warning_bitcoind_sync\x18\x10 \x01(\tH\x02\x88\x01\x01\x12$\n\x17warning_lightningd_sync\x18\x11 \x01(\tH\x03\x88\x01\x01\x42\x08\n\x06_aliasB\x0f\n\r_our_featuresB\x18\n\x16_warning_bitcoind_syncB\x1a\n\x18_warning_lightningd_sync\"S\n\x13GetinfoOur_features\x12\x0c\n\x04init\x18\x01 \x01(\x0c\x12\x0c\n\x04node\x18\x02 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x03 \x01(\x0c\x12\x0f\n\x07invoice\x18\x04 \x01(\x0c\"\xc4\x01\n\x0eGetinfoAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoAddress.GetinfoAddressType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"G\n\x12GetinfoAddressType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"\xac\x02\n\x0eGetinfoBinding\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoBinding.GetinfoBindingType\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06socket\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x14\n\x07subtype\x18\x05 \x01(\tH\x03\x88\x01\x01\"_\n\x12GetinfoBindingType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x12\r\n\tWEBSOCKET\x10\x05\x42\n\n\x08_addressB\x07\n\x05_portB\t\n\x07_socketB\n\n\x08_subtype\"\xb5\x01\n\x10ListpeersRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x38\n\x05level\x18\x02 \x01(\x0e\x32$.cln.ListpeersRequest.ListpeersLevelH\x01\x88\x01\x01\"E\n\x0eListpeersLevel\x12\x06\n\x02IO\x10\x00\x12\t\n\x05\x44\x45\x42UG\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\x0b\n\x07UNUSUAL\x10\x03\x12\t\n\x05TRACE\x10\x04\x42\x05\n\x03_idB\x08\n\x06_level\"7\n\x11ListpeersResponse\x12\"\n\x05peers\x18\x01 \x03(\x0b\x32\x13.cln.ListpeersPeers\"\xdf\x01\n\x0eListpeersPeers\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x11\n\tconnected\x18\x02 \x01(\x08\x12#\n\x03log\x18\x03 \x03(\x0b\x32\x16.cln.ListpeersPeersLog\x12\x0f\n\x07netaddr\x18\x05 \x03(\t\x12\x15\n\x08\x66\x65\x61tures\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0bremote_addr\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cnum_channels\x18\x08 \x01(\rH\x02\x88\x01\x01\x42\x0b\n\t_featuresB\x0e\n\x0c_remote_addrB\x0f\n\r_num_channels\"\x88\x03\n\x11ListpeersPeersLog\x12?\n\titem_type\x18\x01 \x01(\x0e\x32,.cln.ListpeersPeersLog.ListpeersPeersLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"t\n\x15ListpeersPeersLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"0\n\x10ListfundsRequest\x12\x12\n\x05spent\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_spent\"e\n\x11ListfundsResponse\x12&\n\x07outputs\x18\x01 \x03(\x0b\x32\x15.cln.ListfundsOutputs\x12(\n\x08\x63hannels\x18\x02 \x03(\x0b\x32\x16.cln.ListfundsChannels\"\xb9\x03\n\x10ListfundsOutputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06output\x18\x02 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0cscriptpubkey\x18\x04 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0credeemscript\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12<\n\x06status\x18\x07 \x01(\x0e\x32,.cln.ListfundsOutputs.ListfundsOutputsStatus\x12\x18\n\x0b\x62lockheight\x18\x08 \x01(\rH\x02\x88\x01\x01\x12\x10\n\x08reserved\x18\t \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\n \x01(\rH\x03\x88\x01\x01\"Q\n\x16ListfundsOutputsStatus\x12\x0f\n\x0bUNCONFIRMED\x10\x00\x12\r\n\tCONFIRMED\x10\x01\x12\t\n\x05SPENT\x10\x02\x12\x0c\n\x08IMMATURE\x10\x03\x42\n\n\x08_addressB\x0f\n\r_redeemscriptB\x0e\n\x0c_blockheightB\x14\n\x12_reserved_to_block\"\xab\x02\n\x11ListfundsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12$\n\x0four_amount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x04 \x01(\x0c\x12\x16\n\x0e\x66unding_output\x18\x05 \x01(\r\x12\x11\n\tconnected\x18\x06 \x01(\x08\x12 \n\x05state\x18\x07 \x01(\x0e\x32\x11.cln.ChannelState\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x01\x88\x01\x01\x42\x13\n\x11_short_channel_idB\r\n\x0b_channel_id\"\xbb\x03\n\x0eSendpayRequest\x12 \n\x05route\x18\x01 \x03(\x0b\x32\x11.cln.SendpayRoute\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x13\n\x06partid\x18\x07 \x01(\x04H\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\t \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x0c \x01(\x0cH\x07\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x08\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_bolt11B\x11\n\x0f_payment_secretB\t\n\x07_partidB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x13\n\x11_payment_metadataB\x0e\n\x0c_description\"\xad\x05\n\x0fSendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x32\n\x06status\x18\x04 \x01(\x0e\x32\".cln.SendpayResponse.SendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x14\n\x07message\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\"*\n\rSendpayStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\\\n\x0cSendpayRoute\x12\n\n\x02id\x18\x02 \x01(\x0c\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\x12\x0f\n\x07\x63hannel\x18\x04 \x01(\t\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x01\n\x13ListchannelsRequest\x12\x1d\n\x10short_channel_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06source\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x42\x13\n\x11_short_channel_idB\t\n\x07_sourceB\x0e\n\x0c_destination\"C\n\x14ListchannelsResponse\x12+\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x19.cln.ListchannelsChannels\"\xb3\x03\n\x14ListchannelsChannels\x12\x0e\n\x06source\x18\x01 \x01(\x0c\x12\x13\n\x0b\x64\x65stination\x18\x02 \x01(\x0c\x12\x18\n\x10short_channel_id\x18\x03 \x01(\t\x12\x0e\n\x06public\x18\x04 \x01(\x08\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x15\n\rmessage_flags\x18\x06 \x01(\r\x12\x15\n\rchannel_flags\x18\x07 \x01(\r\x12\x0e\n\x06\x61\x63tive\x18\x08 \x01(\x08\x12\x13\n\x0blast_update\x18\t \x01(\r\x12\x1d\n\x15\x62\x61se_fee_millisatoshi\x18\n \x01(\r\x12\x19\n\x11\x66\x65\x65_per_millionth\x18\x0b \x01(\r\x12\r\n\x05\x64\x65lay\x18\x0c \x01(\r\x12&\n\x11htlc_minimum_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x11htlc_maximum_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x10\n\x08\x66\x65\x61tures\x18\x0f \x01(\x0c\x12\x11\n\tdirection\x18\x10 \x01(\rB\x14\n\x12_htlc_maximum_msat\"#\n\x10\x41\x64\x64gossipRequest\x12\x0f\n\x07message\x18\x01 \x01(\x0c\"\x13\n\x11\x41\x64\x64gossipResponse\"o\n\x17\x41utocleaninvoiceRequest\x12\x17\n\nexpired_by\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"\x81\x01\n\x18\x41utocleaninvoiceResponse\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x17\n\nexpired_by\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x03 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"O\n\x14\x41utocleanonceRequest\x12*\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystem\x12\x0b\n\x03\x61ge\x18\x02 \x01(\x04\"G\n\x15\x41utocleanonceResponse\x12.\n\tautoclean\x18\x01 \x01(\x0b\x32\x1b.cln.AutocleanonceAutoclean\"\xb1\x04\n\x16\x41utocleanonceAutoclean\x12L\n\x11succeededforwards\x18\x01 \x01(\x0b\x32,.cln.AutocleanonceAutocleanSucceededforwardsH\x00\x88\x01\x01\x12\x46\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32).cln.AutocleanonceAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x44\n\rsucceededpays\x18\x03 \x01(\x0b\x32(.cln.AutocleanonceAutocleanSucceededpaysH\x02\x88\x01\x01\x12>\n\nfailedpays\x18\x04 \x01(\x0b\x32%.cln.AutocleanonceAutocleanFailedpaysH\x03\x88\x01\x01\x12\x42\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32\'.cln.AutocleanonceAutocleanPaidinvoicesH\x04\x88\x01\x01\x12H\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32*.cln.AutocleanonceAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"M\n\'AutocleanonceAutocleanSucceededforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"J\n$AutocleanonceAutocleanFailedforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"I\n#AutocleanonceAutocleanSucceededpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"F\n AutocleanonceAutocleanFailedpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"H\n\"AutocleanonceAutocleanPaidinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"K\n%AutocleanonceAutocleanExpiredinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"W\n\x16\x41utocleanstatusRequest\x12/\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystemH\x00\x88\x01\x01\x42\x0c\n\n_subsystem\"K\n\x17\x41utocleanstatusResponse\x12\x30\n\tautoclean\x18\x01 \x01(\x0b\x32\x1d.cln.AutocleanstatusAutoclean\"\xbf\x04\n\x18\x41utocleanstatusAutoclean\x12N\n\x11succeededforwards\x18\x01 \x01(\x0b\x32..cln.AutocleanstatusAutocleanSucceededforwardsH\x00\x88\x01\x01\x12H\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32+.cln.AutocleanstatusAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x46\n\rsucceededpays\x18\x03 \x01(\x0b\x32*.cln.AutocleanstatusAutocleanSucceededpaysH\x02\x88\x01\x01\x12@\n\nfailedpays\x18\x04 \x01(\x0b\x32\'.cln.AutocleanstatusAutocleanFailedpaysH\x03\x88\x01\x01\x12\x44\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32).cln.AutocleanstatusAutocleanPaidinvoicesH\x04\x88\x01\x01\x12J\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32,.cln.AutocleanstatusAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"g\n)AutocleanstatusAutocleanSucceededforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"d\n&AutocleanstatusAutocleanFailedforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"c\n%AutocleanstatusAutocleanSucceededpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"`\n\"AutocleanstatusAutocleanFailedpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"b\n$AutocleanstatusAutocleanPaidinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"e\n\'AutocleanstatusAutocleanExpiredinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"U\n\x13\x43heckmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\r\n\x05zbase\x18\x02 \x01(\t\x12\x13\n\x06pubkey\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x42\t\n\x07_pubkey\"8\n\x14\x43heckmessageResponse\x12\x10\n\x08verified\x18\x01 \x01(\x08\x12\x0e\n\x06pubkey\x18\x02 \x01(\x0c\"\xcb\x02\n\x0c\x43loseRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x11unilateraltimeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x66\x65\x65_negotiation_step\x18\x04 \x01(\tH\x02\x88\x01\x01\x12)\n\rwrong_funding\x18\x05 \x01(\x0b\x32\r.cln.OutpointH\x03\x88\x01\x01\x12\x1f\n\x12\x66orce_lease_closed\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1e\n\x08\x66\x65\x65range\x18\x07 \x03(\x0b\x32\x0c.cln.FeerateB\x14\n\x12_unilateraltimeoutB\x0e\n\x0c_destinationB\x17\n\x15_fee_negotiation_stepB\x10\n\x0e_wrong_fundingB\x15\n\x13_force_lease_closed\"\xab\x01\n\rCloseResponse\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.CloseResponse.CloseType\x12\x0f\n\x02tx\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04txid\x18\x03 \x01(\x0cH\x01\x88\x01\x01\"5\n\tCloseType\x12\n\n\x06MUTUAL\x10\x00\x12\x0e\n\nUNILATERAL\x10\x01\x12\x0c\n\x08UNOPENED\x10\x02\x42\x05\n\x03_txB\x07\n\x05_txid\"T\n\x0e\x43onnectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04host\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x07\n\x05_hostB\x07\n\x05_port\"\xb4\x01\n\x0f\x43onnectResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0c\x12\x38\n\tdirection\x18\x03 \x01(\x0e\x32%.cln.ConnectResponse.ConnectDirection\x12$\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x13.cln.ConnectAddress\"#\n\x10\x43onnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\xfb\x01\n\x0e\x43onnectAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.ConnectAddress.ConnectAddressType\x12\x13\n\x06socket\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04port\x18\x04 \x01(\rH\x02\x88\x01\x01\"P\n\x12\x43onnectAddressType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\t\n\x07_socketB\n\n\x08_addressB\x07\n\x05_port\"J\n\x14\x43reateinvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x10\n\x08preimage\x18\x03 \x01(\x0c\"\xfe\x05\n\x15\x43reateinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12>\n\x06status\x18\x06 \x01(\x0e\x32..cln.CreateinvoiceResponse.CreateinvoiceStatus\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12;\n\rpaid_outpoint\x18\x11 \x01(\x0b\x32\x1f.cln.CreateinvoicePaid_outpointH\n\x88\x01\x01\"8\n\x13\x43reateinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_paid_outpoint\":\n\x1a\x43reateinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x02\n\x10\x44\x61tastoreRequest\x12\x10\n\x03hex\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x36\n\x04mode\x18\x03 \x01(\x0e\x32#.cln.DatastoreRequest.DatastoreModeH\x01\x88\x01\x01\x12\x17\n\ngeneration\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\t\x12\x13\n\x06string\x18\x06 \x01(\tH\x03\x88\x01\x01\"p\n\rDatastoreMode\x12\x0f\n\x0bMUST_CREATE\x10\x00\x12\x10\n\x0cMUST_REPLACE\x10\x01\x12\x15\n\x11\x43REATE_OR_REPLACE\x10\x02\x12\x0f\n\x0bMUST_APPEND\x10\x03\x12\x14\n\x10\x43REATE_OR_APPEND\x10\x04\x42\x06\n\x04_hexB\x07\n\x05_modeB\r\n\x0b_generationB\t\n\x07_string\"\x82\x01\n\x11\x44\x61tastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"$\n\x15\x44\x61tastoreusageRequest\x12\x0b\n\x03key\x18\x01 \x03(\t\"S\n\x16\x44\x61tastoreusageResponse\x12\x39\n\x0e\x64\x61tastoreusage\x18\x01 \x01(\x0b\x32!.cln.DatastoreusageDatastoreusage\"@\n\x1c\x44\x61tastoreusageDatastoreusage\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x13\n\x0btotal_bytes\x18\x02 \x01(\x04\"\x9d\x01\n\x12\x43reateonionRequest\x12\"\n\x04hops\x18\x01 \x03(\x0b\x32\x14.cln.CreateonionHops\x12\x11\n\tassocdata\x18\x02 \x01(\x0c\x12\x18\n\x0bsession_key\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x17\n\nonion_size\x18\x04 \x01(\rH\x01\x88\x01\x01\x42\x0e\n\x0c_session_keyB\r\n\x0b_onion_size\"<\n\x13\x43reateonionResponse\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12\x16\n\x0eshared_secrets\x18\x02 \x03(\x0c\"2\n\x0f\x43reateonionHops\x12\x0e\n\x06pubkey\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\"J\n\x13\x44\x65ldatastoreRequest\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x03 \x03(\tB\r\n\x0b_generation\"\x85\x01\n\x14\x44\x65ldatastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xb6\x01\n\x11\x44\x65linvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\x12\x37\n\x06status\x18\x02 \x01(\x0e\x32\'.cln.DelinvoiceRequest.DelinvoiceStatus\x12\x15\n\x08\x64\x65sconly\x18\x03 \x01(\x08H\x00\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\x0b\n\t_desconly\"\xe6\x05\n\x12\x44\x65linvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x38\n\x06status\x18\x07 \x01(\x0e\x32(.cln.DelinvoiceResponse.DelinvoiceStatus\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x16\n\tpay_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\t\x88\x01\x01\x12\x14\n\x07paid_at\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"\xfa\x01\n\x0eInvoiceRequest\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tfallbacks\x18\x04 \x03(\t\x12\x15\n\x08preimage\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04\x63ltv\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18\x07 \x01(\x04H\x02\x88\x01\x01\x12\x19\n\x0c\x64\x65schashonly\x18\t \x01(\x08H\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x10.cln.AmountOrAnyB\x0b\n\t_preimageB\x07\n\x05_cltvB\t\n\x07_expiryB\x0f\n\r_deschashonly\"\x95\x03\n\x0fInvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x16\n\x0epayment_secret\x18\x03 \x01(\x0c\x12\x12\n\nexpires_at\x18\x04 \x01(\x04\x12\x1d\n\x10warning_capacity\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0fwarning_offline\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10warning_deadends\x18\x07 \x01(\tH\x02\x88\x01\x01\x12#\n\x16warning_private_unused\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x18\n\x0bwarning_mpp\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rcreated_index\x18\n \x01(\x04H\x05\x88\x01\x01\x42\x13\n\x11_warning_capacityB\x12\n\x10_warning_offlineB\x13\n\x11_warning_deadendsB\x19\n\x17_warning_private_unusedB\x0e\n\x0c_warning_mppB\x10\n\x0e_created_index\"#\n\x14ListdatastoreRequest\x12\x0b\n\x03key\x18\x02 \x03(\t\"G\n\x15ListdatastoreResponse\x12.\n\tdatastore\x18\x01 \x03(\x0b\x32\x1b.cln.ListdatastoreDatastore\"\x87\x01\n\x16ListdatastoreDatastore\x12\x0b\n\x03key\x18\x01 \x03(\t\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xde\x02\n\x13ListinvoicesRequest\x12\x12\n\x05label\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tinvstring\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08offer_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x12>\n\x05index\x18\x05 \x01(\x0e\x32*.cln.ListinvoicesRequest.ListinvoicesIndexH\x04\x88\x01\x01\x12\x12\n\x05start\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x12\n\x05limit\x18\x07 \x01(\rH\x06\x88\x01\x01\"-\n\x11ListinvoicesIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\x08\n\x06_labelB\x0c\n\n_invstringB\x0f\n\r_payment_hashB\x0b\n\t_offer_idB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListinvoicesResponse\x12+\n\x08invoices\x18\x01 \x03(\x0b\x32\x19.cln.ListinvoicesInvoices\"\xd4\x06\n\x14ListinvoicesInvoices\x12\r\n\x05label\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListinvoicesInvoices.ListinvoicesInvoicesStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x16\n\tpay_index\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x14\n\x07paid_at\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0e \x01(\x0cH\x08\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\x12\x42\n\rpaid_outpoint\x18\x12 \x01(\x0b\x32&.cln.ListinvoicesInvoicesPaid_outpointH\x0c\x88\x01\x01\"?\n\x1aListinvoicesInvoicesStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x11\n\x0f_local_offer_idB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"A\n!ListinvoicesInvoicesPaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x03\n\x10SendonionRequest\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12*\n\tfirst_hop\x18\x02 \x01(\x0b\x32\x17.cln.SendonionFirst_hop\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\x05label\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0eshared_secrets\x18\x05 \x03(\x0c\x12\x13\n\x06partid\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\t \x01(\x0cH\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\x0b \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\x0e\n\x0c_destinationB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0e\n\x0c_description\"\xe7\x04\n\x11SendonionResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x36\n\x06status\x18\x03 \x01(\x0e\x32&.cln.SendonionResponse.SendonionStatus\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x06 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\n \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0b \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x07message\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x13\n\x06partid\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\",\n\x0fSendonionStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"Q\n\x12SendonionFirst_hop\x12\n\n\x02id\x18\x01 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\"\xa0\x03\n\x13ListsendpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12@\n\x06status\x18\x03 \x01(\x0e\x32+.cln.ListsendpaysRequest.ListsendpaysStatusH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListsendpaysRequest.ListsendpaysIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\";\n\x12ListsendpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"-\n\x11ListsendpaysIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_statusB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListsendpaysResponse\x12+\n\x08payments\x18\x01 \x03(\x0b\x32\x19.cln.ListsendpaysPayments\"\xfc\x05\n\x14ListsendpaysPayments\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0f\n\x07groupid\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListsendpaysPayments.ListsendpaysPaymentsStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\n \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x12\x13\n\x06partid\x18\x0f \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\n\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x12 \x01(\x04H\x0b\x88\x01\x01\"C\n\x1aListsendpaysPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0f\n\r_completed_at\"\x19\n\x17ListtransactionsRequest\"S\n\x18ListtransactionsResponse\x12\x37\n\x0ctransactions\x18\x01 \x03(\x0b\x32!.cln.ListtransactionsTransactions\"\xf8\x01\n\x1cListtransactionsTransactions\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\r\n\x05rawtx\x18\x02 \x01(\x0c\x12\x13\n\x0b\x62lockheight\x18\x03 \x01(\r\x12\x0f\n\x07txindex\x18\x04 \x01(\r\x12\x10\n\x08locktime\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\r\x12\x37\n\x06inputs\x18\t \x03(\x0b\x32\'.cln.ListtransactionsTransactionsInputs\x12\x39\n\x07outputs\x18\n \x03(\x0b\x32(.cln.ListtransactionsTransactionsOutputs\"S\n\"ListtransactionsTransactionsInputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\r\n\x05index\x18\x02 \x01(\r\x12\x10\n\x08sequence\x18\x03 \x01(\r\"l\n#ListtransactionsTransactionsOutputs\x12\r\n\x05index\x18\x01 \x01(\r\x12\x14\n\x0cscriptPubKey\x18\x03 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x04\n\nPayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x17\n\nriskfactor\x18\x08 \x01(\x01H\x05\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\n \x03(\t\x12 \n\x06maxfee\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0c \x01(\tH\x07\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0e \x01(\x0cH\t\x88\x01\x01\x12&\n\x0cpartial_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x42\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_riskfactorB\t\n\x07_maxfeeB\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0f\n\r_partial_msat\"\xfb\x02\n\x0bPayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12*\n\x06status\x18\t \x01(\x0e\x32\x1a.cln.PayResponse.PayStatus\"2\n\tPayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"*\n\x10ListnodesRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListnodesResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.cln.ListnodesNodes\"\xba\x02\n\x0eListnodesNodes\x12\x0e\n\x06nodeid\x18\x01 \x01(\x0c\x12\x1b\n\x0elast_timestamp\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x12\n\x05\x61lias\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x12\n\x05\x63olor\x18\x04 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x05 \x01(\x0cH\x03\x88\x01\x01\x12/\n\taddresses\x18\x06 \x03(\x0b\x32\x1c.cln.ListnodesNodesAddresses\x12\x42\n\x10option_will_fund\x18\x07 \x01(\x0b\x32#.cln.ListnodesNodesOption_will_fundH\x04\x88\x01\x01\x42\x11\n\x0f_last_timestampB\x08\n\x06_aliasB\x08\n\x06_colorB\x0b\n\t_featuresB\x13\n\x11_option_will_fund\"\xf4\x01\n\x1eListnodesNodesOption_will_fund\x12(\n\x13lease_fee_base_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x17\n\x0flease_fee_basis\x18\x02 \x01(\r\x12\x16\n\x0e\x66unding_weight\x18\x03 \x01(\r\x12.\n\x19\x63hannel_fee_max_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x30\n(channel_fee_max_proportional_thousandths\x18\x05 \x01(\r\x12\x15\n\rcompact_lease\x18\x06 \x01(\x0c\"\xe8\x01\n\x17ListnodesNodesAddresses\x12K\n\titem_type\x18\x01 \x01(\x0e\x32\x38.cln.ListnodesNodesAddresses.ListnodesNodesAddressesType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"P\n\x1bListnodesNodesAddressesType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"g\n\x15WaitanyinvoiceRequest\x12\x1a\n\rlastpay_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\x10\n\x0e_lastpay_indexB\n\n\x08_timeout\"\xbf\x05\n\x16WaitanyinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12@\n\x06status\x18\x04 \x01(\x0e\x32\x30.cln.WaitanyinvoiceResponse.WaitanyinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12<\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32 .cln.WaitanyinvoicePaid_outpointH\t\x88\x01\x01\"-\n\x14WaitanyinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\";\n\x1bWaitanyinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"#\n\x12WaitinvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\"\xb0\x05\n\x13WaitinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitinvoiceResponse.WaitinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x39\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32\x1d.cln.WaitinvoicePaid_outpointH\t\x88\x01\x01\"*\n\x11WaitinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"8\n\x18WaitinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\x8e\x01\n\x12WaitsendpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x13\n\x06partid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x02\x88\x01\x01\x42\t\n\x07_partidB\n\n\x08_timeoutB\n\n\x08_groupid\"\x8e\x05\n\x13WaitsendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitsendpayResponse.WaitsendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\"!\n\x11WaitsendpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\x97\x01\n\x0eNewaddrRequest\x12@\n\x0b\x61\x64\x64resstype\x18\x01 \x01(\x0e\x32&.cln.NewaddrRequest.NewaddrAddresstypeH\x00\x88\x01\x01\"3\n\x12NewaddrAddresstype\x12\n\n\x06\x42\x45\x43H32\x10\x00\x12\x07\n\x03\x41LL\x10\x02\x12\x08\n\x04P2TR\x10\x03\x42\x0e\n\x0c_addresstype\"M\n\x0fNewaddrResponse\x12\x13\n\x06\x62\x65\x63h32\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04p2tr\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\t\n\x07_bech32B\x07\n\x05_p2tr\"\xb9\x01\n\x0fWithdrawRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\t\x12!\n\x07satoshi\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\"\n\x07\x66\x65\x65rate\x18\x05 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_feerate\":\n\x10WithdrawResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0c\n\x04psbt\x18\x03 \x01(\t\"\x82\x03\n\x0eKeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12+\n\nroutehints\x18\x08 \x01(\x0b\x32\x12.cln.RoutehintListH\x05\x88\x01\x01\x12&\n\textratlvs\x18\t \x01(\x0b\x32\x0e.cln.TlvStreamH\x06\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_routehintsB\x0c\n\n_extratlvs\"\xf2\x02\n\x0fKeysendResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x32\n\x06status\x18\t \x01(\x0e\x32\".cln.KeysendResponse.KeysendStatus\"\x1d\n\rKeysendStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"\xa4\x03\n\x0f\x46undpsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x14\n\x07minconf\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\x08 \x01(\x08H\x04\x88\x01\x01\x12\x17\n\nnonwrapped\x18\t \x01(\x08H\x05\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x06\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\x13\n\x11_excess_as_changeB\r\n\x0b_nonwrappedB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10\x46undpsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.FundpsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14\x46undpsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"A\n\x0fSendpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\",\n\x10SendpsbtResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"1\n\x0fSignpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x10\n\x08signonly\x18\x02 \x03(\r\"\'\n\x10SignpsbtResponse\x12\x13\n\x0bsigned_psbt\x18\x01 \x01(\t\"\xa0\x03\n\x0fUtxopsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x00\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x02\x88\x01\x01\x12\x17\n\nreservedok\x18\x08 \x01(\x08H\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\t \x01(\x08H\x04\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\r\n\x0b_reservedokB\x13\n\x11_excess_as_changeB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10UtxopsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.UtxopsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14UtxopsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\" \n\x10TxdiscardRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"6\n\x11TxdiscardResponse\x12\x13\n\x0bunsigned_tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"\xa4\x01\n\x10TxprepareRequest\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12 \n\x07outputs\x18\x05 \x03(\x0b\x32\x0f.cln.OutputDescB\n\n\x08_feerateB\n\n\x08_minconf\"D\n\x11TxprepareResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x13\n\x0bunsigned_tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"\x1d\n\rTxsendRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"8\n\x0eTxsendResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"1\n\x17ListpeerchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"K\n\x18ListpeerchannelsResponse\x12/\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x1d.cln.ListpeerchannelsChannels\"\xd7\x1b\n\x18ListpeerchannelsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x16\n\x0epeer_connected\x18\x02 \x01(\x08\x12J\n\x05state\x18\x03 \x01(\x0e\x32;.cln.ListpeerchannelsChannels.ListpeerchannelsChannelsState\x12\x19\n\x0cscratch_txid\x18\x04 \x01(\x0cH\x00\x88\x01\x01\x12:\n\x07\x66\x65\x65rate\x18\x06 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFeerateH\x01\x88\x01\x01\x12\x12\n\x05owner\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x19\n\x0c\x66unding_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x1b\n\x0e\x66unding_outnum\x18\x0b \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x0finitial_feerate\x18\x0c \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0clast_feerate\x18\r \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0cnext_feerate\x18\x0e \x01(\tH\t\x88\x01\x01\x12\x1a\n\rnext_fee_step\x18\x0f \x01(\rH\n\x88\x01\x01\x12\x37\n\x08inflight\x18\x10 \x03(\x0b\x32%.cln.ListpeerchannelsChannelsInflight\x12\x15\n\x08\x63lose_to\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\x12\x14\n\x07private\x18\x12 \x01(\x08H\x0c\x88\x01\x01\x12 \n\x06opener\x18\x13 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x14 \x01(\x0e\x32\x10.cln.ChannelSideH\r\x88\x01\x01\x12:\n\x07\x66unding\x18\x16 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFundingH\x0e\x88\x01\x01\x12$\n\nto_us_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x0f\x88\x01\x01\x12(\n\x0emin_to_us_msat\x18\x18 \x01(\x0b\x32\x0b.cln.AmountH\x10\x88\x01\x01\x12(\n\x0emax_to_us_msat\x18\x19 \x01(\x0b\x32\x0b.cln.AmountH\x11\x88\x01\x01\x12$\n\ntotal_msat\x18\x1a \x01(\x0b\x32\x0b.cln.AmountH\x12\x88\x01\x01\x12\'\n\rfee_base_msat\x18\x1b \x01(\x0b\x32\x0b.cln.AmountH\x13\x88\x01\x01\x12(\n\x1b\x66\x65\x65_proportional_millionths\x18\x1c \x01(\rH\x14\x88\x01\x01\x12)\n\x0f\x64ust_limit_msat\x18\x1d \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x30\n\x16max_total_htlc_in_msat\x18\x1e \x01(\x0b\x32\x0b.cln.AmountH\x16\x88\x01\x01\x12,\n\x12their_reserve_msat\x18\x1f \x01(\x0b\x32\x0b.cln.AmountH\x17\x88\x01\x01\x12*\n\x10our_reserve_msat\x18 \x01(\x0b\x32\x0b.cln.AmountH\x18\x88\x01\x01\x12(\n\x0espendable_msat\x18! \x01(\x0b\x32\x0b.cln.AmountH\x19\x88\x01\x01\x12)\n\x0freceivable_msat\x18\" \x01(\x0b\x32\x0b.cln.AmountH\x1a\x88\x01\x01\x12.\n\x14minimum_htlc_in_msat\x18# \x01(\x0b\x32\x0b.cln.AmountH\x1b\x88\x01\x01\x12/\n\x15minimum_htlc_out_msat\x18$ \x01(\x0b\x32\x0b.cln.AmountH\x1c\x88\x01\x01\x12/\n\x15maximum_htlc_out_msat\x18% \x01(\x0b\x32\x0b.cln.AmountH\x1d\x88\x01\x01\x12 \n\x13their_to_self_delay\x18& \x01(\rH\x1e\x88\x01\x01\x12\x1e\n\x11our_to_self_delay\x18\' \x01(\rH\x1f\x88\x01\x01\x12\x1f\n\x12max_accepted_htlcs\x18( \x01(\rH \x88\x01\x01\x12\x36\n\x05\x61lias\x18) \x01(\x0b\x32\".cln.ListpeerchannelsChannelsAliasH!\x88\x01\x01\x12\x0e\n\x06status\x18+ \x03(\t\x12 \n\x13in_payments_offered\x18, \x01(\x04H\"\x88\x01\x01\x12)\n\x0fin_offered_msat\x18- \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\"\n\x15in_payments_fulfilled\x18. \x01(\x04H$\x88\x01\x01\x12+\n\x11in_fulfilled_msat\x18/ \x01(\x0b\x32\x0b.cln.AmountH%\x88\x01\x01\x12!\n\x14out_payments_offered\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x10out_offered_msat\x18\x31 \x01(\x0b\x32\x0b.cln.AmountH\'\x88\x01\x01\x12#\n\x16out_payments_fulfilled\x18\x32 \x01(\x04H(\x88\x01\x01\x12,\n\x12out_fulfilled_msat\x18\x33 \x01(\x0b\x32\x0b.cln.AmountH)\x88\x01\x01\x12\x31\n\x05htlcs\x18\x34 \x03(\x0b\x32\".cln.ListpeerchannelsChannelsHtlcs\x12\x1a\n\rclose_to_addr\x18\x35 \x01(\tH*\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\x36 \x01(\x08H+\x88\x01\x01\x12:\n\x07updates\x18\x37 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsUpdatesH,\x88\x01\x01\x12#\n\x16last_stable_connection\x18\x38 \x01(\x04H-\x88\x01\x01\x12\x17\n\nlost_state\x18\x39 \x01(\x08H.\x88\x01\x01\x12\x1a\n\rreestablished\x18: \x01(\x08H/\x88\x01\x01\x12*\n\x10last_tx_fee_msat\x18; \x01(\x0b\x32\x0b.cln.AmountH0\x88\x01\x01\x12\x16\n\tdirection\x18< \x01(\rH1\x88\x01\x01\"\x80\x03\n\x1dListpeerchannelsChannelsState\x12\x0c\n\x08OPENINGD\x10\x00\x12\x1c\n\x18\x43HANNELD_AWAITING_LOCKIN\x10\x01\x12\x13\n\x0f\x43HANNELD_NORMAL\x10\x02\x12\x1a\n\x16\x43HANNELD_SHUTTING_DOWN\x10\x03\x12\x18\n\x14\x43LOSINGD_SIGEXCHANGE\x10\x04\x12\x15\n\x11\x43LOSINGD_COMPLETE\x10\x05\x12\x17\n\x13\x41WAITING_UNILATERAL\x10\x06\x12\x16\n\x12\x46UNDING_SPEND_SEEN\x10\x07\x12\x0b\n\x07ONCHAIN\x10\x08\x12\x17\n\x13\x44UALOPEND_OPEN_INIT\x10\t\x12\x1d\n\x19\x44UALOPEND_AWAITING_LOCKIN\x10\n\x12\x1c\n\x18\x43HANNELD_AWAITING_SPLICE\x10\x0b\x12\x1c\n\x18\x44UALOPEND_OPEN_COMMITTED\x10\x0c\x12\x1f\n\x1b\x44UALOPEND_OPEN_COMMIT_READY\x10\rB\x0f\n\r_scratch_txidB\n\n\x08_feerateB\x08\n\x06_ownerB\x13\n\x11_short_channel_idB\r\n\x0b_channel_idB\x0f\n\r_funding_txidB\x11\n\x0f_funding_outnumB\x12\n\x10_initial_feerateB\x0f\n\r_last_feerateB\x0f\n\r_next_feerateB\x10\n\x0e_next_fee_stepB\x0b\n\t_close_toB\n\n\x08_privateB\t\n\x07_closerB\n\n\x08_fundingB\r\n\x0b_to_us_msatB\x11\n\x0f_min_to_us_msatB\x11\n\x0f_max_to_us_msatB\r\n\x0b_total_msatB\x10\n\x0e_fee_base_msatB\x1e\n\x1c_fee_proportional_millionthsB\x12\n\x10_dust_limit_msatB\x19\n\x17_max_total_htlc_in_msatB\x15\n\x13_their_reserve_msatB\x13\n\x11_our_reserve_msatB\x11\n\x0f_spendable_msatB\x12\n\x10_receivable_msatB\x17\n\x15_minimum_htlc_in_msatB\x18\n\x16_minimum_htlc_out_msatB\x18\n\x16_maximum_htlc_out_msatB\x16\n\x14_their_to_self_delayB\x14\n\x12_our_to_self_delayB\x15\n\x13_max_accepted_htlcsB\x08\n\x06_aliasB\x16\n\x14_in_payments_offeredB\x12\n\x10_in_offered_msatB\x18\n\x16_in_payments_fulfilledB\x14\n\x12_in_fulfilled_msatB\x17\n\x15_out_payments_offeredB\x13\n\x11_out_offered_msatB\x19\n\x17_out_payments_fulfilledB\x15\n\x13_out_fulfilled_msatB\x10\n\x0e_close_to_addrB\x14\n\x12_ignore_fee_limitsB\n\n\x08_updatesB\x19\n\x17_last_stable_connectionB\r\n\x0b_lost_stateB\x10\n\x0e_reestablishedB\x13\n\x11_last_tx_fee_msatB\x0c\n\n_direction\"\xa7\x01\n\x1fListpeerchannelsChannelsUpdates\x12\x38\n\x05local\x18\x01 \x01(\x0b\x32).cln.ListpeerchannelsChannelsUpdatesLocal\x12?\n\x06remote\x18\x02 \x01(\x0b\x32*.cln.ListpeerchannelsChannelsUpdatesRemoteH\x00\x88\x01\x01\x42\t\n\x07_remote\"\xda\x01\n$ListpeerchannelsChannelsUpdatesLocal\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"\xdb\x01\n%ListpeerchannelsChannelsUpdatesRemote\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"?\n\x1fListpeerchannelsChannelsFeerate\x12\r\n\x05perkw\x18\x01 \x01(\r\x12\r\n\x05perkb\x18\x02 \x01(\r\"\x8b\x02\n ListpeerchannelsChannelsInflight\x12\x14\n\x0c\x66unding_txid\x18\x01 \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\x02 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x03 \x01(\t\x12\'\n\x12total_funding_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10our_funding_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x0cscratch_txid\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x1a\n\rsplice_amount\x18\x07 \x01(\x12H\x01\x88\x01\x01\x42\x0f\n\r_scratch_txidB\x10\n\x0e_splice_amount\"\x9d\x02\n\x1fListpeerchannelsChannelsFunding\x12%\n\x0bpushed_msat\x18\x01 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12%\n\x10local_funds_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11remote_funds_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\rfee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\'\n\rfee_rcvd_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x42\x0e\n\x0c_pushed_msatB\x10\n\x0e_fee_paid_msatB\x10\n\x0e_fee_rcvd_msat\"]\n\x1dListpeerchannelsChannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"\xf9\x02\n\x1dListpeerchannelsChannelsHtlcs\x12\\\n\tdirection\x18\x01 \x01(\x0e\x32I.cln.ListpeerchannelsChannelsHtlcs.ListpeerchannelsChannelsHtlcsDirection\x12\n\n\x02id\x18\x02 \x01(\x04\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x0e\n\x06\x65xpiry\x18\x04 \x01(\r\x12\x14\n\x0cpayment_hash\x18\x05 \x01(\x0c\x12\x1a\n\rlocal_trimmed\x18\x06 \x01(\x08H\x00\x88\x01\x01\x12\x13\n\x06status\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x05state\x18\x08 \x01(\x0e\x32\x0e.cln.HtlcState\"9\n&ListpeerchannelsChannelsHtlcsDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\x42\x10\n\x0e_local_trimmedB\t\n\x07_status\"3\n\x19ListclosedchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"[\n\x1aListclosedchannelsResponse\x12=\n\x0e\x63losedchannels\x18\x01 \x03(\x0b\x32%.cln.ListclosedchannelsClosedchannels\"\xf2\t\n ListclosedchannelsClosedchannels\x12\x14\n\x07peer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x01\x88\x01\x01\x12>\n\x05\x61lias\x18\x04 \x01(\x0b\x32*.cln.ListclosedchannelsClosedchannelsAliasH\x02\x88\x01\x01\x12 \n\x06opener\x18\x05 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x06 \x01(\x0e\x32\x10.cln.ChannelSideH\x03\x88\x01\x01\x12\x0f\n\x07private\x18\x07 \x01(\x08\x12\x1f\n\x17total_local_commitments\x18\t \x01(\x04\x12 \n\x18total_remote_commitments\x18\n \x01(\x04\x12\x18\n\x10total_htlcs_sent\x18\x0b \x01(\x04\x12\x14\n\x0c\x66unding_txid\x18\x0c \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\r \x01(\r\x12\x0e\n\x06leased\x18\x0e \x01(\x08\x12/\n\x15\x66unding_fee_paid_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12/\n\x15\x66unding_fee_rcvd_msat\x18\x10 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12-\n\x13\x66unding_pushed_msat\x18\x11 \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1f\n\ntotal_msat\x18\x12 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x66inal_to_us_msat\x18\x13 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emin_to_us_msat\x18\x14 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emax_to_us_msat\x18\x15 \x01(\x0b\x32\x0b.cln.Amount\x12!\n\x14last_commitment_txid\x18\x16 \x01(\x0cH\x07\x88\x01\x01\x12\x32\n\x18last_commitment_fee_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x66\n\x0b\x63lose_cause\x18\x18 \x01(\x0e\x32Q.cln.ListclosedchannelsClosedchannels.ListclosedchannelsClosedchannelsClose_cause\x12#\n\x16last_stable_connection\x18\x19 \x01(\x04H\t\x88\x01\x01\"v\n+ListclosedchannelsClosedchannelsClose_cause\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05LOCAL\x10\x01\x12\x08\n\x04USER\x10\x02\x12\n\n\x06REMOTE\x10\x03\x12\x0c\n\x08PROTOCOL\x10\x04\x12\x0b\n\x07ONCHAIN\x10\x05\x42\n\n\x08_peer_idB\x13\n\x11_short_channel_idB\x08\n\x06_aliasB\t\n\x07_closerB\x18\n\x16_funding_fee_paid_msatB\x18\n\x16_funding_fee_rcvd_msatB\x16\n\x14_funding_pushed_msatB\x17\n\x15_last_commitment_txidB\x1b\n\x19_last_commitment_fee_msatB\x19\n\x17_last_stable_connection\"e\n%ListclosedchannelsClosedchannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"L\n\x10\x44\x65\x63odepayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\x8d\x04\n\x11\x44\x65\x63odepayResponse\x12\x10\n\x08\x63urrency\x18\x01 \x01(\t\x12\x12\n\ncreated_at\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\x04\x12\r\n\x05payee\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x11\n\tsignature\x18\x07 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x1d\n\x15min_final_cltv_expiry\x18\n \x01(\r\x12\x1b\n\x0epayment_secret\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\r \x01(\x0cH\x05\x88\x01\x01\x12*\n\tfallbacks\x18\x0e \x03(\x0b\x32\x17.cln.DecodepayFallbacks\x12\"\n\x05\x65xtra\x18\x10 \x03(\x0b\x32\x13.cln.DecodepayExtraB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x13\n\x11_description_hashB\x11\n\x0f_payment_secretB\x0b\n\t_featuresB\x13\n\x11_payment_metadata\"\xd0\x01\n\x12\x44\x65\x63odepayFallbacks\x12\x41\n\titem_type\x18\x01 \x01(\x0e\x32..cln.DecodepayFallbacks.DecodepayFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x0b\n\x03hex\x18\x03 \x01(\x0c\"N\n\x16\x44\x65\x63odepayFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42\x07\n\x05_addr\"+\n\x0e\x44\x65\x63odepayExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\"\x1f\n\rDecodeRequest\x12\x0e\n\x06string\x18\x01 \x01(\t\"\xb7#\n\x0e\x44\x65\x63odeResponse\x12\x31\n\titem_type\x18\x01 \x01(\x0e\x32\x1e.cln.DecodeResponse.DecodeType\x12\r\n\x05valid\x18\x02 \x01(\x08\x12\x15\n\x08offer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0coffer_chains\x18\x04 \x03(\x0c\x12\x1b\n\x0eoffer_metadata\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x1b\n\x0eoffer_currency\x18\x06 \x01(\tH\x02\x88\x01\x01\x12+\n\x1ewarning_unknown_offer_currency\x18\x07 \x01(\tH\x03\x88\x01\x01\x12 \n\x13\x63urrency_minor_unit\x18\x08 \x01(\rH\x04\x88\x01\x01\x12\x19\n\x0coffer_amount\x18\t \x01(\x04H\x05\x88\x01\x01\x12+\n\x11offer_amount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1e\n\x11offer_description\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0coffer_issuer\x18\x0c \x01(\tH\x08\x88\x01\x01\x12\x1b\n\x0eoffer_features\x18\r \x01(\x0cH\t\x88\x01\x01\x12\"\n\x15offer_absolute_expiry\x18\x0e \x01(\x04H\n\x88\x01\x01\x12\x1f\n\x12offer_quantity_max\x18\x0f \x01(\x04H\x0b\x88\x01\x01\x12+\n\x0boffer_paths\x18\x10 \x03(\x0b\x32\x16.cln.DecodeOffer_paths\x12\x1a\n\roffer_node_id\x18\x11 \x01(\x0cH\x0c\x88\x01\x01\x12*\n\x1dwarning_missing_offer_node_id\x18\x14 \x01(\tH\r\x88\x01\x01\x12.\n!warning_invalid_offer_description\x18\x15 \x01(\tH\x0e\x88\x01\x01\x12.\n!warning_missing_offer_description\x18\x16 \x01(\tH\x0f\x88\x01\x01\x12+\n\x1ewarning_invalid_offer_currency\x18\x17 \x01(\tH\x10\x88\x01\x01\x12)\n\x1cwarning_invalid_offer_issuer\x18\x18 \x01(\tH\x11\x88\x01\x01\x12\x1c\n\x0finvreq_metadata\x18\x19 \x01(\x0cH\x12\x88\x01\x01\x12\x1c\n\x0finvreq_payer_id\x18\x1a \x01(\x0cH\x13\x88\x01\x01\x12\x19\n\x0cinvreq_chain\x18\x1b \x01(\x0cH\x14\x88\x01\x01\x12,\n\x12invreq_amount_msat\x18\x1c \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x1c\n\x0finvreq_features\x18\x1d \x01(\x0cH\x16\x88\x01\x01\x12\x1c\n\x0finvreq_quantity\x18\x1e \x01(\x04H\x17\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x1f \x01(\tH\x18\x88\x01\x01\x12&\n\x19invreq_recurrence_counter\x18 \x01(\rH\x19\x88\x01\x01\x12$\n\x17invreq_recurrence_start\x18! \x01(\rH\x1a\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_metadata\x18# \x01(\tH\x1b\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_payer_id\x18$ \x01(\tH\x1c\x88\x01\x01\x12.\n!warning_invalid_invreq_payer_note\x18% \x01(\tH\x1d\x88\x01\x01\x12\x36\n)warning_missing_invoice_request_signature\x18& \x01(\tH\x1e\x88\x01\x01\x12\x36\n)warning_invalid_invoice_request_signature\x18\' \x01(\tH\x1f\x88\x01\x01\x12\x1f\n\x12invoice_created_at\x18) \x01(\x04H \x88\x01\x01\x12$\n\x17invoice_relative_expiry\x18* \x01(\rH!\x88\x01\x01\x12!\n\x14invoice_payment_hash\x18+ \x01(\x0cH\"\x88\x01\x01\x12-\n\x13invoice_amount_msat\x18, \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\x37\n\x11invoice_fallbacks\x18- \x03(\x0b\x32\x1c.cln.DecodeInvoice_fallbacks\x12\x1d\n\x10invoice_features\x18. \x01(\x0cH$\x88\x01\x01\x12\x1c\n\x0finvoice_node_id\x18/ \x01(\x0cH%\x88\x01\x01\x12(\n\x1binvoice_recurrence_basetime\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x1dwarning_missing_invoice_paths\x18\x32 \x01(\tH\'\x88\x01\x01\x12/\n\"warning_missing_invoice_blindedpay\x18\x33 \x01(\tH(\x88\x01\x01\x12/\n\"warning_missing_invoice_created_at\x18\x34 \x01(\tH)\x88\x01\x01\x12\x31\n$warning_missing_invoice_payment_hash\x18\x35 \x01(\tH*\x88\x01\x01\x12+\n\x1ewarning_missing_invoice_amount\x18\x36 \x01(\tH+\x88\x01\x01\x12\x38\n+warning_missing_invoice_recurrence_basetime\x18\x37 \x01(\tH,\x88\x01\x01\x12,\n\x1fwarning_missing_invoice_node_id\x18\x38 \x01(\tH-\x88\x01\x01\x12.\n!warning_missing_invoice_signature\x18\x39 \x01(\tH.\x88\x01\x01\x12.\n!warning_invalid_invoice_signature\x18: \x01(\tH/\x88\x01\x01\x12\'\n\tfallbacks\x18; \x03(\x0b\x32\x14.cln.DecodeFallbacks\x12\x17\n\ncreated_at\x18< \x01(\x04H0\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18= \x01(\x04H1\x88\x01\x01\x12\x12\n\x05payee\x18> \x01(\x0cH2\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18? \x01(\x0cH3\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18@ \x01(\x0cH4\x88\x01\x01\x12\"\n\x15min_final_cltv_expiry\x18\x41 \x01(\rH5\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x42 \x01(\x0cH6\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x43 \x01(\x0cH7\x88\x01\x01\x12\x1f\n\x05\x65xtra\x18\x45 \x03(\x0b\x32\x10.cln.DecodeExtra\x12\x16\n\tunique_id\x18\x46 \x01(\tH8\x88\x01\x01\x12\x14\n\x07version\x18G \x01(\tH9\x88\x01\x01\x12\x13\n\x06string\x18H \x01(\tH:\x88\x01\x01\x12-\n\x0crestrictions\x18I \x03(\x0b\x32\x17.cln.DecodeRestrictions\x12&\n\x19warning_rune_invalid_utf8\x18J \x01(\tH;\x88\x01\x01\x12\x10\n\x03hex\x18K \x01(\x0cH<\x88\x01\x01\x12\x16\n\tdecrypted\x18L \x01(\x0cH=\x88\x01\x01\x12\x16\n\tsignature\x18M \x01(\tH>\x88\x01\x01\x12\x15\n\x08\x63urrency\x18N \x01(\tH?\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18O \x01(\x0b\x32\x0b.cln.AmountH@\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18P \x01(\tHA\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18Q \x01(\x0cHB\x88\x01\x01\"\x83\x01\n\nDecodeType\x12\x10\n\x0c\x42OLT12_OFFER\x10\x00\x12\x12\n\x0e\x42OLT12_INVOICE\x10\x01\x12\x1a\n\x16\x42OLT12_INVOICE_REQUEST\x10\x02\x12\x12\n\x0e\x42OLT11_INVOICE\x10\x03\x12\x08\n\x04RUNE\x10\x04\x12\x15\n\x11\x45MERGENCY_RECOVER\x10\x05\x42\x0b\n\t_offer_idB\x11\n\x0f_offer_metadataB\x11\n\x0f_offer_currencyB!\n\x1f_warning_unknown_offer_currencyB\x16\n\x14_currency_minor_unitB\x0f\n\r_offer_amountB\x14\n\x12_offer_amount_msatB\x14\n\x12_offer_descriptionB\x0f\n\r_offer_issuerB\x11\n\x0f_offer_featuresB\x18\n\x16_offer_absolute_expiryB\x15\n\x13_offer_quantity_maxB\x10\n\x0e_offer_node_idB \n\x1e_warning_missing_offer_node_idB$\n\"_warning_invalid_offer_descriptionB$\n\"_warning_missing_offer_descriptionB!\n\x1f_warning_invalid_offer_currencyB\x1f\n\x1d_warning_invalid_offer_issuerB\x12\n\x10_invreq_metadataB\x12\n\x10_invreq_payer_idB\x0f\n\r_invreq_chainB\x15\n\x13_invreq_amount_msatB\x12\n\x10_invreq_featuresB\x12\n\x10_invreq_quantityB\x14\n\x12_invreq_payer_noteB\x1c\n\x1a_invreq_recurrence_counterB\x1a\n\x18_invreq_recurrence_startB\"\n _warning_missing_invreq_metadataB\"\n _warning_missing_invreq_payer_idB$\n\"_warning_invalid_invreq_payer_noteB,\n*_warning_missing_invoice_request_signatureB,\n*_warning_invalid_invoice_request_signatureB\x15\n\x13_invoice_created_atB\x1a\n\x18_invoice_relative_expiryB\x17\n\x15_invoice_payment_hashB\x16\n\x14_invoice_amount_msatB\x13\n\x11_invoice_featuresB\x12\n\x10_invoice_node_idB\x1e\n\x1c_invoice_recurrence_basetimeB \n\x1e_warning_missing_invoice_pathsB%\n#_warning_missing_invoice_blindedpayB%\n#_warning_missing_invoice_created_atB\'\n%_warning_missing_invoice_payment_hashB!\n\x1f_warning_missing_invoice_amountB.\n,_warning_missing_invoice_recurrence_basetimeB\"\n _warning_missing_invoice_node_idB$\n\"_warning_missing_invoice_signatureB$\n\"_warning_invalid_invoice_signatureB\r\n\x0b_created_atB\t\n\x07_expiryB\x08\n\x06_payeeB\x0f\n\r_payment_hashB\x13\n\x11_description_hashB\x18\n\x16_min_final_cltv_expiryB\x11\n\x0f_payment_secretB\x13\n\x11_payment_metadataB\x0c\n\n_unique_idB\n\n\x08_versionB\t\n\x07_stringB\x1c\n\x1a_warning_rune_invalid_utf8B\x06\n\x04_hexB\x0c\n\n_decryptedB\x0c\n\n_signatureB\x0b\n\t_currencyB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x0b\n\t_features\"\xab\x01\n\x11\x44\x65\x63odeOffer_paths\x12\x1a\n\rfirst_node_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\x1b\n\x0e\x66irst_scid_dir\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x17\n\nfirst_scid\x18\x05 \x01(\tH\x02\x88\x01\x01\x42\x10\n\x0e_first_node_idB\x11\n\x0f_first_scid_dirB\r\n\x0b_first_scid\"\x8a\x01\n\x1f\x44\x65\x63odeOffer_recurrencePaywindow\x12\x16\n\x0eseconds_before\x18\x01 \x01(\r\x12\x15\n\rseconds_after\x18\x02 \x01(\r\x12 \n\x13proportional_amount\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\x16\n\x14_proportional_amount\"T\n\x17\x44\x65\x63odeInvoice_pathsPath\x12\x17\n\x0f\x62linded_node_id\x18\x01 \x01(\x0c\x12 \n\x18\x65ncrypted_recipient_data\x18\x02 \x01(\x0c\"Y\n\x17\x44\x65\x63odeInvoice_fallbacks\x12\x0f\n\x07version\x18\x01 \x01(\r\x12\x0b\n\x03hex\x18\x02 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_address\"\xaa\x02\n\x0f\x44\x65\x63odeFallbacks\x12\x36\n)warning_invoice_fallbacks_version_invalid\x18\x01 \x01(\tH\x00\x88\x01\x01\x12;\n\titem_type\x18\x02 \x01(\x0e\x32(.cln.DecodeFallbacks.DecodeFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0b\n\x03hex\x18\x04 \x01(\x0c\"K\n\x13\x44\x65\x63odeFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42,\n*_warning_invoice_fallbacks_version_invalidB\x07\n\x05_addr\"(\n\x0b\x44\x65\x63odeExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\";\n\x12\x44\x65\x63odeRestrictions\x12\x14\n\x0c\x61lternatives\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\"\xc2\x01\n\rDelpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12/\n\x06status\x18\x02 \x01(\x0e\x32\x1f.cln.DelpayRequest.DelpayStatus\x12\x13\n\x06partid\x18\x03 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x01\x88\x01\x01\"(\n\x0c\x44\x65lpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x42\t\n\x07_partidB\n\n\x08_groupid\"7\n\x0e\x44\x65lpayResponse\x12%\n\x08payments\x18\x01 \x03(\x0b\x32\x13.cln.DelpayPayments\"\xcb\x05\n\x0e\x44\x65lpayPayments\x12\x1a\n\rcreated_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x38\n\x06status\x18\x04 \x01(\x0e\x32(.cln.DelpayPayments.DelpayPaymentsStatus\x12%\n\x10\x61mount_sent_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x07 \x01(\x0cH\x02\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x12\n\ncreated_at\x18\t \x01(\x04\x12\x1a\n\rupdated_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x12\n\x05label\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x10 \x01(\tH\n\x88\x01\x01\x12\x17\n\nerroronion\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"=\n\x14\x44\x65lpayPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x10\n\x0e_created_indexB\t\n\x07_partidB\x0e\n\x0c_destinationB\x0e\n\x0c_amount_msatB\x10\n\x0e_updated_indexB\x0f\n\r_completed_atB\n\n\x08_groupidB\x13\n\x11_payment_preimageB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\r\n\x0b_erroronion\"\xb3\x01\n\x11\x44\x65lforwardRequest\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x12\n\nin_htlc_id\x18\x02 \x01(\x04\x12\x37\n\x06status\x18\x03 \x01(\x0e\x32\'.cln.DelforwardRequest.DelforwardStatus\"=\n\x10\x44\x65lforwardStatus\x12\x0b\n\x07SETTLED\x10\x00\x12\x10\n\x0cLOCAL_FAILED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"\x14\n\x12\x44\x65lforwardResponse\"\'\n\x13\x44isableofferRequest\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\"\x88\x01\n\x14\x44isableofferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"=\n\x11\x44isconnectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_force\"\x14\n\x12\x44isconnectResponse\"k\n\x0f\x46\x65\x65ratesRequest\x12\x31\n\x05style\x18\x01 \x01(\x0e\x32\".cln.FeeratesRequest.FeeratesStyle\"%\n\rFeeratesStyle\x12\t\n\x05PERKB\x10\x00\x12\t\n\x05PERKW\x10\x01\"\x9c\x02\n\x10\x46\x65\x65ratesResponse\x12%\n\x18warning_missing_feerates\x18\x01 \x01(\tH\x00\x88\x01\x01\x12&\n\x05perkb\x18\x02 \x01(\x0b\x32\x12.cln.FeeratesPerkbH\x01\x88\x01\x01\x12&\n\x05perkw\x18\x03 \x01(\x0b\x32\x12.cln.FeeratesPerkwH\x02\x88\x01\x01\x12\x46\n\x15onchain_fee_estimates\x18\x04 \x01(\x0b\x32\".cln.FeeratesOnchain_fee_estimatesH\x03\x88\x01\x01\x42\x1b\n\x19_warning_missing_feeratesB\x08\n\x06_perkbB\x08\n\x06_perkwB\x18\n\x16_onchain_fee_estimates\"\xd3\x03\n\rFeeratesPerkb\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkbEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkbEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\xd3\x03\n\rFeeratesPerkw\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkwEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkwEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\x9b\x02\n\x1d\x46\x65\x65ratesOnchain_fee_estimates\x12 \n\x18opening_channel_satoshis\x18\x01 \x01(\x04\x12\x1d\n\x15mutual_close_satoshis\x18\x02 \x01(\x04\x12!\n\x19unilateral_close_satoshis\x18\x03 \x01(\x04\x12\x1d\n\x15htlc_timeout_satoshis\x18\x04 \x01(\x04\x12\x1d\n\x15htlc_success_satoshis\x18\x05 \x01(\x04\x12\x30\n#unilateral_close_nonanchor_satoshis\x18\x06 \x01(\x04H\x00\x88\x01\x01\x42&\n$_unilateral_close_nonanchor_satoshis\"\xe9\x02\n\x13\x46\x65tchinvoiceRequest\x12\r\n\x05offer\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x15\n\x08quantity\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x1f\n\x12recurrence_counter\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x1d\n\x10recurrence_start\x18\x05 \x01(\x01H\x03\x88\x01\x01\x12\x1d\n\x10recurrence_label\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x14\n\x07timeout\x18\x07 \x01(\x01H\x05\x88\x01\x01\x12\x17\n\npayer_note\x18\x08 \x01(\tH\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\x0b\n\t_quantityB\x15\n\x13_recurrence_counterB\x13\n\x11_recurrence_startB\x13\n\x11_recurrence_labelB\n\n\x08_timeoutB\r\n\x0b_payer_note\"\x9a\x01\n\x14\x46\x65tchinvoiceResponse\x12\x0f\n\x07invoice\x18\x01 \x01(\t\x12)\n\x07\x63hanges\x18\x02 \x01(\x0b\x32\x18.cln.FetchinvoiceChanges\x12\x36\n\x0bnext_period\x18\x03 \x01(\x0b\x32\x1c.cln.FetchinvoiceNext_periodH\x00\x88\x01\x01\x42\x0e\n\x0c_next_period\"\x82\x02\n\x13\x46\x65tchinvoiceChanges\x12!\n\x14\x64\x65scription_appended\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0evendor_removed\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06vendor\x18\x04 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x42\x17\n\x15_description_appendedB\x0e\n\x0c_descriptionB\x11\n\x0f_vendor_removedB\t\n\x07_vendorB\x0e\n\x0c_amount_msat\"~\n\x17\x46\x65tchinvoiceNext_period\x12\x0f\n\x07\x63ounter\x18\x01 \x01(\x04\x12\x11\n\tstarttime\x18\x02 \x01(\x04\x12\x0f\n\x07\x65ndtime\x18\x03 \x01(\x04\x12\x17\n\x0fpaywindow_start\x18\x04 \x01(\x04\x12\x15\n\rpaywindow_end\x18\x05 \x01(\x04\"\'\n\x19\x46undchannel_cancelRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\"/\n\x1a\x46undchannel_cancelResponse\x12\x11\n\tcancelled\x18\x01 \x01(\t\"7\n\x1b\x46undchannel_completeRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"O\n\x1c\x46undchannel_completeResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"\xfb\x03\n\x12\x46undchannelRequest\x12 \n\x06\x61mount\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12#\n\tpush_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\tH\x05\x88\x01\x01\x12\n\n\x02id\x18\t \x01(\x0c\x12\x14\n\x07minconf\x18\n \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x05utxos\x18\x0b \x03(\x0b\x32\r.cln.Outpoint\x12\x15\n\x08mindepth\x18\x0c \x01(\rH\x07\x88\x01\x01\x12!\n\x07reserve\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\x0e \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\n\n\x08_minconfB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xe5\x01\n\x13\x46undchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0e\n\x06outnum\x18\x03 \x01(\r\x12\x12\n\nchannel_id\x18\x04 \x01(\x0c\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x37\n\x0c\x63hannel_type\x18\x07 \x01(\x0b\x32\x1c.cln.FundchannelChannel_typeH\x02\x88\x01\x01\x42\x0b\n\t_close_toB\x0b\n\t_mindepthB\x0f\n\r_channel_type\"L\n\x17\x46undchannelChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xd7\x02\n\x18\x46undchannel_startRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x1b\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\x07\x66\x65\x65rate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12#\n\tpush_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x15\n\x08mindepth\x18\x07 \x01(\rH\x04\x88\x01\x01\x12!\n\x07reserve\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0c\n\n_push_msatB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xf9\x01\n\x19\x46undchannel_startResponse\x12\x17\n\x0f\x66unding_address\x18\x01 \x01(\t\x12\x14\n\x0cscriptpubkey\x18\x02 \x01(\x0c\x12=\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32\".cln.Fundchannel_startChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x04 \x01(\x0cH\x01\x88\x01\x01\x12\x15\n\rwarning_usage\x18\x05 \x01(\t\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x0b\n\t_mindepth\"R\n\x1d\x46undchannel_startChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x9d\x01\n\rGetlogRequest\x12\x32\n\x05level\x18\x01 \x01(\x0e\x32\x1e.cln.GetlogRequest.GetlogLevelH\x00\x88\x01\x01\"N\n\x0bGetlogLevel\x12\n\n\x06\x42ROKEN\x10\x00\x12\x0b\n\x07UNUSUAL\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x06\n\x02IO\x10\x04\x12\t\n\x05TRACE\x10\x05\x42\x08\n\x06_level\"h\n\x0eGetlogResponse\x12\x12\n\ncreated_at\x18\x01 \x01(\t\x12\x12\n\nbytes_used\x18\x02 \x01(\r\x12\x11\n\tbytes_max\x18\x03 \x01(\r\x12\x1b\n\x03log\x18\x04 \x03(\x0b\x32\x0e.cln.GetlogLog\"\xe8\x02\n\tGetlogLog\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.GetlogLog.GetlogLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"l\n\rGetlogLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"\xec\x01\n\x0fGetrouteRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\nriskfactor\x18\x03 \x01(\x04\x12\x11\n\x04\x63ltv\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x13\n\x06\x66romid\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x66uzzpercent\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\x07 \x03(\t\x12\x14\n\x07maxhops\x18\x08 \x01(\rH\x03\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountB\x07\n\x05_cltvB\t\n\x07_fromidB\x0e\n\x0c_fuzzpercentB\n\n\x08_maxhops\"5\n\x10GetrouteResponse\x12!\n\x05route\x18\x01 \x03(\x0b\x32\x12.cln.GetrouteRoute\"\xc5\x01\n\rGetrouteRoute\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x05 \x01(\r\x12\x34\n\x05style\x18\x06 \x01(\x0e\x32%.cln.GetrouteRoute.GetrouteRouteStyle\"\x1d\n\x12GetrouteRouteStyle\x12\x07\n\x03TLV\x10\x00\"\xb7\x03\n\x13ListforwardsRequest\x12@\n\x06status\x18\x01 \x01(\x0e\x32+.cln.ListforwardsRequest.ListforwardsStatusH\x00\x88\x01\x01\x12\x17\n\nin_channel\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x03 \x01(\tH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListforwardsRequest.ListforwardsIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\"L\n\x12ListforwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"-\n\x11ListforwardsIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_statusB\r\n\x0b_in_channelB\x0e\n\x0c_out_channelB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListforwardsResponse\x12+\n\x08\x66orwards\x18\x01 \x03(\x0b\x32\x19.cln.ListforwardsForwards\"\xb4\x06\n\x14ListforwardsForwards\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x1c\n\x07in_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x44\n\x06status\x18\x03 \x01(\x0e\x32\x34.cln.ListforwardsForwards.ListforwardsForwardsStatus\x12\x15\n\rreceived_time\x18\x04 \x01(\x01\x12\x18\n\x0bout_channel\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\"\n\x08\x66\x65\x65_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\"\n\x08out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12G\n\x05style\x18\t \x01(\x0e\x32\x33.cln.ListforwardsForwards.ListforwardsForwardsStyleH\x03\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x18\n\x0bout_htlc_id\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rresolved_time\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x15\n\x08\x66\x61ilcode\x18\x0f \x01(\rH\t\x88\x01\x01\x12\x17\n\nfailreason\x18\x10 \x01(\tH\n\x88\x01\x01\"T\n\x1aListforwardsForwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"0\n\x19ListforwardsForwardsStyle\x12\n\n\x06LEGACY\x10\x00\x12\x07\n\x03TLV\x10\x01\x42\x0e\n\x0c_out_channelB\x0b\n\t_fee_msatB\x0b\n\t_out_msatB\x08\n\x06_styleB\r\n\x0b_in_htlc_idB\x0e\n\x0c_out_htlc_idB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_resolved_timeB\x0b\n\t_failcodeB\r\n\x0b_failreason\"a\n\x11ListoffersRequest\x12\x15\n\x08offer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0b\x61\x63tive_only\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\x0b\n\t_offer_idB\x0e\n\x0c_active_only\";\n\x12ListoffersResponse\x12%\n\x06offers\x18\x01 \x03(\x0b\x32\x15.cln.ListoffersOffers\"\x84\x01\n\x10ListoffersOffers\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"\xdb\x01\n\x0fListpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x38\n\x06status\x18\x03 \x01(\x0e\x32#.cln.ListpaysRequest.ListpaysStatusH\x02\x88\x01\x01\"7\n\x0eListpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_status\"3\n\x10ListpaysResponse\x12\x1f\n\x04pays\x18\x01 \x03(\x0b\x32\x11.cln.ListpaysPays\"\xff\x04\n\x0cListpaysPays\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x34\n\x06status\x18\x02 \x01(\x0e\x32$.cln.ListpaysPays.ListpaysPaysStatus\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x04\x12\x12\n\x05label\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x06 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12*\n\x10\x61mount_sent_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\n \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0c \x01(\x04H\x08\x88\x01\x01\x12\x15\n\x08preimage\x18\r \x01(\x0cH\t\x88\x01\x01\x12\x1c\n\x0fnumber_of_parts\x18\x0e \x01(\x04H\n\x88\x01\x01\";\n\x12ListpaysPaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x13\n\x11_amount_sent_msatB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\x0f\n\r_completed_atB\x0b\n\t_preimageB\x12\n\x10_number_of_parts\"*\n\x10ListhtlcsRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListhtlcsResponse\x12\"\n\x05htlcs\x18\x01 \x03(\x0b\x32\x13.cln.ListhtlcsHtlcs\"\x89\x02\n\x0eListhtlcsHtlcs\x12\x18\n\x10short_channel_id\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12>\n\tdirection\x18\x05 \x01(\x0e\x32+.cln.ListhtlcsHtlcs.ListhtlcsHtlcsDirection\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x1d\n\x05state\x18\x07 \x01(\x0e\x32\x0e.cln.HtlcState\"*\n\x17ListhtlcsHtlcsDirection\x12\x07\n\x03OUT\x10\x00\x12\x06\n\x02IN\x10\x01\"\xb2\x02\n\x17MultifundchannelRequest\x12\x37\n\x0c\x64\x65stinations\x18\x01 \x03(\x0b\x32!.cln.MultifundchannelDestinations\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\x12H\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x18\n\x0bminchannels\x18\x05 \x01(\x12H\x02\x88\x01\x01\x12-\n\x12\x63ommitment_feerate\x18\x06 \x01(\x0b\x32\x0c.cln.FeerateH\x03\x88\x01\x01\x42\n\n\x08_feerateB\n\n\x08_minconfB\x0e\n\x0c_minchannelsB\x15\n\x13_commitment_feerate\"\x98\x01\n\x18MultifundchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x35\n\x0b\x63hannel_ids\x18\x03 \x03(\x0b\x32 .cln.MultifundchannelChannel_ids\x12+\n\x06\x66\x61iled\x18\x04 \x03(\x0b\x32\x1b.cln.MultifundchannelFailed\"\xff\x02\n\x1cMultifundchannelDestinations\x12\n\n\x02id\x18\x01 \x01(\t\x12 \n\x06\x61mount\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12#\n\tpush_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12%\n\x0brequest_amt\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08mindepth\x18\x08 \x01(\rH\x05\x88\x01\x01\x12!\n\x07reserve\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x42\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xcb\x01\n\x1bMultifundchannelChannel_ids\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12\x12\n\nchannel_id\x18\x03 \x01(\x0c\x12G\n\x0c\x63hannel_type\x18\x04 \x01(\x0b\x32,.cln.MultifundchannelChannel_idsChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_to\"\\\n\'MultifundchannelChannel_idsChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x93\x02\n\x16MultifundchannelFailed\x12\n\n\x02id\x18\x01 \x01(\x0c\x12H\n\x06method\x18\x02 \x01(\x0e\x32\x38.cln.MultifundchannelFailed.MultifundchannelFailedMethod\x12/\n\x05\x65rror\x18\x03 \x01(\x0b\x32 .cln.MultifundchannelFailedError\"r\n\x1cMultifundchannelFailedMethod\x12\x0b\n\x07\x43ONNECT\x10\x00\x12\x14\n\x10OPENCHANNEL_INIT\x10\x01\x12\x15\n\x11\x46UNDCHANNEL_START\x10\x02\x12\x18\n\x14\x46UNDCHANNEL_COMPLETE\x10\x03\"<\n\x1bMultifundchannelFailedError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x12\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xc1\x03\n\x0cOfferRequest\x12\x0e\n\x06\x61mount\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x06issuer\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cquantity_max\x18\x05 \x01(\x04H\x02\x88\x01\x01\x12\x1c\n\x0f\x61\x62solute_expiry\x18\x06 \x01(\x04H\x03\x88\x01\x01\x12\x17\n\nrecurrence\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x1c\n\x0frecurrence_base\x18\x08 \x01(\tH\x05\x88\x01\x01\x12!\n\x14recurrence_paywindow\x18\t \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10recurrence_limit\x18\n \x01(\rH\x07\x88\x01\x01\x12\x17\n\nsingle_use\x18\x0b \x01(\x08H\x08\x88\x01\x01\x42\t\n\x07_issuerB\x08\n\x06_labelB\x0f\n\r_quantity_maxB\x12\n\x10_absolute_expiryB\r\n\x0b_recurrenceB\x12\n\x10_recurrence_baseB\x17\n\x15_recurrence_paywindowB\x13\n\x11_recurrence_limitB\r\n\x0b_single_use\"\x92\x01\n\rOfferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x0f\n\x07\x63reated\x18\x06 \x01(\x08\x12\x12\n\x05label\x18\x07 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\".\n\x18Openchannel_abortRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"Y\n\x19Openchannel_abortResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x18\n\x10\x63hannel_canceled\x18\x02 \x01(\x08\x12\x0e\n\x06reason\x18\x03 \x01(\t\"\x9f\x01\n\x17Openchannel_bumpRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12*\n\x0f\x66unding_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x1b\n\x06\x61mount\x18\x04 \x01(\x0b\x32\x0b.cln.AmountB\x12\n\x10_funding_feerate\"\x86\x02\n\x18Openchannel_bumpResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12<\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32!.cln.Openchannel_bumpChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_bumpChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xa0\x03\n\x17Openchannel_initRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12-\n\x12\x63ommitment_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12*\n\x0f\x66unding_feerate\x18\x04 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\r\x12\x1b\n\x06\x61mount\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x15\n\x13_commitment_feerateB\x12\n\x10_funding_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_lease\"\x86\x02\n\x18Openchannel_initResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12<\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32!.cln.Openchannel_initChannel_typeH\x00\x88\x01\x01\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_initChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"D\n\x19Openchannel_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0bsigned_psbt\x18\x02 \x01(\t\"J\n\x1aOpenchannel_signedResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"=\n\x19Openchannel_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"\xae\x02\n\x1aOpenchannel_updateResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12>\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32#.cln.Openchannel_updateChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_outnum\x18\x05 \x01(\r\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12&\n\x19requires_confirmed_inputs\x18\x07 \x01(\x08H\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x1c\n\x1a_requires_confirmed_inputs\"S\n\x1eOpenchannel_updateChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"Y\n\x0bPingRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x03len\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x16\n\tpongbytes\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x06\n\x04_lenB\x0c\n\n_pongbytes\"\x1e\n\x0cPingResponse\x12\x0e\n\x06totlen\x18\x01 \x01(\r\"\x91\x01\n\rPluginRequest\x12)\n\nsubcommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12\x13\n\x06plugin\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tdirectory\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x07options\x18\x04 \x03(\tB\t\n\x07_pluginB\x0c\n\n_directory\"}\n\x0ePluginResponse\x12&\n\x07\x63ommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12#\n\x07plugins\x18\x02 \x03(\x0b\x32\x12.cln.PluginPlugins\x12\x13\n\x06result\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\t\n\x07_result\">\n\rPluginPlugins\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x0f\n\x07\x64ynamic\x18\x03 \x01(\x08\"<\n\x14RenepaystatusRequest\x12\x16\n\tinvstring\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_invstring\"G\n\x15RenepaystatusResponse\x12.\n\tpaystatus\x18\x01 \x03(\x0b\x32\x1b.cln.RenepaystatusPaystatus\"\xe2\x03\n\x16RenepaystatusPaystatus\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x1d\n\x10payment_preimage\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\x0f\n\x07groupid\x18\x05 \x01(\r\x12\x12\n\x05parts\x18\x06 \x01(\rH\x01\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12H\n\x06status\x18\t \x01(\x0e\x32\x38.cln.RenepaystatusPaystatus.RenepaystatusPaystatusStatus\x12\x18\n\x0b\x64\x65stination\x18\n \x01(\x0cH\x03\x88\x01\x01\x12\r\n\x05notes\x18\x0b \x03(\t\"E\n\x1cRenepaystatusPaystatusStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x13\n\x11_payment_preimageB\x08\n\x06_partsB\x13\n\x11_amount_sent_msatB\x0e\n\x0c_destination\"\xc9\x02\n\x0eRenepayRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12 \n\x06maxfee\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x03\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x12\n\x05label\x18\x07 \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0e\x64\x65v_use_shadow\x18\x08 \x01(\x08H\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_maxfeeB\x0b\n\t_maxdelayB\x0c\n\n_retry_forB\x0e\n\x0c_descriptionB\x08\n\x06_labelB\x11\n\x0f_dev_use_shadow\"\xc3\x02\n\x0fRenepayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\ncreated_at\x18\x03 \x01(\x01\x12\r\n\x05parts\x18\x04 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12\x32\n\x06status\x18\x07 \x01(\x0e\x32\".cln.RenepayResponse.RenepayStatus\x12\x18\n\x0b\x64\x65stination\x18\x08 \x01(\x0cH\x00\x88\x01\x01\"6\n\rRenepayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destination\"l\n\x14ReserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\texclusive\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x0c\n\n_exclusiveB\n\n\x08_reserve\"M\n\x15ReserveinputsResponse\x12\x34\n\x0creservations\x18\x01 \x03(\x0b\x32\x1e.cln.ReserveinputsReservations\"z\n\x19ReserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"4\n\x14SendcustommsgRequest\x12\x0f\n\x07node_id\x18\x01 \x01(\x0c\x12\x0b\n\x03msg\x18\x02 \x01(\x0c\"\'\n\x15SendcustommsgResponse\x12\x0e\n\x06status\x18\x01 \x01(\t\"\xb0\x01\n\x12SendinvoiceRequest\x12\x0e\n\x06invreq\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08quantity\x18\x05 \x01(\x04H\x02\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\n\n\x08_timeoutB\x0b\n\t_quantity\"\xcf\x04\n\x13SendinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.SendinvoiceResponse.SendinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x08 \x01(\x04H\x02\x88\x01\x01\x12\x1a\n\rupdated_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12\x16\n\tpay_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\"6\n\x11SendinvoiceStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt12B\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"f\n\x17SendonionmessageRequest\x12\x10\n\x08\x66irst_id\x18\x01 \x01(\x0c\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\'\n\x04hops\x18\x03 \x03(\x0b\x32\x19.cln.SendonionmessageHops\"\x1a\n\x18SendonionmessageResponse\"1\n\x14SendonionmessageHops\x12\x0c\n\x04node\x18\x01 \x01(\x0c\x12\x0b\n\x03tlv\x18\x02 \x01(\r\"\xaa\x02\n\x11SetchannelRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x07\x66\x65\x65\x62\x61se\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x66\x65\x65ppm\x18\x03 \x01(\rH\x01\x88\x01\x01\x12!\n\x07htlcmin\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12!\n\x07htlcmax\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x19\n\x0c\x65nforcedelay\x18\x06 \x01(\rH\x04\x88\x01\x01\x12\x1c\n\x0fignorefeelimits\x18\x07 \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_feebaseB\t\n\x07_feeppmB\n\n\x08_htlcminB\n\n\x08_htlcmaxB\x0f\n\r_enforcedelayB\x12\n\x10_ignorefeelimits\"?\n\x12SetchannelResponse\x12)\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x17.cln.SetchannelChannels\"\xca\x03\n\x12SetchannelChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\x12*\n\x15minimum_htlc_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x17warning_htlcmin_too_low\x18\x07 \x01(\tH\x01\x88\x01\x01\x12*\n\x15maximum_htlc_out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x18warning_htlcmax_too_high\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\n \x01(\x08H\x03\x88\x01\x01\x42\x13\n\x11_short_channel_idB\x1a\n\x18_warning_htlcmin_too_lowB\x1b\n\x19_warning_htlcmax_too_highB\x14\n\x12_ignore_fee_limits\"<\n\x10SetconfigRequest\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x10\n\x03val\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_val\"9\n\x11SetconfigResponse\x12$\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x14.cln.SetconfigConfig\"\xa5\x02\n\x0fSetconfigConfig\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x06plugin\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07\x64ynamic\x18\x04 \x01(\x08\x12\x10\n\x03set\x18\x05 \x01(\x08H\x01\x88\x01\x01\x12\x16\n\tvalue_str\x18\x06 \x01(\tH\x02\x88\x01\x01\x12$\n\nvalue_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x16\n\tvalue_int\x18\x08 \x01(\x12H\x04\x88\x01\x01\x12\x17\n\nvalue_bool\x18\t \x01(\x08H\x05\x88\x01\x01\x42\t\n\x07_pluginB\x06\n\x04_setB\x0c\n\n_value_strB\r\n\x0b_value_msatB\x0c\n\n_value_intB\r\n\x0b_value_bool\"6\n\x15SetpsbtversionRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\r\"&\n\x16SetpsbtversionResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"\'\n\x12SigninvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\"%\n\x13SigninvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"%\n\x12SignmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\"F\n\x13SignmessageResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\r\n\x05recid\x18\x02 \x01(\x0c\x12\r\n\x05zbase\x18\x03 \x01(\t\"\xc9\x01\n\x12Splice_initRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x17\n\x0frelative_amount\x18\x02 \x01(\x12\x12\x18\n\x0binitialpsbt\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0e\x66\x65\x65rate_per_kw\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1a\n\rforce_feerate\x18\x05 \x01(\x08H\x02\x88\x01\x01\x42\x0e\n\x0c_initialpsbtB\x11\n\x0f_feerate_per_kwB\x10\n\x0e_force_feerate\"#\n\x13Splice_initResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"`\n\x14Splice_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12\x17\n\nsign_first\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\r\n\x0b_sign_first\"1\n\x15Splice_signedResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"8\n\x14Splice_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"B\n\x15Splice_updateResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"H\n\x16UnreserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\"Q\n\x17UnreserveinputsResponse\x12\x36\n\x0creservations\x18\x01 \x03(\x0b\x32 .cln.UnreserveinputsReservations\"\x97\x01\n\x1bUnreserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\x05 \x01(\rH\x00\x88\x01\x01\x42\x14\n\x12_reserved_to_block\"n\n\x14UpgradewalletRequest\x12\"\n\x07\x66\x65\x65rate\x18\x01 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x17\n\nreservedok\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\n\n\x08_feerateB\r\n\x0b_reservedok\"\x95\x01\n\x15UpgradewalletResponse\x12\x1a\n\rupgraded_outs\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x11\n\x04psbt\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x02tx\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x11\n\x04txid\x18\x04 \x01(\x0cH\x03\x88\x01\x01\x42\x10\n\x0e_upgraded_outsB\x07\n\x05_psbtB\x05\n\x03_txB\x07\n\x05_txid\"O\n\x16WaitblockheightRequest\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\x12\x14\n\x07timeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_timeout\".\n\x17WaitblockheightResponse\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\"\xf9\x01\n\x0bWaitRequest\x12\x31\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitSubsystem\x12\x31\n\tindexname\x18\x02 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitIndexname\x12\x11\n\tnextvalue\x18\x03 \x01(\x04\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\"6\n\rWaitIndexname\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\"\x97\x02\n\x0cWaitResponse\x12\x32\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1f.cln.WaitResponse.WaitSubsystem\x12\x14\n\x07\x63reated\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07updated\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x14\n\x07\x64\x65leted\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12&\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32\x10.cln.WaitDetailsH\x03\x88\x01\x01\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\x42\n\n\x08_createdB\n\n\x08_updatedB\n\n\x08_deletedB\n\n\x08_details\"\xfc\x04\n\x0bWaitDetails\x12\x37\n\x06status\x18\x01 \x01(\x0e\x32\".cln.WaitDetails.WaitDetailsStatusH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x07 \x01(\x04H\x06\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x08 \x01(\x0cH\x07\x88\x01\x01\x12\x17\n\nin_channel\x18\t \x01(\tH\x08\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\t\x88\x01\x01\x12!\n\x07in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x0c \x01(\tH\x0b\x88\x01\x01\"\x89\x01\n\x11WaitDetailsStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x43OMPLETE\x10\x05\x12\x0b\n\x07OFFERED\x10\x06\x12\x0b\n\x07SETTLED\x10\x07\x12\x10\n\x0cLOCAL_FAILED\x10\x08\x42\t\n\x07_statusB\x08\n\x06_labelB\x0e\n\x0c_descriptionB\t\n\x07_bolt11B\t\n\x07_bolt12B\t\n\x07_partidB\n\n\x08_groupidB\x0f\n\r_payment_hashB\r\n\x0b_in_channelB\r\n\x0b_in_htlc_idB\n\n\x08_in_msatB\x0e\n\x0c_out_channel\"\r\n\x0bStopRequest\"q\n\x0cStopResponse\x12\x31\n\x06result\x18\x01 \x01(\x0e\x32\x1c.cln.StopResponse.StopResultH\x00\x88\x01\x01\"#\n\nStopResult\x12\x15\n\x11SHUTDOWN_COMPLETE\x10\x00\x42\t\n\x07_result\"g\n\x18PreapprovekeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\"\x1b\n\x19PreapprovekeysendResponse\"*\n\x18PreapproveinvoiceRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"\x1b\n\x19PreapproveinvoiceResponse\"\x15\n\x13StaticbackupRequest\"#\n\x14StaticbackupResponse\x12\x0b\n\x03scb\x18\x01 \x03(\x0c\"d\n\x16\x42kprchannelsapyRequest\x12\x17\n\nstart_time\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x17\x42kprchannelsapyResponse\x12\x36\n\x0c\x63hannels_apy\x18\x01 \x03(\x0b\x32 .cln.BkprchannelsapyChannels_apy\"\xfa\x06\n\x1b\x42kprchannelsapyChannels_apy\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12$\n\x0frouted_out_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0erouted_in_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12(\n\x13lease_fee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x15lease_fee_earned_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x0fpushed_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0epushed_in_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x16our_start_balance_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12/\n\x1a\x63hannel_start_balance_msat\x18\t \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\rfees_out_msat\x18\n \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x0c\x66\x65\x65s_in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x17\n\x0futilization_out\x18\x0c \x01(\t\x12$\n\x17utilization_out_initial\x18\r \x01(\tH\x01\x88\x01\x01\x12\x16\n\x0eutilization_in\x18\x0e \x01(\t\x12#\n\x16utilization_in_initial\x18\x0f \x01(\tH\x02\x88\x01\x01\x12\x0f\n\x07\x61py_out\x18\x10 \x01(\t\x12\x1c\n\x0f\x61py_out_initial\x18\x11 \x01(\tH\x03\x88\x01\x01\x12\x0e\n\x06\x61py_in\x18\x12 \x01(\t\x12\x1b\n\x0e\x61py_in_initial\x18\x13 \x01(\tH\x04\x88\x01\x01\x12\x11\n\tapy_total\x18\x14 \x01(\t\x12\x1e\n\x11\x61py_total_initial\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x16\n\tapy_lease\x18\x16 \x01(\tH\x06\x88\x01\x01\x42\x0f\n\r_fees_in_msatB\x1a\n\x18_utilization_out_initialB\x19\n\x17_utilization_in_initialB\x12\n\x10_apy_out_initialB\x11\n\x0f_apy_in_initialB\x14\n\x12_apy_total_initialB\x0c\n\n_apy_lease\"\xd2\x01\n\x18\x42kprdumpincomecsvRequest\x12\x12\n\ncsv_format\x18\x01 \x01(\t\x12\x15\n\x08\x63sv_file\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10\x63onsolidate_fees\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x17\n\nstart_time\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x05 \x01(\x04H\x03\x88\x01\x01\x42\x0b\n\t_csv_fileB\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"\xd6\x01\n\x19\x42kprdumpincomecsvResponse\x12\x10\n\x08\x63sv_file\x18\x01 \x01(\t\x12N\n\ncsv_format\x18\x02 \x01(\x0e\x32:.cln.BkprdumpincomecsvResponse.BkprdumpincomecsvCsv_format\"W\n\x1b\x42kprdumpincomecsvCsv_format\x12\x0f\n\x0b\x43OINTRACKER\x10\x00\x12\n\n\x06KOINLY\x10\x01\x12\x0b\n\x07HARMONY\x10\x02\x12\x0e\n\nQUICKBOOKS\x10\x03\"%\n\x12\x42kprinspectRequest\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\"7\n\x13\x42kprinspectResponse\x12 \n\x03txs\x18\x01 \x03(\x0b\x32\x13.cln.BkprinspectTxs\"\x9a\x01\n\x0e\x42kprinspectTxs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x18\n\x0b\x62lockheight\x18\x02 \x01(\rH\x00\x88\x01\x01\x12#\n\x0e\x66\x65\x65s_paid_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x07outputs\x18\x04 \x03(\x0b\x32\x1a.cln.BkprinspectTxsOutputsB\x0e\n\x0c_blockheight\"\xbc\x03\n\x15\x42kprinspectTxsOutputs\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12&\n\x11output_value_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x04 \x01(\t\x12%\n\x0b\x63redit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12$\n\ndebit_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12 \n\x13originating_account\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x17\n\noutput_tag\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x16\n\tspend_tag\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rspending_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x42\x0e\n\x0c_credit_msatB\r\n\x0b_debit_msatB\x16\n\x14_originating_accountB\r\n\x0b_output_tagB\x0c\n\n_spend_tagB\x10\n\x0e_spending_txidB\r\n\x0b_payment_id\"@\n\x1c\x42kprlistaccounteventsRequest\x12\x14\n\x07\x61\x63\x63ount\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_account\"Q\n\x1d\x42kprlistaccounteventsResponse\x12\x30\n\x06\x65vents\x18\x01 \x03(\x0b\x32 .cln.BkprlistaccounteventsEvents\"\xa1\x05\n\x1b\x42kprlistaccounteventsEvents\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12S\n\titem_type\x18\x02 \x01(\x0e\x32@.cln.BkprlistaccounteventsEvents.BkprlistaccounteventsEventsType\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x06 \x01(\t\x12\x11\n\ttimestamp\x18\x07 \x01(\r\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x62lockheight\x18\t \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06origin\x18\n \x01(\tH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x11\n\x04txid\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x05\x88\x01\x01\x12#\n\tfees_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x19\n\x0cis_rebalance\x18\x0f \x01(\x08H\x07\x88\x01\x01\x12\x14\n\x07part_id\x18\x10 \x01(\rH\x08\x88\x01\x01\"J\n\x1f\x42kprlistaccounteventsEventsType\x12\x0f\n\x0bONCHAIN_FEE\x10\x00\x12\t\n\x05\x43HAIN\x10\x01\x12\x0b\n\x07\x43HANNEL\x10\x02\x42\x0b\n\t_outpointB\x0e\n\x0c_blockheightB\t\n\x07_originB\r\n\x0b_payment_idB\x07\n\x05_txidB\x0e\n\x0c_descriptionB\x0c\n\n_fees_msatB\x0f\n\r_is_rebalanceB\n\n\x08_part_id\"\x19\n\x17\x42kprlistbalancesRequest\"K\n\x18\x42kprlistbalancesResponse\x12/\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x1d.cln.BkprlistbalancesAccounts\"\xc6\x02\n\x18\x42kprlistbalancesAccounts\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x37\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32%.cln.BkprlistbalancesAccountsBalances\x12\x14\n\x07peer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x16\n\twe_opened\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x0e\x61\x63\x63ount_closed\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x1d\n\x10\x61\x63\x63ount_resolved\x18\x06 \x01(\x08H\x03\x88\x01\x01\x12\x1e\n\x11resolved_at_block\x18\x07 \x01(\rH\x04\x88\x01\x01\x42\n\n\x08_peer_idB\x0c\n\n_we_openedB\x11\n\x0f_account_closedB\x13\n\x11_account_resolvedB\x14\n\x12_resolved_at_block\"X\n BkprlistbalancesAccountsBalances\x12!\n\x0c\x62\x61lance_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x11\n\tcoin_type\x18\x02 \x01(\t\"\x97\x01\n\x15\x42kprlistincomeRequest\x12\x1d\n\x10\x63onsolidate_fees\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x17\n\nstart_time\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x03 \x01(\rH\x02\x88\x01\x01\x42\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x16\x42kprlistincomeResponse\x12\x37\n\rincome_events\x18\x01 \x03(\x0b\x32 .cln.BkprlistincomeIncome_events\"\xb5\x02\n\x1b\x42kprlistincomeIncome_events\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0b\n\x03tag\x18\x02 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x05 \x01(\t\x12\x11\n\ttimestamp\x18\x06 \x01(\r\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04txid\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\n \x01(\x0cH\x03\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x0b\n\t_outpointB\x07\n\x05_txidB\r\n\x0b_payment_id\"\x19\n\x17StreamBlockAddedRequest\"6\n\x16\x42lockAddedNotification\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\x0e\n\x06height\x18\x02 \x01(\r\" \n\x1eStreamChannelOpenFailedRequest\"3\n\x1d\x43hannelOpenFailedNotification\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"\x1c\n\x1aStreamChannelOpenedRequest\"\x83\x01\n\x19\x43hannelOpenedNotification\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12!\n\x0c\x66unding_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x03 \x01(\x0c\x12\x15\n\rchannel_ready\x18\x04 \x01(\x08\x42\x05\n\x03_id\"\x16\n\x14StreamConnectRequest\"\x95\x01\n\x13\x43onnectNotification\x12\n\n\x02id\x18\x01 \x01(\x0c\x12<\n\tdirection\x18\x02 \x01(\x0e\x32).cln.ConnectNotification.ConnectDirection\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x01(\t\"#\n\x10\x43onnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\x18\n\x16StreamCustomMsgRequest\"9\n\x15\x43ustomMsgNotification\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x32\xdb\x33\n\x04Node\x12\x36\n\x07Getinfo\x12\x13.cln.GetinfoRequest\x1a\x14.cln.GetinfoResponse\"\x00\x12<\n\tListPeers\x12\x15.cln.ListpeersRequest\x1a\x16.cln.ListpeersResponse\"\x00\x12<\n\tListFunds\x12\x15.cln.ListfundsRequest\x1a\x16.cln.ListfundsResponse\"\x00\x12\x36\n\x07SendPay\x12\x13.cln.SendpayRequest\x1a\x14.cln.SendpayResponse\"\x00\x12\x45\n\x0cListChannels\x12\x18.cln.ListchannelsRequest\x1a\x19.cln.ListchannelsResponse\"\x00\x12<\n\tAddGossip\x12\x15.cln.AddgossipRequest\x1a\x16.cln.AddgossipResponse\"\x00\x12Q\n\x10\x41utoCleanInvoice\x12\x1c.cln.AutocleaninvoiceRequest\x1a\x1d.cln.AutocleaninvoiceResponse\"\x00\x12H\n\rAutoCleanOnce\x12\x19.cln.AutocleanonceRequest\x1a\x1a.cln.AutocleanonceResponse\"\x00\x12N\n\x0f\x41utoCleanStatus\x12\x1b.cln.AutocleanstatusRequest\x1a\x1c.cln.AutocleanstatusResponse\"\x00\x12\x45\n\x0c\x43heckMessage\x12\x18.cln.CheckmessageRequest\x1a\x19.cln.CheckmessageResponse\"\x00\x12\x30\n\x05\x43lose\x12\x11.cln.CloseRequest\x1a\x12.cln.CloseResponse\"\x00\x12:\n\x0b\x43onnectPeer\x12\x13.cln.ConnectRequest\x1a\x14.cln.ConnectResponse\"\x00\x12H\n\rCreateInvoice\x12\x19.cln.CreateinvoiceRequest\x1a\x1a.cln.CreateinvoiceResponse\"\x00\x12<\n\tDatastore\x12\x15.cln.DatastoreRequest\x1a\x16.cln.DatastoreResponse\"\x00\x12K\n\x0e\x44\x61tastoreUsage\x12\x1a.cln.DatastoreusageRequest\x1a\x1b.cln.DatastoreusageResponse\"\x00\x12\x42\n\x0b\x43reateOnion\x12\x17.cln.CreateonionRequest\x1a\x18.cln.CreateonionResponse\"\x00\x12\x45\n\x0c\x44\x65lDatastore\x12\x18.cln.DeldatastoreRequest\x1a\x19.cln.DeldatastoreResponse\"\x00\x12?\n\nDelInvoice\x12\x16.cln.DelinvoiceRequest\x1a\x17.cln.DelinvoiceResponse\"\x00\x12\x36\n\x07Invoice\x12\x13.cln.InvoiceRequest\x1a\x14.cln.InvoiceResponse\"\x00\x12H\n\rListDatastore\x12\x19.cln.ListdatastoreRequest\x1a\x1a.cln.ListdatastoreResponse\"\x00\x12\x45\n\x0cListInvoices\x12\x18.cln.ListinvoicesRequest\x1a\x19.cln.ListinvoicesResponse\"\x00\x12<\n\tSendOnion\x12\x15.cln.SendonionRequest\x1a\x16.cln.SendonionResponse\"\x00\x12\x45\n\x0cListSendPays\x12\x18.cln.ListsendpaysRequest\x1a\x19.cln.ListsendpaysResponse\"\x00\x12Q\n\x10ListTransactions\x12\x1c.cln.ListtransactionsRequest\x1a\x1d.cln.ListtransactionsResponse\"\x00\x12*\n\x03Pay\x12\x0f.cln.PayRequest\x1a\x10.cln.PayResponse\"\x00\x12<\n\tListNodes\x12\x15.cln.ListnodesRequest\x1a\x16.cln.ListnodesResponse\"\x00\x12K\n\x0eWaitAnyInvoice\x12\x1a.cln.WaitanyinvoiceRequest\x1a\x1b.cln.WaitanyinvoiceResponse\"\x00\x12\x42\n\x0bWaitInvoice\x12\x17.cln.WaitinvoiceRequest\x1a\x18.cln.WaitinvoiceResponse\"\x00\x12\x42\n\x0bWaitSendPay\x12\x17.cln.WaitsendpayRequest\x1a\x18.cln.WaitsendpayResponse\"\x00\x12\x36\n\x07NewAddr\x12\x13.cln.NewaddrRequest\x1a\x14.cln.NewaddrResponse\"\x00\x12\x39\n\x08Withdraw\x12\x14.cln.WithdrawRequest\x1a\x15.cln.WithdrawResponse\"\x00\x12\x36\n\x07KeySend\x12\x13.cln.KeysendRequest\x1a\x14.cln.KeysendResponse\"\x00\x12\x39\n\x08\x46undPsbt\x12\x14.cln.FundpsbtRequest\x1a\x15.cln.FundpsbtResponse\"\x00\x12\x39\n\x08SendPsbt\x12\x14.cln.SendpsbtRequest\x1a\x15.cln.SendpsbtResponse\"\x00\x12\x39\n\x08SignPsbt\x12\x14.cln.SignpsbtRequest\x1a\x15.cln.SignpsbtResponse\"\x00\x12\x39\n\x08UtxoPsbt\x12\x14.cln.UtxopsbtRequest\x1a\x15.cln.UtxopsbtResponse\"\x00\x12<\n\tTxDiscard\x12\x15.cln.TxdiscardRequest\x1a\x16.cln.TxdiscardResponse\"\x00\x12<\n\tTxPrepare\x12\x15.cln.TxprepareRequest\x1a\x16.cln.TxprepareResponse\"\x00\x12\x33\n\x06TxSend\x12\x12.cln.TxsendRequest\x1a\x13.cln.TxsendResponse\"\x00\x12Q\n\x10ListPeerChannels\x12\x1c.cln.ListpeerchannelsRequest\x1a\x1d.cln.ListpeerchannelsResponse\"\x00\x12W\n\x12ListClosedChannels\x12\x1e.cln.ListclosedchannelsRequest\x1a\x1f.cln.ListclosedchannelsResponse\"\x00\x12<\n\tDecodePay\x12\x15.cln.DecodepayRequest\x1a\x16.cln.DecodepayResponse\"\x00\x12\x33\n\x06\x44\x65\x63ode\x12\x12.cln.DecodeRequest\x1a\x13.cln.DecodeResponse\"\x00\x12\x33\n\x06\x44\x65lPay\x12\x12.cln.DelpayRequest\x1a\x13.cln.DelpayResponse\"\x00\x12?\n\nDelForward\x12\x16.cln.DelforwardRequest\x1a\x17.cln.DelforwardResponse\"\x00\x12\x45\n\x0c\x44isableOffer\x12\x18.cln.DisableofferRequest\x1a\x19.cln.DisableofferResponse\"\x00\x12?\n\nDisconnect\x12\x16.cln.DisconnectRequest\x1a\x17.cln.DisconnectResponse\"\x00\x12\x39\n\x08\x46\x65\x65rates\x12\x14.cln.FeeratesRequest\x1a\x15.cln.FeeratesResponse\"\x00\x12\x45\n\x0c\x46\x65tchInvoice\x12\x18.cln.FetchinvoiceRequest\x1a\x19.cln.FetchinvoiceResponse\"\x00\x12W\n\x12\x46undChannel_Cancel\x12\x1e.cln.Fundchannel_cancelRequest\x1a\x1f.cln.Fundchannel_cancelResponse\"\x00\x12]\n\x14\x46undChannel_Complete\x12 .cln.Fundchannel_completeRequest\x1a!.cln.Fundchannel_completeResponse\"\x00\x12\x42\n\x0b\x46undChannel\x12\x17.cln.FundchannelRequest\x1a\x18.cln.FundchannelResponse\"\x00\x12T\n\x11\x46undChannel_Start\x12\x1d.cln.Fundchannel_startRequest\x1a\x1e.cln.Fundchannel_startResponse\"\x00\x12\x33\n\x06GetLog\x12\x12.cln.GetlogRequest\x1a\x13.cln.GetlogResponse\"\x00\x12\x39\n\x08GetRoute\x12\x14.cln.GetrouteRequest\x1a\x15.cln.GetrouteResponse\"\x00\x12\x45\n\x0cListForwards\x12\x18.cln.ListforwardsRequest\x1a\x19.cln.ListforwardsResponse\"\x00\x12?\n\nListOffers\x12\x16.cln.ListoffersRequest\x1a\x17.cln.ListoffersResponse\"\x00\x12\x39\n\x08ListPays\x12\x14.cln.ListpaysRequest\x1a\x15.cln.ListpaysResponse\"\x00\x12<\n\tListHtlcs\x12\x15.cln.ListhtlcsRequest\x1a\x16.cln.ListhtlcsResponse\"\x00\x12Q\n\x10MultiFundChannel\x12\x1c.cln.MultifundchannelRequest\x1a\x1d.cln.MultifundchannelResponse\"\x00\x12\x30\n\x05Offer\x12\x11.cln.OfferRequest\x1a\x12.cln.OfferResponse\"\x00\x12T\n\x11OpenChannel_Abort\x12\x1d.cln.Openchannel_abortRequest\x1a\x1e.cln.Openchannel_abortResponse\"\x00\x12Q\n\x10OpenChannel_Bump\x12\x1c.cln.Openchannel_bumpRequest\x1a\x1d.cln.Openchannel_bumpResponse\"\x00\x12Q\n\x10OpenChannel_Init\x12\x1c.cln.Openchannel_initRequest\x1a\x1d.cln.Openchannel_initResponse\"\x00\x12W\n\x12OpenChannel_Signed\x12\x1e.cln.Openchannel_signedRequest\x1a\x1f.cln.Openchannel_signedResponse\"\x00\x12W\n\x12OpenChannel_Update\x12\x1e.cln.Openchannel_updateRequest\x1a\x1f.cln.Openchannel_updateResponse\"\x00\x12-\n\x04Ping\x12\x10.cln.PingRequest\x1a\x11.cln.PingResponse\"\x00\x12\x33\n\x06Plugin\x12\x12.cln.PluginRequest\x1a\x13.cln.PluginResponse\"\x00\x12H\n\rRenePayStatus\x12\x19.cln.RenepaystatusRequest\x1a\x1a.cln.RenepaystatusResponse\"\x00\x12\x36\n\x07RenePay\x12\x13.cln.RenepayRequest\x1a\x14.cln.RenepayResponse\"\x00\x12H\n\rReserveInputs\x12\x19.cln.ReserveinputsRequest\x1a\x1a.cln.ReserveinputsResponse\"\x00\x12H\n\rSendCustomMsg\x12\x19.cln.SendcustommsgRequest\x1a\x1a.cln.SendcustommsgResponse\"\x00\x12\x42\n\x0bSendInvoice\x12\x17.cln.SendinvoiceRequest\x1a\x18.cln.SendinvoiceResponse\"\x00\x12Q\n\x10SendOnionMessage\x12\x1c.cln.SendonionmessageRequest\x1a\x1d.cln.SendonionmessageResponse\"\x00\x12?\n\nSetChannel\x12\x16.cln.SetchannelRequest\x1a\x17.cln.SetchannelResponse\"\x00\x12<\n\tSetConfig\x12\x15.cln.SetconfigRequest\x1a\x16.cln.SetconfigResponse\"\x00\x12K\n\x0eSetPsbtVersion\x12\x1a.cln.SetpsbtversionRequest\x1a\x1b.cln.SetpsbtversionResponse\"\x00\x12\x42\n\x0bSignInvoice\x12\x17.cln.SigninvoiceRequest\x1a\x18.cln.SigninvoiceResponse\"\x00\x12\x42\n\x0bSignMessage\x12\x17.cln.SignmessageRequest\x1a\x18.cln.SignmessageResponse\"\x00\x12\x42\n\x0bSplice_Init\x12\x17.cln.Splice_initRequest\x1a\x18.cln.Splice_initResponse\"\x00\x12H\n\rSplice_Signed\x12\x19.cln.Splice_signedRequest\x1a\x1a.cln.Splice_signedResponse\"\x00\x12H\n\rSplice_Update\x12\x19.cln.Splice_updateRequest\x1a\x1a.cln.Splice_updateResponse\"\x00\x12N\n\x0fUnreserveInputs\x12\x1b.cln.UnreserveinputsRequest\x1a\x1c.cln.UnreserveinputsResponse\"\x00\x12H\n\rUpgradeWallet\x12\x19.cln.UpgradewalletRequest\x1a\x1a.cln.UpgradewalletResponse\"\x00\x12N\n\x0fWaitBlockHeight\x12\x1b.cln.WaitblockheightRequest\x1a\x1c.cln.WaitblockheightResponse\"\x00\x12-\n\x04Wait\x12\x10.cln.WaitRequest\x1a\x11.cln.WaitResponse\"\x00\x12-\n\x04Stop\x12\x10.cln.StopRequest\x1a\x11.cln.StopResponse\"\x00\x12T\n\x11PreApproveKeysend\x12\x1d.cln.PreapprovekeysendRequest\x1a\x1e.cln.PreapprovekeysendResponse\"\x00\x12T\n\x11PreApproveInvoice\x12\x1d.cln.PreapproveinvoiceRequest\x1a\x1e.cln.PreapproveinvoiceResponse\"\x00\x12\x45\n\x0cStaticBackup\x12\x18.cln.StaticbackupRequest\x1a\x19.cln.StaticbackupResponse\"\x00\x12N\n\x0f\x42kprChannelsApy\x12\x1b.cln.BkprchannelsapyRequest\x1a\x1c.cln.BkprchannelsapyResponse\"\x00\x12T\n\x11\x42kprDumpIncomeCsv\x12\x1d.cln.BkprdumpincomecsvRequest\x1a\x1e.cln.BkprdumpincomecsvResponse\"\x00\x12\x42\n\x0b\x42kprInspect\x12\x17.cln.BkprinspectRequest\x1a\x18.cln.BkprinspectResponse\"\x00\x12`\n\x15\x42kprListAccountEvents\x12!.cln.BkprlistaccounteventsRequest\x1a\".cln.BkprlistaccounteventsResponse\"\x00\x12Q\n\x10\x42kprListBalances\x12\x1c.cln.BkprlistbalancesRequest\x1a\x1d.cln.BkprlistbalancesResponse\"\x00\x12K\n\x0e\x42kprListIncome\x12\x1a.cln.BkprlistincomeRequest\x1a\x1b.cln.BkprlistincomeResponse\"\x00\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -721,6 +721,28 @@ _globals['_BKPRLISTINCOMERESPONSE']._serialized_end=63164 _globals['_BKPRLISTINCOMEINCOME_EVENTS']._serialized_start=63167 _globals['_BKPRLISTINCOMEINCOME_EVENTS']._serialized_end=63476 - _globals['_NODE']._serialized_start=63479 - _globals['_NODE']._serialized_end=70098 + _globals['_STREAMBLOCKADDEDREQUEST']._serialized_start=63478 + _globals['_STREAMBLOCKADDEDREQUEST']._serialized_end=63503 + _globals['_BLOCKADDEDNOTIFICATION']._serialized_start=63505 + _globals['_BLOCKADDEDNOTIFICATION']._serialized_end=63559 + _globals['_STREAMCHANNELOPENFAILEDREQUEST']._serialized_start=63561 + _globals['_STREAMCHANNELOPENFAILEDREQUEST']._serialized_end=63593 + _globals['_CHANNELOPENFAILEDNOTIFICATION']._serialized_start=63595 + _globals['_CHANNELOPENFAILEDNOTIFICATION']._serialized_end=63646 + _globals['_STREAMCHANNELOPENEDREQUEST']._serialized_start=63648 + _globals['_STREAMCHANNELOPENEDREQUEST']._serialized_end=63676 + _globals['_CHANNELOPENEDNOTIFICATION']._serialized_start=63679 + _globals['_CHANNELOPENEDNOTIFICATION']._serialized_end=63810 + _globals['_STREAMCONNECTREQUEST']._serialized_start=63812 + _globals['_STREAMCONNECTREQUEST']._serialized_end=63834 + _globals['_CONNECTNOTIFICATION']._serialized_start=63837 + _globals['_CONNECTNOTIFICATION']._serialized_end=63986 + _globals['_CONNECTNOTIFICATION_CONNECTDIRECTION']._serialized_start=8580 + _globals['_CONNECTNOTIFICATION_CONNECTDIRECTION']._serialized_end=8615 + _globals['_STREAMCUSTOMMSGREQUEST']._serialized_start=63988 + _globals['_STREAMCUSTOMMSGREQUEST']._serialized_end=64012 + _globals['_CUSTOMMSGNOTIFICATION']._serialized_start=64014 + _globals['_CUSTOMMSGNOTIFICATION']._serialized_end=64071 + _globals['_NODE']._serialized_start=64074 + _globals['_NODE']._serialized_end=70693 # @@protoc_insertion_point(module_scope) From e1d68698bec134750c4acc26dba7fb215a08032f Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Tue, 13 Feb 2024 11:13:00 +0100 Subject: [PATCH 12/24] msggen: Add conversions for notification pb to json --- cln-grpc/src/convert.rs | 133 ++++++++++++++++++++++ contrib/msggen/msggen/gen/grpc/convert.py | 11 +- 2 files changed, 143 insertions(+), 1 deletion(-) diff --git a/cln-grpc/src/convert.rs b/cln-grpc/src/convert.rs index 2a48bb6ed5bb..45ec5e935f4e 100644 --- a/cln-grpc/src/convert.rs +++ b/cln-grpc/src/convert.rs @@ -6,6 +6,7 @@ use std::convert::From; #[allow(unused_imports)] use cln_rpc::model::{responses,requests}; +use cln_rpc::notifications; use crate::pb; use std::str::FromStr; use bitcoin::hashes::sha256::Hash as Sha256; @@ -2653,6 +2654,58 @@ impl From for pb::BkprlistincomeResponse { } } +#[allow(unused_variables)] +impl From for pb::BlockAddedNotification { + fn from(c: notifications::BlockAddedNotification) -> Self { + Self { + hash: >::as_ref(&c.hash).to_vec(), // Rule #2 for type hash + height: c.height, // Rule #2 for type u32 + } + } +} + +#[allow(unused_variables)] +impl From for pb::ChannelOpenFailedNotification { + fn from(c: notifications::ChannelOpenFailedNotification) -> Self { + Self { + channel_id: >::as_ref(&c.channel_id).to_vec(), // Rule #2 for type hash + } + } +} + +#[allow(unused_variables)] +impl From for pb::ChannelOpenedNotification { + fn from(c: notifications::ChannelOpenedNotification) -> Self { + Self { + channel_ready: c.channel_ready, // Rule #2 for type boolean + funding_msat: Some(c.funding_msat.into()), // Rule #2 for type msat + funding_txid: hex::decode(&c.funding_txid).unwrap(), // Rule #2 for type txid + id: c.id.map(|v| v.serialize().to_vec()), // Rule #2 for type pubkey? + } + } +} + +#[allow(unused_variables)] +impl From for pb::ConnectNotification { + fn from(c: notifications::ConnectNotification) -> Self { + Self { + address: c.address, // Rule #2 for type string + direction: c.direction as i32, + id: c.id.serialize().to_vec(), // Rule #2 for type pubkey + } + } +} + +#[allow(unused_variables)] +impl From for pb::CustomMsgNotification { + fn from(c: notifications::CustomMsgNotification) -> Self { + Self { + payload: hex::decode(&c.payload).unwrap(), // Rule #2 for type hex + peer_id: c.peer_id.serialize().to_vec(), // Rule #2 for type pubkey + } + } +} + #[allow(unused_variables)] impl From for pb::GetinfoRequest { fn from(c: requests::GetinfoRequest) -> Self { @@ -3842,6 +3895,46 @@ impl From for pb::BkprlistincomeRequest { } } +#[allow(unused_variables)] +impl From for pb::StreamBlockAddedRequest { + fn from(c: notifications::requests::StreamBlockAddedRequest) -> Self { + Self { + } + } +} + +#[allow(unused_variables)] +impl From for pb::StreamChannelOpenFailedRequest { + fn from(c: notifications::requests::StreamChannelOpenFailedRequest) -> Self { + Self { + } + } +} + +#[allow(unused_variables)] +impl From for pb::StreamChannelOpenedRequest { + fn from(c: notifications::requests::StreamChannelOpenedRequest) -> Self { + Self { + } + } +} + +#[allow(unused_variables)] +impl From for pb::StreamConnectRequest { + fn from(c: notifications::requests::StreamConnectRequest) -> Self { + Self { + } + } +} + +#[allow(unused_variables)] +impl From for pb::StreamCustomMsgRequest { + fn from(c: notifications::requests::StreamCustomMsgRequest) -> Self { + Self { + } + } +} + #[allow(unused_variables)] impl From for requests::GetinfoRequest { @@ -5008,3 +5101,43 @@ impl From for requests::BkprlistincomeRequest { } } +#[allow(unused_variables)] +impl From for notifications::requests::StreamBlockAddedRequest { + fn from(c: pb::StreamBlockAddedRequest) -> Self { + Self { + } + } +} + +#[allow(unused_variables)] +impl From for notifications::requests::StreamChannelOpenFailedRequest { + fn from(c: pb::StreamChannelOpenFailedRequest) -> Self { + Self { + } + } +} + +#[allow(unused_variables)] +impl From for notifications::requests::StreamChannelOpenedRequest { + fn from(c: pb::StreamChannelOpenedRequest) -> Self { + Self { + } + } +} + +#[allow(unused_variables)] +impl From for notifications::requests::StreamConnectRequest { + fn from(c: pb::StreamConnectRequest) -> Self { + Self { + } + } +} + +#[allow(unused_variables)] +impl From for notifications::requests::StreamCustomMsgRequest { + fn from(c: pb::StreamCustomMsgRequest) -> Self { + Self { + } + } +} + diff --git a/contrib/msggen/msggen/gen/grpc/convert.py b/contrib/msggen/msggen/gen/grpc/convert.py index 1cfe6a515c24..d693fcd9a284 100644 --- a/contrib/msggen/msggen/gen/grpc/convert.py +++ b/contrib/msggen/msggen/gen/grpc/convert.py @@ -157,11 +157,19 @@ def generate_requests(self, service: Service): req = meth.request self.generate_composite("requests", req) - def generate_responses(self, service): + for notification in service.notifications: + req = notification.request + self.generate_composite("notifications::requests", req) + + def generate_responses(self, service: Service): for meth in service.methods: res = meth.response self.generate_composite("responses", res) + for notification in service.notifications: + res = notification.response + self.generate_composite("notifications", res) + def generate(self, service: Service) -> None: self.write( """ @@ -172,6 +180,7 @@ def generate(self, service: Service) -> None: use std::convert::From; #[allow(unused_imports)] use cln_rpc::model::{responses,requests}; + use cln_rpc::notifications; use crate::pb; use std::str::FromStr; use bitcoin::hashes::sha256::Hash as Sha256; From 5098e420b6bf0b6d02b14a2e6feebe4d15a57079 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Thu, 8 Feb 2024 14:02:21 +0100 Subject: [PATCH 13/24] msggen: Add notifications to proto-file --- cln-grpc/proto/node.proto | 6 + contrib/msggen/msggen/gen/grpc/proto.py | 8 + contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py | 4 +- .../pyln/grpc/node_pb2_grpc.py | 165 ++++++++++++++++++ 4 files changed, 181 insertions(+), 2 deletions(-) diff --git a/cln-grpc/proto/node.proto b/cln-grpc/proto/node.proto index 0bfc229db5a6..c345e440833d 100644 --- a/cln-grpc/proto/node.proto +++ b/cln-grpc/proto/node.proto @@ -104,6 +104,12 @@ service Node { rpc BkprListAccountEvents(BkprlistaccounteventsRequest) returns (BkprlistaccounteventsResponse) {} rpc BkprListBalances(BkprlistbalancesRequest) returns (BkprlistbalancesResponse) {} rpc BkprListIncome(BkprlistincomeRequest) returns (BkprlistincomeResponse) {} + + rpc SubscribeBlockAdded(StreamBlockAddedRequest) returns (stream BlockAddedNotification) {} + rpc SubscribeChannelOpenFailed(StreamChannelOpenFailedRequest) returns (stream ChannelOpenFailedNotification) {} + rpc SubscribeChannelOpened(StreamChannelOpenedRequest) returns (stream ChannelOpenedNotification) {} + rpc SubscribeConnect(StreamConnectRequest) returns (stream ConnectNotification) {} + rpc SubscribeCustomMsg(StreamCustomMsgRequest) returns (stream CustomMsgNotification) {} } message GetinfoRequest { diff --git a/contrib/msggen/msggen/gen/grpc/proto.py b/contrib/msggen/msggen/gen/grpc/proto.py index fb52e63a48ad..9594631f78fe 100644 --- a/contrib/msggen/msggen/gen/grpc/proto.py +++ b/contrib/msggen/msggen/gen/grpc/proto.py @@ -147,6 +147,14 @@ def generate_service(self, service: Service) -> None: cleanup=False, ) + self.write("\n") + for notification in service.notifications: + name = str(notification.typename) + self.write( + f" rpc Subscribe{name}({notification.request.typename}) returns (stream {notification.response.typename}) {{}}\n", + cleanup=False, + ) + self.write( f"""}} """ diff --git a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py index cfea4dc0b0b1..8deb24c181f3 100644 --- a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py +++ b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py @@ -14,7 +14,7 @@ from pyln.grpc import primitives_pb2 as primitives__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nnode.proto\x12\x03\x63ln\x1a\x10primitives.proto\"\x10\n\x0eGetinfoRequest\"\xc1\x04\n\x0fGetinfoResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x61lias\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\r\n\x05\x63olor\x18\x03 \x01(\x0c\x12\x11\n\tnum_peers\x18\x04 \x01(\r\x12\x1c\n\x14num_pending_channels\x18\x05 \x01(\r\x12\x1b\n\x13num_active_channels\x18\x06 \x01(\r\x12\x1d\n\x15num_inactive_channels\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\t\x12\x15\n\rlightning_dir\x18\t \x01(\t\x12\x33\n\x0cour_features\x18\n \x01(\x0b\x32\x18.cln.GetinfoOur_featuresH\x01\x88\x01\x01\x12\x13\n\x0b\x62lockheight\x18\x0b \x01(\r\x12\x0f\n\x07network\x18\x0c \x01(\t\x12(\n\x13\x66\x65\x65s_collected_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x07\x61\x64\x64ress\x18\x0e \x03(\x0b\x32\x13.cln.GetinfoAddress\x12$\n\x07\x62inding\x18\x0f \x03(\x0b\x32\x13.cln.GetinfoBinding\x12\"\n\x15warning_bitcoind_sync\x18\x10 \x01(\tH\x02\x88\x01\x01\x12$\n\x17warning_lightningd_sync\x18\x11 \x01(\tH\x03\x88\x01\x01\x42\x08\n\x06_aliasB\x0f\n\r_our_featuresB\x18\n\x16_warning_bitcoind_syncB\x1a\n\x18_warning_lightningd_sync\"S\n\x13GetinfoOur_features\x12\x0c\n\x04init\x18\x01 \x01(\x0c\x12\x0c\n\x04node\x18\x02 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x03 \x01(\x0c\x12\x0f\n\x07invoice\x18\x04 \x01(\x0c\"\xc4\x01\n\x0eGetinfoAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoAddress.GetinfoAddressType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"G\n\x12GetinfoAddressType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"\xac\x02\n\x0eGetinfoBinding\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoBinding.GetinfoBindingType\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06socket\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x14\n\x07subtype\x18\x05 \x01(\tH\x03\x88\x01\x01\"_\n\x12GetinfoBindingType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x12\r\n\tWEBSOCKET\x10\x05\x42\n\n\x08_addressB\x07\n\x05_portB\t\n\x07_socketB\n\n\x08_subtype\"\xb5\x01\n\x10ListpeersRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x38\n\x05level\x18\x02 \x01(\x0e\x32$.cln.ListpeersRequest.ListpeersLevelH\x01\x88\x01\x01\"E\n\x0eListpeersLevel\x12\x06\n\x02IO\x10\x00\x12\t\n\x05\x44\x45\x42UG\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\x0b\n\x07UNUSUAL\x10\x03\x12\t\n\x05TRACE\x10\x04\x42\x05\n\x03_idB\x08\n\x06_level\"7\n\x11ListpeersResponse\x12\"\n\x05peers\x18\x01 \x03(\x0b\x32\x13.cln.ListpeersPeers\"\xdf\x01\n\x0eListpeersPeers\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x11\n\tconnected\x18\x02 \x01(\x08\x12#\n\x03log\x18\x03 \x03(\x0b\x32\x16.cln.ListpeersPeersLog\x12\x0f\n\x07netaddr\x18\x05 \x03(\t\x12\x15\n\x08\x66\x65\x61tures\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0bremote_addr\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cnum_channels\x18\x08 \x01(\rH\x02\x88\x01\x01\x42\x0b\n\t_featuresB\x0e\n\x0c_remote_addrB\x0f\n\r_num_channels\"\x88\x03\n\x11ListpeersPeersLog\x12?\n\titem_type\x18\x01 \x01(\x0e\x32,.cln.ListpeersPeersLog.ListpeersPeersLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"t\n\x15ListpeersPeersLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"0\n\x10ListfundsRequest\x12\x12\n\x05spent\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_spent\"e\n\x11ListfundsResponse\x12&\n\x07outputs\x18\x01 \x03(\x0b\x32\x15.cln.ListfundsOutputs\x12(\n\x08\x63hannels\x18\x02 \x03(\x0b\x32\x16.cln.ListfundsChannels\"\xb9\x03\n\x10ListfundsOutputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06output\x18\x02 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0cscriptpubkey\x18\x04 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0credeemscript\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12<\n\x06status\x18\x07 \x01(\x0e\x32,.cln.ListfundsOutputs.ListfundsOutputsStatus\x12\x18\n\x0b\x62lockheight\x18\x08 \x01(\rH\x02\x88\x01\x01\x12\x10\n\x08reserved\x18\t \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\n \x01(\rH\x03\x88\x01\x01\"Q\n\x16ListfundsOutputsStatus\x12\x0f\n\x0bUNCONFIRMED\x10\x00\x12\r\n\tCONFIRMED\x10\x01\x12\t\n\x05SPENT\x10\x02\x12\x0c\n\x08IMMATURE\x10\x03\x42\n\n\x08_addressB\x0f\n\r_redeemscriptB\x0e\n\x0c_blockheightB\x14\n\x12_reserved_to_block\"\xab\x02\n\x11ListfundsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12$\n\x0four_amount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x04 \x01(\x0c\x12\x16\n\x0e\x66unding_output\x18\x05 \x01(\r\x12\x11\n\tconnected\x18\x06 \x01(\x08\x12 \n\x05state\x18\x07 \x01(\x0e\x32\x11.cln.ChannelState\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x01\x88\x01\x01\x42\x13\n\x11_short_channel_idB\r\n\x0b_channel_id\"\xbb\x03\n\x0eSendpayRequest\x12 \n\x05route\x18\x01 \x03(\x0b\x32\x11.cln.SendpayRoute\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x13\n\x06partid\x18\x07 \x01(\x04H\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\t \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x0c \x01(\x0cH\x07\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x08\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_bolt11B\x11\n\x0f_payment_secretB\t\n\x07_partidB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x13\n\x11_payment_metadataB\x0e\n\x0c_description\"\xad\x05\n\x0fSendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x32\n\x06status\x18\x04 \x01(\x0e\x32\".cln.SendpayResponse.SendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x14\n\x07message\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\"*\n\rSendpayStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\\\n\x0cSendpayRoute\x12\n\n\x02id\x18\x02 \x01(\x0c\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\x12\x0f\n\x07\x63hannel\x18\x04 \x01(\t\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x01\n\x13ListchannelsRequest\x12\x1d\n\x10short_channel_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06source\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x42\x13\n\x11_short_channel_idB\t\n\x07_sourceB\x0e\n\x0c_destination\"C\n\x14ListchannelsResponse\x12+\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x19.cln.ListchannelsChannels\"\xb3\x03\n\x14ListchannelsChannels\x12\x0e\n\x06source\x18\x01 \x01(\x0c\x12\x13\n\x0b\x64\x65stination\x18\x02 \x01(\x0c\x12\x18\n\x10short_channel_id\x18\x03 \x01(\t\x12\x0e\n\x06public\x18\x04 \x01(\x08\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x15\n\rmessage_flags\x18\x06 \x01(\r\x12\x15\n\rchannel_flags\x18\x07 \x01(\r\x12\x0e\n\x06\x61\x63tive\x18\x08 \x01(\x08\x12\x13\n\x0blast_update\x18\t \x01(\r\x12\x1d\n\x15\x62\x61se_fee_millisatoshi\x18\n \x01(\r\x12\x19\n\x11\x66\x65\x65_per_millionth\x18\x0b \x01(\r\x12\r\n\x05\x64\x65lay\x18\x0c \x01(\r\x12&\n\x11htlc_minimum_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x11htlc_maximum_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x10\n\x08\x66\x65\x61tures\x18\x0f \x01(\x0c\x12\x11\n\tdirection\x18\x10 \x01(\rB\x14\n\x12_htlc_maximum_msat\"#\n\x10\x41\x64\x64gossipRequest\x12\x0f\n\x07message\x18\x01 \x01(\x0c\"\x13\n\x11\x41\x64\x64gossipResponse\"o\n\x17\x41utocleaninvoiceRequest\x12\x17\n\nexpired_by\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"\x81\x01\n\x18\x41utocleaninvoiceResponse\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x17\n\nexpired_by\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x03 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"O\n\x14\x41utocleanonceRequest\x12*\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystem\x12\x0b\n\x03\x61ge\x18\x02 \x01(\x04\"G\n\x15\x41utocleanonceResponse\x12.\n\tautoclean\x18\x01 \x01(\x0b\x32\x1b.cln.AutocleanonceAutoclean\"\xb1\x04\n\x16\x41utocleanonceAutoclean\x12L\n\x11succeededforwards\x18\x01 \x01(\x0b\x32,.cln.AutocleanonceAutocleanSucceededforwardsH\x00\x88\x01\x01\x12\x46\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32).cln.AutocleanonceAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x44\n\rsucceededpays\x18\x03 \x01(\x0b\x32(.cln.AutocleanonceAutocleanSucceededpaysH\x02\x88\x01\x01\x12>\n\nfailedpays\x18\x04 \x01(\x0b\x32%.cln.AutocleanonceAutocleanFailedpaysH\x03\x88\x01\x01\x12\x42\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32\'.cln.AutocleanonceAutocleanPaidinvoicesH\x04\x88\x01\x01\x12H\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32*.cln.AutocleanonceAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"M\n\'AutocleanonceAutocleanSucceededforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"J\n$AutocleanonceAutocleanFailedforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"I\n#AutocleanonceAutocleanSucceededpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"F\n AutocleanonceAutocleanFailedpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"H\n\"AutocleanonceAutocleanPaidinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"K\n%AutocleanonceAutocleanExpiredinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"W\n\x16\x41utocleanstatusRequest\x12/\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystemH\x00\x88\x01\x01\x42\x0c\n\n_subsystem\"K\n\x17\x41utocleanstatusResponse\x12\x30\n\tautoclean\x18\x01 \x01(\x0b\x32\x1d.cln.AutocleanstatusAutoclean\"\xbf\x04\n\x18\x41utocleanstatusAutoclean\x12N\n\x11succeededforwards\x18\x01 \x01(\x0b\x32..cln.AutocleanstatusAutocleanSucceededforwardsH\x00\x88\x01\x01\x12H\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32+.cln.AutocleanstatusAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x46\n\rsucceededpays\x18\x03 \x01(\x0b\x32*.cln.AutocleanstatusAutocleanSucceededpaysH\x02\x88\x01\x01\x12@\n\nfailedpays\x18\x04 \x01(\x0b\x32\'.cln.AutocleanstatusAutocleanFailedpaysH\x03\x88\x01\x01\x12\x44\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32).cln.AutocleanstatusAutocleanPaidinvoicesH\x04\x88\x01\x01\x12J\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32,.cln.AutocleanstatusAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"g\n)AutocleanstatusAutocleanSucceededforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"d\n&AutocleanstatusAutocleanFailedforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"c\n%AutocleanstatusAutocleanSucceededpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"`\n\"AutocleanstatusAutocleanFailedpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"b\n$AutocleanstatusAutocleanPaidinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"e\n\'AutocleanstatusAutocleanExpiredinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"U\n\x13\x43heckmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\r\n\x05zbase\x18\x02 \x01(\t\x12\x13\n\x06pubkey\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x42\t\n\x07_pubkey\"8\n\x14\x43heckmessageResponse\x12\x10\n\x08verified\x18\x01 \x01(\x08\x12\x0e\n\x06pubkey\x18\x02 \x01(\x0c\"\xcb\x02\n\x0c\x43loseRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x11unilateraltimeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x66\x65\x65_negotiation_step\x18\x04 \x01(\tH\x02\x88\x01\x01\x12)\n\rwrong_funding\x18\x05 \x01(\x0b\x32\r.cln.OutpointH\x03\x88\x01\x01\x12\x1f\n\x12\x66orce_lease_closed\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1e\n\x08\x66\x65\x65range\x18\x07 \x03(\x0b\x32\x0c.cln.FeerateB\x14\n\x12_unilateraltimeoutB\x0e\n\x0c_destinationB\x17\n\x15_fee_negotiation_stepB\x10\n\x0e_wrong_fundingB\x15\n\x13_force_lease_closed\"\xab\x01\n\rCloseResponse\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.CloseResponse.CloseType\x12\x0f\n\x02tx\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04txid\x18\x03 \x01(\x0cH\x01\x88\x01\x01\"5\n\tCloseType\x12\n\n\x06MUTUAL\x10\x00\x12\x0e\n\nUNILATERAL\x10\x01\x12\x0c\n\x08UNOPENED\x10\x02\x42\x05\n\x03_txB\x07\n\x05_txid\"T\n\x0e\x43onnectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04host\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x07\n\x05_hostB\x07\n\x05_port\"\xb4\x01\n\x0f\x43onnectResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0c\x12\x38\n\tdirection\x18\x03 \x01(\x0e\x32%.cln.ConnectResponse.ConnectDirection\x12$\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x13.cln.ConnectAddress\"#\n\x10\x43onnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\xfb\x01\n\x0e\x43onnectAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.ConnectAddress.ConnectAddressType\x12\x13\n\x06socket\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04port\x18\x04 \x01(\rH\x02\x88\x01\x01\"P\n\x12\x43onnectAddressType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\t\n\x07_socketB\n\n\x08_addressB\x07\n\x05_port\"J\n\x14\x43reateinvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x10\n\x08preimage\x18\x03 \x01(\x0c\"\xfe\x05\n\x15\x43reateinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12>\n\x06status\x18\x06 \x01(\x0e\x32..cln.CreateinvoiceResponse.CreateinvoiceStatus\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12;\n\rpaid_outpoint\x18\x11 \x01(\x0b\x32\x1f.cln.CreateinvoicePaid_outpointH\n\x88\x01\x01\"8\n\x13\x43reateinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_paid_outpoint\":\n\x1a\x43reateinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x02\n\x10\x44\x61tastoreRequest\x12\x10\n\x03hex\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x36\n\x04mode\x18\x03 \x01(\x0e\x32#.cln.DatastoreRequest.DatastoreModeH\x01\x88\x01\x01\x12\x17\n\ngeneration\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\t\x12\x13\n\x06string\x18\x06 \x01(\tH\x03\x88\x01\x01\"p\n\rDatastoreMode\x12\x0f\n\x0bMUST_CREATE\x10\x00\x12\x10\n\x0cMUST_REPLACE\x10\x01\x12\x15\n\x11\x43REATE_OR_REPLACE\x10\x02\x12\x0f\n\x0bMUST_APPEND\x10\x03\x12\x14\n\x10\x43REATE_OR_APPEND\x10\x04\x42\x06\n\x04_hexB\x07\n\x05_modeB\r\n\x0b_generationB\t\n\x07_string\"\x82\x01\n\x11\x44\x61tastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"$\n\x15\x44\x61tastoreusageRequest\x12\x0b\n\x03key\x18\x01 \x03(\t\"S\n\x16\x44\x61tastoreusageResponse\x12\x39\n\x0e\x64\x61tastoreusage\x18\x01 \x01(\x0b\x32!.cln.DatastoreusageDatastoreusage\"@\n\x1c\x44\x61tastoreusageDatastoreusage\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x13\n\x0btotal_bytes\x18\x02 \x01(\x04\"\x9d\x01\n\x12\x43reateonionRequest\x12\"\n\x04hops\x18\x01 \x03(\x0b\x32\x14.cln.CreateonionHops\x12\x11\n\tassocdata\x18\x02 \x01(\x0c\x12\x18\n\x0bsession_key\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x17\n\nonion_size\x18\x04 \x01(\rH\x01\x88\x01\x01\x42\x0e\n\x0c_session_keyB\r\n\x0b_onion_size\"<\n\x13\x43reateonionResponse\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12\x16\n\x0eshared_secrets\x18\x02 \x03(\x0c\"2\n\x0f\x43reateonionHops\x12\x0e\n\x06pubkey\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\"J\n\x13\x44\x65ldatastoreRequest\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x03 \x03(\tB\r\n\x0b_generation\"\x85\x01\n\x14\x44\x65ldatastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xb6\x01\n\x11\x44\x65linvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\x12\x37\n\x06status\x18\x02 \x01(\x0e\x32\'.cln.DelinvoiceRequest.DelinvoiceStatus\x12\x15\n\x08\x64\x65sconly\x18\x03 \x01(\x08H\x00\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\x0b\n\t_desconly\"\xe6\x05\n\x12\x44\x65linvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x38\n\x06status\x18\x07 \x01(\x0e\x32(.cln.DelinvoiceResponse.DelinvoiceStatus\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x16\n\tpay_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\t\x88\x01\x01\x12\x14\n\x07paid_at\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"\xfa\x01\n\x0eInvoiceRequest\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tfallbacks\x18\x04 \x03(\t\x12\x15\n\x08preimage\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04\x63ltv\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18\x07 \x01(\x04H\x02\x88\x01\x01\x12\x19\n\x0c\x64\x65schashonly\x18\t \x01(\x08H\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x10.cln.AmountOrAnyB\x0b\n\t_preimageB\x07\n\x05_cltvB\t\n\x07_expiryB\x0f\n\r_deschashonly\"\x95\x03\n\x0fInvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x16\n\x0epayment_secret\x18\x03 \x01(\x0c\x12\x12\n\nexpires_at\x18\x04 \x01(\x04\x12\x1d\n\x10warning_capacity\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0fwarning_offline\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10warning_deadends\x18\x07 \x01(\tH\x02\x88\x01\x01\x12#\n\x16warning_private_unused\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x18\n\x0bwarning_mpp\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rcreated_index\x18\n \x01(\x04H\x05\x88\x01\x01\x42\x13\n\x11_warning_capacityB\x12\n\x10_warning_offlineB\x13\n\x11_warning_deadendsB\x19\n\x17_warning_private_unusedB\x0e\n\x0c_warning_mppB\x10\n\x0e_created_index\"#\n\x14ListdatastoreRequest\x12\x0b\n\x03key\x18\x02 \x03(\t\"G\n\x15ListdatastoreResponse\x12.\n\tdatastore\x18\x01 \x03(\x0b\x32\x1b.cln.ListdatastoreDatastore\"\x87\x01\n\x16ListdatastoreDatastore\x12\x0b\n\x03key\x18\x01 \x03(\t\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xde\x02\n\x13ListinvoicesRequest\x12\x12\n\x05label\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tinvstring\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08offer_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x12>\n\x05index\x18\x05 \x01(\x0e\x32*.cln.ListinvoicesRequest.ListinvoicesIndexH\x04\x88\x01\x01\x12\x12\n\x05start\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x12\n\x05limit\x18\x07 \x01(\rH\x06\x88\x01\x01\"-\n\x11ListinvoicesIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\x08\n\x06_labelB\x0c\n\n_invstringB\x0f\n\r_payment_hashB\x0b\n\t_offer_idB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListinvoicesResponse\x12+\n\x08invoices\x18\x01 \x03(\x0b\x32\x19.cln.ListinvoicesInvoices\"\xd4\x06\n\x14ListinvoicesInvoices\x12\r\n\x05label\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListinvoicesInvoices.ListinvoicesInvoicesStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x16\n\tpay_index\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x14\n\x07paid_at\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0e \x01(\x0cH\x08\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\x12\x42\n\rpaid_outpoint\x18\x12 \x01(\x0b\x32&.cln.ListinvoicesInvoicesPaid_outpointH\x0c\x88\x01\x01\"?\n\x1aListinvoicesInvoicesStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x11\n\x0f_local_offer_idB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"A\n!ListinvoicesInvoicesPaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x03\n\x10SendonionRequest\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12*\n\tfirst_hop\x18\x02 \x01(\x0b\x32\x17.cln.SendonionFirst_hop\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\x05label\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0eshared_secrets\x18\x05 \x03(\x0c\x12\x13\n\x06partid\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\t \x01(\x0cH\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\x0b \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\x0e\n\x0c_destinationB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0e\n\x0c_description\"\xe7\x04\n\x11SendonionResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x36\n\x06status\x18\x03 \x01(\x0e\x32&.cln.SendonionResponse.SendonionStatus\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x06 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\n \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0b \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x07message\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x13\n\x06partid\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\",\n\x0fSendonionStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"Q\n\x12SendonionFirst_hop\x12\n\n\x02id\x18\x01 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\"\xa0\x03\n\x13ListsendpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12@\n\x06status\x18\x03 \x01(\x0e\x32+.cln.ListsendpaysRequest.ListsendpaysStatusH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListsendpaysRequest.ListsendpaysIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\";\n\x12ListsendpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"-\n\x11ListsendpaysIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_statusB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListsendpaysResponse\x12+\n\x08payments\x18\x01 \x03(\x0b\x32\x19.cln.ListsendpaysPayments\"\xfc\x05\n\x14ListsendpaysPayments\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0f\n\x07groupid\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListsendpaysPayments.ListsendpaysPaymentsStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\n \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x12\x13\n\x06partid\x18\x0f \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\n\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x12 \x01(\x04H\x0b\x88\x01\x01\"C\n\x1aListsendpaysPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0f\n\r_completed_at\"\x19\n\x17ListtransactionsRequest\"S\n\x18ListtransactionsResponse\x12\x37\n\x0ctransactions\x18\x01 \x03(\x0b\x32!.cln.ListtransactionsTransactions\"\xf8\x01\n\x1cListtransactionsTransactions\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\r\n\x05rawtx\x18\x02 \x01(\x0c\x12\x13\n\x0b\x62lockheight\x18\x03 \x01(\r\x12\x0f\n\x07txindex\x18\x04 \x01(\r\x12\x10\n\x08locktime\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\r\x12\x37\n\x06inputs\x18\t \x03(\x0b\x32\'.cln.ListtransactionsTransactionsInputs\x12\x39\n\x07outputs\x18\n \x03(\x0b\x32(.cln.ListtransactionsTransactionsOutputs\"S\n\"ListtransactionsTransactionsInputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\r\n\x05index\x18\x02 \x01(\r\x12\x10\n\x08sequence\x18\x03 \x01(\r\"l\n#ListtransactionsTransactionsOutputs\x12\r\n\x05index\x18\x01 \x01(\r\x12\x14\n\x0cscriptPubKey\x18\x03 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x04\n\nPayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x17\n\nriskfactor\x18\x08 \x01(\x01H\x05\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\n \x03(\t\x12 \n\x06maxfee\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0c \x01(\tH\x07\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0e \x01(\x0cH\t\x88\x01\x01\x12&\n\x0cpartial_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x42\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_riskfactorB\t\n\x07_maxfeeB\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0f\n\r_partial_msat\"\xfb\x02\n\x0bPayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12*\n\x06status\x18\t \x01(\x0e\x32\x1a.cln.PayResponse.PayStatus\"2\n\tPayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"*\n\x10ListnodesRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListnodesResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.cln.ListnodesNodes\"\xba\x02\n\x0eListnodesNodes\x12\x0e\n\x06nodeid\x18\x01 \x01(\x0c\x12\x1b\n\x0elast_timestamp\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x12\n\x05\x61lias\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x12\n\x05\x63olor\x18\x04 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x05 \x01(\x0cH\x03\x88\x01\x01\x12/\n\taddresses\x18\x06 \x03(\x0b\x32\x1c.cln.ListnodesNodesAddresses\x12\x42\n\x10option_will_fund\x18\x07 \x01(\x0b\x32#.cln.ListnodesNodesOption_will_fundH\x04\x88\x01\x01\x42\x11\n\x0f_last_timestampB\x08\n\x06_aliasB\x08\n\x06_colorB\x0b\n\t_featuresB\x13\n\x11_option_will_fund\"\xf4\x01\n\x1eListnodesNodesOption_will_fund\x12(\n\x13lease_fee_base_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x17\n\x0flease_fee_basis\x18\x02 \x01(\r\x12\x16\n\x0e\x66unding_weight\x18\x03 \x01(\r\x12.\n\x19\x63hannel_fee_max_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x30\n(channel_fee_max_proportional_thousandths\x18\x05 \x01(\r\x12\x15\n\rcompact_lease\x18\x06 \x01(\x0c\"\xe8\x01\n\x17ListnodesNodesAddresses\x12K\n\titem_type\x18\x01 \x01(\x0e\x32\x38.cln.ListnodesNodesAddresses.ListnodesNodesAddressesType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"P\n\x1bListnodesNodesAddressesType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"g\n\x15WaitanyinvoiceRequest\x12\x1a\n\rlastpay_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\x10\n\x0e_lastpay_indexB\n\n\x08_timeout\"\xbf\x05\n\x16WaitanyinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12@\n\x06status\x18\x04 \x01(\x0e\x32\x30.cln.WaitanyinvoiceResponse.WaitanyinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12<\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32 .cln.WaitanyinvoicePaid_outpointH\t\x88\x01\x01\"-\n\x14WaitanyinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\";\n\x1bWaitanyinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"#\n\x12WaitinvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\"\xb0\x05\n\x13WaitinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitinvoiceResponse.WaitinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x39\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32\x1d.cln.WaitinvoicePaid_outpointH\t\x88\x01\x01\"*\n\x11WaitinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"8\n\x18WaitinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\x8e\x01\n\x12WaitsendpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x13\n\x06partid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x02\x88\x01\x01\x42\t\n\x07_partidB\n\n\x08_timeoutB\n\n\x08_groupid\"\x8e\x05\n\x13WaitsendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitsendpayResponse.WaitsendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\"!\n\x11WaitsendpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\x97\x01\n\x0eNewaddrRequest\x12@\n\x0b\x61\x64\x64resstype\x18\x01 \x01(\x0e\x32&.cln.NewaddrRequest.NewaddrAddresstypeH\x00\x88\x01\x01\"3\n\x12NewaddrAddresstype\x12\n\n\x06\x42\x45\x43H32\x10\x00\x12\x07\n\x03\x41LL\x10\x02\x12\x08\n\x04P2TR\x10\x03\x42\x0e\n\x0c_addresstype\"M\n\x0fNewaddrResponse\x12\x13\n\x06\x62\x65\x63h32\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04p2tr\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\t\n\x07_bech32B\x07\n\x05_p2tr\"\xb9\x01\n\x0fWithdrawRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\t\x12!\n\x07satoshi\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\"\n\x07\x66\x65\x65rate\x18\x05 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_feerate\":\n\x10WithdrawResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0c\n\x04psbt\x18\x03 \x01(\t\"\x82\x03\n\x0eKeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12+\n\nroutehints\x18\x08 \x01(\x0b\x32\x12.cln.RoutehintListH\x05\x88\x01\x01\x12&\n\textratlvs\x18\t \x01(\x0b\x32\x0e.cln.TlvStreamH\x06\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_routehintsB\x0c\n\n_extratlvs\"\xf2\x02\n\x0fKeysendResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x32\n\x06status\x18\t \x01(\x0e\x32\".cln.KeysendResponse.KeysendStatus\"\x1d\n\rKeysendStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"\xa4\x03\n\x0f\x46undpsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x14\n\x07minconf\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\x08 \x01(\x08H\x04\x88\x01\x01\x12\x17\n\nnonwrapped\x18\t \x01(\x08H\x05\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x06\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\x13\n\x11_excess_as_changeB\r\n\x0b_nonwrappedB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10\x46undpsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.FundpsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14\x46undpsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"A\n\x0fSendpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\",\n\x10SendpsbtResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"1\n\x0fSignpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x10\n\x08signonly\x18\x02 \x03(\r\"\'\n\x10SignpsbtResponse\x12\x13\n\x0bsigned_psbt\x18\x01 \x01(\t\"\xa0\x03\n\x0fUtxopsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x00\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x02\x88\x01\x01\x12\x17\n\nreservedok\x18\x08 \x01(\x08H\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\t \x01(\x08H\x04\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\r\n\x0b_reservedokB\x13\n\x11_excess_as_changeB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10UtxopsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.UtxopsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14UtxopsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\" \n\x10TxdiscardRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"6\n\x11TxdiscardResponse\x12\x13\n\x0bunsigned_tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"\xa4\x01\n\x10TxprepareRequest\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12 \n\x07outputs\x18\x05 \x03(\x0b\x32\x0f.cln.OutputDescB\n\n\x08_feerateB\n\n\x08_minconf\"D\n\x11TxprepareResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x13\n\x0bunsigned_tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"\x1d\n\rTxsendRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"8\n\x0eTxsendResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"1\n\x17ListpeerchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"K\n\x18ListpeerchannelsResponse\x12/\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x1d.cln.ListpeerchannelsChannels\"\xd7\x1b\n\x18ListpeerchannelsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x16\n\x0epeer_connected\x18\x02 \x01(\x08\x12J\n\x05state\x18\x03 \x01(\x0e\x32;.cln.ListpeerchannelsChannels.ListpeerchannelsChannelsState\x12\x19\n\x0cscratch_txid\x18\x04 \x01(\x0cH\x00\x88\x01\x01\x12:\n\x07\x66\x65\x65rate\x18\x06 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFeerateH\x01\x88\x01\x01\x12\x12\n\x05owner\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x19\n\x0c\x66unding_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x1b\n\x0e\x66unding_outnum\x18\x0b \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x0finitial_feerate\x18\x0c \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0clast_feerate\x18\r \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0cnext_feerate\x18\x0e \x01(\tH\t\x88\x01\x01\x12\x1a\n\rnext_fee_step\x18\x0f \x01(\rH\n\x88\x01\x01\x12\x37\n\x08inflight\x18\x10 \x03(\x0b\x32%.cln.ListpeerchannelsChannelsInflight\x12\x15\n\x08\x63lose_to\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\x12\x14\n\x07private\x18\x12 \x01(\x08H\x0c\x88\x01\x01\x12 \n\x06opener\x18\x13 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x14 \x01(\x0e\x32\x10.cln.ChannelSideH\r\x88\x01\x01\x12:\n\x07\x66unding\x18\x16 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFundingH\x0e\x88\x01\x01\x12$\n\nto_us_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x0f\x88\x01\x01\x12(\n\x0emin_to_us_msat\x18\x18 \x01(\x0b\x32\x0b.cln.AmountH\x10\x88\x01\x01\x12(\n\x0emax_to_us_msat\x18\x19 \x01(\x0b\x32\x0b.cln.AmountH\x11\x88\x01\x01\x12$\n\ntotal_msat\x18\x1a \x01(\x0b\x32\x0b.cln.AmountH\x12\x88\x01\x01\x12\'\n\rfee_base_msat\x18\x1b \x01(\x0b\x32\x0b.cln.AmountH\x13\x88\x01\x01\x12(\n\x1b\x66\x65\x65_proportional_millionths\x18\x1c \x01(\rH\x14\x88\x01\x01\x12)\n\x0f\x64ust_limit_msat\x18\x1d \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x30\n\x16max_total_htlc_in_msat\x18\x1e \x01(\x0b\x32\x0b.cln.AmountH\x16\x88\x01\x01\x12,\n\x12their_reserve_msat\x18\x1f \x01(\x0b\x32\x0b.cln.AmountH\x17\x88\x01\x01\x12*\n\x10our_reserve_msat\x18 \x01(\x0b\x32\x0b.cln.AmountH\x18\x88\x01\x01\x12(\n\x0espendable_msat\x18! \x01(\x0b\x32\x0b.cln.AmountH\x19\x88\x01\x01\x12)\n\x0freceivable_msat\x18\" \x01(\x0b\x32\x0b.cln.AmountH\x1a\x88\x01\x01\x12.\n\x14minimum_htlc_in_msat\x18# \x01(\x0b\x32\x0b.cln.AmountH\x1b\x88\x01\x01\x12/\n\x15minimum_htlc_out_msat\x18$ \x01(\x0b\x32\x0b.cln.AmountH\x1c\x88\x01\x01\x12/\n\x15maximum_htlc_out_msat\x18% \x01(\x0b\x32\x0b.cln.AmountH\x1d\x88\x01\x01\x12 \n\x13their_to_self_delay\x18& \x01(\rH\x1e\x88\x01\x01\x12\x1e\n\x11our_to_self_delay\x18\' \x01(\rH\x1f\x88\x01\x01\x12\x1f\n\x12max_accepted_htlcs\x18( \x01(\rH \x88\x01\x01\x12\x36\n\x05\x61lias\x18) \x01(\x0b\x32\".cln.ListpeerchannelsChannelsAliasH!\x88\x01\x01\x12\x0e\n\x06status\x18+ \x03(\t\x12 \n\x13in_payments_offered\x18, \x01(\x04H\"\x88\x01\x01\x12)\n\x0fin_offered_msat\x18- \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\"\n\x15in_payments_fulfilled\x18. \x01(\x04H$\x88\x01\x01\x12+\n\x11in_fulfilled_msat\x18/ \x01(\x0b\x32\x0b.cln.AmountH%\x88\x01\x01\x12!\n\x14out_payments_offered\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x10out_offered_msat\x18\x31 \x01(\x0b\x32\x0b.cln.AmountH\'\x88\x01\x01\x12#\n\x16out_payments_fulfilled\x18\x32 \x01(\x04H(\x88\x01\x01\x12,\n\x12out_fulfilled_msat\x18\x33 \x01(\x0b\x32\x0b.cln.AmountH)\x88\x01\x01\x12\x31\n\x05htlcs\x18\x34 \x03(\x0b\x32\".cln.ListpeerchannelsChannelsHtlcs\x12\x1a\n\rclose_to_addr\x18\x35 \x01(\tH*\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\x36 \x01(\x08H+\x88\x01\x01\x12:\n\x07updates\x18\x37 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsUpdatesH,\x88\x01\x01\x12#\n\x16last_stable_connection\x18\x38 \x01(\x04H-\x88\x01\x01\x12\x17\n\nlost_state\x18\x39 \x01(\x08H.\x88\x01\x01\x12\x1a\n\rreestablished\x18: \x01(\x08H/\x88\x01\x01\x12*\n\x10last_tx_fee_msat\x18; \x01(\x0b\x32\x0b.cln.AmountH0\x88\x01\x01\x12\x16\n\tdirection\x18< \x01(\rH1\x88\x01\x01\"\x80\x03\n\x1dListpeerchannelsChannelsState\x12\x0c\n\x08OPENINGD\x10\x00\x12\x1c\n\x18\x43HANNELD_AWAITING_LOCKIN\x10\x01\x12\x13\n\x0f\x43HANNELD_NORMAL\x10\x02\x12\x1a\n\x16\x43HANNELD_SHUTTING_DOWN\x10\x03\x12\x18\n\x14\x43LOSINGD_SIGEXCHANGE\x10\x04\x12\x15\n\x11\x43LOSINGD_COMPLETE\x10\x05\x12\x17\n\x13\x41WAITING_UNILATERAL\x10\x06\x12\x16\n\x12\x46UNDING_SPEND_SEEN\x10\x07\x12\x0b\n\x07ONCHAIN\x10\x08\x12\x17\n\x13\x44UALOPEND_OPEN_INIT\x10\t\x12\x1d\n\x19\x44UALOPEND_AWAITING_LOCKIN\x10\n\x12\x1c\n\x18\x43HANNELD_AWAITING_SPLICE\x10\x0b\x12\x1c\n\x18\x44UALOPEND_OPEN_COMMITTED\x10\x0c\x12\x1f\n\x1b\x44UALOPEND_OPEN_COMMIT_READY\x10\rB\x0f\n\r_scratch_txidB\n\n\x08_feerateB\x08\n\x06_ownerB\x13\n\x11_short_channel_idB\r\n\x0b_channel_idB\x0f\n\r_funding_txidB\x11\n\x0f_funding_outnumB\x12\n\x10_initial_feerateB\x0f\n\r_last_feerateB\x0f\n\r_next_feerateB\x10\n\x0e_next_fee_stepB\x0b\n\t_close_toB\n\n\x08_privateB\t\n\x07_closerB\n\n\x08_fundingB\r\n\x0b_to_us_msatB\x11\n\x0f_min_to_us_msatB\x11\n\x0f_max_to_us_msatB\r\n\x0b_total_msatB\x10\n\x0e_fee_base_msatB\x1e\n\x1c_fee_proportional_millionthsB\x12\n\x10_dust_limit_msatB\x19\n\x17_max_total_htlc_in_msatB\x15\n\x13_their_reserve_msatB\x13\n\x11_our_reserve_msatB\x11\n\x0f_spendable_msatB\x12\n\x10_receivable_msatB\x17\n\x15_minimum_htlc_in_msatB\x18\n\x16_minimum_htlc_out_msatB\x18\n\x16_maximum_htlc_out_msatB\x16\n\x14_their_to_self_delayB\x14\n\x12_our_to_self_delayB\x15\n\x13_max_accepted_htlcsB\x08\n\x06_aliasB\x16\n\x14_in_payments_offeredB\x12\n\x10_in_offered_msatB\x18\n\x16_in_payments_fulfilledB\x14\n\x12_in_fulfilled_msatB\x17\n\x15_out_payments_offeredB\x13\n\x11_out_offered_msatB\x19\n\x17_out_payments_fulfilledB\x15\n\x13_out_fulfilled_msatB\x10\n\x0e_close_to_addrB\x14\n\x12_ignore_fee_limitsB\n\n\x08_updatesB\x19\n\x17_last_stable_connectionB\r\n\x0b_lost_stateB\x10\n\x0e_reestablishedB\x13\n\x11_last_tx_fee_msatB\x0c\n\n_direction\"\xa7\x01\n\x1fListpeerchannelsChannelsUpdates\x12\x38\n\x05local\x18\x01 \x01(\x0b\x32).cln.ListpeerchannelsChannelsUpdatesLocal\x12?\n\x06remote\x18\x02 \x01(\x0b\x32*.cln.ListpeerchannelsChannelsUpdatesRemoteH\x00\x88\x01\x01\x42\t\n\x07_remote\"\xda\x01\n$ListpeerchannelsChannelsUpdatesLocal\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"\xdb\x01\n%ListpeerchannelsChannelsUpdatesRemote\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"?\n\x1fListpeerchannelsChannelsFeerate\x12\r\n\x05perkw\x18\x01 \x01(\r\x12\r\n\x05perkb\x18\x02 \x01(\r\"\x8b\x02\n ListpeerchannelsChannelsInflight\x12\x14\n\x0c\x66unding_txid\x18\x01 \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\x02 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x03 \x01(\t\x12\'\n\x12total_funding_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10our_funding_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x0cscratch_txid\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x1a\n\rsplice_amount\x18\x07 \x01(\x12H\x01\x88\x01\x01\x42\x0f\n\r_scratch_txidB\x10\n\x0e_splice_amount\"\x9d\x02\n\x1fListpeerchannelsChannelsFunding\x12%\n\x0bpushed_msat\x18\x01 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12%\n\x10local_funds_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11remote_funds_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\rfee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\'\n\rfee_rcvd_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x42\x0e\n\x0c_pushed_msatB\x10\n\x0e_fee_paid_msatB\x10\n\x0e_fee_rcvd_msat\"]\n\x1dListpeerchannelsChannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"\xf9\x02\n\x1dListpeerchannelsChannelsHtlcs\x12\\\n\tdirection\x18\x01 \x01(\x0e\x32I.cln.ListpeerchannelsChannelsHtlcs.ListpeerchannelsChannelsHtlcsDirection\x12\n\n\x02id\x18\x02 \x01(\x04\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x0e\n\x06\x65xpiry\x18\x04 \x01(\r\x12\x14\n\x0cpayment_hash\x18\x05 \x01(\x0c\x12\x1a\n\rlocal_trimmed\x18\x06 \x01(\x08H\x00\x88\x01\x01\x12\x13\n\x06status\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x05state\x18\x08 \x01(\x0e\x32\x0e.cln.HtlcState\"9\n&ListpeerchannelsChannelsHtlcsDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\x42\x10\n\x0e_local_trimmedB\t\n\x07_status\"3\n\x19ListclosedchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"[\n\x1aListclosedchannelsResponse\x12=\n\x0e\x63losedchannels\x18\x01 \x03(\x0b\x32%.cln.ListclosedchannelsClosedchannels\"\xf2\t\n ListclosedchannelsClosedchannels\x12\x14\n\x07peer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x01\x88\x01\x01\x12>\n\x05\x61lias\x18\x04 \x01(\x0b\x32*.cln.ListclosedchannelsClosedchannelsAliasH\x02\x88\x01\x01\x12 \n\x06opener\x18\x05 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x06 \x01(\x0e\x32\x10.cln.ChannelSideH\x03\x88\x01\x01\x12\x0f\n\x07private\x18\x07 \x01(\x08\x12\x1f\n\x17total_local_commitments\x18\t \x01(\x04\x12 \n\x18total_remote_commitments\x18\n \x01(\x04\x12\x18\n\x10total_htlcs_sent\x18\x0b \x01(\x04\x12\x14\n\x0c\x66unding_txid\x18\x0c \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\r \x01(\r\x12\x0e\n\x06leased\x18\x0e \x01(\x08\x12/\n\x15\x66unding_fee_paid_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12/\n\x15\x66unding_fee_rcvd_msat\x18\x10 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12-\n\x13\x66unding_pushed_msat\x18\x11 \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1f\n\ntotal_msat\x18\x12 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x66inal_to_us_msat\x18\x13 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emin_to_us_msat\x18\x14 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emax_to_us_msat\x18\x15 \x01(\x0b\x32\x0b.cln.Amount\x12!\n\x14last_commitment_txid\x18\x16 \x01(\x0cH\x07\x88\x01\x01\x12\x32\n\x18last_commitment_fee_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x66\n\x0b\x63lose_cause\x18\x18 \x01(\x0e\x32Q.cln.ListclosedchannelsClosedchannels.ListclosedchannelsClosedchannelsClose_cause\x12#\n\x16last_stable_connection\x18\x19 \x01(\x04H\t\x88\x01\x01\"v\n+ListclosedchannelsClosedchannelsClose_cause\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05LOCAL\x10\x01\x12\x08\n\x04USER\x10\x02\x12\n\n\x06REMOTE\x10\x03\x12\x0c\n\x08PROTOCOL\x10\x04\x12\x0b\n\x07ONCHAIN\x10\x05\x42\n\n\x08_peer_idB\x13\n\x11_short_channel_idB\x08\n\x06_aliasB\t\n\x07_closerB\x18\n\x16_funding_fee_paid_msatB\x18\n\x16_funding_fee_rcvd_msatB\x16\n\x14_funding_pushed_msatB\x17\n\x15_last_commitment_txidB\x1b\n\x19_last_commitment_fee_msatB\x19\n\x17_last_stable_connection\"e\n%ListclosedchannelsClosedchannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"L\n\x10\x44\x65\x63odepayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\x8d\x04\n\x11\x44\x65\x63odepayResponse\x12\x10\n\x08\x63urrency\x18\x01 \x01(\t\x12\x12\n\ncreated_at\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\x04\x12\r\n\x05payee\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x11\n\tsignature\x18\x07 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x1d\n\x15min_final_cltv_expiry\x18\n \x01(\r\x12\x1b\n\x0epayment_secret\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\r \x01(\x0cH\x05\x88\x01\x01\x12*\n\tfallbacks\x18\x0e \x03(\x0b\x32\x17.cln.DecodepayFallbacks\x12\"\n\x05\x65xtra\x18\x10 \x03(\x0b\x32\x13.cln.DecodepayExtraB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x13\n\x11_description_hashB\x11\n\x0f_payment_secretB\x0b\n\t_featuresB\x13\n\x11_payment_metadata\"\xd0\x01\n\x12\x44\x65\x63odepayFallbacks\x12\x41\n\titem_type\x18\x01 \x01(\x0e\x32..cln.DecodepayFallbacks.DecodepayFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x0b\n\x03hex\x18\x03 \x01(\x0c\"N\n\x16\x44\x65\x63odepayFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42\x07\n\x05_addr\"+\n\x0e\x44\x65\x63odepayExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\"\x1f\n\rDecodeRequest\x12\x0e\n\x06string\x18\x01 \x01(\t\"\xb7#\n\x0e\x44\x65\x63odeResponse\x12\x31\n\titem_type\x18\x01 \x01(\x0e\x32\x1e.cln.DecodeResponse.DecodeType\x12\r\n\x05valid\x18\x02 \x01(\x08\x12\x15\n\x08offer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0coffer_chains\x18\x04 \x03(\x0c\x12\x1b\n\x0eoffer_metadata\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x1b\n\x0eoffer_currency\x18\x06 \x01(\tH\x02\x88\x01\x01\x12+\n\x1ewarning_unknown_offer_currency\x18\x07 \x01(\tH\x03\x88\x01\x01\x12 \n\x13\x63urrency_minor_unit\x18\x08 \x01(\rH\x04\x88\x01\x01\x12\x19\n\x0coffer_amount\x18\t \x01(\x04H\x05\x88\x01\x01\x12+\n\x11offer_amount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1e\n\x11offer_description\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0coffer_issuer\x18\x0c \x01(\tH\x08\x88\x01\x01\x12\x1b\n\x0eoffer_features\x18\r \x01(\x0cH\t\x88\x01\x01\x12\"\n\x15offer_absolute_expiry\x18\x0e \x01(\x04H\n\x88\x01\x01\x12\x1f\n\x12offer_quantity_max\x18\x0f \x01(\x04H\x0b\x88\x01\x01\x12+\n\x0boffer_paths\x18\x10 \x03(\x0b\x32\x16.cln.DecodeOffer_paths\x12\x1a\n\roffer_node_id\x18\x11 \x01(\x0cH\x0c\x88\x01\x01\x12*\n\x1dwarning_missing_offer_node_id\x18\x14 \x01(\tH\r\x88\x01\x01\x12.\n!warning_invalid_offer_description\x18\x15 \x01(\tH\x0e\x88\x01\x01\x12.\n!warning_missing_offer_description\x18\x16 \x01(\tH\x0f\x88\x01\x01\x12+\n\x1ewarning_invalid_offer_currency\x18\x17 \x01(\tH\x10\x88\x01\x01\x12)\n\x1cwarning_invalid_offer_issuer\x18\x18 \x01(\tH\x11\x88\x01\x01\x12\x1c\n\x0finvreq_metadata\x18\x19 \x01(\x0cH\x12\x88\x01\x01\x12\x1c\n\x0finvreq_payer_id\x18\x1a \x01(\x0cH\x13\x88\x01\x01\x12\x19\n\x0cinvreq_chain\x18\x1b \x01(\x0cH\x14\x88\x01\x01\x12,\n\x12invreq_amount_msat\x18\x1c \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x1c\n\x0finvreq_features\x18\x1d \x01(\x0cH\x16\x88\x01\x01\x12\x1c\n\x0finvreq_quantity\x18\x1e \x01(\x04H\x17\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x1f \x01(\tH\x18\x88\x01\x01\x12&\n\x19invreq_recurrence_counter\x18 \x01(\rH\x19\x88\x01\x01\x12$\n\x17invreq_recurrence_start\x18! \x01(\rH\x1a\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_metadata\x18# \x01(\tH\x1b\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_payer_id\x18$ \x01(\tH\x1c\x88\x01\x01\x12.\n!warning_invalid_invreq_payer_note\x18% \x01(\tH\x1d\x88\x01\x01\x12\x36\n)warning_missing_invoice_request_signature\x18& \x01(\tH\x1e\x88\x01\x01\x12\x36\n)warning_invalid_invoice_request_signature\x18\' \x01(\tH\x1f\x88\x01\x01\x12\x1f\n\x12invoice_created_at\x18) \x01(\x04H \x88\x01\x01\x12$\n\x17invoice_relative_expiry\x18* \x01(\rH!\x88\x01\x01\x12!\n\x14invoice_payment_hash\x18+ \x01(\x0cH\"\x88\x01\x01\x12-\n\x13invoice_amount_msat\x18, \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\x37\n\x11invoice_fallbacks\x18- \x03(\x0b\x32\x1c.cln.DecodeInvoice_fallbacks\x12\x1d\n\x10invoice_features\x18. \x01(\x0cH$\x88\x01\x01\x12\x1c\n\x0finvoice_node_id\x18/ \x01(\x0cH%\x88\x01\x01\x12(\n\x1binvoice_recurrence_basetime\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x1dwarning_missing_invoice_paths\x18\x32 \x01(\tH\'\x88\x01\x01\x12/\n\"warning_missing_invoice_blindedpay\x18\x33 \x01(\tH(\x88\x01\x01\x12/\n\"warning_missing_invoice_created_at\x18\x34 \x01(\tH)\x88\x01\x01\x12\x31\n$warning_missing_invoice_payment_hash\x18\x35 \x01(\tH*\x88\x01\x01\x12+\n\x1ewarning_missing_invoice_amount\x18\x36 \x01(\tH+\x88\x01\x01\x12\x38\n+warning_missing_invoice_recurrence_basetime\x18\x37 \x01(\tH,\x88\x01\x01\x12,\n\x1fwarning_missing_invoice_node_id\x18\x38 \x01(\tH-\x88\x01\x01\x12.\n!warning_missing_invoice_signature\x18\x39 \x01(\tH.\x88\x01\x01\x12.\n!warning_invalid_invoice_signature\x18: \x01(\tH/\x88\x01\x01\x12\'\n\tfallbacks\x18; \x03(\x0b\x32\x14.cln.DecodeFallbacks\x12\x17\n\ncreated_at\x18< \x01(\x04H0\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18= \x01(\x04H1\x88\x01\x01\x12\x12\n\x05payee\x18> \x01(\x0cH2\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18? \x01(\x0cH3\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18@ \x01(\x0cH4\x88\x01\x01\x12\"\n\x15min_final_cltv_expiry\x18\x41 \x01(\rH5\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x42 \x01(\x0cH6\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x43 \x01(\x0cH7\x88\x01\x01\x12\x1f\n\x05\x65xtra\x18\x45 \x03(\x0b\x32\x10.cln.DecodeExtra\x12\x16\n\tunique_id\x18\x46 \x01(\tH8\x88\x01\x01\x12\x14\n\x07version\x18G \x01(\tH9\x88\x01\x01\x12\x13\n\x06string\x18H \x01(\tH:\x88\x01\x01\x12-\n\x0crestrictions\x18I \x03(\x0b\x32\x17.cln.DecodeRestrictions\x12&\n\x19warning_rune_invalid_utf8\x18J \x01(\tH;\x88\x01\x01\x12\x10\n\x03hex\x18K \x01(\x0cH<\x88\x01\x01\x12\x16\n\tdecrypted\x18L \x01(\x0cH=\x88\x01\x01\x12\x16\n\tsignature\x18M \x01(\tH>\x88\x01\x01\x12\x15\n\x08\x63urrency\x18N \x01(\tH?\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18O \x01(\x0b\x32\x0b.cln.AmountH@\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18P \x01(\tHA\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18Q \x01(\x0cHB\x88\x01\x01\"\x83\x01\n\nDecodeType\x12\x10\n\x0c\x42OLT12_OFFER\x10\x00\x12\x12\n\x0e\x42OLT12_INVOICE\x10\x01\x12\x1a\n\x16\x42OLT12_INVOICE_REQUEST\x10\x02\x12\x12\n\x0e\x42OLT11_INVOICE\x10\x03\x12\x08\n\x04RUNE\x10\x04\x12\x15\n\x11\x45MERGENCY_RECOVER\x10\x05\x42\x0b\n\t_offer_idB\x11\n\x0f_offer_metadataB\x11\n\x0f_offer_currencyB!\n\x1f_warning_unknown_offer_currencyB\x16\n\x14_currency_minor_unitB\x0f\n\r_offer_amountB\x14\n\x12_offer_amount_msatB\x14\n\x12_offer_descriptionB\x0f\n\r_offer_issuerB\x11\n\x0f_offer_featuresB\x18\n\x16_offer_absolute_expiryB\x15\n\x13_offer_quantity_maxB\x10\n\x0e_offer_node_idB \n\x1e_warning_missing_offer_node_idB$\n\"_warning_invalid_offer_descriptionB$\n\"_warning_missing_offer_descriptionB!\n\x1f_warning_invalid_offer_currencyB\x1f\n\x1d_warning_invalid_offer_issuerB\x12\n\x10_invreq_metadataB\x12\n\x10_invreq_payer_idB\x0f\n\r_invreq_chainB\x15\n\x13_invreq_amount_msatB\x12\n\x10_invreq_featuresB\x12\n\x10_invreq_quantityB\x14\n\x12_invreq_payer_noteB\x1c\n\x1a_invreq_recurrence_counterB\x1a\n\x18_invreq_recurrence_startB\"\n _warning_missing_invreq_metadataB\"\n _warning_missing_invreq_payer_idB$\n\"_warning_invalid_invreq_payer_noteB,\n*_warning_missing_invoice_request_signatureB,\n*_warning_invalid_invoice_request_signatureB\x15\n\x13_invoice_created_atB\x1a\n\x18_invoice_relative_expiryB\x17\n\x15_invoice_payment_hashB\x16\n\x14_invoice_amount_msatB\x13\n\x11_invoice_featuresB\x12\n\x10_invoice_node_idB\x1e\n\x1c_invoice_recurrence_basetimeB \n\x1e_warning_missing_invoice_pathsB%\n#_warning_missing_invoice_blindedpayB%\n#_warning_missing_invoice_created_atB\'\n%_warning_missing_invoice_payment_hashB!\n\x1f_warning_missing_invoice_amountB.\n,_warning_missing_invoice_recurrence_basetimeB\"\n _warning_missing_invoice_node_idB$\n\"_warning_missing_invoice_signatureB$\n\"_warning_invalid_invoice_signatureB\r\n\x0b_created_atB\t\n\x07_expiryB\x08\n\x06_payeeB\x0f\n\r_payment_hashB\x13\n\x11_description_hashB\x18\n\x16_min_final_cltv_expiryB\x11\n\x0f_payment_secretB\x13\n\x11_payment_metadataB\x0c\n\n_unique_idB\n\n\x08_versionB\t\n\x07_stringB\x1c\n\x1a_warning_rune_invalid_utf8B\x06\n\x04_hexB\x0c\n\n_decryptedB\x0c\n\n_signatureB\x0b\n\t_currencyB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x0b\n\t_features\"\xab\x01\n\x11\x44\x65\x63odeOffer_paths\x12\x1a\n\rfirst_node_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\x1b\n\x0e\x66irst_scid_dir\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x17\n\nfirst_scid\x18\x05 \x01(\tH\x02\x88\x01\x01\x42\x10\n\x0e_first_node_idB\x11\n\x0f_first_scid_dirB\r\n\x0b_first_scid\"\x8a\x01\n\x1f\x44\x65\x63odeOffer_recurrencePaywindow\x12\x16\n\x0eseconds_before\x18\x01 \x01(\r\x12\x15\n\rseconds_after\x18\x02 \x01(\r\x12 \n\x13proportional_amount\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\x16\n\x14_proportional_amount\"T\n\x17\x44\x65\x63odeInvoice_pathsPath\x12\x17\n\x0f\x62linded_node_id\x18\x01 \x01(\x0c\x12 \n\x18\x65ncrypted_recipient_data\x18\x02 \x01(\x0c\"Y\n\x17\x44\x65\x63odeInvoice_fallbacks\x12\x0f\n\x07version\x18\x01 \x01(\r\x12\x0b\n\x03hex\x18\x02 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_address\"\xaa\x02\n\x0f\x44\x65\x63odeFallbacks\x12\x36\n)warning_invoice_fallbacks_version_invalid\x18\x01 \x01(\tH\x00\x88\x01\x01\x12;\n\titem_type\x18\x02 \x01(\x0e\x32(.cln.DecodeFallbacks.DecodeFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0b\n\x03hex\x18\x04 \x01(\x0c\"K\n\x13\x44\x65\x63odeFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42,\n*_warning_invoice_fallbacks_version_invalidB\x07\n\x05_addr\"(\n\x0b\x44\x65\x63odeExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\";\n\x12\x44\x65\x63odeRestrictions\x12\x14\n\x0c\x61lternatives\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\"\xc2\x01\n\rDelpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12/\n\x06status\x18\x02 \x01(\x0e\x32\x1f.cln.DelpayRequest.DelpayStatus\x12\x13\n\x06partid\x18\x03 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x01\x88\x01\x01\"(\n\x0c\x44\x65lpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x42\t\n\x07_partidB\n\n\x08_groupid\"7\n\x0e\x44\x65lpayResponse\x12%\n\x08payments\x18\x01 \x03(\x0b\x32\x13.cln.DelpayPayments\"\xcb\x05\n\x0e\x44\x65lpayPayments\x12\x1a\n\rcreated_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x38\n\x06status\x18\x04 \x01(\x0e\x32(.cln.DelpayPayments.DelpayPaymentsStatus\x12%\n\x10\x61mount_sent_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x07 \x01(\x0cH\x02\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x12\n\ncreated_at\x18\t \x01(\x04\x12\x1a\n\rupdated_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x12\n\x05label\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x10 \x01(\tH\n\x88\x01\x01\x12\x17\n\nerroronion\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"=\n\x14\x44\x65lpayPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x10\n\x0e_created_indexB\t\n\x07_partidB\x0e\n\x0c_destinationB\x0e\n\x0c_amount_msatB\x10\n\x0e_updated_indexB\x0f\n\r_completed_atB\n\n\x08_groupidB\x13\n\x11_payment_preimageB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\r\n\x0b_erroronion\"\xb3\x01\n\x11\x44\x65lforwardRequest\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x12\n\nin_htlc_id\x18\x02 \x01(\x04\x12\x37\n\x06status\x18\x03 \x01(\x0e\x32\'.cln.DelforwardRequest.DelforwardStatus\"=\n\x10\x44\x65lforwardStatus\x12\x0b\n\x07SETTLED\x10\x00\x12\x10\n\x0cLOCAL_FAILED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"\x14\n\x12\x44\x65lforwardResponse\"\'\n\x13\x44isableofferRequest\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\"\x88\x01\n\x14\x44isableofferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"=\n\x11\x44isconnectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_force\"\x14\n\x12\x44isconnectResponse\"k\n\x0f\x46\x65\x65ratesRequest\x12\x31\n\x05style\x18\x01 \x01(\x0e\x32\".cln.FeeratesRequest.FeeratesStyle\"%\n\rFeeratesStyle\x12\t\n\x05PERKB\x10\x00\x12\t\n\x05PERKW\x10\x01\"\x9c\x02\n\x10\x46\x65\x65ratesResponse\x12%\n\x18warning_missing_feerates\x18\x01 \x01(\tH\x00\x88\x01\x01\x12&\n\x05perkb\x18\x02 \x01(\x0b\x32\x12.cln.FeeratesPerkbH\x01\x88\x01\x01\x12&\n\x05perkw\x18\x03 \x01(\x0b\x32\x12.cln.FeeratesPerkwH\x02\x88\x01\x01\x12\x46\n\x15onchain_fee_estimates\x18\x04 \x01(\x0b\x32\".cln.FeeratesOnchain_fee_estimatesH\x03\x88\x01\x01\x42\x1b\n\x19_warning_missing_feeratesB\x08\n\x06_perkbB\x08\n\x06_perkwB\x18\n\x16_onchain_fee_estimates\"\xd3\x03\n\rFeeratesPerkb\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkbEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkbEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\xd3\x03\n\rFeeratesPerkw\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkwEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkwEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\x9b\x02\n\x1d\x46\x65\x65ratesOnchain_fee_estimates\x12 \n\x18opening_channel_satoshis\x18\x01 \x01(\x04\x12\x1d\n\x15mutual_close_satoshis\x18\x02 \x01(\x04\x12!\n\x19unilateral_close_satoshis\x18\x03 \x01(\x04\x12\x1d\n\x15htlc_timeout_satoshis\x18\x04 \x01(\x04\x12\x1d\n\x15htlc_success_satoshis\x18\x05 \x01(\x04\x12\x30\n#unilateral_close_nonanchor_satoshis\x18\x06 \x01(\x04H\x00\x88\x01\x01\x42&\n$_unilateral_close_nonanchor_satoshis\"\xe9\x02\n\x13\x46\x65tchinvoiceRequest\x12\r\n\x05offer\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x15\n\x08quantity\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x1f\n\x12recurrence_counter\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x1d\n\x10recurrence_start\x18\x05 \x01(\x01H\x03\x88\x01\x01\x12\x1d\n\x10recurrence_label\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x14\n\x07timeout\x18\x07 \x01(\x01H\x05\x88\x01\x01\x12\x17\n\npayer_note\x18\x08 \x01(\tH\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\x0b\n\t_quantityB\x15\n\x13_recurrence_counterB\x13\n\x11_recurrence_startB\x13\n\x11_recurrence_labelB\n\n\x08_timeoutB\r\n\x0b_payer_note\"\x9a\x01\n\x14\x46\x65tchinvoiceResponse\x12\x0f\n\x07invoice\x18\x01 \x01(\t\x12)\n\x07\x63hanges\x18\x02 \x01(\x0b\x32\x18.cln.FetchinvoiceChanges\x12\x36\n\x0bnext_period\x18\x03 \x01(\x0b\x32\x1c.cln.FetchinvoiceNext_periodH\x00\x88\x01\x01\x42\x0e\n\x0c_next_period\"\x82\x02\n\x13\x46\x65tchinvoiceChanges\x12!\n\x14\x64\x65scription_appended\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0evendor_removed\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06vendor\x18\x04 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x42\x17\n\x15_description_appendedB\x0e\n\x0c_descriptionB\x11\n\x0f_vendor_removedB\t\n\x07_vendorB\x0e\n\x0c_amount_msat\"~\n\x17\x46\x65tchinvoiceNext_period\x12\x0f\n\x07\x63ounter\x18\x01 \x01(\x04\x12\x11\n\tstarttime\x18\x02 \x01(\x04\x12\x0f\n\x07\x65ndtime\x18\x03 \x01(\x04\x12\x17\n\x0fpaywindow_start\x18\x04 \x01(\x04\x12\x15\n\rpaywindow_end\x18\x05 \x01(\x04\"\'\n\x19\x46undchannel_cancelRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\"/\n\x1a\x46undchannel_cancelResponse\x12\x11\n\tcancelled\x18\x01 \x01(\t\"7\n\x1b\x46undchannel_completeRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"O\n\x1c\x46undchannel_completeResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"\xfb\x03\n\x12\x46undchannelRequest\x12 \n\x06\x61mount\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12#\n\tpush_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\tH\x05\x88\x01\x01\x12\n\n\x02id\x18\t \x01(\x0c\x12\x14\n\x07minconf\x18\n \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x05utxos\x18\x0b \x03(\x0b\x32\r.cln.Outpoint\x12\x15\n\x08mindepth\x18\x0c \x01(\rH\x07\x88\x01\x01\x12!\n\x07reserve\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\x0e \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\n\n\x08_minconfB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xe5\x01\n\x13\x46undchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0e\n\x06outnum\x18\x03 \x01(\r\x12\x12\n\nchannel_id\x18\x04 \x01(\x0c\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x37\n\x0c\x63hannel_type\x18\x07 \x01(\x0b\x32\x1c.cln.FundchannelChannel_typeH\x02\x88\x01\x01\x42\x0b\n\t_close_toB\x0b\n\t_mindepthB\x0f\n\r_channel_type\"L\n\x17\x46undchannelChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xd7\x02\n\x18\x46undchannel_startRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x1b\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\x07\x66\x65\x65rate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12#\n\tpush_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x15\n\x08mindepth\x18\x07 \x01(\rH\x04\x88\x01\x01\x12!\n\x07reserve\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0c\n\n_push_msatB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xf9\x01\n\x19\x46undchannel_startResponse\x12\x17\n\x0f\x66unding_address\x18\x01 \x01(\t\x12\x14\n\x0cscriptpubkey\x18\x02 \x01(\x0c\x12=\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32\".cln.Fundchannel_startChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x04 \x01(\x0cH\x01\x88\x01\x01\x12\x15\n\rwarning_usage\x18\x05 \x01(\t\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x0b\n\t_mindepth\"R\n\x1d\x46undchannel_startChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x9d\x01\n\rGetlogRequest\x12\x32\n\x05level\x18\x01 \x01(\x0e\x32\x1e.cln.GetlogRequest.GetlogLevelH\x00\x88\x01\x01\"N\n\x0bGetlogLevel\x12\n\n\x06\x42ROKEN\x10\x00\x12\x0b\n\x07UNUSUAL\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x06\n\x02IO\x10\x04\x12\t\n\x05TRACE\x10\x05\x42\x08\n\x06_level\"h\n\x0eGetlogResponse\x12\x12\n\ncreated_at\x18\x01 \x01(\t\x12\x12\n\nbytes_used\x18\x02 \x01(\r\x12\x11\n\tbytes_max\x18\x03 \x01(\r\x12\x1b\n\x03log\x18\x04 \x03(\x0b\x32\x0e.cln.GetlogLog\"\xe8\x02\n\tGetlogLog\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.GetlogLog.GetlogLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"l\n\rGetlogLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"\xec\x01\n\x0fGetrouteRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\nriskfactor\x18\x03 \x01(\x04\x12\x11\n\x04\x63ltv\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x13\n\x06\x66romid\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x66uzzpercent\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\x07 \x03(\t\x12\x14\n\x07maxhops\x18\x08 \x01(\rH\x03\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountB\x07\n\x05_cltvB\t\n\x07_fromidB\x0e\n\x0c_fuzzpercentB\n\n\x08_maxhops\"5\n\x10GetrouteResponse\x12!\n\x05route\x18\x01 \x03(\x0b\x32\x12.cln.GetrouteRoute\"\xc5\x01\n\rGetrouteRoute\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x05 \x01(\r\x12\x34\n\x05style\x18\x06 \x01(\x0e\x32%.cln.GetrouteRoute.GetrouteRouteStyle\"\x1d\n\x12GetrouteRouteStyle\x12\x07\n\x03TLV\x10\x00\"\xb7\x03\n\x13ListforwardsRequest\x12@\n\x06status\x18\x01 \x01(\x0e\x32+.cln.ListforwardsRequest.ListforwardsStatusH\x00\x88\x01\x01\x12\x17\n\nin_channel\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x03 \x01(\tH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListforwardsRequest.ListforwardsIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\"L\n\x12ListforwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"-\n\x11ListforwardsIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_statusB\r\n\x0b_in_channelB\x0e\n\x0c_out_channelB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListforwardsResponse\x12+\n\x08\x66orwards\x18\x01 \x03(\x0b\x32\x19.cln.ListforwardsForwards\"\xb4\x06\n\x14ListforwardsForwards\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x1c\n\x07in_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x44\n\x06status\x18\x03 \x01(\x0e\x32\x34.cln.ListforwardsForwards.ListforwardsForwardsStatus\x12\x15\n\rreceived_time\x18\x04 \x01(\x01\x12\x18\n\x0bout_channel\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\"\n\x08\x66\x65\x65_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\"\n\x08out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12G\n\x05style\x18\t \x01(\x0e\x32\x33.cln.ListforwardsForwards.ListforwardsForwardsStyleH\x03\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x18\n\x0bout_htlc_id\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rresolved_time\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x15\n\x08\x66\x61ilcode\x18\x0f \x01(\rH\t\x88\x01\x01\x12\x17\n\nfailreason\x18\x10 \x01(\tH\n\x88\x01\x01\"T\n\x1aListforwardsForwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"0\n\x19ListforwardsForwardsStyle\x12\n\n\x06LEGACY\x10\x00\x12\x07\n\x03TLV\x10\x01\x42\x0e\n\x0c_out_channelB\x0b\n\t_fee_msatB\x0b\n\t_out_msatB\x08\n\x06_styleB\r\n\x0b_in_htlc_idB\x0e\n\x0c_out_htlc_idB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_resolved_timeB\x0b\n\t_failcodeB\r\n\x0b_failreason\"a\n\x11ListoffersRequest\x12\x15\n\x08offer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0b\x61\x63tive_only\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\x0b\n\t_offer_idB\x0e\n\x0c_active_only\";\n\x12ListoffersResponse\x12%\n\x06offers\x18\x01 \x03(\x0b\x32\x15.cln.ListoffersOffers\"\x84\x01\n\x10ListoffersOffers\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"\xdb\x01\n\x0fListpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x38\n\x06status\x18\x03 \x01(\x0e\x32#.cln.ListpaysRequest.ListpaysStatusH\x02\x88\x01\x01\"7\n\x0eListpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_status\"3\n\x10ListpaysResponse\x12\x1f\n\x04pays\x18\x01 \x03(\x0b\x32\x11.cln.ListpaysPays\"\xff\x04\n\x0cListpaysPays\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x34\n\x06status\x18\x02 \x01(\x0e\x32$.cln.ListpaysPays.ListpaysPaysStatus\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x04\x12\x12\n\x05label\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x06 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12*\n\x10\x61mount_sent_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\n \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0c \x01(\x04H\x08\x88\x01\x01\x12\x15\n\x08preimage\x18\r \x01(\x0cH\t\x88\x01\x01\x12\x1c\n\x0fnumber_of_parts\x18\x0e \x01(\x04H\n\x88\x01\x01\";\n\x12ListpaysPaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x13\n\x11_amount_sent_msatB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\x0f\n\r_completed_atB\x0b\n\t_preimageB\x12\n\x10_number_of_parts\"*\n\x10ListhtlcsRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListhtlcsResponse\x12\"\n\x05htlcs\x18\x01 \x03(\x0b\x32\x13.cln.ListhtlcsHtlcs\"\x89\x02\n\x0eListhtlcsHtlcs\x12\x18\n\x10short_channel_id\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12>\n\tdirection\x18\x05 \x01(\x0e\x32+.cln.ListhtlcsHtlcs.ListhtlcsHtlcsDirection\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x1d\n\x05state\x18\x07 \x01(\x0e\x32\x0e.cln.HtlcState\"*\n\x17ListhtlcsHtlcsDirection\x12\x07\n\x03OUT\x10\x00\x12\x06\n\x02IN\x10\x01\"\xb2\x02\n\x17MultifundchannelRequest\x12\x37\n\x0c\x64\x65stinations\x18\x01 \x03(\x0b\x32!.cln.MultifundchannelDestinations\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\x12H\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x18\n\x0bminchannels\x18\x05 \x01(\x12H\x02\x88\x01\x01\x12-\n\x12\x63ommitment_feerate\x18\x06 \x01(\x0b\x32\x0c.cln.FeerateH\x03\x88\x01\x01\x42\n\n\x08_feerateB\n\n\x08_minconfB\x0e\n\x0c_minchannelsB\x15\n\x13_commitment_feerate\"\x98\x01\n\x18MultifundchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x35\n\x0b\x63hannel_ids\x18\x03 \x03(\x0b\x32 .cln.MultifundchannelChannel_ids\x12+\n\x06\x66\x61iled\x18\x04 \x03(\x0b\x32\x1b.cln.MultifundchannelFailed\"\xff\x02\n\x1cMultifundchannelDestinations\x12\n\n\x02id\x18\x01 \x01(\t\x12 \n\x06\x61mount\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12#\n\tpush_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12%\n\x0brequest_amt\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08mindepth\x18\x08 \x01(\rH\x05\x88\x01\x01\x12!\n\x07reserve\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x42\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xcb\x01\n\x1bMultifundchannelChannel_ids\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12\x12\n\nchannel_id\x18\x03 \x01(\x0c\x12G\n\x0c\x63hannel_type\x18\x04 \x01(\x0b\x32,.cln.MultifundchannelChannel_idsChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_to\"\\\n\'MultifundchannelChannel_idsChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x93\x02\n\x16MultifundchannelFailed\x12\n\n\x02id\x18\x01 \x01(\x0c\x12H\n\x06method\x18\x02 \x01(\x0e\x32\x38.cln.MultifundchannelFailed.MultifundchannelFailedMethod\x12/\n\x05\x65rror\x18\x03 \x01(\x0b\x32 .cln.MultifundchannelFailedError\"r\n\x1cMultifundchannelFailedMethod\x12\x0b\n\x07\x43ONNECT\x10\x00\x12\x14\n\x10OPENCHANNEL_INIT\x10\x01\x12\x15\n\x11\x46UNDCHANNEL_START\x10\x02\x12\x18\n\x14\x46UNDCHANNEL_COMPLETE\x10\x03\"<\n\x1bMultifundchannelFailedError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x12\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xc1\x03\n\x0cOfferRequest\x12\x0e\n\x06\x61mount\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x06issuer\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cquantity_max\x18\x05 \x01(\x04H\x02\x88\x01\x01\x12\x1c\n\x0f\x61\x62solute_expiry\x18\x06 \x01(\x04H\x03\x88\x01\x01\x12\x17\n\nrecurrence\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x1c\n\x0frecurrence_base\x18\x08 \x01(\tH\x05\x88\x01\x01\x12!\n\x14recurrence_paywindow\x18\t \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10recurrence_limit\x18\n \x01(\rH\x07\x88\x01\x01\x12\x17\n\nsingle_use\x18\x0b \x01(\x08H\x08\x88\x01\x01\x42\t\n\x07_issuerB\x08\n\x06_labelB\x0f\n\r_quantity_maxB\x12\n\x10_absolute_expiryB\r\n\x0b_recurrenceB\x12\n\x10_recurrence_baseB\x17\n\x15_recurrence_paywindowB\x13\n\x11_recurrence_limitB\r\n\x0b_single_use\"\x92\x01\n\rOfferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x0f\n\x07\x63reated\x18\x06 \x01(\x08\x12\x12\n\x05label\x18\x07 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\".\n\x18Openchannel_abortRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"Y\n\x19Openchannel_abortResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x18\n\x10\x63hannel_canceled\x18\x02 \x01(\x08\x12\x0e\n\x06reason\x18\x03 \x01(\t\"\x9f\x01\n\x17Openchannel_bumpRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12*\n\x0f\x66unding_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x1b\n\x06\x61mount\x18\x04 \x01(\x0b\x32\x0b.cln.AmountB\x12\n\x10_funding_feerate\"\x86\x02\n\x18Openchannel_bumpResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12<\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32!.cln.Openchannel_bumpChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_bumpChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xa0\x03\n\x17Openchannel_initRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12-\n\x12\x63ommitment_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12*\n\x0f\x66unding_feerate\x18\x04 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\r\x12\x1b\n\x06\x61mount\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x15\n\x13_commitment_feerateB\x12\n\x10_funding_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_lease\"\x86\x02\n\x18Openchannel_initResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12<\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32!.cln.Openchannel_initChannel_typeH\x00\x88\x01\x01\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_initChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"D\n\x19Openchannel_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0bsigned_psbt\x18\x02 \x01(\t\"J\n\x1aOpenchannel_signedResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"=\n\x19Openchannel_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"\xae\x02\n\x1aOpenchannel_updateResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12>\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32#.cln.Openchannel_updateChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_outnum\x18\x05 \x01(\r\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12&\n\x19requires_confirmed_inputs\x18\x07 \x01(\x08H\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x1c\n\x1a_requires_confirmed_inputs\"S\n\x1eOpenchannel_updateChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"Y\n\x0bPingRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x03len\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x16\n\tpongbytes\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x06\n\x04_lenB\x0c\n\n_pongbytes\"\x1e\n\x0cPingResponse\x12\x0e\n\x06totlen\x18\x01 \x01(\r\"\x91\x01\n\rPluginRequest\x12)\n\nsubcommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12\x13\n\x06plugin\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tdirectory\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x07options\x18\x04 \x03(\tB\t\n\x07_pluginB\x0c\n\n_directory\"}\n\x0ePluginResponse\x12&\n\x07\x63ommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12#\n\x07plugins\x18\x02 \x03(\x0b\x32\x12.cln.PluginPlugins\x12\x13\n\x06result\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\t\n\x07_result\">\n\rPluginPlugins\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x0f\n\x07\x64ynamic\x18\x03 \x01(\x08\"<\n\x14RenepaystatusRequest\x12\x16\n\tinvstring\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_invstring\"G\n\x15RenepaystatusResponse\x12.\n\tpaystatus\x18\x01 \x03(\x0b\x32\x1b.cln.RenepaystatusPaystatus\"\xe2\x03\n\x16RenepaystatusPaystatus\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x1d\n\x10payment_preimage\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\x0f\n\x07groupid\x18\x05 \x01(\r\x12\x12\n\x05parts\x18\x06 \x01(\rH\x01\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12H\n\x06status\x18\t \x01(\x0e\x32\x38.cln.RenepaystatusPaystatus.RenepaystatusPaystatusStatus\x12\x18\n\x0b\x64\x65stination\x18\n \x01(\x0cH\x03\x88\x01\x01\x12\r\n\x05notes\x18\x0b \x03(\t\"E\n\x1cRenepaystatusPaystatusStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x13\n\x11_payment_preimageB\x08\n\x06_partsB\x13\n\x11_amount_sent_msatB\x0e\n\x0c_destination\"\xc9\x02\n\x0eRenepayRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12 \n\x06maxfee\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x03\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x12\n\x05label\x18\x07 \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0e\x64\x65v_use_shadow\x18\x08 \x01(\x08H\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_maxfeeB\x0b\n\t_maxdelayB\x0c\n\n_retry_forB\x0e\n\x0c_descriptionB\x08\n\x06_labelB\x11\n\x0f_dev_use_shadow\"\xc3\x02\n\x0fRenepayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\ncreated_at\x18\x03 \x01(\x01\x12\r\n\x05parts\x18\x04 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12\x32\n\x06status\x18\x07 \x01(\x0e\x32\".cln.RenepayResponse.RenepayStatus\x12\x18\n\x0b\x64\x65stination\x18\x08 \x01(\x0cH\x00\x88\x01\x01\"6\n\rRenepayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destination\"l\n\x14ReserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\texclusive\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x0c\n\n_exclusiveB\n\n\x08_reserve\"M\n\x15ReserveinputsResponse\x12\x34\n\x0creservations\x18\x01 \x03(\x0b\x32\x1e.cln.ReserveinputsReservations\"z\n\x19ReserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"4\n\x14SendcustommsgRequest\x12\x0f\n\x07node_id\x18\x01 \x01(\x0c\x12\x0b\n\x03msg\x18\x02 \x01(\x0c\"\'\n\x15SendcustommsgResponse\x12\x0e\n\x06status\x18\x01 \x01(\t\"\xb0\x01\n\x12SendinvoiceRequest\x12\x0e\n\x06invreq\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08quantity\x18\x05 \x01(\x04H\x02\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\n\n\x08_timeoutB\x0b\n\t_quantity\"\xcf\x04\n\x13SendinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.SendinvoiceResponse.SendinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x08 \x01(\x04H\x02\x88\x01\x01\x12\x1a\n\rupdated_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12\x16\n\tpay_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\"6\n\x11SendinvoiceStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt12B\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"f\n\x17SendonionmessageRequest\x12\x10\n\x08\x66irst_id\x18\x01 \x01(\x0c\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\'\n\x04hops\x18\x03 \x03(\x0b\x32\x19.cln.SendonionmessageHops\"\x1a\n\x18SendonionmessageResponse\"1\n\x14SendonionmessageHops\x12\x0c\n\x04node\x18\x01 \x01(\x0c\x12\x0b\n\x03tlv\x18\x02 \x01(\r\"\xaa\x02\n\x11SetchannelRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x07\x66\x65\x65\x62\x61se\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x66\x65\x65ppm\x18\x03 \x01(\rH\x01\x88\x01\x01\x12!\n\x07htlcmin\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12!\n\x07htlcmax\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x19\n\x0c\x65nforcedelay\x18\x06 \x01(\rH\x04\x88\x01\x01\x12\x1c\n\x0fignorefeelimits\x18\x07 \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_feebaseB\t\n\x07_feeppmB\n\n\x08_htlcminB\n\n\x08_htlcmaxB\x0f\n\r_enforcedelayB\x12\n\x10_ignorefeelimits\"?\n\x12SetchannelResponse\x12)\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x17.cln.SetchannelChannels\"\xca\x03\n\x12SetchannelChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\x12*\n\x15minimum_htlc_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x17warning_htlcmin_too_low\x18\x07 \x01(\tH\x01\x88\x01\x01\x12*\n\x15maximum_htlc_out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x18warning_htlcmax_too_high\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\n \x01(\x08H\x03\x88\x01\x01\x42\x13\n\x11_short_channel_idB\x1a\n\x18_warning_htlcmin_too_lowB\x1b\n\x19_warning_htlcmax_too_highB\x14\n\x12_ignore_fee_limits\"<\n\x10SetconfigRequest\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x10\n\x03val\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_val\"9\n\x11SetconfigResponse\x12$\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x14.cln.SetconfigConfig\"\xa5\x02\n\x0fSetconfigConfig\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x06plugin\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07\x64ynamic\x18\x04 \x01(\x08\x12\x10\n\x03set\x18\x05 \x01(\x08H\x01\x88\x01\x01\x12\x16\n\tvalue_str\x18\x06 \x01(\tH\x02\x88\x01\x01\x12$\n\nvalue_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x16\n\tvalue_int\x18\x08 \x01(\x12H\x04\x88\x01\x01\x12\x17\n\nvalue_bool\x18\t \x01(\x08H\x05\x88\x01\x01\x42\t\n\x07_pluginB\x06\n\x04_setB\x0c\n\n_value_strB\r\n\x0b_value_msatB\x0c\n\n_value_intB\r\n\x0b_value_bool\"6\n\x15SetpsbtversionRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\r\"&\n\x16SetpsbtversionResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"\'\n\x12SigninvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\"%\n\x13SigninvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"%\n\x12SignmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\"F\n\x13SignmessageResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\r\n\x05recid\x18\x02 \x01(\x0c\x12\r\n\x05zbase\x18\x03 \x01(\t\"\xc9\x01\n\x12Splice_initRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x17\n\x0frelative_amount\x18\x02 \x01(\x12\x12\x18\n\x0binitialpsbt\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0e\x66\x65\x65rate_per_kw\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1a\n\rforce_feerate\x18\x05 \x01(\x08H\x02\x88\x01\x01\x42\x0e\n\x0c_initialpsbtB\x11\n\x0f_feerate_per_kwB\x10\n\x0e_force_feerate\"#\n\x13Splice_initResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"`\n\x14Splice_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12\x17\n\nsign_first\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\r\n\x0b_sign_first\"1\n\x15Splice_signedResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"8\n\x14Splice_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"B\n\x15Splice_updateResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"H\n\x16UnreserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\"Q\n\x17UnreserveinputsResponse\x12\x36\n\x0creservations\x18\x01 \x03(\x0b\x32 .cln.UnreserveinputsReservations\"\x97\x01\n\x1bUnreserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\x05 \x01(\rH\x00\x88\x01\x01\x42\x14\n\x12_reserved_to_block\"n\n\x14UpgradewalletRequest\x12\"\n\x07\x66\x65\x65rate\x18\x01 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x17\n\nreservedok\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\n\n\x08_feerateB\r\n\x0b_reservedok\"\x95\x01\n\x15UpgradewalletResponse\x12\x1a\n\rupgraded_outs\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x11\n\x04psbt\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x02tx\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x11\n\x04txid\x18\x04 \x01(\x0cH\x03\x88\x01\x01\x42\x10\n\x0e_upgraded_outsB\x07\n\x05_psbtB\x05\n\x03_txB\x07\n\x05_txid\"O\n\x16WaitblockheightRequest\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\x12\x14\n\x07timeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_timeout\".\n\x17WaitblockheightResponse\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\"\xf9\x01\n\x0bWaitRequest\x12\x31\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitSubsystem\x12\x31\n\tindexname\x18\x02 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitIndexname\x12\x11\n\tnextvalue\x18\x03 \x01(\x04\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\"6\n\rWaitIndexname\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\"\x97\x02\n\x0cWaitResponse\x12\x32\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1f.cln.WaitResponse.WaitSubsystem\x12\x14\n\x07\x63reated\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07updated\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x14\n\x07\x64\x65leted\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12&\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32\x10.cln.WaitDetailsH\x03\x88\x01\x01\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\x42\n\n\x08_createdB\n\n\x08_updatedB\n\n\x08_deletedB\n\n\x08_details\"\xfc\x04\n\x0bWaitDetails\x12\x37\n\x06status\x18\x01 \x01(\x0e\x32\".cln.WaitDetails.WaitDetailsStatusH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x07 \x01(\x04H\x06\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x08 \x01(\x0cH\x07\x88\x01\x01\x12\x17\n\nin_channel\x18\t \x01(\tH\x08\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\t\x88\x01\x01\x12!\n\x07in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x0c \x01(\tH\x0b\x88\x01\x01\"\x89\x01\n\x11WaitDetailsStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x43OMPLETE\x10\x05\x12\x0b\n\x07OFFERED\x10\x06\x12\x0b\n\x07SETTLED\x10\x07\x12\x10\n\x0cLOCAL_FAILED\x10\x08\x42\t\n\x07_statusB\x08\n\x06_labelB\x0e\n\x0c_descriptionB\t\n\x07_bolt11B\t\n\x07_bolt12B\t\n\x07_partidB\n\n\x08_groupidB\x0f\n\r_payment_hashB\r\n\x0b_in_channelB\r\n\x0b_in_htlc_idB\n\n\x08_in_msatB\x0e\n\x0c_out_channel\"\r\n\x0bStopRequest\"q\n\x0cStopResponse\x12\x31\n\x06result\x18\x01 \x01(\x0e\x32\x1c.cln.StopResponse.StopResultH\x00\x88\x01\x01\"#\n\nStopResult\x12\x15\n\x11SHUTDOWN_COMPLETE\x10\x00\x42\t\n\x07_result\"g\n\x18PreapprovekeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\"\x1b\n\x19PreapprovekeysendResponse\"*\n\x18PreapproveinvoiceRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"\x1b\n\x19PreapproveinvoiceResponse\"\x15\n\x13StaticbackupRequest\"#\n\x14StaticbackupResponse\x12\x0b\n\x03scb\x18\x01 \x03(\x0c\"d\n\x16\x42kprchannelsapyRequest\x12\x17\n\nstart_time\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x17\x42kprchannelsapyResponse\x12\x36\n\x0c\x63hannels_apy\x18\x01 \x03(\x0b\x32 .cln.BkprchannelsapyChannels_apy\"\xfa\x06\n\x1b\x42kprchannelsapyChannels_apy\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12$\n\x0frouted_out_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0erouted_in_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12(\n\x13lease_fee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x15lease_fee_earned_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x0fpushed_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0epushed_in_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x16our_start_balance_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12/\n\x1a\x63hannel_start_balance_msat\x18\t \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\rfees_out_msat\x18\n \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x0c\x66\x65\x65s_in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x17\n\x0futilization_out\x18\x0c \x01(\t\x12$\n\x17utilization_out_initial\x18\r \x01(\tH\x01\x88\x01\x01\x12\x16\n\x0eutilization_in\x18\x0e \x01(\t\x12#\n\x16utilization_in_initial\x18\x0f \x01(\tH\x02\x88\x01\x01\x12\x0f\n\x07\x61py_out\x18\x10 \x01(\t\x12\x1c\n\x0f\x61py_out_initial\x18\x11 \x01(\tH\x03\x88\x01\x01\x12\x0e\n\x06\x61py_in\x18\x12 \x01(\t\x12\x1b\n\x0e\x61py_in_initial\x18\x13 \x01(\tH\x04\x88\x01\x01\x12\x11\n\tapy_total\x18\x14 \x01(\t\x12\x1e\n\x11\x61py_total_initial\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x16\n\tapy_lease\x18\x16 \x01(\tH\x06\x88\x01\x01\x42\x0f\n\r_fees_in_msatB\x1a\n\x18_utilization_out_initialB\x19\n\x17_utilization_in_initialB\x12\n\x10_apy_out_initialB\x11\n\x0f_apy_in_initialB\x14\n\x12_apy_total_initialB\x0c\n\n_apy_lease\"\xd2\x01\n\x18\x42kprdumpincomecsvRequest\x12\x12\n\ncsv_format\x18\x01 \x01(\t\x12\x15\n\x08\x63sv_file\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10\x63onsolidate_fees\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x17\n\nstart_time\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x05 \x01(\x04H\x03\x88\x01\x01\x42\x0b\n\t_csv_fileB\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"\xd6\x01\n\x19\x42kprdumpincomecsvResponse\x12\x10\n\x08\x63sv_file\x18\x01 \x01(\t\x12N\n\ncsv_format\x18\x02 \x01(\x0e\x32:.cln.BkprdumpincomecsvResponse.BkprdumpincomecsvCsv_format\"W\n\x1b\x42kprdumpincomecsvCsv_format\x12\x0f\n\x0b\x43OINTRACKER\x10\x00\x12\n\n\x06KOINLY\x10\x01\x12\x0b\n\x07HARMONY\x10\x02\x12\x0e\n\nQUICKBOOKS\x10\x03\"%\n\x12\x42kprinspectRequest\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\"7\n\x13\x42kprinspectResponse\x12 \n\x03txs\x18\x01 \x03(\x0b\x32\x13.cln.BkprinspectTxs\"\x9a\x01\n\x0e\x42kprinspectTxs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x18\n\x0b\x62lockheight\x18\x02 \x01(\rH\x00\x88\x01\x01\x12#\n\x0e\x66\x65\x65s_paid_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x07outputs\x18\x04 \x03(\x0b\x32\x1a.cln.BkprinspectTxsOutputsB\x0e\n\x0c_blockheight\"\xbc\x03\n\x15\x42kprinspectTxsOutputs\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12&\n\x11output_value_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x04 \x01(\t\x12%\n\x0b\x63redit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12$\n\ndebit_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12 \n\x13originating_account\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x17\n\noutput_tag\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x16\n\tspend_tag\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rspending_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x42\x0e\n\x0c_credit_msatB\r\n\x0b_debit_msatB\x16\n\x14_originating_accountB\r\n\x0b_output_tagB\x0c\n\n_spend_tagB\x10\n\x0e_spending_txidB\r\n\x0b_payment_id\"@\n\x1c\x42kprlistaccounteventsRequest\x12\x14\n\x07\x61\x63\x63ount\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_account\"Q\n\x1d\x42kprlistaccounteventsResponse\x12\x30\n\x06\x65vents\x18\x01 \x03(\x0b\x32 .cln.BkprlistaccounteventsEvents\"\xa1\x05\n\x1b\x42kprlistaccounteventsEvents\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12S\n\titem_type\x18\x02 \x01(\x0e\x32@.cln.BkprlistaccounteventsEvents.BkprlistaccounteventsEventsType\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x06 \x01(\t\x12\x11\n\ttimestamp\x18\x07 \x01(\r\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x62lockheight\x18\t \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06origin\x18\n \x01(\tH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x11\n\x04txid\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x05\x88\x01\x01\x12#\n\tfees_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x19\n\x0cis_rebalance\x18\x0f \x01(\x08H\x07\x88\x01\x01\x12\x14\n\x07part_id\x18\x10 \x01(\rH\x08\x88\x01\x01\"J\n\x1f\x42kprlistaccounteventsEventsType\x12\x0f\n\x0bONCHAIN_FEE\x10\x00\x12\t\n\x05\x43HAIN\x10\x01\x12\x0b\n\x07\x43HANNEL\x10\x02\x42\x0b\n\t_outpointB\x0e\n\x0c_blockheightB\t\n\x07_originB\r\n\x0b_payment_idB\x07\n\x05_txidB\x0e\n\x0c_descriptionB\x0c\n\n_fees_msatB\x0f\n\r_is_rebalanceB\n\n\x08_part_id\"\x19\n\x17\x42kprlistbalancesRequest\"K\n\x18\x42kprlistbalancesResponse\x12/\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x1d.cln.BkprlistbalancesAccounts\"\xc6\x02\n\x18\x42kprlistbalancesAccounts\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x37\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32%.cln.BkprlistbalancesAccountsBalances\x12\x14\n\x07peer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x16\n\twe_opened\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x0e\x61\x63\x63ount_closed\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x1d\n\x10\x61\x63\x63ount_resolved\x18\x06 \x01(\x08H\x03\x88\x01\x01\x12\x1e\n\x11resolved_at_block\x18\x07 \x01(\rH\x04\x88\x01\x01\x42\n\n\x08_peer_idB\x0c\n\n_we_openedB\x11\n\x0f_account_closedB\x13\n\x11_account_resolvedB\x14\n\x12_resolved_at_block\"X\n BkprlistbalancesAccountsBalances\x12!\n\x0c\x62\x61lance_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x11\n\tcoin_type\x18\x02 \x01(\t\"\x97\x01\n\x15\x42kprlistincomeRequest\x12\x1d\n\x10\x63onsolidate_fees\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x17\n\nstart_time\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x03 \x01(\rH\x02\x88\x01\x01\x42\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x16\x42kprlistincomeResponse\x12\x37\n\rincome_events\x18\x01 \x03(\x0b\x32 .cln.BkprlistincomeIncome_events\"\xb5\x02\n\x1b\x42kprlistincomeIncome_events\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0b\n\x03tag\x18\x02 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x05 \x01(\t\x12\x11\n\ttimestamp\x18\x06 \x01(\r\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04txid\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\n \x01(\x0cH\x03\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x0b\n\t_outpointB\x07\n\x05_txidB\r\n\x0b_payment_id\"\x19\n\x17StreamBlockAddedRequest\"6\n\x16\x42lockAddedNotification\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\x0e\n\x06height\x18\x02 \x01(\r\" \n\x1eStreamChannelOpenFailedRequest\"3\n\x1d\x43hannelOpenFailedNotification\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"\x1c\n\x1aStreamChannelOpenedRequest\"\x83\x01\n\x19\x43hannelOpenedNotification\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12!\n\x0c\x66unding_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x03 \x01(\x0c\x12\x15\n\rchannel_ready\x18\x04 \x01(\x08\x42\x05\n\x03_id\"\x16\n\x14StreamConnectRequest\"\x95\x01\n\x13\x43onnectNotification\x12\n\n\x02id\x18\x01 \x01(\x0c\x12<\n\tdirection\x18\x02 \x01(\x0e\x32).cln.ConnectNotification.ConnectDirection\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x01(\t\"#\n\x10\x43onnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\x18\n\x16StreamCustomMsgRequest\"9\n\x15\x43ustomMsgNotification\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x32\xdb\x33\n\x04Node\x12\x36\n\x07Getinfo\x12\x13.cln.GetinfoRequest\x1a\x14.cln.GetinfoResponse\"\x00\x12<\n\tListPeers\x12\x15.cln.ListpeersRequest\x1a\x16.cln.ListpeersResponse\"\x00\x12<\n\tListFunds\x12\x15.cln.ListfundsRequest\x1a\x16.cln.ListfundsResponse\"\x00\x12\x36\n\x07SendPay\x12\x13.cln.SendpayRequest\x1a\x14.cln.SendpayResponse\"\x00\x12\x45\n\x0cListChannels\x12\x18.cln.ListchannelsRequest\x1a\x19.cln.ListchannelsResponse\"\x00\x12<\n\tAddGossip\x12\x15.cln.AddgossipRequest\x1a\x16.cln.AddgossipResponse\"\x00\x12Q\n\x10\x41utoCleanInvoice\x12\x1c.cln.AutocleaninvoiceRequest\x1a\x1d.cln.AutocleaninvoiceResponse\"\x00\x12H\n\rAutoCleanOnce\x12\x19.cln.AutocleanonceRequest\x1a\x1a.cln.AutocleanonceResponse\"\x00\x12N\n\x0f\x41utoCleanStatus\x12\x1b.cln.AutocleanstatusRequest\x1a\x1c.cln.AutocleanstatusResponse\"\x00\x12\x45\n\x0c\x43heckMessage\x12\x18.cln.CheckmessageRequest\x1a\x19.cln.CheckmessageResponse\"\x00\x12\x30\n\x05\x43lose\x12\x11.cln.CloseRequest\x1a\x12.cln.CloseResponse\"\x00\x12:\n\x0b\x43onnectPeer\x12\x13.cln.ConnectRequest\x1a\x14.cln.ConnectResponse\"\x00\x12H\n\rCreateInvoice\x12\x19.cln.CreateinvoiceRequest\x1a\x1a.cln.CreateinvoiceResponse\"\x00\x12<\n\tDatastore\x12\x15.cln.DatastoreRequest\x1a\x16.cln.DatastoreResponse\"\x00\x12K\n\x0e\x44\x61tastoreUsage\x12\x1a.cln.DatastoreusageRequest\x1a\x1b.cln.DatastoreusageResponse\"\x00\x12\x42\n\x0b\x43reateOnion\x12\x17.cln.CreateonionRequest\x1a\x18.cln.CreateonionResponse\"\x00\x12\x45\n\x0c\x44\x65lDatastore\x12\x18.cln.DeldatastoreRequest\x1a\x19.cln.DeldatastoreResponse\"\x00\x12?\n\nDelInvoice\x12\x16.cln.DelinvoiceRequest\x1a\x17.cln.DelinvoiceResponse\"\x00\x12\x36\n\x07Invoice\x12\x13.cln.InvoiceRequest\x1a\x14.cln.InvoiceResponse\"\x00\x12H\n\rListDatastore\x12\x19.cln.ListdatastoreRequest\x1a\x1a.cln.ListdatastoreResponse\"\x00\x12\x45\n\x0cListInvoices\x12\x18.cln.ListinvoicesRequest\x1a\x19.cln.ListinvoicesResponse\"\x00\x12<\n\tSendOnion\x12\x15.cln.SendonionRequest\x1a\x16.cln.SendonionResponse\"\x00\x12\x45\n\x0cListSendPays\x12\x18.cln.ListsendpaysRequest\x1a\x19.cln.ListsendpaysResponse\"\x00\x12Q\n\x10ListTransactions\x12\x1c.cln.ListtransactionsRequest\x1a\x1d.cln.ListtransactionsResponse\"\x00\x12*\n\x03Pay\x12\x0f.cln.PayRequest\x1a\x10.cln.PayResponse\"\x00\x12<\n\tListNodes\x12\x15.cln.ListnodesRequest\x1a\x16.cln.ListnodesResponse\"\x00\x12K\n\x0eWaitAnyInvoice\x12\x1a.cln.WaitanyinvoiceRequest\x1a\x1b.cln.WaitanyinvoiceResponse\"\x00\x12\x42\n\x0bWaitInvoice\x12\x17.cln.WaitinvoiceRequest\x1a\x18.cln.WaitinvoiceResponse\"\x00\x12\x42\n\x0bWaitSendPay\x12\x17.cln.WaitsendpayRequest\x1a\x18.cln.WaitsendpayResponse\"\x00\x12\x36\n\x07NewAddr\x12\x13.cln.NewaddrRequest\x1a\x14.cln.NewaddrResponse\"\x00\x12\x39\n\x08Withdraw\x12\x14.cln.WithdrawRequest\x1a\x15.cln.WithdrawResponse\"\x00\x12\x36\n\x07KeySend\x12\x13.cln.KeysendRequest\x1a\x14.cln.KeysendResponse\"\x00\x12\x39\n\x08\x46undPsbt\x12\x14.cln.FundpsbtRequest\x1a\x15.cln.FundpsbtResponse\"\x00\x12\x39\n\x08SendPsbt\x12\x14.cln.SendpsbtRequest\x1a\x15.cln.SendpsbtResponse\"\x00\x12\x39\n\x08SignPsbt\x12\x14.cln.SignpsbtRequest\x1a\x15.cln.SignpsbtResponse\"\x00\x12\x39\n\x08UtxoPsbt\x12\x14.cln.UtxopsbtRequest\x1a\x15.cln.UtxopsbtResponse\"\x00\x12<\n\tTxDiscard\x12\x15.cln.TxdiscardRequest\x1a\x16.cln.TxdiscardResponse\"\x00\x12<\n\tTxPrepare\x12\x15.cln.TxprepareRequest\x1a\x16.cln.TxprepareResponse\"\x00\x12\x33\n\x06TxSend\x12\x12.cln.TxsendRequest\x1a\x13.cln.TxsendResponse\"\x00\x12Q\n\x10ListPeerChannels\x12\x1c.cln.ListpeerchannelsRequest\x1a\x1d.cln.ListpeerchannelsResponse\"\x00\x12W\n\x12ListClosedChannels\x12\x1e.cln.ListclosedchannelsRequest\x1a\x1f.cln.ListclosedchannelsResponse\"\x00\x12<\n\tDecodePay\x12\x15.cln.DecodepayRequest\x1a\x16.cln.DecodepayResponse\"\x00\x12\x33\n\x06\x44\x65\x63ode\x12\x12.cln.DecodeRequest\x1a\x13.cln.DecodeResponse\"\x00\x12\x33\n\x06\x44\x65lPay\x12\x12.cln.DelpayRequest\x1a\x13.cln.DelpayResponse\"\x00\x12?\n\nDelForward\x12\x16.cln.DelforwardRequest\x1a\x17.cln.DelforwardResponse\"\x00\x12\x45\n\x0c\x44isableOffer\x12\x18.cln.DisableofferRequest\x1a\x19.cln.DisableofferResponse\"\x00\x12?\n\nDisconnect\x12\x16.cln.DisconnectRequest\x1a\x17.cln.DisconnectResponse\"\x00\x12\x39\n\x08\x46\x65\x65rates\x12\x14.cln.FeeratesRequest\x1a\x15.cln.FeeratesResponse\"\x00\x12\x45\n\x0c\x46\x65tchInvoice\x12\x18.cln.FetchinvoiceRequest\x1a\x19.cln.FetchinvoiceResponse\"\x00\x12W\n\x12\x46undChannel_Cancel\x12\x1e.cln.Fundchannel_cancelRequest\x1a\x1f.cln.Fundchannel_cancelResponse\"\x00\x12]\n\x14\x46undChannel_Complete\x12 .cln.Fundchannel_completeRequest\x1a!.cln.Fundchannel_completeResponse\"\x00\x12\x42\n\x0b\x46undChannel\x12\x17.cln.FundchannelRequest\x1a\x18.cln.FundchannelResponse\"\x00\x12T\n\x11\x46undChannel_Start\x12\x1d.cln.Fundchannel_startRequest\x1a\x1e.cln.Fundchannel_startResponse\"\x00\x12\x33\n\x06GetLog\x12\x12.cln.GetlogRequest\x1a\x13.cln.GetlogResponse\"\x00\x12\x39\n\x08GetRoute\x12\x14.cln.GetrouteRequest\x1a\x15.cln.GetrouteResponse\"\x00\x12\x45\n\x0cListForwards\x12\x18.cln.ListforwardsRequest\x1a\x19.cln.ListforwardsResponse\"\x00\x12?\n\nListOffers\x12\x16.cln.ListoffersRequest\x1a\x17.cln.ListoffersResponse\"\x00\x12\x39\n\x08ListPays\x12\x14.cln.ListpaysRequest\x1a\x15.cln.ListpaysResponse\"\x00\x12<\n\tListHtlcs\x12\x15.cln.ListhtlcsRequest\x1a\x16.cln.ListhtlcsResponse\"\x00\x12Q\n\x10MultiFundChannel\x12\x1c.cln.MultifundchannelRequest\x1a\x1d.cln.MultifundchannelResponse\"\x00\x12\x30\n\x05Offer\x12\x11.cln.OfferRequest\x1a\x12.cln.OfferResponse\"\x00\x12T\n\x11OpenChannel_Abort\x12\x1d.cln.Openchannel_abortRequest\x1a\x1e.cln.Openchannel_abortResponse\"\x00\x12Q\n\x10OpenChannel_Bump\x12\x1c.cln.Openchannel_bumpRequest\x1a\x1d.cln.Openchannel_bumpResponse\"\x00\x12Q\n\x10OpenChannel_Init\x12\x1c.cln.Openchannel_initRequest\x1a\x1d.cln.Openchannel_initResponse\"\x00\x12W\n\x12OpenChannel_Signed\x12\x1e.cln.Openchannel_signedRequest\x1a\x1f.cln.Openchannel_signedResponse\"\x00\x12W\n\x12OpenChannel_Update\x12\x1e.cln.Openchannel_updateRequest\x1a\x1f.cln.Openchannel_updateResponse\"\x00\x12-\n\x04Ping\x12\x10.cln.PingRequest\x1a\x11.cln.PingResponse\"\x00\x12\x33\n\x06Plugin\x12\x12.cln.PluginRequest\x1a\x13.cln.PluginResponse\"\x00\x12H\n\rRenePayStatus\x12\x19.cln.RenepaystatusRequest\x1a\x1a.cln.RenepaystatusResponse\"\x00\x12\x36\n\x07RenePay\x12\x13.cln.RenepayRequest\x1a\x14.cln.RenepayResponse\"\x00\x12H\n\rReserveInputs\x12\x19.cln.ReserveinputsRequest\x1a\x1a.cln.ReserveinputsResponse\"\x00\x12H\n\rSendCustomMsg\x12\x19.cln.SendcustommsgRequest\x1a\x1a.cln.SendcustommsgResponse\"\x00\x12\x42\n\x0bSendInvoice\x12\x17.cln.SendinvoiceRequest\x1a\x18.cln.SendinvoiceResponse\"\x00\x12Q\n\x10SendOnionMessage\x12\x1c.cln.SendonionmessageRequest\x1a\x1d.cln.SendonionmessageResponse\"\x00\x12?\n\nSetChannel\x12\x16.cln.SetchannelRequest\x1a\x17.cln.SetchannelResponse\"\x00\x12<\n\tSetConfig\x12\x15.cln.SetconfigRequest\x1a\x16.cln.SetconfigResponse\"\x00\x12K\n\x0eSetPsbtVersion\x12\x1a.cln.SetpsbtversionRequest\x1a\x1b.cln.SetpsbtversionResponse\"\x00\x12\x42\n\x0bSignInvoice\x12\x17.cln.SigninvoiceRequest\x1a\x18.cln.SigninvoiceResponse\"\x00\x12\x42\n\x0bSignMessage\x12\x17.cln.SignmessageRequest\x1a\x18.cln.SignmessageResponse\"\x00\x12\x42\n\x0bSplice_Init\x12\x17.cln.Splice_initRequest\x1a\x18.cln.Splice_initResponse\"\x00\x12H\n\rSplice_Signed\x12\x19.cln.Splice_signedRequest\x1a\x1a.cln.Splice_signedResponse\"\x00\x12H\n\rSplice_Update\x12\x19.cln.Splice_updateRequest\x1a\x1a.cln.Splice_updateResponse\"\x00\x12N\n\x0fUnreserveInputs\x12\x1b.cln.UnreserveinputsRequest\x1a\x1c.cln.UnreserveinputsResponse\"\x00\x12H\n\rUpgradeWallet\x12\x19.cln.UpgradewalletRequest\x1a\x1a.cln.UpgradewalletResponse\"\x00\x12N\n\x0fWaitBlockHeight\x12\x1b.cln.WaitblockheightRequest\x1a\x1c.cln.WaitblockheightResponse\"\x00\x12-\n\x04Wait\x12\x10.cln.WaitRequest\x1a\x11.cln.WaitResponse\"\x00\x12-\n\x04Stop\x12\x10.cln.StopRequest\x1a\x11.cln.StopResponse\"\x00\x12T\n\x11PreApproveKeysend\x12\x1d.cln.PreapprovekeysendRequest\x1a\x1e.cln.PreapprovekeysendResponse\"\x00\x12T\n\x11PreApproveInvoice\x12\x1d.cln.PreapproveinvoiceRequest\x1a\x1e.cln.PreapproveinvoiceResponse\"\x00\x12\x45\n\x0cStaticBackup\x12\x18.cln.StaticbackupRequest\x1a\x19.cln.StaticbackupResponse\"\x00\x12N\n\x0f\x42kprChannelsApy\x12\x1b.cln.BkprchannelsapyRequest\x1a\x1c.cln.BkprchannelsapyResponse\"\x00\x12T\n\x11\x42kprDumpIncomeCsv\x12\x1d.cln.BkprdumpincomecsvRequest\x1a\x1e.cln.BkprdumpincomecsvResponse\"\x00\x12\x42\n\x0b\x42kprInspect\x12\x17.cln.BkprinspectRequest\x1a\x18.cln.BkprinspectResponse\"\x00\x12`\n\x15\x42kprListAccountEvents\x12!.cln.BkprlistaccounteventsRequest\x1a\".cln.BkprlistaccounteventsResponse\"\x00\x12Q\n\x10\x42kprListBalances\x12\x1c.cln.BkprlistbalancesRequest\x1a\x1d.cln.BkprlistbalancesResponse\"\x00\x12K\n\x0e\x42kprListIncome\x12\x1a.cln.BkprlistincomeRequest\x1a\x1b.cln.BkprlistincomeResponse\"\x00\x62\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nnode.proto\x12\x03\x63ln\x1a\x10primitives.proto\"\x10\n\x0eGetinfoRequest\"\xc1\x04\n\x0fGetinfoResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x61lias\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\r\n\x05\x63olor\x18\x03 \x01(\x0c\x12\x11\n\tnum_peers\x18\x04 \x01(\r\x12\x1c\n\x14num_pending_channels\x18\x05 \x01(\r\x12\x1b\n\x13num_active_channels\x18\x06 \x01(\r\x12\x1d\n\x15num_inactive_channels\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\t\x12\x15\n\rlightning_dir\x18\t \x01(\t\x12\x33\n\x0cour_features\x18\n \x01(\x0b\x32\x18.cln.GetinfoOur_featuresH\x01\x88\x01\x01\x12\x13\n\x0b\x62lockheight\x18\x0b \x01(\r\x12\x0f\n\x07network\x18\x0c \x01(\t\x12(\n\x13\x66\x65\x65s_collected_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x07\x61\x64\x64ress\x18\x0e \x03(\x0b\x32\x13.cln.GetinfoAddress\x12$\n\x07\x62inding\x18\x0f \x03(\x0b\x32\x13.cln.GetinfoBinding\x12\"\n\x15warning_bitcoind_sync\x18\x10 \x01(\tH\x02\x88\x01\x01\x12$\n\x17warning_lightningd_sync\x18\x11 \x01(\tH\x03\x88\x01\x01\x42\x08\n\x06_aliasB\x0f\n\r_our_featuresB\x18\n\x16_warning_bitcoind_syncB\x1a\n\x18_warning_lightningd_sync\"S\n\x13GetinfoOur_features\x12\x0c\n\x04init\x18\x01 \x01(\x0c\x12\x0c\n\x04node\x18\x02 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x03 \x01(\x0c\x12\x0f\n\x07invoice\x18\x04 \x01(\x0c\"\xc4\x01\n\x0eGetinfoAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoAddress.GetinfoAddressType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"G\n\x12GetinfoAddressType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"\xac\x02\n\x0eGetinfoBinding\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoBinding.GetinfoBindingType\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06socket\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x14\n\x07subtype\x18\x05 \x01(\tH\x03\x88\x01\x01\"_\n\x12GetinfoBindingType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x12\r\n\tWEBSOCKET\x10\x05\x42\n\n\x08_addressB\x07\n\x05_portB\t\n\x07_socketB\n\n\x08_subtype\"\xb5\x01\n\x10ListpeersRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x38\n\x05level\x18\x02 \x01(\x0e\x32$.cln.ListpeersRequest.ListpeersLevelH\x01\x88\x01\x01\"E\n\x0eListpeersLevel\x12\x06\n\x02IO\x10\x00\x12\t\n\x05\x44\x45\x42UG\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\x0b\n\x07UNUSUAL\x10\x03\x12\t\n\x05TRACE\x10\x04\x42\x05\n\x03_idB\x08\n\x06_level\"7\n\x11ListpeersResponse\x12\"\n\x05peers\x18\x01 \x03(\x0b\x32\x13.cln.ListpeersPeers\"\xdf\x01\n\x0eListpeersPeers\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x11\n\tconnected\x18\x02 \x01(\x08\x12#\n\x03log\x18\x03 \x03(\x0b\x32\x16.cln.ListpeersPeersLog\x12\x0f\n\x07netaddr\x18\x05 \x03(\t\x12\x15\n\x08\x66\x65\x61tures\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0bremote_addr\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cnum_channels\x18\x08 \x01(\rH\x02\x88\x01\x01\x42\x0b\n\t_featuresB\x0e\n\x0c_remote_addrB\x0f\n\r_num_channels\"\x88\x03\n\x11ListpeersPeersLog\x12?\n\titem_type\x18\x01 \x01(\x0e\x32,.cln.ListpeersPeersLog.ListpeersPeersLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"t\n\x15ListpeersPeersLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"0\n\x10ListfundsRequest\x12\x12\n\x05spent\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_spent\"e\n\x11ListfundsResponse\x12&\n\x07outputs\x18\x01 \x03(\x0b\x32\x15.cln.ListfundsOutputs\x12(\n\x08\x63hannels\x18\x02 \x03(\x0b\x32\x16.cln.ListfundsChannels\"\xb9\x03\n\x10ListfundsOutputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06output\x18\x02 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0cscriptpubkey\x18\x04 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0credeemscript\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12<\n\x06status\x18\x07 \x01(\x0e\x32,.cln.ListfundsOutputs.ListfundsOutputsStatus\x12\x18\n\x0b\x62lockheight\x18\x08 \x01(\rH\x02\x88\x01\x01\x12\x10\n\x08reserved\x18\t \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\n \x01(\rH\x03\x88\x01\x01\"Q\n\x16ListfundsOutputsStatus\x12\x0f\n\x0bUNCONFIRMED\x10\x00\x12\r\n\tCONFIRMED\x10\x01\x12\t\n\x05SPENT\x10\x02\x12\x0c\n\x08IMMATURE\x10\x03\x42\n\n\x08_addressB\x0f\n\r_redeemscriptB\x0e\n\x0c_blockheightB\x14\n\x12_reserved_to_block\"\xab\x02\n\x11ListfundsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12$\n\x0four_amount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x04 \x01(\x0c\x12\x16\n\x0e\x66unding_output\x18\x05 \x01(\r\x12\x11\n\tconnected\x18\x06 \x01(\x08\x12 \n\x05state\x18\x07 \x01(\x0e\x32\x11.cln.ChannelState\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x01\x88\x01\x01\x42\x13\n\x11_short_channel_idB\r\n\x0b_channel_id\"\xbb\x03\n\x0eSendpayRequest\x12 \n\x05route\x18\x01 \x03(\x0b\x32\x11.cln.SendpayRoute\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x13\n\x06partid\x18\x07 \x01(\x04H\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\t \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x0c \x01(\x0cH\x07\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x08\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_bolt11B\x11\n\x0f_payment_secretB\t\n\x07_partidB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x13\n\x11_payment_metadataB\x0e\n\x0c_description\"\xad\x05\n\x0fSendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x32\n\x06status\x18\x04 \x01(\x0e\x32\".cln.SendpayResponse.SendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x14\n\x07message\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\"*\n\rSendpayStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\\\n\x0cSendpayRoute\x12\n\n\x02id\x18\x02 \x01(\x0c\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\x12\x0f\n\x07\x63hannel\x18\x04 \x01(\t\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x01\n\x13ListchannelsRequest\x12\x1d\n\x10short_channel_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06source\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x42\x13\n\x11_short_channel_idB\t\n\x07_sourceB\x0e\n\x0c_destination\"C\n\x14ListchannelsResponse\x12+\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x19.cln.ListchannelsChannels\"\xb3\x03\n\x14ListchannelsChannels\x12\x0e\n\x06source\x18\x01 \x01(\x0c\x12\x13\n\x0b\x64\x65stination\x18\x02 \x01(\x0c\x12\x18\n\x10short_channel_id\x18\x03 \x01(\t\x12\x0e\n\x06public\x18\x04 \x01(\x08\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x15\n\rmessage_flags\x18\x06 \x01(\r\x12\x15\n\rchannel_flags\x18\x07 \x01(\r\x12\x0e\n\x06\x61\x63tive\x18\x08 \x01(\x08\x12\x13\n\x0blast_update\x18\t \x01(\r\x12\x1d\n\x15\x62\x61se_fee_millisatoshi\x18\n \x01(\r\x12\x19\n\x11\x66\x65\x65_per_millionth\x18\x0b \x01(\r\x12\r\n\x05\x64\x65lay\x18\x0c \x01(\r\x12&\n\x11htlc_minimum_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x11htlc_maximum_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x10\n\x08\x66\x65\x61tures\x18\x0f \x01(\x0c\x12\x11\n\tdirection\x18\x10 \x01(\rB\x14\n\x12_htlc_maximum_msat\"#\n\x10\x41\x64\x64gossipRequest\x12\x0f\n\x07message\x18\x01 \x01(\x0c\"\x13\n\x11\x41\x64\x64gossipResponse\"o\n\x17\x41utocleaninvoiceRequest\x12\x17\n\nexpired_by\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"\x81\x01\n\x18\x41utocleaninvoiceResponse\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x17\n\nexpired_by\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x03 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"O\n\x14\x41utocleanonceRequest\x12*\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystem\x12\x0b\n\x03\x61ge\x18\x02 \x01(\x04\"G\n\x15\x41utocleanonceResponse\x12.\n\tautoclean\x18\x01 \x01(\x0b\x32\x1b.cln.AutocleanonceAutoclean\"\xb1\x04\n\x16\x41utocleanonceAutoclean\x12L\n\x11succeededforwards\x18\x01 \x01(\x0b\x32,.cln.AutocleanonceAutocleanSucceededforwardsH\x00\x88\x01\x01\x12\x46\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32).cln.AutocleanonceAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x44\n\rsucceededpays\x18\x03 \x01(\x0b\x32(.cln.AutocleanonceAutocleanSucceededpaysH\x02\x88\x01\x01\x12>\n\nfailedpays\x18\x04 \x01(\x0b\x32%.cln.AutocleanonceAutocleanFailedpaysH\x03\x88\x01\x01\x12\x42\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32\'.cln.AutocleanonceAutocleanPaidinvoicesH\x04\x88\x01\x01\x12H\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32*.cln.AutocleanonceAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"M\n\'AutocleanonceAutocleanSucceededforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"J\n$AutocleanonceAutocleanFailedforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"I\n#AutocleanonceAutocleanSucceededpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"F\n AutocleanonceAutocleanFailedpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"H\n\"AutocleanonceAutocleanPaidinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"K\n%AutocleanonceAutocleanExpiredinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"W\n\x16\x41utocleanstatusRequest\x12/\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystemH\x00\x88\x01\x01\x42\x0c\n\n_subsystem\"K\n\x17\x41utocleanstatusResponse\x12\x30\n\tautoclean\x18\x01 \x01(\x0b\x32\x1d.cln.AutocleanstatusAutoclean\"\xbf\x04\n\x18\x41utocleanstatusAutoclean\x12N\n\x11succeededforwards\x18\x01 \x01(\x0b\x32..cln.AutocleanstatusAutocleanSucceededforwardsH\x00\x88\x01\x01\x12H\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32+.cln.AutocleanstatusAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x46\n\rsucceededpays\x18\x03 \x01(\x0b\x32*.cln.AutocleanstatusAutocleanSucceededpaysH\x02\x88\x01\x01\x12@\n\nfailedpays\x18\x04 \x01(\x0b\x32\'.cln.AutocleanstatusAutocleanFailedpaysH\x03\x88\x01\x01\x12\x44\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32).cln.AutocleanstatusAutocleanPaidinvoicesH\x04\x88\x01\x01\x12J\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32,.cln.AutocleanstatusAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"g\n)AutocleanstatusAutocleanSucceededforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"d\n&AutocleanstatusAutocleanFailedforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"c\n%AutocleanstatusAutocleanSucceededpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"`\n\"AutocleanstatusAutocleanFailedpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"b\n$AutocleanstatusAutocleanPaidinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"e\n\'AutocleanstatusAutocleanExpiredinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"U\n\x13\x43heckmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\r\n\x05zbase\x18\x02 \x01(\t\x12\x13\n\x06pubkey\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x42\t\n\x07_pubkey\"8\n\x14\x43heckmessageResponse\x12\x10\n\x08verified\x18\x01 \x01(\x08\x12\x0e\n\x06pubkey\x18\x02 \x01(\x0c\"\xcb\x02\n\x0c\x43loseRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x11unilateraltimeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x66\x65\x65_negotiation_step\x18\x04 \x01(\tH\x02\x88\x01\x01\x12)\n\rwrong_funding\x18\x05 \x01(\x0b\x32\r.cln.OutpointH\x03\x88\x01\x01\x12\x1f\n\x12\x66orce_lease_closed\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1e\n\x08\x66\x65\x65range\x18\x07 \x03(\x0b\x32\x0c.cln.FeerateB\x14\n\x12_unilateraltimeoutB\x0e\n\x0c_destinationB\x17\n\x15_fee_negotiation_stepB\x10\n\x0e_wrong_fundingB\x15\n\x13_force_lease_closed\"\xab\x01\n\rCloseResponse\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.CloseResponse.CloseType\x12\x0f\n\x02tx\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04txid\x18\x03 \x01(\x0cH\x01\x88\x01\x01\"5\n\tCloseType\x12\n\n\x06MUTUAL\x10\x00\x12\x0e\n\nUNILATERAL\x10\x01\x12\x0c\n\x08UNOPENED\x10\x02\x42\x05\n\x03_txB\x07\n\x05_txid\"T\n\x0e\x43onnectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04host\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x07\n\x05_hostB\x07\n\x05_port\"\xb4\x01\n\x0f\x43onnectResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0c\x12\x38\n\tdirection\x18\x03 \x01(\x0e\x32%.cln.ConnectResponse.ConnectDirection\x12$\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x13.cln.ConnectAddress\"#\n\x10\x43onnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\xfb\x01\n\x0e\x43onnectAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.ConnectAddress.ConnectAddressType\x12\x13\n\x06socket\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04port\x18\x04 \x01(\rH\x02\x88\x01\x01\"P\n\x12\x43onnectAddressType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\t\n\x07_socketB\n\n\x08_addressB\x07\n\x05_port\"J\n\x14\x43reateinvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x10\n\x08preimage\x18\x03 \x01(\x0c\"\xfe\x05\n\x15\x43reateinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12>\n\x06status\x18\x06 \x01(\x0e\x32..cln.CreateinvoiceResponse.CreateinvoiceStatus\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12;\n\rpaid_outpoint\x18\x11 \x01(\x0b\x32\x1f.cln.CreateinvoicePaid_outpointH\n\x88\x01\x01\"8\n\x13\x43reateinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_paid_outpoint\":\n\x1a\x43reateinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x02\n\x10\x44\x61tastoreRequest\x12\x10\n\x03hex\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x36\n\x04mode\x18\x03 \x01(\x0e\x32#.cln.DatastoreRequest.DatastoreModeH\x01\x88\x01\x01\x12\x17\n\ngeneration\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\t\x12\x13\n\x06string\x18\x06 \x01(\tH\x03\x88\x01\x01\"p\n\rDatastoreMode\x12\x0f\n\x0bMUST_CREATE\x10\x00\x12\x10\n\x0cMUST_REPLACE\x10\x01\x12\x15\n\x11\x43REATE_OR_REPLACE\x10\x02\x12\x0f\n\x0bMUST_APPEND\x10\x03\x12\x14\n\x10\x43REATE_OR_APPEND\x10\x04\x42\x06\n\x04_hexB\x07\n\x05_modeB\r\n\x0b_generationB\t\n\x07_string\"\x82\x01\n\x11\x44\x61tastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"$\n\x15\x44\x61tastoreusageRequest\x12\x0b\n\x03key\x18\x01 \x03(\t\"S\n\x16\x44\x61tastoreusageResponse\x12\x39\n\x0e\x64\x61tastoreusage\x18\x01 \x01(\x0b\x32!.cln.DatastoreusageDatastoreusage\"@\n\x1c\x44\x61tastoreusageDatastoreusage\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x13\n\x0btotal_bytes\x18\x02 \x01(\x04\"\x9d\x01\n\x12\x43reateonionRequest\x12\"\n\x04hops\x18\x01 \x03(\x0b\x32\x14.cln.CreateonionHops\x12\x11\n\tassocdata\x18\x02 \x01(\x0c\x12\x18\n\x0bsession_key\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x17\n\nonion_size\x18\x04 \x01(\rH\x01\x88\x01\x01\x42\x0e\n\x0c_session_keyB\r\n\x0b_onion_size\"<\n\x13\x43reateonionResponse\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12\x16\n\x0eshared_secrets\x18\x02 \x03(\x0c\"2\n\x0f\x43reateonionHops\x12\x0e\n\x06pubkey\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\"J\n\x13\x44\x65ldatastoreRequest\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x03 \x03(\tB\r\n\x0b_generation\"\x85\x01\n\x14\x44\x65ldatastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xb6\x01\n\x11\x44\x65linvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\x12\x37\n\x06status\x18\x02 \x01(\x0e\x32\'.cln.DelinvoiceRequest.DelinvoiceStatus\x12\x15\n\x08\x64\x65sconly\x18\x03 \x01(\x08H\x00\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\x0b\n\t_desconly\"\xe6\x05\n\x12\x44\x65linvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x38\n\x06status\x18\x07 \x01(\x0e\x32(.cln.DelinvoiceResponse.DelinvoiceStatus\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x16\n\tpay_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\t\x88\x01\x01\x12\x14\n\x07paid_at\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"\xfa\x01\n\x0eInvoiceRequest\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tfallbacks\x18\x04 \x03(\t\x12\x15\n\x08preimage\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04\x63ltv\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18\x07 \x01(\x04H\x02\x88\x01\x01\x12\x19\n\x0c\x64\x65schashonly\x18\t \x01(\x08H\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x10.cln.AmountOrAnyB\x0b\n\t_preimageB\x07\n\x05_cltvB\t\n\x07_expiryB\x0f\n\r_deschashonly\"\x95\x03\n\x0fInvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x16\n\x0epayment_secret\x18\x03 \x01(\x0c\x12\x12\n\nexpires_at\x18\x04 \x01(\x04\x12\x1d\n\x10warning_capacity\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0fwarning_offline\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10warning_deadends\x18\x07 \x01(\tH\x02\x88\x01\x01\x12#\n\x16warning_private_unused\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x18\n\x0bwarning_mpp\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rcreated_index\x18\n \x01(\x04H\x05\x88\x01\x01\x42\x13\n\x11_warning_capacityB\x12\n\x10_warning_offlineB\x13\n\x11_warning_deadendsB\x19\n\x17_warning_private_unusedB\x0e\n\x0c_warning_mppB\x10\n\x0e_created_index\"#\n\x14ListdatastoreRequest\x12\x0b\n\x03key\x18\x02 \x03(\t\"G\n\x15ListdatastoreResponse\x12.\n\tdatastore\x18\x01 \x03(\x0b\x32\x1b.cln.ListdatastoreDatastore\"\x87\x01\n\x16ListdatastoreDatastore\x12\x0b\n\x03key\x18\x01 \x03(\t\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xde\x02\n\x13ListinvoicesRequest\x12\x12\n\x05label\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tinvstring\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08offer_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x12>\n\x05index\x18\x05 \x01(\x0e\x32*.cln.ListinvoicesRequest.ListinvoicesIndexH\x04\x88\x01\x01\x12\x12\n\x05start\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x12\n\x05limit\x18\x07 \x01(\rH\x06\x88\x01\x01\"-\n\x11ListinvoicesIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\x08\n\x06_labelB\x0c\n\n_invstringB\x0f\n\r_payment_hashB\x0b\n\t_offer_idB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListinvoicesResponse\x12+\n\x08invoices\x18\x01 \x03(\x0b\x32\x19.cln.ListinvoicesInvoices\"\xd4\x06\n\x14ListinvoicesInvoices\x12\r\n\x05label\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListinvoicesInvoices.ListinvoicesInvoicesStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x16\n\tpay_index\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x14\n\x07paid_at\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0e \x01(\x0cH\x08\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\x12\x42\n\rpaid_outpoint\x18\x12 \x01(\x0b\x32&.cln.ListinvoicesInvoicesPaid_outpointH\x0c\x88\x01\x01\"?\n\x1aListinvoicesInvoicesStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x11\n\x0f_local_offer_idB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"A\n!ListinvoicesInvoicesPaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x03\n\x10SendonionRequest\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12*\n\tfirst_hop\x18\x02 \x01(\x0b\x32\x17.cln.SendonionFirst_hop\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\x05label\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0eshared_secrets\x18\x05 \x03(\x0c\x12\x13\n\x06partid\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\t \x01(\x0cH\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\x0b \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\x0e\n\x0c_destinationB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0e\n\x0c_description\"\xe7\x04\n\x11SendonionResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x36\n\x06status\x18\x03 \x01(\x0e\x32&.cln.SendonionResponse.SendonionStatus\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x06 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\n \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0b \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x07message\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x13\n\x06partid\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\",\n\x0fSendonionStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"Q\n\x12SendonionFirst_hop\x12\n\n\x02id\x18\x01 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\"\xa0\x03\n\x13ListsendpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12@\n\x06status\x18\x03 \x01(\x0e\x32+.cln.ListsendpaysRequest.ListsendpaysStatusH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListsendpaysRequest.ListsendpaysIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\";\n\x12ListsendpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"-\n\x11ListsendpaysIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_statusB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListsendpaysResponse\x12+\n\x08payments\x18\x01 \x03(\x0b\x32\x19.cln.ListsendpaysPayments\"\xfc\x05\n\x14ListsendpaysPayments\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0f\n\x07groupid\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListsendpaysPayments.ListsendpaysPaymentsStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\n \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x12\x13\n\x06partid\x18\x0f \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\n\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x12 \x01(\x04H\x0b\x88\x01\x01\"C\n\x1aListsendpaysPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0f\n\r_completed_at\"\x19\n\x17ListtransactionsRequest\"S\n\x18ListtransactionsResponse\x12\x37\n\x0ctransactions\x18\x01 \x03(\x0b\x32!.cln.ListtransactionsTransactions\"\xf8\x01\n\x1cListtransactionsTransactions\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\r\n\x05rawtx\x18\x02 \x01(\x0c\x12\x13\n\x0b\x62lockheight\x18\x03 \x01(\r\x12\x0f\n\x07txindex\x18\x04 \x01(\r\x12\x10\n\x08locktime\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\r\x12\x37\n\x06inputs\x18\t \x03(\x0b\x32\'.cln.ListtransactionsTransactionsInputs\x12\x39\n\x07outputs\x18\n \x03(\x0b\x32(.cln.ListtransactionsTransactionsOutputs\"S\n\"ListtransactionsTransactionsInputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\r\n\x05index\x18\x02 \x01(\r\x12\x10\n\x08sequence\x18\x03 \x01(\r\"l\n#ListtransactionsTransactionsOutputs\x12\r\n\x05index\x18\x01 \x01(\r\x12\x14\n\x0cscriptPubKey\x18\x03 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x04\n\nPayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x17\n\nriskfactor\x18\x08 \x01(\x01H\x05\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\n \x03(\t\x12 \n\x06maxfee\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0c \x01(\tH\x07\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0e \x01(\x0cH\t\x88\x01\x01\x12&\n\x0cpartial_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x42\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_riskfactorB\t\n\x07_maxfeeB\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0f\n\r_partial_msat\"\xfb\x02\n\x0bPayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12*\n\x06status\x18\t \x01(\x0e\x32\x1a.cln.PayResponse.PayStatus\"2\n\tPayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"*\n\x10ListnodesRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListnodesResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.cln.ListnodesNodes\"\xba\x02\n\x0eListnodesNodes\x12\x0e\n\x06nodeid\x18\x01 \x01(\x0c\x12\x1b\n\x0elast_timestamp\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x12\n\x05\x61lias\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x12\n\x05\x63olor\x18\x04 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x05 \x01(\x0cH\x03\x88\x01\x01\x12/\n\taddresses\x18\x06 \x03(\x0b\x32\x1c.cln.ListnodesNodesAddresses\x12\x42\n\x10option_will_fund\x18\x07 \x01(\x0b\x32#.cln.ListnodesNodesOption_will_fundH\x04\x88\x01\x01\x42\x11\n\x0f_last_timestampB\x08\n\x06_aliasB\x08\n\x06_colorB\x0b\n\t_featuresB\x13\n\x11_option_will_fund\"\xf4\x01\n\x1eListnodesNodesOption_will_fund\x12(\n\x13lease_fee_base_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x17\n\x0flease_fee_basis\x18\x02 \x01(\r\x12\x16\n\x0e\x66unding_weight\x18\x03 \x01(\r\x12.\n\x19\x63hannel_fee_max_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x30\n(channel_fee_max_proportional_thousandths\x18\x05 \x01(\r\x12\x15\n\rcompact_lease\x18\x06 \x01(\x0c\"\xe8\x01\n\x17ListnodesNodesAddresses\x12K\n\titem_type\x18\x01 \x01(\x0e\x32\x38.cln.ListnodesNodesAddresses.ListnodesNodesAddressesType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"P\n\x1bListnodesNodesAddressesType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"g\n\x15WaitanyinvoiceRequest\x12\x1a\n\rlastpay_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\x10\n\x0e_lastpay_indexB\n\n\x08_timeout\"\xbf\x05\n\x16WaitanyinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12@\n\x06status\x18\x04 \x01(\x0e\x32\x30.cln.WaitanyinvoiceResponse.WaitanyinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12<\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32 .cln.WaitanyinvoicePaid_outpointH\t\x88\x01\x01\"-\n\x14WaitanyinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\";\n\x1bWaitanyinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"#\n\x12WaitinvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\"\xb0\x05\n\x13WaitinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitinvoiceResponse.WaitinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x39\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32\x1d.cln.WaitinvoicePaid_outpointH\t\x88\x01\x01\"*\n\x11WaitinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"8\n\x18WaitinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\x8e\x01\n\x12WaitsendpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x13\n\x06partid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x02\x88\x01\x01\x42\t\n\x07_partidB\n\n\x08_timeoutB\n\n\x08_groupid\"\x8e\x05\n\x13WaitsendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitsendpayResponse.WaitsendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\"!\n\x11WaitsendpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\x97\x01\n\x0eNewaddrRequest\x12@\n\x0b\x61\x64\x64resstype\x18\x01 \x01(\x0e\x32&.cln.NewaddrRequest.NewaddrAddresstypeH\x00\x88\x01\x01\"3\n\x12NewaddrAddresstype\x12\n\n\x06\x42\x45\x43H32\x10\x00\x12\x07\n\x03\x41LL\x10\x02\x12\x08\n\x04P2TR\x10\x03\x42\x0e\n\x0c_addresstype\"M\n\x0fNewaddrResponse\x12\x13\n\x06\x62\x65\x63h32\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04p2tr\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\t\n\x07_bech32B\x07\n\x05_p2tr\"\xb9\x01\n\x0fWithdrawRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\t\x12!\n\x07satoshi\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\"\n\x07\x66\x65\x65rate\x18\x05 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_feerate\":\n\x10WithdrawResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0c\n\x04psbt\x18\x03 \x01(\t\"\x82\x03\n\x0eKeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12+\n\nroutehints\x18\x08 \x01(\x0b\x32\x12.cln.RoutehintListH\x05\x88\x01\x01\x12&\n\textratlvs\x18\t \x01(\x0b\x32\x0e.cln.TlvStreamH\x06\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_routehintsB\x0c\n\n_extratlvs\"\xf2\x02\n\x0fKeysendResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x32\n\x06status\x18\t \x01(\x0e\x32\".cln.KeysendResponse.KeysendStatus\"\x1d\n\rKeysendStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"\xa4\x03\n\x0f\x46undpsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x14\n\x07minconf\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\x08 \x01(\x08H\x04\x88\x01\x01\x12\x17\n\nnonwrapped\x18\t \x01(\x08H\x05\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x06\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\x13\n\x11_excess_as_changeB\r\n\x0b_nonwrappedB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10\x46undpsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.FundpsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14\x46undpsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"A\n\x0fSendpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\",\n\x10SendpsbtResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"1\n\x0fSignpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x10\n\x08signonly\x18\x02 \x03(\r\"\'\n\x10SignpsbtResponse\x12\x13\n\x0bsigned_psbt\x18\x01 \x01(\t\"\xa0\x03\n\x0fUtxopsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x00\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x02\x88\x01\x01\x12\x17\n\nreservedok\x18\x08 \x01(\x08H\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\t \x01(\x08H\x04\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\r\n\x0b_reservedokB\x13\n\x11_excess_as_changeB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10UtxopsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.UtxopsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14UtxopsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\" \n\x10TxdiscardRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"6\n\x11TxdiscardResponse\x12\x13\n\x0bunsigned_tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"\xa4\x01\n\x10TxprepareRequest\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12 \n\x07outputs\x18\x05 \x03(\x0b\x32\x0f.cln.OutputDescB\n\n\x08_feerateB\n\n\x08_minconf\"D\n\x11TxprepareResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x13\n\x0bunsigned_tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"\x1d\n\rTxsendRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"8\n\x0eTxsendResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"1\n\x17ListpeerchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"K\n\x18ListpeerchannelsResponse\x12/\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x1d.cln.ListpeerchannelsChannels\"\xd7\x1b\n\x18ListpeerchannelsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x16\n\x0epeer_connected\x18\x02 \x01(\x08\x12J\n\x05state\x18\x03 \x01(\x0e\x32;.cln.ListpeerchannelsChannels.ListpeerchannelsChannelsState\x12\x19\n\x0cscratch_txid\x18\x04 \x01(\x0cH\x00\x88\x01\x01\x12:\n\x07\x66\x65\x65rate\x18\x06 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFeerateH\x01\x88\x01\x01\x12\x12\n\x05owner\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x19\n\x0c\x66unding_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x1b\n\x0e\x66unding_outnum\x18\x0b \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x0finitial_feerate\x18\x0c \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0clast_feerate\x18\r \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0cnext_feerate\x18\x0e \x01(\tH\t\x88\x01\x01\x12\x1a\n\rnext_fee_step\x18\x0f \x01(\rH\n\x88\x01\x01\x12\x37\n\x08inflight\x18\x10 \x03(\x0b\x32%.cln.ListpeerchannelsChannelsInflight\x12\x15\n\x08\x63lose_to\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\x12\x14\n\x07private\x18\x12 \x01(\x08H\x0c\x88\x01\x01\x12 \n\x06opener\x18\x13 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x14 \x01(\x0e\x32\x10.cln.ChannelSideH\r\x88\x01\x01\x12:\n\x07\x66unding\x18\x16 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFundingH\x0e\x88\x01\x01\x12$\n\nto_us_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x0f\x88\x01\x01\x12(\n\x0emin_to_us_msat\x18\x18 \x01(\x0b\x32\x0b.cln.AmountH\x10\x88\x01\x01\x12(\n\x0emax_to_us_msat\x18\x19 \x01(\x0b\x32\x0b.cln.AmountH\x11\x88\x01\x01\x12$\n\ntotal_msat\x18\x1a \x01(\x0b\x32\x0b.cln.AmountH\x12\x88\x01\x01\x12\'\n\rfee_base_msat\x18\x1b \x01(\x0b\x32\x0b.cln.AmountH\x13\x88\x01\x01\x12(\n\x1b\x66\x65\x65_proportional_millionths\x18\x1c \x01(\rH\x14\x88\x01\x01\x12)\n\x0f\x64ust_limit_msat\x18\x1d \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x30\n\x16max_total_htlc_in_msat\x18\x1e \x01(\x0b\x32\x0b.cln.AmountH\x16\x88\x01\x01\x12,\n\x12their_reserve_msat\x18\x1f \x01(\x0b\x32\x0b.cln.AmountH\x17\x88\x01\x01\x12*\n\x10our_reserve_msat\x18 \x01(\x0b\x32\x0b.cln.AmountH\x18\x88\x01\x01\x12(\n\x0espendable_msat\x18! \x01(\x0b\x32\x0b.cln.AmountH\x19\x88\x01\x01\x12)\n\x0freceivable_msat\x18\" \x01(\x0b\x32\x0b.cln.AmountH\x1a\x88\x01\x01\x12.\n\x14minimum_htlc_in_msat\x18# \x01(\x0b\x32\x0b.cln.AmountH\x1b\x88\x01\x01\x12/\n\x15minimum_htlc_out_msat\x18$ \x01(\x0b\x32\x0b.cln.AmountH\x1c\x88\x01\x01\x12/\n\x15maximum_htlc_out_msat\x18% \x01(\x0b\x32\x0b.cln.AmountH\x1d\x88\x01\x01\x12 \n\x13their_to_self_delay\x18& \x01(\rH\x1e\x88\x01\x01\x12\x1e\n\x11our_to_self_delay\x18\' \x01(\rH\x1f\x88\x01\x01\x12\x1f\n\x12max_accepted_htlcs\x18( \x01(\rH \x88\x01\x01\x12\x36\n\x05\x61lias\x18) \x01(\x0b\x32\".cln.ListpeerchannelsChannelsAliasH!\x88\x01\x01\x12\x0e\n\x06status\x18+ \x03(\t\x12 \n\x13in_payments_offered\x18, \x01(\x04H\"\x88\x01\x01\x12)\n\x0fin_offered_msat\x18- \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\"\n\x15in_payments_fulfilled\x18. \x01(\x04H$\x88\x01\x01\x12+\n\x11in_fulfilled_msat\x18/ \x01(\x0b\x32\x0b.cln.AmountH%\x88\x01\x01\x12!\n\x14out_payments_offered\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x10out_offered_msat\x18\x31 \x01(\x0b\x32\x0b.cln.AmountH\'\x88\x01\x01\x12#\n\x16out_payments_fulfilled\x18\x32 \x01(\x04H(\x88\x01\x01\x12,\n\x12out_fulfilled_msat\x18\x33 \x01(\x0b\x32\x0b.cln.AmountH)\x88\x01\x01\x12\x31\n\x05htlcs\x18\x34 \x03(\x0b\x32\".cln.ListpeerchannelsChannelsHtlcs\x12\x1a\n\rclose_to_addr\x18\x35 \x01(\tH*\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\x36 \x01(\x08H+\x88\x01\x01\x12:\n\x07updates\x18\x37 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsUpdatesH,\x88\x01\x01\x12#\n\x16last_stable_connection\x18\x38 \x01(\x04H-\x88\x01\x01\x12\x17\n\nlost_state\x18\x39 \x01(\x08H.\x88\x01\x01\x12\x1a\n\rreestablished\x18: \x01(\x08H/\x88\x01\x01\x12*\n\x10last_tx_fee_msat\x18; \x01(\x0b\x32\x0b.cln.AmountH0\x88\x01\x01\x12\x16\n\tdirection\x18< \x01(\rH1\x88\x01\x01\"\x80\x03\n\x1dListpeerchannelsChannelsState\x12\x0c\n\x08OPENINGD\x10\x00\x12\x1c\n\x18\x43HANNELD_AWAITING_LOCKIN\x10\x01\x12\x13\n\x0f\x43HANNELD_NORMAL\x10\x02\x12\x1a\n\x16\x43HANNELD_SHUTTING_DOWN\x10\x03\x12\x18\n\x14\x43LOSINGD_SIGEXCHANGE\x10\x04\x12\x15\n\x11\x43LOSINGD_COMPLETE\x10\x05\x12\x17\n\x13\x41WAITING_UNILATERAL\x10\x06\x12\x16\n\x12\x46UNDING_SPEND_SEEN\x10\x07\x12\x0b\n\x07ONCHAIN\x10\x08\x12\x17\n\x13\x44UALOPEND_OPEN_INIT\x10\t\x12\x1d\n\x19\x44UALOPEND_AWAITING_LOCKIN\x10\n\x12\x1c\n\x18\x43HANNELD_AWAITING_SPLICE\x10\x0b\x12\x1c\n\x18\x44UALOPEND_OPEN_COMMITTED\x10\x0c\x12\x1f\n\x1b\x44UALOPEND_OPEN_COMMIT_READY\x10\rB\x0f\n\r_scratch_txidB\n\n\x08_feerateB\x08\n\x06_ownerB\x13\n\x11_short_channel_idB\r\n\x0b_channel_idB\x0f\n\r_funding_txidB\x11\n\x0f_funding_outnumB\x12\n\x10_initial_feerateB\x0f\n\r_last_feerateB\x0f\n\r_next_feerateB\x10\n\x0e_next_fee_stepB\x0b\n\t_close_toB\n\n\x08_privateB\t\n\x07_closerB\n\n\x08_fundingB\r\n\x0b_to_us_msatB\x11\n\x0f_min_to_us_msatB\x11\n\x0f_max_to_us_msatB\r\n\x0b_total_msatB\x10\n\x0e_fee_base_msatB\x1e\n\x1c_fee_proportional_millionthsB\x12\n\x10_dust_limit_msatB\x19\n\x17_max_total_htlc_in_msatB\x15\n\x13_their_reserve_msatB\x13\n\x11_our_reserve_msatB\x11\n\x0f_spendable_msatB\x12\n\x10_receivable_msatB\x17\n\x15_minimum_htlc_in_msatB\x18\n\x16_minimum_htlc_out_msatB\x18\n\x16_maximum_htlc_out_msatB\x16\n\x14_their_to_self_delayB\x14\n\x12_our_to_self_delayB\x15\n\x13_max_accepted_htlcsB\x08\n\x06_aliasB\x16\n\x14_in_payments_offeredB\x12\n\x10_in_offered_msatB\x18\n\x16_in_payments_fulfilledB\x14\n\x12_in_fulfilled_msatB\x17\n\x15_out_payments_offeredB\x13\n\x11_out_offered_msatB\x19\n\x17_out_payments_fulfilledB\x15\n\x13_out_fulfilled_msatB\x10\n\x0e_close_to_addrB\x14\n\x12_ignore_fee_limitsB\n\n\x08_updatesB\x19\n\x17_last_stable_connectionB\r\n\x0b_lost_stateB\x10\n\x0e_reestablishedB\x13\n\x11_last_tx_fee_msatB\x0c\n\n_direction\"\xa7\x01\n\x1fListpeerchannelsChannelsUpdates\x12\x38\n\x05local\x18\x01 \x01(\x0b\x32).cln.ListpeerchannelsChannelsUpdatesLocal\x12?\n\x06remote\x18\x02 \x01(\x0b\x32*.cln.ListpeerchannelsChannelsUpdatesRemoteH\x00\x88\x01\x01\x42\t\n\x07_remote\"\xda\x01\n$ListpeerchannelsChannelsUpdatesLocal\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"\xdb\x01\n%ListpeerchannelsChannelsUpdatesRemote\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"?\n\x1fListpeerchannelsChannelsFeerate\x12\r\n\x05perkw\x18\x01 \x01(\r\x12\r\n\x05perkb\x18\x02 \x01(\r\"\x8b\x02\n ListpeerchannelsChannelsInflight\x12\x14\n\x0c\x66unding_txid\x18\x01 \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\x02 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x03 \x01(\t\x12\'\n\x12total_funding_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10our_funding_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x0cscratch_txid\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x1a\n\rsplice_amount\x18\x07 \x01(\x12H\x01\x88\x01\x01\x42\x0f\n\r_scratch_txidB\x10\n\x0e_splice_amount\"\x9d\x02\n\x1fListpeerchannelsChannelsFunding\x12%\n\x0bpushed_msat\x18\x01 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12%\n\x10local_funds_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11remote_funds_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\rfee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\'\n\rfee_rcvd_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x42\x0e\n\x0c_pushed_msatB\x10\n\x0e_fee_paid_msatB\x10\n\x0e_fee_rcvd_msat\"]\n\x1dListpeerchannelsChannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"\xf9\x02\n\x1dListpeerchannelsChannelsHtlcs\x12\\\n\tdirection\x18\x01 \x01(\x0e\x32I.cln.ListpeerchannelsChannelsHtlcs.ListpeerchannelsChannelsHtlcsDirection\x12\n\n\x02id\x18\x02 \x01(\x04\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x0e\n\x06\x65xpiry\x18\x04 \x01(\r\x12\x14\n\x0cpayment_hash\x18\x05 \x01(\x0c\x12\x1a\n\rlocal_trimmed\x18\x06 \x01(\x08H\x00\x88\x01\x01\x12\x13\n\x06status\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x05state\x18\x08 \x01(\x0e\x32\x0e.cln.HtlcState\"9\n&ListpeerchannelsChannelsHtlcsDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\x42\x10\n\x0e_local_trimmedB\t\n\x07_status\"3\n\x19ListclosedchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"[\n\x1aListclosedchannelsResponse\x12=\n\x0e\x63losedchannels\x18\x01 \x03(\x0b\x32%.cln.ListclosedchannelsClosedchannels\"\xf2\t\n ListclosedchannelsClosedchannels\x12\x14\n\x07peer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x01\x88\x01\x01\x12>\n\x05\x61lias\x18\x04 \x01(\x0b\x32*.cln.ListclosedchannelsClosedchannelsAliasH\x02\x88\x01\x01\x12 \n\x06opener\x18\x05 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x06 \x01(\x0e\x32\x10.cln.ChannelSideH\x03\x88\x01\x01\x12\x0f\n\x07private\x18\x07 \x01(\x08\x12\x1f\n\x17total_local_commitments\x18\t \x01(\x04\x12 \n\x18total_remote_commitments\x18\n \x01(\x04\x12\x18\n\x10total_htlcs_sent\x18\x0b \x01(\x04\x12\x14\n\x0c\x66unding_txid\x18\x0c \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\r \x01(\r\x12\x0e\n\x06leased\x18\x0e \x01(\x08\x12/\n\x15\x66unding_fee_paid_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12/\n\x15\x66unding_fee_rcvd_msat\x18\x10 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12-\n\x13\x66unding_pushed_msat\x18\x11 \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1f\n\ntotal_msat\x18\x12 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x66inal_to_us_msat\x18\x13 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emin_to_us_msat\x18\x14 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emax_to_us_msat\x18\x15 \x01(\x0b\x32\x0b.cln.Amount\x12!\n\x14last_commitment_txid\x18\x16 \x01(\x0cH\x07\x88\x01\x01\x12\x32\n\x18last_commitment_fee_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x66\n\x0b\x63lose_cause\x18\x18 \x01(\x0e\x32Q.cln.ListclosedchannelsClosedchannels.ListclosedchannelsClosedchannelsClose_cause\x12#\n\x16last_stable_connection\x18\x19 \x01(\x04H\t\x88\x01\x01\"v\n+ListclosedchannelsClosedchannelsClose_cause\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05LOCAL\x10\x01\x12\x08\n\x04USER\x10\x02\x12\n\n\x06REMOTE\x10\x03\x12\x0c\n\x08PROTOCOL\x10\x04\x12\x0b\n\x07ONCHAIN\x10\x05\x42\n\n\x08_peer_idB\x13\n\x11_short_channel_idB\x08\n\x06_aliasB\t\n\x07_closerB\x18\n\x16_funding_fee_paid_msatB\x18\n\x16_funding_fee_rcvd_msatB\x16\n\x14_funding_pushed_msatB\x17\n\x15_last_commitment_txidB\x1b\n\x19_last_commitment_fee_msatB\x19\n\x17_last_stable_connection\"e\n%ListclosedchannelsClosedchannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"L\n\x10\x44\x65\x63odepayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\x8d\x04\n\x11\x44\x65\x63odepayResponse\x12\x10\n\x08\x63urrency\x18\x01 \x01(\t\x12\x12\n\ncreated_at\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\x04\x12\r\n\x05payee\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x11\n\tsignature\x18\x07 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x1d\n\x15min_final_cltv_expiry\x18\n \x01(\r\x12\x1b\n\x0epayment_secret\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\r \x01(\x0cH\x05\x88\x01\x01\x12*\n\tfallbacks\x18\x0e \x03(\x0b\x32\x17.cln.DecodepayFallbacks\x12\"\n\x05\x65xtra\x18\x10 \x03(\x0b\x32\x13.cln.DecodepayExtraB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x13\n\x11_description_hashB\x11\n\x0f_payment_secretB\x0b\n\t_featuresB\x13\n\x11_payment_metadata\"\xd0\x01\n\x12\x44\x65\x63odepayFallbacks\x12\x41\n\titem_type\x18\x01 \x01(\x0e\x32..cln.DecodepayFallbacks.DecodepayFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x0b\n\x03hex\x18\x03 \x01(\x0c\"N\n\x16\x44\x65\x63odepayFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42\x07\n\x05_addr\"+\n\x0e\x44\x65\x63odepayExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\"\x1f\n\rDecodeRequest\x12\x0e\n\x06string\x18\x01 \x01(\t\"\xb7#\n\x0e\x44\x65\x63odeResponse\x12\x31\n\titem_type\x18\x01 \x01(\x0e\x32\x1e.cln.DecodeResponse.DecodeType\x12\r\n\x05valid\x18\x02 \x01(\x08\x12\x15\n\x08offer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0coffer_chains\x18\x04 \x03(\x0c\x12\x1b\n\x0eoffer_metadata\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x1b\n\x0eoffer_currency\x18\x06 \x01(\tH\x02\x88\x01\x01\x12+\n\x1ewarning_unknown_offer_currency\x18\x07 \x01(\tH\x03\x88\x01\x01\x12 \n\x13\x63urrency_minor_unit\x18\x08 \x01(\rH\x04\x88\x01\x01\x12\x19\n\x0coffer_amount\x18\t \x01(\x04H\x05\x88\x01\x01\x12+\n\x11offer_amount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1e\n\x11offer_description\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0coffer_issuer\x18\x0c \x01(\tH\x08\x88\x01\x01\x12\x1b\n\x0eoffer_features\x18\r \x01(\x0cH\t\x88\x01\x01\x12\"\n\x15offer_absolute_expiry\x18\x0e \x01(\x04H\n\x88\x01\x01\x12\x1f\n\x12offer_quantity_max\x18\x0f \x01(\x04H\x0b\x88\x01\x01\x12+\n\x0boffer_paths\x18\x10 \x03(\x0b\x32\x16.cln.DecodeOffer_paths\x12\x1a\n\roffer_node_id\x18\x11 \x01(\x0cH\x0c\x88\x01\x01\x12*\n\x1dwarning_missing_offer_node_id\x18\x14 \x01(\tH\r\x88\x01\x01\x12.\n!warning_invalid_offer_description\x18\x15 \x01(\tH\x0e\x88\x01\x01\x12.\n!warning_missing_offer_description\x18\x16 \x01(\tH\x0f\x88\x01\x01\x12+\n\x1ewarning_invalid_offer_currency\x18\x17 \x01(\tH\x10\x88\x01\x01\x12)\n\x1cwarning_invalid_offer_issuer\x18\x18 \x01(\tH\x11\x88\x01\x01\x12\x1c\n\x0finvreq_metadata\x18\x19 \x01(\x0cH\x12\x88\x01\x01\x12\x1c\n\x0finvreq_payer_id\x18\x1a \x01(\x0cH\x13\x88\x01\x01\x12\x19\n\x0cinvreq_chain\x18\x1b \x01(\x0cH\x14\x88\x01\x01\x12,\n\x12invreq_amount_msat\x18\x1c \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x1c\n\x0finvreq_features\x18\x1d \x01(\x0cH\x16\x88\x01\x01\x12\x1c\n\x0finvreq_quantity\x18\x1e \x01(\x04H\x17\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x1f \x01(\tH\x18\x88\x01\x01\x12&\n\x19invreq_recurrence_counter\x18 \x01(\rH\x19\x88\x01\x01\x12$\n\x17invreq_recurrence_start\x18! \x01(\rH\x1a\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_metadata\x18# \x01(\tH\x1b\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_payer_id\x18$ \x01(\tH\x1c\x88\x01\x01\x12.\n!warning_invalid_invreq_payer_note\x18% \x01(\tH\x1d\x88\x01\x01\x12\x36\n)warning_missing_invoice_request_signature\x18& \x01(\tH\x1e\x88\x01\x01\x12\x36\n)warning_invalid_invoice_request_signature\x18\' \x01(\tH\x1f\x88\x01\x01\x12\x1f\n\x12invoice_created_at\x18) \x01(\x04H \x88\x01\x01\x12$\n\x17invoice_relative_expiry\x18* \x01(\rH!\x88\x01\x01\x12!\n\x14invoice_payment_hash\x18+ \x01(\x0cH\"\x88\x01\x01\x12-\n\x13invoice_amount_msat\x18, \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\x37\n\x11invoice_fallbacks\x18- \x03(\x0b\x32\x1c.cln.DecodeInvoice_fallbacks\x12\x1d\n\x10invoice_features\x18. \x01(\x0cH$\x88\x01\x01\x12\x1c\n\x0finvoice_node_id\x18/ \x01(\x0cH%\x88\x01\x01\x12(\n\x1binvoice_recurrence_basetime\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x1dwarning_missing_invoice_paths\x18\x32 \x01(\tH\'\x88\x01\x01\x12/\n\"warning_missing_invoice_blindedpay\x18\x33 \x01(\tH(\x88\x01\x01\x12/\n\"warning_missing_invoice_created_at\x18\x34 \x01(\tH)\x88\x01\x01\x12\x31\n$warning_missing_invoice_payment_hash\x18\x35 \x01(\tH*\x88\x01\x01\x12+\n\x1ewarning_missing_invoice_amount\x18\x36 \x01(\tH+\x88\x01\x01\x12\x38\n+warning_missing_invoice_recurrence_basetime\x18\x37 \x01(\tH,\x88\x01\x01\x12,\n\x1fwarning_missing_invoice_node_id\x18\x38 \x01(\tH-\x88\x01\x01\x12.\n!warning_missing_invoice_signature\x18\x39 \x01(\tH.\x88\x01\x01\x12.\n!warning_invalid_invoice_signature\x18: \x01(\tH/\x88\x01\x01\x12\'\n\tfallbacks\x18; \x03(\x0b\x32\x14.cln.DecodeFallbacks\x12\x17\n\ncreated_at\x18< \x01(\x04H0\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18= \x01(\x04H1\x88\x01\x01\x12\x12\n\x05payee\x18> \x01(\x0cH2\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18? \x01(\x0cH3\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18@ \x01(\x0cH4\x88\x01\x01\x12\"\n\x15min_final_cltv_expiry\x18\x41 \x01(\rH5\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x42 \x01(\x0cH6\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x43 \x01(\x0cH7\x88\x01\x01\x12\x1f\n\x05\x65xtra\x18\x45 \x03(\x0b\x32\x10.cln.DecodeExtra\x12\x16\n\tunique_id\x18\x46 \x01(\tH8\x88\x01\x01\x12\x14\n\x07version\x18G \x01(\tH9\x88\x01\x01\x12\x13\n\x06string\x18H \x01(\tH:\x88\x01\x01\x12-\n\x0crestrictions\x18I \x03(\x0b\x32\x17.cln.DecodeRestrictions\x12&\n\x19warning_rune_invalid_utf8\x18J \x01(\tH;\x88\x01\x01\x12\x10\n\x03hex\x18K \x01(\x0cH<\x88\x01\x01\x12\x16\n\tdecrypted\x18L \x01(\x0cH=\x88\x01\x01\x12\x16\n\tsignature\x18M \x01(\tH>\x88\x01\x01\x12\x15\n\x08\x63urrency\x18N \x01(\tH?\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18O \x01(\x0b\x32\x0b.cln.AmountH@\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18P \x01(\tHA\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18Q \x01(\x0cHB\x88\x01\x01\"\x83\x01\n\nDecodeType\x12\x10\n\x0c\x42OLT12_OFFER\x10\x00\x12\x12\n\x0e\x42OLT12_INVOICE\x10\x01\x12\x1a\n\x16\x42OLT12_INVOICE_REQUEST\x10\x02\x12\x12\n\x0e\x42OLT11_INVOICE\x10\x03\x12\x08\n\x04RUNE\x10\x04\x12\x15\n\x11\x45MERGENCY_RECOVER\x10\x05\x42\x0b\n\t_offer_idB\x11\n\x0f_offer_metadataB\x11\n\x0f_offer_currencyB!\n\x1f_warning_unknown_offer_currencyB\x16\n\x14_currency_minor_unitB\x0f\n\r_offer_amountB\x14\n\x12_offer_amount_msatB\x14\n\x12_offer_descriptionB\x0f\n\r_offer_issuerB\x11\n\x0f_offer_featuresB\x18\n\x16_offer_absolute_expiryB\x15\n\x13_offer_quantity_maxB\x10\n\x0e_offer_node_idB \n\x1e_warning_missing_offer_node_idB$\n\"_warning_invalid_offer_descriptionB$\n\"_warning_missing_offer_descriptionB!\n\x1f_warning_invalid_offer_currencyB\x1f\n\x1d_warning_invalid_offer_issuerB\x12\n\x10_invreq_metadataB\x12\n\x10_invreq_payer_idB\x0f\n\r_invreq_chainB\x15\n\x13_invreq_amount_msatB\x12\n\x10_invreq_featuresB\x12\n\x10_invreq_quantityB\x14\n\x12_invreq_payer_noteB\x1c\n\x1a_invreq_recurrence_counterB\x1a\n\x18_invreq_recurrence_startB\"\n _warning_missing_invreq_metadataB\"\n _warning_missing_invreq_payer_idB$\n\"_warning_invalid_invreq_payer_noteB,\n*_warning_missing_invoice_request_signatureB,\n*_warning_invalid_invoice_request_signatureB\x15\n\x13_invoice_created_atB\x1a\n\x18_invoice_relative_expiryB\x17\n\x15_invoice_payment_hashB\x16\n\x14_invoice_amount_msatB\x13\n\x11_invoice_featuresB\x12\n\x10_invoice_node_idB\x1e\n\x1c_invoice_recurrence_basetimeB \n\x1e_warning_missing_invoice_pathsB%\n#_warning_missing_invoice_blindedpayB%\n#_warning_missing_invoice_created_atB\'\n%_warning_missing_invoice_payment_hashB!\n\x1f_warning_missing_invoice_amountB.\n,_warning_missing_invoice_recurrence_basetimeB\"\n _warning_missing_invoice_node_idB$\n\"_warning_missing_invoice_signatureB$\n\"_warning_invalid_invoice_signatureB\r\n\x0b_created_atB\t\n\x07_expiryB\x08\n\x06_payeeB\x0f\n\r_payment_hashB\x13\n\x11_description_hashB\x18\n\x16_min_final_cltv_expiryB\x11\n\x0f_payment_secretB\x13\n\x11_payment_metadataB\x0c\n\n_unique_idB\n\n\x08_versionB\t\n\x07_stringB\x1c\n\x1a_warning_rune_invalid_utf8B\x06\n\x04_hexB\x0c\n\n_decryptedB\x0c\n\n_signatureB\x0b\n\t_currencyB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x0b\n\t_features\"\xab\x01\n\x11\x44\x65\x63odeOffer_paths\x12\x1a\n\rfirst_node_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\x1b\n\x0e\x66irst_scid_dir\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x17\n\nfirst_scid\x18\x05 \x01(\tH\x02\x88\x01\x01\x42\x10\n\x0e_first_node_idB\x11\n\x0f_first_scid_dirB\r\n\x0b_first_scid\"\x8a\x01\n\x1f\x44\x65\x63odeOffer_recurrencePaywindow\x12\x16\n\x0eseconds_before\x18\x01 \x01(\r\x12\x15\n\rseconds_after\x18\x02 \x01(\r\x12 \n\x13proportional_amount\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\x16\n\x14_proportional_amount\"T\n\x17\x44\x65\x63odeInvoice_pathsPath\x12\x17\n\x0f\x62linded_node_id\x18\x01 \x01(\x0c\x12 \n\x18\x65ncrypted_recipient_data\x18\x02 \x01(\x0c\"Y\n\x17\x44\x65\x63odeInvoice_fallbacks\x12\x0f\n\x07version\x18\x01 \x01(\r\x12\x0b\n\x03hex\x18\x02 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_address\"\xaa\x02\n\x0f\x44\x65\x63odeFallbacks\x12\x36\n)warning_invoice_fallbacks_version_invalid\x18\x01 \x01(\tH\x00\x88\x01\x01\x12;\n\titem_type\x18\x02 \x01(\x0e\x32(.cln.DecodeFallbacks.DecodeFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0b\n\x03hex\x18\x04 \x01(\x0c\"K\n\x13\x44\x65\x63odeFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42,\n*_warning_invoice_fallbacks_version_invalidB\x07\n\x05_addr\"(\n\x0b\x44\x65\x63odeExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\";\n\x12\x44\x65\x63odeRestrictions\x12\x14\n\x0c\x61lternatives\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\"\xc2\x01\n\rDelpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12/\n\x06status\x18\x02 \x01(\x0e\x32\x1f.cln.DelpayRequest.DelpayStatus\x12\x13\n\x06partid\x18\x03 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x01\x88\x01\x01\"(\n\x0c\x44\x65lpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x42\t\n\x07_partidB\n\n\x08_groupid\"7\n\x0e\x44\x65lpayResponse\x12%\n\x08payments\x18\x01 \x03(\x0b\x32\x13.cln.DelpayPayments\"\xcb\x05\n\x0e\x44\x65lpayPayments\x12\x1a\n\rcreated_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x38\n\x06status\x18\x04 \x01(\x0e\x32(.cln.DelpayPayments.DelpayPaymentsStatus\x12%\n\x10\x61mount_sent_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x07 \x01(\x0cH\x02\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x12\n\ncreated_at\x18\t \x01(\x04\x12\x1a\n\rupdated_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x12\n\x05label\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x10 \x01(\tH\n\x88\x01\x01\x12\x17\n\nerroronion\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"=\n\x14\x44\x65lpayPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x10\n\x0e_created_indexB\t\n\x07_partidB\x0e\n\x0c_destinationB\x0e\n\x0c_amount_msatB\x10\n\x0e_updated_indexB\x0f\n\r_completed_atB\n\n\x08_groupidB\x13\n\x11_payment_preimageB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\r\n\x0b_erroronion\"\xb3\x01\n\x11\x44\x65lforwardRequest\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x12\n\nin_htlc_id\x18\x02 \x01(\x04\x12\x37\n\x06status\x18\x03 \x01(\x0e\x32\'.cln.DelforwardRequest.DelforwardStatus\"=\n\x10\x44\x65lforwardStatus\x12\x0b\n\x07SETTLED\x10\x00\x12\x10\n\x0cLOCAL_FAILED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"\x14\n\x12\x44\x65lforwardResponse\"\'\n\x13\x44isableofferRequest\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\"\x88\x01\n\x14\x44isableofferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"=\n\x11\x44isconnectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_force\"\x14\n\x12\x44isconnectResponse\"k\n\x0f\x46\x65\x65ratesRequest\x12\x31\n\x05style\x18\x01 \x01(\x0e\x32\".cln.FeeratesRequest.FeeratesStyle\"%\n\rFeeratesStyle\x12\t\n\x05PERKB\x10\x00\x12\t\n\x05PERKW\x10\x01\"\x9c\x02\n\x10\x46\x65\x65ratesResponse\x12%\n\x18warning_missing_feerates\x18\x01 \x01(\tH\x00\x88\x01\x01\x12&\n\x05perkb\x18\x02 \x01(\x0b\x32\x12.cln.FeeratesPerkbH\x01\x88\x01\x01\x12&\n\x05perkw\x18\x03 \x01(\x0b\x32\x12.cln.FeeratesPerkwH\x02\x88\x01\x01\x12\x46\n\x15onchain_fee_estimates\x18\x04 \x01(\x0b\x32\".cln.FeeratesOnchain_fee_estimatesH\x03\x88\x01\x01\x42\x1b\n\x19_warning_missing_feeratesB\x08\n\x06_perkbB\x08\n\x06_perkwB\x18\n\x16_onchain_fee_estimates\"\xd3\x03\n\rFeeratesPerkb\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkbEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkbEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\xd3\x03\n\rFeeratesPerkw\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkwEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkwEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\x9b\x02\n\x1d\x46\x65\x65ratesOnchain_fee_estimates\x12 \n\x18opening_channel_satoshis\x18\x01 \x01(\x04\x12\x1d\n\x15mutual_close_satoshis\x18\x02 \x01(\x04\x12!\n\x19unilateral_close_satoshis\x18\x03 \x01(\x04\x12\x1d\n\x15htlc_timeout_satoshis\x18\x04 \x01(\x04\x12\x1d\n\x15htlc_success_satoshis\x18\x05 \x01(\x04\x12\x30\n#unilateral_close_nonanchor_satoshis\x18\x06 \x01(\x04H\x00\x88\x01\x01\x42&\n$_unilateral_close_nonanchor_satoshis\"\xe9\x02\n\x13\x46\x65tchinvoiceRequest\x12\r\n\x05offer\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x15\n\x08quantity\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x1f\n\x12recurrence_counter\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x1d\n\x10recurrence_start\x18\x05 \x01(\x01H\x03\x88\x01\x01\x12\x1d\n\x10recurrence_label\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x14\n\x07timeout\x18\x07 \x01(\x01H\x05\x88\x01\x01\x12\x17\n\npayer_note\x18\x08 \x01(\tH\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\x0b\n\t_quantityB\x15\n\x13_recurrence_counterB\x13\n\x11_recurrence_startB\x13\n\x11_recurrence_labelB\n\n\x08_timeoutB\r\n\x0b_payer_note\"\x9a\x01\n\x14\x46\x65tchinvoiceResponse\x12\x0f\n\x07invoice\x18\x01 \x01(\t\x12)\n\x07\x63hanges\x18\x02 \x01(\x0b\x32\x18.cln.FetchinvoiceChanges\x12\x36\n\x0bnext_period\x18\x03 \x01(\x0b\x32\x1c.cln.FetchinvoiceNext_periodH\x00\x88\x01\x01\x42\x0e\n\x0c_next_period\"\x82\x02\n\x13\x46\x65tchinvoiceChanges\x12!\n\x14\x64\x65scription_appended\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0evendor_removed\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06vendor\x18\x04 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x42\x17\n\x15_description_appendedB\x0e\n\x0c_descriptionB\x11\n\x0f_vendor_removedB\t\n\x07_vendorB\x0e\n\x0c_amount_msat\"~\n\x17\x46\x65tchinvoiceNext_period\x12\x0f\n\x07\x63ounter\x18\x01 \x01(\x04\x12\x11\n\tstarttime\x18\x02 \x01(\x04\x12\x0f\n\x07\x65ndtime\x18\x03 \x01(\x04\x12\x17\n\x0fpaywindow_start\x18\x04 \x01(\x04\x12\x15\n\rpaywindow_end\x18\x05 \x01(\x04\"\'\n\x19\x46undchannel_cancelRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\"/\n\x1a\x46undchannel_cancelResponse\x12\x11\n\tcancelled\x18\x01 \x01(\t\"7\n\x1b\x46undchannel_completeRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"O\n\x1c\x46undchannel_completeResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"\xfb\x03\n\x12\x46undchannelRequest\x12 \n\x06\x61mount\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12#\n\tpush_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\tH\x05\x88\x01\x01\x12\n\n\x02id\x18\t \x01(\x0c\x12\x14\n\x07minconf\x18\n \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x05utxos\x18\x0b \x03(\x0b\x32\r.cln.Outpoint\x12\x15\n\x08mindepth\x18\x0c \x01(\rH\x07\x88\x01\x01\x12!\n\x07reserve\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\x0e \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\n\n\x08_minconfB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xe5\x01\n\x13\x46undchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0e\n\x06outnum\x18\x03 \x01(\r\x12\x12\n\nchannel_id\x18\x04 \x01(\x0c\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x37\n\x0c\x63hannel_type\x18\x07 \x01(\x0b\x32\x1c.cln.FundchannelChannel_typeH\x02\x88\x01\x01\x42\x0b\n\t_close_toB\x0b\n\t_mindepthB\x0f\n\r_channel_type\"L\n\x17\x46undchannelChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xd7\x02\n\x18\x46undchannel_startRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x1b\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\x07\x66\x65\x65rate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12#\n\tpush_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x15\n\x08mindepth\x18\x07 \x01(\rH\x04\x88\x01\x01\x12!\n\x07reserve\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0c\n\n_push_msatB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xf9\x01\n\x19\x46undchannel_startResponse\x12\x17\n\x0f\x66unding_address\x18\x01 \x01(\t\x12\x14\n\x0cscriptpubkey\x18\x02 \x01(\x0c\x12=\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32\".cln.Fundchannel_startChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x04 \x01(\x0cH\x01\x88\x01\x01\x12\x15\n\rwarning_usage\x18\x05 \x01(\t\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x0b\n\t_mindepth\"R\n\x1d\x46undchannel_startChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x9d\x01\n\rGetlogRequest\x12\x32\n\x05level\x18\x01 \x01(\x0e\x32\x1e.cln.GetlogRequest.GetlogLevelH\x00\x88\x01\x01\"N\n\x0bGetlogLevel\x12\n\n\x06\x42ROKEN\x10\x00\x12\x0b\n\x07UNUSUAL\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x06\n\x02IO\x10\x04\x12\t\n\x05TRACE\x10\x05\x42\x08\n\x06_level\"h\n\x0eGetlogResponse\x12\x12\n\ncreated_at\x18\x01 \x01(\t\x12\x12\n\nbytes_used\x18\x02 \x01(\r\x12\x11\n\tbytes_max\x18\x03 \x01(\r\x12\x1b\n\x03log\x18\x04 \x03(\x0b\x32\x0e.cln.GetlogLog\"\xe8\x02\n\tGetlogLog\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.GetlogLog.GetlogLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"l\n\rGetlogLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"\xec\x01\n\x0fGetrouteRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\nriskfactor\x18\x03 \x01(\x04\x12\x11\n\x04\x63ltv\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x13\n\x06\x66romid\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x66uzzpercent\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\x07 \x03(\t\x12\x14\n\x07maxhops\x18\x08 \x01(\rH\x03\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountB\x07\n\x05_cltvB\t\n\x07_fromidB\x0e\n\x0c_fuzzpercentB\n\n\x08_maxhops\"5\n\x10GetrouteResponse\x12!\n\x05route\x18\x01 \x03(\x0b\x32\x12.cln.GetrouteRoute\"\xc5\x01\n\rGetrouteRoute\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x05 \x01(\r\x12\x34\n\x05style\x18\x06 \x01(\x0e\x32%.cln.GetrouteRoute.GetrouteRouteStyle\"\x1d\n\x12GetrouteRouteStyle\x12\x07\n\x03TLV\x10\x00\"\xb7\x03\n\x13ListforwardsRequest\x12@\n\x06status\x18\x01 \x01(\x0e\x32+.cln.ListforwardsRequest.ListforwardsStatusH\x00\x88\x01\x01\x12\x17\n\nin_channel\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x03 \x01(\tH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListforwardsRequest.ListforwardsIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\"L\n\x12ListforwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"-\n\x11ListforwardsIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_statusB\r\n\x0b_in_channelB\x0e\n\x0c_out_channelB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListforwardsResponse\x12+\n\x08\x66orwards\x18\x01 \x03(\x0b\x32\x19.cln.ListforwardsForwards\"\xb4\x06\n\x14ListforwardsForwards\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x1c\n\x07in_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x44\n\x06status\x18\x03 \x01(\x0e\x32\x34.cln.ListforwardsForwards.ListforwardsForwardsStatus\x12\x15\n\rreceived_time\x18\x04 \x01(\x01\x12\x18\n\x0bout_channel\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\"\n\x08\x66\x65\x65_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\"\n\x08out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12G\n\x05style\x18\t \x01(\x0e\x32\x33.cln.ListforwardsForwards.ListforwardsForwardsStyleH\x03\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x18\n\x0bout_htlc_id\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rresolved_time\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x15\n\x08\x66\x61ilcode\x18\x0f \x01(\rH\t\x88\x01\x01\x12\x17\n\nfailreason\x18\x10 \x01(\tH\n\x88\x01\x01\"T\n\x1aListforwardsForwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"0\n\x19ListforwardsForwardsStyle\x12\n\n\x06LEGACY\x10\x00\x12\x07\n\x03TLV\x10\x01\x42\x0e\n\x0c_out_channelB\x0b\n\t_fee_msatB\x0b\n\t_out_msatB\x08\n\x06_styleB\r\n\x0b_in_htlc_idB\x0e\n\x0c_out_htlc_idB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_resolved_timeB\x0b\n\t_failcodeB\r\n\x0b_failreason\"a\n\x11ListoffersRequest\x12\x15\n\x08offer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0b\x61\x63tive_only\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\x0b\n\t_offer_idB\x0e\n\x0c_active_only\";\n\x12ListoffersResponse\x12%\n\x06offers\x18\x01 \x03(\x0b\x32\x15.cln.ListoffersOffers\"\x84\x01\n\x10ListoffersOffers\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"\xdb\x01\n\x0fListpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x38\n\x06status\x18\x03 \x01(\x0e\x32#.cln.ListpaysRequest.ListpaysStatusH\x02\x88\x01\x01\"7\n\x0eListpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_status\"3\n\x10ListpaysResponse\x12\x1f\n\x04pays\x18\x01 \x03(\x0b\x32\x11.cln.ListpaysPays\"\xff\x04\n\x0cListpaysPays\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x34\n\x06status\x18\x02 \x01(\x0e\x32$.cln.ListpaysPays.ListpaysPaysStatus\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x04\x12\x12\n\x05label\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x06 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12*\n\x10\x61mount_sent_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\n \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0c \x01(\x04H\x08\x88\x01\x01\x12\x15\n\x08preimage\x18\r \x01(\x0cH\t\x88\x01\x01\x12\x1c\n\x0fnumber_of_parts\x18\x0e \x01(\x04H\n\x88\x01\x01\";\n\x12ListpaysPaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x13\n\x11_amount_sent_msatB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\x0f\n\r_completed_atB\x0b\n\t_preimageB\x12\n\x10_number_of_parts\"*\n\x10ListhtlcsRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListhtlcsResponse\x12\"\n\x05htlcs\x18\x01 \x03(\x0b\x32\x13.cln.ListhtlcsHtlcs\"\x89\x02\n\x0eListhtlcsHtlcs\x12\x18\n\x10short_channel_id\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12>\n\tdirection\x18\x05 \x01(\x0e\x32+.cln.ListhtlcsHtlcs.ListhtlcsHtlcsDirection\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x1d\n\x05state\x18\x07 \x01(\x0e\x32\x0e.cln.HtlcState\"*\n\x17ListhtlcsHtlcsDirection\x12\x07\n\x03OUT\x10\x00\x12\x06\n\x02IN\x10\x01\"\xb2\x02\n\x17MultifundchannelRequest\x12\x37\n\x0c\x64\x65stinations\x18\x01 \x03(\x0b\x32!.cln.MultifundchannelDestinations\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\x12H\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x18\n\x0bminchannels\x18\x05 \x01(\x12H\x02\x88\x01\x01\x12-\n\x12\x63ommitment_feerate\x18\x06 \x01(\x0b\x32\x0c.cln.FeerateH\x03\x88\x01\x01\x42\n\n\x08_feerateB\n\n\x08_minconfB\x0e\n\x0c_minchannelsB\x15\n\x13_commitment_feerate\"\x98\x01\n\x18MultifundchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x35\n\x0b\x63hannel_ids\x18\x03 \x03(\x0b\x32 .cln.MultifundchannelChannel_ids\x12+\n\x06\x66\x61iled\x18\x04 \x03(\x0b\x32\x1b.cln.MultifundchannelFailed\"\xff\x02\n\x1cMultifundchannelDestinations\x12\n\n\x02id\x18\x01 \x01(\t\x12 \n\x06\x61mount\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12#\n\tpush_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12%\n\x0brequest_amt\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08mindepth\x18\x08 \x01(\rH\x05\x88\x01\x01\x12!\n\x07reserve\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x42\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xcb\x01\n\x1bMultifundchannelChannel_ids\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12\x12\n\nchannel_id\x18\x03 \x01(\x0c\x12G\n\x0c\x63hannel_type\x18\x04 \x01(\x0b\x32,.cln.MultifundchannelChannel_idsChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_to\"\\\n\'MultifundchannelChannel_idsChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x93\x02\n\x16MultifundchannelFailed\x12\n\n\x02id\x18\x01 \x01(\x0c\x12H\n\x06method\x18\x02 \x01(\x0e\x32\x38.cln.MultifundchannelFailed.MultifundchannelFailedMethod\x12/\n\x05\x65rror\x18\x03 \x01(\x0b\x32 .cln.MultifundchannelFailedError\"r\n\x1cMultifundchannelFailedMethod\x12\x0b\n\x07\x43ONNECT\x10\x00\x12\x14\n\x10OPENCHANNEL_INIT\x10\x01\x12\x15\n\x11\x46UNDCHANNEL_START\x10\x02\x12\x18\n\x14\x46UNDCHANNEL_COMPLETE\x10\x03\"<\n\x1bMultifundchannelFailedError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x12\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xc1\x03\n\x0cOfferRequest\x12\x0e\n\x06\x61mount\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x06issuer\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cquantity_max\x18\x05 \x01(\x04H\x02\x88\x01\x01\x12\x1c\n\x0f\x61\x62solute_expiry\x18\x06 \x01(\x04H\x03\x88\x01\x01\x12\x17\n\nrecurrence\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x1c\n\x0frecurrence_base\x18\x08 \x01(\tH\x05\x88\x01\x01\x12!\n\x14recurrence_paywindow\x18\t \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10recurrence_limit\x18\n \x01(\rH\x07\x88\x01\x01\x12\x17\n\nsingle_use\x18\x0b \x01(\x08H\x08\x88\x01\x01\x42\t\n\x07_issuerB\x08\n\x06_labelB\x0f\n\r_quantity_maxB\x12\n\x10_absolute_expiryB\r\n\x0b_recurrenceB\x12\n\x10_recurrence_baseB\x17\n\x15_recurrence_paywindowB\x13\n\x11_recurrence_limitB\r\n\x0b_single_use\"\x92\x01\n\rOfferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x0f\n\x07\x63reated\x18\x06 \x01(\x08\x12\x12\n\x05label\x18\x07 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\".\n\x18Openchannel_abortRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"Y\n\x19Openchannel_abortResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x18\n\x10\x63hannel_canceled\x18\x02 \x01(\x08\x12\x0e\n\x06reason\x18\x03 \x01(\t\"\x9f\x01\n\x17Openchannel_bumpRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12*\n\x0f\x66unding_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x1b\n\x06\x61mount\x18\x04 \x01(\x0b\x32\x0b.cln.AmountB\x12\n\x10_funding_feerate\"\x86\x02\n\x18Openchannel_bumpResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12<\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32!.cln.Openchannel_bumpChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_bumpChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xa0\x03\n\x17Openchannel_initRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12-\n\x12\x63ommitment_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12*\n\x0f\x66unding_feerate\x18\x04 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\r\x12\x1b\n\x06\x61mount\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x15\n\x13_commitment_feerateB\x12\n\x10_funding_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_lease\"\x86\x02\n\x18Openchannel_initResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12<\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32!.cln.Openchannel_initChannel_typeH\x00\x88\x01\x01\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_initChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"D\n\x19Openchannel_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0bsigned_psbt\x18\x02 \x01(\t\"J\n\x1aOpenchannel_signedResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"=\n\x19Openchannel_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"\xae\x02\n\x1aOpenchannel_updateResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12>\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32#.cln.Openchannel_updateChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_outnum\x18\x05 \x01(\r\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12&\n\x19requires_confirmed_inputs\x18\x07 \x01(\x08H\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x1c\n\x1a_requires_confirmed_inputs\"S\n\x1eOpenchannel_updateChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"Y\n\x0bPingRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x03len\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x16\n\tpongbytes\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x06\n\x04_lenB\x0c\n\n_pongbytes\"\x1e\n\x0cPingResponse\x12\x0e\n\x06totlen\x18\x01 \x01(\r\"\x91\x01\n\rPluginRequest\x12)\n\nsubcommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12\x13\n\x06plugin\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tdirectory\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x07options\x18\x04 \x03(\tB\t\n\x07_pluginB\x0c\n\n_directory\"}\n\x0ePluginResponse\x12&\n\x07\x63ommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12#\n\x07plugins\x18\x02 \x03(\x0b\x32\x12.cln.PluginPlugins\x12\x13\n\x06result\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\t\n\x07_result\">\n\rPluginPlugins\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x0f\n\x07\x64ynamic\x18\x03 \x01(\x08\"<\n\x14RenepaystatusRequest\x12\x16\n\tinvstring\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_invstring\"G\n\x15RenepaystatusResponse\x12.\n\tpaystatus\x18\x01 \x03(\x0b\x32\x1b.cln.RenepaystatusPaystatus\"\xe2\x03\n\x16RenepaystatusPaystatus\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x1d\n\x10payment_preimage\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\x0f\n\x07groupid\x18\x05 \x01(\r\x12\x12\n\x05parts\x18\x06 \x01(\rH\x01\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12H\n\x06status\x18\t \x01(\x0e\x32\x38.cln.RenepaystatusPaystatus.RenepaystatusPaystatusStatus\x12\x18\n\x0b\x64\x65stination\x18\n \x01(\x0cH\x03\x88\x01\x01\x12\r\n\x05notes\x18\x0b \x03(\t\"E\n\x1cRenepaystatusPaystatusStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x13\n\x11_payment_preimageB\x08\n\x06_partsB\x13\n\x11_amount_sent_msatB\x0e\n\x0c_destination\"\xc9\x02\n\x0eRenepayRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12 \n\x06maxfee\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x03\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x12\n\x05label\x18\x07 \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0e\x64\x65v_use_shadow\x18\x08 \x01(\x08H\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_maxfeeB\x0b\n\t_maxdelayB\x0c\n\n_retry_forB\x0e\n\x0c_descriptionB\x08\n\x06_labelB\x11\n\x0f_dev_use_shadow\"\xc3\x02\n\x0fRenepayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\ncreated_at\x18\x03 \x01(\x01\x12\r\n\x05parts\x18\x04 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12\x32\n\x06status\x18\x07 \x01(\x0e\x32\".cln.RenepayResponse.RenepayStatus\x12\x18\n\x0b\x64\x65stination\x18\x08 \x01(\x0cH\x00\x88\x01\x01\"6\n\rRenepayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destination\"l\n\x14ReserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\texclusive\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x0c\n\n_exclusiveB\n\n\x08_reserve\"M\n\x15ReserveinputsResponse\x12\x34\n\x0creservations\x18\x01 \x03(\x0b\x32\x1e.cln.ReserveinputsReservations\"z\n\x19ReserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"4\n\x14SendcustommsgRequest\x12\x0f\n\x07node_id\x18\x01 \x01(\x0c\x12\x0b\n\x03msg\x18\x02 \x01(\x0c\"\'\n\x15SendcustommsgResponse\x12\x0e\n\x06status\x18\x01 \x01(\t\"\xb0\x01\n\x12SendinvoiceRequest\x12\x0e\n\x06invreq\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08quantity\x18\x05 \x01(\x04H\x02\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\n\n\x08_timeoutB\x0b\n\t_quantity\"\xcf\x04\n\x13SendinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.SendinvoiceResponse.SendinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x08 \x01(\x04H\x02\x88\x01\x01\x12\x1a\n\rupdated_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12\x16\n\tpay_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\"6\n\x11SendinvoiceStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt12B\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"f\n\x17SendonionmessageRequest\x12\x10\n\x08\x66irst_id\x18\x01 \x01(\x0c\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\'\n\x04hops\x18\x03 \x03(\x0b\x32\x19.cln.SendonionmessageHops\"\x1a\n\x18SendonionmessageResponse\"1\n\x14SendonionmessageHops\x12\x0c\n\x04node\x18\x01 \x01(\x0c\x12\x0b\n\x03tlv\x18\x02 \x01(\r\"\xaa\x02\n\x11SetchannelRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x07\x66\x65\x65\x62\x61se\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x66\x65\x65ppm\x18\x03 \x01(\rH\x01\x88\x01\x01\x12!\n\x07htlcmin\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12!\n\x07htlcmax\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x19\n\x0c\x65nforcedelay\x18\x06 \x01(\rH\x04\x88\x01\x01\x12\x1c\n\x0fignorefeelimits\x18\x07 \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_feebaseB\t\n\x07_feeppmB\n\n\x08_htlcminB\n\n\x08_htlcmaxB\x0f\n\r_enforcedelayB\x12\n\x10_ignorefeelimits\"?\n\x12SetchannelResponse\x12)\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x17.cln.SetchannelChannels\"\xca\x03\n\x12SetchannelChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\x12*\n\x15minimum_htlc_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x17warning_htlcmin_too_low\x18\x07 \x01(\tH\x01\x88\x01\x01\x12*\n\x15maximum_htlc_out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x18warning_htlcmax_too_high\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\n \x01(\x08H\x03\x88\x01\x01\x42\x13\n\x11_short_channel_idB\x1a\n\x18_warning_htlcmin_too_lowB\x1b\n\x19_warning_htlcmax_too_highB\x14\n\x12_ignore_fee_limits\"<\n\x10SetconfigRequest\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x10\n\x03val\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_val\"9\n\x11SetconfigResponse\x12$\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x14.cln.SetconfigConfig\"\xa5\x02\n\x0fSetconfigConfig\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x06plugin\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07\x64ynamic\x18\x04 \x01(\x08\x12\x10\n\x03set\x18\x05 \x01(\x08H\x01\x88\x01\x01\x12\x16\n\tvalue_str\x18\x06 \x01(\tH\x02\x88\x01\x01\x12$\n\nvalue_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x16\n\tvalue_int\x18\x08 \x01(\x12H\x04\x88\x01\x01\x12\x17\n\nvalue_bool\x18\t \x01(\x08H\x05\x88\x01\x01\x42\t\n\x07_pluginB\x06\n\x04_setB\x0c\n\n_value_strB\r\n\x0b_value_msatB\x0c\n\n_value_intB\r\n\x0b_value_bool\"6\n\x15SetpsbtversionRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\r\"&\n\x16SetpsbtversionResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"\'\n\x12SigninvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\"%\n\x13SigninvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"%\n\x12SignmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\"F\n\x13SignmessageResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\r\n\x05recid\x18\x02 \x01(\x0c\x12\r\n\x05zbase\x18\x03 \x01(\t\"\xc9\x01\n\x12Splice_initRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x17\n\x0frelative_amount\x18\x02 \x01(\x12\x12\x18\n\x0binitialpsbt\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0e\x66\x65\x65rate_per_kw\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1a\n\rforce_feerate\x18\x05 \x01(\x08H\x02\x88\x01\x01\x42\x0e\n\x0c_initialpsbtB\x11\n\x0f_feerate_per_kwB\x10\n\x0e_force_feerate\"#\n\x13Splice_initResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"`\n\x14Splice_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12\x17\n\nsign_first\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\r\n\x0b_sign_first\"1\n\x15Splice_signedResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"8\n\x14Splice_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"B\n\x15Splice_updateResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"H\n\x16UnreserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\"Q\n\x17UnreserveinputsResponse\x12\x36\n\x0creservations\x18\x01 \x03(\x0b\x32 .cln.UnreserveinputsReservations\"\x97\x01\n\x1bUnreserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\x05 \x01(\rH\x00\x88\x01\x01\x42\x14\n\x12_reserved_to_block\"n\n\x14UpgradewalletRequest\x12\"\n\x07\x66\x65\x65rate\x18\x01 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x17\n\nreservedok\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\n\n\x08_feerateB\r\n\x0b_reservedok\"\x95\x01\n\x15UpgradewalletResponse\x12\x1a\n\rupgraded_outs\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x11\n\x04psbt\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x02tx\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x11\n\x04txid\x18\x04 \x01(\x0cH\x03\x88\x01\x01\x42\x10\n\x0e_upgraded_outsB\x07\n\x05_psbtB\x05\n\x03_txB\x07\n\x05_txid\"O\n\x16WaitblockheightRequest\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\x12\x14\n\x07timeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_timeout\".\n\x17WaitblockheightResponse\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\"\xf9\x01\n\x0bWaitRequest\x12\x31\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitSubsystem\x12\x31\n\tindexname\x18\x02 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitIndexname\x12\x11\n\tnextvalue\x18\x03 \x01(\x04\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\"6\n\rWaitIndexname\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\"\x97\x02\n\x0cWaitResponse\x12\x32\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1f.cln.WaitResponse.WaitSubsystem\x12\x14\n\x07\x63reated\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07updated\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x14\n\x07\x64\x65leted\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12&\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32\x10.cln.WaitDetailsH\x03\x88\x01\x01\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\x42\n\n\x08_createdB\n\n\x08_updatedB\n\n\x08_deletedB\n\n\x08_details\"\xfc\x04\n\x0bWaitDetails\x12\x37\n\x06status\x18\x01 \x01(\x0e\x32\".cln.WaitDetails.WaitDetailsStatusH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x07 \x01(\x04H\x06\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x08 \x01(\x0cH\x07\x88\x01\x01\x12\x17\n\nin_channel\x18\t \x01(\tH\x08\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\t\x88\x01\x01\x12!\n\x07in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x0c \x01(\tH\x0b\x88\x01\x01\"\x89\x01\n\x11WaitDetailsStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x43OMPLETE\x10\x05\x12\x0b\n\x07OFFERED\x10\x06\x12\x0b\n\x07SETTLED\x10\x07\x12\x10\n\x0cLOCAL_FAILED\x10\x08\x42\t\n\x07_statusB\x08\n\x06_labelB\x0e\n\x0c_descriptionB\t\n\x07_bolt11B\t\n\x07_bolt12B\t\n\x07_partidB\n\n\x08_groupidB\x0f\n\r_payment_hashB\r\n\x0b_in_channelB\r\n\x0b_in_htlc_idB\n\n\x08_in_msatB\x0e\n\x0c_out_channel\"\r\n\x0bStopRequest\"q\n\x0cStopResponse\x12\x31\n\x06result\x18\x01 \x01(\x0e\x32\x1c.cln.StopResponse.StopResultH\x00\x88\x01\x01\"#\n\nStopResult\x12\x15\n\x11SHUTDOWN_COMPLETE\x10\x00\x42\t\n\x07_result\"g\n\x18PreapprovekeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\"\x1b\n\x19PreapprovekeysendResponse\"*\n\x18PreapproveinvoiceRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"\x1b\n\x19PreapproveinvoiceResponse\"\x15\n\x13StaticbackupRequest\"#\n\x14StaticbackupResponse\x12\x0b\n\x03scb\x18\x01 \x03(\x0c\"d\n\x16\x42kprchannelsapyRequest\x12\x17\n\nstart_time\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x17\x42kprchannelsapyResponse\x12\x36\n\x0c\x63hannels_apy\x18\x01 \x03(\x0b\x32 .cln.BkprchannelsapyChannels_apy\"\xfa\x06\n\x1b\x42kprchannelsapyChannels_apy\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12$\n\x0frouted_out_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0erouted_in_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12(\n\x13lease_fee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x15lease_fee_earned_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x0fpushed_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0epushed_in_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x16our_start_balance_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12/\n\x1a\x63hannel_start_balance_msat\x18\t \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\rfees_out_msat\x18\n \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x0c\x66\x65\x65s_in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x17\n\x0futilization_out\x18\x0c \x01(\t\x12$\n\x17utilization_out_initial\x18\r \x01(\tH\x01\x88\x01\x01\x12\x16\n\x0eutilization_in\x18\x0e \x01(\t\x12#\n\x16utilization_in_initial\x18\x0f \x01(\tH\x02\x88\x01\x01\x12\x0f\n\x07\x61py_out\x18\x10 \x01(\t\x12\x1c\n\x0f\x61py_out_initial\x18\x11 \x01(\tH\x03\x88\x01\x01\x12\x0e\n\x06\x61py_in\x18\x12 \x01(\t\x12\x1b\n\x0e\x61py_in_initial\x18\x13 \x01(\tH\x04\x88\x01\x01\x12\x11\n\tapy_total\x18\x14 \x01(\t\x12\x1e\n\x11\x61py_total_initial\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x16\n\tapy_lease\x18\x16 \x01(\tH\x06\x88\x01\x01\x42\x0f\n\r_fees_in_msatB\x1a\n\x18_utilization_out_initialB\x19\n\x17_utilization_in_initialB\x12\n\x10_apy_out_initialB\x11\n\x0f_apy_in_initialB\x14\n\x12_apy_total_initialB\x0c\n\n_apy_lease\"\xd2\x01\n\x18\x42kprdumpincomecsvRequest\x12\x12\n\ncsv_format\x18\x01 \x01(\t\x12\x15\n\x08\x63sv_file\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10\x63onsolidate_fees\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x17\n\nstart_time\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x05 \x01(\x04H\x03\x88\x01\x01\x42\x0b\n\t_csv_fileB\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"\xd6\x01\n\x19\x42kprdumpincomecsvResponse\x12\x10\n\x08\x63sv_file\x18\x01 \x01(\t\x12N\n\ncsv_format\x18\x02 \x01(\x0e\x32:.cln.BkprdumpincomecsvResponse.BkprdumpincomecsvCsv_format\"W\n\x1b\x42kprdumpincomecsvCsv_format\x12\x0f\n\x0b\x43OINTRACKER\x10\x00\x12\n\n\x06KOINLY\x10\x01\x12\x0b\n\x07HARMONY\x10\x02\x12\x0e\n\nQUICKBOOKS\x10\x03\"%\n\x12\x42kprinspectRequest\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\"7\n\x13\x42kprinspectResponse\x12 \n\x03txs\x18\x01 \x03(\x0b\x32\x13.cln.BkprinspectTxs\"\x9a\x01\n\x0e\x42kprinspectTxs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x18\n\x0b\x62lockheight\x18\x02 \x01(\rH\x00\x88\x01\x01\x12#\n\x0e\x66\x65\x65s_paid_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x07outputs\x18\x04 \x03(\x0b\x32\x1a.cln.BkprinspectTxsOutputsB\x0e\n\x0c_blockheight\"\xbc\x03\n\x15\x42kprinspectTxsOutputs\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12&\n\x11output_value_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x04 \x01(\t\x12%\n\x0b\x63redit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12$\n\ndebit_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12 \n\x13originating_account\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x17\n\noutput_tag\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x16\n\tspend_tag\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rspending_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x42\x0e\n\x0c_credit_msatB\r\n\x0b_debit_msatB\x16\n\x14_originating_accountB\r\n\x0b_output_tagB\x0c\n\n_spend_tagB\x10\n\x0e_spending_txidB\r\n\x0b_payment_id\"@\n\x1c\x42kprlistaccounteventsRequest\x12\x14\n\x07\x61\x63\x63ount\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_account\"Q\n\x1d\x42kprlistaccounteventsResponse\x12\x30\n\x06\x65vents\x18\x01 \x03(\x0b\x32 .cln.BkprlistaccounteventsEvents\"\xa1\x05\n\x1b\x42kprlistaccounteventsEvents\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12S\n\titem_type\x18\x02 \x01(\x0e\x32@.cln.BkprlistaccounteventsEvents.BkprlistaccounteventsEventsType\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x06 \x01(\t\x12\x11\n\ttimestamp\x18\x07 \x01(\r\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x62lockheight\x18\t \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06origin\x18\n \x01(\tH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x11\n\x04txid\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x05\x88\x01\x01\x12#\n\tfees_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x19\n\x0cis_rebalance\x18\x0f \x01(\x08H\x07\x88\x01\x01\x12\x14\n\x07part_id\x18\x10 \x01(\rH\x08\x88\x01\x01\"J\n\x1f\x42kprlistaccounteventsEventsType\x12\x0f\n\x0bONCHAIN_FEE\x10\x00\x12\t\n\x05\x43HAIN\x10\x01\x12\x0b\n\x07\x43HANNEL\x10\x02\x42\x0b\n\t_outpointB\x0e\n\x0c_blockheightB\t\n\x07_originB\r\n\x0b_payment_idB\x07\n\x05_txidB\x0e\n\x0c_descriptionB\x0c\n\n_fees_msatB\x0f\n\r_is_rebalanceB\n\n\x08_part_id\"\x19\n\x17\x42kprlistbalancesRequest\"K\n\x18\x42kprlistbalancesResponse\x12/\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x1d.cln.BkprlistbalancesAccounts\"\xc6\x02\n\x18\x42kprlistbalancesAccounts\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x37\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32%.cln.BkprlistbalancesAccountsBalances\x12\x14\n\x07peer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x16\n\twe_opened\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x0e\x61\x63\x63ount_closed\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x1d\n\x10\x61\x63\x63ount_resolved\x18\x06 \x01(\x08H\x03\x88\x01\x01\x12\x1e\n\x11resolved_at_block\x18\x07 \x01(\rH\x04\x88\x01\x01\x42\n\n\x08_peer_idB\x0c\n\n_we_openedB\x11\n\x0f_account_closedB\x13\n\x11_account_resolvedB\x14\n\x12_resolved_at_block\"X\n BkprlistbalancesAccountsBalances\x12!\n\x0c\x62\x61lance_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x11\n\tcoin_type\x18\x02 \x01(\t\"\x97\x01\n\x15\x42kprlistincomeRequest\x12\x1d\n\x10\x63onsolidate_fees\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x17\n\nstart_time\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x03 \x01(\rH\x02\x88\x01\x01\x42\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x16\x42kprlistincomeResponse\x12\x37\n\rincome_events\x18\x01 \x03(\x0b\x32 .cln.BkprlistincomeIncome_events\"\xb5\x02\n\x1b\x42kprlistincomeIncome_events\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0b\n\x03tag\x18\x02 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x05 \x01(\t\x12\x11\n\ttimestamp\x18\x06 \x01(\r\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04txid\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\n \x01(\x0cH\x03\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x0b\n\t_outpointB\x07\n\x05_txidB\r\n\x0b_payment_id\"\x19\n\x17StreamBlockAddedRequest\"6\n\x16\x42lockAddedNotification\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\x0e\n\x06height\x18\x02 \x01(\r\" \n\x1eStreamChannelOpenFailedRequest\"3\n\x1d\x43hannelOpenFailedNotification\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"\x1c\n\x1aStreamChannelOpenedRequest\"\x83\x01\n\x19\x43hannelOpenedNotification\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12!\n\x0c\x66unding_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x03 \x01(\x0c\x12\x15\n\rchannel_ready\x18\x04 \x01(\x08\x42\x05\n\x03_id\"\x16\n\x14StreamConnectRequest\"\x95\x01\n\x13\x43onnectNotification\x12\n\n\x02id\x18\x01 \x01(\x0c\x12<\n\tdirection\x18\x02 \x01(\x0e\x32).cln.ConnectNotification.ConnectDirection\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x01(\t\"#\n\x10\x43onnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\x18\n\x16StreamCustomMsgRequest\"9\n\x15\x43ustomMsgNotification\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x32\x9b\x37\n\x04Node\x12\x36\n\x07Getinfo\x12\x13.cln.GetinfoRequest\x1a\x14.cln.GetinfoResponse\"\x00\x12<\n\tListPeers\x12\x15.cln.ListpeersRequest\x1a\x16.cln.ListpeersResponse\"\x00\x12<\n\tListFunds\x12\x15.cln.ListfundsRequest\x1a\x16.cln.ListfundsResponse\"\x00\x12\x36\n\x07SendPay\x12\x13.cln.SendpayRequest\x1a\x14.cln.SendpayResponse\"\x00\x12\x45\n\x0cListChannels\x12\x18.cln.ListchannelsRequest\x1a\x19.cln.ListchannelsResponse\"\x00\x12<\n\tAddGossip\x12\x15.cln.AddgossipRequest\x1a\x16.cln.AddgossipResponse\"\x00\x12Q\n\x10\x41utoCleanInvoice\x12\x1c.cln.AutocleaninvoiceRequest\x1a\x1d.cln.AutocleaninvoiceResponse\"\x00\x12H\n\rAutoCleanOnce\x12\x19.cln.AutocleanonceRequest\x1a\x1a.cln.AutocleanonceResponse\"\x00\x12N\n\x0f\x41utoCleanStatus\x12\x1b.cln.AutocleanstatusRequest\x1a\x1c.cln.AutocleanstatusResponse\"\x00\x12\x45\n\x0c\x43heckMessage\x12\x18.cln.CheckmessageRequest\x1a\x19.cln.CheckmessageResponse\"\x00\x12\x30\n\x05\x43lose\x12\x11.cln.CloseRequest\x1a\x12.cln.CloseResponse\"\x00\x12:\n\x0b\x43onnectPeer\x12\x13.cln.ConnectRequest\x1a\x14.cln.ConnectResponse\"\x00\x12H\n\rCreateInvoice\x12\x19.cln.CreateinvoiceRequest\x1a\x1a.cln.CreateinvoiceResponse\"\x00\x12<\n\tDatastore\x12\x15.cln.DatastoreRequest\x1a\x16.cln.DatastoreResponse\"\x00\x12K\n\x0e\x44\x61tastoreUsage\x12\x1a.cln.DatastoreusageRequest\x1a\x1b.cln.DatastoreusageResponse\"\x00\x12\x42\n\x0b\x43reateOnion\x12\x17.cln.CreateonionRequest\x1a\x18.cln.CreateonionResponse\"\x00\x12\x45\n\x0c\x44\x65lDatastore\x12\x18.cln.DeldatastoreRequest\x1a\x19.cln.DeldatastoreResponse\"\x00\x12?\n\nDelInvoice\x12\x16.cln.DelinvoiceRequest\x1a\x17.cln.DelinvoiceResponse\"\x00\x12\x36\n\x07Invoice\x12\x13.cln.InvoiceRequest\x1a\x14.cln.InvoiceResponse\"\x00\x12H\n\rListDatastore\x12\x19.cln.ListdatastoreRequest\x1a\x1a.cln.ListdatastoreResponse\"\x00\x12\x45\n\x0cListInvoices\x12\x18.cln.ListinvoicesRequest\x1a\x19.cln.ListinvoicesResponse\"\x00\x12<\n\tSendOnion\x12\x15.cln.SendonionRequest\x1a\x16.cln.SendonionResponse\"\x00\x12\x45\n\x0cListSendPays\x12\x18.cln.ListsendpaysRequest\x1a\x19.cln.ListsendpaysResponse\"\x00\x12Q\n\x10ListTransactions\x12\x1c.cln.ListtransactionsRequest\x1a\x1d.cln.ListtransactionsResponse\"\x00\x12*\n\x03Pay\x12\x0f.cln.PayRequest\x1a\x10.cln.PayResponse\"\x00\x12<\n\tListNodes\x12\x15.cln.ListnodesRequest\x1a\x16.cln.ListnodesResponse\"\x00\x12K\n\x0eWaitAnyInvoice\x12\x1a.cln.WaitanyinvoiceRequest\x1a\x1b.cln.WaitanyinvoiceResponse\"\x00\x12\x42\n\x0bWaitInvoice\x12\x17.cln.WaitinvoiceRequest\x1a\x18.cln.WaitinvoiceResponse\"\x00\x12\x42\n\x0bWaitSendPay\x12\x17.cln.WaitsendpayRequest\x1a\x18.cln.WaitsendpayResponse\"\x00\x12\x36\n\x07NewAddr\x12\x13.cln.NewaddrRequest\x1a\x14.cln.NewaddrResponse\"\x00\x12\x39\n\x08Withdraw\x12\x14.cln.WithdrawRequest\x1a\x15.cln.WithdrawResponse\"\x00\x12\x36\n\x07KeySend\x12\x13.cln.KeysendRequest\x1a\x14.cln.KeysendResponse\"\x00\x12\x39\n\x08\x46undPsbt\x12\x14.cln.FundpsbtRequest\x1a\x15.cln.FundpsbtResponse\"\x00\x12\x39\n\x08SendPsbt\x12\x14.cln.SendpsbtRequest\x1a\x15.cln.SendpsbtResponse\"\x00\x12\x39\n\x08SignPsbt\x12\x14.cln.SignpsbtRequest\x1a\x15.cln.SignpsbtResponse\"\x00\x12\x39\n\x08UtxoPsbt\x12\x14.cln.UtxopsbtRequest\x1a\x15.cln.UtxopsbtResponse\"\x00\x12<\n\tTxDiscard\x12\x15.cln.TxdiscardRequest\x1a\x16.cln.TxdiscardResponse\"\x00\x12<\n\tTxPrepare\x12\x15.cln.TxprepareRequest\x1a\x16.cln.TxprepareResponse\"\x00\x12\x33\n\x06TxSend\x12\x12.cln.TxsendRequest\x1a\x13.cln.TxsendResponse\"\x00\x12Q\n\x10ListPeerChannels\x12\x1c.cln.ListpeerchannelsRequest\x1a\x1d.cln.ListpeerchannelsResponse\"\x00\x12W\n\x12ListClosedChannels\x12\x1e.cln.ListclosedchannelsRequest\x1a\x1f.cln.ListclosedchannelsResponse\"\x00\x12<\n\tDecodePay\x12\x15.cln.DecodepayRequest\x1a\x16.cln.DecodepayResponse\"\x00\x12\x33\n\x06\x44\x65\x63ode\x12\x12.cln.DecodeRequest\x1a\x13.cln.DecodeResponse\"\x00\x12\x33\n\x06\x44\x65lPay\x12\x12.cln.DelpayRequest\x1a\x13.cln.DelpayResponse\"\x00\x12?\n\nDelForward\x12\x16.cln.DelforwardRequest\x1a\x17.cln.DelforwardResponse\"\x00\x12\x45\n\x0c\x44isableOffer\x12\x18.cln.DisableofferRequest\x1a\x19.cln.DisableofferResponse\"\x00\x12?\n\nDisconnect\x12\x16.cln.DisconnectRequest\x1a\x17.cln.DisconnectResponse\"\x00\x12\x39\n\x08\x46\x65\x65rates\x12\x14.cln.FeeratesRequest\x1a\x15.cln.FeeratesResponse\"\x00\x12\x45\n\x0c\x46\x65tchInvoice\x12\x18.cln.FetchinvoiceRequest\x1a\x19.cln.FetchinvoiceResponse\"\x00\x12W\n\x12\x46undChannel_Cancel\x12\x1e.cln.Fundchannel_cancelRequest\x1a\x1f.cln.Fundchannel_cancelResponse\"\x00\x12]\n\x14\x46undChannel_Complete\x12 .cln.Fundchannel_completeRequest\x1a!.cln.Fundchannel_completeResponse\"\x00\x12\x42\n\x0b\x46undChannel\x12\x17.cln.FundchannelRequest\x1a\x18.cln.FundchannelResponse\"\x00\x12T\n\x11\x46undChannel_Start\x12\x1d.cln.Fundchannel_startRequest\x1a\x1e.cln.Fundchannel_startResponse\"\x00\x12\x33\n\x06GetLog\x12\x12.cln.GetlogRequest\x1a\x13.cln.GetlogResponse\"\x00\x12\x39\n\x08GetRoute\x12\x14.cln.GetrouteRequest\x1a\x15.cln.GetrouteResponse\"\x00\x12\x45\n\x0cListForwards\x12\x18.cln.ListforwardsRequest\x1a\x19.cln.ListforwardsResponse\"\x00\x12?\n\nListOffers\x12\x16.cln.ListoffersRequest\x1a\x17.cln.ListoffersResponse\"\x00\x12\x39\n\x08ListPays\x12\x14.cln.ListpaysRequest\x1a\x15.cln.ListpaysResponse\"\x00\x12<\n\tListHtlcs\x12\x15.cln.ListhtlcsRequest\x1a\x16.cln.ListhtlcsResponse\"\x00\x12Q\n\x10MultiFundChannel\x12\x1c.cln.MultifundchannelRequest\x1a\x1d.cln.MultifundchannelResponse\"\x00\x12\x30\n\x05Offer\x12\x11.cln.OfferRequest\x1a\x12.cln.OfferResponse\"\x00\x12T\n\x11OpenChannel_Abort\x12\x1d.cln.Openchannel_abortRequest\x1a\x1e.cln.Openchannel_abortResponse\"\x00\x12Q\n\x10OpenChannel_Bump\x12\x1c.cln.Openchannel_bumpRequest\x1a\x1d.cln.Openchannel_bumpResponse\"\x00\x12Q\n\x10OpenChannel_Init\x12\x1c.cln.Openchannel_initRequest\x1a\x1d.cln.Openchannel_initResponse\"\x00\x12W\n\x12OpenChannel_Signed\x12\x1e.cln.Openchannel_signedRequest\x1a\x1f.cln.Openchannel_signedResponse\"\x00\x12W\n\x12OpenChannel_Update\x12\x1e.cln.Openchannel_updateRequest\x1a\x1f.cln.Openchannel_updateResponse\"\x00\x12-\n\x04Ping\x12\x10.cln.PingRequest\x1a\x11.cln.PingResponse\"\x00\x12\x33\n\x06Plugin\x12\x12.cln.PluginRequest\x1a\x13.cln.PluginResponse\"\x00\x12H\n\rRenePayStatus\x12\x19.cln.RenepaystatusRequest\x1a\x1a.cln.RenepaystatusResponse\"\x00\x12\x36\n\x07RenePay\x12\x13.cln.RenepayRequest\x1a\x14.cln.RenepayResponse\"\x00\x12H\n\rReserveInputs\x12\x19.cln.ReserveinputsRequest\x1a\x1a.cln.ReserveinputsResponse\"\x00\x12H\n\rSendCustomMsg\x12\x19.cln.SendcustommsgRequest\x1a\x1a.cln.SendcustommsgResponse\"\x00\x12\x42\n\x0bSendInvoice\x12\x17.cln.SendinvoiceRequest\x1a\x18.cln.SendinvoiceResponse\"\x00\x12Q\n\x10SendOnionMessage\x12\x1c.cln.SendonionmessageRequest\x1a\x1d.cln.SendonionmessageResponse\"\x00\x12?\n\nSetChannel\x12\x16.cln.SetchannelRequest\x1a\x17.cln.SetchannelResponse\"\x00\x12<\n\tSetConfig\x12\x15.cln.SetconfigRequest\x1a\x16.cln.SetconfigResponse\"\x00\x12K\n\x0eSetPsbtVersion\x12\x1a.cln.SetpsbtversionRequest\x1a\x1b.cln.SetpsbtversionResponse\"\x00\x12\x42\n\x0bSignInvoice\x12\x17.cln.SigninvoiceRequest\x1a\x18.cln.SigninvoiceResponse\"\x00\x12\x42\n\x0bSignMessage\x12\x17.cln.SignmessageRequest\x1a\x18.cln.SignmessageResponse\"\x00\x12\x42\n\x0bSplice_Init\x12\x17.cln.Splice_initRequest\x1a\x18.cln.Splice_initResponse\"\x00\x12H\n\rSplice_Signed\x12\x19.cln.Splice_signedRequest\x1a\x1a.cln.Splice_signedResponse\"\x00\x12H\n\rSplice_Update\x12\x19.cln.Splice_updateRequest\x1a\x1a.cln.Splice_updateResponse\"\x00\x12N\n\x0fUnreserveInputs\x12\x1b.cln.UnreserveinputsRequest\x1a\x1c.cln.UnreserveinputsResponse\"\x00\x12H\n\rUpgradeWallet\x12\x19.cln.UpgradewalletRequest\x1a\x1a.cln.UpgradewalletResponse\"\x00\x12N\n\x0fWaitBlockHeight\x12\x1b.cln.WaitblockheightRequest\x1a\x1c.cln.WaitblockheightResponse\"\x00\x12-\n\x04Wait\x12\x10.cln.WaitRequest\x1a\x11.cln.WaitResponse\"\x00\x12-\n\x04Stop\x12\x10.cln.StopRequest\x1a\x11.cln.StopResponse\"\x00\x12T\n\x11PreApproveKeysend\x12\x1d.cln.PreapprovekeysendRequest\x1a\x1e.cln.PreapprovekeysendResponse\"\x00\x12T\n\x11PreApproveInvoice\x12\x1d.cln.PreapproveinvoiceRequest\x1a\x1e.cln.PreapproveinvoiceResponse\"\x00\x12\x45\n\x0cStaticBackup\x12\x18.cln.StaticbackupRequest\x1a\x19.cln.StaticbackupResponse\"\x00\x12N\n\x0f\x42kprChannelsApy\x12\x1b.cln.BkprchannelsapyRequest\x1a\x1c.cln.BkprchannelsapyResponse\"\x00\x12T\n\x11\x42kprDumpIncomeCsv\x12\x1d.cln.BkprdumpincomecsvRequest\x1a\x1e.cln.BkprdumpincomecsvResponse\"\x00\x12\x42\n\x0b\x42kprInspect\x12\x17.cln.BkprinspectRequest\x1a\x18.cln.BkprinspectResponse\"\x00\x12`\n\x15\x42kprListAccountEvents\x12!.cln.BkprlistaccounteventsRequest\x1a\".cln.BkprlistaccounteventsResponse\"\x00\x12Q\n\x10\x42kprListBalances\x12\x1c.cln.BkprlistbalancesRequest\x1a\x1d.cln.BkprlistbalancesResponse\"\x00\x12K\n\x0e\x42kprListIncome\x12\x1a.cln.BkprlistincomeRequest\x1a\x1b.cln.BkprlistincomeResponse\"\x00\x12T\n\x13SubscribeBlockAdded\x12\x1c.cln.StreamBlockAddedRequest\x1a\x1b.cln.BlockAddedNotification\"\x00\x30\x01\x12i\n\x1aSubscribeChannelOpenFailed\x12#.cln.StreamChannelOpenFailedRequest\x1a\".cln.ChannelOpenFailedNotification\"\x00\x30\x01\x12]\n\x16SubscribeChannelOpened\x12\x1f.cln.StreamChannelOpenedRequest\x1a\x1e.cln.ChannelOpenedNotification\"\x00\x30\x01\x12K\n\x10SubscribeConnect\x12\x19.cln.StreamConnectRequest\x1a\x18.cln.ConnectNotification\"\x00\x30\x01\x12Q\n\x12SubscribeCustomMsg\x12\x1b.cln.StreamCustomMsgRequest\x1a\x1a.cln.CustomMsgNotification\"\x00\x30\x01\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -744,5 +744,5 @@ _globals['_CUSTOMMSGNOTIFICATION']._serialized_start=64014 _globals['_CUSTOMMSGNOTIFICATION']._serialized_end=64071 _globals['_NODE']._serialized_start=64074 - _globals['_NODE']._serialized_end=70693 + _globals['_NODE']._serialized_end=71141 # @@protoc_insertion_point(module_scope) diff --git a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2_grpc.py b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2_grpc.py index 2692b673f651..f869715228cf 100644 --- a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2_grpc.py +++ b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2_grpc.py @@ -494,6 +494,31 @@ def __init__(self, channel): request_serializer=node__pb2.BkprlistincomeRequest.SerializeToString, response_deserializer=node__pb2.BkprlistincomeResponse.FromString, ) + self.SubscribeBlockAdded = channel.unary_stream( + '/cln.Node/SubscribeBlockAdded', + request_serializer=node__pb2.StreamBlockAddedRequest.SerializeToString, + response_deserializer=node__pb2.BlockAddedNotification.FromString, + ) + self.SubscribeChannelOpenFailed = channel.unary_stream( + '/cln.Node/SubscribeChannelOpenFailed', + request_serializer=node__pb2.StreamChannelOpenFailedRequest.SerializeToString, + response_deserializer=node__pb2.ChannelOpenFailedNotification.FromString, + ) + self.SubscribeChannelOpened = channel.unary_stream( + '/cln.Node/SubscribeChannelOpened', + request_serializer=node__pb2.StreamChannelOpenedRequest.SerializeToString, + response_deserializer=node__pb2.ChannelOpenedNotification.FromString, + ) + self.SubscribeConnect = channel.unary_stream( + '/cln.Node/SubscribeConnect', + request_serializer=node__pb2.StreamConnectRequest.SerializeToString, + response_deserializer=node__pb2.ConnectNotification.FromString, + ) + self.SubscribeCustomMsg = channel.unary_stream( + '/cln.Node/SubscribeCustomMsg', + request_serializer=node__pb2.StreamCustomMsgRequest.SerializeToString, + response_deserializer=node__pb2.CustomMsgNotification.FromString, + ) class NodeServicer(object): @@ -1075,6 +1100,36 @@ def BkprListIncome(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def SubscribeBlockAdded(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SubscribeChannelOpenFailed(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SubscribeChannelOpened(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SubscribeConnect(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SubscribeCustomMsg(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_NodeServicer_to_server(servicer, server): rpc_method_handlers = { @@ -1558,6 +1613,31 @@ def add_NodeServicer_to_server(servicer, server): request_deserializer=node__pb2.BkprlistincomeRequest.FromString, response_serializer=node__pb2.BkprlistincomeResponse.SerializeToString, ), + 'SubscribeBlockAdded': grpc.unary_stream_rpc_method_handler( + servicer.SubscribeBlockAdded, + request_deserializer=node__pb2.StreamBlockAddedRequest.FromString, + response_serializer=node__pb2.BlockAddedNotification.SerializeToString, + ), + 'SubscribeChannelOpenFailed': grpc.unary_stream_rpc_method_handler( + servicer.SubscribeChannelOpenFailed, + request_deserializer=node__pb2.StreamChannelOpenFailedRequest.FromString, + response_serializer=node__pb2.ChannelOpenFailedNotification.SerializeToString, + ), + 'SubscribeChannelOpened': grpc.unary_stream_rpc_method_handler( + servicer.SubscribeChannelOpened, + request_deserializer=node__pb2.StreamChannelOpenedRequest.FromString, + response_serializer=node__pb2.ChannelOpenedNotification.SerializeToString, + ), + 'SubscribeConnect': grpc.unary_stream_rpc_method_handler( + servicer.SubscribeConnect, + request_deserializer=node__pb2.StreamConnectRequest.FromString, + response_serializer=node__pb2.ConnectNotification.SerializeToString, + ), + 'SubscribeCustomMsg': grpc.unary_stream_rpc_method_handler( + servicer.SubscribeCustomMsg, + request_deserializer=node__pb2.StreamCustomMsgRequest.FromString, + response_serializer=node__pb2.CustomMsgNotification.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'cln.Node', rpc_method_handlers) @@ -3199,3 +3279,88 @@ def BkprListIncome(request, node__pb2.BkprlistincomeResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SubscribeBlockAdded(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/cln.Node/SubscribeBlockAdded', + node__pb2.StreamBlockAddedRequest.SerializeToString, + node__pb2.BlockAddedNotification.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SubscribeChannelOpenFailed(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/cln.Node/SubscribeChannelOpenFailed', + node__pb2.StreamChannelOpenFailedRequest.SerializeToString, + node__pb2.ChannelOpenFailedNotification.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SubscribeChannelOpened(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/cln.Node/SubscribeChannelOpened', + node__pb2.StreamChannelOpenedRequest.SerializeToString, + node__pb2.ChannelOpenedNotification.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SubscribeConnect(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/cln.Node/SubscribeConnect', + node__pb2.StreamConnectRequest.SerializeToString, + node__pb2.ConnectNotification.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SubscribeCustomMsg(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/cln.Node/SubscribeCustomMsg', + node__pb2.StreamCustomMsgRequest.SerializeToString, + node__pb2.CustomMsgNotification.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) From b01b0a7c193b5b6c298af2a4239895d40eb3fa3d Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Wed, 14 Feb 2024 13:00:19 +0100 Subject: [PATCH 14/24] msggen: Implement notification-server --- Cargo.lock | 35 +- cln-grpc/Cargo.toml | 4 + cln-grpc/src/server.rs | 6319 +++++++++++----------- contrib/msggen/msggen/gen/grpc/proto.py | 3 +- contrib/msggen/msggen/gen/grpc/server.py | 133 +- contrib/msggen/msggen/gen/grpc/util.py | 23 + 6 files changed, 3416 insertions(+), 3101 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 39314116ab02..7870ad99f557 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -264,11 +264,15 @@ dependencies = [ "anyhow", "bitcoin", "cln-rpc", + "futures-core", "hex", "log", "prost", "serde", "serde_json", + "tokio", + "tokio-stream", + "tokio-util", "tonic", "tonic-build", ] @@ -452,9 +456,9 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.28" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" [[package]] name = "futures-executor" @@ -734,9 +738,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.148" +version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b" +checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "linux-raw-sys" @@ -794,9 +798,9 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.8" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" +checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09" dependencies = [ "libc", "wasi", @@ -1313,9 +1317,9 @@ dependencies = [ [[package]] name = "socket2" -version = "0.5.4" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4031e820eb552adee9295814c0ced9e5cf38ddf1e8b7d566d6de8e2538ea989e" +checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9" dependencies = [ "libc", "windows-sys", @@ -1449,9 +1453,9 @@ dependencies = [ [[package]] name = "tokio" -version = "1.32.0" +version = "1.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17ed6077ed6cd6c74735e21f37eb16dc3935f96878b1fe961074089cc80893f9" +checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931" dependencies = [ "backtrace", "bytes", @@ -1459,7 +1463,7 @@ dependencies = [ "mio", "num_cpus", "pin-project-lite", - "socket2 0.5.4", + "socket2 0.5.5", "tokio-macros", "windows-sys", ] @@ -1476,9 +1480,9 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" +checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", @@ -1505,6 +1509,7 @@ dependencies = [ "futures-core", "pin-project-lite", "tokio", + "tokio-util", ] [[package]] @@ -1522,9 +1527,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.9" +version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d68074620f57a0b21594d9735eb2e98ab38b17f80d3fcb189fca266771ca60d" +checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15" dependencies = [ "bytes", "futures-core", diff --git a/cln-grpc/Cargo.toml b/cln-grpc/Cargo.toml index b74e9db7b544..062d97275bca 100644 --- a/cln-grpc/Cargo.toml +++ b/cln-grpc/Cargo.toml @@ -21,6 +21,10 @@ prost = "0.11" serde = { version = "1.0", features = ["derive"] } hex = "0.4.3" bitcoin = { version = "0.30", features = [ "serde" ] } +tokio-stream = { version = "0.1.14", features = ["sync"] } +tokio = { version = "1.36.0", features = ["sync"] } +futures-core = "0.3.30" +tokio-util = "0.7.10" [dev-dependencies] serde_json = "1.0.72" diff --git a/cln-grpc/src/server.rs b/cln-grpc/src/server.rs index f568e4cb81ec..7771bcc7c6d0 100644 --- a/cln-grpc/src/server.rs +++ b/cln-grpc/src/server.rs @@ -1,3101 +1,3282 @@ use crate::pb::node_server::Node; use crate::pb; use cln_rpc::{Request, Response, ClnRpc}; +use cln_rpc::notifications::Notification; use anyhow::Result; use std::path::{Path, PathBuf}; +use std::pin::Pin; +use std::task::{Context, Poll}; use cln_rpc::model::requests; use log::{debug, trace}; use tonic::{Code, Status}; +use tokio::sync::broadcast; +use tokio_stream::wrappers::errors::BroadcastStreamRecvError; +use tokio_stream::wrappers::BroadcastStream; + #[derive(Clone)] pub struct Server { rpc_path: PathBuf, + events : broadcast::Sender } impl Server { - pub async fn new(path: &Path) -> Result + pub async fn new( + path: &Path, + events : broadcast::Sender + ) -> Result { Ok(Self { rpc_path: path.to_path_buf(), + events : events }) } } -#[tonic::async_trait] -impl Node for Server -{ -async fn getinfo( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::GetinfoRequest = req.into(); - debug!("Client asked for getinfo"); - trace!("getinfo request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Getinfo(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Getinfo: {:?}", e)))?; - match result { - Response::Getinfo(r) => { - trace!("getinfo response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Getinfo", - r - ) - )), - } - -} - -async fn list_peers( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListpeersRequest = req.into(); - debug!("Client asked for list_peers"); - trace!("list_peers request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListPeers(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListPeers: {:?}", e)))?; - match result { - Response::ListPeers(r) => { - trace!("list_peers response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListPeers", - r - ) - )), - } - -} - -async fn list_funds( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListfundsRequest = req.into(); - debug!("Client asked for list_funds"); - trace!("list_funds request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListFunds(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListFunds: {:?}", e)))?; - match result { - Response::ListFunds(r) => { - trace!("list_funds response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListFunds", - r - ) - )), - } - -} - -async fn send_pay( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::SendpayRequest = req.into(); - debug!("Client asked for send_pay"); - trace!("send_pay request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::SendPay(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method SendPay: {:?}", e)))?; - match result { - Response::SendPay(r) => { - trace!("send_pay response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call SendPay", - r - ) - )), - } - -} - -async fn list_channels( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListchannelsRequest = req.into(); - debug!("Client asked for list_channels"); - trace!("list_channels request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListChannels(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListChannels: {:?}", e)))?; - match result { - Response::ListChannels(r) => { - trace!("list_channels response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListChannels", - r - ) - )), - } - -} - -async fn add_gossip( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::AddgossipRequest = req.into(); - debug!("Client asked for add_gossip"); - trace!("add_gossip request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::AddGossip(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method AddGossip: {:?}", e)))?; - match result { - Response::AddGossip(r) => { - trace!("add_gossip response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call AddGossip", - r - ) - )), - } - -} - -async fn auto_clean_invoice( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::AutocleaninvoiceRequest = req.into(); - debug!("Client asked for auto_clean_invoice"); - trace!("auto_clean_invoice request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::AutoCleanInvoice(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method AutoCleanInvoice: {:?}", e)))?; - match result { - Response::AutoCleanInvoice(r) => { - trace!("auto_clean_invoice response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call AutoCleanInvoice", - r - ) - )), - } - -} - -async fn auto_clean_once( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::AutocleanonceRequest = req.into(); - debug!("Client asked for auto_clean_once"); - trace!("auto_clean_once request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::AutoCleanOnce(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method AutoCleanOnce: {:?}", e)))?; - match result { - Response::AutoCleanOnce(r) => { - trace!("auto_clean_once response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call AutoCleanOnce", - r - ) - )), - } - -} - -async fn auto_clean_status( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::AutocleanstatusRequest = req.into(); - debug!("Client asked for auto_clean_status"); - trace!("auto_clean_status request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::AutoCleanStatus(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method AutoCleanStatus: {:?}", e)))?; - match result { - Response::AutoCleanStatus(r) => { - trace!("auto_clean_status response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call AutoCleanStatus", - r - ) - )), - } - -} - -async fn check_message( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::CheckmessageRequest = req.into(); - debug!("Client asked for check_message"); - trace!("check_message request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::CheckMessage(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method CheckMessage: {:?}", e)))?; - match result { - Response::CheckMessage(r) => { - trace!("check_message response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call CheckMessage", - r - ) - )), - } - -} - -async fn close( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::CloseRequest = req.into(); - debug!("Client asked for close"); - trace!("close request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Close(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Close: {:?}", e)))?; - match result { - Response::Close(r) => { - trace!("close response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Close", - r - ) - )), - } - -} - -async fn connect_peer( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ConnectRequest = req.into(); - debug!("Client asked for connect_peer"); - trace!("connect_peer request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Connect(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Connect: {:?}", e)))?; - match result { - Response::Connect(r) => { - trace!("connect_peer response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Connect", - r - ) - )), - } - -} - -async fn create_invoice( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::CreateinvoiceRequest = req.into(); - debug!("Client asked for create_invoice"); - trace!("create_invoice request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::CreateInvoice(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method CreateInvoice: {:?}", e)))?; - match result { - Response::CreateInvoice(r) => { - trace!("create_invoice response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call CreateInvoice", - r - ) - )), - } - -} - -async fn datastore( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::DatastoreRequest = req.into(); - debug!("Client asked for datastore"); - trace!("datastore request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Datastore(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Datastore: {:?}", e)))?; - match result { - Response::Datastore(r) => { - trace!("datastore response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Datastore", - r - ) - )), - } - -} - -async fn datastore_usage( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::DatastoreusageRequest = req.into(); - debug!("Client asked for datastore_usage"); - trace!("datastore_usage request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::DatastoreUsage(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method DatastoreUsage: {:?}", e)))?; - match result { - Response::DatastoreUsage(r) => { - trace!("datastore_usage response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call DatastoreUsage", - r - ) - )), - } - -} - -async fn create_onion( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::CreateonionRequest = req.into(); - debug!("Client asked for create_onion"); - trace!("create_onion request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::CreateOnion(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method CreateOnion: {:?}", e)))?; - match result { - Response::CreateOnion(r) => { - trace!("create_onion response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call CreateOnion", - r - ) - )), - } - -} - -async fn del_datastore( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::DeldatastoreRequest = req.into(); - debug!("Client asked for del_datastore"); - trace!("del_datastore request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::DelDatastore(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method DelDatastore: {:?}", e)))?; - match result { - Response::DelDatastore(r) => { - trace!("del_datastore response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call DelDatastore", - r - ) - )), - } - -} - -async fn del_invoice( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::DelinvoiceRequest = req.into(); - debug!("Client asked for del_invoice"); - trace!("del_invoice request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::DelInvoice(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method DelInvoice: {:?}", e)))?; - match result { - Response::DelInvoice(r) => { - trace!("del_invoice response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call DelInvoice", - r - ) - )), - } - -} - -async fn invoice( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::InvoiceRequest = req.into(); - debug!("Client asked for invoice"); - trace!("invoice request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Invoice(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Invoice: {:?}", e)))?; - match result { - Response::Invoice(r) => { - trace!("invoice response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Invoice", - r - ) - )), - } - -} - -async fn list_datastore( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListdatastoreRequest = req.into(); - debug!("Client asked for list_datastore"); - trace!("list_datastore request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListDatastore(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListDatastore: {:?}", e)))?; - match result { - Response::ListDatastore(r) => { - trace!("list_datastore response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListDatastore", - r - ) - )), - } - -} - -async fn list_invoices( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListinvoicesRequest = req.into(); - debug!("Client asked for list_invoices"); - trace!("list_invoices request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListInvoices(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListInvoices: {:?}", e)))?; - match result { - Response::ListInvoices(r) => { - trace!("list_invoices response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListInvoices", - r - ) - )), - } - -} - -async fn send_onion( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::SendonionRequest = req.into(); - debug!("Client asked for send_onion"); - trace!("send_onion request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::SendOnion(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method SendOnion: {:?}", e)))?; - match result { - Response::SendOnion(r) => { - trace!("send_onion response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call SendOnion", - r - ) - )), - } - -} - -async fn list_send_pays( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListsendpaysRequest = req.into(); - debug!("Client asked for list_send_pays"); - trace!("list_send_pays request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListSendPays(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListSendPays: {:?}", e)))?; - match result { - Response::ListSendPays(r) => { - trace!("list_send_pays response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListSendPays", - r - ) - )), - } - -} - -async fn list_transactions( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListtransactionsRequest = req.into(); - debug!("Client asked for list_transactions"); - trace!("list_transactions request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListTransactions(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListTransactions: {:?}", e)))?; - match result { - Response::ListTransactions(r) => { - trace!("list_transactions response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListTransactions", - r - ) - )), - } - -} - -async fn pay( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::PayRequest = req.into(); - debug!("Client asked for pay"); - trace!("pay request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Pay(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Pay: {:?}", e)))?; - match result { - Response::Pay(r) => { - trace!("pay response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Pay", - r - ) - )), - } - -} - -async fn list_nodes( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListnodesRequest = req.into(); - debug!("Client asked for list_nodes"); - trace!("list_nodes request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListNodes(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListNodes: {:?}", e)))?; - match result { - Response::ListNodes(r) => { - trace!("list_nodes response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListNodes", - r - ) - )), - } - -} - -async fn wait_any_invoice( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::WaitanyinvoiceRequest = req.into(); - debug!("Client asked for wait_any_invoice"); - trace!("wait_any_invoice request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::WaitAnyInvoice(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method WaitAnyInvoice: {:?}", e)))?; - match result { - Response::WaitAnyInvoice(r) => { - trace!("wait_any_invoice response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call WaitAnyInvoice", - r - ) - )), - } - -} - -async fn wait_invoice( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::WaitinvoiceRequest = req.into(); - debug!("Client asked for wait_invoice"); - trace!("wait_invoice request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::WaitInvoice(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method WaitInvoice: {:?}", e)))?; - match result { - Response::WaitInvoice(r) => { - trace!("wait_invoice response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call WaitInvoice", - r - ) - )), - } - -} - -async fn wait_send_pay( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::WaitsendpayRequest = req.into(); - debug!("Client asked for wait_send_pay"); - trace!("wait_send_pay request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::WaitSendPay(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method WaitSendPay: {:?}", e)))?; - match result { - Response::WaitSendPay(r) => { - trace!("wait_send_pay response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call WaitSendPay", - r - ) - )), - } - -} - -async fn new_addr( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::NewaddrRequest = req.into(); - debug!("Client asked for new_addr"); - trace!("new_addr request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::NewAddr(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method NewAddr: {:?}", e)))?; - match result { - Response::NewAddr(r) => { - trace!("new_addr response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call NewAddr", - r - ) - )), - } - -} - -async fn withdraw( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::WithdrawRequest = req.into(); - debug!("Client asked for withdraw"); - trace!("withdraw request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Withdraw(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Withdraw: {:?}", e)))?; - match result { - Response::Withdraw(r) => { - trace!("withdraw response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Withdraw", - r - ) - )), - } - -} - -async fn key_send( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::KeysendRequest = req.into(); - debug!("Client asked for key_send"); - trace!("key_send request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::KeySend(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method KeySend: {:?}", e)))?; - match result { - Response::KeySend(r) => { - trace!("key_send response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call KeySend", - r - ) - )), - } - -} - -async fn fund_psbt( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::FundpsbtRequest = req.into(); - debug!("Client asked for fund_psbt"); - trace!("fund_psbt request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::FundPsbt(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method FundPsbt: {:?}", e)))?; - match result { - Response::FundPsbt(r) => { - trace!("fund_psbt response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call FundPsbt", - r - ) - )), - } - -} - -async fn send_psbt( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::SendpsbtRequest = req.into(); - debug!("Client asked for send_psbt"); - trace!("send_psbt request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::SendPsbt(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method SendPsbt: {:?}", e)))?; - match result { - Response::SendPsbt(r) => { - trace!("send_psbt response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call SendPsbt", - r - ) - )), - } - -} - -async fn sign_psbt( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::SignpsbtRequest = req.into(); - debug!("Client asked for sign_psbt"); - trace!("sign_psbt request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::SignPsbt(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method SignPsbt: {:?}", e)))?; - match result { - Response::SignPsbt(r) => { - trace!("sign_psbt response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call SignPsbt", - r - ) - )), - } - -} - -async fn utxo_psbt( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::UtxopsbtRequest = req.into(); - debug!("Client asked for utxo_psbt"); - trace!("utxo_psbt request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::UtxoPsbt(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method UtxoPsbt: {:?}", e)))?; - match result { - Response::UtxoPsbt(r) => { - trace!("utxo_psbt response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call UtxoPsbt", - r - ) - )), - } - -} - -async fn tx_discard( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::TxdiscardRequest = req.into(); - debug!("Client asked for tx_discard"); - trace!("tx_discard request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::TxDiscard(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method TxDiscard: {:?}", e)))?; - match result { - Response::TxDiscard(r) => { - trace!("tx_discard response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call TxDiscard", - r - ) - )), - } - -} - -async fn tx_prepare( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::TxprepareRequest = req.into(); - debug!("Client asked for tx_prepare"); - trace!("tx_prepare request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::TxPrepare(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method TxPrepare: {:?}", e)))?; - match result { - Response::TxPrepare(r) => { - trace!("tx_prepare response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call TxPrepare", - r - ) - )), - } - -} - -async fn tx_send( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::TxsendRequest = req.into(); - debug!("Client asked for tx_send"); - trace!("tx_send request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::TxSend(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method TxSend: {:?}", e)))?; - match result { - Response::TxSend(r) => { - trace!("tx_send response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call TxSend", - r - ) - )), - } - -} - -async fn list_peer_channels( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListpeerchannelsRequest = req.into(); - debug!("Client asked for list_peer_channels"); - trace!("list_peer_channels request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListPeerChannels(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListPeerChannels: {:?}", e)))?; - match result { - Response::ListPeerChannels(r) => { - trace!("list_peer_channels response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListPeerChannels", - r - ) - )), - } - -} - -async fn list_closed_channels( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListclosedchannelsRequest = req.into(); - debug!("Client asked for list_closed_channels"); - trace!("list_closed_channels request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListClosedChannels(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListClosedChannels: {:?}", e)))?; - match result { - Response::ListClosedChannels(r) => { - trace!("list_closed_channels response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListClosedChannels", - r - ) - )), - } - -} - -async fn decode_pay( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::DecodepayRequest = req.into(); - debug!("Client asked for decode_pay"); - trace!("decode_pay request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::DecodePay(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method DecodePay: {:?}", e)))?; - match result { - Response::DecodePay(r) => { - trace!("decode_pay response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call DecodePay", - r - ) - )), - } - -} - -async fn decode( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::DecodeRequest = req.into(); - debug!("Client asked for decode"); - trace!("decode request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Decode(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Decode: {:?}", e)))?; - match result { - Response::Decode(r) => { - trace!("decode response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Decode", - r - ) - )), - } - -} - -async fn del_pay( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::DelpayRequest = req.into(); - debug!("Client asked for del_pay"); - trace!("del_pay request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::DelPay(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method DelPay: {:?}", e)))?; - match result { - Response::DelPay(r) => { - trace!("del_pay response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call DelPay", - r - ) - )), - } - -} - -async fn del_forward( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::DelforwardRequest = req.into(); - debug!("Client asked for del_forward"); - trace!("del_forward request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::DelForward(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method DelForward: {:?}", e)))?; - match result { - Response::DelForward(r) => { - trace!("del_forward response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call DelForward", - r - ) - )), - } - -} - -async fn disable_offer( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::DisableofferRequest = req.into(); - debug!("Client asked for disable_offer"); - trace!("disable_offer request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::DisableOffer(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method DisableOffer: {:?}", e)))?; - match result { - Response::DisableOffer(r) => { - trace!("disable_offer response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call DisableOffer", - r - ) - )), - } - -} - -async fn disconnect( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::DisconnectRequest = req.into(); - debug!("Client asked for disconnect"); - trace!("disconnect request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Disconnect(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Disconnect: {:?}", e)))?; - match result { - Response::Disconnect(r) => { - trace!("disconnect response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Disconnect", - r - ) - )), - } - -} - -async fn feerates( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::FeeratesRequest = req.into(); - debug!("Client asked for feerates"); - trace!("feerates request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Feerates(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Feerates: {:?}", e)))?; - match result { - Response::Feerates(r) => { - trace!("feerates response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Feerates", - r - ) - )), - } - -} - -async fn fetch_invoice( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::FetchinvoiceRequest = req.into(); - debug!("Client asked for fetch_invoice"); - trace!("fetch_invoice request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::FetchInvoice(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method FetchInvoice: {:?}", e)))?; - match result { - Response::FetchInvoice(r) => { - trace!("fetch_invoice response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call FetchInvoice", - r - ) - )), - } - -} - -async fn fund_channel_cancel( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::Fundchannel_cancelRequest = req.into(); - debug!("Client asked for fund_channel_cancel"); - trace!("fund_channel_cancel request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::FundChannel_Cancel(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method FundChannel_Cancel: {:?}", e)))?; - match result { - Response::FundChannel_Cancel(r) => { - trace!("fund_channel_cancel response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call FundChannel_Cancel", - r - ) - )), - } - -} - -async fn fund_channel_complete( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::Fundchannel_completeRequest = req.into(); - debug!("Client asked for fund_channel_complete"); - trace!("fund_channel_complete request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::FundChannel_Complete(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method FundChannel_Complete: {:?}", e)))?; - match result { - Response::FundChannel_Complete(r) => { - trace!("fund_channel_complete response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call FundChannel_Complete", - r - ) - )), - } - -} - -async fn fund_channel( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::FundchannelRequest = req.into(); - debug!("Client asked for fund_channel"); - trace!("fund_channel request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::FundChannel(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method FundChannel: {:?}", e)))?; - match result { - Response::FundChannel(r) => { - trace!("fund_channel response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call FundChannel", - r - ) - )), - } - -} - -async fn fund_channel_start( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::Fundchannel_startRequest = req.into(); - debug!("Client asked for fund_channel_start"); - trace!("fund_channel_start request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::FundChannel_Start(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method FundChannel_Start: {:?}", e)))?; - match result { - Response::FundChannel_Start(r) => { - trace!("fund_channel_start response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call FundChannel_Start", - r - ) - )), - } - -} - -async fn get_log( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::GetlogRequest = req.into(); - debug!("Client asked for get_log"); - trace!("get_log request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::GetLog(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method GetLog: {:?}", e)))?; - match result { - Response::GetLog(r) => { - trace!("get_log response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call GetLog", - r - ) - )), - } - -} - -async fn get_route( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::GetrouteRequest = req.into(); - debug!("Client asked for get_route"); - trace!("get_route request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::GetRoute(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method GetRoute: {:?}", e)))?; - match result { - Response::GetRoute(r) => { - trace!("get_route response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call GetRoute", - r - ) - )), - } - -} - -async fn list_forwards( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListforwardsRequest = req.into(); - debug!("Client asked for list_forwards"); - trace!("list_forwards request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListForwards(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListForwards: {:?}", e)))?; - match result { - Response::ListForwards(r) => { - trace!("list_forwards response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListForwards", - r - ) - )), - } - -} - -async fn list_offers( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListoffersRequest = req.into(); - debug!("Client asked for list_offers"); - trace!("list_offers request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListOffers(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListOffers: {:?}", e)))?; - match result { - Response::ListOffers(r) => { - trace!("list_offers response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListOffers", - r - ) - )), - } - -} - -async fn list_pays( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListpaysRequest = req.into(); - debug!("Client asked for list_pays"); - trace!("list_pays request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListPays(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListPays: {:?}", e)))?; - match result { - Response::ListPays(r) => { - trace!("list_pays response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListPays", - r - ) - )), - } - -} - -async fn list_htlcs( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ListhtlcsRequest = req.into(); - debug!("Client asked for list_htlcs"); - trace!("list_htlcs request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ListHtlcs(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ListHtlcs: {:?}", e)))?; - match result { - Response::ListHtlcs(r) => { - trace!("list_htlcs response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ListHtlcs", - r - ) - )), - } - -} - -async fn multi_fund_channel( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::MultifundchannelRequest = req.into(); - debug!("Client asked for multi_fund_channel"); - trace!("multi_fund_channel request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::MultiFundChannel(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method MultiFundChannel: {:?}", e)))?; - match result { - Response::MultiFundChannel(r) => { - trace!("multi_fund_channel response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call MultiFundChannel", - r - ) - )), - } - -} - -async fn offer( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::OfferRequest = req.into(); - debug!("Client asked for offer"); - trace!("offer request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Offer(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Offer: {:?}", e)))?; - match result { - Response::Offer(r) => { - trace!("offer response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Offer", - r - ) - )), - } - -} - -async fn open_channel_abort( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::Openchannel_abortRequest = req.into(); - debug!("Client asked for open_channel_abort"); - trace!("open_channel_abort request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::OpenChannel_Abort(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method OpenChannel_Abort: {:?}", e)))?; - match result { - Response::OpenChannel_Abort(r) => { - trace!("open_channel_abort response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call OpenChannel_Abort", - r - ) - )), - } - -} - -async fn open_channel_bump( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::Openchannel_bumpRequest = req.into(); - debug!("Client asked for open_channel_bump"); - trace!("open_channel_bump request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::OpenChannel_Bump(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method OpenChannel_Bump: {:?}", e)))?; - match result { - Response::OpenChannel_Bump(r) => { - trace!("open_channel_bump response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call OpenChannel_Bump", - r - ) - )), - } - -} - -async fn open_channel_init( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::Openchannel_initRequest = req.into(); - debug!("Client asked for open_channel_init"); - trace!("open_channel_init request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::OpenChannel_Init(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method OpenChannel_Init: {:?}", e)))?; - match result { - Response::OpenChannel_Init(r) => { - trace!("open_channel_init response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call OpenChannel_Init", - r - ) - )), - } - -} - -async fn open_channel_signed( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::Openchannel_signedRequest = req.into(); - debug!("Client asked for open_channel_signed"); - trace!("open_channel_signed request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::OpenChannel_Signed(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method OpenChannel_Signed: {:?}", e)))?; - match result { - Response::OpenChannel_Signed(r) => { - trace!("open_channel_signed response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call OpenChannel_Signed", - r - ) - )), - } - -} - -async fn open_channel_update( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::Openchannel_updateRequest = req.into(); - debug!("Client asked for open_channel_update"); - trace!("open_channel_update request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::OpenChannel_Update(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method OpenChannel_Update: {:?}", e)))?; - match result { - Response::OpenChannel_Update(r) => { - trace!("open_channel_update response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call OpenChannel_Update", - r - ) - )), - } - -} - -async fn ping( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::PingRequest = req.into(); - debug!("Client asked for ping"); - trace!("ping request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Ping(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Ping: {:?}", e)))?; - match result { - Response::Ping(r) => { - trace!("ping response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Ping", - r - ) - )), - } - -} - -async fn plugin( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::PluginRequest = req.into(); - debug!("Client asked for plugin"); - trace!("plugin request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Plugin(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Plugin: {:?}", e)))?; - match result { - Response::Plugin(r) => { - trace!("plugin response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Plugin", - r - ) - )), - } - -} - -async fn rene_pay_status( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::RenepaystatusRequest = req.into(); - debug!("Client asked for rene_pay_status"); - trace!("rene_pay_status request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::RenePayStatus(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method RenePayStatus: {:?}", e)))?; - match result { - Response::RenePayStatus(r) => { - trace!("rene_pay_status response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call RenePayStatus", - r - ) - )), - } - -} - -async fn rene_pay( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::RenepayRequest = req.into(); - debug!("Client asked for rene_pay"); - trace!("rene_pay request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::RenePay(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method RenePay: {:?}", e)))?; - match result { - Response::RenePay(r) => { - trace!("rene_pay response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call RenePay", - r - ) - )), - } - -} - -async fn reserve_inputs( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::ReserveinputsRequest = req.into(); - debug!("Client asked for reserve_inputs"); - trace!("reserve_inputs request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::ReserveInputs(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method ReserveInputs: {:?}", e)))?; - match result { - Response::ReserveInputs(r) => { - trace!("reserve_inputs response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call ReserveInputs", - r - ) - )), - } - -} - -async fn send_custom_msg( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::SendcustommsgRequest = req.into(); - debug!("Client asked for send_custom_msg"); - trace!("send_custom_msg request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::SendCustomMsg(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method SendCustomMsg: {:?}", e)))?; - match result { - Response::SendCustomMsg(r) => { - trace!("send_custom_msg response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call SendCustomMsg", - r - ) - )), - } - -} - -async fn send_invoice( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::SendinvoiceRequest = req.into(); - debug!("Client asked for send_invoice"); - trace!("send_invoice request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::SendInvoice(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method SendInvoice: {:?}", e)))?; - match result { - Response::SendInvoice(r) => { - trace!("send_invoice response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call SendInvoice", - r - ) - )), - } - -} - -async fn send_onion_message( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::SendonionmessageRequest = req.into(); - debug!("Client asked for send_onion_message"); - trace!("send_onion_message request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::SendOnionMessage(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method SendOnionMessage: {:?}", e)))?; - match result { - Response::SendOnionMessage(r) => { - trace!("send_onion_message response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call SendOnionMessage", - r - ) - )), - } - -} - -async fn set_channel( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::SetchannelRequest = req.into(); - debug!("Client asked for set_channel"); - trace!("set_channel request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::SetChannel(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method SetChannel: {:?}", e)))?; - match result { - Response::SetChannel(r) => { - trace!("set_channel response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call SetChannel", - r - ) - )), - } - -} - -async fn set_config( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::SetconfigRequest = req.into(); - debug!("Client asked for set_config"); - trace!("set_config request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::SetConfig(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method SetConfig: {:?}", e)))?; - match result { - Response::SetConfig(r) => { - trace!("set_config response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call SetConfig", - r - ) - )), - } - -} - -async fn set_psbt_version( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::SetpsbtversionRequest = req.into(); - debug!("Client asked for set_psbt_version"); - trace!("set_psbt_version request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::SetPsbtVersion(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method SetPsbtVersion: {:?}", e)))?; - match result { - Response::SetPsbtVersion(r) => { - trace!("set_psbt_version response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call SetPsbtVersion", - r - ) - )), - } - -} - -async fn sign_invoice( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::SigninvoiceRequest = req.into(); - debug!("Client asked for sign_invoice"); - trace!("sign_invoice request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::SignInvoice(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method SignInvoice: {:?}", e)))?; - match result { - Response::SignInvoice(r) => { - trace!("sign_invoice response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call SignInvoice", - r - ) - )), - } - -} - -async fn sign_message( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::SignmessageRequest = req.into(); - debug!("Client asked for sign_message"); - trace!("sign_message request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::SignMessage(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method SignMessage: {:?}", e)))?; - match result { - Response::SignMessage(r) => { - trace!("sign_message response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call SignMessage", - r - ) - )), - } - -} - -async fn splice_init( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::Splice_initRequest = req.into(); - debug!("Client asked for splice_init"); - trace!("splice_init request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Splice_Init(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Splice_Init: {:?}", e)))?; - match result { - Response::Splice_Init(r) => { - trace!("splice_init response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Splice_Init", - r - ) - )), - } - -} - -async fn splice_signed( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::Splice_signedRequest = req.into(); - debug!("Client asked for splice_signed"); - trace!("splice_signed request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Splice_Signed(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Splice_Signed: {:?}", e)))?; - match result { - Response::Splice_Signed(r) => { - trace!("splice_signed response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Splice_Signed", - r - ) - )), - } - -} - -async fn splice_update( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::Splice_updateRequest = req.into(); - debug!("Client asked for splice_update"); - trace!("splice_update request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Splice_Update(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Splice_Update: {:?}", e)))?; - match result { - Response::Splice_Update(r) => { - trace!("splice_update response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Splice_Update", - r - ) - )), - } - -} - -async fn unreserve_inputs( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::UnreserveinputsRequest = req.into(); - debug!("Client asked for unreserve_inputs"); - trace!("unreserve_inputs request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::UnreserveInputs(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method UnreserveInputs: {:?}", e)))?; - match result { - Response::UnreserveInputs(r) => { - trace!("unreserve_inputs response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call UnreserveInputs", - r - ) - )), - } - -} - -async fn upgrade_wallet( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::UpgradewalletRequest = req.into(); - debug!("Client asked for upgrade_wallet"); - trace!("upgrade_wallet request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::UpgradeWallet(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method UpgradeWallet: {:?}", e)))?; - match result { - Response::UpgradeWallet(r) => { - trace!("upgrade_wallet response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call UpgradeWallet", - r - ) - )), - } - -} - -async fn wait_block_height( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::WaitblockheightRequest = req.into(); - debug!("Client asked for wait_block_height"); - trace!("wait_block_height request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::WaitBlockHeight(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method WaitBlockHeight: {:?}", e)))?; - match result { - Response::WaitBlockHeight(r) => { - trace!("wait_block_height response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call WaitBlockHeight", - r - ) - )), - } - -} - -async fn wait( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::WaitRequest = req.into(); - debug!("Client asked for wait"); - trace!("wait request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Wait(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Wait: {:?}", e)))?; - match result { - Response::Wait(r) => { - trace!("wait response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Wait", - r - ) - )), - } - -} - -async fn stop( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::StopRequest = req.into(); - debug!("Client asked for stop"); - trace!("stop request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::Stop(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method Stop: {:?}", e)))?; - match result { - Response::Stop(r) => { - trace!("stop response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call Stop", - r - ) - )), - } - -} - -async fn pre_approve_keysend( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::PreapprovekeysendRequest = req.into(); - debug!("Client asked for pre_approve_keysend"); - trace!("pre_approve_keysend request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::PreApproveKeysend(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method PreApproveKeysend: {:?}", e)))?; - match result { - Response::PreApproveKeysend(r) => { - trace!("pre_approve_keysend response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call PreApproveKeysend", - r - ) - )), - } - -} - -async fn pre_approve_invoice( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::PreapproveinvoiceRequest = req.into(); - debug!("Client asked for pre_approve_invoice"); - trace!("pre_approve_invoice request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::PreApproveInvoice(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method PreApproveInvoice: {:?}", e)))?; - match result { - Response::PreApproveInvoice(r) => { - trace!("pre_approve_invoice response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call PreApproveInvoice", - r - ) - )), - } - -} - -async fn static_backup( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::StaticbackupRequest = req.into(); - debug!("Client asked for static_backup"); - trace!("static_backup request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::StaticBackup(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method StaticBackup: {:?}", e)))?; - match result { - Response::StaticBackup(r) => { - trace!("static_backup response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call StaticBackup", - r - ) - )), - } - -} - -async fn bkpr_channels_apy( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::BkprchannelsapyRequest = req.into(); - debug!("Client asked for bkpr_channels_apy"); - trace!("bkpr_channels_apy request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::BkprChannelsApy(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method BkprChannelsApy: {:?}", e)))?; - match result { - Response::BkprChannelsApy(r) => { - trace!("bkpr_channels_apy response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call BkprChannelsApy", - r - ) - )), - } - -} - -async fn bkpr_dump_income_csv( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::BkprdumpincomecsvRequest = req.into(); - debug!("Client asked for bkpr_dump_income_csv"); - trace!("bkpr_dump_income_csv request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::BkprDumpIncomeCsv(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method BkprDumpIncomeCsv: {:?}", e)))?; - match result { - Response::BkprDumpIncomeCsv(r) => { - trace!("bkpr_dump_income_csv response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call BkprDumpIncomeCsv", - r - ) - )), - } - -} - -async fn bkpr_inspect( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::BkprinspectRequest = req.into(); - debug!("Client asked for bkpr_inspect"); - trace!("bkpr_inspect request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::BkprInspect(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method BkprInspect: {:?}", e)))?; - match result { - Response::BkprInspect(r) => { - trace!("bkpr_inspect response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call BkprInspect", - r - ) - )), - } - +pub struct NotificationStream { + inner : Pin>>, + fn_filter_map : fn(Notification) -> Option } -async fn bkpr_list_account_events( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::BkprlistaccounteventsRequest = req.into(); - debug!("Client asked for bkpr_list_account_events"); - trace!("bkpr_list_account_events request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::BkprListAccountEvents(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method BkprListAccountEvents: {:?}", e)))?; - match result { - Response::BkprListAccountEvents(r) => { - trace!("bkpr_list_account_events response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call BkprListAccountEvents", - r - ) - )), - } - -} +impl tokio_stream::Stream for NotificationStream { -async fn bkpr_list_balances( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::BkprlistbalancesRequest = req.into(); - debug!("Client asked for bkpr_list_balances"); - trace!("bkpr_list_balances request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::BkprListBalances(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method BkprListBalances: {:?}", e)))?; - match result { - Response::BkprListBalances(r) => { - trace!("bkpr_list_balances response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call BkprListBalances", - r - ) - )), - } + type Item = Result; -} + fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { + while let Poll::Ready(result) = self.inner.as_mut().poll_next(cx) { + // None is used here to signal that we have reached the end of stream + // If inner ends the stream by returning None we do the same + if result.is_none() { + return Poll::Ready(None) + } + let result: Result = result.unwrap(); -async fn bkpr_list_income( - &self, - request: tonic::Request, -) -> Result, tonic::Status> { - let req = request.into_inner(); - let req: requests::BkprlistincomeRequest = req.into(); - debug!("Client asked for bkpr_list_income"); - trace!("bkpr_list_income request: {:?}", req); - let mut rpc = ClnRpc::new(&self.rpc_path) - .await - .map_err(|e| Status::new(Code::Internal, e.to_string()))?; - let result = rpc.call(Request::BkprListIncome(req)) - .await - .map_err(|e| Status::new( - Code::Unknown, - format!("Error calling method BkprListIncome: {:?}", e)))?; - match result { - Response::BkprListIncome(r) => { - trace!("bkpr_list_income response: {:?}", r); - Ok(tonic::Response::new(r.into())) - }, - r => Err(Status::new( - Code::Internal, - format!( - "Unexpected result {:?} to method call BkprListIncome", - r - ) - )), + match result { + Err(BroadcastStreamRecvError::Lagged(lag)) => { + // In this error case we've missed some notifications + // We log the error to core lightning and forward + // this information to the client + log::warn!("Due to lag the grpc-server skipped {} notifications", lag); + return Poll::Ready(Some(Err( + Status::data_loss( + format!("Skipped up to {} notifications", lag))))) + } + Ok(notification) => { + let filtered = (self.fn_filter_map)(notification); + match filtered { + Some(n) => return Poll::Ready(Some(Ok(n))), + None => { + // We ignore the message if it isn't a match. + // e.g: A `ChannelOpenedStream` will ignore `CustomMsgNotifications` + } + } + } + } + } + Poll::Pending } - } -} +#[tonic::async_trait] +impl Node for Server +{ + async fn getinfo( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::GetinfoRequest = req.into(); + debug!("Client asked for getinfo"); + trace!("getinfo request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Getinfo(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Getinfo: {:?}", e)))?; + match result { + Response::Getinfo(r) => { + trace!("getinfo response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Getinfo", + r + ) + )), + } + + } + + async fn list_peers( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListpeersRequest = req.into(); + debug!("Client asked for list_peers"); + trace!("list_peers request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListPeers(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListPeers: {:?}", e)))?; + match result { + Response::ListPeers(r) => { + trace!("list_peers response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListPeers", + r + ) + )), + } + + } + + async fn list_funds( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListfundsRequest = req.into(); + debug!("Client asked for list_funds"); + trace!("list_funds request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListFunds(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListFunds: {:?}", e)))?; + match result { + Response::ListFunds(r) => { + trace!("list_funds response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListFunds", + r + ) + )), + } + + } + + async fn send_pay( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::SendpayRequest = req.into(); + debug!("Client asked for send_pay"); + trace!("send_pay request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::SendPay(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method SendPay: {:?}", e)))?; + match result { + Response::SendPay(r) => { + trace!("send_pay response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call SendPay", + r + ) + )), + } + + } + + async fn list_channels( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListchannelsRequest = req.into(); + debug!("Client asked for list_channels"); + trace!("list_channels request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListChannels(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListChannels: {:?}", e)))?; + match result { + Response::ListChannels(r) => { + trace!("list_channels response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListChannels", + r + ) + )), + } + + } + + async fn add_gossip( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::AddgossipRequest = req.into(); + debug!("Client asked for add_gossip"); + trace!("add_gossip request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::AddGossip(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method AddGossip: {:?}", e)))?; + match result { + Response::AddGossip(r) => { + trace!("add_gossip response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call AddGossip", + r + ) + )), + } + + } + + async fn auto_clean_invoice( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::AutocleaninvoiceRequest = req.into(); + debug!("Client asked for auto_clean_invoice"); + trace!("auto_clean_invoice request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::AutoCleanInvoice(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method AutoCleanInvoice: {:?}", e)))?; + match result { + Response::AutoCleanInvoice(r) => { + trace!("auto_clean_invoice response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call AutoCleanInvoice", + r + ) + )), + } + + } + + async fn auto_clean_once( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::AutocleanonceRequest = req.into(); + debug!("Client asked for auto_clean_once"); + trace!("auto_clean_once request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::AutoCleanOnce(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method AutoCleanOnce: {:?}", e)))?; + match result { + Response::AutoCleanOnce(r) => { + trace!("auto_clean_once response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call AutoCleanOnce", + r + ) + )), + } + + } + + async fn auto_clean_status( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::AutocleanstatusRequest = req.into(); + debug!("Client asked for auto_clean_status"); + trace!("auto_clean_status request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::AutoCleanStatus(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method AutoCleanStatus: {:?}", e)))?; + match result { + Response::AutoCleanStatus(r) => { + trace!("auto_clean_status response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call AutoCleanStatus", + r + ) + )), + } + + } + + async fn check_message( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::CheckmessageRequest = req.into(); + debug!("Client asked for check_message"); + trace!("check_message request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::CheckMessage(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method CheckMessage: {:?}", e)))?; + match result { + Response::CheckMessage(r) => { + trace!("check_message response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call CheckMessage", + r + ) + )), + } + + } + + async fn close( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::CloseRequest = req.into(); + debug!("Client asked for close"); + trace!("close request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Close(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Close: {:?}", e)))?; + match result { + Response::Close(r) => { + trace!("close response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Close", + r + ) + )), + } + + } + + async fn connect_peer( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ConnectRequest = req.into(); + debug!("Client asked for connect_peer"); + trace!("connect_peer request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Connect(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Connect: {:?}", e)))?; + match result { + Response::Connect(r) => { + trace!("connect_peer response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Connect", + r + ) + )), + } + + } + + async fn create_invoice( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::CreateinvoiceRequest = req.into(); + debug!("Client asked for create_invoice"); + trace!("create_invoice request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::CreateInvoice(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method CreateInvoice: {:?}", e)))?; + match result { + Response::CreateInvoice(r) => { + trace!("create_invoice response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call CreateInvoice", + r + ) + )), + } + + } + + async fn datastore( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::DatastoreRequest = req.into(); + debug!("Client asked for datastore"); + trace!("datastore request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Datastore(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Datastore: {:?}", e)))?; + match result { + Response::Datastore(r) => { + trace!("datastore response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Datastore", + r + ) + )), + } + + } + + async fn datastore_usage( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::DatastoreusageRequest = req.into(); + debug!("Client asked for datastore_usage"); + trace!("datastore_usage request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::DatastoreUsage(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method DatastoreUsage: {:?}", e)))?; + match result { + Response::DatastoreUsage(r) => { + trace!("datastore_usage response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call DatastoreUsage", + r + ) + )), + } + + } + + async fn create_onion( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::CreateonionRequest = req.into(); + debug!("Client asked for create_onion"); + trace!("create_onion request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::CreateOnion(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method CreateOnion: {:?}", e)))?; + match result { + Response::CreateOnion(r) => { + trace!("create_onion response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call CreateOnion", + r + ) + )), + } + + } + + async fn del_datastore( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::DeldatastoreRequest = req.into(); + debug!("Client asked for del_datastore"); + trace!("del_datastore request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::DelDatastore(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method DelDatastore: {:?}", e)))?; + match result { + Response::DelDatastore(r) => { + trace!("del_datastore response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call DelDatastore", + r + ) + )), + } + + } + + async fn del_invoice( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::DelinvoiceRequest = req.into(); + debug!("Client asked for del_invoice"); + trace!("del_invoice request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::DelInvoice(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method DelInvoice: {:?}", e)))?; + match result { + Response::DelInvoice(r) => { + trace!("del_invoice response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call DelInvoice", + r + ) + )), + } + + } + + async fn invoice( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::InvoiceRequest = req.into(); + debug!("Client asked for invoice"); + trace!("invoice request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Invoice(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Invoice: {:?}", e)))?; + match result { + Response::Invoice(r) => { + trace!("invoice response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Invoice", + r + ) + )), + } + + } + + async fn list_datastore( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListdatastoreRequest = req.into(); + debug!("Client asked for list_datastore"); + trace!("list_datastore request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListDatastore(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListDatastore: {:?}", e)))?; + match result { + Response::ListDatastore(r) => { + trace!("list_datastore response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListDatastore", + r + ) + )), + } + + } + + async fn list_invoices( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListinvoicesRequest = req.into(); + debug!("Client asked for list_invoices"); + trace!("list_invoices request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListInvoices(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListInvoices: {:?}", e)))?; + match result { + Response::ListInvoices(r) => { + trace!("list_invoices response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListInvoices", + r + ) + )), + } + + } + + async fn send_onion( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::SendonionRequest = req.into(); + debug!("Client asked for send_onion"); + trace!("send_onion request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::SendOnion(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method SendOnion: {:?}", e)))?; + match result { + Response::SendOnion(r) => { + trace!("send_onion response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call SendOnion", + r + ) + )), + } + + } + + async fn list_send_pays( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListsendpaysRequest = req.into(); + debug!("Client asked for list_send_pays"); + trace!("list_send_pays request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListSendPays(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListSendPays: {:?}", e)))?; + match result { + Response::ListSendPays(r) => { + trace!("list_send_pays response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListSendPays", + r + ) + )), + } + + } + + async fn list_transactions( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListtransactionsRequest = req.into(); + debug!("Client asked for list_transactions"); + trace!("list_transactions request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListTransactions(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListTransactions: {:?}", e)))?; + match result { + Response::ListTransactions(r) => { + trace!("list_transactions response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListTransactions", + r + ) + )), + } + + } + + async fn pay( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::PayRequest = req.into(); + debug!("Client asked for pay"); + trace!("pay request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Pay(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Pay: {:?}", e)))?; + match result { + Response::Pay(r) => { + trace!("pay response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Pay", + r + ) + )), + } + + } + + async fn list_nodes( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListnodesRequest = req.into(); + debug!("Client asked for list_nodes"); + trace!("list_nodes request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListNodes(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListNodes: {:?}", e)))?; + match result { + Response::ListNodes(r) => { + trace!("list_nodes response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListNodes", + r + ) + )), + } + + } + + async fn wait_any_invoice( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::WaitanyinvoiceRequest = req.into(); + debug!("Client asked for wait_any_invoice"); + trace!("wait_any_invoice request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::WaitAnyInvoice(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method WaitAnyInvoice: {:?}", e)))?; + match result { + Response::WaitAnyInvoice(r) => { + trace!("wait_any_invoice response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call WaitAnyInvoice", + r + ) + )), + } + + } + + async fn wait_invoice( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::WaitinvoiceRequest = req.into(); + debug!("Client asked for wait_invoice"); + trace!("wait_invoice request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::WaitInvoice(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method WaitInvoice: {:?}", e)))?; + match result { + Response::WaitInvoice(r) => { + trace!("wait_invoice response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call WaitInvoice", + r + ) + )), + } + + } + + async fn wait_send_pay( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::WaitsendpayRequest = req.into(); + debug!("Client asked for wait_send_pay"); + trace!("wait_send_pay request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::WaitSendPay(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method WaitSendPay: {:?}", e)))?; + match result { + Response::WaitSendPay(r) => { + trace!("wait_send_pay response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call WaitSendPay", + r + ) + )), + } + + } + + async fn new_addr( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::NewaddrRequest = req.into(); + debug!("Client asked for new_addr"); + trace!("new_addr request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::NewAddr(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method NewAddr: {:?}", e)))?; + match result { + Response::NewAddr(r) => { + trace!("new_addr response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call NewAddr", + r + ) + )), + } + + } + + async fn withdraw( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::WithdrawRequest = req.into(); + debug!("Client asked for withdraw"); + trace!("withdraw request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Withdraw(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Withdraw: {:?}", e)))?; + match result { + Response::Withdraw(r) => { + trace!("withdraw response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Withdraw", + r + ) + )), + } + + } + + async fn key_send( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::KeysendRequest = req.into(); + debug!("Client asked for key_send"); + trace!("key_send request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::KeySend(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method KeySend: {:?}", e)))?; + match result { + Response::KeySend(r) => { + trace!("key_send response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call KeySend", + r + ) + )), + } + + } + + async fn fund_psbt( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::FundpsbtRequest = req.into(); + debug!("Client asked for fund_psbt"); + trace!("fund_psbt request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::FundPsbt(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method FundPsbt: {:?}", e)))?; + match result { + Response::FundPsbt(r) => { + trace!("fund_psbt response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call FundPsbt", + r + ) + )), + } + + } + + async fn send_psbt( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::SendpsbtRequest = req.into(); + debug!("Client asked for send_psbt"); + trace!("send_psbt request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::SendPsbt(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method SendPsbt: {:?}", e)))?; + match result { + Response::SendPsbt(r) => { + trace!("send_psbt response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call SendPsbt", + r + ) + )), + } + + } + + async fn sign_psbt( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::SignpsbtRequest = req.into(); + debug!("Client asked for sign_psbt"); + trace!("sign_psbt request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::SignPsbt(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method SignPsbt: {:?}", e)))?; + match result { + Response::SignPsbt(r) => { + trace!("sign_psbt response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call SignPsbt", + r + ) + )), + } + + } + + async fn utxo_psbt( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::UtxopsbtRequest = req.into(); + debug!("Client asked for utxo_psbt"); + trace!("utxo_psbt request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::UtxoPsbt(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method UtxoPsbt: {:?}", e)))?; + match result { + Response::UtxoPsbt(r) => { + trace!("utxo_psbt response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call UtxoPsbt", + r + ) + )), + } + + } + + async fn tx_discard( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::TxdiscardRequest = req.into(); + debug!("Client asked for tx_discard"); + trace!("tx_discard request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::TxDiscard(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method TxDiscard: {:?}", e)))?; + match result { + Response::TxDiscard(r) => { + trace!("tx_discard response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call TxDiscard", + r + ) + )), + } + + } + + async fn tx_prepare( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::TxprepareRequest = req.into(); + debug!("Client asked for tx_prepare"); + trace!("tx_prepare request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::TxPrepare(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method TxPrepare: {:?}", e)))?; + match result { + Response::TxPrepare(r) => { + trace!("tx_prepare response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call TxPrepare", + r + ) + )), + } + + } + + async fn tx_send( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::TxsendRequest = req.into(); + debug!("Client asked for tx_send"); + trace!("tx_send request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::TxSend(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method TxSend: {:?}", e)))?; + match result { + Response::TxSend(r) => { + trace!("tx_send response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call TxSend", + r + ) + )), + } + + } + + async fn list_peer_channels( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListpeerchannelsRequest = req.into(); + debug!("Client asked for list_peer_channels"); + trace!("list_peer_channels request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListPeerChannels(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListPeerChannels: {:?}", e)))?; + match result { + Response::ListPeerChannels(r) => { + trace!("list_peer_channels response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListPeerChannels", + r + ) + )), + } + + } + + async fn list_closed_channels( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListclosedchannelsRequest = req.into(); + debug!("Client asked for list_closed_channels"); + trace!("list_closed_channels request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListClosedChannels(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListClosedChannels: {:?}", e)))?; + match result { + Response::ListClosedChannels(r) => { + trace!("list_closed_channels response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListClosedChannels", + r + ) + )), + } + + } + + async fn decode_pay( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::DecodepayRequest = req.into(); + debug!("Client asked for decode_pay"); + trace!("decode_pay request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::DecodePay(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method DecodePay: {:?}", e)))?; + match result { + Response::DecodePay(r) => { + trace!("decode_pay response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call DecodePay", + r + ) + )), + } + + } + + async fn decode( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::DecodeRequest = req.into(); + debug!("Client asked for decode"); + trace!("decode request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Decode(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Decode: {:?}", e)))?; + match result { + Response::Decode(r) => { + trace!("decode response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Decode", + r + ) + )), + } + + } + + async fn del_pay( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::DelpayRequest = req.into(); + debug!("Client asked for del_pay"); + trace!("del_pay request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::DelPay(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method DelPay: {:?}", e)))?; + match result { + Response::DelPay(r) => { + trace!("del_pay response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call DelPay", + r + ) + )), + } + + } + + async fn del_forward( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::DelforwardRequest = req.into(); + debug!("Client asked for del_forward"); + trace!("del_forward request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::DelForward(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method DelForward: {:?}", e)))?; + match result { + Response::DelForward(r) => { + trace!("del_forward response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call DelForward", + r + ) + )), + } + + } + + async fn disable_offer( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::DisableofferRequest = req.into(); + debug!("Client asked for disable_offer"); + trace!("disable_offer request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::DisableOffer(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method DisableOffer: {:?}", e)))?; + match result { + Response::DisableOffer(r) => { + trace!("disable_offer response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call DisableOffer", + r + ) + )), + } + + } + + async fn disconnect( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::DisconnectRequest = req.into(); + debug!("Client asked for disconnect"); + trace!("disconnect request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Disconnect(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Disconnect: {:?}", e)))?; + match result { + Response::Disconnect(r) => { + trace!("disconnect response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Disconnect", + r + ) + )), + } + + } + + async fn feerates( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::FeeratesRequest = req.into(); + debug!("Client asked for feerates"); + trace!("feerates request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Feerates(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Feerates: {:?}", e)))?; + match result { + Response::Feerates(r) => { + trace!("feerates response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Feerates", + r + ) + )), + } + + } + + async fn fetch_invoice( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::FetchinvoiceRequest = req.into(); + debug!("Client asked for fetch_invoice"); + trace!("fetch_invoice request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::FetchInvoice(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method FetchInvoice: {:?}", e)))?; + match result { + Response::FetchInvoice(r) => { + trace!("fetch_invoice response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call FetchInvoice", + r + ) + )), + } + + } + + async fn fund_channel_cancel( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::Fundchannel_cancelRequest = req.into(); + debug!("Client asked for fund_channel_cancel"); + trace!("fund_channel_cancel request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::FundChannel_Cancel(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method FundChannel_Cancel: {:?}", e)))?; + match result { + Response::FundChannel_Cancel(r) => { + trace!("fund_channel_cancel response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call FundChannel_Cancel", + r + ) + )), + } + + } + + async fn fund_channel_complete( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::Fundchannel_completeRequest = req.into(); + debug!("Client asked for fund_channel_complete"); + trace!("fund_channel_complete request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::FundChannel_Complete(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method FundChannel_Complete: {:?}", e)))?; + match result { + Response::FundChannel_Complete(r) => { + trace!("fund_channel_complete response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call FundChannel_Complete", + r + ) + )), + } + + } + + async fn fund_channel( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::FundchannelRequest = req.into(); + debug!("Client asked for fund_channel"); + trace!("fund_channel request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::FundChannel(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method FundChannel: {:?}", e)))?; + match result { + Response::FundChannel(r) => { + trace!("fund_channel response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call FundChannel", + r + ) + )), + } + + } + + async fn fund_channel_start( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::Fundchannel_startRequest = req.into(); + debug!("Client asked for fund_channel_start"); + trace!("fund_channel_start request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::FundChannel_Start(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method FundChannel_Start: {:?}", e)))?; + match result { + Response::FundChannel_Start(r) => { + trace!("fund_channel_start response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call FundChannel_Start", + r + ) + )), + } + + } + + async fn get_log( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::GetlogRequest = req.into(); + debug!("Client asked for get_log"); + trace!("get_log request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::GetLog(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method GetLog: {:?}", e)))?; + match result { + Response::GetLog(r) => { + trace!("get_log response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call GetLog", + r + ) + )), + } + + } + + async fn get_route( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::GetrouteRequest = req.into(); + debug!("Client asked for get_route"); + trace!("get_route request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::GetRoute(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method GetRoute: {:?}", e)))?; + match result { + Response::GetRoute(r) => { + trace!("get_route response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call GetRoute", + r + ) + )), + } + + } + + async fn list_forwards( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListforwardsRequest = req.into(); + debug!("Client asked for list_forwards"); + trace!("list_forwards request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListForwards(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListForwards: {:?}", e)))?; + match result { + Response::ListForwards(r) => { + trace!("list_forwards response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListForwards", + r + ) + )), + } + + } + + async fn list_offers( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListoffersRequest = req.into(); + debug!("Client asked for list_offers"); + trace!("list_offers request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListOffers(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListOffers: {:?}", e)))?; + match result { + Response::ListOffers(r) => { + trace!("list_offers response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListOffers", + r + ) + )), + } + + } + + async fn list_pays( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListpaysRequest = req.into(); + debug!("Client asked for list_pays"); + trace!("list_pays request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListPays(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListPays: {:?}", e)))?; + match result { + Response::ListPays(r) => { + trace!("list_pays response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListPays", + r + ) + )), + } + + } + + async fn list_htlcs( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ListhtlcsRequest = req.into(); + debug!("Client asked for list_htlcs"); + trace!("list_htlcs request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ListHtlcs(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ListHtlcs: {:?}", e)))?; + match result { + Response::ListHtlcs(r) => { + trace!("list_htlcs response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ListHtlcs", + r + ) + )), + } + + } + + async fn multi_fund_channel( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::MultifundchannelRequest = req.into(); + debug!("Client asked for multi_fund_channel"); + trace!("multi_fund_channel request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::MultiFundChannel(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method MultiFundChannel: {:?}", e)))?; + match result { + Response::MultiFundChannel(r) => { + trace!("multi_fund_channel response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call MultiFundChannel", + r + ) + )), + } + + } + + async fn offer( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::OfferRequest = req.into(); + debug!("Client asked for offer"); + trace!("offer request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Offer(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Offer: {:?}", e)))?; + match result { + Response::Offer(r) => { + trace!("offer response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Offer", + r + ) + )), + } + + } + + async fn open_channel_abort( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::Openchannel_abortRequest = req.into(); + debug!("Client asked for open_channel_abort"); + trace!("open_channel_abort request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::OpenChannel_Abort(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method OpenChannel_Abort: {:?}", e)))?; + match result { + Response::OpenChannel_Abort(r) => { + trace!("open_channel_abort response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call OpenChannel_Abort", + r + ) + )), + } + + } + + async fn open_channel_bump( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::Openchannel_bumpRequest = req.into(); + debug!("Client asked for open_channel_bump"); + trace!("open_channel_bump request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::OpenChannel_Bump(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method OpenChannel_Bump: {:?}", e)))?; + match result { + Response::OpenChannel_Bump(r) => { + trace!("open_channel_bump response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call OpenChannel_Bump", + r + ) + )), + } + + } + + async fn open_channel_init( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::Openchannel_initRequest = req.into(); + debug!("Client asked for open_channel_init"); + trace!("open_channel_init request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::OpenChannel_Init(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method OpenChannel_Init: {:?}", e)))?; + match result { + Response::OpenChannel_Init(r) => { + trace!("open_channel_init response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call OpenChannel_Init", + r + ) + )), + } + + } + + async fn open_channel_signed( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::Openchannel_signedRequest = req.into(); + debug!("Client asked for open_channel_signed"); + trace!("open_channel_signed request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::OpenChannel_Signed(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method OpenChannel_Signed: {:?}", e)))?; + match result { + Response::OpenChannel_Signed(r) => { + trace!("open_channel_signed response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call OpenChannel_Signed", + r + ) + )), + } + + } + + async fn open_channel_update( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::Openchannel_updateRequest = req.into(); + debug!("Client asked for open_channel_update"); + trace!("open_channel_update request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::OpenChannel_Update(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method OpenChannel_Update: {:?}", e)))?; + match result { + Response::OpenChannel_Update(r) => { + trace!("open_channel_update response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call OpenChannel_Update", + r + ) + )), + } + + } + + async fn ping( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::PingRequest = req.into(); + debug!("Client asked for ping"); + trace!("ping request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Ping(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Ping: {:?}", e)))?; + match result { + Response::Ping(r) => { + trace!("ping response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Ping", + r + ) + )), + } + + } + + async fn plugin( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::PluginRequest = req.into(); + debug!("Client asked for plugin"); + trace!("plugin request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Plugin(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Plugin: {:?}", e)))?; + match result { + Response::Plugin(r) => { + trace!("plugin response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Plugin", + r + ) + )), + } + + } + + async fn rene_pay_status( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::RenepaystatusRequest = req.into(); + debug!("Client asked for rene_pay_status"); + trace!("rene_pay_status request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::RenePayStatus(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method RenePayStatus: {:?}", e)))?; + match result { + Response::RenePayStatus(r) => { + trace!("rene_pay_status response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call RenePayStatus", + r + ) + )), + } + + } + + async fn rene_pay( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::RenepayRequest = req.into(); + debug!("Client asked for rene_pay"); + trace!("rene_pay request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::RenePay(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method RenePay: {:?}", e)))?; + match result { + Response::RenePay(r) => { + trace!("rene_pay response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call RenePay", + r + ) + )), + } + + } + + async fn reserve_inputs( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::ReserveinputsRequest = req.into(); + debug!("Client asked for reserve_inputs"); + trace!("reserve_inputs request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::ReserveInputs(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method ReserveInputs: {:?}", e)))?; + match result { + Response::ReserveInputs(r) => { + trace!("reserve_inputs response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call ReserveInputs", + r + ) + )), + } + + } + + async fn send_custom_msg( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::SendcustommsgRequest = req.into(); + debug!("Client asked for send_custom_msg"); + trace!("send_custom_msg request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::SendCustomMsg(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method SendCustomMsg: {:?}", e)))?; + match result { + Response::SendCustomMsg(r) => { + trace!("send_custom_msg response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call SendCustomMsg", + r + ) + )), + } + + } + + async fn send_invoice( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::SendinvoiceRequest = req.into(); + debug!("Client asked for send_invoice"); + trace!("send_invoice request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::SendInvoice(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method SendInvoice: {:?}", e)))?; + match result { + Response::SendInvoice(r) => { + trace!("send_invoice response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call SendInvoice", + r + ) + )), + } + + } + + async fn send_onion_message( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::SendonionmessageRequest = req.into(); + debug!("Client asked for send_onion_message"); + trace!("send_onion_message request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::SendOnionMessage(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method SendOnionMessage: {:?}", e)))?; + match result { + Response::SendOnionMessage(r) => { + trace!("send_onion_message response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call SendOnionMessage", + r + ) + )), + } + + } + + async fn set_channel( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::SetchannelRequest = req.into(); + debug!("Client asked for set_channel"); + trace!("set_channel request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::SetChannel(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method SetChannel: {:?}", e)))?; + match result { + Response::SetChannel(r) => { + trace!("set_channel response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call SetChannel", + r + ) + )), + } + + } + + async fn set_config( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::SetconfigRequest = req.into(); + debug!("Client asked for set_config"); + trace!("set_config request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::SetConfig(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method SetConfig: {:?}", e)))?; + match result { + Response::SetConfig(r) => { + trace!("set_config response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call SetConfig", + r + ) + )), + } + + } + + async fn set_psbt_version( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::SetpsbtversionRequest = req.into(); + debug!("Client asked for set_psbt_version"); + trace!("set_psbt_version request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::SetPsbtVersion(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method SetPsbtVersion: {:?}", e)))?; + match result { + Response::SetPsbtVersion(r) => { + trace!("set_psbt_version response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call SetPsbtVersion", + r + ) + )), + } + + } + + async fn sign_invoice( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::SigninvoiceRequest = req.into(); + debug!("Client asked for sign_invoice"); + trace!("sign_invoice request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::SignInvoice(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method SignInvoice: {:?}", e)))?; + match result { + Response::SignInvoice(r) => { + trace!("sign_invoice response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call SignInvoice", + r + ) + )), + } + + } + + async fn sign_message( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::SignmessageRequest = req.into(); + debug!("Client asked for sign_message"); + trace!("sign_message request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::SignMessage(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method SignMessage: {:?}", e)))?; + match result { + Response::SignMessage(r) => { + trace!("sign_message response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call SignMessage", + r + ) + )), + } + + } + + async fn splice_init( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::Splice_initRequest = req.into(); + debug!("Client asked for splice_init"); + trace!("splice_init request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Splice_Init(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Splice_Init: {:?}", e)))?; + match result { + Response::Splice_Init(r) => { + trace!("splice_init response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Splice_Init", + r + ) + )), + } + + } + + async fn splice_signed( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::Splice_signedRequest = req.into(); + debug!("Client asked for splice_signed"); + trace!("splice_signed request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Splice_Signed(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Splice_Signed: {:?}", e)))?; + match result { + Response::Splice_Signed(r) => { + trace!("splice_signed response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Splice_Signed", + r + ) + )), + } + + } + + async fn splice_update( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::Splice_updateRequest = req.into(); + debug!("Client asked for splice_update"); + trace!("splice_update request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Splice_Update(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Splice_Update: {:?}", e)))?; + match result { + Response::Splice_Update(r) => { + trace!("splice_update response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Splice_Update", + r + ) + )), + } + + } + + async fn unreserve_inputs( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::UnreserveinputsRequest = req.into(); + debug!("Client asked for unreserve_inputs"); + trace!("unreserve_inputs request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::UnreserveInputs(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method UnreserveInputs: {:?}", e)))?; + match result { + Response::UnreserveInputs(r) => { + trace!("unreserve_inputs response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call UnreserveInputs", + r + ) + )), + } + + } + + async fn upgrade_wallet( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::UpgradewalletRequest = req.into(); + debug!("Client asked for upgrade_wallet"); + trace!("upgrade_wallet request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::UpgradeWallet(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method UpgradeWallet: {:?}", e)))?; + match result { + Response::UpgradeWallet(r) => { + trace!("upgrade_wallet response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call UpgradeWallet", + r + ) + )), + } + + } + + async fn wait_block_height( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::WaitblockheightRequest = req.into(); + debug!("Client asked for wait_block_height"); + trace!("wait_block_height request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::WaitBlockHeight(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method WaitBlockHeight: {:?}", e)))?; + match result { + Response::WaitBlockHeight(r) => { + trace!("wait_block_height response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call WaitBlockHeight", + r + ) + )), + } + + } + + async fn wait( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::WaitRequest = req.into(); + debug!("Client asked for wait"); + trace!("wait request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Wait(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Wait: {:?}", e)))?; + match result { + Response::Wait(r) => { + trace!("wait response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Wait", + r + ) + )), + } + + } + + async fn stop( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::StopRequest = req.into(); + debug!("Client asked for stop"); + trace!("stop request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::Stop(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method Stop: {:?}", e)))?; + match result { + Response::Stop(r) => { + trace!("stop response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call Stop", + r + ) + )), + } + + } + + async fn pre_approve_keysend( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::PreapprovekeysendRequest = req.into(); + debug!("Client asked for pre_approve_keysend"); + trace!("pre_approve_keysend request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::PreApproveKeysend(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method PreApproveKeysend: {:?}", e)))?; + match result { + Response::PreApproveKeysend(r) => { + trace!("pre_approve_keysend response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call PreApproveKeysend", + r + ) + )), + } + + } + + async fn pre_approve_invoice( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::PreapproveinvoiceRequest = req.into(); + debug!("Client asked for pre_approve_invoice"); + trace!("pre_approve_invoice request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::PreApproveInvoice(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method PreApproveInvoice: {:?}", e)))?; + match result { + Response::PreApproveInvoice(r) => { + trace!("pre_approve_invoice response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call PreApproveInvoice", + r + ) + )), + } + + } + + async fn static_backup( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::StaticbackupRequest = req.into(); + debug!("Client asked for static_backup"); + trace!("static_backup request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::StaticBackup(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method StaticBackup: {:?}", e)))?; + match result { + Response::StaticBackup(r) => { + trace!("static_backup response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call StaticBackup", + r + ) + )), + } + + } + + async fn bkpr_channels_apy( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::BkprchannelsapyRequest = req.into(); + debug!("Client asked for bkpr_channels_apy"); + trace!("bkpr_channels_apy request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::BkprChannelsApy(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method BkprChannelsApy: {:?}", e)))?; + match result { + Response::BkprChannelsApy(r) => { + trace!("bkpr_channels_apy response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call BkprChannelsApy", + r + ) + )), + } + + } + + async fn bkpr_dump_income_csv( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::BkprdumpincomecsvRequest = req.into(); + debug!("Client asked for bkpr_dump_income_csv"); + trace!("bkpr_dump_income_csv request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::BkprDumpIncomeCsv(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method BkprDumpIncomeCsv: {:?}", e)))?; + match result { + Response::BkprDumpIncomeCsv(r) => { + trace!("bkpr_dump_income_csv response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call BkprDumpIncomeCsv", + r + ) + )), + } + + } + + async fn bkpr_inspect( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::BkprinspectRequest = req.into(); + debug!("Client asked for bkpr_inspect"); + trace!("bkpr_inspect request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::BkprInspect(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method BkprInspect: {:?}", e)))?; + match result { + Response::BkprInspect(r) => { + trace!("bkpr_inspect response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call BkprInspect", + r + ) + )), + } + + } + + async fn bkpr_list_account_events( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::BkprlistaccounteventsRequest = req.into(); + debug!("Client asked for bkpr_list_account_events"); + trace!("bkpr_list_account_events request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::BkprListAccountEvents(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method BkprListAccountEvents: {:?}", e)))?; + match result { + Response::BkprListAccountEvents(r) => { + trace!("bkpr_list_account_events response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call BkprListAccountEvents", + r + ) + )), + } + + } + + async fn bkpr_list_balances( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::BkprlistbalancesRequest = req.into(); + debug!("Client asked for bkpr_list_balances"); + trace!("bkpr_list_balances request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::BkprListBalances(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method BkprListBalances: {:?}", e)))?; + match result { + Response::BkprListBalances(r) => { + trace!("bkpr_list_balances response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call BkprListBalances", + r + ) + )), + } + + } + + async fn bkpr_list_income( + &self, + request: tonic::Request, + ) -> Result, tonic::Status> { + let req = request.into_inner(); + let req: requests::BkprlistincomeRequest = req.into(); + debug!("Client asked for bkpr_list_income"); + trace!("bkpr_list_income request: {:?}", req); + let mut rpc = ClnRpc::new(&self.rpc_path) + .await + .map_err(|e| Status::new(Code::Internal, e.to_string()))?; + let result = rpc.call(Request::BkprListIncome(req)) + .await + .map_err(|e| Status::new( + Code::Unknown, + format!("Error calling method BkprListIncome: {:?}", e)))?; + match result { + Response::BkprListIncome(r) => { + trace!("bkpr_list_income response: {:?}", r); + Ok(tonic::Response::new(r.into())) + }, + r => Err(Status::new( + Code::Internal, + format!( + "Unexpected result {:?} to method call BkprListIncome", + r + ) + )), + } + + } + + + + type SubscribeBlockAddedStream = NotificationStream; + + async fn subscribe_block_added( + &self, + _request : tonic::Request + ) -> Result, tonic::Status> { + let receiver = self.events.subscribe(); + let stream = BroadcastStream::new(receiver); + let boxed = Box::pin(stream); + + let result = NotificationStream { + inner : boxed, + fn_filter_map : |x| { + match x { + Notification::BlockAdded(x) => { + Some(x.into()) + } + _ => None + } + } + }; + Ok(tonic::Response::new(result)) + } + + + type SubscribeChannelOpenFailedStream = NotificationStream; + + async fn subscribe_channel_open_failed( + &self, + _request : tonic::Request + ) -> Result, tonic::Status> { + let receiver = self.events.subscribe(); + let stream = BroadcastStream::new(receiver); + let boxed = Box::pin(stream); + + let result = NotificationStream { + inner : boxed, + fn_filter_map : |x| { + match x { + Notification::ChannelOpenFailed(x) => { + Some(x.into()) + } + _ => None + } + } + }; + Ok(tonic::Response::new(result)) + } + + + type SubscribeChannelOpenedStream = NotificationStream; + + async fn subscribe_channel_opened( + &self, + _request : tonic::Request + ) -> Result, tonic::Status> { + let receiver = self.events.subscribe(); + let stream = BroadcastStream::new(receiver); + let boxed = Box::pin(stream); + + let result = NotificationStream { + inner : boxed, + fn_filter_map : |x| { + match x { + Notification::ChannelOpened(x) => { + Some(x.into()) + } + _ => None + } + } + }; + Ok(tonic::Response::new(result)) + } + + + type SubscribeConnectStream = NotificationStream; + + async fn subscribe_connect( + &self, + _request : tonic::Request + ) -> Result, tonic::Status> { + let receiver = self.events.subscribe(); + let stream = BroadcastStream::new(receiver); + let boxed = Box::pin(stream); + + let result = NotificationStream { + inner : boxed, + fn_filter_map : |x| { + match x { + Notification::Connect(x) => { + Some(x.into()) + } + _ => None + } + } + }; + Ok(tonic::Response::new(result)) + } + + + type SubscribeCustomMsgStream = NotificationStream; + + async fn subscribe_custom_msg( + &self, + _request : tonic::Request + ) -> Result, tonic::Status> { + let receiver = self.events.subscribe(); + let stream = BroadcastStream::new(receiver); + let boxed = Box::pin(stream); + + let result = NotificationStream { + inner : boxed, + fn_filter_map : |x| { + match x { + Notification::CustomMsg(x) => { + Some(x.into()) + } + _ => None + } + } + }; + Ok(tonic::Response::new(result)) + } +} \ No newline at end of file diff --git a/contrib/msggen/msggen/gen/grpc/proto.py b/contrib/msggen/msggen/gen/grpc/proto.py index 9594631f78fe..f8bf0a834d29 100644 --- a/contrib/msggen/msggen/gen/grpc/proto.py +++ b/contrib/msggen/msggen/gen/grpc/proto.py @@ -152,8 +152,7 @@ def generate_service(self, service: Service) -> None: name = str(notification.typename) self.write( f" rpc Subscribe{name}({notification.request.typename}) returns (stream {notification.response.typename}) {{}}\n", - cleanup=False, - ) + cleanup=False) self.write( f"""}} diff --git a/contrib/msggen/msggen/gen/grpc/server.py b/contrib/msggen/msggen/gen/grpc/server.py index cfac60d48af0..1eb6bcc5f67e 100644 --- a/contrib/msggen/msggen/gen/grpc/server.py +++ b/contrib/msggen/msggen/gen/grpc/server.py @@ -1,44 +1,116 @@ # A grpc model import re - +import logging +from typing import TextIO, Optional from msggen.model import Service -from msggen.gen.grpc.convert import GrpcConverterGenerator -from msggen.gen.grpc.util import method_name_overrides +from msggen.gen.generator import IGenerator +from msggen.gen.grpc.util import method_name_overrides, camel_to_snake, snake_to_camel + +from textwrap import indent, dedent + + +class GrpcServerGenerator(IGenerator): + def __init__(self, dest: TextIO): + self.dest = dest + self.logger = logging.getLogger(__name__) + def write(self, text: str, numindent: Optional[int] = None): + if numindent is None: + self.dest.write(text) + else: + text = dedent(text) + text = indent(text, " " * numindent) + self.dest.write(text) -class GrpcServerGenerator(GrpcConverterGenerator): def generate(self, service: Service) -> None: self.write( f"""\ use crate::pb::node_server::Node; use crate::pb; use cln_rpc::{{Request, Response, ClnRpc}}; + use cln_rpc::notifications::Notification; use anyhow::Result; use std::path::{{Path, PathBuf}}; + use std::pin::Pin; + use std::task::{{Context, Poll}}; use cln_rpc::model::requests; use log::{{debug, trace}}; use tonic::{{Code, Status}}; + use tokio::sync::broadcast; + use tokio_stream::wrappers::errors::BroadcastStreamRecvError; + use tokio_stream::wrappers::BroadcastStream; + #[derive(Clone)] pub struct Server {{ rpc_path: PathBuf, + events : broadcast::Sender }} impl Server {{ - pub async fn new(path: &Path) -> Result + pub async fn new( + path: &Path, + events : broadcast::Sender + ) -> Result {{ Ok(Self {{ rpc_path: path.to_path_buf(), + events : events }}) }} }} + pub struct NotificationStream {{ + inner : Pin>>, + fn_filter_map : fn(Notification) -> Option + }} + + impl tokio_stream::Stream for NotificationStream {{ + + type Item = Result; + + fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> {{ + while let Poll::Ready(result) = self.inner.as_mut().poll_next(cx) {{ + // None is used here to signal that we have reached the end of stream + // If inner ends the stream by returning None we do the same + if result.is_none() {{ + return Poll::Ready(None) + }} + let result: Result = result.unwrap(); + + match result {{ + Err(BroadcastStreamRecvError::Lagged(lag)) => {{ + // In this error case we've missed some notifications + // We log the error to core lightning and forward + // this information to the client + log::warn!("Due to lag the grpc-server skipped {{}} notifications", lag); + return Poll::Ready(Some(Err( + Status::data_loss( + format!("Skipped up to {{}} notifications", lag))))) + }} + Ok(notification) => {{ + let filtered = (self.fn_filter_map)(notification); + match filtered {{ + Some(n) => return Poll::Ready(Some(Ok(n))), + None => {{ + // We ignore the message if it isn't a match. + // e.g: A `ChannelOpenedStream` will ignore `CustomMsgNotifications` + }} + }} + }} + }} + }} + Poll::Pending + }} + }} + #[tonic::async_trait] impl Node for Server {{ - """ + """, + numindent=0, ) for method in service.methods: @@ -47,8 +119,8 @@ def generate(self, service: Service) -> None: name = re.sub(r"(? None: }} }}\n\n""", - numindent=0, + numindent=1, ) - self.write( - f"""\ - }} - """, - numindent=0, - ) + for notification in service.notifications: + typename = str(notification.typename) + snake_name = camel_to_snake(typename) + response_name = str(notification.response.typename) + stream_request = f"Stream{typename}Request" + stream_name = f"Subscribe{notification.typename}Stream" + self.write( + f""" + + type Subscribe{typename}Stream = NotificationStream; + + async fn subscribe_{snake_name}( + &self, + _request : tonic::Request + ) -> Result, tonic::Status> {{ + let receiver = self.events.subscribe(); + let stream = BroadcastStream::new(receiver); + let boxed = Box::pin(stream); + + let result = NotificationStream {{ + inner : boxed, + fn_filter_map : |x| {{ + match x {{ + Notification::{typename}(x) => {{ + Some(x.into()) + }} + _ => None + }} + }} + }}; + Ok(tonic::Response::new(result)) + }} + """, + numindent=1, + ) + + self.write("""}""", numindent=0) diff --git a/contrib/msggen/msggen/gen/grpc/util.py b/contrib/msggen/msggen/gen/grpc/util.py index c5add644408b..18b77bbfb9f9 100644 --- a/contrib/msggen/msggen/gen/grpc/util.py +++ b/contrib/msggen/msggen/gen/grpc/util.py @@ -1,3 +1,6 @@ +# A grpc model +import re + typemap = { "boolean": "bool", "hex": "bytes", @@ -36,3 +39,23 @@ method_name_overrides = { "Connect": "ConnectPeer", } + + +def snake_to_camel(snake_str: str): + components = snake_str.split("_") + # We capitalize the first letter of each component except the first one + # with the 'capitalize' method and join them together, while preserving + # existing camel cases. + camel_case = components[0] + for word in components[1:]: + if not word.isupper(): + camel_case += word[0].upper() + word[1:] + else: + camel_case += word.capitalize() + return camel_case + + +def camel_to_snake(camel_case: str): + snake = re.sub(r"(? Date: Wed, 14 Feb 2024 15:34:44 +0100 Subject: [PATCH 15/24] grpc-plugin: Implement notifications Use the changes in the `cln-grpc`-crate to support notifications. --- Cargo.lock | 47 +++++++++++++------------ plugins/Makefile | 3 +- plugins/grpc-plugin/Cargo.toml | 1 + plugins/grpc-plugin/src/main.rs | 62 ++++++++++++++++++++++++++++++--- 4 files changed, 84 insertions(+), 29 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7870ad99f557..8d5f8efbd834 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -90,7 +90,7 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.48", ] [[package]] @@ -101,7 +101,7 @@ checksum = "bc00ceb34980c03614e35a3a4e218276a0a824e911d07651cd0d858a51e8c0f0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.48", ] [[package]] @@ -288,6 +288,7 @@ dependencies = [ "log", "prost", "rcgen", + "serde_json", "tokio", "tonic", ] @@ -362,7 +363,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.48", ] [[package]] @@ -485,7 +486,7 @@ checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.48", ] [[package]] @@ -945,7 +946,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.48", ] [[package]] @@ -978,9 +979,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.67" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d433d9f1a3e8c1263d9456598b16fec66f4acc9a74dacffd35c7bb09b3a1328" +checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] @@ -1041,9 +1042,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.33" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" +checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" dependencies = [ "proc-macro2", ] @@ -1252,29 +1253,29 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.188" +version = "1.0.196" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf9e0fcba69a370eed61bcf2b728575f726b50b55cba78064753d708ddc7549e" +checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.188" +version = "1.0.196" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4eca7ac642d82aa35b60049a6eccb4be6be75e599bd2e9adb5f875a737654af2" +checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.48", ] [[package]] name = "serde_json" -version = "1.0.107" +version = "1.0.113" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" +checksum = "69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79" dependencies = [ "itoa", "ryu", @@ -1344,9 +1345,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.37" +version = "2.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7303ef2c05cd654186cb250d29049a24840ca25d2747c25c0381c8d9e2f582e8" +checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" dependencies = [ "proc-macro2", "quote", @@ -1410,7 +1411,7 @@ checksum = "10712f02019e9288794769fba95cd6847df9874d49d871d062172f9dd41bc4cc" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.48", ] [[package]] @@ -1486,7 +1487,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.48", ] [[package]] @@ -1638,7 +1639,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.48", ] [[package]] @@ -1756,7 +1757,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.48", "wasm-bindgen-shared", ] @@ -1778,7 +1779,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.48", "wasm-bindgen-backend", "wasm-bindgen-shared", ] diff --git a/plugins/Makefile b/plugins/Makefile index 6468a9f804e2..45386eed1ea1 100644 --- a/plugins/Makefile +++ b/plugins/Makefile @@ -264,8 +264,9 @@ CLN_PLUGIN_EXAMPLES := \ target/${RUST_PROFILE}/examples/cln-subscribe-wildcard CLN_PLUGIN_SRC = $(shell find plugins/src -name "*.rs") +CLN_GRPC_PLUGIN_SRC = $(shell find plugins/grpc-plugin/src -name "*.rs") -target/${RUST_PROFILE}/cln-grpc: ${CLN_PLUGIN_SRC} +target/${RUST_PROFILE}/cln-grpc: ${CLN_PLUGIN_SRC} ${CLN_GRPC_PLUGIN_SRC} cargo build ${CARGO_OPTS} --bin cln-grpc ifneq ($(RUST),0) diff --git a/plugins/grpc-plugin/Cargo.toml b/plugins/grpc-plugin/Cargo.toml index dcf404fafc35..f536717b39d0 100644 --- a/plugins/grpc-plugin/Cargo.toml +++ b/plugins/grpc-plugin/Cargo.toml @@ -20,6 +20,7 @@ rcgen = { version = "0.10", features = ["pem", "x509-parser"] } cln-grpc = { version = "0.1", features = ["server"], path = "../../cln-grpc"} cln-plugin = { version = "0.1", path = "../../plugins" } cln-rpc = { version = "0.1", path = "../../cln-rpc" } +serde_json = "1.0.113" [dependencies.tokio] features = ["net", "rt-multi-thread"] diff --git a/plugins/grpc-plugin/src/main.rs b/plugins/grpc-plugin/src/main.rs index 303f0fc4307e..c71847fc6f98 100644 --- a/plugins/grpc-plugin/src/main.rs +++ b/plugins/grpc-plugin/src/main.rs @@ -1,9 +1,11 @@ use anyhow::{Context, Result}; use cln_grpc::pb::node_server::NodeServer; -use cln_plugin::{options, Builder}; +use cln_plugin::{options, Builder, Plugin}; +use cln_rpc::notifications::Notification; use log::{debug, warn}; use std::net::SocketAddr; use std::path::PathBuf; +use tokio::sync::broadcast; mod tls; @@ -12,12 +14,19 @@ struct PluginState { rpc_path: PathBuf, identity: tls::Identity, ca_cert: Vec, + events : broadcast::Sender, } const OPTION_GRPC_PORT : options::IntegerConfigOption = options::ConfigOption::new_i64_no_default( "grpc-port", "Which port should the grpc plugin listen for incoming connections?"); +const OPTION_GRPC_MSG_BUFFER_SIZE : options::DefaultIntegerConfigOption = options::ConfigOption::new_i64_with_default( + "grpc-msg-buffer-size", + 1024, + "Number of notifications which can be stored in the grpc message buffer. Notifications can be skipped if this buffer is full"); + + #[tokio::main(flavor = "current_thread")] async fn main() -> Result<()> { debug!("Starting grpc plugin"); @@ -26,6 +35,17 @@ async fn main() -> Result<()> { let plugin = match Builder::new(tokio::io::stdin(), tokio::io::stdout()) .option(OPTION_GRPC_PORT) + .option(OPTION_GRPC_MSG_BUFFER_SIZE) + // TODO: Use the catch-all subscribe method + // However, doing this breaks the plugin at the time begin + // We should fix this + // .subscribe("*", handle_notification) + .subscribe("block_added", handle_notification) + .subscribe("channel_open_failed", handle_notification) + .subscribe("channel_opened", handle_notification) + .subscribe("channel_state_changed", handle_notification) + .subscribe("connect", handle_notification) + .subscribe("custommsg", handle_notification) .configure() .await? { @@ -44,12 +64,26 @@ async fn main() -> Result<()> { } }; + let buffer_size : i64 = plugin.option(&OPTION_GRPC_MSG_BUFFER_SIZE).unwrap(); + let buffer_size = match usize::try_from(buffer_size) { + Ok(b) => b, + Err(_) => { + plugin + .disable("'grpc-msg-buffer-size' should be strictly positive") + .await?; + return Ok(()) + } + }; + + let (sender, _) = broadcast::channel(buffer_size); + let (identity, ca_cert) = tls::init(&directory)?; let state = PluginState { rpc_path: PathBuf::from(plugin.configuration().rpc_file.as_str()), identity, ca_cert, + events : sender }; let plugin = plugin.start(state.clone()).await?; @@ -78,13 +112,15 @@ async fn run_interface(bind_addr: SocketAddr, state: PluginState) -> Result<()> .identity(identity) .client_ca_root(ca_cert); + let server = tonic::transport::Server::builder() .tls_config(tls) .context("configuring tls")? - .add_service(NodeServer::new( - cln_grpc::Server::new(&state.rpc_path) - .await - .context("creating NodeServer instance")?, + .add_service( + NodeServer::new( + cln_grpc::Server::new(&state.rpc_path, state.events.clone()) + .await + .context("creating NodeServer instance")?, )) .serve(bind_addr); @@ -97,3 +133,19 @@ async fn run_interface(bind_addr: SocketAddr, state: PluginState) -> Result<()> Ok(()) } + +async fn handle_notification(plugin : Plugin, value : serde_json::Value) -> Result<()> { + let notification : Result = serde_json::from_value(value); + match notification { + Err(err) => { + log::debug!("Failed to parse notification from lightningd {:?}", err); + }, + Ok(notification) => { + match plugin.state().events.send(notification) { + Err(err) => log::warn!("Failed to broadcast notification {:?}", err), + Ok(_) => {}, + } + } + }; + Ok(()) +} \ No newline at end of file From 0e96f076187ea2723234211e23c5430054e335b8 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Thu, 15 Feb 2024 17:07:35 +0100 Subject: [PATCH 16/24] msggen: Schema for ConnectNotification + collisions The schema in the docs for the `ConnectNotification` was faulty. I've already fix this in https://github.com/ElementsProject/lightning/pull/7085 The new schema is ``` { "connect" : { "address" : { "address" : "127.0.0.1", "port" : 38012, "type" : "ipv4" }, "direction" : "in", "id" : "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" } } ``` The `address` in the `connect` field will be encoded in protobuf as `ConnectAddress`. However, this collides with the `ConnectAddress` that is defined in the `connect` rpc-method. This commit - Updates the schema in `doc/schemas/notification/connect.json` - Changes `msggen` to include an override to `PeerConnect` for any notification typename that starts with `Connect` Both have an `address` field which is a composite type. This results in naming collisions schema's: Updated schema for connect-notification schema for connect notification + overrides Override ConnectAddress to `PeerConnectAddress` in protobuf for notifications --- .msggen.json | 33 +++- cln-grpc/proto/node.proto | 25 ++- cln-grpc/src/convert.rs | 16 +- cln-grpc/src/server.rs | 2 +- cln-rpc/src/notifications.rs | 56 +++++- contrib/msggen/msggen/gen/__init__.py | 13 +- contrib/msggen/msggen/gen/generator.py | 1 + contrib/msggen/msggen/gen/grpc/convert.py | 24 ++- contrib/msggen/msggen/gen/grpc/proto.py | 89 ++++++--- contrib/msggen/msggen/gen/grpc/server.py | 12 +- contrib/msggen/msggen/gen/grpc/unconvert.py | 9 +- contrib/msggen/msggen/gen/grpc/util.py | 14 ++ contrib/msggen/msggen/gen/grpc2py.py | 81 ++++---- contrib/msggen/msggen/gen/rpc/rust.py | 178 +++++++++++------- contrib/msggen/msggen/schema.json | 88 ++++++++- contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py | 26 +-- .../pyln/grpc/node_pb2_grpc.py | 6 +- doc/schemas/notification/connect.schema.json | 90 ++++++++- 18 files changed, 589 insertions(+), 174 deletions(-) diff --git a/.msggen.json b/.msggen.json index dcf5b040ac18..c21266b0459f 100644 --- a/.msggen.json +++ b/.msggen.json @@ -389,6 +389,17 @@ "failed": 2, "pending": 1 }, + "PeerConnectAddressType": { + "ipv4": 1, + "ipv6": 2, + "local socket": 0, + "torv2": 3, + "torv3": 4 + }, + "PeerConnectDirection": { + "in": 0, + "out": 1 + }, "PluginCommand": { "list": 4, "rescan": 2, @@ -725,7 +736,11 @@ "Connect.address.address": 3, "Connect.address.port": 4, "Connect.address.socket": 2, - "Connect.address.type": 1 + "Connect.address.type": 1, + "connect.address.address": 3, + "connect.address.port": 4, + "connect.address.socket": 2, + "connect.address.type": 1 }, "ConnectNotification": { "connect.address": 3, @@ -9097,6 +9112,22 @@ "added": "v24.05", "deprecated": false }, + "connect.address.address": { + "added": "v24.05", + "deprecated": false + }, + "connect.address.port": { + "added": "v24.05", + "deprecated": false + }, + "connect.address.socket": { + "added": "v24.05", + "deprecated": false + }, + "connect.address.type": { + "added": "v24.05", + "deprecated": false + }, "connect.direction": { "added": "v24.05", "deprecated": false diff --git a/cln-grpc/proto/node.proto b/cln-grpc/proto/node.proto index c345e440833d..ef13ab4f93a8 100644 --- a/cln-grpc/proto/node.proto +++ b/cln-grpc/proto/node.proto @@ -108,7 +108,7 @@ service Node { rpc SubscribeBlockAdded(StreamBlockAddedRequest) returns (stream BlockAddedNotification) {} rpc SubscribeChannelOpenFailed(StreamChannelOpenFailedRequest) returns (stream ChannelOpenFailedNotification) {} rpc SubscribeChannelOpened(StreamChannelOpenedRequest) returns (stream ChannelOpenedNotification) {} - rpc SubscribeConnect(StreamConnectRequest) returns (stream ConnectNotification) {} + rpc SubscribeConnect(StreamConnectRequest) returns (stream PeerConnectNotification) {} rpc SubscribeCustomMsg(StreamCustomMsgRequest) returns (stream CustomMsgNotification) {} } @@ -2804,15 +2804,30 @@ message ChannelOpenedNotification { message StreamConnectRequest { } -message ConnectNotification { +message PeerConnectNotification { // connect.direction - enum ConnectDirection { + enum PeerConnectDirection { IN = 0; OUT = 1; } bytes id = 1; - ConnectDirection direction = 2; - string address = 3; + PeerConnectDirection direction = 2; + PeerConnectAddress address = 3; +} + +message PeerConnectAddress { + // connect.address.type + enum PeerConnectAddressType { + LOCAL_SOCKET = 0; + IPV4 = 1; + IPV6 = 2; + TORV2 = 3; + TORV3 = 4; + } + PeerConnectAddressType item_type = 1; + optional string socket = 2; + optional string address = 3; + optional uint32 port = 4; } message StreamCustomMsgRequest { diff --git a/cln-grpc/src/convert.rs b/cln-grpc/src/convert.rs index 45ec5e935f4e..0ed65f7be8e8 100644 --- a/cln-grpc/src/convert.rs +++ b/cln-grpc/src/convert.rs @@ -2686,10 +2686,22 @@ impl From for pb::ChannelOpenedNotific } #[allow(unused_variables)] -impl From for pb::ConnectNotification { +impl From for pb::PeerConnectAddress { + fn from(c: notifications::ConnectAddress) -> Self { + Self { + address: c.address, // Rule #2 for type string? + port: c.port.map(|v| v.into()), // Rule #2 for type u16? + socket: c.socket, // Rule #2 for type string? + item_type: c.item_type as i32, + } + } +} + +#[allow(unused_variables)] +impl From for pb::PeerConnectNotification { fn from(c: notifications::ConnectNotification) -> Self { Self { - address: c.address, // Rule #2 for type string + address: Some(c.address.into()), direction: c.direction as i32, id: c.id.serialize().to_vec(), // Rule #2 for type pubkey } diff --git a/cln-grpc/src/server.rs b/cln-grpc/src/server.rs index 7771bcc7c6d0..64ee864e974b 100644 --- a/cln-grpc/src/server.rs +++ b/cln-grpc/src/server.rs @@ -3231,7 +3231,7 @@ impl Node for Server } - type SubscribeConnectStream = NotificationStream; + type SubscribeConnectStream = NotificationStream; async fn subscribe_connect( &self, diff --git a/cln-rpc/src/notifications.rs b/cln-rpc/src/notifications.rs index 564b56795670..e9b2917297cf 100644 --- a/cln-rpc/src/notifications.rs +++ b/cln-rpc/src/notifications.rs @@ -68,11 +68,65 @@ impl ToString for ConnectDirection { } } +/// Type of connection (*torv2*/*torv3* only if **direction** is *out*) +#[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, Eq)] +pub enum ConnectAddressType { + #[serde(rename = "local socket")] + LOCAL_SOCKET = 0, + #[serde(rename = "ipv4")] + IPV4 = 1, + #[serde(rename = "ipv6")] + IPV6 = 2, + #[serde(rename = "torv2")] + TORV2 = 3, + #[serde(rename = "torv3")] + TORV3 = 4, +} + +impl TryFrom for ConnectAddressType { + type Error = anyhow::Error; + fn try_from(c: i32) -> Result { + match c { + 0 => Ok(ConnectAddressType::LOCAL_SOCKET), + 1 => Ok(ConnectAddressType::IPV4), + 2 => Ok(ConnectAddressType::IPV6), + 3 => Ok(ConnectAddressType::TORV2), + 4 => Ok(ConnectAddressType::TORV3), + o => Err(anyhow::anyhow!("Unknown variant {} for enum ConnectAddressType", o)), + } + } +} + +impl ToString for ConnectAddressType { + fn to_string(&self) -> String { + match self { + ConnectAddressType::LOCAL_SOCKET => "LOCAL_SOCKET", + ConnectAddressType::IPV4 => "IPV4", + ConnectAddressType::IPV6 => "IPV6", + ConnectAddressType::TORV2 => "TORV2", + ConnectAddressType::TORV3 => "TORV3", + }.to_string() + } +} + +#[derive(Clone, Debug, Deserialize, Serialize)] +pub struct ConnectAddress { + #[serde(skip_serializing_if = "Option::is_none")] + pub address: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub port: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub socket: Option, + // Path `connect.address.type` + #[serde(rename = "type")] + pub item_type: ConnectAddressType, +} + #[derive(Clone, Debug, Deserialize, Serialize)] pub struct ConnectNotification { // Path `connect.direction` pub direction: ConnectDirection, - pub address: String, + pub address: ConnectAddress, pub id: PublicKey, } diff --git a/contrib/msggen/msggen/gen/__init__.py b/contrib/msggen/msggen/gen/__init__.py index 2ef4a56433eb..59856452181e 100644 --- a/contrib/msggen/msggen/gen/__init__.py +++ b/contrib/msggen/msggen/gen/__init__.py @@ -1,3 +1,10 @@ -from .generator import IGenerator, GeneratorChain # noqa -from .grpc import GrpcGenerator, GrpcConverterGenerator, GrpcUnconverterGenerator, GrpcServerGenerator # noqa -from .rpc.rust import RustGenerator # noqa +from .generator import IGenerator, GeneratorChain # noqa +from .grpc import ( + GrpcGenerator, + GrpcConverterGenerator, + GrpcUnconverterGenerator, + GrpcServerGenerator, +) # noqa +from .rpc.rust import RustGenerator # noqa + +__all__ = [IGenerator, GeneratorChain, GrpcGenerator, GrpcConverterGenerator, GrpcUnconverterGenerator, GrpcServerGenerator, RustGenerator] diff --git a/contrib/msggen/msggen/gen/generator.py b/contrib/msggen/msggen/gen/generator.py index 052ddcbb0f83..0c69fbe6b886 100644 --- a/contrib/msggen/msggen/gen/generator.py +++ b/contrib/msggen/msggen/gen/generator.py @@ -3,6 +3,7 @@ author: https://github.com/vincenzopalazzo """ + from abc import ABC, abstractmethod from msggen.model import Service diff --git a/contrib/msggen/msggen/gen/grpc/convert.py b/contrib/msggen/msggen/gen/grpc/convert.py index d693fcd9a284..03270785800f 100644 --- a/contrib/msggen/msggen/gen/grpc/convert.py +++ b/contrib/msggen/msggen/gen/grpc/convert.py @@ -1,5 +1,6 @@ # A grpc model from msggen.model import ArrayField, CompositeField, EnumField, PrimitiveField, Service +from msggen.gen.grpc.util import notification_typename_overrides from msggen.gen import IGenerator from typing import TextIO from textwrap import indent, dedent @@ -12,26 +13,29 @@ def __init__(self, dest: TextIO): self.dest = dest self.logger = logging.getLogger("msggen.grpc.GrpcConversionGenerator") - def generate_array(self, prefix, field: ArrayField): + def generate_array(self, prefix, field: ArrayField, override): if isinstance(field.itemtype, CompositeField): - self.generate_composite(prefix, field.itemtype) + self.generate_composite(prefix, field.itemtype, override) - def generate_composite(self, prefix, field: CompositeField): + def generate_composite(self, prefix, field: CompositeField, override=None): """Generates the conversions from JSON-RPC to GRPC.""" if field.omit(): return + if override is None: + override = lambda x: x + field.sort() # First pass: generate any sub-fields before we generate the # top-level field itself. for f in field.fields: if isinstance(f, ArrayField): - self.generate_array(prefix, f) + self.generate_array(prefix, f, override) elif isinstance(f, CompositeField): - self.generate_composite(prefix, f) + self.generate_composite(prefix, f, override) - pbname = self.to_camel_case(str(field.typename)) + pbname = override(self.to_camel_case(str(override(field.typename)))) # If any of the field accesses would result in a deprecated # warning we mark the construction here to allow deprecated @@ -159,7 +163,9 @@ def generate_requests(self, service: Service): for notification in service.notifications: req = notification.request - self.generate_composite("notifications::requests", req) + self.generate_composite( + "notifications::requests", req, notification_typename_overrides + ) def generate_responses(self, service: Service): for meth in service.methods: @@ -168,7 +174,9 @@ def generate_responses(self, service: Service): for notification in service.notifications: res = notification.response - self.generate_composite("notifications", res) + self.generate_composite( + "notifications", res, notification_typename_overrides + ) def generate(self, service: Service) -> None: self.write( diff --git a/contrib/msggen/msggen/gen/grpc/proto.py b/contrib/msggen/msggen/gen/grpc/proto.py index f8bf0a834d29..b0af147e168a 100644 --- a/contrib/msggen/msggen/gen/grpc/proto.py +++ b/contrib/msggen/msggen/gen/grpc/proto.py @@ -4,7 +4,11 @@ import logging from msggen.gen import IGenerator -from msggen.gen.grpc.util import typemap, method_name_overrides +from msggen.gen.grpc.util import ( + typemap, + method_name_overrides, + notification_typename_overrides, +) from msggen.model import ( ArrayField, Field, @@ -14,6 +18,8 @@ Service, MethodName, TypeName, + Notification, + Method, ) @@ -101,36 +107,29 @@ def enumerate_enum(self, typename, variants): for i, v in sorted_enumerated_values: yield (i, v) - def gather_types(self, service): + def gather_method_types(self, methods: List[Method]): """Gather all types that might need to be defined.""" - - def gather_subfields(field: Field) -> List[Field]: - fields = [field] - - if isinstance(field, CompositeField): - for f in field.fields: - fields.extend(gather_subfields(f)) - elif isinstance(field, ArrayField): - fields = [] - fields.extend(gather_subfields(field.itemtype)) - - return fields - types = [] - for method in service.methods: + for method in methods: types.extend([method.request, method.response]) for field in method.request.fields: types.extend(gather_subfields(field)) for field in method.response.fields: types.extend(gather_subfields(field)) - for notification in service.notifications: + return types + + def gather_notification_types(self, notifications: List[Notification]): + """Gather all types that might need to be defined + to represent notifications + """ + types = [] + for notification in notifications: types.extend([notification.request, notification.response]) for field in notification.request.fields: types.extend(gather_subfields(field)) for field in notification.response.fields: types.extend(gather_subfields(field)) - return types def generate_service(self, service: Service) -> None: @@ -150,41 +149,53 @@ def generate_service(self, service: Service) -> None: self.write("\n") for notification in service.notifications: name = str(notification.typename) + response_type_name = notification_typename_overrides( + notification.response.typename + ) self.write( - f" rpc Subscribe{name}({notification.request.typename}) returns (stream {notification.response.typename}) {{}}\n", - cleanup=False) + f" rpc Subscribe{name}({notification.request.typename}) returns (stream {response_type_name}) {{}}\n", + cleanup=False, + ) self.write( f"""}} """ ) - def generate_enum(self, e: EnumField, indent=0): + def generate_enum(self, e: EnumField, indent=0, typename_override=None): + if typename_override is None: + typename_override = lambda x: x + self.logger.debug(f"Generating enum {e}") prefix = "\t" * indent self.write(f"{prefix}// {e.path}\n", False) - self.write(f"{prefix}enum {e.typename} {{\n", False) + self.write(f"{prefix}enum {typename_override(e.typename)} {{\n", False) - for i, v in self.enumerate_enum(e.typename, e.variants): + for i, v in self.enumerate_enum(typename_override(e.typename), e.variants): self.logger.debug(f"Generating enum variant {v}") self.write(f"{prefix}\t{v.normalized()} = {i};\n", False) self.write(f"""{prefix}}}\n""", False) - def generate_message(self, message: CompositeField): + def generate_message(self, message: CompositeField, typename_override=None): if message.omit(): return + # If override is not specified it is a function that returns itself + # This is equivalent to do not override + if typename_override is None: + typename_override = lambda x: x + self.write( f""" - message {message.typename} {{ + message {typename_override(message.typename)} {{ """ ) # Declare enums inline so they are scoped correctly in C++ for _, f in enumerate(message.fields): if isinstance(f, EnumField) and not f.override(): - self.generate_enum(f, indent=1) + self.generate_enum(f, indent=1, typename_override=typename_override) for i, f in self.enumerate_fields(message.typename, message.fields): if f.omit(): @@ -199,12 +210,15 @@ def generate_message(self, message: CompositeField): self.write(f"\trepeated {typename} {f.normalized()} = {i};\n", False) elif isinstance(f, PrimitiveField): typename = f.override(typemap.get(f.typename, f.typename)) + typename = typename_override(typename) self.write(f"\t{opt}{typename} {f.normalized()} = {i};\n", False) elif isinstance(f, EnumField): typename = f.override(f.typename) + typename = typename_override(typename) self.write(f"\t{opt}{typename} {f.normalized()} = {i};\n", False) elif isinstance(f, CompositeField): typename = f.override(f.typename) + typename = typename_override(typename) self.write(f"\t{opt}{typename} {f.normalized()} = {i};\n", False) self.write( @@ -229,7 +243,26 @@ def generate(self, service: Service) -> None: self.generate_service(service) - fields = self.gather_types(service) + method_fields = self.gather_method_types(service.methods) + notification_fields = self.gather_notification_types(service.notifications) - for message in [f for f in fields if isinstance(f, CompositeField)]: + for message in [f for f in method_fields if isinstance(f, CompositeField)]: self.generate_message(message) + + for message in [ + f for f in notification_fields if isinstance(f, CompositeField) + ]: + self.generate_message(message, notification_typename_overrides) + + +def gather_subfields(field: Field) -> List[Field]: + fields = [field] + + if isinstance(field, CompositeField): + for f in field.fields: + fields.extend(gather_subfields(f)) + elif isinstance(field, ArrayField): + fields = [] + fields.extend(gather_subfields(field.itemtype)) + + return fields diff --git a/contrib/msggen/msggen/gen/grpc/server.py b/contrib/msggen/msggen/gen/grpc/server.py index 1eb6bcc5f67e..8018e8eca85f 100644 --- a/contrib/msggen/msggen/gen/grpc/server.py +++ b/contrib/msggen/msggen/gen/grpc/server.py @@ -4,8 +4,12 @@ from typing import TextIO, Optional from msggen.model import Service from msggen.gen.generator import IGenerator -from msggen.gen.grpc.util import method_name_overrides, camel_to_snake, snake_to_camel - +from msggen.gen.grpc.util import ( + method_name_overrides, + camel_to_snake, + snake_to_camel, + notification_typename_overrides, +) from textwrap import indent, dedent @@ -160,7 +164,9 @@ def generate(self, service: Service) -> None: for notification in service.notifications: typename = str(notification.typename) snake_name = camel_to_snake(typename) - response_name = str(notification.response.typename) + response_name = notification_typename_overrides( + str(notification.response.typename) + ) stream_request = f"Stream{typename}Request" stream_name = f"Subscribe{notification.typename}Stream" self.write( diff --git a/contrib/msggen/msggen/gen/grpc/unconvert.py b/contrib/msggen/msggen/gen/grpc/unconvert.py index 45eb3e51adf7..00b192a0ca27 100644 --- a/contrib/msggen/msggen/gen/grpc/unconvert.py +++ b/contrib/msggen/msggen/gen/grpc/unconvert.py @@ -12,17 +12,20 @@ def generate(self, service: Service): # TODO Temporarily disabled since the use of overrides is lossy # self.generate_responses(service) - def generate_composite(self, prefix, field: CompositeField) -> None: + def generate_composite(self, prefix, field: CompositeField, override=None) -> None: # First pass: generate any sub-fields before we generate the # top-level field itself. if field.omit(): return + if override is None: + override = lambda x: x + for f in field.fields: if isinstance(f, ArrayField): - self.generate_array(prefix, f) + self.generate_array(prefix, f, override) elif isinstance(f, CompositeField): - self.generate_composite(prefix, f) + self.generate_composite(prefix, f, override) has_deprecated = any([f.deprecated for f in field.fields]) deprecated = ",deprecated" if has_deprecated else "" diff --git a/contrib/msggen/msggen/gen/grpc/util.py b/contrib/msggen/msggen/gen/grpc/util.py index 18b77bbfb9f9..743c0a9342f6 100644 --- a/contrib/msggen/msggen/gen/grpc/util.py +++ b/contrib/msggen/msggen/gen/grpc/util.py @@ -1,6 +1,8 @@ # A grpc model import re +from msggen.model import TypeName + typemap = { "boolean": "bool", "hex": "bytes", @@ -55,6 +57,18 @@ def snake_to_camel(snake_str: str): return camel_case +def notification_typename_overrides(typename: str): + if isinstance(typename, TypeName): + return_class = TypeName + else: + return_class = str + + if str(typename).startswith("Connect"): + return return_class(f"Peer{typename}") + else: + return typename + + def camel_to_snake(camel_case: str): snake = re.sub(r"(? None: self.dest.write(text) def generate(self, service: Service) -> None: - self.write("""\ + self.write( + """\ # This file was automatically derived from the JSON-RPC schemas in # `doc/schemas`. Do not edit this file manually as it would get # overwritten. @@ -84,7 +86,8 @@ def amount2msat(a): def remove_default(d): # grpc is really not good at empty values, they get replaced with the type's default value... return {k: v for k, v in d.items() if v is not None and v != ""} - """) + """ + ) self.generate_responses(service) @@ -117,11 +120,13 @@ def generate_composite(self, prefix, field: CompositeField): self.generate_enum(prefix, f.itemtype) converter_name = f"{prefix}2py" - self.write(f""" + self.write( + f""" def {converter_name}(m): return remove_default({{ - """) + """ + ) for f in field.fields: name = f.normalized() @@ -130,18 +135,27 @@ def {converter_name}(m): rhs = self.converters[typ].format(name=f.name) - self.write(f' "{name}": {rhs}, # PrimitiveField in generate_composite\n', cleanup=False) + self.write( + f' "{name}": {rhs}, # PrimitiveField in generate_composite\n', + cleanup=False, + ) elif isinstance(f, ArrayField) and isinstance(f.itemtype, PrimitiveField): rhs = self.converters[f.itemtype.typename].format(name=name) - self.write(f' "{name}": [{rhs} for i in {rhs}], # ArrayField[primitive] in generate_composite\n', cleanup=False) + self.write( + f' "{name}": [{rhs} for i in {rhs}], # ArrayField[primitive] in generate_composite\n', + cleanup=False, + ) elif isinstance(f, ArrayField): if override.get(f.path, "") is None: continue rhs = self.converters[f.path] - self.write(f' "{name}": [{rhs} for i in m.{name}], # ArrayField[composite] in generate_composite\n', cleanup=False) + self.write( + f' "{name}": [{rhs} for i in m.{name}], # ArrayField[composite] in generate_composite\n', + cleanup=False, + ) elif isinstance(f, CompositeField): rhs = self.converters[f.path].format(name=f.name) @@ -149,7 +163,10 @@ def {converter_name}(m): elif isinstance(f, EnumField): name = f.name - self.write(f' "{name}": str(m.{f.name.normalized()}), # EnumField in generate_composite\n', cleanup=False) + self.write( + f' "{name}": str(m.{f.name.normalized()}), # EnumField in generate_composite\n', + cleanup=False, + ) self.write(f" }})\n", cleanup=False) diff --git a/contrib/msggen/msggen/gen/rpc/rust.py b/contrib/msggen/msggen/gen/rpc/rust.py index 807e2be0c654..6b3fb19f4265 100644 --- a/contrib/msggen/msggen/gen/rpc/rust.py +++ b/contrib/msggen/msggen/gen/rpc/rust.py @@ -4,8 +4,14 @@ import sys import re -from msggen.model import (ArrayField, CompositeField, EnumField, - PrimitiveField, Service, Method) +from msggen.model import ( + ArrayField, + CompositeField, + EnumField, + PrimitiveField, + Service, + Method, +) from msggen.gen.generator import IGenerator logger = logging.getLogger(__name__) @@ -16,27 +22,27 @@ # A map of schema type to rust primitive types. typemap = { - 'boolean': 'bool', - 'hex': 'String', - 'msat': 'Amount', - 'msat_or_all': 'AmountOrAll', - 'msat_or_any': 'AmountOrAny', - 'currency': 'String', - 'number': 'f64', - 'pubkey': 'PublicKey', - 'short_channel_id': 'ShortChannelId', - 'signature': 'String', - 'string': 'String', - 'txid': 'String', - 'float': 'f32', - 'utxo': 'Utxo', - 'feerate': 'Feerate', - 'outpoint': 'Outpoint', - 'outputdesc': 'OutputDesc', - 'hash': 'Sha256', - 'secret': 'Secret', - 'bip340sig': 'String', - 'integer': 'i64', + "boolean": "bool", + "hex": "String", + "msat": "Amount", + "msat_or_all": "AmountOrAll", + "msat_or_any": "AmountOrAny", + "currency": "String", + "number": "f64", + "pubkey": "PublicKey", + "short_channel_id": "ShortChannelId", + "signature": "String", + "string": "String", + "txid": "String", + "float": "f32", + "utxo": "Utxo", + "feerate": "Feerate", + "outpoint": "Outpoint", + "outputdesc": "OutputDesc", + "hash": "Sha256", + "secret": "Secret", + "bip340sig": "String", + "integer": "i64", } header = f"""#![allow(non_camel_case_types)] @@ -56,11 +62,10 @@ def normalize_varname(field): - """Make sure that the variable name of this field is valid. - """ + """Make sure that the variable name of this field is valid.""" # Dashes are not valid names field.path = field.path.replace("-", "_") - field.path = re.sub(r'(? so we can convert from the numerical # representation - decl += dedent(f"""\ + decl += dedent( + f"""\ impl TryFrom for {e.typename} {{ type Error = anyhow::Error; fn try_from(c: i32) -> Result<{e.typename}, anyhow::Error> {{ match c {{ - """) + """ + ) if m != {} and complete_variants: for v in sorted_variants: @@ -139,30 +146,36 @@ def gen_enum(e, meta): # decl += f" #[serde(rename = \"{v}\")]\n" decl += f" {i} => Ok({e.typename}::{norm}),\n" - decl += dedent(f"""\ + decl += dedent( + f"""\ o => Err(anyhow::anyhow!("Unknown variant {{}} for enum {e.typename}", o)), }} }} }} - """) + """ + ) # Implement ToString for enums so we can print them nicely as they # appear in the schemas. - decl += dedent(f"""\ + decl += dedent( + f"""\ impl ToString for {e.typename} {{ fn to_string(&self) -> String {{ match self {{ - """) + """ + ) for v in e.variants: norm = v.normalized() - decl += f" {e.typename}::{norm} => \"{norm}\",\n" - decl += dedent(f"""\ + decl += f' {e.typename}::{norm} => "{norm}",\n' + decl += dedent( + f"""\ }}.to_string() }} }} - """) + """ + ) typename = e.typename @@ -175,7 +188,7 @@ def gen_enum(e, meta): defi += rename_if_necessary(str(e.name), e.name.normalized()) defi += f" pub {e.name.normalized()}: {typename},\n" else: - defi = f" #[serde(skip_serializing_if = \"Option::is_none\")]\n" + defi = f' #[serde(skip_serializing_if = "Option::is_none")]\n' defi += f" pub {e.name.normalized()}: Option<{typename}>,\n" return defi, decl @@ -193,14 +206,14 @@ def gen_primitive(p): if not p.optional: defi += f" pub {p.name}: {typename},\n" else: - defi += f" #[serde(skip_serializing_if = \"Option::is_none\")]\n pub {p.name}: Option<{typename}>,\n" + defi += f' #[serde(skip_serializing_if = "Option::is_none")]\n pub {p.name}: Option<{typename}>,\n' return defi, decl def rename_if_necessary(original, name): if original != name: - return f" #[serde(rename = \"{original}\")]\n" + return f' #[serde(rename = "{original}")]\n' else: return f"" @@ -258,7 +271,7 @@ def gen_composite(c, meta) -> Tuple[str, str]: if not c.optional: defi += f" pub {c.name}: {c.typename},\n" else: - defi += f" #[serde(skip_serializing_if = \"Option::is_none\")]\n pub {c.name}: Option<{c.typename}>,\n" + defi += f' #[serde(skip_serializing_if = "Option::is_none")]\n pub {c.name}: Option<{c.typename}>,\n' return defi, r @@ -275,7 +288,8 @@ def write(self, text: str, numindent: int = 0) -> None: self.dest.write(raw) def generate_requests(self, service: Service): - self.write("""\ + self.write( + """\ pub mod requests { #[allow(unused_imports)] use crate::primitives::*; @@ -283,7 +297,8 @@ def generate_requests(self, service: Service): use serde::{{Deserialize, Serialize}}; use core::fmt::Debug; use super::{IntoRequest, Request, TypedRequest}; - """) + """ + ) for meth in service.methods: req = meth.request @@ -294,7 +309,9 @@ def generate_requests(self, service: Service): self.write("}\n\n") def generate_request_trait_impl(self, method: Method): - self.write(dedent(f"""\ + self.write( + dedent( + f"""\ impl From<{method.request.typename}> for Request {{ fn from(r: {method.request.typename}) -> Self {{ Request::{method.name}(r) @@ -312,10 +329,14 @@ def generate_request_trait_impl(self, method: Method): "{method.name_raw.lower()}" }} }} - """), numindent=1) + """ + ), + numindent=1, + ) def generate_responses(self, service: Service): - self.write(""" + self.write( + """ pub mod responses { #[allow(unused_imports)] use crate::primitives::*; @@ -323,7 +344,8 @@ def generate_responses(self, service: Service): use serde::{{Deserialize, Serialize}}; use super::{TryFromResponseError, Response}; - """) + """ + ) for meth in service.methods: res = meth.response @@ -334,7 +356,9 @@ def generate_responses(self, service: Service): self.write("}\n\n") def generate_response_trait_impl(self, method: Method): - self.write(dedent(f"""\ + self.write( + dedent( + f"""\ impl TryFrom for {method.response.typename} {{ type Error = super::TryFromResponseError; @@ -346,46 +370,63 @@ def generate_response_trait_impl(self, method: Method): }} }} - """), numindent=1) + """ + ), + numindent=1, + ) def generate_enums(self, service: Service): - """The Request and Response enums serve as parsing primitives. - """ - self.write(f"""\ + """The Request and Response enums serve as parsing primitives.""" + self.write( + f"""\ use serde::{{Deserialize, Serialize}}; #[derive(Clone, Debug, Serialize, Deserialize)] #[serde(tag = "method", content = "params")] #[serde(rename_all = "lowercase")] pub enum Request {{ - """) + """ + ) for method in service.methods: - if '-' in method.name_raw: - self.write(f'#[serde(rename = "{method.name_raw.lower()}")]\n', numindent=1) - self.write(f"{method.name}(requests::{method.request.typename}),\n", numindent=1) - - self.write(f"""\ + if "-" in method.name_raw: + self.write( + f'#[serde(rename = "{method.name_raw.lower()}")]\n', numindent=1 + ) + self.write( + f"{method.name}(requests::{method.request.typename}),\n", numindent=1 + ) + + self.write( + f"""\ }} #[derive(Clone, Debug, Serialize, Deserialize)] #[serde(tag = "method", content = "result")] #[serde(rename_all = "lowercase")] pub enum Response {{ - """) + """ + ) for method in service.methods: - if '-' in method.name_raw: - self.write(f'#[serde(rename = "{method.name_raw.lower()}")]\n', numindent=1) - self.write(f"{method.name}(responses::{method.response.typename}),\n", numindent=1) - - self.write(f"""\ + if "-" in method.name_raw: + self.write( + f'#[serde(rename = "{method.name_raw.lower()}")]\n', numindent=1 + ) + self.write( + f"{method.name}(responses::{method.response.typename}),\n", numindent=1 + ) + + self.write( + f"""\ }} - """) + """ + ) def generate_request_trait(self): - self.write(""" + self.write( + """ pub trait IntoRequest: Into { type Response: TryFrom; } @@ -399,7 +440,8 @@ def generate_request_trait(self): #[derive(Debug)] pub struct TryFromResponseError; - """) + """ + ) def generate(self, service: Service) -> None: self.write(header) diff --git a/contrib/msggen/msggen/schema.json b/contrib/msggen/msggen/schema.json index 50ea176fc24c..bacb9ba7377c 100644 --- a/contrib/msggen/msggen/schema.json +++ b/contrib/msggen/msggen/schema.json @@ -31297,8 +31297,92 @@ "added": "v24.05" }, "address": { - "type": "string", - "added": "v24.05" + "type": "object", + "description": "Address information (mainly useful if **direction** is *out*)", + "additionalProperties": true, + "added": "v24.05", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "added": "v24.05", + "enum": [ + "local socket", + "ipv4", + "ipv6", + "torv2", + "torv3" + ], + "description": "Type of connection (*torv2*/*torv3* only if **direction** is *out*)" + } + }, + "allOf": [ + { + "if": { + "properties": { + "type": { + "type": "string", + "added": "v24.05", + "enum": [ + "local socket" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "socket" + ], + "properties": { + "type": {}, + "socket": { + "type": "string", + "added": "v24.05", + "description": "socket filename" + } + } + } + }, + { + "if": { + "properties": { + "type": { + "type": "string", + "added": "v24.05", + "enum": [ + "ipv4", + "ipv6", + "torv2", + "torv3" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "address", + "port" + ], + "properties": { + "type": {}, + "address": { + "type": "string", + "added": "v24.05", + "description": "address in expected format for **type**" + }, + "port": { + "type": "u16", + "added": "v24.05", + "description": "port number" + } + } + } + } + ] } } }, diff --git a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py index 8deb24c181f3..503f506e9af1 100644 --- a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py +++ b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py @@ -14,7 +14,7 @@ from pyln.grpc import primitives_pb2 as primitives__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nnode.proto\x12\x03\x63ln\x1a\x10primitives.proto\"\x10\n\x0eGetinfoRequest\"\xc1\x04\n\x0fGetinfoResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x61lias\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\r\n\x05\x63olor\x18\x03 \x01(\x0c\x12\x11\n\tnum_peers\x18\x04 \x01(\r\x12\x1c\n\x14num_pending_channels\x18\x05 \x01(\r\x12\x1b\n\x13num_active_channels\x18\x06 \x01(\r\x12\x1d\n\x15num_inactive_channels\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\t\x12\x15\n\rlightning_dir\x18\t \x01(\t\x12\x33\n\x0cour_features\x18\n \x01(\x0b\x32\x18.cln.GetinfoOur_featuresH\x01\x88\x01\x01\x12\x13\n\x0b\x62lockheight\x18\x0b \x01(\r\x12\x0f\n\x07network\x18\x0c \x01(\t\x12(\n\x13\x66\x65\x65s_collected_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x07\x61\x64\x64ress\x18\x0e \x03(\x0b\x32\x13.cln.GetinfoAddress\x12$\n\x07\x62inding\x18\x0f \x03(\x0b\x32\x13.cln.GetinfoBinding\x12\"\n\x15warning_bitcoind_sync\x18\x10 \x01(\tH\x02\x88\x01\x01\x12$\n\x17warning_lightningd_sync\x18\x11 \x01(\tH\x03\x88\x01\x01\x42\x08\n\x06_aliasB\x0f\n\r_our_featuresB\x18\n\x16_warning_bitcoind_syncB\x1a\n\x18_warning_lightningd_sync\"S\n\x13GetinfoOur_features\x12\x0c\n\x04init\x18\x01 \x01(\x0c\x12\x0c\n\x04node\x18\x02 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x03 \x01(\x0c\x12\x0f\n\x07invoice\x18\x04 \x01(\x0c\"\xc4\x01\n\x0eGetinfoAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoAddress.GetinfoAddressType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"G\n\x12GetinfoAddressType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"\xac\x02\n\x0eGetinfoBinding\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoBinding.GetinfoBindingType\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06socket\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x14\n\x07subtype\x18\x05 \x01(\tH\x03\x88\x01\x01\"_\n\x12GetinfoBindingType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x12\r\n\tWEBSOCKET\x10\x05\x42\n\n\x08_addressB\x07\n\x05_portB\t\n\x07_socketB\n\n\x08_subtype\"\xb5\x01\n\x10ListpeersRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x38\n\x05level\x18\x02 \x01(\x0e\x32$.cln.ListpeersRequest.ListpeersLevelH\x01\x88\x01\x01\"E\n\x0eListpeersLevel\x12\x06\n\x02IO\x10\x00\x12\t\n\x05\x44\x45\x42UG\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\x0b\n\x07UNUSUAL\x10\x03\x12\t\n\x05TRACE\x10\x04\x42\x05\n\x03_idB\x08\n\x06_level\"7\n\x11ListpeersResponse\x12\"\n\x05peers\x18\x01 \x03(\x0b\x32\x13.cln.ListpeersPeers\"\xdf\x01\n\x0eListpeersPeers\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x11\n\tconnected\x18\x02 \x01(\x08\x12#\n\x03log\x18\x03 \x03(\x0b\x32\x16.cln.ListpeersPeersLog\x12\x0f\n\x07netaddr\x18\x05 \x03(\t\x12\x15\n\x08\x66\x65\x61tures\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0bremote_addr\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cnum_channels\x18\x08 \x01(\rH\x02\x88\x01\x01\x42\x0b\n\t_featuresB\x0e\n\x0c_remote_addrB\x0f\n\r_num_channels\"\x88\x03\n\x11ListpeersPeersLog\x12?\n\titem_type\x18\x01 \x01(\x0e\x32,.cln.ListpeersPeersLog.ListpeersPeersLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"t\n\x15ListpeersPeersLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"0\n\x10ListfundsRequest\x12\x12\n\x05spent\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_spent\"e\n\x11ListfundsResponse\x12&\n\x07outputs\x18\x01 \x03(\x0b\x32\x15.cln.ListfundsOutputs\x12(\n\x08\x63hannels\x18\x02 \x03(\x0b\x32\x16.cln.ListfundsChannels\"\xb9\x03\n\x10ListfundsOutputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06output\x18\x02 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0cscriptpubkey\x18\x04 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0credeemscript\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12<\n\x06status\x18\x07 \x01(\x0e\x32,.cln.ListfundsOutputs.ListfundsOutputsStatus\x12\x18\n\x0b\x62lockheight\x18\x08 \x01(\rH\x02\x88\x01\x01\x12\x10\n\x08reserved\x18\t \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\n \x01(\rH\x03\x88\x01\x01\"Q\n\x16ListfundsOutputsStatus\x12\x0f\n\x0bUNCONFIRMED\x10\x00\x12\r\n\tCONFIRMED\x10\x01\x12\t\n\x05SPENT\x10\x02\x12\x0c\n\x08IMMATURE\x10\x03\x42\n\n\x08_addressB\x0f\n\r_redeemscriptB\x0e\n\x0c_blockheightB\x14\n\x12_reserved_to_block\"\xab\x02\n\x11ListfundsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12$\n\x0four_amount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x04 \x01(\x0c\x12\x16\n\x0e\x66unding_output\x18\x05 \x01(\r\x12\x11\n\tconnected\x18\x06 \x01(\x08\x12 \n\x05state\x18\x07 \x01(\x0e\x32\x11.cln.ChannelState\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x01\x88\x01\x01\x42\x13\n\x11_short_channel_idB\r\n\x0b_channel_id\"\xbb\x03\n\x0eSendpayRequest\x12 \n\x05route\x18\x01 \x03(\x0b\x32\x11.cln.SendpayRoute\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x13\n\x06partid\x18\x07 \x01(\x04H\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\t \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x0c \x01(\x0cH\x07\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x08\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_bolt11B\x11\n\x0f_payment_secretB\t\n\x07_partidB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x13\n\x11_payment_metadataB\x0e\n\x0c_description\"\xad\x05\n\x0fSendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x32\n\x06status\x18\x04 \x01(\x0e\x32\".cln.SendpayResponse.SendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x14\n\x07message\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\"*\n\rSendpayStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\\\n\x0cSendpayRoute\x12\n\n\x02id\x18\x02 \x01(\x0c\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\x12\x0f\n\x07\x63hannel\x18\x04 \x01(\t\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x01\n\x13ListchannelsRequest\x12\x1d\n\x10short_channel_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06source\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x42\x13\n\x11_short_channel_idB\t\n\x07_sourceB\x0e\n\x0c_destination\"C\n\x14ListchannelsResponse\x12+\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x19.cln.ListchannelsChannels\"\xb3\x03\n\x14ListchannelsChannels\x12\x0e\n\x06source\x18\x01 \x01(\x0c\x12\x13\n\x0b\x64\x65stination\x18\x02 \x01(\x0c\x12\x18\n\x10short_channel_id\x18\x03 \x01(\t\x12\x0e\n\x06public\x18\x04 \x01(\x08\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x15\n\rmessage_flags\x18\x06 \x01(\r\x12\x15\n\rchannel_flags\x18\x07 \x01(\r\x12\x0e\n\x06\x61\x63tive\x18\x08 \x01(\x08\x12\x13\n\x0blast_update\x18\t \x01(\r\x12\x1d\n\x15\x62\x61se_fee_millisatoshi\x18\n \x01(\r\x12\x19\n\x11\x66\x65\x65_per_millionth\x18\x0b \x01(\r\x12\r\n\x05\x64\x65lay\x18\x0c \x01(\r\x12&\n\x11htlc_minimum_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x11htlc_maximum_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x10\n\x08\x66\x65\x61tures\x18\x0f \x01(\x0c\x12\x11\n\tdirection\x18\x10 \x01(\rB\x14\n\x12_htlc_maximum_msat\"#\n\x10\x41\x64\x64gossipRequest\x12\x0f\n\x07message\x18\x01 \x01(\x0c\"\x13\n\x11\x41\x64\x64gossipResponse\"o\n\x17\x41utocleaninvoiceRequest\x12\x17\n\nexpired_by\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"\x81\x01\n\x18\x41utocleaninvoiceResponse\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x17\n\nexpired_by\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x03 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"O\n\x14\x41utocleanonceRequest\x12*\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystem\x12\x0b\n\x03\x61ge\x18\x02 \x01(\x04\"G\n\x15\x41utocleanonceResponse\x12.\n\tautoclean\x18\x01 \x01(\x0b\x32\x1b.cln.AutocleanonceAutoclean\"\xb1\x04\n\x16\x41utocleanonceAutoclean\x12L\n\x11succeededforwards\x18\x01 \x01(\x0b\x32,.cln.AutocleanonceAutocleanSucceededforwardsH\x00\x88\x01\x01\x12\x46\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32).cln.AutocleanonceAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x44\n\rsucceededpays\x18\x03 \x01(\x0b\x32(.cln.AutocleanonceAutocleanSucceededpaysH\x02\x88\x01\x01\x12>\n\nfailedpays\x18\x04 \x01(\x0b\x32%.cln.AutocleanonceAutocleanFailedpaysH\x03\x88\x01\x01\x12\x42\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32\'.cln.AutocleanonceAutocleanPaidinvoicesH\x04\x88\x01\x01\x12H\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32*.cln.AutocleanonceAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"M\n\'AutocleanonceAutocleanSucceededforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"J\n$AutocleanonceAutocleanFailedforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"I\n#AutocleanonceAutocleanSucceededpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"F\n AutocleanonceAutocleanFailedpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"H\n\"AutocleanonceAutocleanPaidinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"K\n%AutocleanonceAutocleanExpiredinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"W\n\x16\x41utocleanstatusRequest\x12/\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystemH\x00\x88\x01\x01\x42\x0c\n\n_subsystem\"K\n\x17\x41utocleanstatusResponse\x12\x30\n\tautoclean\x18\x01 \x01(\x0b\x32\x1d.cln.AutocleanstatusAutoclean\"\xbf\x04\n\x18\x41utocleanstatusAutoclean\x12N\n\x11succeededforwards\x18\x01 \x01(\x0b\x32..cln.AutocleanstatusAutocleanSucceededforwardsH\x00\x88\x01\x01\x12H\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32+.cln.AutocleanstatusAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x46\n\rsucceededpays\x18\x03 \x01(\x0b\x32*.cln.AutocleanstatusAutocleanSucceededpaysH\x02\x88\x01\x01\x12@\n\nfailedpays\x18\x04 \x01(\x0b\x32\'.cln.AutocleanstatusAutocleanFailedpaysH\x03\x88\x01\x01\x12\x44\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32).cln.AutocleanstatusAutocleanPaidinvoicesH\x04\x88\x01\x01\x12J\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32,.cln.AutocleanstatusAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"g\n)AutocleanstatusAutocleanSucceededforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"d\n&AutocleanstatusAutocleanFailedforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"c\n%AutocleanstatusAutocleanSucceededpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"`\n\"AutocleanstatusAutocleanFailedpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"b\n$AutocleanstatusAutocleanPaidinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"e\n\'AutocleanstatusAutocleanExpiredinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"U\n\x13\x43heckmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\r\n\x05zbase\x18\x02 \x01(\t\x12\x13\n\x06pubkey\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x42\t\n\x07_pubkey\"8\n\x14\x43heckmessageResponse\x12\x10\n\x08verified\x18\x01 \x01(\x08\x12\x0e\n\x06pubkey\x18\x02 \x01(\x0c\"\xcb\x02\n\x0c\x43loseRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x11unilateraltimeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x66\x65\x65_negotiation_step\x18\x04 \x01(\tH\x02\x88\x01\x01\x12)\n\rwrong_funding\x18\x05 \x01(\x0b\x32\r.cln.OutpointH\x03\x88\x01\x01\x12\x1f\n\x12\x66orce_lease_closed\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1e\n\x08\x66\x65\x65range\x18\x07 \x03(\x0b\x32\x0c.cln.FeerateB\x14\n\x12_unilateraltimeoutB\x0e\n\x0c_destinationB\x17\n\x15_fee_negotiation_stepB\x10\n\x0e_wrong_fundingB\x15\n\x13_force_lease_closed\"\xab\x01\n\rCloseResponse\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.CloseResponse.CloseType\x12\x0f\n\x02tx\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04txid\x18\x03 \x01(\x0cH\x01\x88\x01\x01\"5\n\tCloseType\x12\n\n\x06MUTUAL\x10\x00\x12\x0e\n\nUNILATERAL\x10\x01\x12\x0c\n\x08UNOPENED\x10\x02\x42\x05\n\x03_txB\x07\n\x05_txid\"T\n\x0e\x43onnectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04host\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x07\n\x05_hostB\x07\n\x05_port\"\xb4\x01\n\x0f\x43onnectResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0c\x12\x38\n\tdirection\x18\x03 \x01(\x0e\x32%.cln.ConnectResponse.ConnectDirection\x12$\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x13.cln.ConnectAddress\"#\n\x10\x43onnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\xfb\x01\n\x0e\x43onnectAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.ConnectAddress.ConnectAddressType\x12\x13\n\x06socket\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04port\x18\x04 \x01(\rH\x02\x88\x01\x01\"P\n\x12\x43onnectAddressType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\t\n\x07_socketB\n\n\x08_addressB\x07\n\x05_port\"J\n\x14\x43reateinvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x10\n\x08preimage\x18\x03 \x01(\x0c\"\xfe\x05\n\x15\x43reateinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12>\n\x06status\x18\x06 \x01(\x0e\x32..cln.CreateinvoiceResponse.CreateinvoiceStatus\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12;\n\rpaid_outpoint\x18\x11 \x01(\x0b\x32\x1f.cln.CreateinvoicePaid_outpointH\n\x88\x01\x01\"8\n\x13\x43reateinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_paid_outpoint\":\n\x1a\x43reateinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x02\n\x10\x44\x61tastoreRequest\x12\x10\n\x03hex\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x36\n\x04mode\x18\x03 \x01(\x0e\x32#.cln.DatastoreRequest.DatastoreModeH\x01\x88\x01\x01\x12\x17\n\ngeneration\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\t\x12\x13\n\x06string\x18\x06 \x01(\tH\x03\x88\x01\x01\"p\n\rDatastoreMode\x12\x0f\n\x0bMUST_CREATE\x10\x00\x12\x10\n\x0cMUST_REPLACE\x10\x01\x12\x15\n\x11\x43REATE_OR_REPLACE\x10\x02\x12\x0f\n\x0bMUST_APPEND\x10\x03\x12\x14\n\x10\x43REATE_OR_APPEND\x10\x04\x42\x06\n\x04_hexB\x07\n\x05_modeB\r\n\x0b_generationB\t\n\x07_string\"\x82\x01\n\x11\x44\x61tastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"$\n\x15\x44\x61tastoreusageRequest\x12\x0b\n\x03key\x18\x01 \x03(\t\"S\n\x16\x44\x61tastoreusageResponse\x12\x39\n\x0e\x64\x61tastoreusage\x18\x01 \x01(\x0b\x32!.cln.DatastoreusageDatastoreusage\"@\n\x1c\x44\x61tastoreusageDatastoreusage\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x13\n\x0btotal_bytes\x18\x02 \x01(\x04\"\x9d\x01\n\x12\x43reateonionRequest\x12\"\n\x04hops\x18\x01 \x03(\x0b\x32\x14.cln.CreateonionHops\x12\x11\n\tassocdata\x18\x02 \x01(\x0c\x12\x18\n\x0bsession_key\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x17\n\nonion_size\x18\x04 \x01(\rH\x01\x88\x01\x01\x42\x0e\n\x0c_session_keyB\r\n\x0b_onion_size\"<\n\x13\x43reateonionResponse\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12\x16\n\x0eshared_secrets\x18\x02 \x03(\x0c\"2\n\x0f\x43reateonionHops\x12\x0e\n\x06pubkey\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\"J\n\x13\x44\x65ldatastoreRequest\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x03 \x03(\tB\r\n\x0b_generation\"\x85\x01\n\x14\x44\x65ldatastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xb6\x01\n\x11\x44\x65linvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\x12\x37\n\x06status\x18\x02 \x01(\x0e\x32\'.cln.DelinvoiceRequest.DelinvoiceStatus\x12\x15\n\x08\x64\x65sconly\x18\x03 \x01(\x08H\x00\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\x0b\n\t_desconly\"\xe6\x05\n\x12\x44\x65linvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x38\n\x06status\x18\x07 \x01(\x0e\x32(.cln.DelinvoiceResponse.DelinvoiceStatus\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x16\n\tpay_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\t\x88\x01\x01\x12\x14\n\x07paid_at\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"\xfa\x01\n\x0eInvoiceRequest\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tfallbacks\x18\x04 \x03(\t\x12\x15\n\x08preimage\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04\x63ltv\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18\x07 \x01(\x04H\x02\x88\x01\x01\x12\x19\n\x0c\x64\x65schashonly\x18\t \x01(\x08H\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x10.cln.AmountOrAnyB\x0b\n\t_preimageB\x07\n\x05_cltvB\t\n\x07_expiryB\x0f\n\r_deschashonly\"\x95\x03\n\x0fInvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x16\n\x0epayment_secret\x18\x03 \x01(\x0c\x12\x12\n\nexpires_at\x18\x04 \x01(\x04\x12\x1d\n\x10warning_capacity\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0fwarning_offline\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10warning_deadends\x18\x07 \x01(\tH\x02\x88\x01\x01\x12#\n\x16warning_private_unused\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x18\n\x0bwarning_mpp\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rcreated_index\x18\n \x01(\x04H\x05\x88\x01\x01\x42\x13\n\x11_warning_capacityB\x12\n\x10_warning_offlineB\x13\n\x11_warning_deadendsB\x19\n\x17_warning_private_unusedB\x0e\n\x0c_warning_mppB\x10\n\x0e_created_index\"#\n\x14ListdatastoreRequest\x12\x0b\n\x03key\x18\x02 \x03(\t\"G\n\x15ListdatastoreResponse\x12.\n\tdatastore\x18\x01 \x03(\x0b\x32\x1b.cln.ListdatastoreDatastore\"\x87\x01\n\x16ListdatastoreDatastore\x12\x0b\n\x03key\x18\x01 \x03(\t\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xde\x02\n\x13ListinvoicesRequest\x12\x12\n\x05label\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tinvstring\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08offer_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x12>\n\x05index\x18\x05 \x01(\x0e\x32*.cln.ListinvoicesRequest.ListinvoicesIndexH\x04\x88\x01\x01\x12\x12\n\x05start\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x12\n\x05limit\x18\x07 \x01(\rH\x06\x88\x01\x01\"-\n\x11ListinvoicesIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\x08\n\x06_labelB\x0c\n\n_invstringB\x0f\n\r_payment_hashB\x0b\n\t_offer_idB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListinvoicesResponse\x12+\n\x08invoices\x18\x01 \x03(\x0b\x32\x19.cln.ListinvoicesInvoices\"\xd4\x06\n\x14ListinvoicesInvoices\x12\r\n\x05label\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListinvoicesInvoices.ListinvoicesInvoicesStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x16\n\tpay_index\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x14\n\x07paid_at\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0e \x01(\x0cH\x08\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\x12\x42\n\rpaid_outpoint\x18\x12 \x01(\x0b\x32&.cln.ListinvoicesInvoicesPaid_outpointH\x0c\x88\x01\x01\"?\n\x1aListinvoicesInvoicesStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x11\n\x0f_local_offer_idB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"A\n!ListinvoicesInvoicesPaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x03\n\x10SendonionRequest\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12*\n\tfirst_hop\x18\x02 \x01(\x0b\x32\x17.cln.SendonionFirst_hop\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\x05label\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0eshared_secrets\x18\x05 \x03(\x0c\x12\x13\n\x06partid\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\t \x01(\x0cH\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\x0b \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\x0e\n\x0c_destinationB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0e\n\x0c_description\"\xe7\x04\n\x11SendonionResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x36\n\x06status\x18\x03 \x01(\x0e\x32&.cln.SendonionResponse.SendonionStatus\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x06 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\n \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0b \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x07message\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x13\n\x06partid\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\",\n\x0fSendonionStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"Q\n\x12SendonionFirst_hop\x12\n\n\x02id\x18\x01 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\"\xa0\x03\n\x13ListsendpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12@\n\x06status\x18\x03 \x01(\x0e\x32+.cln.ListsendpaysRequest.ListsendpaysStatusH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListsendpaysRequest.ListsendpaysIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\";\n\x12ListsendpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"-\n\x11ListsendpaysIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_statusB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListsendpaysResponse\x12+\n\x08payments\x18\x01 \x03(\x0b\x32\x19.cln.ListsendpaysPayments\"\xfc\x05\n\x14ListsendpaysPayments\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0f\n\x07groupid\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListsendpaysPayments.ListsendpaysPaymentsStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\n \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x12\x13\n\x06partid\x18\x0f \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\n\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x12 \x01(\x04H\x0b\x88\x01\x01\"C\n\x1aListsendpaysPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0f\n\r_completed_at\"\x19\n\x17ListtransactionsRequest\"S\n\x18ListtransactionsResponse\x12\x37\n\x0ctransactions\x18\x01 \x03(\x0b\x32!.cln.ListtransactionsTransactions\"\xf8\x01\n\x1cListtransactionsTransactions\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\r\n\x05rawtx\x18\x02 \x01(\x0c\x12\x13\n\x0b\x62lockheight\x18\x03 \x01(\r\x12\x0f\n\x07txindex\x18\x04 \x01(\r\x12\x10\n\x08locktime\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\r\x12\x37\n\x06inputs\x18\t \x03(\x0b\x32\'.cln.ListtransactionsTransactionsInputs\x12\x39\n\x07outputs\x18\n \x03(\x0b\x32(.cln.ListtransactionsTransactionsOutputs\"S\n\"ListtransactionsTransactionsInputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\r\n\x05index\x18\x02 \x01(\r\x12\x10\n\x08sequence\x18\x03 \x01(\r\"l\n#ListtransactionsTransactionsOutputs\x12\r\n\x05index\x18\x01 \x01(\r\x12\x14\n\x0cscriptPubKey\x18\x03 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x04\n\nPayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x17\n\nriskfactor\x18\x08 \x01(\x01H\x05\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\n \x03(\t\x12 \n\x06maxfee\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0c \x01(\tH\x07\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0e \x01(\x0cH\t\x88\x01\x01\x12&\n\x0cpartial_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x42\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_riskfactorB\t\n\x07_maxfeeB\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0f\n\r_partial_msat\"\xfb\x02\n\x0bPayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12*\n\x06status\x18\t \x01(\x0e\x32\x1a.cln.PayResponse.PayStatus\"2\n\tPayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"*\n\x10ListnodesRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListnodesResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.cln.ListnodesNodes\"\xba\x02\n\x0eListnodesNodes\x12\x0e\n\x06nodeid\x18\x01 \x01(\x0c\x12\x1b\n\x0elast_timestamp\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x12\n\x05\x61lias\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x12\n\x05\x63olor\x18\x04 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x05 \x01(\x0cH\x03\x88\x01\x01\x12/\n\taddresses\x18\x06 \x03(\x0b\x32\x1c.cln.ListnodesNodesAddresses\x12\x42\n\x10option_will_fund\x18\x07 \x01(\x0b\x32#.cln.ListnodesNodesOption_will_fundH\x04\x88\x01\x01\x42\x11\n\x0f_last_timestampB\x08\n\x06_aliasB\x08\n\x06_colorB\x0b\n\t_featuresB\x13\n\x11_option_will_fund\"\xf4\x01\n\x1eListnodesNodesOption_will_fund\x12(\n\x13lease_fee_base_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x17\n\x0flease_fee_basis\x18\x02 \x01(\r\x12\x16\n\x0e\x66unding_weight\x18\x03 \x01(\r\x12.\n\x19\x63hannel_fee_max_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x30\n(channel_fee_max_proportional_thousandths\x18\x05 \x01(\r\x12\x15\n\rcompact_lease\x18\x06 \x01(\x0c\"\xe8\x01\n\x17ListnodesNodesAddresses\x12K\n\titem_type\x18\x01 \x01(\x0e\x32\x38.cln.ListnodesNodesAddresses.ListnodesNodesAddressesType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"P\n\x1bListnodesNodesAddressesType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"g\n\x15WaitanyinvoiceRequest\x12\x1a\n\rlastpay_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\x10\n\x0e_lastpay_indexB\n\n\x08_timeout\"\xbf\x05\n\x16WaitanyinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12@\n\x06status\x18\x04 \x01(\x0e\x32\x30.cln.WaitanyinvoiceResponse.WaitanyinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12<\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32 .cln.WaitanyinvoicePaid_outpointH\t\x88\x01\x01\"-\n\x14WaitanyinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\";\n\x1bWaitanyinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"#\n\x12WaitinvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\"\xb0\x05\n\x13WaitinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitinvoiceResponse.WaitinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x39\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32\x1d.cln.WaitinvoicePaid_outpointH\t\x88\x01\x01\"*\n\x11WaitinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"8\n\x18WaitinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\x8e\x01\n\x12WaitsendpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x13\n\x06partid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x02\x88\x01\x01\x42\t\n\x07_partidB\n\n\x08_timeoutB\n\n\x08_groupid\"\x8e\x05\n\x13WaitsendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitsendpayResponse.WaitsendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\"!\n\x11WaitsendpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\x97\x01\n\x0eNewaddrRequest\x12@\n\x0b\x61\x64\x64resstype\x18\x01 \x01(\x0e\x32&.cln.NewaddrRequest.NewaddrAddresstypeH\x00\x88\x01\x01\"3\n\x12NewaddrAddresstype\x12\n\n\x06\x42\x45\x43H32\x10\x00\x12\x07\n\x03\x41LL\x10\x02\x12\x08\n\x04P2TR\x10\x03\x42\x0e\n\x0c_addresstype\"M\n\x0fNewaddrResponse\x12\x13\n\x06\x62\x65\x63h32\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04p2tr\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\t\n\x07_bech32B\x07\n\x05_p2tr\"\xb9\x01\n\x0fWithdrawRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\t\x12!\n\x07satoshi\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\"\n\x07\x66\x65\x65rate\x18\x05 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_feerate\":\n\x10WithdrawResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0c\n\x04psbt\x18\x03 \x01(\t\"\x82\x03\n\x0eKeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12+\n\nroutehints\x18\x08 \x01(\x0b\x32\x12.cln.RoutehintListH\x05\x88\x01\x01\x12&\n\textratlvs\x18\t \x01(\x0b\x32\x0e.cln.TlvStreamH\x06\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_routehintsB\x0c\n\n_extratlvs\"\xf2\x02\n\x0fKeysendResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x32\n\x06status\x18\t \x01(\x0e\x32\".cln.KeysendResponse.KeysendStatus\"\x1d\n\rKeysendStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"\xa4\x03\n\x0f\x46undpsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x14\n\x07minconf\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\x08 \x01(\x08H\x04\x88\x01\x01\x12\x17\n\nnonwrapped\x18\t \x01(\x08H\x05\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x06\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\x13\n\x11_excess_as_changeB\r\n\x0b_nonwrappedB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10\x46undpsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.FundpsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14\x46undpsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"A\n\x0fSendpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\",\n\x10SendpsbtResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"1\n\x0fSignpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x10\n\x08signonly\x18\x02 \x03(\r\"\'\n\x10SignpsbtResponse\x12\x13\n\x0bsigned_psbt\x18\x01 \x01(\t\"\xa0\x03\n\x0fUtxopsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x00\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x02\x88\x01\x01\x12\x17\n\nreservedok\x18\x08 \x01(\x08H\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\t \x01(\x08H\x04\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\r\n\x0b_reservedokB\x13\n\x11_excess_as_changeB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10UtxopsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.UtxopsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14UtxopsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\" \n\x10TxdiscardRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"6\n\x11TxdiscardResponse\x12\x13\n\x0bunsigned_tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"\xa4\x01\n\x10TxprepareRequest\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12 \n\x07outputs\x18\x05 \x03(\x0b\x32\x0f.cln.OutputDescB\n\n\x08_feerateB\n\n\x08_minconf\"D\n\x11TxprepareResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x13\n\x0bunsigned_tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"\x1d\n\rTxsendRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"8\n\x0eTxsendResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"1\n\x17ListpeerchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"K\n\x18ListpeerchannelsResponse\x12/\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x1d.cln.ListpeerchannelsChannels\"\xd7\x1b\n\x18ListpeerchannelsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x16\n\x0epeer_connected\x18\x02 \x01(\x08\x12J\n\x05state\x18\x03 \x01(\x0e\x32;.cln.ListpeerchannelsChannels.ListpeerchannelsChannelsState\x12\x19\n\x0cscratch_txid\x18\x04 \x01(\x0cH\x00\x88\x01\x01\x12:\n\x07\x66\x65\x65rate\x18\x06 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFeerateH\x01\x88\x01\x01\x12\x12\n\x05owner\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x19\n\x0c\x66unding_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x1b\n\x0e\x66unding_outnum\x18\x0b \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x0finitial_feerate\x18\x0c \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0clast_feerate\x18\r \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0cnext_feerate\x18\x0e \x01(\tH\t\x88\x01\x01\x12\x1a\n\rnext_fee_step\x18\x0f \x01(\rH\n\x88\x01\x01\x12\x37\n\x08inflight\x18\x10 \x03(\x0b\x32%.cln.ListpeerchannelsChannelsInflight\x12\x15\n\x08\x63lose_to\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\x12\x14\n\x07private\x18\x12 \x01(\x08H\x0c\x88\x01\x01\x12 \n\x06opener\x18\x13 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x14 \x01(\x0e\x32\x10.cln.ChannelSideH\r\x88\x01\x01\x12:\n\x07\x66unding\x18\x16 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFundingH\x0e\x88\x01\x01\x12$\n\nto_us_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x0f\x88\x01\x01\x12(\n\x0emin_to_us_msat\x18\x18 \x01(\x0b\x32\x0b.cln.AmountH\x10\x88\x01\x01\x12(\n\x0emax_to_us_msat\x18\x19 \x01(\x0b\x32\x0b.cln.AmountH\x11\x88\x01\x01\x12$\n\ntotal_msat\x18\x1a \x01(\x0b\x32\x0b.cln.AmountH\x12\x88\x01\x01\x12\'\n\rfee_base_msat\x18\x1b \x01(\x0b\x32\x0b.cln.AmountH\x13\x88\x01\x01\x12(\n\x1b\x66\x65\x65_proportional_millionths\x18\x1c \x01(\rH\x14\x88\x01\x01\x12)\n\x0f\x64ust_limit_msat\x18\x1d \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x30\n\x16max_total_htlc_in_msat\x18\x1e \x01(\x0b\x32\x0b.cln.AmountH\x16\x88\x01\x01\x12,\n\x12their_reserve_msat\x18\x1f \x01(\x0b\x32\x0b.cln.AmountH\x17\x88\x01\x01\x12*\n\x10our_reserve_msat\x18 \x01(\x0b\x32\x0b.cln.AmountH\x18\x88\x01\x01\x12(\n\x0espendable_msat\x18! \x01(\x0b\x32\x0b.cln.AmountH\x19\x88\x01\x01\x12)\n\x0freceivable_msat\x18\" \x01(\x0b\x32\x0b.cln.AmountH\x1a\x88\x01\x01\x12.\n\x14minimum_htlc_in_msat\x18# \x01(\x0b\x32\x0b.cln.AmountH\x1b\x88\x01\x01\x12/\n\x15minimum_htlc_out_msat\x18$ \x01(\x0b\x32\x0b.cln.AmountH\x1c\x88\x01\x01\x12/\n\x15maximum_htlc_out_msat\x18% \x01(\x0b\x32\x0b.cln.AmountH\x1d\x88\x01\x01\x12 \n\x13their_to_self_delay\x18& \x01(\rH\x1e\x88\x01\x01\x12\x1e\n\x11our_to_self_delay\x18\' \x01(\rH\x1f\x88\x01\x01\x12\x1f\n\x12max_accepted_htlcs\x18( \x01(\rH \x88\x01\x01\x12\x36\n\x05\x61lias\x18) \x01(\x0b\x32\".cln.ListpeerchannelsChannelsAliasH!\x88\x01\x01\x12\x0e\n\x06status\x18+ \x03(\t\x12 \n\x13in_payments_offered\x18, \x01(\x04H\"\x88\x01\x01\x12)\n\x0fin_offered_msat\x18- \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\"\n\x15in_payments_fulfilled\x18. \x01(\x04H$\x88\x01\x01\x12+\n\x11in_fulfilled_msat\x18/ \x01(\x0b\x32\x0b.cln.AmountH%\x88\x01\x01\x12!\n\x14out_payments_offered\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x10out_offered_msat\x18\x31 \x01(\x0b\x32\x0b.cln.AmountH\'\x88\x01\x01\x12#\n\x16out_payments_fulfilled\x18\x32 \x01(\x04H(\x88\x01\x01\x12,\n\x12out_fulfilled_msat\x18\x33 \x01(\x0b\x32\x0b.cln.AmountH)\x88\x01\x01\x12\x31\n\x05htlcs\x18\x34 \x03(\x0b\x32\".cln.ListpeerchannelsChannelsHtlcs\x12\x1a\n\rclose_to_addr\x18\x35 \x01(\tH*\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\x36 \x01(\x08H+\x88\x01\x01\x12:\n\x07updates\x18\x37 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsUpdatesH,\x88\x01\x01\x12#\n\x16last_stable_connection\x18\x38 \x01(\x04H-\x88\x01\x01\x12\x17\n\nlost_state\x18\x39 \x01(\x08H.\x88\x01\x01\x12\x1a\n\rreestablished\x18: \x01(\x08H/\x88\x01\x01\x12*\n\x10last_tx_fee_msat\x18; \x01(\x0b\x32\x0b.cln.AmountH0\x88\x01\x01\x12\x16\n\tdirection\x18< \x01(\rH1\x88\x01\x01\"\x80\x03\n\x1dListpeerchannelsChannelsState\x12\x0c\n\x08OPENINGD\x10\x00\x12\x1c\n\x18\x43HANNELD_AWAITING_LOCKIN\x10\x01\x12\x13\n\x0f\x43HANNELD_NORMAL\x10\x02\x12\x1a\n\x16\x43HANNELD_SHUTTING_DOWN\x10\x03\x12\x18\n\x14\x43LOSINGD_SIGEXCHANGE\x10\x04\x12\x15\n\x11\x43LOSINGD_COMPLETE\x10\x05\x12\x17\n\x13\x41WAITING_UNILATERAL\x10\x06\x12\x16\n\x12\x46UNDING_SPEND_SEEN\x10\x07\x12\x0b\n\x07ONCHAIN\x10\x08\x12\x17\n\x13\x44UALOPEND_OPEN_INIT\x10\t\x12\x1d\n\x19\x44UALOPEND_AWAITING_LOCKIN\x10\n\x12\x1c\n\x18\x43HANNELD_AWAITING_SPLICE\x10\x0b\x12\x1c\n\x18\x44UALOPEND_OPEN_COMMITTED\x10\x0c\x12\x1f\n\x1b\x44UALOPEND_OPEN_COMMIT_READY\x10\rB\x0f\n\r_scratch_txidB\n\n\x08_feerateB\x08\n\x06_ownerB\x13\n\x11_short_channel_idB\r\n\x0b_channel_idB\x0f\n\r_funding_txidB\x11\n\x0f_funding_outnumB\x12\n\x10_initial_feerateB\x0f\n\r_last_feerateB\x0f\n\r_next_feerateB\x10\n\x0e_next_fee_stepB\x0b\n\t_close_toB\n\n\x08_privateB\t\n\x07_closerB\n\n\x08_fundingB\r\n\x0b_to_us_msatB\x11\n\x0f_min_to_us_msatB\x11\n\x0f_max_to_us_msatB\r\n\x0b_total_msatB\x10\n\x0e_fee_base_msatB\x1e\n\x1c_fee_proportional_millionthsB\x12\n\x10_dust_limit_msatB\x19\n\x17_max_total_htlc_in_msatB\x15\n\x13_their_reserve_msatB\x13\n\x11_our_reserve_msatB\x11\n\x0f_spendable_msatB\x12\n\x10_receivable_msatB\x17\n\x15_minimum_htlc_in_msatB\x18\n\x16_minimum_htlc_out_msatB\x18\n\x16_maximum_htlc_out_msatB\x16\n\x14_their_to_self_delayB\x14\n\x12_our_to_self_delayB\x15\n\x13_max_accepted_htlcsB\x08\n\x06_aliasB\x16\n\x14_in_payments_offeredB\x12\n\x10_in_offered_msatB\x18\n\x16_in_payments_fulfilledB\x14\n\x12_in_fulfilled_msatB\x17\n\x15_out_payments_offeredB\x13\n\x11_out_offered_msatB\x19\n\x17_out_payments_fulfilledB\x15\n\x13_out_fulfilled_msatB\x10\n\x0e_close_to_addrB\x14\n\x12_ignore_fee_limitsB\n\n\x08_updatesB\x19\n\x17_last_stable_connectionB\r\n\x0b_lost_stateB\x10\n\x0e_reestablishedB\x13\n\x11_last_tx_fee_msatB\x0c\n\n_direction\"\xa7\x01\n\x1fListpeerchannelsChannelsUpdates\x12\x38\n\x05local\x18\x01 \x01(\x0b\x32).cln.ListpeerchannelsChannelsUpdatesLocal\x12?\n\x06remote\x18\x02 \x01(\x0b\x32*.cln.ListpeerchannelsChannelsUpdatesRemoteH\x00\x88\x01\x01\x42\t\n\x07_remote\"\xda\x01\n$ListpeerchannelsChannelsUpdatesLocal\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"\xdb\x01\n%ListpeerchannelsChannelsUpdatesRemote\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"?\n\x1fListpeerchannelsChannelsFeerate\x12\r\n\x05perkw\x18\x01 \x01(\r\x12\r\n\x05perkb\x18\x02 \x01(\r\"\x8b\x02\n ListpeerchannelsChannelsInflight\x12\x14\n\x0c\x66unding_txid\x18\x01 \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\x02 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x03 \x01(\t\x12\'\n\x12total_funding_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10our_funding_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x0cscratch_txid\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x1a\n\rsplice_amount\x18\x07 \x01(\x12H\x01\x88\x01\x01\x42\x0f\n\r_scratch_txidB\x10\n\x0e_splice_amount\"\x9d\x02\n\x1fListpeerchannelsChannelsFunding\x12%\n\x0bpushed_msat\x18\x01 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12%\n\x10local_funds_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11remote_funds_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\rfee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\'\n\rfee_rcvd_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x42\x0e\n\x0c_pushed_msatB\x10\n\x0e_fee_paid_msatB\x10\n\x0e_fee_rcvd_msat\"]\n\x1dListpeerchannelsChannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"\xf9\x02\n\x1dListpeerchannelsChannelsHtlcs\x12\\\n\tdirection\x18\x01 \x01(\x0e\x32I.cln.ListpeerchannelsChannelsHtlcs.ListpeerchannelsChannelsHtlcsDirection\x12\n\n\x02id\x18\x02 \x01(\x04\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x0e\n\x06\x65xpiry\x18\x04 \x01(\r\x12\x14\n\x0cpayment_hash\x18\x05 \x01(\x0c\x12\x1a\n\rlocal_trimmed\x18\x06 \x01(\x08H\x00\x88\x01\x01\x12\x13\n\x06status\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x05state\x18\x08 \x01(\x0e\x32\x0e.cln.HtlcState\"9\n&ListpeerchannelsChannelsHtlcsDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\x42\x10\n\x0e_local_trimmedB\t\n\x07_status\"3\n\x19ListclosedchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"[\n\x1aListclosedchannelsResponse\x12=\n\x0e\x63losedchannels\x18\x01 \x03(\x0b\x32%.cln.ListclosedchannelsClosedchannels\"\xf2\t\n ListclosedchannelsClosedchannels\x12\x14\n\x07peer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x01\x88\x01\x01\x12>\n\x05\x61lias\x18\x04 \x01(\x0b\x32*.cln.ListclosedchannelsClosedchannelsAliasH\x02\x88\x01\x01\x12 \n\x06opener\x18\x05 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x06 \x01(\x0e\x32\x10.cln.ChannelSideH\x03\x88\x01\x01\x12\x0f\n\x07private\x18\x07 \x01(\x08\x12\x1f\n\x17total_local_commitments\x18\t \x01(\x04\x12 \n\x18total_remote_commitments\x18\n \x01(\x04\x12\x18\n\x10total_htlcs_sent\x18\x0b \x01(\x04\x12\x14\n\x0c\x66unding_txid\x18\x0c \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\r \x01(\r\x12\x0e\n\x06leased\x18\x0e \x01(\x08\x12/\n\x15\x66unding_fee_paid_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12/\n\x15\x66unding_fee_rcvd_msat\x18\x10 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12-\n\x13\x66unding_pushed_msat\x18\x11 \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1f\n\ntotal_msat\x18\x12 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x66inal_to_us_msat\x18\x13 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emin_to_us_msat\x18\x14 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emax_to_us_msat\x18\x15 \x01(\x0b\x32\x0b.cln.Amount\x12!\n\x14last_commitment_txid\x18\x16 \x01(\x0cH\x07\x88\x01\x01\x12\x32\n\x18last_commitment_fee_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x66\n\x0b\x63lose_cause\x18\x18 \x01(\x0e\x32Q.cln.ListclosedchannelsClosedchannels.ListclosedchannelsClosedchannelsClose_cause\x12#\n\x16last_stable_connection\x18\x19 \x01(\x04H\t\x88\x01\x01\"v\n+ListclosedchannelsClosedchannelsClose_cause\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05LOCAL\x10\x01\x12\x08\n\x04USER\x10\x02\x12\n\n\x06REMOTE\x10\x03\x12\x0c\n\x08PROTOCOL\x10\x04\x12\x0b\n\x07ONCHAIN\x10\x05\x42\n\n\x08_peer_idB\x13\n\x11_short_channel_idB\x08\n\x06_aliasB\t\n\x07_closerB\x18\n\x16_funding_fee_paid_msatB\x18\n\x16_funding_fee_rcvd_msatB\x16\n\x14_funding_pushed_msatB\x17\n\x15_last_commitment_txidB\x1b\n\x19_last_commitment_fee_msatB\x19\n\x17_last_stable_connection\"e\n%ListclosedchannelsClosedchannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"L\n\x10\x44\x65\x63odepayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\x8d\x04\n\x11\x44\x65\x63odepayResponse\x12\x10\n\x08\x63urrency\x18\x01 \x01(\t\x12\x12\n\ncreated_at\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\x04\x12\r\n\x05payee\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x11\n\tsignature\x18\x07 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x1d\n\x15min_final_cltv_expiry\x18\n \x01(\r\x12\x1b\n\x0epayment_secret\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\r \x01(\x0cH\x05\x88\x01\x01\x12*\n\tfallbacks\x18\x0e \x03(\x0b\x32\x17.cln.DecodepayFallbacks\x12\"\n\x05\x65xtra\x18\x10 \x03(\x0b\x32\x13.cln.DecodepayExtraB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x13\n\x11_description_hashB\x11\n\x0f_payment_secretB\x0b\n\t_featuresB\x13\n\x11_payment_metadata\"\xd0\x01\n\x12\x44\x65\x63odepayFallbacks\x12\x41\n\titem_type\x18\x01 \x01(\x0e\x32..cln.DecodepayFallbacks.DecodepayFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x0b\n\x03hex\x18\x03 \x01(\x0c\"N\n\x16\x44\x65\x63odepayFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42\x07\n\x05_addr\"+\n\x0e\x44\x65\x63odepayExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\"\x1f\n\rDecodeRequest\x12\x0e\n\x06string\x18\x01 \x01(\t\"\xb7#\n\x0e\x44\x65\x63odeResponse\x12\x31\n\titem_type\x18\x01 \x01(\x0e\x32\x1e.cln.DecodeResponse.DecodeType\x12\r\n\x05valid\x18\x02 \x01(\x08\x12\x15\n\x08offer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0coffer_chains\x18\x04 \x03(\x0c\x12\x1b\n\x0eoffer_metadata\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x1b\n\x0eoffer_currency\x18\x06 \x01(\tH\x02\x88\x01\x01\x12+\n\x1ewarning_unknown_offer_currency\x18\x07 \x01(\tH\x03\x88\x01\x01\x12 \n\x13\x63urrency_minor_unit\x18\x08 \x01(\rH\x04\x88\x01\x01\x12\x19\n\x0coffer_amount\x18\t \x01(\x04H\x05\x88\x01\x01\x12+\n\x11offer_amount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1e\n\x11offer_description\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0coffer_issuer\x18\x0c \x01(\tH\x08\x88\x01\x01\x12\x1b\n\x0eoffer_features\x18\r \x01(\x0cH\t\x88\x01\x01\x12\"\n\x15offer_absolute_expiry\x18\x0e \x01(\x04H\n\x88\x01\x01\x12\x1f\n\x12offer_quantity_max\x18\x0f \x01(\x04H\x0b\x88\x01\x01\x12+\n\x0boffer_paths\x18\x10 \x03(\x0b\x32\x16.cln.DecodeOffer_paths\x12\x1a\n\roffer_node_id\x18\x11 \x01(\x0cH\x0c\x88\x01\x01\x12*\n\x1dwarning_missing_offer_node_id\x18\x14 \x01(\tH\r\x88\x01\x01\x12.\n!warning_invalid_offer_description\x18\x15 \x01(\tH\x0e\x88\x01\x01\x12.\n!warning_missing_offer_description\x18\x16 \x01(\tH\x0f\x88\x01\x01\x12+\n\x1ewarning_invalid_offer_currency\x18\x17 \x01(\tH\x10\x88\x01\x01\x12)\n\x1cwarning_invalid_offer_issuer\x18\x18 \x01(\tH\x11\x88\x01\x01\x12\x1c\n\x0finvreq_metadata\x18\x19 \x01(\x0cH\x12\x88\x01\x01\x12\x1c\n\x0finvreq_payer_id\x18\x1a \x01(\x0cH\x13\x88\x01\x01\x12\x19\n\x0cinvreq_chain\x18\x1b \x01(\x0cH\x14\x88\x01\x01\x12,\n\x12invreq_amount_msat\x18\x1c \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x1c\n\x0finvreq_features\x18\x1d \x01(\x0cH\x16\x88\x01\x01\x12\x1c\n\x0finvreq_quantity\x18\x1e \x01(\x04H\x17\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x1f \x01(\tH\x18\x88\x01\x01\x12&\n\x19invreq_recurrence_counter\x18 \x01(\rH\x19\x88\x01\x01\x12$\n\x17invreq_recurrence_start\x18! \x01(\rH\x1a\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_metadata\x18# \x01(\tH\x1b\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_payer_id\x18$ \x01(\tH\x1c\x88\x01\x01\x12.\n!warning_invalid_invreq_payer_note\x18% \x01(\tH\x1d\x88\x01\x01\x12\x36\n)warning_missing_invoice_request_signature\x18& \x01(\tH\x1e\x88\x01\x01\x12\x36\n)warning_invalid_invoice_request_signature\x18\' \x01(\tH\x1f\x88\x01\x01\x12\x1f\n\x12invoice_created_at\x18) \x01(\x04H \x88\x01\x01\x12$\n\x17invoice_relative_expiry\x18* \x01(\rH!\x88\x01\x01\x12!\n\x14invoice_payment_hash\x18+ \x01(\x0cH\"\x88\x01\x01\x12-\n\x13invoice_amount_msat\x18, \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\x37\n\x11invoice_fallbacks\x18- \x03(\x0b\x32\x1c.cln.DecodeInvoice_fallbacks\x12\x1d\n\x10invoice_features\x18. \x01(\x0cH$\x88\x01\x01\x12\x1c\n\x0finvoice_node_id\x18/ \x01(\x0cH%\x88\x01\x01\x12(\n\x1binvoice_recurrence_basetime\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x1dwarning_missing_invoice_paths\x18\x32 \x01(\tH\'\x88\x01\x01\x12/\n\"warning_missing_invoice_blindedpay\x18\x33 \x01(\tH(\x88\x01\x01\x12/\n\"warning_missing_invoice_created_at\x18\x34 \x01(\tH)\x88\x01\x01\x12\x31\n$warning_missing_invoice_payment_hash\x18\x35 \x01(\tH*\x88\x01\x01\x12+\n\x1ewarning_missing_invoice_amount\x18\x36 \x01(\tH+\x88\x01\x01\x12\x38\n+warning_missing_invoice_recurrence_basetime\x18\x37 \x01(\tH,\x88\x01\x01\x12,\n\x1fwarning_missing_invoice_node_id\x18\x38 \x01(\tH-\x88\x01\x01\x12.\n!warning_missing_invoice_signature\x18\x39 \x01(\tH.\x88\x01\x01\x12.\n!warning_invalid_invoice_signature\x18: \x01(\tH/\x88\x01\x01\x12\'\n\tfallbacks\x18; \x03(\x0b\x32\x14.cln.DecodeFallbacks\x12\x17\n\ncreated_at\x18< \x01(\x04H0\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18= \x01(\x04H1\x88\x01\x01\x12\x12\n\x05payee\x18> \x01(\x0cH2\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18? \x01(\x0cH3\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18@ \x01(\x0cH4\x88\x01\x01\x12\"\n\x15min_final_cltv_expiry\x18\x41 \x01(\rH5\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x42 \x01(\x0cH6\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x43 \x01(\x0cH7\x88\x01\x01\x12\x1f\n\x05\x65xtra\x18\x45 \x03(\x0b\x32\x10.cln.DecodeExtra\x12\x16\n\tunique_id\x18\x46 \x01(\tH8\x88\x01\x01\x12\x14\n\x07version\x18G \x01(\tH9\x88\x01\x01\x12\x13\n\x06string\x18H \x01(\tH:\x88\x01\x01\x12-\n\x0crestrictions\x18I \x03(\x0b\x32\x17.cln.DecodeRestrictions\x12&\n\x19warning_rune_invalid_utf8\x18J \x01(\tH;\x88\x01\x01\x12\x10\n\x03hex\x18K \x01(\x0cH<\x88\x01\x01\x12\x16\n\tdecrypted\x18L \x01(\x0cH=\x88\x01\x01\x12\x16\n\tsignature\x18M \x01(\tH>\x88\x01\x01\x12\x15\n\x08\x63urrency\x18N \x01(\tH?\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18O \x01(\x0b\x32\x0b.cln.AmountH@\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18P \x01(\tHA\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18Q \x01(\x0cHB\x88\x01\x01\"\x83\x01\n\nDecodeType\x12\x10\n\x0c\x42OLT12_OFFER\x10\x00\x12\x12\n\x0e\x42OLT12_INVOICE\x10\x01\x12\x1a\n\x16\x42OLT12_INVOICE_REQUEST\x10\x02\x12\x12\n\x0e\x42OLT11_INVOICE\x10\x03\x12\x08\n\x04RUNE\x10\x04\x12\x15\n\x11\x45MERGENCY_RECOVER\x10\x05\x42\x0b\n\t_offer_idB\x11\n\x0f_offer_metadataB\x11\n\x0f_offer_currencyB!\n\x1f_warning_unknown_offer_currencyB\x16\n\x14_currency_minor_unitB\x0f\n\r_offer_amountB\x14\n\x12_offer_amount_msatB\x14\n\x12_offer_descriptionB\x0f\n\r_offer_issuerB\x11\n\x0f_offer_featuresB\x18\n\x16_offer_absolute_expiryB\x15\n\x13_offer_quantity_maxB\x10\n\x0e_offer_node_idB \n\x1e_warning_missing_offer_node_idB$\n\"_warning_invalid_offer_descriptionB$\n\"_warning_missing_offer_descriptionB!\n\x1f_warning_invalid_offer_currencyB\x1f\n\x1d_warning_invalid_offer_issuerB\x12\n\x10_invreq_metadataB\x12\n\x10_invreq_payer_idB\x0f\n\r_invreq_chainB\x15\n\x13_invreq_amount_msatB\x12\n\x10_invreq_featuresB\x12\n\x10_invreq_quantityB\x14\n\x12_invreq_payer_noteB\x1c\n\x1a_invreq_recurrence_counterB\x1a\n\x18_invreq_recurrence_startB\"\n _warning_missing_invreq_metadataB\"\n _warning_missing_invreq_payer_idB$\n\"_warning_invalid_invreq_payer_noteB,\n*_warning_missing_invoice_request_signatureB,\n*_warning_invalid_invoice_request_signatureB\x15\n\x13_invoice_created_atB\x1a\n\x18_invoice_relative_expiryB\x17\n\x15_invoice_payment_hashB\x16\n\x14_invoice_amount_msatB\x13\n\x11_invoice_featuresB\x12\n\x10_invoice_node_idB\x1e\n\x1c_invoice_recurrence_basetimeB \n\x1e_warning_missing_invoice_pathsB%\n#_warning_missing_invoice_blindedpayB%\n#_warning_missing_invoice_created_atB\'\n%_warning_missing_invoice_payment_hashB!\n\x1f_warning_missing_invoice_amountB.\n,_warning_missing_invoice_recurrence_basetimeB\"\n _warning_missing_invoice_node_idB$\n\"_warning_missing_invoice_signatureB$\n\"_warning_invalid_invoice_signatureB\r\n\x0b_created_atB\t\n\x07_expiryB\x08\n\x06_payeeB\x0f\n\r_payment_hashB\x13\n\x11_description_hashB\x18\n\x16_min_final_cltv_expiryB\x11\n\x0f_payment_secretB\x13\n\x11_payment_metadataB\x0c\n\n_unique_idB\n\n\x08_versionB\t\n\x07_stringB\x1c\n\x1a_warning_rune_invalid_utf8B\x06\n\x04_hexB\x0c\n\n_decryptedB\x0c\n\n_signatureB\x0b\n\t_currencyB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x0b\n\t_features\"\xab\x01\n\x11\x44\x65\x63odeOffer_paths\x12\x1a\n\rfirst_node_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\x1b\n\x0e\x66irst_scid_dir\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x17\n\nfirst_scid\x18\x05 \x01(\tH\x02\x88\x01\x01\x42\x10\n\x0e_first_node_idB\x11\n\x0f_first_scid_dirB\r\n\x0b_first_scid\"\x8a\x01\n\x1f\x44\x65\x63odeOffer_recurrencePaywindow\x12\x16\n\x0eseconds_before\x18\x01 \x01(\r\x12\x15\n\rseconds_after\x18\x02 \x01(\r\x12 \n\x13proportional_amount\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\x16\n\x14_proportional_amount\"T\n\x17\x44\x65\x63odeInvoice_pathsPath\x12\x17\n\x0f\x62linded_node_id\x18\x01 \x01(\x0c\x12 \n\x18\x65ncrypted_recipient_data\x18\x02 \x01(\x0c\"Y\n\x17\x44\x65\x63odeInvoice_fallbacks\x12\x0f\n\x07version\x18\x01 \x01(\r\x12\x0b\n\x03hex\x18\x02 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_address\"\xaa\x02\n\x0f\x44\x65\x63odeFallbacks\x12\x36\n)warning_invoice_fallbacks_version_invalid\x18\x01 \x01(\tH\x00\x88\x01\x01\x12;\n\titem_type\x18\x02 \x01(\x0e\x32(.cln.DecodeFallbacks.DecodeFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0b\n\x03hex\x18\x04 \x01(\x0c\"K\n\x13\x44\x65\x63odeFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42,\n*_warning_invoice_fallbacks_version_invalidB\x07\n\x05_addr\"(\n\x0b\x44\x65\x63odeExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\";\n\x12\x44\x65\x63odeRestrictions\x12\x14\n\x0c\x61lternatives\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\"\xc2\x01\n\rDelpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12/\n\x06status\x18\x02 \x01(\x0e\x32\x1f.cln.DelpayRequest.DelpayStatus\x12\x13\n\x06partid\x18\x03 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x01\x88\x01\x01\"(\n\x0c\x44\x65lpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x42\t\n\x07_partidB\n\n\x08_groupid\"7\n\x0e\x44\x65lpayResponse\x12%\n\x08payments\x18\x01 \x03(\x0b\x32\x13.cln.DelpayPayments\"\xcb\x05\n\x0e\x44\x65lpayPayments\x12\x1a\n\rcreated_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x38\n\x06status\x18\x04 \x01(\x0e\x32(.cln.DelpayPayments.DelpayPaymentsStatus\x12%\n\x10\x61mount_sent_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x07 \x01(\x0cH\x02\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x12\n\ncreated_at\x18\t \x01(\x04\x12\x1a\n\rupdated_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x12\n\x05label\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x10 \x01(\tH\n\x88\x01\x01\x12\x17\n\nerroronion\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"=\n\x14\x44\x65lpayPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x10\n\x0e_created_indexB\t\n\x07_partidB\x0e\n\x0c_destinationB\x0e\n\x0c_amount_msatB\x10\n\x0e_updated_indexB\x0f\n\r_completed_atB\n\n\x08_groupidB\x13\n\x11_payment_preimageB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\r\n\x0b_erroronion\"\xb3\x01\n\x11\x44\x65lforwardRequest\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x12\n\nin_htlc_id\x18\x02 \x01(\x04\x12\x37\n\x06status\x18\x03 \x01(\x0e\x32\'.cln.DelforwardRequest.DelforwardStatus\"=\n\x10\x44\x65lforwardStatus\x12\x0b\n\x07SETTLED\x10\x00\x12\x10\n\x0cLOCAL_FAILED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"\x14\n\x12\x44\x65lforwardResponse\"\'\n\x13\x44isableofferRequest\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\"\x88\x01\n\x14\x44isableofferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"=\n\x11\x44isconnectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_force\"\x14\n\x12\x44isconnectResponse\"k\n\x0f\x46\x65\x65ratesRequest\x12\x31\n\x05style\x18\x01 \x01(\x0e\x32\".cln.FeeratesRequest.FeeratesStyle\"%\n\rFeeratesStyle\x12\t\n\x05PERKB\x10\x00\x12\t\n\x05PERKW\x10\x01\"\x9c\x02\n\x10\x46\x65\x65ratesResponse\x12%\n\x18warning_missing_feerates\x18\x01 \x01(\tH\x00\x88\x01\x01\x12&\n\x05perkb\x18\x02 \x01(\x0b\x32\x12.cln.FeeratesPerkbH\x01\x88\x01\x01\x12&\n\x05perkw\x18\x03 \x01(\x0b\x32\x12.cln.FeeratesPerkwH\x02\x88\x01\x01\x12\x46\n\x15onchain_fee_estimates\x18\x04 \x01(\x0b\x32\".cln.FeeratesOnchain_fee_estimatesH\x03\x88\x01\x01\x42\x1b\n\x19_warning_missing_feeratesB\x08\n\x06_perkbB\x08\n\x06_perkwB\x18\n\x16_onchain_fee_estimates\"\xd3\x03\n\rFeeratesPerkb\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkbEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkbEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\xd3\x03\n\rFeeratesPerkw\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkwEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkwEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\x9b\x02\n\x1d\x46\x65\x65ratesOnchain_fee_estimates\x12 \n\x18opening_channel_satoshis\x18\x01 \x01(\x04\x12\x1d\n\x15mutual_close_satoshis\x18\x02 \x01(\x04\x12!\n\x19unilateral_close_satoshis\x18\x03 \x01(\x04\x12\x1d\n\x15htlc_timeout_satoshis\x18\x04 \x01(\x04\x12\x1d\n\x15htlc_success_satoshis\x18\x05 \x01(\x04\x12\x30\n#unilateral_close_nonanchor_satoshis\x18\x06 \x01(\x04H\x00\x88\x01\x01\x42&\n$_unilateral_close_nonanchor_satoshis\"\xe9\x02\n\x13\x46\x65tchinvoiceRequest\x12\r\n\x05offer\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x15\n\x08quantity\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x1f\n\x12recurrence_counter\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x1d\n\x10recurrence_start\x18\x05 \x01(\x01H\x03\x88\x01\x01\x12\x1d\n\x10recurrence_label\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x14\n\x07timeout\x18\x07 \x01(\x01H\x05\x88\x01\x01\x12\x17\n\npayer_note\x18\x08 \x01(\tH\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\x0b\n\t_quantityB\x15\n\x13_recurrence_counterB\x13\n\x11_recurrence_startB\x13\n\x11_recurrence_labelB\n\n\x08_timeoutB\r\n\x0b_payer_note\"\x9a\x01\n\x14\x46\x65tchinvoiceResponse\x12\x0f\n\x07invoice\x18\x01 \x01(\t\x12)\n\x07\x63hanges\x18\x02 \x01(\x0b\x32\x18.cln.FetchinvoiceChanges\x12\x36\n\x0bnext_period\x18\x03 \x01(\x0b\x32\x1c.cln.FetchinvoiceNext_periodH\x00\x88\x01\x01\x42\x0e\n\x0c_next_period\"\x82\x02\n\x13\x46\x65tchinvoiceChanges\x12!\n\x14\x64\x65scription_appended\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0evendor_removed\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06vendor\x18\x04 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x42\x17\n\x15_description_appendedB\x0e\n\x0c_descriptionB\x11\n\x0f_vendor_removedB\t\n\x07_vendorB\x0e\n\x0c_amount_msat\"~\n\x17\x46\x65tchinvoiceNext_period\x12\x0f\n\x07\x63ounter\x18\x01 \x01(\x04\x12\x11\n\tstarttime\x18\x02 \x01(\x04\x12\x0f\n\x07\x65ndtime\x18\x03 \x01(\x04\x12\x17\n\x0fpaywindow_start\x18\x04 \x01(\x04\x12\x15\n\rpaywindow_end\x18\x05 \x01(\x04\"\'\n\x19\x46undchannel_cancelRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\"/\n\x1a\x46undchannel_cancelResponse\x12\x11\n\tcancelled\x18\x01 \x01(\t\"7\n\x1b\x46undchannel_completeRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"O\n\x1c\x46undchannel_completeResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"\xfb\x03\n\x12\x46undchannelRequest\x12 \n\x06\x61mount\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12#\n\tpush_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\tH\x05\x88\x01\x01\x12\n\n\x02id\x18\t \x01(\x0c\x12\x14\n\x07minconf\x18\n \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x05utxos\x18\x0b \x03(\x0b\x32\r.cln.Outpoint\x12\x15\n\x08mindepth\x18\x0c \x01(\rH\x07\x88\x01\x01\x12!\n\x07reserve\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\x0e \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\n\n\x08_minconfB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xe5\x01\n\x13\x46undchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0e\n\x06outnum\x18\x03 \x01(\r\x12\x12\n\nchannel_id\x18\x04 \x01(\x0c\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x37\n\x0c\x63hannel_type\x18\x07 \x01(\x0b\x32\x1c.cln.FundchannelChannel_typeH\x02\x88\x01\x01\x42\x0b\n\t_close_toB\x0b\n\t_mindepthB\x0f\n\r_channel_type\"L\n\x17\x46undchannelChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xd7\x02\n\x18\x46undchannel_startRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x1b\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\x07\x66\x65\x65rate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12#\n\tpush_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x15\n\x08mindepth\x18\x07 \x01(\rH\x04\x88\x01\x01\x12!\n\x07reserve\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0c\n\n_push_msatB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xf9\x01\n\x19\x46undchannel_startResponse\x12\x17\n\x0f\x66unding_address\x18\x01 \x01(\t\x12\x14\n\x0cscriptpubkey\x18\x02 \x01(\x0c\x12=\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32\".cln.Fundchannel_startChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x04 \x01(\x0cH\x01\x88\x01\x01\x12\x15\n\rwarning_usage\x18\x05 \x01(\t\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x0b\n\t_mindepth\"R\n\x1d\x46undchannel_startChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x9d\x01\n\rGetlogRequest\x12\x32\n\x05level\x18\x01 \x01(\x0e\x32\x1e.cln.GetlogRequest.GetlogLevelH\x00\x88\x01\x01\"N\n\x0bGetlogLevel\x12\n\n\x06\x42ROKEN\x10\x00\x12\x0b\n\x07UNUSUAL\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x06\n\x02IO\x10\x04\x12\t\n\x05TRACE\x10\x05\x42\x08\n\x06_level\"h\n\x0eGetlogResponse\x12\x12\n\ncreated_at\x18\x01 \x01(\t\x12\x12\n\nbytes_used\x18\x02 \x01(\r\x12\x11\n\tbytes_max\x18\x03 \x01(\r\x12\x1b\n\x03log\x18\x04 \x03(\x0b\x32\x0e.cln.GetlogLog\"\xe8\x02\n\tGetlogLog\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.GetlogLog.GetlogLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"l\n\rGetlogLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"\xec\x01\n\x0fGetrouteRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\nriskfactor\x18\x03 \x01(\x04\x12\x11\n\x04\x63ltv\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x13\n\x06\x66romid\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x66uzzpercent\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\x07 \x03(\t\x12\x14\n\x07maxhops\x18\x08 \x01(\rH\x03\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountB\x07\n\x05_cltvB\t\n\x07_fromidB\x0e\n\x0c_fuzzpercentB\n\n\x08_maxhops\"5\n\x10GetrouteResponse\x12!\n\x05route\x18\x01 \x03(\x0b\x32\x12.cln.GetrouteRoute\"\xc5\x01\n\rGetrouteRoute\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x05 \x01(\r\x12\x34\n\x05style\x18\x06 \x01(\x0e\x32%.cln.GetrouteRoute.GetrouteRouteStyle\"\x1d\n\x12GetrouteRouteStyle\x12\x07\n\x03TLV\x10\x00\"\xb7\x03\n\x13ListforwardsRequest\x12@\n\x06status\x18\x01 \x01(\x0e\x32+.cln.ListforwardsRequest.ListforwardsStatusH\x00\x88\x01\x01\x12\x17\n\nin_channel\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x03 \x01(\tH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListforwardsRequest.ListforwardsIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\"L\n\x12ListforwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"-\n\x11ListforwardsIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_statusB\r\n\x0b_in_channelB\x0e\n\x0c_out_channelB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListforwardsResponse\x12+\n\x08\x66orwards\x18\x01 \x03(\x0b\x32\x19.cln.ListforwardsForwards\"\xb4\x06\n\x14ListforwardsForwards\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x1c\n\x07in_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x44\n\x06status\x18\x03 \x01(\x0e\x32\x34.cln.ListforwardsForwards.ListforwardsForwardsStatus\x12\x15\n\rreceived_time\x18\x04 \x01(\x01\x12\x18\n\x0bout_channel\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\"\n\x08\x66\x65\x65_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\"\n\x08out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12G\n\x05style\x18\t \x01(\x0e\x32\x33.cln.ListforwardsForwards.ListforwardsForwardsStyleH\x03\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x18\n\x0bout_htlc_id\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rresolved_time\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x15\n\x08\x66\x61ilcode\x18\x0f \x01(\rH\t\x88\x01\x01\x12\x17\n\nfailreason\x18\x10 \x01(\tH\n\x88\x01\x01\"T\n\x1aListforwardsForwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"0\n\x19ListforwardsForwardsStyle\x12\n\n\x06LEGACY\x10\x00\x12\x07\n\x03TLV\x10\x01\x42\x0e\n\x0c_out_channelB\x0b\n\t_fee_msatB\x0b\n\t_out_msatB\x08\n\x06_styleB\r\n\x0b_in_htlc_idB\x0e\n\x0c_out_htlc_idB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_resolved_timeB\x0b\n\t_failcodeB\r\n\x0b_failreason\"a\n\x11ListoffersRequest\x12\x15\n\x08offer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0b\x61\x63tive_only\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\x0b\n\t_offer_idB\x0e\n\x0c_active_only\";\n\x12ListoffersResponse\x12%\n\x06offers\x18\x01 \x03(\x0b\x32\x15.cln.ListoffersOffers\"\x84\x01\n\x10ListoffersOffers\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"\xdb\x01\n\x0fListpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x38\n\x06status\x18\x03 \x01(\x0e\x32#.cln.ListpaysRequest.ListpaysStatusH\x02\x88\x01\x01\"7\n\x0eListpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_status\"3\n\x10ListpaysResponse\x12\x1f\n\x04pays\x18\x01 \x03(\x0b\x32\x11.cln.ListpaysPays\"\xff\x04\n\x0cListpaysPays\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x34\n\x06status\x18\x02 \x01(\x0e\x32$.cln.ListpaysPays.ListpaysPaysStatus\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x04\x12\x12\n\x05label\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x06 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12*\n\x10\x61mount_sent_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\n \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0c \x01(\x04H\x08\x88\x01\x01\x12\x15\n\x08preimage\x18\r \x01(\x0cH\t\x88\x01\x01\x12\x1c\n\x0fnumber_of_parts\x18\x0e \x01(\x04H\n\x88\x01\x01\";\n\x12ListpaysPaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x13\n\x11_amount_sent_msatB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\x0f\n\r_completed_atB\x0b\n\t_preimageB\x12\n\x10_number_of_parts\"*\n\x10ListhtlcsRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListhtlcsResponse\x12\"\n\x05htlcs\x18\x01 \x03(\x0b\x32\x13.cln.ListhtlcsHtlcs\"\x89\x02\n\x0eListhtlcsHtlcs\x12\x18\n\x10short_channel_id\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12>\n\tdirection\x18\x05 \x01(\x0e\x32+.cln.ListhtlcsHtlcs.ListhtlcsHtlcsDirection\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x1d\n\x05state\x18\x07 \x01(\x0e\x32\x0e.cln.HtlcState\"*\n\x17ListhtlcsHtlcsDirection\x12\x07\n\x03OUT\x10\x00\x12\x06\n\x02IN\x10\x01\"\xb2\x02\n\x17MultifundchannelRequest\x12\x37\n\x0c\x64\x65stinations\x18\x01 \x03(\x0b\x32!.cln.MultifundchannelDestinations\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\x12H\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x18\n\x0bminchannels\x18\x05 \x01(\x12H\x02\x88\x01\x01\x12-\n\x12\x63ommitment_feerate\x18\x06 \x01(\x0b\x32\x0c.cln.FeerateH\x03\x88\x01\x01\x42\n\n\x08_feerateB\n\n\x08_minconfB\x0e\n\x0c_minchannelsB\x15\n\x13_commitment_feerate\"\x98\x01\n\x18MultifundchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x35\n\x0b\x63hannel_ids\x18\x03 \x03(\x0b\x32 .cln.MultifundchannelChannel_ids\x12+\n\x06\x66\x61iled\x18\x04 \x03(\x0b\x32\x1b.cln.MultifundchannelFailed\"\xff\x02\n\x1cMultifundchannelDestinations\x12\n\n\x02id\x18\x01 \x01(\t\x12 \n\x06\x61mount\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12#\n\tpush_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12%\n\x0brequest_amt\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08mindepth\x18\x08 \x01(\rH\x05\x88\x01\x01\x12!\n\x07reserve\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x42\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xcb\x01\n\x1bMultifundchannelChannel_ids\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12\x12\n\nchannel_id\x18\x03 \x01(\x0c\x12G\n\x0c\x63hannel_type\x18\x04 \x01(\x0b\x32,.cln.MultifundchannelChannel_idsChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_to\"\\\n\'MultifundchannelChannel_idsChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x93\x02\n\x16MultifundchannelFailed\x12\n\n\x02id\x18\x01 \x01(\x0c\x12H\n\x06method\x18\x02 \x01(\x0e\x32\x38.cln.MultifundchannelFailed.MultifundchannelFailedMethod\x12/\n\x05\x65rror\x18\x03 \x01(\x0b\x32 .cln.MultifundchannelFailedError\"r\n\x1cMultifundchannelFailedMethod\x12\x0b\n\x07\x43ONNECT\x10\x00\x12\x14\n\x10OPENCHANNEL_INIT\x10\x01\x12\x15\n\x11\x46UNDCHANNEL_START\x10\x02\x12\x18\n\x14\x46UNDCHANNEL_COMPLETE\x10\x03\"<\n\x1bMultifundchannelFailedError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x12\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xc1\x03\n\x0cOfferRequest\x12\x0e\n\x06\x61mount\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x06issuer\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cquantity_max\x18\x05 \x01(\x04H\x02\x88\x01\x01\x12\x1c\n\x0f\x61\x62solute_expiry\x18\x06 \x01(\x04H\x03\x88\x01\x01\x12\x17\n\nrecurrence\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x1c\n\x0frecurrence_base\x18\x08 \x01(\tH\x05\x88\x01\x01\x12!\n\x14recurrence_paywindow\x18\t \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10recurrence_limit\x18\n \x01(\rH\x07\x88\x01\x01\x12\x17\n\nsingle_use\x18\x0b \x01(\x08H\x08\x88\x01\x01\x42\t\n\x07_issuerB\x08\n\x06_labelB\x0f\n\r_quantity_maxB\x12\n\x10_absolute_expiryB\r\n\x0b_recurrenceB\x12\n\x10_recurrence_baseB\x17\n\x15_recurrence_paywindowB\x13\n\x11_recurrence_limitB\r\n\x0b_single_use\"\x92\x01\n\rOfferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x0f\n\x07\x63reated\x18\x06 \x01(\x08\x12\x12\n\x05label\x18\x07 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\".\n\x18Openchannel_abortRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"Y\n\x19Openchannel_abortResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x18\n\x10\x63hannel_canceled\x18\x02 \x01(\x08\x12\x0e\n\x06reason\x18\x03 \x01(\t\"\x9f\x01\n\x17Openchannel_bumpRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12*\n\x0f\x66unding_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x1b\n\x06\x61mount\x18\x04 \x01(\x0b\x32\x0b.cln.AmountB\x12\n\x10_funding_feerate\"\x86\x02\n\x18Openchannel_bumpResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12<\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32!.cln.Openchannel_bumpChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_bumpChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xa0\x03\n\x17Openchannel_initRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12-\n\x12\x63ommitment_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12*\n\x0f\x66unding_feerate\x18\x04 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\r\x12\x1b\n\x06\x61mount\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x15\n\x13_commitment_feerateB\x12\n\x10_funding_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_lease\"\x86\x02\n\x18Openchannel_initResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12<\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32!.cln.Openchannel_initChannel_typeH\x00\x88\x01\x01\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_initChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"D\n\x19Openchannel_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0bsigned_psbt\x18\x02 \x01(\t\"J\n\x1aOpenchannel_signedResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"=\n\x19Openchannel_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"\xae\x02\n\x1aOpenchannel_updateResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12>\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32#.cln.Openchannel_updateChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_outnum\x18\x05 \x01(\r\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12&\n\x19requires_confirmed_inputs\x18\x07 \x01(\x08H\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x1c\n\x1a_requires_confirmed_inputs\"S\n\x1eOpenchannel_updateChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"Y\n\x0bPingRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x03len\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x16\n\tpongbytes\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x06\n\x04_lenB\x0c\n\n_pongbytes\"\x1e\n\x0cPingResponse\x12\x0e\n\x06totlen\x18\x01 \x01(\r\"\x91\x01\n\rPluginRequest\x12)\n\nsubcommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12\x13\n\x06plugin\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tdirectory\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x07options\x18\x04 \x03(\tB\t\n\x07_pluginB\x0c\n\n_directory\"}\n\x0ePluginResponse\x12&\n\x07\x63ommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12#\n\x07plugins\x18\x02 \x03(\x0b\x32\x12.cln.PluginPlugins\x12\x13\n\x06result\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\t\n\x07_result\">\n\rPluginPlugins\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x0f\n\x07\x64ynamic\x18\x03 \x01(\x08\"<\n\x14RenepaystatusRequest\x12\x16\n\tinvstring\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_invstring\"G\n\x15RenepaystatusResponse\x12.\n\tpaystatus\x18\x01 \x03(\x0b\x32\x1b.cln.RenepaystatusPaystatus\"\xe2\x03\n\x16RenepaystatusPaystatus\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x1d\n\x10payment_preimage\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\x0f\n\x07groupid\x18\x05 \x01(\r\x12\x12\n\x05parts\x18\x06 \x01(\rH\x01\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12H\n\x06status\x18\t \x01(\x0e\x32\x38.cln.RenepaystatusPaystatus.RenepaystatusPaystatusStatus\x12\x18\n\x0b\x64\x65stination\x18\n \x01(\x0cH\x03\x88\x01\x01\x12\r\n\x05notes\x18\x0b \x03(\t\"E\n\x1cRenepaystatusPaystatusStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x13\n\x11_payment_preimageB\x08\n\x06_partsB\x13\n\x11_amount_sent_msatB\x0e\n\x0c_destination\"\xc9\x02\n\x0eRenepayRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12 \n\x06maxfee\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x03\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x12\n\x05label\x18\x07 \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0e\x64\x65v_use_shadow\x18\x08 \x01(\x08H\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_maxfeeB\x0b\n\t_maxdelayB\x0c\n\n_retry_forB\x0e\n\x0c_descriptionB\x08\n\x06_labelB\x11\n\x0f_dev_use_shadow\"\xc3\x02\n\x0fRenepayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\ncreated_at\x18\x03 \x01(\x01\x12\r\n\x05parts\x18\x04 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12\x32\n\x06status\x18\x07 \x01(\x0e\x32\".cln.RenepayResponse.RenepayStatus\x12\x18\n\x0b\x64\x65stination\x18\x08 \x01(\x0cH\x00\x88\x01\x01\"6\n\rRenepayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destination\"l\n\x14ReserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\texclusive\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x0c\n\n_exclusiveB\n\n\x08_reserve\"M\n\x15ReserveinputsResponse\x12\x34\n\x0creservations\x18\x01 \x03(\x0b\x32\x1e.cln.ReserveinputsReservations\"z\n\x19ReserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"4\n\x14SendcustommsgRequest\x12\x0f\n\x07node_id\x18\x01 \x01(\x0c\x12\x0b\n\x03msg\x18\x02 \x01(\x0c\"\'\n\x15SendcustommsgResponse\x12\x0e\n\x06status\x18\x01 \x01(\t\"\xb0\x01\n\x12SendinvoiceRequest\x12\x0e\n\x06invreq\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08quantity\x18\x05 \x01(\x04H\x02\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\n\n\x08_timeoutB\x0b\n\t_quantity\"\xcf\x04\n\x13SendinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.SendinvoiceResponse.SendinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x08 \x01(\x04H\x02\x88\x01\x01\x12\x1a\n\rupdated_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12\x16\n\tpay_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\"6\n\x11SendinvoiceStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt12B\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"f\n\x17SendonionmessageRequest\x12\x10\n\x08\x66irst_id\x18\x01 \x01(\x0c\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\'\n\x04hops\x18\x03 \x03(\x0b\x32\x19.cln.SendonionmessageHops\"\x1a\n\x18SendonionmessageResponse\"1\n\x14SendonionmessageHops\x12\x0c\n\x04node\x18\x01 \x01(\x0c\x12\x0b\n\x03tlv\x18\x02 \x01(\r\"\xaa\x02\n\x11SetchannelRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x07\x66\x65\x65\x62\x61se\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x66\x65\x65ppm\x18\x03 \x01(\rH\x01\x88\x01\x01\x12!\n\x07htlcmin\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12!\n\x07htlcmax\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x19\n\x0c\x65nforcedelay\x18\x06 \x01(\rH\x04\x88\x01\x01\x12\x1c\n\x0fignorefeelimits\x18\x07 \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_feebaseB\t\n\x07_feeppmB\n\n\x08_htlcminB\n\n\x08_htlcmaxB\x0f\n\r_enforcedelayB\x12\n\x10_ignorefeelimits\"?\n\x12SetchannelResponse\x12)\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x17.cln.SetchannelChannels\"\xca\x03\n\x12SetchannelChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\x12*\n\x15minimum_htlc_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x17warning_htlcmin_too_low\x18\x07 \x01(\tH\x01\x88\x01\x01\x12*\n\x15maximum_htlc_out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x18warning_htlcmax_too_high\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\n \x01(\x08H\x03\x88\x01\x01\x42\x13\n\x11_short_channel_idB\x1a\n\x18_warning_htlcmin_too_lowB\x1b\n\x19_warning_htlcmax_too_highB\x14\n\x12_ignore_fee_limits\"<\n\x10SetconfigRequest\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x10\n\x03val\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_val\"9\n\x11SetconfigResponse\x12$\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x14.cln.SetconfigConfig\"\xa5\x02\n\x0fSetconfigConfig\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x06plugin\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07\x64ynamic\x18\x04 \x01(\x08\x12\x10\n\x03set\x18\x05 \x01(\x08H\x01\x88\x01\x01\x12\x16\n\tvalue_str\x18\x06 \x01(\tH\x02\x88\x01\x01\x12$\n\nvalue_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x16\n\tvalue_int\x18\x08 \x01(\x12H\x04\x88\x01\x01\x12\x17\n\nvalue_bool\x18\t \x01(\x08H\x05\x88\x01\x01\x42\t\n\x07_pluginB\x06\n\x04_setB\x0c\n\n_value_strB\r\n\x0b_value_msatB\x0c\n\n_value_intB\r\n\x0b_value_bool\"6\n\x15SetpsbtversionRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\r\"&\n\x16SetpsbtversionResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"\'\n\x12SigninvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\"%\n\x13SigninvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"%\n\x12SignmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\"F\n\x13SignmessageResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\r\n\x05recid\x18\x02 \x01(\x0c\x12\r\n\x05zbase\x18\x03 \x01(\t\"\xc9\x01\n\x12Splice_initRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x17\n\x0frelative_amount\x18\x02 \x01(\x12\x12\x18\n\x0binitialpsbt\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0e\x66\x65\x65rate_per_kw\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1a\n\rforce_feerate\x18\x05 \x01(\x08H\x02\x88\x01\x01\x42\x0e\n\x0c_initialpsbtB\x11\n\x0f_feerate_per_kwB\x10\n\x0e_force_feerate\"#\n\x13Splice_initResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"`\n\x14Splice_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12\x17\n\nsign_first\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\r\n\x0b_sign_first\"1\n\x15Splice_signedResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"8\n\x14Splice_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"B\n\x15Splice_updateResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"H\n\x16UnreserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\"Q\n\x17UnreserveinputsResponse\x12\x36\n\x0creservations\x18\x01 \x03(\x0b\x32 .cln.UnreserveinputsReservations\"\x97\x01\n\x1bUnreserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\x05 \x01(\rH\x00\x88\x01\x01\x42\x14\n\x12_reserved_to_block\"n\n\x14UpgradewalletRequest\x12\"\n\x07\x66\x65\x65rate\x18\x01 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x17\n\nreservedok\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\n\n\x08_feerateB\r\n\x0b_reservedok\"\x95\x01\n\x15UpgradewalletResponse\x12\x1a\n\rupgraded_outs\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x11\n\x04psbt\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x02tx\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x11\n\x04txid\x18\x04 \x01(\x0cH\x03\x88\x01\x01\x42\x10\n\x0e_upgraded_outsB\x07\n\x05_psbtB\x05\n\x03_txB\x07\n\x05_txid\"O\n\x16WaitblockheightRequest\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\x12\x14\n\x07timeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_timeout\".\n\x17WaitblockheightResponse\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\"\xf9\x01\n\x0bWaitRequest\x12\x31\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitSubsystem\x12\x31\n\tindexname\x18\x02 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitIndexname\x12\x11\n\tnextvalue\x18\x03 \x01(\x04\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\"6\n\rWaitIndexname\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\"\x97\x02\n\x0cWaitResponse\x12\x32\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1f.cln.WaitResponse.WaitSubsystem\x12\x14\n\x07\x63reated\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07updated\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x14\n\x07\x64\x65leted\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12&\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32\x10.cln.WaitDetailsH\x03\x88\x01\x01\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\x42\n\n\x08_createdB\n\n\x08_updatedB\n\n\x08_deletedB\n\n\x08_details\"\xfc\x04\n\x0bWaitDetails\x12\x37\n\x06status\x18\x01 \x01(\x0e\x32\".cln.WaitDetails.WaitDetailsStatusH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x07 \x01(\x04H\x06\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x08 \x01(\x0cH\x07\x88\x01\x01\x12\x17\n\nin_channel\x18\t \x01(\tH\x08\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\t\x88\x01\x01\x12!\n\x07in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x0c \x01(\tH\x0b\x88\x01\x01\"\x89\x01\n\x11WaitDetailsStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x43OMPLETE\x10\x05\x12\x0b\n\x07OFFERED\x10\x06\x12\x0b\n\x07SETTLED\x10\x07\x12\x10\n\x0cLOCAL_FAILED\x10\x08\x42\t\n\x07_statusB\x08\n\x06_labelB\x0e\n\x0c_descriptionB\t\n\x07_bolt11B\t\n\x07_bolt12B\t\n\x07_partidB\n\n\x08_groupidB\x0f\n\r_payment_hashB\r\n\x0b_in_channelB\r\n\x0b_in_htlc_idB\n\n\x08_in_msatB\x0e\n\x0c_out_channel\"\r\n\x0bStopRequest\"q\n\x0cStopResponse\x12\x31\n\x06result\x18\x01 \x01(\x0e\x32\x1c.cln.StopResponse.StopResultH\x00\x88\x01\x01\"#\n\nStopResult\x12\x15\n\x11SHUTDOWN_COMPLETE\x10\x00\x42\t\n\x07_result\"g\n\x18PreapprovekeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\"\x1b\n\x19PreapprovekeysendResponse\"*\n\x18PreapproveinvoiceRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"\x1b\n\x19PreapproveinvoiceResponse\"\x15\n\x13StaticbackupRequest\"#\n\x14StaticbackupResponse\x12\x0b\n\x03scb\x18\x01 \x03(\x0c\"d\n\x16\x42kprchannelsapyRequest\x12\x17\n\nstart_time\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x17\x42kprchannelsapyResponse\x12\x36\n\x0c\x63hannels_apy\x18\x01 \x03(\x0b\x32 .cln.BkprchannelsapyChannels_apy\"\xfa\x06\n\x1b\x42kprchannelsapyChannels_apy\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12$\n\x0frouted_out_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0erouted_in_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12(\n\x13lease_fee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x15lease_fee_earned_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x0fpushed_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0epushed_in_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x16our_start_balance_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12/\n\x1a\x63hannel_start_balance_msat\x18\t \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\rfees_out_msat\x18\n \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x0c\x66\x65\x65s_in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x17\n\x0futilization_out\x18\x0c \x01(\t\x12$\n\x17utilization_out_initial\x18\r \x01(\tH\x01\x88\x01\x01\x12\x16\n\x0eutilization_in\x18\x0e \x01(\t\x12#\n\x16utilization_in_initial\x18\x0f \x01(\tH\x02\x88\x01\x01\x12\x0f\n\x07\x61py_out\x18\x10 \x01(\t\x12\x1c\n\x0f\x61py_out_initial\x18\x11 \x01(\tH\x03\x88\x01\x01\x12\x0e\n\x06\x61py_in\x18\x12 \x01(\t\x12\x1b\n\x0e\x61py_in_initial\x18\x13 \x01(\tH\x04\x88\x01\x01\x12\x11\n\tapy_total\x18\x14 \x01(\t\x12\x1e\n\x11\x61py_total_initial\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x16\n\tapy_lease\x18\x16 \x01(\tH\x06\x88\x01\x01\x42\x0f\n\r_fees_in_msatB\x1a\n\x18_utilization_out_initialB\x19\n\x17_utilization_in_initialB\x12\n\x10_apy_out_initialB\x11\n\x0f_apy_in_initialB\x14\n\x12_apy_total_initialB\x0c\n\n_apy_lease\"\xd2\x01\n\x18\x42kprdumpincomecsvRequest\x12\x12\n\ncsv_format\x18\x01 \x01(\t\x12\x15\n\x08\x63sv_file\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10\x63onsolidate_fees\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x17\n\nstart_time\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x05 \x01(\x04H\x03\x88\x01\x01\x42\x0b\n\t_csv_fileB\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"\xd6\x01\n\x19\x42kprdumpincomecsvResponse\x12\x10\n\x08\x63sv_file\x18\x01 \x01(\t\x12N\n\ncsv_format\x18\x02 \x01(\x0e\x32:.cln.BkprdumpincomecsvResponse.BkprdumpincomecsvCsv_format\"W\n\x1b\x42kprdumpincomecsvCsv_format\x12\x0f\n\x0b\x43OINTRACKER\x10\x00\x12\n\n\x06KOINLY\x10\x01\x12\x0b\n\x07HARMONY\x10\x02\x12\x0e\n\nQUICKBOOKS\x10\x03\"%\n\x12\x42kprinspectRequest\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\"7\n\x13\x42kprinspectResponse\x12 \n\x03txs\x18\x01 \x03(\x0b\x32\x13.cln.BkprinspectTxs\"\x9a\x01\n\x0e\x42kprinspectTxs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x18\n\x0b\x62lockheight\x18\x02 \x01(\rH\x00\x88\x01\x01\x12#\n\x0e\x66\x65\x65s_paid_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x07outputs\x18\x04 \x03(\x0b\x32\x1a.cln.BkprinspectTxsOutputsB\x0e\n\x0c_blockheight\"\xbc\x03\n\x15\x42kprinspectTxsOutputs\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12&\n\x11output_value_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x04 \x01(\t\x12%\n\x0b\x63redit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12$\n\ndebit_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12 \n\x13originating_account\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x17\n\noutput_tag\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x16\n\tspend_tag\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rspending_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x42\x0e\n\x0c_credit_msatB\r\n\x0b_debit_msatB\x16\n\x14_originating_accountB\r\n\x0b_output_tagB\x0c\n\n_spend_tagB\x10\n\x0e_spending_txidB\r\n\x0b_payment_id\"@\n\x1c\x42kprlistaccounteventsRequest\x12\x14\n\x07\x61\x63\x63ount\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_account\"Q\n\x1d\x42kprlistaccounteventsResponse\x12\x30\n\x06\x65vents\x18\x01 \x03(\x0b\x32 .cln.BkprlistaccounteventsEvents\"\xa1\x05\n\x1b\x42kprlistaccounteventsEvents\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12S\n\titem_type\x18\x02 \x01(\x0e\x32@.cln.BkprlistaccounteventsEvents.BkprlistaccounteventsEventsType\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x06 \x01(\t\x12\x11\n\ttimestamp\x18\x07 \x01(\r\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x62lockheight\x18\t \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06origin\x18\n \x01(\tH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x11\n\x04txid\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x05\x88\x01\x01\x12#\n\tfees_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x19\n\x0cis_rebalance\x18\x0f \x01(\x08H\x07\x88\x01\x01\x12\x14\n\x07part_id\x18\x10 \x01(\rH\x08\x88\x01\x01\"J\n\x1f\x42kprlistaccounteventsEventsType\x12\x0f\n\x0bONCHAIN_FEE\x10\x00\x12\t\n\x05\x43HAIN\x10\x01\x12\x0b\n\x07\x43HANNEL\x10\x02\x42\x0b\n\t_outpointB\x0e\n\x0c_blockheightB\t\n\x07_originB\r\n\x0b_payment_idB\x07\n\x05_txidB\x0e\n\x0c_descriptionB\x0c\n\n_fees_msatB\x0f\n\r_is_rebalanceB\n\n\x08_part_id\"\x19\n\x17\x42kprlistbalancesRequest\"K\n\x18\x42kprlistbalancesResponse\x12/\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x1d.cln.BkprlistbalancesAccounts\"\xc6\x02\n\x18\x42kprlistbalancesAccounts\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x37\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32%.cln.BkprlistbalancesAccountsBalances\x12\x14\n\x07peer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x16\n\twe_opened\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x0e\x61\x63\x63ount_closed\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x1d\n\x10\x61\x63\x63ount_resolved\x18\x06 \x01(\x08H\x03\x88\x01\x01\x12\x1e\n\x11resolved_at_block\x18\x07 \x01(\rH\x04\x88\x01\x01\x42\n\n\x08_peer_idB\x0c\n\n_we_openedB\x11\n\x0f_account_closedB\x13\n\x11_account_resolvedB\x14\n\x12_resolved_at_block\"X\n BkprlistbalancesAccountsBalances\x12!\n\x0c\x62\x61lance_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x11\n\tcoin_type\x18\x02 \x01(\t\"\x97\x01\n\x15\x42kprlistincomeRequest\x12\x1d\n\x10\x63onsolidate_fees\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x17\n\nstart_time\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x03 \x01(\rH\x02\x88\x01\x01\x42\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x16\x42kprlistincomeResponse\x12\x37\n\rincome_events\x18\x01 \x03(\x0b\x32 .cln.BkprlistincomeIncome_events\"\xb5\x02\n\x1b\x42kprlistincomeIncome_events\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0b\n\x03tag\x18\x02 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x05 \x01(\t\x12\x11\n\ttimestamp\x18\x06 \x01(\r\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04txid\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\n \x01(\x0cH\x03\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x0b\n\t_outpointB\x07\n\x05_txidB\r\n\x0b_payment_id\"\x19\n\x17StreamBlockAddedRequest\"6\n\x16\x42lockAddedNotification\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\x0e\n\x06height\x18\x02 \x01(\r\" \n\x1eStreamChannelOpenFailedRequest\"3\n\x1d\x43hannelOpenFailedNotification\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"\x1c\n\x1aStreamChannelOpenedRequest\"\x83\x01\n\x19\x43hannelOpenedNotification\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12!\n\x0c\x66unding_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x03 \x01(\x0c\x12\x15\n\rchannel_ready\x18\x04 \x01(\x08\x42\x05\n\x03_id\"\x16\n\x14StreamConnectRequest\"\x95\x01\n\x13\x43onnectNotification\x12\n\n\x02id\x18\x01 \x01(\x0c\x12<\n\tdirection\x18\x02 \x01(\x0e\x32).cln.ConnectNotification.ConnectDirection\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x01(\t\"#\n\x10\x43onnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\x18\n\x16StreamCustomMsgRequest\"9\n\x15\x43ustomMsgNotification\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x32\x9b\x37\n\x04Node\x12\x36\n\x07Getinfo\x12\x13.cln.GetinfoRequest\x1a\x14.cln.GetinfoResponse\"\x00\x12<\n\tListPeers\x12\x15.cln.ListpeersRequest\x1a\x16.cln.ListpeersResponse\"\x00\x12<\n\tListFunds\x12\x15.cln.ListfundsRequest\x1a\x16.cln.ListfundsResponse\"\x00\x12\x36\n\x07SendPay\x12\x13.cln.SendpayRequest\x1a\x14.cln.SendpayResponse\"\x00\x12\x45\n\x0cListChannels\x12\x18.cln.ListchannelsRequest\x1a\x19.cln.ListchannelsResponse\"\x00\x12<\n\tAddGossip\x12\x15.cln.AddgossipRequest\x1a\x16.cln.AddgossipResponse\"\x00\x12Q\n\x10\x41utoCleanInvoice\x12\x1c.cln.AutocleaninvoiceRequest\x1a\x1d.cln.AutocleaninvoiceResponse\"\x00\x12H\n\rAutoCleanOnce\x12\x19.cln.AutocleanonceRequest\x1a\x1a.cln.AutocleanonceResponse\"\x00\x12N\n\x0f\x41utoCleanStatus\x12\x1b.cln.AutocleanstatusRequest\x1a\x1c.cln.AutocleanstatusResponse\"\x00\x12\x45\n\x0c\x43heckMessage\x12\x18.cln.CheckmessageRequest\x1a\x19.cln.CheckmessageResponse\"\x00\x12\x30\n\x05\x43lose\x12\x11.cln.CloseRequest\x1a\x12.cln.CloseResponse\"\x00\x12:\n\x0b\x43onnectPeer\x12\x13.cln.ConnectRequest\x1a\x14.cln.ConnectResponse\"\x00\x12H\n\rCreateInvoice\x12\x19.cln.CreateinvoiceRequest\x1a\x1a.cln.CreateinvoiceResponse\"\x00\x12<\n\tDatastore\x12\x15.cln.DatastoreRequest\x1a\x16.cln.DatastoreResponse\"\x00\x12K\n\x0e\x44\x61tastoreUsage\x12\x1a.cln.DatastoreusageRequest\x1a\x1b.cln.DatastoreusageResponse\"\x00\x12\x42\n\x0b\x43reateOnion\x12\x17.cln.CreateonionRequest\x1a\x18.cln.CreateonionResponse\"\x00\x12\x45\n\x0c\x44\x65lDatastore\x12\x18.cln.DeldatastoreRequest\x1a\x19.cln.DeldatastoreResponse\"\x00\x12?\n\nDelInvoice\x12\x16.cln.DelinvoiceRequest\x1a\x17.cln.DelinvoiceResponse\"\x00\x12\x36\n\x07Invoice\x12\x13.cln.InvoiceRequest\x1a\x14.cln.InvoiceResponse\"\x00\x12H\n\rListDatastore\x12\x19.cln.ListdatastoreRequest\x1a\x1a.cln.ListdatastoreResponse\"\x00\x12\x45\n\x0cListInvoices\x12\x18.cln.ListinvoicesRequest\x1a\x19.cln.ListinvoicesResponse\"\x00\x12<\n\tSendOnion\x12\x15.cln.SendonionRequest\x1a\x16.cln.SendonionResponse\"\x00\x12\x45\n\x0cListSendPays\x12\x18.cln.ListsendpaysRequest\x1a\x19.cln.ListsendpaysResponse\"\x00\x12Q\n\x10ListTransactions\x12\x1c.cln.ListtransactionsRequest\x1a\x1d.cln.ListtransactionsResponse\"\x00\x12*\n\x03Pay\x12\x0f.cln.PayRequest\x1a\x10.cln.PayResponse\"\x00\x12<\n\tListNodes\x12\x15.cln.ListnodesRequest\x1a\x16.cln.ListnodesResponse\"\x00\x12K\n\x0eWaitAnyInvoice\x12\x1a.cln.WaitanyinvoiceRequest\x1a\x1b.cln.WaitanyinvoiceResponse\"\x00\x12\x42\n\x0bWaitInvoice\x12\x17.cln.WaitinvoiceRequest\x1a\x18.cln.WaitinvoiceResponse\"\x00\x12\x42\n\x0bWaitSendPay\x12\x17.cln.WaitsendpayRequest\x1a\x18.cln.WaitsendpayResponse\"\x00\x12\x36\n\x07NewAddr\x12\x13.cln.NewaddrRequest\x1a\x14.cln.NewaddrResponse\"\x00\x12\x39\n\x08Withdraw\x12\x14.cln.WithdrawRequest\x1a\x15.cln.WithdrawResponse\"\x00\x12\x36\n\x07KeySend\x12\x13.cln.KeysendRequest\x1a\x14.cln.KeysendResponse\"\x00\x12\x39\n\x08\x46undPsbt\x12\x14.cln.FundpsbtRequest\x1a\x15.cln.FundpsbtResponse\"\x00\x12\x39\n\x08SendPsbt\x12\x14.cln.SendpsbtRequest\x1a\x15.cln.SendpsbtResponse\"\x00\x12\x39\n\x08SignPsbt\x12\x14.cln.SignpsbtRequest\x1a\x15.cln.SignpsbtResponse\"\x00\x12\x39\n\x08UtxoPsbt\x12\x14.cln.UtxopsbtRequest\x1a\x15.cln.UtxopsbtResponse\"\x00\x12<\n\tTxDiscard\x12\x15.cln.TxdiscardRequest\x1a\x16.cln.TxdiscardResponse\"\x00\x12<\n\tTxPrepare\x12\x15.cln.TxprepareRequest\x1a\x16.cln.TxprepareResponse\"\x00\x12\x33\n\x06TxSend\x12\x12.cln.TxsendRequest\x1a\x13.cln.TxsendResponse\"\x00\x12Q\n\x10ListPeerChannels\x12\x1c.cln.ListpeerchannelsRequest\x1a\x1d.cln.ListpeerchannelsResponse\"\x00\x12W\n\x12ListClosedChannels\x12\x1e.cln.ListclosedchannelsRequest\x1a\x1f.cln.ListclosedchannelsResponse\"\x00\x12<\n\tDecodePay\x12\x15.cln.DecodepayRequest\x1a\x16.cln.DecodepayResponse\"\x00\x12\x33\n\x06\x44\x65\x63ode\x12\x12.cln.DecodeRequest\x1a\x13.cln.DecodeResponse\"\x00\x12\x33\n\x06\x44\x65lPay\x12\x12.cln.DelpayRequest\x1a\x13.cln.DelpayResponse\"\x00\x12?\n\nDelForward\x12\x16.cln.DelforwardRequest\x1a\x17.cln.DelforwardResponse\"\x00\x12\x45\n\x0c\x44isableOffer\x12\x18.cln.DisableofferRequest\x1a\x19.cln.DisableofferResponse\"\x00\x12?\n\nDisconnect\x12\x16.cln.DisconnectRequest\x1a\x17.cln.DisconnectResponse\"\x00\x12\x39\n\x08\x46\x65\x65rates\x12\x14.cln.FeeratesRequest\x1a\x15.cln.FeeratesResponse\"\x00\x12\x45\n\x0c\x46\x65tchInvoice\x12\x18.cln.FetchinvoiceRequest\x1a\x19.cln.FetchinvoiceResponse\"\x00\x12W\n\x12\x46undChannel_Cancel\x12\x1e.cln.Fundchannel_cancelRequest\x1a\x1f.cln.Fundchannel_cancelResponse\"\x00\x12]\n\x14\x46undChannel_Complete\x12 .cln.Fundchannel_completeRequest\x1a!.cln.Fundchannel_completeResponse\"\x00\x12\x42\n\x0b\x46undChannel\x12\x17.cln.FundchannelRequest\x1a\x18.cln.FundchannelResponse\"\x00\x12T\n\x11\x46undChannel_Start\x12\x1d.cln.Fundchannel_startRequest\x1a\x1e.cln.Fundchannel_startResponse\"\x00\x12\x33\n\x06GetLog\x12\x12.cln.GetlogRequest\x1a\x13.cln.GetlogResponse\"\x00\x12\x39\n\x08GetRoute\x12\x14.cln.GetrouteRequest\x1a\x15.cln.GetrouteResponse\"\x00\x12\x45\n\x0cListForwards\x12\x18.cln.ListforwardsRequest\x1a\x19.cln.ListforwardsResponse\"\x00\x12?\n\nListOffers\x12\x16.cln.ListoffersRequest\x1a\x17.cln.ListoffersResponse\"\x00\x12\x39\n\x08ListPays\x12\x14.cln.ListpaysRequest\x1a\x15.cln.ListpaysResponse\"\x00\x12<\n\tListHtlcs\x12\x15.cln.ListhtlcsRequest\x1a\x16.cln.ListhtlcsResponse\"\x00\x12Q\n\x10MultiFundChannel\x12\x1c.cln.MultifundchannelRequest\x1a\x1d.cln.MultifundchannelResponse\"\x00\x12\x30\n\x05Offer\x12\x11.cln.OfferRequest\x1a\x12.cln.OfferResponse\"\x00\x12T\n\x11OpenChannel_Abort\x12\x1d.cln.Openchannel_abortRequest\x1a\x1e.cln.Openchannel_abortResponse\"\x00\x12Q\n\x10OpenChannel_Bump\x12\x1c.cln.Openchannel_bumpRequest\x1a\x1d.cln.Openchannel_bumpResponse\"\x00\x12Q\n\x10OpenChannel_Init\x12\x1c.cln.Openchannel_initRequest\x1a\x1d.cln.Openchannel_initResponse\"\x00\x12W\n\x12OpenChannel_Signed\x12\x1e.cln.Openchannel_signedRequest\x1a\x1f.cln.Openchannel_signedResponse\"\x00\x12W\n\x12OpenChannel_Update\x12\x1e.cln.Openchannel_updateRequest\x1a\x1f.cln.Openchannel_updateResponse\"\x00\x12-\n\x04Ping\x12\x10.cln.PingRequest\x1a\x11.cln.PingResponse\"\x00\x12\x33\n\x06Plugin\x12\x12.cln.PluginRequest\x1a\x13.cln.PluginResponse\"\x00\x12H\n\rRenePayStatus\x12\x19.cln.RenepaystatusRequest\x1a\x1a.cln.RenepaystatusResponse\"\x00\x12\x36\n\x07RenePay\x12\x13.cln.RenepayRequest\x1a\x14.cln.RenepayResponse\"\x00\x12H\n\rReserveInputs\x12\x19.cln.ReserveinputsRequest\x1a\x1a.cln.ReserveinputsResponse\"\x00\x12H\n\rSendCustomMsg\x12\x19.cln.SendcustommsgRequest\x1a\x1a.cln.SendcustommsgResponse\"\x00\x12\x42\n\x0bSendInvoice\x12\x17.cln.SendinvoiceRequest\x1a\x18.cln.SendinvoiceResponse\"\x00\x12Q\n\x10SendOnionMessage\x12\x1c.cln.SendonionmessageRequest\x1a\x1d.cln.SendonionmessageResponse\"\x00\x12?\n\nSetChannel\x12\x16.cln.SetchannelRequest\x1a\x17.cln.SetchannelResponse\"\x00\x12<\n\tSetConfig\x12\x15.cln.SetconfigRequest\x1a\x16.cln.SetconfigResponse\"\x00\x12K\n\x0eSetPsbtVersion\x12\x1a.cln.SetpsbtversionRequest\x1a\x1b.cln.SetpsbtversionResponse\"\x00\x12\x42\n\x0bSignInvoice\x12\x17.cln.SigninvoiceRequest\x1a\x18.cln.SigninvoiceResponse\"\x00\x12\x42\n\x0bSignMessage\x12\x17.cln.SignmessageRequest\x1a\x18.cln.SignmessageResponse\"\x00\x12\x42\n\x0bSplice_Init\x12\x17.cln.Splice_initRequest\x1a\x18.cln.Splice_initResponse\"\x00\x12H\n\rSplice_Signed\x12\x19.cln.Splice_signedRequest\x1a\x1a.cln.Splice_signedResponse\"\x00\x12H\n\rSplice_Update\x12\x19.cln.Splice_updateRequest\x1a\x1a.cln.Splice_updateResponse\"\x00\x12N\n\x0fUnreserveInputs\x12\x1b.cln.UnreserveinputsRequest\x1a\x1c.cln.UnreserveinputsResponse\"\x00\x12H\n\rUpgradeWallet\x12\x19.cln.UpgradewalletRequest\x1a\x1a.cln.UpgradewalletResponse\"\x00\x12N\n\x0fWaitBlockHeight\x12\x1b.cln.WaitblockheightRequest\x1a\x1c.cln.WaitblockheightResponse\"\x00\x12-\n\x04Wait\x12\x10.cln.WaitRequest\x1a\x11.cln.WaitResponse\"\x00\x12-\n\x04Stop\x12\x10.cln.StopRequest\x1a\x11.cln.StopResponse\"\x00\x12T\n\x11PreApproveKeysend\x12\x1d.cln.PreapprovekeysendRequest\x1a\x1e.cln.PreapprovekeysendResponse\"\x00\x12T\n\x11PreApproveInvoice\x12\x1d.cln.PreapproveinvoiceRequest\x1a\x1e.cln.PreapproveinvoiceResponse\"\x00\x12\x45\n\x0cStaticBackup\x12\x18.cln.StaticbackupRequest\x1a\x19.cln.StaticbackupResponse\"\x00\x12N\n\x0f\x42kprChannelsApy\x12\x1b.cln.BkprchannelsapyRequest\x1a\x1c.cln.BkprchannelsapyResponse\"\x00\x12T\n\x11\x42kprDumpIncomeCsv\x12\x1d.cln.BkprdumpincomecsvRequest\x1a\x1e.cln.BkprdumpincomecsvResponse\"\x00\x12\x42\n\x0b\x42kprInspect\x12\x17.cln.BkprinspectRequest\x1a\x18.cln.BkprinspectResponse\"\x00\x12`\n\x15\x42kprListAccountEvents\x12!.cln.BkprlistaccounteventsRequest\x1a\".cln.BkprlistaccounteventsResponse\"\x00\x12Q\n\x10\x42kprListBalances\x12\x1c.cln.BkprlistbalancesRequest\x1a\x1d.cln.BkprlistbalancesResponse\"\x00\x12K\n\x0e\x42kprListIncome\x12\x1a.cln.BkprlistincomeRequest\x1a\x1b.cln.BkprlistincomeResponse\"\x00\x12T\n\x13SubscribeBlockAdded\x12\x1c.cln.StreamBlockAddedRequest\x1a\x1b.cln.BlockAddedNotification\"\x00\x30\x01\x12i\n\x1aSubscribeChannelOpenFailed\x12#.cln.StreamChannelOpenFailedRequest\x1a\".cln.ChannelOpenFailedNotification\"\x00\x30\x01\x12]\n\x16SubscribeChannelOpened\x12\x1f.cln.StreamChannelOpenedRequest\x1a\x1e.cln.ChannelOpenedNotification\"\x00\x30\x01\x12K\n\x10SubscribeConnect\x12\x19.cln.StreamConnectRequest\x1a\x18.cln.ConnectNotification\"\x00\x30\x01\x12Q\n\x12SubscribeCustomMsg\x12\x1b.cln.StreamCustomMsgRequest\x1a\x1a.cln.CustomMsgNotification\"\x00\x30\x01\x62\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nnode.proto\x12\x03\x63ln\x1a\x10primitives.proto\"\x10\n\x0eGetinfoRequest\"\xc1\x04\n\x0fGetinfoResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x61lias\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\r\n\x05\x63olor\x18\x03 \x01(\x0c\x12\x11\n\tnum_peers\x18\x04 \x01(\r\x12\x1c\n\x14num_pending_channels\x18\x05 \x01(\r\x12\x1b\n\x13num_active_channels\x18\x06 \x01(\r\x12\x1d\n\x15num_inactive_channels\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\t\x12\x15\n\rlightning_dir\x18\t \x01(\t\x12\x33\n\x0cour_features\x18\n \x01(\x0b\x32\x18.cln.GetinfoOur_featuresH\x01\x88\x01\x01\x12\x13\n\x0b\x62lockheight\x18\x0b \x01(\r\x12\x0f\n\x07network\x18\x0c \x01(\t\x12(\n\x13\x66\x65\x65s_collected_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x07\x61\x64\x64ress\x18\x0e \x03(\x0b\x32\x13.cln.GetinfoAddress\x12$\n\x07\x62inding\x18\x0f \x03(\x0b\x32\x13.cln.GetinfoBinding\x12\"\n\x15warning_bitcoind_sync\x18\x10 \x01(\tH\x02\x88\x01\x01\x12$\n\x17warning_lightningd_sync\x18\x11 \x01(\tH\x03\x88\x01\x01\x42\x08\n\x06_aliasB\x0f\n\r_our_featuresB\x18\n\x16_warning_bitcoind_syncB\x1a\n\x18_warning_lightningd_sync\"S\n\x13GetinfoOur_features\x12\x0c\n\x04init\x18\x01 \x01(\x0c\x12\x0c\n\x04node\x18\x02 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x03 \x01(\x0c\x12\x0f\n\x07invoice\x18\x04 \x01(\x0c\"\xc4\x01\n\x0eGetinfoAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoAddress.GetinfoAddressType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"G\n\x12GetinfoAddressType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"\xac\x02\n\x0eGetinfoBinding\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.GetinfoBinding.GetinfoBindingType\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06socket\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x14\n\x07subtype\x18\x05 \x01(\tH\x03\x88\x01\x01\"_\n\x12GetinfoBindingType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x12\r\n\tWEBSOCKET\x10\x05\x42\n\n\x08_addressB\x07\n\x05_portB\t\n\x07_socketB\n\n\x08_subtype\"\xb5\x01\n\x10ListpeersRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x38\n\x05level\x18\x02 \x01(\x0e\x32$.cln.ListpeersRequest.ListpeersLevelH\x01\x88\x01\x01\"E\n\x0eListpeersLevel\x12\x06\n\x02IO\x10\x00\x12\t\n\x05\x44\x45\x42UG\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\x0b\n\x07UNUSUAL\x10\x03\x12\t\n\x05TRACE\x10\x04\x42\x05\n\x03_idB\x08\n\x06_level\"7\n\x11ListpeersResponse\x12\"\n\x05peers\x18\x01 \x03(\x0b\x32\x13.cln.ListpeersPeers\"\xdf\x01\n\x0eListpeersPeers\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x11\n\tconnected\x18\x02 \x01(\x08\x12#\n\x03log\x18\x03 \x03(\x0b\x32\x16.cln.ListpeersPeersLog\x12\x0f\n\x07netaddr\x18\x05 \x03(\t\x12\x15\n\x08\x66\x65\x61tures\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0bremote_addr\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cnum_channels\x18\x08 \x01(\rH\x02\x88\x01\x01\x42\x0b\n\t_featuresB\x0e\n\x0c_remote_addrB\x0f\n\r_num_channels\"\x88\x03\n\x11ListpeersPeersLog\x12?\n\titem_type\x18\x01 \x01(\x0e\x32,.cln.ListpeersPeersLog.ListpeersPeersLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"t\n\x15ListpeersPeersLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"0\n\x10ListfundsRequest\x12\x12\n\x05spent\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_spent\"e\n\x11ListfundsResponse\x12&\n\x07outputs\x18\x01 \x03(\x0b\x32\x15.cln.ListfundsOutputs\x12(\n\x08\x63hannels\x18\x02 \x03(\x0b\x32\x16.cln.ListfundsChannels\"\xb9\x03\n\x10ListfundsOutputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06output\x18\x02 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0cscriptpubkey\x18\x04 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0credeemscript\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12<\n\x06status\x18\x07 \x01(\x0e\x32,.cln.ListfundsOutputs.ListfundsOutputsStatus\x12\x18\n\x0b\x62lockheight\x18\x08 \x01(\rH\x02\x88\x01\x01\x12\x10\n\x08reserved\x18\t \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\n \x01(\rH\x03\x88\x01\x01\"Q\n\x16ListfundsOutputsStatus\x12\x0f\n\x0bUNCONFIRMED\x10\x00\x12\r\n\tCONFIRMED\x10\x01\x12\t\n\x05SPENT\x10\x02\x12\x0c\n\x08IMMATURE\x10\x03\x42\n\n\x08_addressB\x0f\n\r_redeemscriptB\x0e\n\x0c_blockheightB\x14\n\x12_reserved_to_block\"\xab\x02\n\x11ListfundsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12$\n\x0four_amount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x04 \x01(\x0c\x12\x16\n\x0e\x66unding_output\x18\x05 \x01(\r\x12\x11\n\tconnected\x18\x06 \x01(\x08\x12 \n\x05state\x18\x07 \x01(\x0e\x32\x11.cln.ChannelState\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x01\x88\x01\x01\x42\x13\n\x11_short_channel_idB\r\n\x0b_channel_id\"\xbb\x03\n\x0eSendpayRequest\x12 \n\x05route\x18\x01 \x03(\x0b\x32\x11.cln.SendpayRoute\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x13\n\x06partid\x18\x07 \x01(\x04H\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\t \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x0c \x01(\x0cH\x07\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x08\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_bolt11B\x11\n\x0f_payment_secretB\t\n\x07_partidB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x13\n\x11_payment_metadataB\x0e\n\x0c_description\"\xad\x05\n\x0fSendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x32\n\x06status\x18\x04 \x01(\x0e\x32\".cln.SendpayResponse.SendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x14\n\x07message\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\"*\n\rSendpayStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\\\n\x0cSendpayRoute\x12\n\n\x02id\x18\x02 \x01(\x0c\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\x12\x0f\n\x07\x63hannel\x18\x04 \x01(\t\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x01\n\x13ListchannelsRequest\x12\x1d\n\x10short_channel_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06source\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x42\x13\n\x11_short_channel_idB\t\n\x07_sourceB\x0e\n\x0c_destination\"C\n\x14ListchannelsResponse\x12+\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x19.cln.ListchannelsChannels\"\xb3\x03\n\x14ListchannelsChannels\x12\x0e\n\x06source\x18\x01 \x01(\x0c\x12\x13\n\x0b\x64\x65stination\x18\x02 \x01(\x0c\x12\x18\n\x10short_channel_id\x18\x03 \x01(\t\x12\x0e\n\x06public\x18\x04 \x01(\x08\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x15\n\rmessage_flags\x18\x06 \x01(\r\x12\x15\n\rchannel_flags\x18\x07 \x01(\r\x12\x0e\n\x06\x61\x63tive\x18\x08 \x01(\x08\x12\x13\n\x0blast_update\x18\t \x01(\r\x12\x1d\n\x15\x62\x61se_fee_millisatoshi\x18\n \x01(\r\x12\x19\n\x11\x66\x65\x65_per_millionth\x18\x0b \x01(\r\x12\r\n\x05\x64\x65lay\x18\x0c \x01(\r\x12&\n\x11htlc_minimum_msat\x18\r \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x11htlc_maximum_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x10\n\x08\x66\x65\x61tures\x18\x0f \x01(\x0c\x12\x11\n\tdirection\x18\x10 \x01(\rB\x14\n\x12_htlc_maximum_msat\"#\n\x10\x41\x64\x64gossipRequest\x12\x0f\n\x07message\x18\x01 \x01(\x0c\"\x13\n\x11\x41\x64\x64gossipResponse\"o\n\x17\x41utocleaninvoiceRequest\x12\x17\n\nexpired_by\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"\x81\x01\n\x18\x41utocleaninvoiceResponse\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x17\n\nexpired_by\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x1a\n\rcycle_seconds\x18\x03 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_expired_byB\x10\n\x0e_cycle_seconds\"O\n\x14\x41utocleanonceRequest\x12*\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystem\x12\x0b\n\x03\x61ge\x18\x02 \x01(\x04\"G\n\x15\x41utocleanonceResponse\x12.\n\tautoclean\x18\x01 \x01(\x0b\x32\x1b.cln.AutocleanonceAutoclean\"\xb1\x04\n\x16\x41utocleanonceAutoclean\x12L\n\x11succeededforwards\x18\x01 \x01(\x0b\x32,.cln.AutocleanonceAutocleanSucceededforwardsH\x00\x88\x01\x01\x12\x46\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32).cln.AutocleanonceAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x44\n\rsucceededpays\x18\x03 \x01(\x0b\x32(.cln.AutocleanonceAutocleanSucceededpaysH\x02\x88\x01\x01\x12>\n\nfailedpays\x18\x04 \x01(\x0b\x32%.cln.AutocleanonceAutocleanFailedpaysH\x03\x88\x01\x01\x12\x42\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32\'.cln.AutocleanonceAutocleanPaidinvoicesH\x04\x88\x01\x01\x12H\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32*.cln.AutocleanonceAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"M\n\'AutocleanonceAutocleanSucceededforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"J\n$AutocleanonceAutocleanFailedforwards\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"I\n#AutocleanonceAutocleanSucceededpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"F\n AutocleanonceAutocleanFailedpays\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"H\n\"AutocleanonceAutocleanPaidinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"K\n%AutocleanonceAutocleanExpiredinvoices\x12\x0f\n\x07\x63leaned\x18\x01 \x01(\x04\x12\x11\n\tuncleaned\x18\x02 \x01(\x04\"W\n\x16\x41utocleanstatusRequest\x12/\n\tsubsystem\x18\x01 \x01(\x0e\x32\x17.cln.AutocleanSubsystemH\x00\x88\x01\x01\x42\x0c\n\n_subsystem\"K\n\x17\x41utocleanstatusResponse\x12\x30\n\tautoclean\x18\x01 \x01(\x0b\x32\x1d.cln.AutocleanstatusAutoclean\"\xbf\x04\n\x18\x41utocleanstatusAutoclean\x12N\n\x11succeededforwards\x18\x01 \x01(\x0b\x32..cln.AutocleanstatusAutocleanSucceededforwardsH\x00\x88\x01\x01\x12H\n\x0e\x66\x61iledforwards\x18\x02 \x01(\x0b\x32+.cln.AutocleanstatusAutocleanFailedforwardsH\x01\x88\x01\x01\x12\x46\n\rsucceededpays\x18\x03 \x01(\x0b\x32*.cln.AutocleanstatusAutocleanSucceededpaysH\x02\x88\x01\x01\x12@\n\nfailedpays\x18\x04 \x01(\x0b\x32\'.cln.AutocleanstatusAutocleanFailedpaysH\x03\x88\x01\x01\x12\x44\n\x0cpaidinvoices\x18\x05 \x01(\x0b\x32).cln.AutocleanstatusAutocleanPaidinvoicesH\x04\x88\x01\x01\x12J\n\x0f\x65xpiredinvoices\x18\x06 \x01(\x0b\x32,.cln.AutocleanstatusAutocleanExpiredinvoicesH\x05\x88\x01\x01\x42\x14\n\x12_succeededforwardsB\x11\n\x0f_failedforwardsB\x10\n\x0e_succeededpaysB\r\n\x0b_failedpaysB\x0f\n\r_paidinvoicesB\x12\n\x10_expiredinvoices\"g\n)AutocleanstatusAutocleanSucceededforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"d\n&AutocleanstatusAutocleanFailedforwards\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"c\n%AutocleanstatusAutocleanSucceededpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"`\n\"AutocleanstatusAutocleanFailedpays\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"b\n$AutocleanstatusAutocleanPaidinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"e\n\'AutocleanstatusAutocleanExpiredinvoices\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0f\n\x07\x63leaned\x18\x02 \x01(\x04\x12\x10\n\x03\x61ge\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x06\n\x04_age\"U\n\x13\x43heckmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\r\n\x05zbase\x18\x02 \x01(\t\x12\x13\n\x06pubkey\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x42\t\n\x07_pubkey\"8\n\x14\x43heckmessageResponse\x12\x10\n\x08verified\x18\x01 \x01(\x08\x12\x0e\n\x06pubkey\x18\x02 \x01(\x0c\"\xcb\x02\n\x0c\x43loseRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x11unilateraltimeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\tH\x01\x88\x01\x01\x12!\n\x14\x66\x65\x65_negotiation_step\x18\x04 \x01(\tH\x02\x88\x01\x01\x12)\n\rwrong_funding\x18\x05 \x01(\x0b\x32\r.cln.OutpointH\x03\x88\x01\x01\x12\x1f\n\x12\x66orce_lease_closed\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1e\n\x08\x66\x65\x65range\x18\x07 \x03(\x0b\x32\x0c.cln.FeerateB\x14\n\x12_unilateraltimeoutB\x0e\n\x0c_destinationB\x17\n\x15_fee_negotiation_stepB\x10\n\x0e_wrong_fundingB\x15\n\x13_force_lease_closed\"\xab\x01\n\rCloseResponse\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.CloseResponse.CloseType\x12\x0f\n\x02tx\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04txid\x18\x03 \x01(\x0cH\x01\x88\x01\x01\"5\n\tCloseType\x12\n\n\x06MUTUAL\x10\x00\x12\x0e\n\nUNILATERAL\x10\x01\x12\x0c\n\x08UNOPENED\x10\x02\x42\x05\n\x03_txB\x07\n\x05_txid\"T\n\x0e\x43onnectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04host\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04port\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x07\n\x05_hostB\x07\n\x05_port\"\xb4\x01\n\x0f\x43onnectResponse\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0c\x12\x38\n\tdirection\x18\x03 \x01(\x0e\x32%.cln.ConnectResponse.ConnectDirection\x12$\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x13.cln.ConnectAddress\"#\n\x10\x43onnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\xfb\x01\n\x0e\x43onnectAddress\x12\x39\n\titem_type\x18\x01 \x01(\x0e\x32&.cln.ConnectAddress.ConnectAddressType\x12\x13\n\x06socket\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04port\x18\x04 \x01(\rH\x02\x88\x01\x01\"P\n\x12\x43onnectAddressType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\t\n\x07_socketB\n\n\x08_addressB\x07\n\x05_port\"J\n\x14\x43reateinvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x10\n\x08preimage\x18\x03 \x01(\x0c\"\xfe\x05\n\x15\x43reateinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12>\n\x06status\x18\x06 \x01(\x0e\x32..cln.CreateinvoiceResponse.CreateinvoiceStatus\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12;\n\rpaid_outpoint\x18\x11 \x01(\x0b\x32\x1f.cln.CreateinvoicePaid_outpointH\n\x88\x01\x01\"8\n\x13\x43reateinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_paid_outpoint\":\n\x1a\x43reateinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x02\n\x10\x44\x61tastoreRequest\x12\x10\n\x03hex\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x36\n\x04mode\x18\x03 \x01(\x0e\x32#.cln.DatastoreRequest.DatastoreModeH\x01\x88\x01\x01\x12\x17\n\ngeneration\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\t\x12\x13\n\x06string\x18\x06 \x01(\tH\x03\x88\x01\x01\"p\n\rDatastoreMode\x12\x0f\n\x0bMUST_CREATE\x10\x00\x12\x10\n\x0cMUST_REPLACE\x10\x01\x12\x15\n\x11\x43REATE_OR_REPLACE\x10\x02\x12\x0f\n\x0bMUST_APPEND\x10\x03\x12\x14\n\x10\x43REATE_OR_APPEND\x10\x04\x42\x06\n\x04_hexB\x07\n\x05_modeB\r\n\x0b_generationB\t\n\x07_string\"\x82\x01\n\x11\x44\x61tastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"$\n\x15\x44\x61tastoreusageRequest\x12\x0b\n\x03key\x18\x01 \x03(\t\"S\n\x16\x44\x61tastoreusageResponse\x12\x39\n\x0e\x64\x61tastoreusage\x18\x01 \x01(\x0b\x32!.cln.DatastoreusageDatastoreusage\"@\n\x1c\x44\x61tastoreusageDatastoreusage\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x13\n\x0btotal_bytes\x18\x02 \x01(\x04\"\x9d\x01\n\x12\x43reateonionRequest\x12\"\n\x04hops\x18\x01 \x03(\x0b\x32\x14.cln.CreateonionHops\x12\x11\n\tassocdata\x18\x02 \x01(\x0c\x12\x18\n\x0bsession_key\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x17\n\nonion_size\x18\x04 \x01(\rH\x01\x88\x01\x01\x42\x0e\n\x0c_session_keyB\r\n\x0b_onion_size\"<\n\x13\x43reateonionResponse\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12\x16\n\x0eshared_secrets\x18\x02 \x03(\x0c\"2\n\x0f\x43reateonionHops\x12\x0e\n\x06pubkey\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\"J\n\x13\x44\x65ldatastoreRequest\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x03 \x03(\tB\r\n\x0b_generation\"\x85\x01\n\x14\x44\x65ldatastoreResponse\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x03(\tB\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xb6\x01\n\x11\x44\x65linvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\x12\x37\n\x06status\x18\x02 \x01(\x0e\x32\'.cln.DelinvoiceRequest.DelinvoiceStatus\x12\x15\n\x08\x64\x65sconly\x18\x03 \x01(\x08H\x00\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\x0b\n\t_desconly\"\xe6\x05\n\x12\x44\x65linvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x06\x62olt11\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x03 \x01(\tH\x01\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x38\n\x06status\x18\x07 \x01(\x0e\x32(.cln.DelinvoiceResponse.DelinvoiceStatus\x12\x12\n\nexpires_at\x18\x08 \x01(\x04\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x16\n\tpay_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\t\x88\x01\x01\x12\x14\n\x07paid_at\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"5\n\x10\x44\x65linvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x12\n\n\x06UNPAID\x10\x02\x42\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x11\n\x0f_local_offer_idB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"\xfa\x01\n\x0eInvoiceRequest\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tfallbacks\x18\x04 \x03(\t\x12\x15\n\x08preimage\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x11\n\x04\x63ltv\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18\x07 \x01(\x04H\x02\x88\x01\x01\x12\x19\n\x0c\x64\x65schashonly\x18\t \x01(\x08H\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x10.cln.AmountOrAnyB\x0b\n\t_preimageB\x07\n\x05_cltvB\t\n\x07_expiryB\x0f\n\r_deschashonly\"\x95\x03\n\x0fInvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x16\n\x0epayment_secret\x18\x03 \x01(\x0c\x12\x12\n\nexpires_at\x18\x04 \x01(\x04\x12\x1d\n\x10warning_capacity\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0fwarning_offline\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10warning_deadends\x18\x07 \x01(\tH\x02\x88\x01\x01\x12#\n\x16warning_private_unused\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x18\n\x0bwarning_mpp\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rcreated_index\x18\n \x01(\x04H\x05\x88\x01\x01\x42\x13\n\x11_warning_capacityB\x12\n\x10_warning_offlineB\x13\n\x11_warning_deadendsB\x19\n\x17_warning_private_unusedB\x0e\n\x0c_warning_mppB\x10\n\x0e_created_index\"#\n\x14ListdatastoreRequest\x12\x0b\n\x03key\x18\x02 \x03(\t\"G\n\x15ListdatastoreResponse\x12.\n\tdatastore\x18\x01 \x03(\x0b\x32\x1b.cln.ListdatastoreDatastore\"\x87\x01\n\x16ListdatastoreDatastore\x12\x0b\n\x03key\x18\x01 \x03(\t\x12\x17\n\ngeneration\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x10\n\x03hex\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x13\n\x06string\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\r\n\x0b_generationB\x06\n\x04_hexB\t\n\x07_string\"\xde\x02\n\x13ListinvoicesRequest\x12\x12\n\x05label\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tinvstring\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08offer_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x12>\n\x05index\x18\x05 \x01(\x0e\x32*.cln.ListinvoicesRequest.ListinvoicesIndexH\x04\x88\x01\x01\x12\x12\n\x05start\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x12\n\x05limit\x18\x07 \x01(\rH\x06\x88\x01\x01\"-\n\x11ListinvoicesIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\x08\n\x06_labelB\x0c\n\n_invstringB\x0f\n\r_payment_hashB\x0b\n\t_offer_idB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListinvoicesResponse\x12+\n\x08invoices\x18\x01 \x03(\x0b\x32\x19.cln.ListinvoicesInvoices\"\xd4\x06\n\x14ListinvoicesInvoices\x12\r\n\x05label\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListinvoicesInvoices.ListinvoicesInvoicesStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x1b\n\x0elocal_offer_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x16\n\tpay_index\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x14\n\x07paid_at\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0e \x01(\x0cH\x08\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\x0b\x88\x01\x01\x12\x42\n\rpaid_outpoint\x18\x12 \x01(\x0b\x32&.cln.ListinvoicesInvoicesPaid_outpointH\x0c\x88\x01\x01\"?\n\x1aListinvoicesInvoicesStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x11\n\x0f_local_offer_idB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x14\n\x12_invreq_payer_noteB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"A\n!ListinvoicesInvoicesPaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\xb4\x03\n\x10SendonionRequest\x12\r\n\x05onion\x18\x01 \x01(\x0c\x12*\n\tfirst_hop\x18\x02 \x01(\x0b\x32\x17.cln.SendonionFirst_hop\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\x05label\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0eshared_secrets\x18\x05 \x03(\x0c\x12\x13\n\x06partid\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\t \x01(\x0cH\x03\x88\x01\x01\x12\x14\n\x07groupid\x18\x0b \x01(\x04H\x04\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x0c \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x42\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\x0e\n\x0c_destinationB\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0e\n\x0c_description\"\xe7\x04\n\x11SendonionResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x36\n\x06status\x18\x03 \x01(\x0e\x32&.cln.SendonionResponse.SendonionStatus\x12%\n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x06 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\n \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0b \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x07message\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x13\n\x06partid\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\",\n\x0fSendonionStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\n\n\x08_messageB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"Q\n\x12SendonionFirst_hop\x12\n\n\x02id\x18\x01 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\r\"\xa0\x03\n\x13ListsendpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12@\n\x06status\x18\x03 \x01(\x0e\x32+.cln.ListsendpaysRequest.ListsendpaysStatusH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListsendpaysRequest.ListsendpaysIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\";\n\x12ListsendpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"-\n\x11ListsendpaysIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_statusB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListsendpaysResponse\x12+\n\x08payments\x18\x01 \x03(\x0b\x32\x19.cln.ListsendpaysPayments\"\xfc\x05\n\x14ListsendpaysPayments\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0f\n\x07groupid\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x44\n\x06status\x18\x04 \x01(\x0e\x32\x34.cln.ListsendpaysPayments.ListsendpaysPaymentsStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\n \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\r \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0e \x01(\tH\x07\x88\x01\x01\x12\x13\n\x06partid\x18\x0f \x01(\x04H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x10 \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x11 \x01(\x04H\n\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x12 \x01(\x04H\x0b\x88\x01\x01\"C\n\x1aListsendpaysPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\t\n\x07_partidB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0f\n\r_completed_at\"\x19\n\x17ListtransactionsRequest\"S\n\x18ListtransactionsResponse\x12\x37\n\x0ctransactions\x18\x01 \x03(\x0b\x32!.cln.ListtransactionsTransactions\"\xf8\x01\n\x1cListtransactionsTransactions\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\r\n\x05rawtx\x18\x02 \x01(\x0c\x12\x13\n\x0b\x62lockheight\x18\x03 \x01(\r\x12\x0f\n\x07txindex\x18\x04 \x01(\r\x12\x10\n\x08locktime\x18\x07 \x01(\r\x12\x0f\n\x07version\x18\x08 \x01(\r\x12\x37\n\x06inputs\x18\t \x03(\x0b\x32\'.cln.ListtransactionsTransactionsInputs\x12\x39\n\x07outputs\x18\n \x03(\x0b\x32(.cln.ListtransactionsTransactionsOutputs\"S\n\"ListtransactionsTransactionsInputs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\r\n\x05index\x18\x02 \x01(\r\x12\x10\n\x08sequence\x18\x03 \x01(\r\"l\n#ListtransactionsTransactionsOutputs\x12\r\n\x05index\x18\x01 \x01(\r\x12\x14\n\x0cscriptPubKey\x18\x03 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\"\x93\x04\n\nPayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x17\n\nriskfactor\x18\x08 \x01(\x01H\x05\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\n \x03(\t\x12 \n\x06maxfee\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0c \x01(\tH\x07\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x1a\n\rlocalinvreqid\x18\x0e \x01(\x0cH\t\x88\x01\x01\x12&\n\x0cpartial_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x42\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_riskfactorB\t\n\x07_maxfeeB\x0e\n\x0c_descriptionB\x0e\n\x0c_amount_msatB\x10\n\x0e_localinvreqidB\x0f\n\r_partial_msat\"\xfb\x02\n\x0bPayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12*\n\x06status\x18\t \x01(\x0e\x32\x1a.cln.PayResponse.PayStatus\"2\n\tPayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"*\n\x10ListnodesRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListnodesResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.cln.ListnodesNodes\"\xba\x02\n\x0eListnodesNodes\x12\x0e\n\x06nodeid\x18\x01 \x01(\x0c\x12\x1b\n\x0elast_timestamp\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x12\n\x05\x61lias\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x12\n\x05\x63olor\x18\x04 \x01(\x0cH\x02\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x05 \x01(\x0cH\x03\x88\x01\x01\x12/\n\taddresses\x18\x06 \x03(\x0b\x32\x1c.cln.ListnodesNodesAddresses\x12\x42\n\x10option_will_fund\x18\x07 \x01(\x0b\x32#.cln.ListnodesNodesOption_will_fundH\x04\x88\x01\x01\x42\x11\n\x0f_last_timestampB\x08\n\x06_aliasB\x08\n\x06_colorB\x0b\n\t_featuresB\x13\n\x11_option_will_fund\"\xf4\x01\n\x1eListnodesNodesOption_will_fund\x12(\n\x13lease_fee_base_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x17\n\x0flease_fee_basis\x18\x02 \x01(\r\x12\x16\n\x0e\x66unding_weight\x18\x03 \x01(\r\x12.\n\x19\x63hannel_fee_max_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x30\n(channel_fee_max_proportional_thousandths\x18\x05 \x01(\r\x12\x15\n\rcompact_lease\x18\x06 \x01(\x0c\"\xe8\x01\n\x17ListnodesNodesAddresses\x12K\n\titem_type\x18\x01 \x01(\x0e\x32\x38.cln.ListnodesNodesAddresses.ListnodesNodesAddressesType\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\"P\n\x1bListnodesNodesAddressesType\x12\x07\n\x03\x44NS\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\n\n\x08_address\"g\n\x15WaitanyinvoiceRequest\x12\x1a\n\rlastpay_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\x10\n\x0e_lastpay_indexB\n\n\x08_timeout\"\xbf\x05\n\x16WaitanyinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12@\n\x06status\x18\x04 \x01(\x0e\x32\x30.cln.WaitanyinvoiceResponse.WaitanyinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12<\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32 .cln.WaitanyinvoicePaid_outpointH\t\x88\x01\x01\"-\n\x14WaitanyinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\";\n\x1bWaitanyinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"#\n\x12WaitinvoiceRequest\x12\r\n\x05label\x18\x01 \x01(\t\"\xb0\x05\n\x13WaitinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitinvoiceResponse.WaitinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x08 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tpay_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\x0c \x01(\x0cH\x06\x88\x01\x01\x12\x1a\n\rcreated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x0e \x01(\x04H\x08\x88\x01\x01\x12\x39\n\rpaid_outpoint\x18\x0f \x01(\x0b\x32\x1d.cln.WaitinvoicePaid_outpointH\t\x88\x01\x01\"*\n\x11WaitinvoiceStatus\x12\x08\n\x04PAID\x10\x00\x12\x0b\n\x07\x45XPIRED\x10\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimageB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_paid_outpoint\"8\n\x18WaitinvoicePaid_outpoint\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\"\x8e\x01\n\x12WaitsendpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x13\n\x06partid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x02\x88\x01\x01\x42\t\n\x07_partidB\n\n\x08_timeoutB\n\n\x08_groupid\"\x8e\x05\n\x13WaitsendpayResponse\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x14\n\x07groupid\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.WaitsendpayResponse.WaitsendpayStatus\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x06 \x01(\x0cH\x02\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x04\x12%\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12\x12\n\x05label\x18\t \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06partid\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0b \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x0c \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0f \x01(\x04H\t\x88\x01\x01\x12\x1a\n\rupdated_index\x18\x10 \x01(\x04H\n\x88\x01\x01\"!\n\x11WaitsendpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\n\n\x08_groupidB\x0e\n\x0c_amount_msatB\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_partidB\t\n\x07_bolt11B\t\n\x07_bolt12B\x13\n\x11_payment_preimageB\x0f\n\r_completed_atB\x10\n\x0e_created_indexB\x10\n\x0e_updated_index\"\x97\x01\n\x0eNewaddrRequest\x12@\n\x0b\x61\x64\x64resstype\x18\x01 \x01(\x0e\x32&.cln.NewaddrRequest.NewaddrAddresstypeH\x00\x88\x01\x01\"3\n\x12NewaddrAddresstype\x12\n\n\x06\x42\x45\x43H32\x10\x00\x12\x07\n\x03\x41LL\x10\x02\x12\x08\n\x04P2TR\x10\x03\x42\x0e\n\x0c_addresstype\"M\n\x0fNewaddrResponse\x12\x13\n\x06\x62\x65\x63h32\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04p2tr\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\t\n\x07_bech32B\x07\n\x05_p2tr\"\xb9\x01\n\x0fWithdrawRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\t\x12!\n\x07satoshi\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\"\n\x07\x66\x65\x65rate\x18\x05 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_feerate\":\n\x10WithdrawResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0c\n\x04psbt\x18\x03 \x01(\t\"\x82\x03\n\x0eKeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x12\n\x05label\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmaxfeepercent\x18\x04 \x01(\x01H\x01\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x06 \x01(\rH\x03\x88\x01\x01\x12#\n\texemptfee\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12+\n\nroutehints\x18\x08 \x01(\x0b\x32\x12.cln.RoutehintListH\x05\x88\x01\x01\x12&\n\textratlvs\x18\t \x01(\x0b\x32\x0e.cln.TlvStreamH\x06\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x08\n\x06_labelB\x10\n\x0e_maxfeepercentB\x0c\n\n_retry_forB\x0b\n\t_maxdelayB\x0c\n\n_exemptfeeB\r\n\x0b_routehintsB\x0c\n\n_extratlvs\"\xf2\x02\n\x0fKeysendResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x18\n\x0b\x64\x65stination\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\r\n\x05parts\x18\x05 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\x1awarning_partial_completion\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x32\n\x06status\x18\t \x01(\x0e\x32\".cln.KeysendResponse.KeysendStatus\"\x1d\n\rKeysendStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x42\x0e\n\x0c_destinationB\x1d\n\x1b_warning_partial_completion\"\xa4\x03\n\x0f\x46undpsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x14\n\x07minconf\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\x08 \x01(\x08H\x04\x88\x01\x01\x12\x17\n\nnonwrapped\x18\t \x01(\x08H\x05\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x06\x88\x01\x01\x42\n\n\x08_minconfB\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\x13\n\x11_excess_as_changeB\r\n\x0b_nonwrappedB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10\x46undpsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.FundpsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14\x46undpsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"A\n\x0fSendpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\",\n\x10SendpsbtResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"1\n\x0fSignpsbtRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x10\n\x08signonly\x18\x02 \x03(\r\"\'\n\x10SignpsbtResponse\x12\x13\n\x0bsigned_psbt\x18\x01 \x01(\t\"\xa0\x03\n\x0fUtxopsbtRequest\x12!\n\x07satoshi\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x1d\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.Feerate\x12\x13\n\x0bstartweight\x18\x03 \x01(\r\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x14\n\x07reserve\x18\x05 \x01(\rH\x00\x88\x01\x01\x12\x15\n\x08locktime\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x1f\n\x12min_witness_weight\x18\x07 \x01(\rH\x02\x88\x01\x01\x12\x17\n\nreservedok\x18\x08 \x01(\x08H\x03\x88\x01\x01\x12\x1d\n\x10\x65xcess_as_change\x18\t \x01(\x08H\x04\x88\x01\x01\x12#\n\x16opening_anchor_channel\x18\n \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_reserveB\x0b\n\t_locktimeB\x15\n\x13_min_witness_weightB\r\n\x0b_reservedokB\x13\n\x11_excess_as_changeB\x19\n\x17_opening_anchor_channel\"\xd9\x01\n\x10UtxopsbtResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\x0e\x66\x65\x65rate_per_kw\x18\x02 \x01(\r\x12\x1e\n\x16\x65stimated_final_weight\x18\x03 \x01(\r\x12 \n\x0b\x65xcess_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1a\n\rchange_outnum\x18\x05 \x01(\rH\x00\x88\x01\x01\x12/\n\x0creservations\x18\x06 \x03(\x0b\x32\x19.cln.UtxopsbtReservationsB\x10\n\x0e_change_outnum\"u\n\x14UtxopsbtReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\" \n\x10TxdiscardRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"6\n\x11TxdiscardResponse\x12\x13\n\x0bunsigned_tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"\xa4\x01\n\x10TxprepareRequest\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12 \n\x07outputs\x18\x05 \x03(\x0b\x32\x0f.cln.OutputDescB\n\n\x08_feerateB\n\n\x08_minconf\"D\n\x11TxprepareResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x13\n\x0bunsigned_tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"\x1d\n\rTxsendRequest\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\"8\n\x0eTxsendResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"1\n\x17ListpeerchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"K\n\x18ListpeerchannelsResponse\x12/\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x1d.cln.ListpeerchannelsChannels\"\xd7\x1b\n\x18ListpeerchannelsChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x16\n\x0epeer_connected\x18\x02 \x01(\x08\x12J\n\x05state\x18\x03 \x01(\x0e\x32;.cln.ListpeerchannelsChannels.ListpeerchannelsChannelsState\x12\x19\n\x0cscratch_txid\x18\x04 \x01(\x0cH\x00\x88\x01\x01\x12:\n\x07\x66\x65\x65rate\x18\x06 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFeerateH\x01\x88\x01\x01\x12\x12\n\x05owner\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10short_channel_id\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x17\n\nchannel_id\x18\t \x01(\x0cH\x04\x88\x01\x01\x12\x19\n\x0c\x66unding_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x1b\n\x0e\x66unding_outnum\x18\x0b \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x0finitial_feerate\x18\x0c \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0clast_feerate\x18\r \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0cnext_feerate\x18\x0e \x01(\tH\t\x88\x01\x01\x12\x1a\n\rnext_fee_step\x18\x0f \x01(\rH\n\x88\x01\x01\x12\x37\n\x08inflight\x18\x10 \x03(\x0b\x32%.cln.ListpeerchannelsChannelsInflight\x12\x15\n\x08\x63lose_to\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\x12\x14\n\x07private\x18\x12 \x01(\x08H\x0c\x88\x01\x01\x12 \n\x06opener\x18\x13 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x14 \x01(\x0e\x32\x10.cln.ChannelSideH\r\x88\x01\x01\x12:\n\x07\x66unding\x18\x16 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsFundingH\x0e\x88\x01\x01\x12$\n\nto_us_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x0f\x88\x01\x01\x12(\n\x0emin_to_us_msat\x18\x18 \x01(\x0b\x32\x0b.cln.AmountH\x10\x88\x01\x01\x12(\n\x0emax_to_us_msat\x18\x19 \x01(\x0b\x32\x0b.cln.AmountH\x11\x88\x01\x01\x12$\n\ntotal_msat\x18\x1a \x01(\x0b\x32\x0b.cln.AmountH\x12\x88\x01\x01\x12\'\n\rfee_base_msat\x18\x1b \x01(\x0b\x32\x0b.cln.AmountH\x13\x88\x01\x01\x12(\n\x1b\x66\x65\x65_proportional_millionths\x18\x1c \x01(\rH\x14\x88\x01\x01\x12)\n\x0f\x64ust_limit_msat\x18\x1d \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x30\n\x16max_total_htlc_in_msat\x18\x1e \x01(\x0b\x32\x0b.cln.AmountH\x16\x88\x01\x01\x12,\n\x12their_reserve_msat\x18\x1f \x01(\x0b\x32\x0b.cln.AmountH\x17\x88\x01\x01\x12*\n\x10our_reserve_msat\x18 \x01(\x0b\x32\x0b.cln.AmountH\x18\x88\x01\x01\x12(\n\x0espendable_msat\x18! \x01(\x0b\x32\x0b.cln.AmountH\x19\x88\x01\x01\x12)\n\x0freceivable_msat\x18\" \x01(\x0b\x32\x0b.cln.AmountH\x1a\x88\x01\x01\x12.\n\x14minimum_htlc_in_msat\x18# \x01(\x0b\x32\x0b.cln.AmountH\x1b\x88\x01\x01\x12/\n\x15minimum_htlc_out_msat\x18$ \x01(\x0b\x32\x0b.cln.AmountH\x1c\x88\x01\x01\x12/\n\x15maximum_htlc_out_msat\x18% \x01(\x0b\x32\x0b.cln.AmountH\x1d\x88\x01\x01\x12 \n\x13their_to_self_delay\x18& \x01(\rH\x1e\x88\x01\x01\x12\x1e\n\x11our_to_self_delay\x18\' \x01(\rH\x1f\x88\x01\x01\x12\x1f\n\x12max_accepted_htlcs\x18( \x01(\rH \x88\x01\x01\x12\x36\n\x05\x61lias\x18) \x01(\x0b\x32\".cln.ListpeerchannelsChannelsAliasH!\x88\x01\x01\x12\x0e\n\x06status\x18+ \x03(\t\x12 \n\x13in_payments_offered\x18, \x01(\x04H\"\x88\x01\x01\x12)\n\x0fin_offered_msat\x18- \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\"\n\x15in_payments_fulfilled\x18. \x01(\x04H$\x88\x01\x01\x12+\n\x11in_fulfilled_msat\x18/ \x01(\x0b\x32\x0b.cln.AmountH%\x88\x01\x01\x12!\n\x14out_payments_offered\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x10out_offered_msat\x18\x31 \x01(\x0b\x32\x0b.cln.AmountH\'\x88\x01\x01\x12#\n\x16out_payments_fulfilled\x18\x32 \x01(\x04H(\x88\x01\x01\x12,\n\x12out_fulfilled_msat\x18\x33 \x01(\x0b\x32\x0b.cln.AmountH)\x88\x01\x01\x12\x31\n\x05htlcs\x18\x34 \x03(\x0b\x32\".cln.ListpeerchannelsChannelsHtlcs\x12\x1a\n\rclose_to_addr\x18\x35 \x01(\tH*\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\x36 \x01(\x08H+\x88\x01\x01\x12:\n\x07updates\x18\x37 \x01(\x0b\x32$.cln.ListpeerchannelsChannelsUpdatesH,\x88\x01\x01\x12#\n\x16last_stable_connection\x18\x38 \x01(\x04H-\x88\x01\x01\x12\x17\n\nlost_state\x18\x39 \x01(\x08H.\x88\x01\x01\x12\x1a\n\rreestablished\x18: \x01(\x08H/\x88\x01\x01\x12*\n\x10last_tx_fee_msat\x18; \x01(\x0b\x32\x0b.cln.AmountH0\x88\x01\x01\x12\x16\n\tdirection\x18< \x01(\rH1\x88\x01\x01\"\x80\x03\n\x1dListpeerchannelsChannelsState\x12\x0c\n\x08OPENINGD\x10\x00\x12\x1c\n\x18\x43HANNELD_AWAITING_LOCKIN\x10\x01\x12\x13\n\x0f\x43HANNELD_NORMAL\x10\x02\x12\x1a\n\x16\x43HANNELD_SHUTTING_DOWN\x10\x03\x12\x18\n\x14\x43LOSINGD_SIGEXCHANGE\x10\x04\x12\x15\n\x11\x43LOSINGD_COMPLETE\x10\x05\x12\x17\n\x13\x41WAITING_UNILATERAL\x10\x06\x12\x16\n\x12\x46UNDING_SPEND_SEEN\x10\x07\x12\x0b\n\x07ONCHAIN\x10\x08\x12\x17\n\x13\x44UALOPEND_OPEN_INIT\x10\t\x12\x1d\n\x19\x44UALOPEND_AWAITING_LOCKIN\x10\n\x12\x1c\n\x18\x43HANNELD_AWAITING_SPLICE\x10\x0b\x12\x1c\n\x18\x44UALOPEND_OPEN_COMMITTED\x10\x0c\x12\x1f\n\x1b\x44UALOPEND_OPEN_COMMIT_READY\x10\rB\x0f\n\r_scratch_txidB\n\n\x08_feerateB\x08\n\x06_ownerB\x13\n\x11_short_channel_idB\r\n\x0b_channel_idB\x0f\n\r_funding_txidB\x11\n\x0f_funding_outnumB\x12\n\x10_initial_feerateB\x0f\n\r_last_feerateB\x0f\n\r_next_feerateB\x10\n\x0e_next_fee_stepB\x0b\n\t_close_toB\n\n\x08_privateB\t\n\x07_closerB\n\n\x08_fundingB\r\n\x0b_to_us_msatB\x11\n\x0f_min_to_us_msatB\x11\n\x0f_max_to_us_msatB\r\n\x0b_total_msatB\x10\n\x0e_fee_base_msatB\x1e\n\x1c_fee_proportional_millionthsB\x12\n\x10_dust_limit_msatB\x19\n\x17_max_total_htlc_in_msatB\x15\n\x13_their_reserve_msatB\x13\n\x11_our_reserve_msatB\x11\n\x0f_spendable_msatB\x12\n\x10_receivable_msatB\x17\n\x15_minimum_htlc_in_msatB\x18\n\x16_minimum_htlc_out_msatB\x18\n\x16_maximum_htlc_out_msatB\x16\n\x14_their_to_self_delayB\x14\n\x12_our_to_self_delayB\x15\n\x13_max_accepted_htlcsB\x08\n\x06_aliasB\x16\n\x14_in_payments_offeredB\x12\n\x10_in_offered_msatB\x18\n\x16_in_payments_fulfilledB\x14\n\x12_in_fulfilled_msatB\x17\n\x15_out_payments_offeredB\x13\n\x11_out_offered_msatB\x19\n\x17_out_payments_fulfilledB\x15\n\x13_out_fulfilled_msatB\x10\n\x0e_close_to_addrB\x14\n\x12_ignore_fee_limitsB\n\n\x08_updatesB\x19\n\x17_last_stable_connectionB\r\n\x0b_lost_stateB\x10\n\x0e_reestablishedB\x13\n\x11_last_tx_fee_msatB\x0c\n\n_direction\"\xa7\x01\n\x1fListpeerchannelsChannelsUpdates\x12\x38\n\x05local\x18\x01 \x01(\x0b\x32).cln.ListpeerchannelsChannelsUpdatesLocal\x12?\n\x06remote\x18\x02 \x01(\x0b\x32*.cln.ListpeerchannelsChannelsUpdatesRemoteH\x00\x88\x01\x01\x42\t\n\x07_remote\"\xda\x01\n$ListpeerchannelsChannelsUpdatesLocal\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"\xdb\x01\n%ListpeerchannelsChannelsUpdatesRemote\x12&\n\x11htlc_minimum_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11htlc_maximum_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x11\x63ltv_expiry_delta\x18\x03 \x01(\r\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\"?\n\x1fListpeerchannelsChannelsFeerate\x12\r\n\x05perkw\x18\x01 \x01(\r\x12\r\n\x05perkb\x18\x02 \x01(\r\"\x8b\x02\n ListpeerchannelsChannelsInflight\x12\x14\n\x0c\x66unding_txid\x18\x01 \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\x02 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x03 \x01(\t\x12\'\n\x12total_funding_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10our_funding_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x19\n\x0cscratch_txid\x18\x06 \x01(\x0cH\x00\x88\x01\x01\x12\x1a\n\rsplice_amount\x18\x07 \x01(\x12H\x01\x88\x01\x01\x42\x0f\n\r_scratch_txidB\x10\n\x0e_splice_amount\"\x9d\x02\n\x1fListpeerchannelsChannelsFunding\x12%\n\x0bpushed_msat\x18\x01 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12%\n\x10local_funds_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x11remote_funds_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\'\n\rfee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\'\n\rfee_rcvd_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x42\x0e\n\x0c_pushed_msatB\x10\n\x0e_fee_paid_msatB\x10\n\x0e_fee_rcvd_msat\"]\n\x1dListpeerchannelsChannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"\xf9\x02\n\x1dListpeerchannelsChannelsHtlcs\x12\\\n\tdirection\x18\x01 \x01(\x0e\x32I.cln.ListpeerchannelsChannelsHtlcs.ListpeerchannelsChannelsHtlcsDirection\x12\n\n\x02id\x18\x02 \x01(\x04\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x0e\n\x06\x65xpiry\x18\x04 \x01(\r\x12\x14\n\x0cpayment_hash\x18\x05 \x01(\x0c\x12\x1a\n\rlocal_trimmed\x18\x06 \x01(\x08H\x00\x88\x01\x01\x12\x13\n\x06status\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x05state\x18\x08 \x01(\x0e\x32\x0e.cln.HtlcState\"9\n&ListpeerchannelsChannelsHtlcsDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\x42\x10\n\x0e_local_trimmedB\t\n\x07_status\"3\n\x19ListclosedchannelsRequest\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x05\n\x03_id\"[\n\x1aListclosedchannelsResponse\x12=\n\x0e\x63losedchannels\x18\x01 \x03(\x0b\x32%.cln.ListclosedchannelsClosedchannels\"\xf2\t\n ListclosedchannelsClosedchannels\x12\x14\n\x07peer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x01\x88\x01\x01\x12>\n\x05\x61lias\x18\x04 \x01(\x0b\x32*.cln.ListclosedchannelsClosedchannelsAliasH\x02\x88\x01\x01\x12 \n\x06opener\x18\x05 \x01(\x0e\x32\x10.cln.ChannelSide\x12%\n\x06\x63loser\x18\x06 \x01(\x0e\x32\x10.cln.ChannelSideH\x03\x88\x01\x01\x12\x0f\n\x07private\x18\x07 \x01(\x08\x12\x1f\n\x17total_local_commitments\x18\t \x01(\x04\x12 \n\x18total_remote_commitments\x18\n \x01(\x04\x12\x18\n\x10total_htlcs_sent\x18\x0b \x01(\x04\x12\x14\n\x0c\x66unding_txid\x18\x0c \x01(\x0c\x12\x16\n\x0e\x66unding_outnum\x18\r \x01(\r\x12\x0e\n\x06leased\x18\x0e \x01(\x08\x12/\n\x15\x66unding_fee_paid_msat\x18\x0f \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12/\n\x15\x66unding_fee_rcvd_msat\x18\x10 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12-\n\x13\x66unding_pushed_msat\x18\x11 \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1f\n\ntotal_msat\x18\x12 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x66inal_to_us_msat\x18\x13 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emin_to_us_msat\x18\x14 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0emax_to_us_msat\x18\x15 \x01(\x0b\x32\x0b.cln.Amount\x12!\n\x14last_commitment_txid\x18\x16 \x01(\x0cH\x07\x88\x01\x01\x12\x32\n\x18last_commitment_fee_msat\x18\x17 \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x66\n\x0b\x63lose_cause\x18\x18 \x01(\x0e\x32Q.cln.ListclosedchannelsClosedchannels.ListclosedchannelsClosedchannelsClose_cause\x12#\n\x16last_stable_connection\x18\x19 \x01(\x04H\t\x88\x01\x01\"v\n+ListclosedchannelsClosedchannelsClose_cause\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05LOCAL\x10\x01\x12\x08\n\x04USER\x10\x02\x12\n\n\x06REMOTE\x10\x03\x12\x0c\n\x08PROTOCOL\x10\x04\x12\x0b\n\x07ONCHAIN\x10\x05\x42\n\n\x08_peer_idB\x13\n\x11_short_channel_idB\x08\n\x06_aliasB\t\n\x07_closerB\x18\n\x16_funding_fee_paid_msatB\x18\n\x16_funding_fee_rcvd_msatB\x16\n\x14_funding_pushed_msatB\x17\n\x15_last_commitment_txidB\x1b\n\x19_last_commitment_fee_msatB\x19\n\x17_last_stable_connection\"e\n%ListclosedchannelsClosedchannelsAlias\x12\x12\n\x05local\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06remote\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_localB\t\n\x07_remote\"L\n\x10\x44\x65\x63odepayRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\x8d\x04\n\x11\x44\x65\x63odepayResponse\x12\x10\n\x08\x63urrency\x18\x01 \x01(\t\x12\x12\n\ncreated_at\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\x04\x12\r\n\x05payee\x18\x04 \x01(\x0c\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x11\n\tsignature\x18\x07 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x1d\n\x15min_final_cltv_expiry\x18\n \x01(\r\x12\x1b\n\x0epayment_secret\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\r \x01(\x0cH\x05\x88\x01\x01\x12*\n\tfallbacks\x18\x0e \x03(\x0b\x32\x17.cln.DecodepayFallbacks\x12\"\n\x05\x65xtra\x18\x10 \x03(\x0b\x32\x13.cln.DecodepayExtraB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x13\n\x11_description_hashB\x11\n\x0f_payment_secretB\x0b\n\t_featuresB\x13\n\x11_payment_metadata\"\xd0\x01\n\x12\x44\x65\x63odepayFallbacks\x12\x41\n\titem_type\x18\x01 \x01(\x0e\x32..cln.DecodepayFallbacks.DecodepayFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x0b\n\x03hex\x18\x03 \x01(\x0c\"N\n\x16\x44\x65\x63odepayFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42\x07\n\x05_addr\"+\n\x0e\x44\x65\x63odepayExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\"\x1f\n\rDecodeRequest\x12\x0e\n\x06string\x18\x01 \x01(\t\"\xb7#\n\x0e\x44\x65\x63odeResponse\x12\x31\n\titem_type\x18\x01 \x01(\x0e\x32\x1e.cln.DecodeResponse.DecodeType\x12\r\n\x05valid\x18\x02 \x01(\x08\x12\x15\n\x08offer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0coffer_chains\x18\x04 \x03(\x0c\x12\x1b\n\x0eoffer_metadata\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x1b\n\x0eoffer_currency\x18\x06 \x01(\tH\x02\x88\x01\x01\x12+\n\x1ewarning_unknown_offer_currency\x18\x07 \x01(\tH\x03\x88\x01\x01\x12 \n\x13\x63urrency_minor_unit\x18\x08 \x01(\rH\x04\x88\x01\x01\x12\x19\n\x0coffer_amount\x18\t \x01(\x04H\x05\x88\x01\x01\x12+\n\x11offer_amount_msat\x18\n \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x1e\n\x11offer_description\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0coffer_issuer\x18\x0c \x01(\tH\x08\x88\x01\x01\x12\x1b\n\x0eoffer_features\x18\r \x01(\x0cH\t\x88\x01\x01\x12\"\n\x15offer_absolute_expiry\x18\x0e \x01(\x04H\n\x88\x01\x01\x12\x1f\n\x12offer_quantity_max\x18\x0f \x01(\x04H\x0b\x88\x01\x01\x12+\n\x0boffer_paths\x18\x10 \x03(\x0b\x32\x16.cln.DecodeOffer_paths\x12\x1a\n\roffer_node_id\x18\x11 \x01(\x0cH\x0c\x88\x01\x01\x12*\n\x1dwarning_missing_offer_node_id\x18\x14 \x01(\tH\r\x88\x01\x01\x12.\n!warning_invalid_offer_description\x18\x15 \x01(\tH\x0e\x88\x01\x01\x12.\n!warning_missing_offer_description\x18\x16 \x01(\tH\x0f\x88\x01\x01\x12+\n\x1ewarning_invalid_offer_currency\x18\x17 \x01(\tH\x10\x88\x01\x01\x12)\n\x1cwarning_invalid_offer_issuer\x18\x18 \x01(\tH\x11\x88\x01\x01\x12\x1c\n\x0finvreq_metadata\x18\x19 \x01(\x0cH\x12\x88\x01\x01\x12\x1c\n\x0finvreq_payer_id\x18\x1a \x01(\x0cH\x13\x88\x01\x01\x12\x19\n\x0cinvreq_chain\x18\x1b \x01(\x0cH\x14\x88\x01\x01\x12,\n\x12invreq_amount_msat\x18\x1c \x01(\x0b\x32\x0b.cln.AmountH\x15\x88\x01\x01\x12\x1c\n\x0finvreq_features\x18\x1d \x01(\x0cH\x16\x88\x01\x01\x12\x1c\n\x0finvreq_quantity\x18\x1e \x01(\x04H\x17\x88\x01\x01\x12\x1e\n\x11invreq_payer_note\x18\x1f \x01(\tH\x18\x88\x01\x01\x12&\n\x19invreq_recurrence_counter\x18 \x01(\rH\x19\x88\x01\x01\x12$\n\x17invreq_recurrence_start\x18! \x01(\rH\x1a\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_metadata\x18# \x01(\tH\x1b\x88\x01\x01\x12,\n\x1fwarning_missing_invreq_payer_id\x18$ \x01(\tH\x1c\x88\x01\x01\x12.\n!warning_invalid_invreq_payer_note\x18% \x01(\tH\x1d\x88\x01\x01\x12\x36\n)warning_missing_invoice_request_signature\x18& \x01(\tH\x1e\x88\x01\x01\x12\x36\n)warning_invalid_invoice_request_signature\x18\' \x01(\tH\x1f\x88\x01\x01\x12\x1f\n\x12invoice_created_at\x18) \x01(\x04H \x88\x01\x01\x12$\n\x17invoice_relative_expiry\x18* \x01(\rH!\x88\x01\x01\x12!\n\x14invoice_payment_hash\x18+ \x01(\x0cH\"\x88\x01\x01\x12-\n\x13invoice_amount_msat\x18, \x01(\x0b\x32\x0b.cln.AmountH#\x88\x01\x01\x12\x37\n\x11invoice_fallbacks\x18- \x03(\x0b\x32\x1c.cln.DecodeInvoice_fallbacks\x12\x1d\n\x10invoice_features\x18. \x01(\x0cH$\x88\x01\x01\x12\x1c\n\x0finvoice_node_id\x18/ \x01(\x0cH%\x88\x01\x01\x12(\n\x1binvoice_recurrence_basetime\x18\x30 \x01(\x04H&\x88\x01\x01\x12*\n\x1dwarning_missing_invoice_paths\x18\x32 \x01(\tH\'\x88\x01\x01\x12/\n\"warning_missing_invoice_blindedpay\x18\x33 \x01(\tH(\x88\x01\x01\x12/\n\"warning_missing_invoice_created_at\x18\x34 \x01(\tH)\x88\x01\x01\x12\x31\n$warning_missing_invoice_payment_hash\x18\x35 \x01(\tH*\x88\x01\x01\x12+\n\x1ewarning_missing_invoice_amount\x18\x36 \x01(\tH+\x88\x01\x01\x12\x38\n+warning_missing_invoice_recurrence_basetime\x18\x37 \x01(\tH,\x88\x01\x01\x12,\n\x1fwarning_missing_invoice_node_id\x18\x38 \x01(\tH-\x88\x01\x01\x12.\n!warning_missing_invoice_signature\x18\x39 \x01(\tH.\x88\x01\x01\x12.\n!warning_invalid_invoice_signature\x18: \x01(\tH/\x88\x01\x01\x12\'\n\tfallbacks\x18; \x03(\x0b\x32\x14.cln.DecodeFallbacks\x12\x17\n\ncreated_at\x18< \x01(\x04H0\x88\x01\x01\x12\x13\n\x06\x65xpiry\x18= \x01(\x04H1\x88\x01\x01\x12\x12\n\x05payee\x18> \x01(\x0cH2\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18? \x01(\x0cH3\x88\x01\x01\x12\x1d\n\x10\x64\x65scription_hash\x18@ \x01(\x0cH4\x88\x01\x01\x12\"\n\x15min_final_cltv_expiry\x18\x41 \x01(\rH5\x88\x01\x01\x12\x1b\n\x0epayment_secret\x18\x42 \x01(\x0cH6\x88\x01\x01\x12\x1d\n\x10payment_metadata\x18\x43 \x01(\x0cH7\x88\x01\x01\x12\x1f\n\x05\x65xtra\x18\x45 \x03(\x0b\x32\x10.cln.DecodeExtra\x12\x16\n\tunique_id\x18\x46 \x01(\tH8\x88\x01\x01\x12\x14\n\x07version\x18G \x01(\tH9\x88\x01\x01\x12\x13\n\x06string\x18H \x01(\tH:\x88\x01\x01\x12-\n\x0crestrictions\x18I \x03(\x0b\x32\x17.cln.DecodeRestrictions\x12&\n\x19warning_rune_invalid_utf8\x18J \x01(\tH;\x88\x01\x01\x12\x10\n\x03hex\x18K \x01(\x0cH<\x88\x01\x01\x12\x16\n\tdecrypted\x18L \x01(\x0cH=\x88\x01\x01\x12\x16\n\tsignature\x18M \x01(\tH>\x88\x01\x01\x12\x15\n\x08\x63urrency\x18N \x01(\tH?\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18O \x01(\x0b\x32\x0b.cln.AmountH@\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18P \x01(\tHA\x88\x01\x01\x12\x15\n\x08\x66\x65\x61tures\x18Q \x01(\x0cHB\x88\x01\x01\"\x83\x01\n\nDecodeType\x12\x10\n\x0c\x42OLT12_OFFER\x10\x00\x12\x12\n\x0e\x42OLT12_INVOICE\x10\x01\x12\x1a\n\x16\x42OLT12_INVOICE_REQUEST\x10\x02\x12\x12\n\x0e\x42OLT11_INVOICE\x10\x03\x12\x08\n\x04RUNE\x10\x04\x12\x15\n\x11\x45MERGENCY_RECOVER\x10\x05\x42\x0b\n\t_offer_idB\x11\n\x0f_offer_metadataB\x11\n\x0f_offer_currencyB!\n\x1f_warning_unknown_offer_currencyB\x16\n\x14_currency_minor_unitB\x0f\n\r_offer_amountB\x14\n\x12_offer_amount_msatB\x14\n\x12_offer_descriptionB\x0f\n\r_offer_issuerB\x11\n\x0f_offer_featuresB\x18\n\x16_offer_absolute_expiryB\x15\n\x13_offer_quantity_maxB\x10\n\x0e_offer_node_idB \n\x1e_warning_missing_offer_node_idB$\n\"_warning_invalid_offer_descriptionB$\n\"_warning_missing_offer_descriptionB!\n\x1f_warning_invalid_offer_currencyB\x1f\n\x1d_warning_invalid_offer_issuerB\x12\n\x10_invreq_metadataB\x12\n\x10_invreq_payer_idB\x0f\n\r_invreq_chainB\x15\n\x13_invreq_amount_msatB\x12\n\x10_invreq_featuresB\x12\n\x10_invreq_quantityB\x14\n\x12_invreq_payer_noteB\x1c\n\x1a_invreq_recurrence_counterB\x1a\n\x18_invreq_recurrence_startB\"\n _warning_missing_invreq_metadataB\"\n _warning_missing_invreq_payer_idB$\n\"_warning_invalid_invreq_payer_noteB,\n*_warning_missing_invoice_request_signatureB,\n*_warning_invalid_invoice_request_signatureB\x15\n\x13_invoice_created_atB\x1a\n\x18_invoice_relative_expiryB\x17\n\x15_invoice_payment_hashB\x16\n\x14_invoice_amount_msatB\x13\n\x11_invoice_featuresB\x12\n\x10_invoice_node_idB\x1e\n\x1c_invoice_recurrence_basetimeB \n\x1e_warning_missing_invoice_pathsB%\n#_warning_missing_invoice_blindedpayB%\n#_warning_missing_invoice_created_atB\'\n%_warning_missing_invoice_payment_hashB!\n\x1f_warning_missing_invoice_amountB.\n,_warning_missing_invoice_recurrence_basetimeB\"\n _warning_missing_invoice_node_idB$\n\"_warning_missing_invoice_signatureB$\n\"_warning_invalid_invoice_signatureB\r\n\x0b_created_atB\t\n\x07_expiryB\x08\n\x06_payeeB\x0f\n\r_payment_hashB\x13\n\x11_description_hashB\x18\n\x16_min_final_cltv_expiryB\x11\n\x0f_payment_secretB\x13\n\x11_payment_metadataB\x0c\n\n_unique_idB\n\n\x08_versionB\t\n\x07_stringB\x1c\n\x1a_warning_rune_invalid_utf8B\x06\n\x04_hexB\x0c\n\n_decryptedB\x0c\n\n_signatureB\x0b\n\t_currencyB\x0e\n\x0c_amount_msatB\x0e\n\x0c_descriptionB\x0b\n\t_features\"\xab\x01\n\x11\x44\x65\x63odeOffer_paths\x12\x1a\n\rfirst_node_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\x1b\n\x0e\x66irst_scid_dir\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x17\n\nfirst_scid\x18\x05 \x01(\tH\x02\x88\x01\x01\x42\x10\n\x0e_first_node_idB\x11\n\x0f_first_scid_dirB\r\n\x0b_first_scid\"\x8a\x01\n\x1f\x44\x65\x63odeOffer_recurrencePaywindow\x12\x16\n\x0eseconds_before\x18\x01 \x01(\r\x12\x15\n\rseconds_after\x18\x02 \x01(\r\x12 \n\x13proportional_amount\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\x16\n\x14_proportional_amount\"T\n\x17\x44\x65\x63odeInvoice_pathsPath\x12\x17\n\x0f\x62linded_node_id\x18\x01 \x01(\x0c\x12 \n\x18\x65ncrypted_recipient_data\x18\x02 \x01(\x0c\"Y\n\x17\x44\x65\x63odeInvoice_fallbacks\x12\x0f\n\x07version\x18\x01 \x01(\r\x12\x0b\n\x03hex\x18\x02 \x01(\x0c\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_address\"\xaa\x02\n\x0f\x44\x65\x63odeFallbacks\x12\x36\n)warning_invoice_fallbacks_version_invalid\x18\x01 \x01(\tH\x00\x88\x01\x01\x12;\n\titem_type\x18\x02 \x01(\x0e\x32(.cln.DecodeFallbacks.DecodeFallbacksType\x12\x11\n\x04\x61\x64\x64r\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0b\n\x03hex\x18\x04 \x01(\x0c\"K\n\x13\x44\x65\x63odeFallbacksType\x12\t\n\x05P2PKH\x10\x00\x12\x08\n\x04P2SH\x10\x01\x12\n\n\x06P2WPKH\x10\x02\x12\t\n\x05P2WSH\x10\x03\x12\x08\n\x04P2TR\x10\x04\x42,\n*_warning_invoice_fallbacks_version_invalidB\x07\n\x05_addr\"(\n\x0b\x44\x65\x63odeExtra\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\";\n\x12\x44\x65\x63odeRestrictions\x12\x14\n\x0c\x61lternatives\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\"\xc2\x01\n\rDelpayRequest\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12/\n\x06status\x18\x02 \x01(\x0e\x32\x1f.cln.DelpayRequest.DelpayStatus\x12\x13\n\x06partid\x18\x03 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07groupid\x18\x04 \x01(\x04H\x01\x88\x01\x01\"(\n\x0c\x44\x65lpayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x42\t\n\x07_partidB\n\n\x08_groupid\"7\n\x0e\x44\x65lpayResponse\x12%\n\x08payments\x18\x01 \x03(\x0b\x32\x13.cln.DelpayPayments\"\xcb\x05\n\x0e\x44\x65lpayPayments\x12\x1a\n\rcreated_index\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x38\n\x06status\x18\x04 \x01(\x0e\x32(.cln.DelpayPayments.DelpayPaymentsStatus\x12%\n\x10\x61mount_sent_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65stination\x18\x07 \x01(\x0cH\x02\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x12\n\ncreated_at\x18\t \x01(\x04\x12\x1a\n\rupdated_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\x12\x12\n\x05label\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x10 \x01(\tH\n\x88\x01\x01\x12\x17\n\nerroronion\x18\x11 \x01(\x0cH\x0b\x88\x01\x01\"=\n\x14\x44\x65lpayPaymentsStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x10\n\x0e_created_indexB\t\n\x07_partidB\x0e\n\x0c_destinationB\x0e\n\x0c_amount_msatB\x10\n\x0e_updated_indexB\x0f\n\r_completed_atB\n\n\x08_groupidB\x13\n\x11_payment_preimageB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\r\n\x0b_erroronion\"\xb3\x01\n\x11\x44\x65lforwardRequest\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x12\n\nin_htlc_id\x18\x02 \x01(\x04\x12\x37\n\x06status\x18\x03 \x01(\x0e\x32\'.cln.DelforwardRequest.DelforwardStatus\"=\n\x10\x44\x65lforwardStatus\x12\x0b\n\x07SETTLED\x10\x00\x12\x10\n\x0cLOCAL_FAILED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"\x14\n\x12\x44\x65lforwardResponse\"\'\n\x13\x44isableofferRequest\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\"\x88\x01\n\x14\x44isableofferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"=\n\x11\x44isconnectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_force\"\x14\n\x12\x44isconnectResponse\"k\n\x0f\x46\x65\x65ratesRequest\x12\x31\n\x05style\x18\x01 \x01(\x0e\x32\".cln.FeeratesRequest.FeeratesStyle\"%\n\rFeeratesStyle\x12\t\n\x05PERKB\x10\x00\x12\t\n\x05PERKW\x10\x01\"\x9c\x02\n\x10\x46\x65\x65ratesResponse\x12%\n\x18warning_missing_feerates\x18\x01 \x01(\tH\x00\x88\x01\x01\x12&\n\x05perkb\x18\x02 \x01(\x0b\x32\x12.cln.FeeratesPerkbH\x01\x88\x01\x01\x12&\n\x05perkw\x18\x03 \x01(\x0b\x32\x12.cln.FeeratesPerkwH\x02\x88\x01\x01\x12\x46\n\x15onchain_fee_estimates\x18\x04 \x01(\x0b\x32\".cln.FeeratesOnchain_fee_estimatesH\x03\x88\x01\x01\x42\x1b\n\x19_warning_missing_feeratesB\x08\n\x06_perkbB\x08\n\x06_perkwB\x18\n\x16_onchain_fee_estimates\"\xd3\x03\n\rFeeratesPerkb\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkbEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkbEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\xd3\x03\n\rFeeratesPerkw\x12\x16\n\x0emin_acceptable\x18\x01 \x01(\r\x12\x16\n\x0emax_acceptable\x18\x02 \x01(\r\x12\x14\n\x07opening\x18\x03 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmutual_close\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1d\n\x10unilateral_close\x18\x05 \x01(\rH\x02\x88\x01\x01\x12\x1a\n\rdelayed_to_us\x18\x06 \x01(\rH\x03\x88\x01\x01\x12\x1c\n\x0fhtlc_resolution\x18\x07 \x01(\rH\x04\x88\x01\x01\x12\x14\n\x07penalty\x18\x08 \x01(\rH\x05\x88\x01\x01\x12.\n\testimates\x18\t \x03(\x0b\x32\x1b.cln.FeeratesPerkwEstimates\x12\x12\n\x05\x66loor\x18\n \x01(\rH\x06\x88\x01\x01\x12$\n\x17unilateral_anchor_close\x18\x0b \x01(\rH\x07\x88\x01\x01\x42\n\n\x08_openingB\x0f\n\r_mutual_closeB\x13\n\x11_unilateral_closeB\x10\n\x0e_delayed_to_usB\x12\n\x10_htlc_resolutionB\n\n\x08_penaltyB\x08\n\x06_floorB\x1a\n\x18_unilateral_anchor_close\"W\n\x16\x46\x65\x65ratesPerkwEstimates\x12\x12\n\nblockcount\x18\x01 \x01(\r\x12\x0f\n\x07\x66\x65\x65rate\x18\x02 \x01(\r\x12\x18\n\x10smoothed_feerate\x18\x03 \x01(\r\"\x9b\x02\n\x1d\x46\x65\x65ratesOnchain_fee_estimates\x12 \n\x18opening_channel_satoshis\x18\x01 \x01(\x04\x12\x1d\n\x15mutual_close_satoshis\x18\x02 \x01(\x04\x12!\n\x19unilateral_close_satoshis\x18\x03 \x01(\x04\x12\x1d\n\x15htlc_timeout_satoshis\x18\x04 \x01(\x04\x12\x1d\n\x15htlc_success_satoshis\x18\x05 \x01(\x04\x12\x30\n#unilateral_close_nonanchor_satoshis\x18\x06 \x01(\x04H\x00\x88\x01\x01\x42&\n$_unilateral_close_nonanchor_satoshis\"\xe9\x02\n\x13\x46\x65tchinvoiceRequest\x12\r\n\x05offer\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x15\n\x08quantity\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x1f\n\x12recurrence_counter\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x1d\n\x10recurrence_start\x18\x05 \x01(\x01H\x03\x88\x01\x01\x12\x1d\n\x10recurrence_label\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x14\n\x07timeout\x18\x07 \x01(\x01H\x05\x88\x01\x01\x12\x17\n\npayer_note\x18\x08 \x01(\tH\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\x0b\n\t_quantityB\x15\n\x13_recurrence_counterB\x13\n\x11_recurrence_startB\x13\n\x11_recurrence_labelB\n\n\x08_timeoutB\r\n\x0b_payer_note\"\x9a\x01\n\x14\x46\x65tchinvoiceResponse\x12\x0f\n\x07invoice\x18\x01 \x01(\t\x12)\n\x07\x63hanges\x18\x02 \x01(\x0b\x32\x18.cln.FetchinvoiceChanges\x12\x36\n\x0bnext_period\x18\x03 \x01(\x0b\x32\x1c.cln.FetchinvoiceNext_periodH\x00\x88\x01\x01\x42\x0e\n\x0c_next_period\"\x82\x02\n\x13\x46\x65tchinvoiceChanges\x12!\n\x14\x64\x65scription_appended\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1b\n\x0evendor_removed\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06vendor\x18\x04 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x42\x17\n\x15_description_appendedB\x0e\n\x0c_descriptionB\x11\n\x0f_vendor_removedB\t\n\x07_vendorB\x0e\n\x0c_amount_msat\"~\n\x17\x46\x65tchinvoiceNext_period\x12\x0f\n\x07\x63ounter\x18\x01 \x01(\x04\x12\x11\n\tstarttime\x18\x02 \x01(\x04\x12\x0f\n\x07\x65ndtime\x18\x03 \x01(\x04\x12\x17\n\x0fpaywindow_start\x18\x04 \x01(\x04\x12\x15\n\rpaywindow_end\x18\x05 \x01(\x04\"\'\n\x19\x46undchannel_cancelRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\"/\n\x1a\x46undchannel_cancelResponse\x12\x11\n\tcancelled\x18\x01 \x01(\t\"7\n\x1b\x46undchannel_completeRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"O\n\x1c\x46undchannel_completeResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"\xfb\x03\n\x12\x46undchannelRequest\x12 \n\x06\x61mount\x18\x01 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12#\n\tpush_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\tH\x05\x88\x01\x01\x12\n\n\x02id\x18\t \x01(\x0c\x12\x14\n\x07minconf\x18\n \x01(\rH\x06\x88\x01\x01\x12\x1c\n\x05utxos\x18\x0b \x03(\x0b\x32\r.cln.Outpoint\x12\x15\n\x08mindepth\x18\x0c \x01(\rH\x07\x88\x01\x01\x12!\n\x07reserve\x18\r \x01(\x0b\x32\x0b.cln.AmountH\x08\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\x0e \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\n\n\x08_minconfB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xe5\x01\n\x13\x46undchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x0e\n\x06outnum\x18\x03 \x01(\r\x12\x12\n\nchannel_id\x18\x04 \x01(\x0c\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x01\x88\x01\x01\x12\x37\n\x0c\x63hannel_type\x18\x07 \x01(\x0b\x32\x1c.cln.FundchannelChannel_typeH\x02\x88\x01\x01\x42\x0b\n\t_close_toB\x0b\n\t_mindepthB\x0f\n\r_channel_type\"L\n\x17\x46undchannelChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xd7\x02\n\x18\x46undchannel_startRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x1b\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\x07\x66\x65\x65rate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12#\n\tpush_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x15\n\x08mindepth\x18\x07 \x01(\rH\x04\x88\x01\x01\x12!\n\x07reserve\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\rB\n\n\x08_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0c\n\n_push_msatB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xf9\x01\n\x19\x46undchannel_startResponse\x12\x17\n\x0f\x66unding_address\x18\x01 \x01(\t\x12\x14\n\x0cscriptpubkey\x18\x02 \x01(\x0c\x12=\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32\".cln.Fundchannel_startChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x04 \x01(\x0cH\x01\x88\x01\x01\x12\x15\n\rwarning_usage\x18\x05 \x01(\t\x12\x15\n\x08mindepth\x18\x06 \x01(\rH\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x0b\n\t_mindepth\"R\n\x1d\x46undchannel_startChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x9d\x01\n\rGetlogRequest\x12\x32\n\x05level\x18\x01 \x01(\x0e\x32\x1e.cln.GetlogRequest.GetlogLevelH\x00\x88\x01\x01\"N\n\x0bGetlogLevel\x12\n\n\x06\x42ROKEN\x10\x00\x12\x0b\n\x07UNUSUAL\x10\x01\x12\x08\n\x04INFO\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x06\n\x02IO\x10\x04\x12\t\n\x05TRACE\x10\x05\x42\x08\n\x06_level\"h\n\x0eGetlogResponse\x12\x12\n\ncreated_at\x18\x01 \x01(\t\x12\x12\n\nbytes_used\x18\x02 \x01(\r\x12\x11\n\tbytes_max\x18\x03 \x01(\r\x12\x1b\n\x03log\x18\x04 \x03(\x0b\x32\x0e.cln.GetlogLog\"\xe8\x02\n\tGetlogLog\x12/\n\titem_type\x18\x01 \x01(\x0e\x32\x1c.cln.GetlogLog.GetlogLogType\x12\x18\n\x0bnum_skipped\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04time\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03log\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07node_id\x18\x06 \x01(\x0cH\x04\x88\x01\x01\x12\x11\n\x04\x64\x61ta\x18\x07 \x01(\x0cH\x05\x88\x01\x01\"l\n\rGetlogLogType\x12\x0b\n\x07SKIPPED\x10\x00\x12\n\n\x06\x42ROKEN\x10\x01\x12\x0b\n\x07UNUSUAL\x10\x02\x12\x08\n\x04INFO\x10\x03\x12\t\n\x05\x44\x45\x42UG\x10\x04\x12\t\n\x05IO_IN\x10\x05\x12\n\n\x06IO_OUT\x10\x06\x12\t\n\x05TRACE\x10\x07\x42\x0e\n\x0c_num_skippedB\x07\n\x05_timeB\t\n\x07_sourceB\x06\n\x04_logB\n\n\x08_node_idB\x07\n\x05_data\"\xec\x01\n\x0fGetrouteRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x12\n\nriskfactor\x18\x03 \x01(\x04\x12\x11\n\x04\x63ltv\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x13\n\x06\x66romid\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x12\x18\n\x0b\x66uzzpercent\x18\x06 \x01(\rH\x02\x88\x01\x01\x12\x0f\n\x07\x65xclude\x18\x07 \x03(\t\x12\x14\n\x07maxhops\x18\x08 \x01(\rH\x03\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountB\x07\n\x05_cltvB\t\n\x07_fromidB\x0e\n\x0c_fuzzpercentB\n\n\x08_maxhops\"5\n\x10GetrouteResponse\x12!\n\x05route\x18\x01 \x03(\x0b\x32\x12.cln.GetrouteRoute\"\xc5\x01\n\rGetrouteRoute\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\r\n\x05\x64\x65lay\x18\x05 \x01(\r\x12\x34\n\x05style\x18\x06 \x01(\x0e\x32%.cln.GetrouteRoute.GetrouteRouteStyle\"\x1d\n\x12GetrouteRouteStyle\x12\x07\n\x03TLV\x10\x00\"\xb7\x03\n\x13ListforwardsRequest\x12@\n\x06status\x18\x01 \x01(\x0e\x32+.cln.ListforwardsRequest.ListforwardsStatusH\x00\x88\x01\x01\x12\x17\n\nin_channel\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x03 \x01(\tH\x02\x88\x01\x01\x12>\n\x05index\x18\x04 \x01(\x0e\x32*.cln.ListforwardsRequest.ListforwardsIndexH\x03\x88\x01\x01\x12\x12\n\x05start\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x12\n\x05limit\x18\x06 \x01(\rH\x05\x88\x01\x01\"L\n\x12ListforwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"-\n\x11ListforwardsIndex\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x42\t\n\x07_statusB\r\n\x0b_in_channelB\x0e\n\x0c_out_channelB\x08\n\x06_indexB\x08\n\x06_startB\x08\n\x06_limit\"C\n\x14ListforwardsResponse\x12+\n\x08\x66orwards\x18\x01 \x03(\x0b\x32\x19.cln.ListforwardsForwards\"\xb4\x06\n\x14ListforwardsForwards\x12\x12\n\nin_channel\x18\x01 \x01(\t\x12\x1c\n\x07in_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x44\n\x06status\x18\x03 \x01(\x0e\x32\x34.cln.ListforwardsForwards.ListforwardsForwardsStatus\x12\x15\n\rreceived_time\x18\x04 \x01(\x01\x12\x18\n\x0bout_channel\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\"\n\x08\x66\x65\x65_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\"\n\x08out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12G\n\x05style\x18\t \x01(\x0e\x32\x33.cln.ListforwardsForwards.ListforwardsForwardsStyleH\x03\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\x04\x88\x01\x01\x12\x18\n\x0bout_htlc_id\x18\x0b \x01(\x04H\x05\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1a\n\rupdated_index\x18\r \x01(\x04H\x07\x88\x01\x01\x12\x1a\n\rresolved_time\x18\x0e \x01(\x01H\x08\x88\x01\x01\x12\x15\n\x08\x66\x61ilcode\x18\x0f \x01(\rH\t\x88\x01\x01\x12\x17\n\nfailreason\x18\x10 \x01(\tH\n\x88\x01\x01\"T\n\x1aListforwardsForwardsStatus\x12\x0b\n\x07OFFERED\x10\x00\x12\x0b\n\x07SETTLED\x10\x01\x12\x10\n\x0cLOCAL_FAILED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"0\n\x19ListforwardsForwardsStyle\x12\n\n\x06LEGACY\x10\x00\x12\x07\n\x03TLV\x10\x01\x42\x0e\n\x0c_out_channelB\x0b\n\t_fee_msatB\x0b\n\t_out_msatB\x08\n\x06_styleB\r\n\x0b_in_htlc_idB\x0e\n\x0c_out_htlc_idB\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x10\n\x0e_resolved_timeB\x0b\n\t_failcodeB\r\n\x0b_failreason\"a\n\x11ListoffersRequest\x12\x15\n\x08offer_id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x18\n\x0b\x61\x63tive_only\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\x0b\n\t_offer_idB\x0e\n\x0c_active_only\";\n\x12ListoffersResponse\x12%\n\x06offers\x18\x01 \x03(\x0b\x32\x15.cln.ListoffersOffers\"\x84\x01\n\x10ListoffersOffers\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x12\n\x05label\x18\x06 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\"\xdb\x01\n\x0fListpaysRequest\x12\x13\n\x06\x62olt11\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x12\x38\n\x06status\x18\x03 \x01(\x0e\x32#.cln.ListpaysRequest.ListpaysStatusH\x02\x88\x01\x01\"7\n\x0eListpaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0c\n\x08\x43OMPLETE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\t\n\x07_bolt11B\x0f\n\r_payment_hashB\t\n\x07_status\"3\n\x10ListpaysResponse\x12\x1f\n\x04pays\x18\x01 \x03(\x0b\x32\x11.cln.ListpaysPays\"\xff\x04\n\x0cListpaysPays\x12\x14\n\x0cpayment_hash\x18\x01 \x01(\x0c\x12\x34\n\x06status\x18\x02 \x01(\x0e\x32$.cln.ListpaysPays.ListpaysPaysStatus\x12\x18\n\x0b\x64\x65stination\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x04\x12\x12\n\x05label\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x06 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x03\x88\x01\x01\x12%\n\x0b\x61mount_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12*\n\x10\x61mount_sent_msat\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x17\n\nerroronion\x18\n \x01(\x0cH\x06\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x0b \x01(\tH\x07\x88\x01\x01\x12\x19\n\x0c\x63ompleted_at\x18\x0c \x01(\x04H\x08\x88\x01\x01\x12\x15\n\x08preimage\x18\r \x01(\x0cH\t\x88\x01\x01\x12\x1c\n\x0fnumber_of_parts\x18\x0e \x01(\x04H\n\x88\x01\x01\";\n\x12ListpaysPaysStatus\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0c\n\x08\x43OMPLETE\x10\x02\x42\x0e\n\x0c_destinationB\x08\n\x06_labelB\t\n\x07_bolt11B\t\n\x07_bolt12B\x0e\n\x0c_amount_msatB\x13\n\x11_amount_sent_msatB\r\n\x0b_erroronionB\x0e\n\x0c_descriptionB\x0f\n\r_completed_atB\x0b\n\t_preimageB\x12\n\x10_number_of_parts\"*\n\x10ListhtlcsRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x05\n\x03_id\"7\n\x11ListhtlcsResponse\x12\"\n\x05htlcs\x18\x01 \x03(\x0b\x32\x13.cln.ListhtlcsHtlcs\"\x89\x02\n\x0eListhtlcsHtlcs\x12\x18\n\x10short_channel_id\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\x04\x12\x0e\n\x06\x65xpiry\x18\x03 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12>\n\tdirection\x18\x05 \x01(\x0e\x32+.cln.ListhtlcsHtlcs.ListhtlcsHtlcsDirection\x12\x14\n\x0cpayment_hash\x18\x06 \x01(\x0c\x12\x1d\n\x05state\x18\x07 \x01(\x0e\x32\x0e.cln.HtlcState\"*\n\x17ListhtlcsHtlcsDirection\x12\x07\n\x03OUT\x10\x00\x12\x06\n\x02IN\x10\x01\"\xb2\x02\n\x17MultifundchannelRequest\x12\x37\n\x0c\x64\x65stinations\x18\x01 \x03(\x0b\x32!.cln.MultifundchannelDestinations\x12\"\n\x07\x66\x65\x65rate\x18\x02 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x14\n\x07minconf\x18\x03 \x01(\x12H\x01\x88\x01\x01\x12\x1c\n\x05utxos\x18\x04 \x03(\x0b\x32\r.cln.Outpoint\x12\x18\n\x0bminchannels\x18\x05 \x01(\x12H\x02\x88\x01\x01\x12-\n\x12\x63ommitment_feerate\x18\x06 \x01(\x0b\x32\x0c.cln.FeerateH\x03\x88\x01\x01\x42\n\n\x08_feerateB\n\n\x08_minconfB\x0e\n\x0c_minchannelsB\x15\n\x13_commitment_feerate\"\x98\x01\n\x18MultifundchannelResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\x12\x35\n\x0b\x63hannel_ids\x18\x03 \x03(\x0b\x32 .cln.MultifundchannelChannel_ids\x12+\n\x06\x66\x61iled\x18\x04 \x03(\x0b\x32\x1b.cln.MultifundchannelFailed\"\xff\x02\n\x1cMultifundchannelDestinations\x12\n\n\x02id\x18\x01 \x01(\t\x12 \n\x06\x61mount\x18\x02 \x01(\x0b\x32\x10.cln.AmountOrAll\x12\x15\n\x08\x61nnounce\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12#\n\tpush_msat\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\tH\x02\x88\x01\x01\x12%\n\x0brequest_amt\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08mindepth\x18\x08 \x01(\rH\x05\x88\x01\x01\x12!\n\x07reserve\x18\t \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x42\x0b\n\t_announceB\x0c\n\n_push_msatB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_leaseB\x0b\n\t_mindepthB\n\n\x08_reserve\"\xcb\x01\n\x1bMultifundchannelChannel_ids\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12\x12\n\nchannel_id\x18\x03 \x01(\x0c\x12G\n\x0c\x63hannel_type\x18\x04 \x01(\x0b\x32,.cln.MultifundchannelChannel_idsChannel_typeH\x00\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x05 \x01(\x0cH\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_to\"\\\n\'MultifundchannelChannel_idsChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\x93\x02\n\x16MultifundchannelFailed\x12\n\n\x02id\x18\x01 \x01(\x0c\x12H\n\x06method\x18\x02 \x01(\x0e\x32\x38.cln.MultifundchannelFailed.MultifundchannelFailedMethod\x12/\n\x05\x65rror\x18\x03 \x01(\x0b\x32 .cln.MultifundchannelFailedError\"r\n\x1cMultifundchannelFailedMethod\x12\x0b\n\x07\x43ONNECT\x10\x00\x12\x14\n\x10OPENCHANNEL_INIT\x10\x01\x12\x15\n\x11\x46UNDCHANNEL_START\x10\x02\x12\x18\n\x14\x46UNDCHANNEL_COMPLETE\x10\x03\"<\n\x1bMultifundchannelFailedError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x12\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xc1\x03\n\x0cOfferRequest\x12\x0e\n\x06\x61mount\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x06issuer\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0cquantity_max\x18\x05 \x01(\x04H\x02\x88\x01\x01\x12\x1c\n\x0f\x61\x62solute_expiry\x18\x06 \x01(\x04H\x03\x88\x01\x01\x12\x17\n\nrecurrence\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x1c\n\x0frecurrence_base\x18\x08 \x01(\tH\x05\x88\x01\x01\x12!\n\x14recurrence_paywindow\x18\t \x01(\tH\x06\x88\x01\x01\x12\x1d\n\x10recurrence_limit\x18\n \x01(\rH\x07\x88\x01\x01\x12\x17\n\nsingle_use\x18\x0b \x01(\x08H\x08\x88\x01\x01\x42\t\n\x07_issuerB\x08\n\x06_labelB\x0f\n\r_quantity_maxB\x12\n\x10_absolute_expiryB\r\n\x0b_recurrenceB\x12\n\x10_recurrence_baseB\x17\n\x15_recurrence_paywindowB\x13\n\x11_recurrence_limitB\r\n\x0b_single_use\"\x92\x01\n\rOfferResponse\x12\x10\n\x08offer_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x12\n\nsingle_use\x18\x03 \x01(\x08\x12\x0e\n\x06\x62olt12\x18\x04 \x01(\t\x12\x0c\n\x04used\x18\x05 \x01(\x08\x12\x0f\n\x07\x63reated\x18\x06 \x01(\x08\x12\x12\n\x05label\x18\x07 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_label\".\n\x18Openchannel_abortRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"Y\n\x19Openchannel_abortResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x18\n\x10\x63hannel_canceled\x18\x02 \x01(\x08\x12\x0e\n\x06reason\x18\x03 \x01(\t\"\x9f\x01\n\x17Openchannel_bumpRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12*\n\x0f\x66unding_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x1b\n\x06\x61mount\x18\x04 \x01(\x0b\x32\x0b.cln.AmountB\x12\n\x10_funding_feerate\"\x86\x02\n\x18Openchannel_bumpResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12<\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32!.cln.Openchannel_bumpChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_bumpChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"\xa0\x03\n\x17Openchannel_initRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x13\n\x0binitialpsbt\x18\x02 \x01(\t\x12-\n\x12\x63ommitment_feerate\x18\x03 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12*\n\x0f\x66unding_feerate\x18\x04 \x01(\x0b\x32\x0c.cln.FeerateH\x01\x88\x01\x01\x12\x15\n\x08\x61nnounce\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\tH\x03\x88\x01\x01\x12%\n\x0brequest_amt\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x04\x88\x01\x01\x12\x1a\n\rcompact_lease\x18\x08 \x01(\x0cH\x05\x88\x01\x01\x12\x14\n\x0c\x63hannel_type\x18\t \x03(\r\x12\x1b\n\x06\x61mount\x18\n \x01(\x0b\x32\x0b.cln.AmountB\x15\n\x13_commitment_feerateB\x12\n\x10_funding_feerateB\x0b\n\t_announceB\x0b\n\t_close_toB\x0e\n\x0c_request_amtB\x10\n\x0e_compact_lease\"\x86\x02\n\x18Openchannel_initResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12<\n\x0c\x63hannel_type\x18\x03 \x01(\x0b\x32!.cln.Openchannel_initChannel_typeH\x00\x88\x01\x01\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_serial\x18\x05 \x01(\x04\x12&\n\x19requires_confirmed_inputs\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0f\n\r_channel_typeB\x1c\n\x1a_requires_confirmed_inputs\"Q\n\x1cOpenchannel_initChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"D\n\x19Openchannel_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x13\n\x0bsigned_psbt\x18\x02 \x01(\t\"J\n\x1aOpenchannel_signedResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\n\n\x02tx\x18\x02 \x01(\x0c\x12\x0c\n\x04txid\x18\x03 \x01(\x0c\"=\n\x19Openchannel_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"\xae\x02\n\x1aOpenchannel_updateResponse\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12>\n\x0c\x63hannel_type\x18\x02 \x01(\x0b\x32#.cln.Openchannel_updateChannel_typeH\x00\x88\x01\x01\x12\x0c\n\x04psbt\x18\x03 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x04 \x01(\x08\x12\x16\n\x0e\x66unding_outnum\x18\x05 \x01(\r\x12\x15\n\x08\x63lose_to\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12&\n\x19requires_confirmed_inputs\x18\x07 \x01(\x08H\x02\x88\x01\x01\x42\x0f\n\r_channel_typeB\x0b\n\t_close_toB\x1c\n\x1a_requires_confirmed_inputs\"S\n\x1eOpenchannel_updateChannel_type\x12\x0c\n\x04\x62its\x18\x01 \x03(\r\x12#\n\x05names\x18\x02 \x03(\x0e\x32\x14.cln.ChannelTypeName\"Y\n\x0bPingRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x10\n\x03len\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x16\n\tpongbytes\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x06\n\x04_lenB\x0c\n\n_pongbytes\"\x1e\n\x0cPingResponse\x12\x0e\n\x06totlen\x18\x01 \x01(\r\"\x91\x01\n\rPluginRequest\x12)\n\nsubcommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12\x13\n\x06plugin\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tdirectory\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x07options\x18\x04 \x03(\tB\t\n\x07_pluginB\x0c\n\n_directory\"}\n\x0ePluginResponse\x12&\n\x07\x63ommand\x18\x01 \x01(\x0e\x32\x15.cln.PluginSubcommand\x12#\n\x07plugins\x18\x02 \x03(\x0b\x32\x12.cln.PluginPlugins\x12\x13\n\x06result\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\t\n\x07_result\">\n\rPluginPlugins\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x0f\n\x07\x64ynamic\x18\x03 \x01(\x08\"<\n\x14RenepaystatusRequest\x12\x16\n\tinvstring\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_invstring\"G\n\x15RenepaystatusResponse\x12.\n\tpaystatus\x18\x01 \x03(\x0b\x32\x1b.cln.RenepaystatusPaystatus\"\xe2\x03\n\x16RenepaystatusPaystatus\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\x12\x1d\n\x10payment_preimage\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12\x12\n\ncreated_at\x18\x04 \x01(\x01\x12\x0f\n\x07groupid\x18\x05 \x01(\r\x12\x12\n\x05parts\x18\x06 \x01(\rH\x01\x88\x01\x01\x12 \n\x0b\x61mount_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x10\x61mount_sent_msat\x18\x08 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12H\n\x06status\x18\t \x01(\x0e\x32\x38.cln.RenepaystatusPaystatus.RenepaystatusPaystatusStatus\x12\x18\n\x0b\x64\x65stination\x18\n \x01(\x0cH\x03\x88\x01\x01\x12\r\n\x05notes\x18\x0b \x03(\t\"E\n\x1cRenepaystatusPaystatusStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x13\n\x11_payment_preimageB\x08\n\x06_partsB\x13\n\x11_amount_sent_msatB\x0e\n\x0c_destination\"\xc9\x02\n\x0eRenepayRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12 \n\x06maxfee\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12\x15\n\x08maxdelay\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x16\n\tretry_for\x18\x05 \x01(\rH\x03\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x12\n\x05label\x18\x07 \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0e\x64\x65v_use_shadow\x18\x08 \x01(\x08H\x06\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\t\n\x07_maxfeeB\x0b\n\t_maxdelayB\x0c\n\n_retry_forB\x0e\n\x0c_descriptionB\x08\n\x06_labelB\x11\n\x0f_dev_use_shadow\"\xc3\x02\n\x0fRenepayResponse\x12\x18\n\x10payment_preimage\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12\x12\n\ncreated_at\x18\x03 \x01(\x01\x12\r\n\x05parts\x18\x04 \x01(\r\x12 \n\x0b\x61mount_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x10\x61mount_sent_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12\x32\n\x06status\x18\x07 \x01(\x0e\x32\".cln.RenepayResponse.RenepayStatus\x12\x18\n\x0b\x64\x65stination\x18\x08 \x01(\x0cH\x00\x88\x01\x01\"6\n\rRenepayStatus\x12\x0c\n\x08\x43OMPLETE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x42\x0e\n\x0c_destination\"l\n\x14ReserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x16\n\texclusive\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x14\n\x07reserve\x18\x03 \x01(\rH\x01\x88\x01\x01\x42\x0c\n\n_exclusiveB\n\n\x08_reserve\"M\n\x15ReserveinputsResponse\x12\x34\n\x0creservations\x18\x01 \x03(\x0b\x32\x1e.cln.ReserveinputsReservations\"z\n\x19ReserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x19\n\x11reserved_to_block\x18\x05 \x01(\r\"4\n\x14SendcustommsgRequest\x12\x0f\n\x07node_id\x18\x01 \x01(\x0c\x12\x0b\n\x03msg\x18\x02 \x01(\x0c\"\'\n\x15SendcustommsgResponse\x12\x0e\n\x06status\x18\x01 \x01(\t\"\xb0\x01\n\x12SendinvoiceRequest\x12\x0e\n\x06invreq\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12%\n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08quantity\x18\x05 \x01(\x04H\x02\x88\x01\x01\x42\x0e\n\x0c_amount_msatB\n\n\x08_timeoutB\x0b\n\t_quantity\"\xcf\x04\n\x13SendinvoiceResponse\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpayment_hash\x18\x03 \x01(\x0c\x12:\n\x06status\x18\x04 \x01(\x0e\x32*.cln.SendinvoiceResponse.SendinvoiceStatus\x12\x12\n\nexpires_at\x18\x05 \x01(\x04\x12%\n\x0b\x61mount_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\rcreated_index\x18\x08 \x01(\x04H\x02\x88\x01\x01\x12\x1a\n\rupdated_index\x18\t \x01(\x04H\x03\x88\x01\x01\x12\x16\n\tpay_index\x18\n \x01(\x04H\x04\x88\x01\x01\x12.\n\x14\x61mount_received_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x05\x88\x01\x01\x12\x14\n\x07paid_at\x18\x0c \x01(\x04H\x06\x88\x01\x01\x12\x1d\n\x10payment_preimage\x18\r \x01(\x0cH\x07\x88\x01\x01\"6\n\x11SendinvoiceStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x42\x0e\n\x0c_amount_msatB\t\n\x07_bolt12B\x10\n\x0e_created_indexB\x10\n\x0e_updated_indexB\x0c\n\n_pay_indexB\x17\n\x15_amount_received_msatB\n\n\x08_paid_atB\x13\n\x11_payment_preimage\"f\n\x17SendonionmessageRequest\x12\x10\n\x08\x66irst_id\x18\x01 \x01(\x0c\x12\x10\n\x08\x62linding\x18\x02 \x01(\x0c\x12\'\n\x04hops\x18\x03 \x03(\x0b\x32\x19.cln.SendonionmessageHops\"\x1a\n\x18SendonionmessageResponse\"1\n\x14SendonionmessageHops\x12\x0c\n\x04node\x18\x01 \x01(\x0c\x12\x0b\n\x03tlv\x18\x02 \x01(\r\"\xaa\x02\n\x11SetchannelRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x07\x66\x65\x65\x62\x61se\x18\x02 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x13\n\x06\x66\x65\x65ppm\x18\x03 \x01(\rH\x01\x88\x01\x01\x12!\n\x07htlcmin\x18\x04 \x01(\x0b\x32\x0b.cln.AmountH\x02\x88\x01\x01\x12!\n\x07htlcmax\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x19\n\x0c\x65nforcedelay\x18\x06 \x01(\rH\x04\x88\x01\x01\x12\x1c\n\x0fignorefeelimits\x18\x07 \x01(\x08H\x05\x88\x01\x01\x42\n\n\x08_feebaseB\t\n\x07_feeppmB\n\n\x08_htlcminB\n\n\x08_htlcmaxB\x0f\n\r_enforcedelayB\x12\n\x10_ignorefeelimits\"?\n\x12SetchannelResponse\x12)\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x17.cln.SetchannelChannels\"\xca\x03\n\x12SetchannelChannels\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x12\n\nchannel_id\x18\x02 \x01(\x0c\x12\x1d\n\x10short_channel_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\"\n\rfee_base_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x1b\x66\x65\x65_proportional_millionths\x18\x05 \x01(\r\x12*\n\x15minimum_htlc_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x17warning_htlcmin_too_low\x18\x07 \x01(\tH\x01\x88\x01\x01\x12*\n\x15maximum_htlc_out_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12%\n\x18warning_htlcmax_too_high\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11ignore_fee_limits\x18\n \x01(\x08H\x03\x88\x01\x01\x42\x13\n\x11_short_channel_idB\x1a\n\x18_warning_htlcmin_too_lowB\x1b\n\x19_warning_htlcmax_too_highB\x14\n\x12_ignore_fee_limits\"<\n\x10SetconfigRequest\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x10\n\x03val\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x06\n\x04_val\"9\n\x11SetconfigResponse\x12$\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x14.cln.SetconfigConfig\"\xa5\x02\n\x0fSetconfigConfig\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x06plugin\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07\x64ynamic\x18\x04 \x01(\x08\x12\x10\n\x03set\x18\x05 \x01(\x08H\x01\x88\x01\x01\x12\x16\n\tvalue_str\x18\x06 \x01(\tH\x02\x88\x01\x01\x12$\n\nvalue_msat\x18\x07 \x01(\x0b\x32\x0b.cln.AmountH\x03\x88\x01\x01\x12\x16\n\tvalue_int\x18\x08 \x01(\x12H\x04\x88\x01\x01\x12\x17\n\nvalue_bool\x18\t \x01(\x08H\x05\x88\x01\x01\x42\t\n\x07_pluginB\x06\n\x04_setB\x0c\n\n_value_strB\r\n\x0b_value_msatB\x0c\n\n_value_intB\r\n\x0b_value_bool\"6\n\x15SetpsbtversionRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\r\"&\n\x16SetpsbtversionResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"\'\n\x12SigninvoiceRequest\x12\x11\n\tinvstring\x18\x01 \x01(\t\"%\n\x13SigninvoiceResponse\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"%\n\x12SignmessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\t\"F\n\x13SignmessageResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\r\n\x05recid\x18\x02 \x01(\x0c\x12\r\n\x05zbase\x18\x03 \x01(\t\"\xc9\x01\n\x12Splice_initRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x17\n\x0frelative_amount\x18\x02 \x01(\x12\x12\x18\n\x0binitialpsbt\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0e\x66\x65\x65rate_per_kw\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1a\n\rforce_feerate\x18\x05 \x01(\x08H\x02\x88\x01\x01\x42\x0e\n\x0c_initialpsbtB\x11\n\x0f_feerate_per_kwB\x10\n\x0e_force_feerate\"#\n\x13Splice_initResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\"`\n\x14Splice_signedRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\x12\x17\n\nsign_first\x18\x03 \x01(\x08H\x00\x88\x01\x01\x42\r\n\x0b_sign_first\"1\n\x15Splice_signedResponse\x12\n\n\x02tx\x18\x01 \x01(\x0c\x12\x0c\n\x04txid\x18\x02 \x01(\x0c\"8\n\x14Splice_updateRequest\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\x12\x0c\n\x04psbt\x18\x02 \x01(\t\"B\n\x15Splice_updateResponse\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x1b\n\x13\x63ommitments_secured\x18\x02 \x01(\x08\"H\n\x16UnreserveinputsRequest\x12\x0c\n\x04psbt\x18\x01 \x01(\t\x12\x14\n\x07reserve\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_reserve\"Q\n\x17UnreserveinputsResponse\x12\x36\n\x0creservations\x18\x01 \x03(\x0b\x32 .cln.UnreserveinputsReservations\"\x97\x01\n\x1bUnreserveinputsReservations\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x0c\n\x04vout\x18\x02 \x01(\r\x12\x14\n\x0cwas_reserved\x18\x03 \x01(\x08\x12\x10\n\x08reserved\x18\x04 \x01(\x08\x12\x1e\n\x11reserved_to_block\x18\x05 \x01(\rH\x00\x88\x01\x01\x42\x14\n\x12_reserved_to_block\"n\n\x14UpgradewalletRequest\x12\"\n\x07\x66\x65\x65rate\x18\x01 \x01(\x0b\x32\x0c.cln.FeerateH\x00\x88\x01\x01\x12\x17\n\nreservedok\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\n\n\x08_feerateB\r\n\x0b_reservedok\"\x95\x01\n\x15UpgradewalletResponse\x12\x1a\n\rupgraded_outs\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x11\n\x04psbt\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x02tx\x18\x03 \x01(\x0cH\x02\x88\x01\x01\x12\x11\n\x04txid\x18\x04 \x01(\x0cH\x03\x88\x01\x01\x42\x10\n\x0e_upgraded_outsB\x07\n\x05_psbtB\x05\n\x03_txB\x07\n\x05_txid\"O\n\x16WaitblockheightRequest\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\x12\x14\n\x07timeout\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\n\n\x08_timeout\".\n\x17WaitblockheightResponse\x12\x13\n\x0b\x62lockheight\x18\x01 \x01(\r\"\xf9\x01\n\x0bWaitRequest\x12\x31\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitSubsystem\x12\x31\n\tindexname\x18\x02 \x01(\x0e\x32\x1e.cln.WaitRequest.WaitIndexname\x12\x11\n\tnextvalue\x18\x03 \x01(\x04\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\"6\n\rWaitIndexname\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0b\n\x07UPDATED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\"\x97\x02\n\x0cWaitResponse\x12\x32\n\tsubsystem\x18\x01 \x01(\x0e\x32\x1f.cln.WaitResponse.WaitSubsystem\x12\x14\n\x07\x63reated\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07updated\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x14\n\x07\x64\x65leted\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12&\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32\x10.cln.WaitDetailsH\x03\x88\x01\x01\"9\n\rWaitSubsystem\x12\x0c\n\x08INVOICES\x10\x00\x12\x0c\n\x08\x46ORWARDS\x10\x01\x12\x0c\n\x08SENDPAYS\x10\x02\x42\n\n\x08_createdB\n\n\x08_updatedB\n\n\x08_deletedB\n\n\x08_details\"\xfc\x04\n\x0bWaitDetails\x12\x37\n\x06status\x18\x01 \x01(\x0e\x32\".cln.WaitDetails.WaitDetailsStatusH\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06\x62olt11\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x13\n\x06\x62olt12\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x13\n\x06partid\x18\x06 \x01(\x04H\x05\x88\x01\x01\x12\x14\n\x07groupid\x18\x07 \x01(\x04H\x06\x88\x01\x01\x12\x19\n\x0cpayment_hash\x18\x08 \x01(\x0cH\x07\x88\x01\x01\x12\x17\n\nin_channel\x18\t \x01(\tH\x08\x88\x01\x01\x12\x17\n\nin_htlc_id\x18\n \x01(\x04H\t\x88\x01\x01\x12!\n\x07in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\n\x88\x01\x01\x12\x18\n\x0bout_channel\x18\x0c \x01(\tH\x0b\x88\x01\x01\"\x89\x01\n\x11WaitDetailsStatus\x12\n\n\x06UNPAID\x10\x00\x12\x08\n\x04PAID\x10\x01\x12\x0b\n\x07\x45XPIRED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x43OMPLETE\x10\x05\x12\x0b\n\x07OFFERED\x10\x06\x12\x0b\n\x07SETTLED\x10\x07\x12\x10\n\x0cLOCAL_FAILED\x10\x08\x42\t\n\x07_statusB\x08\n\x06_labelB\x0e\n\x0c_descriptionB\t\n\x07_bolt11B\t\n\x07_bolt12B\t\n\x07_partidB\n\n\x08_groupidB\x0f\n\r_payment_hashB\r\n\x0b_in_channelB\r\n\x0b_in_htlc_idB\n\n\x08_in_msatB\x0e\n\x0c_out_channel\"\r\n\x0bStopRequest\"q\n\x0cStopResponse\x12\x31\n\x06result\x18\x01 \x01(\x0e\x32\x1c.cln.StopResponse.StopResultH\x00\x88\x01\x01\"#\n\nStopResult\x12\x15\n\x11SHUTDOWN_COMPLETE\x10\x00\x42\t\n\x07_result\"g\n\x18PreapprovekeysendRequest\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\x0c\x12\x14\n\x0cpayment_hash\x18\x02 \x01(\x0c\x12 \n\x0b\x61mount_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\"\x1b\n\x19PreapprovekeysendResponse\"*\n\x18PreapproveinvoiceRequest\x12\x0e\n\x06\x62olt11\x18\x01 \x01(\t\"\x1b\n\x19PreapproveinvoiceResponse\"\x15\n\x13StaticbackupRequest\"#\n\x14StaticbackupResponse\x12\x0b\n\x03scb\x18\x01 \x03(\x0c\"d\n\x16\x42kprchannelsapyRequest\x12\x17\n\nstart_time\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x02 \x01(\x04H\x01\x88\x01\x01\x42\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x17\x42kprchannelsapyResponse\x12\x36\n\x0c\x63hannels_apy\x18\x01 \x03(\x0b\x32 .cln.BkprchannelsapyChannels_apy\"\xfa\x06\n\x1b\x42kprchannelsapyChannels_apy\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12$\n\x0frouted_out_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0erouted_in_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12(\n\x13lease_fee_paid_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12*\n\x15lease_fee_earned_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12$\n\x0fpushed_out_msat\x18\x06 \x01(\x0b\x32\x0b.cln.Amount\x12#\n\x0epushed_in_msat\x18\x07 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x16our_start_balance_msat\x18\x08 \x01(\x0b\x32\x0b.cln.Amount\x12/\n\x1a\x63hannel_start_balance_msat\x18\t \x01(\x0b\x32\x0b.cln.Amount\x12\"\n\rfees_out_msat\x18\n \x01(\x0b\x32\x0b.cln.Amount\x12&\n\x0c\x66\x65\x65s_in_msat\x18\x0b \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12\x17\n\x0futilization_out\x18\x0c \x01(\t\x12$\n\x17utilization_out_initial\x18\r \x01(\tH\x01\x88\x01\x01\x12\x16\n\x0eutilization_in\x18\x0e \x01(\t\x12#\n\x16utilization_in_initial\x18\x0f \x01(\tH\x02\x88\x01\x01\x12\x0f\n\x07\x61py_out\x18\x10 \x01(\t\x12\x1c\n\x0f\x61py_out_initial\x18\x11 \x01(\tH\x03\x88\x01\x01\x12\x0e\n\x06\x61py_in\x18\x12 \x01(\t\x12\x1b\n\x0e\x61py_in_initial\x18\x13 \x01(\tH\x04\x88\x01\x01\x12\x11\n\tapy_total\x18\x14 \x01(\t\x12\x1e\n\x11\x61py_total_initial\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x16\n\tapy_lease\x18\x16 \x01(\tH\x06\x88\x01\x01\x42\x0f\n\r_fees_in_msatB\x1a\n\x18_utilization_out_initialB\x19\n\x17_utilization_in_initialB\x12\n\x10_apy_out_initialB\x11\n\x0f_apy_in_initialB\x14\n\x12_apy_total_initialB\x0c\n\n_apy_lease\"\xd2\x01\n\x18\x42kprdumpincomecsvRequest\x12\x12\n\ncsv_format\x18\x01 \x01(\t\x12\x15\n\x08\x63sv_file\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10\x63onsolidate_fees\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x17\n\nstart_time\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x05 \x01(\x04H\x03\x88\x01\x01\x42\x0b\n\t_csv_fileB\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"\xd6\x01\n\x19\x42kprdumpincomecsvResponse\x12\x10\n\x08\x63sv_file\x18\x01 \x01(\t\x12N\n\ncsv_format\x18\x02 \x01(\x0e\x32:.cln.BkprdumpincomecsvResponse.BkprdumpincomecsvCsv_format\"W\n\x1b\x42kprdumpincomecsvCsv_format\x12\x0f\n\x0b\x43OINTRACKER\x10\x00\x12\n\n\x06KOINLY\x10\x01\x12\x0b\n\x07HARMONY\x10\x02\x12\x0e\n\nQUICKBOOKS\x10\x03\"%\n\x12\x42kprinspectRequest\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\"7\n\x13\x42kprinspectResponse\x12 \n\x03txs\x18\x01 \x03(\x0b\x32\x13.cln.BkprinspectTxs\"\x9a\x01\n\x0e\x42kprinspectTxs\x12\x0c\n\x04txid\x18\x01 \x01(\x0c\x12\x18\n\x0b\x62lockheight\x18\x02 \x01(\rH\x00\x88\x01\x01\x12#\n\x0e\x66\x65\x65s_paid_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12+\n\x07outputs\x18\x04 \x03(\x0b\x32\x1a.cln.BkprinspectTxsOutputsB\x0e\n\x0c_blockheight\"\xbc\x03\n\x15\x42kprinspectTxsOutputs\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06outnum\x18\x02 \x01(\r\x12&\n\x11output_value_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x04 \x01(\t\x12%\n\x0b\x63redit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.AmountH\x00\x88\x01\x01\x12$\n\ndebit_msat\x18\x06 \x01(\x0b\x32\x0b.cln.AmountH\x01\x88\x01\x01\x12 \n\x13originating_account\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x17\n\noutput_tag\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x16\n\tspend_tag\x18\t \x01(\tH\x04\x88\x01\x01\x12\x1a\n\rspending_txid\x18\n \x01(\x0cH\x05\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x06\x88\x01\x01\x42\x0e\n\x0c_credit_msatB\r\n\x0b_debit_msatB\x16\n\x14_originating_accountB\r\n\x0b_output_tagB\x0c\n\n_spend_tagB\x10\n\x0e_spending_txidB\r\n\x0b_payment_id\"@\n\x1c\x42kprlistaccounteventsRequest\x12\x14\n\x07\x61\x63\x63ount\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_account\"Q\n\x1d\x42kprlistaccounteventsResponse\x12\x30\n\x06\x65vents\x18\x01 \x03(\x0b\x32 .cln.BkprlistaccounteventsEvents\"\xa1\x05\n\x1b\x42kprlistaccounteventsEvents\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12S\n\titem_type\x18\x02 \x01(\x0e\x32@.cln.BkprlistaccounteventsEvents.BkprlistaccounteventsEventsType\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x05 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x06 \x01(\t\x12\x11\n\ttimestamp\x18\x07 \x01(\r\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x62lockheight\x18\t \x01(\rH\x01\x88\x01\x01\x12\x13\n\x06origin\x18\n \x01(\tH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\x0b \x01(\x0cH\x03\x88\x01\x01\x12\x11\n\x04txid\x18\x0c \x01(\x0cH\x04\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\x05\x88\x01\x01\x12#\n\tfees_msat\x18\x0e \x01(\x0b\x32\x0b.cln.AmountH\x06\x88\x01\x01\x12\x19\n\x0cis_rebalance\x18\x0f \x01(\x08H\x07\x88\x01\x01\x12\x14\n\x07part_id\x18\x10 \x01(\rH\x08\x88\x01\x01\"J\n\x1f\x42kprlistaccounteventsEventsType\x12\x0f\n\x0bONCHAIN_FEE\x10\x00\x12\t\n\x05\x43HAIN\x10\x01\x12\x0b\n\x07\x43HANNEL\x10\x02\x42\x0b\n\t_outpointB\x0e\n\x0c_blockheightB\t\n\x07_originB\r\n\x0b_payment_idB\x07\n\x05_txidB\x0e\n\x0c_descriptionB\x0c\n\n_fees_msatB\x0f\n\r_is_rebalanceB\n\n\x08_part_id\"\x19\n\x17\x42kprlistbalancesRequest\"K\n\x18\x42kprlistbalancesResponse\x12/\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x1d.cln.BkprlistbalancesAccounts\"\xc6\x02\n\x18\x42kprlistbalancesAccounts\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x37\n\x08\x62\x61lances\x18\x02 \x03(\x0b\x32%.cln.BkprlistbalancesAccountsBalances\x12\x14\n\x07peer_id\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12\x16\n\twe_opened\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x0e\x61\x63\x63ount_closed\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x1d\n\x10\x61\x63\x63ount_resolved\x18\x06 \x01(\x08H\x03\x88\x01\x01\x12\x1e\n\x11resolved_at_block\x18\x07 \x01(\rH\x04\x88\x01\x01\x42\n\n\x08_peer_idB\x0c\n\n_we_openedB\x11\n\x0f_account_closedB\x13\n\x11_account_resolvedB\x14\n\x12_resolved_at_block\"X\n BkprlistbalancesAccountsBalances\x12!\n\x0c\x62\x61lance_msat\x18\x01 \x01(\x0b\x32\x0b.cln.Amount\x12\x11\n\tcoin_type\x18\x02 \x01(\t\"\x97\x01\n\x15\x42kprlistincomeRequest\x12\x1d\n\x10\x63onsolidate_fees\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x17\n\nstart_time\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x08\x65nd_time\x18\x03 \x01(\rH\x02\x88\x01\x01\x42\x13\n\x11_consolidate_feesB\r\n\x0b_start_timeB\x0b\n\t_end_time\"Q\n\x16\x42kprlistincomeResponse\x12\x37\n\rincome_events\x18\x01 \x03(\x0b\x32 .cln.BkprlistincomeIncome_events\"\xb5\x02\n\x1b\x42kprlistincomeIncome_events\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0b\n\x03tag\x18\x02 \x01(\t\x12 \n\x0b\x63redit_msat\x18\x03 \x01(\x0b\x32\x0b.cln.Amount\x12\x1f\n\ndebit_msat\x18\x04 \x01(\x0b\x32\x0b.cln.Amount\x12\x10\n\x08\x63urrency\x18\x05 \x01(\t\x12\x11\n\ttimestamp\x18\x06 \x01(\r\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08outpoint\x18\x08 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04txid\x18\t \x01(\x0cH\x02\x88\x01\x01\x12\x17\n\npayment_id\x18\n \x01(\x0cH\x03\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x0b\n\t_outpointB\x07\n\x05_txidB\r\n\x0b_payment_id\"\x19\n\x17StreamBlockAddedRequest\"6\n\x16\x42lockAddedNotification\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\x0e\n\x06height\x18\x02 \x01(\r\" \n\x1eStreamChannelOpenFailedRequest\"3\n\x1d\x43hannelOpenFailedNotification\x12\x12\n\nchannel_id\x18\x01 \x01(\x0c\"\x1c\n\x1aStreamChannelOpenedRequest\"\x83\x01\n\x19\x43hannelOpenedNotification\x12\x0f\n\x02id\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12!\n\x0c\x66unding_msat\x18\x02 \x01(\x0b\x32\x0b.cln.Amount\x12\x14\n\x0c\x66unding_txid\x18\x03 \x01(\x0c\x12\x15\n\rchannel_ready\x18\x04 \x01(\x08\x42\x05\n\x03_id\"\x16\n\x14StreamConnectRequest\"\xbe\x01\n\x17PeerConnectNotification\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x44\n\tdirection\x18\x02 \x01(\x0e\x32\x31.cln.PeerConnectNotification.PeerConnectDirection\x12(\n\x07\x61\x64\x64ress\x18\x03 \x01(\x0b\x32\x17.cln.PeerConnectAddress\"\'\n\x14PeerConnectDirection\x12\x06\n\x02IN\x10\x00\x12\x07\n\x03OUT\x10\x01\"\x8b\x02\n\x12PeerConnectAddress\x12\x41\n\titem_type\x18\x01 \x01(\x0e\x32..cln.PeerConnectAddress.PeerConnectAddressType\x12\x13\n\x06socket\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x61\x64\x64ress\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04port\x18\x04 \x01(\rH\x02\x88\x01\x01\"T\n\x16PeerConnectAddressType\x12\x10\n\x0cLOCAL_SOCKET\x10\x00\x12\x08\n\x04IPV4\x10\x01\x12\x08\n\x04IPV6\x10\x02\x12\t\n\x05TORV2\x10\x03\x12\t\n\x05TORV3\x10\x04\x42\t\n\x07_socketB\n\n\x08_addressB\x07\n\x05_port\"\x18\n\x16StreamCustomMsgRequest\"9\n\x15\x43ustomMsgNotification\x12\x0f\n\x07peer_id\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x32\x9f\x37\n\x04Node\x12\x36\n\x07Getinfo\x12\x13.cln.GetinfoRequest\x1a\x14.cln.GetinfoResponse\"\x00\x12<\n\tListPeers\x12\x15.cln.ListpeersRequest\x1a\x16.cln.ListpeersResponse\"\x00\x12<\n\tListFunds\x12\x15.cln.ListfundsRequest\x1a\x16.cln.ListfundsResponse\"\x00\x12\x36\n\x07SendPay\x12\x13.cln.SendpayRequest\x1a\x14.cln.SendpayResponse\"\x00\x12\x45\n\x0cListChannels\x12\x18.cln.ListchannelsRequest\x1a\x19.cln.ListchannelsResponse\"\x00\x12<\n\tAddGossip\x12\x15.cln.AddgossipRequest\x1a\x16.cln.AddgossipResponse\"\x00\x12Q\n\x10\x41utoCleanInvoice\x12\x1c.cln.AutocleaninvoiceRequest\x1a\x1d.cln.AutocleaninvoiceResponse\"\x00\x12H\n\rAutoCleanOnce\x12\x19.cln.AutocleanonceRequest\x1a\x1a.cln.AutocleanonceResponse\"\x00\x12N\n\x0f\x41utoCleanStatus\x12\x1b.cln.AutocleanstatusRequest\x1a\x1c.cln.AutocleanstatusResponse\"\x00\x12\x45\n\x0c\x43heckMessage\x12\x18.cln.CheckmessageRequest\x1a\x19.cln.CheckmessageResponse\"\x00\x12\x30\n\x05\x43lose\x12\x11.cln.CloseRequest\x1a\x12.cln.CloseResponse\"\x00\x12:\n\x0b\x43onnectPeer\x12\x13.cln.ConnectRequest\x1a\x14.cln.ConnectResponse\"\x00\x12H\n\rCreateInvoice\x12\x19.cln.CreateinvoiceRequest\x1a\x1a.cln.CreateinvoiceResponse\"\x00\x12<\n\tDatastore\x12\x15.cln.DatastoreRequest\x1a\x16.cln.DatastoreResponse\"\x00\x12K\n\x0e\x44\x61tastoreUsage\x12\x1a.cln.DatastoreusageRequest\x1a\x1b.cln.DatastoreusageResponse\"\x00\x12\x42\n\x0b\x43reateOnion\x12\x17.cln.CreateonionRequest\x1a\x18.cln.CreateonionResponse\"\x00\x12\x45\n\x0c\x44\x65lDatastore\x12\x18.cln.DeldatastoreRequest\x1a\x19.cln.DeldatastoreResponse\"\x00\x12?\n\nDelInvoice\x12\x16.cln.DelinvoiceRequest\x1a\x17.cln.DelinvoiceResponse\"\x00\x12\x36\n\x07Invoice\x12\x13.cln.InvoiceRequest\x1a\x14.cln.InvoiceResponse\"\x00\x12H\n\rListDatastore\x12\x19.cln.ListdatastoreRequest\x1a\x1a.cln.ListdatastoreResponse\"\x00\x12\x45\n\x0cListInvoices\x12\x18.cln.ListinvoicesRequest\x1a\x19.cln.ListinvoicesResponse\"\x00\x12<\n\tSendOnion\x12\x15.cln.SendonionRequest\x1a\x16.cln.SendonionResponse\"\x00\x12\x45\n\x0cListSendPays\x12\x18.cln.ListsendpaysRequest\x1a\x19.cln.ListsendpaysResponse\"\x00\x12Q\n\x10ListTransactions\x12\x1c.cln.ListtransactionsRequest\x1a\x1d.cln.ListtransactionsResponse\"\x00\x12*\n\x03Pay\x12\x0f.cln.PayRequest\x1a\x10.cln.PayResponse\"\x00\x12<\n\tListNodes\x12\x15.cln.ListnodesRequest\x1a\x16.cln.ListnodesResponse\"\x00\x12K\n\x0eWaitAnyInvoice\x12\x1a.cln.WaitanyinvoiceRequest\x1a\x1b.cln.WaitanyinvoiceResponse\"\x00\x12\x42\n\x0bWaitInvoice\x12\x17.cln.WaitinvoiceRequest\x1a\x18.cln.WaitinvoiceResponse\"\x00\x12\x42\n\x0bWaitSendPay\x12\x17.cln.WaitsendpayRequest\x1a\x18.cln.WaitsendpayResponse\"\x00\x12\x36\n\x07NewAddr\x12\x13.cln.NewaddrRequest\x1a\x14.cln.NewaddrResponse\"\x00\x12\x39\n\x08Withdraw\x12\x14.cln.WithdrawRequest\x1a\x15.cln.WithdrawResponse\"\x00\x12\x36\n\x07KeySend\x12\x13.cln.KeysendRequest\x1a\x14.cln.KeysendResponse\"\x00\x12\x39\n\x08\x46undPsbt\x12\x14.cln.FundpsbtRequest\x1a\x15.cln.FundpsbtResponse\"\x00\x12\x39\n\x08SendPsbt\x12\x14.cln.SendpsbtRequest\x1a\x15.cln.SendpsbtResponse\"\x00\x12\x39\n\x08SignPsbt\x12\x14.cln.SignpsbtRequest\x1a\x15.cln.SignpsbtResponse\"\x00\x12\x39\n\x08UtxoPsbt\x12\x14.cln.UtxopsbtRequest\x1a\x15.cln.UtxopsbtResponse\"\x00\x12<\n\tTxDiscard\x12\x15.cln.TxdiscardRequest\x1a\x16.cln.TxdiscardResponse\"\x00\x12<\n\tTxPrepare\x12\x15.cln.TxprepareRequest\x1a\x16.cln.TxprepareResponse\"\x00\x12\x33\n\x06TxSend\x12\x12.cln.TxsendRequest\x1a\x13.cln.TxsendResponse\"\x00\x12Q\n\x10ListPeerChannels\x12\x1c.cln.ListpeerchannelsRequest\x1a\x1d.cln.ListpeerchannelsResponse\"\x00\x12W\n\x12ListClosedChannels\x12\x1e.cln.ListclosedchannelsRequest\x1a\x1f.cln.ListclosedchannelsResponse\"\x00\x12<\n\tDecodePay\x12\x15.cln.DecodepayRequest\x1a\x16.cln.DecodepayResponse\"\x00\x12\x33\n\x06\x44\x65\x63ode\x12\x12.cln.DecodeRequest\x1a\x13.cln.DecodeResponse\"\x00\x12\x33\n\x06\x44\x65lPay\x12\x12.cln.DelpayRequest\x1a\x13.cln.DelpayResponse\"\x00\x12?\n\nDelForward\x12\x16.cln.DelforwardRequest\x1a\x17.cln.DelforwardResponse\"\x00\x12\x45\n\x0c\x44isableOffer\x12\x18.cln.DisableofferRequest\x1a\x19.cln.DisableofferResponse\"\x00\x12?\n\nDisconnect\x12\x16.cln.DisconnectRequest\x1a\x17.cln.DisconnectResponse\"\x00\x12\x39\n\x08\x46\x65\x65rates\x12\x14.cln.FeeratesRequest\x1a\x15.cln.FeeratesResponse\"\x00\x12\x45\n\x0c\x46\x65tchInvoice\x12\x18.cln.FetchinvoiceRequest\x1a\x19.cln.FetchinvoiceResponse\"\x00\x12W\n\x12\x46undChannel_Cancel\x12\x1e.cln.Fundchannel_cancelRequest\x1a\x1f.cln.Fundchannel_cancelResponse\"\x00\x12]\n\x14\x46undChannel_Complete\x12 .cln.Fundchannel_completeRequest\x1a!.cln.Fundchannel_completeResponse\"\x00\x12\x42\n\x0b\x46undChannel\x12\x17.cln.FundchannelRequest\x1a\x18.cln.FundchannelResponse\"\x00\x12T\n\x11\x46undChannel_Start\x12\x1d.cln.Fundchannel_startRequest\x1a\x1e.cln.Fundchannel_startResponse\"\x00\x12\x33\n\x06GetLog\x12\x12.cln.GetlogRequest\x1a\x13.cln.GetlogResponse\"\x00\x12\x39\n\x08GetRoute\x12\x14.cln.GetrouteRequest\x1a\x15.cln.GetrouteResponse\"\x00\x12\x45\n\x0cListForwards\x12\x18.cln.ListforwardsRequest\x1a\x19.cln.ListforwardsResponse\"\x00\x12?\n\nListOffers\x12\x16.cln.ListoffersRequest\x1a\x17.cln.ListoffersResponse\"\x00\x12\x39\n\x08ListPays\x12\x14.cln.ListpaysRequest\x1a\x15.cln.ListpaysResponse\"\x00\x12<\n\tListHtlcs\x12\x15.cln.ListhtlcsRequest\x1a\x16.cln.ListhtlcsResponse\"\x00\x12Q\n\x10MultiFundChannel\x12\x1c.cln.MultifundchannelRequest\x1a\x1d.cln.MultifundchannelResponse\"\x00\x12\x30\n\x05Offer\x12\x11.cln.OfferRequest\x1a\x12.cln.OfferResponse\"\x00\x12T\n\x11OpenChannel_Abort\x12\x1d.cln.Openchannel_abortRequest\x1a\x1e.cln.Openchannel_abortResponse\"\x00\x12Q\n\x10OpenChannel_Bump\x12\x1c.cln.Openchannel_bumpRequest\x1a\x1d.cln.Openchannel_bumpResponse\"\x00\x12Q\n\x10OpenChannel_Init\x12\x1c.cln.Openchannel_initRequest\x1a\x1d.cln.Openchannel_initResponse\"\x00\x12W\n\x12OpenChannel_Signed\x12\x1e.cln.Openchannel_signedRequest\x1a\x1f.cln.Openchannel_signedResponse\"\x00\x12W\n\x12OpenChannel_Update\x12\x1e.cln.Openchannel_updateRequest\x1a\x1f.cln.Openchannel_updateResponse\"\x00\x12-\n\x04Ping\x12\x10.cln.PingRequest\x1a\x11.cln.PingResponse\"\x00\x12\x33\n\x06Plugin\x12\x12.cln.PluginRequest\x1a\x13.cln.PluginResponse\"\x00\x12H\n\rRenePayStatus\x12\x19.cln.RenepaystatusRequest\x1a\x1a.cln.RenepaystatusResponse\"\x00\x12\x36\n\x07RenePay\x12\x13.cln.RenepayRequest\x1a\x14.cln.RenepayResponse\"\x00\x12H\n\rReserveInputs\x12\x19.cln.ReserveinputsRequest\x1a\x1a.cln.ReserveinputsResponse\"\x00\x12H\n\rSendCustomMsg\x12\x19.cln.SendcustommsgRequest\x1a\x1a.cln.SendcustommsgResponse\"\x00\x12\x42\n\x0bSendInvoice\x12\x17.cln.SendinvoiceRequest\x1a\x18.cln.SendinvoiceResponse\"\x00\x12Q\n\x10SendOnionMessage\x12\x1c.cln.SendonionmessageRequest\x1a\x1d.cln.SendonionmessageResponse\"\x00\x12?\n\nSetChannel\x12\x16.cln.SetchannelRequest\x1a\x17.cln.SetchannelResponse\"\x00\x12<\n\tSetConfig\x12\x15.cln.SetconfigRequest\x1a\x16.cln.SetconfigResponse\"\x00\x12K\n\x0eSetPsbtVersion\x12\x1a.cln.SetpsbtversionRequest\x1a\x1b.cln.SetpsbtversionResponse\"\x00\x12\x42\n\x0bSignInvoice\x12\x17.cln.SigninvoiceRequest\x1a\x18.cln.SigninvoiceResponse\"\x00\x12\x42\n\x0bSignMessage\x12\x17.cln.SignmessageRequest\x1a\x18.cln.SignmessageResponse\"\x00\x12\x42\n\x0bSplice_Init\x12\x17.cln.Splice_initRequest\x1a\x18.cln.Splice_initResponse\"\x00\x12H\n\rSplice_Signed\x12\x19.cln.Splice_signedRequest\x1a\x1a.cln.Splice_signedResponse\"\x00\x12H\n\rSplice_Update\x12\x19.cln.Splice_updateRequest\x1a\x1a.cln.Splice_updateResponse\"\x00\x12N\n\x0fUnreserveInputs\x12\x1b.cln.UnreserveinputsRequest\x1a\x1c.cln.UnreserveinputsResponse\"\x00\x12H\n\rUpgradeWallet\x12\x19.cln.UpgradewalletRequest\x1a\x1a.cln.UpgradewalletResponse\"\x00\x12N\n\x0fWaitBlockHeight\x12\x1b.cln.WaitblockheightRequest\x1a\x1c.cln.WaitblockheightResponse\"\x00\x12-\n\x04Wait\x12\x10.cln.WaitRequest\x1a\x11.cln.WaitResponse\"\x00\x12-\n\x04Stop\x12\x10.cln.StopRequest\x1a\x11.cln.StopResponse\"\x00\x12T\n\x11PreApproveKeysend\x12\x1d.cln.PreapprovekeysendRequest\x1a\x1e.cln.PreapprovekeysendResponse\"\x00\x12T\n\x11PreApproveInvoice\x12\x1d.cln.PreapproveinvoiceRequest\x1a\x1e.cln.PreapproveinvoiceResponse\"\x00\x12\x45\n\x0cStaticBackup\x12\x18.cln.StaticbackupRequest\x1a\x19.cln.StaticbackupResponse\"\x00\x12N\n\x0f\x42kprChannelsApy\x12\x1b.cln.BkprchannelsapyRequest\x1a\x1c.cln.BkprchannelsapyResponse\"\x00\x12T\n\x11\x42kprDumpIncomeCsv\x12\x1d.cln.BkprdumpincomecsvRequest\x1a\x1e.cln.BkprdumpincomecsvResponse\"\x00\x12\x42\n\x0b\x42kprInspect\x12\x17.cln.BkprinspectRequest\x1a\x18.cln.BkprinspectResponse\"\x00\x12`\n\x15\x42kprListAccountEvents\x12!.cln.BkprlistaccounteventsRequest\x1a\".cln.BkprlistaccounteventsResponse\"\x00\x12Q\n\x10\x42kprListBalances\x12\x1c.cln.BkprlistbalancesRequest\x1a\x1d.cln.BkprlistbalancesResponse\"\x00\x12K\n\x0e\x42kprListIncome\x12\x1a.cln.BkprlistincomeRequest\x1a\x1b.cln.BkprlistincomeResponse\"\x00\x12T\n\x13SubscribeBlockAdded\x12\x1c.cln.StreamBlockAddedRequest\x1a\x1b.cln.BlockAddedNotification\"\x00\x30\x01\x12i\n\x1aSubscribeChannelOpenFailed\x12#.cln.StreamChannelOpenFailedRequest\x1a\".cln.ChannelOpenFailedNotification\"\x00\x30\x01\x12]\n\x16SubscribeChannelOpened\x12\x1f.cln.StreamChannelOpenedRequest\x1a\x1e.cln.ChannelOpenedNotification\"\x00\x30\x01\x12O\n\x10SubscribeConnect\x12\x19.cln.StreamConnectRequest\x1a\x1c.cln.PeerConnectNotification\"\x00\x30\x01\x12Q\n\x12SubscribeCustomMsg\x12\x1b.cln.StreamCustomMsgRequest\x1a\x1a.cln.CustomMsgNotification\"\x00\x30\x01\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -735,14 +735,18 @@ _globals['_CHANNELOPENEDNOTIFICATION']._serialized_end=63810 _globals['_STREAMCONNECTREQUEST']._serialized_start=63812 _globals['_STREAMCONNECTREQUEST']._serialized_end=63834 - _globals['_CONNECTNOTIFICATION']._serialized_start=63837 - _globals['_CONNECTNOTIFICATION']._serialized_end=63986 - _globals['_CONNECTNOTIFICATION_CONNECTDIRECTION']._serialized_start=8580 - _globals['_CONNECTNOTIFICATION_CONNECTDIRECTION']._serialized_end=8615 - _globals['_STREAMCUSTOMMSGREQUEST']._serialized_start=63988 - _globals['_STREAMCUSTOMMSGREQUEST']._serialized_end=64012 - _globals['_CUSTOMMSGNOTIFICATION']._serialized_start=64014 - _globals['_CUSTOMMSGNOTIFICATION']._serialized_end=64071 - _globals['_NODE']._serialized_start=64074 - _globals['_NODE']._serialized_end=71141 + _globals['_PEERCONNECTNOTIFICATION']._serialized_start=63837 + _globals['_PEERCONNECTNOTIFICATION']._serialized_end=64027 + _globals['_PEERCONNECTNOTIFICATION_PEERCONNECTDIRECTION']._serialized_start=63988 + _globals['_PEERCONNECTNOTIFICATION_PEERCONNECTDIRECTION']._serialized_end=64027 + _globals['_PEERCONNECTADDRESS']._serialized_start=64030 + _globals['_PEERCONNECTADDRESS']._serialized_end=64297 + _globals['_PEERCONNECTADDRESS_PEERCONNECTADDRESSTYPE']._serialized_start=64181 + _globals['_PEERCONNECTADDRESS_PEERCONNECTADDRESSTYPE']._serialized_end=64265 + _globals['_STREAMCUSTOMMSGREQUEST']._serialized_start=64299 + _globals['_STREAMCUSTOMMSGREQUEST']._serialized_end=64323 + _globals['_CUSTOMMSGNOTIFICATION']._serialized_start=64325 + _globals['_CUSTOMMSGNOTIFICATION']._serialized_end=64382 + _globals['_NODE']._serialized_start=64385 + _globals['_NODE']._serialized_end=71456 # @@protoc_insertion_point(module_scope) diff --git a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2_grpc.py b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2_grpc.py index f869715228cf..125cc0a02a34 100644 --- a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2_grpc.py +++ b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2_grpc.py @@ -512,7 +512,7 @@ def __init__(self, channel): self.SubscribeConnect = channel.unary_stream( '/cln.Node/SubscribeConnect', request_serializer=node__pb2.StreamConnectRequest.SerializeToString, - response_deserializer=node__pb2.ConnectNotification.FromString, + response_deserializer=node__pb2.PeerConnectNotification.FromString, ) self.SubscribeCustomMsg = channel.unary_stream( '/cln.Node/SubscribeCustomMsg', @@ -1631,7 +1631,7 @@ def add_NodeServicer_to_server(servicer, server): 'SubscribeConnect': grpc.unary_stream_rpc_method_handler( servicer.SubscribeConnect, request_deserializer=node__pb2.StreamConnectRequest.FromString, - response_serializer=node__pb2.ConnectNotification.SerializeToString, + response_serializer=node__pb2.PeerConnectNotification.SerializeToString, ), 'SubscribeCustomMsg': grpc.unary_stream_rpc_method_handler( servicer.SubscribeCustomMsg, @@ -3344,7 +3344,7 @@ def SubscribeConnect(request, metadata=None): return grpc.experimental.unary_stream(request, target, '/cln.Node/SubscribeConnect', node__pb2.StreamConnectRequest.SerializeToString, - node__pb2.ConnectNotification.FromString, + node__pb2.PeerConnectNotification.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/doc/schemas/notification/connect.schema.json b/doc/schemas/notification/connect.schema.json index f5405650a7d1..2fff36d76329 100644 --- a/doc/schemas/notification/connect.schema.json +++ b/doc/schemas/notification/connect.schema.json @@ -22,9 +22,93 @@ ], "added" : "v24.05" }, - "address" : { - "type" : "string", - "added" : "v24.05" + "address": { + "type": "object", + "description": "Address information (mainly useful if **direction** is *out*)", + "additionalProperties": true, + "added" : "v24.05", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "added" : "v24.05", + "enum": [ + "local socket", + "ipv4", + "ipv6", + "torv2", + "torv3" + ], + "description": "Type of connection (*torv2*/*torv3* only if **direction** is *out*)" + } + }, + "allOf": [ + { + "if": { + "properties": { + "type": { + "type": "string", + "added" : "v24.05", + "enum": [ + "local socket" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "socket" + ], + "properties": { + "type": {}, + "socket": { + "type": "string", + "added" : "v24.05", + "description": "socket filename" + } + } + } + }, + { + "if": { + "properties": { + "type": { + "type": "string", + "added" : "v24.05", + "enum": [ + "ipv4", + "ipv6", + "torv2", + "torv3" + ] + } + } + }, + "then": { + "additionalProperties": false, + "required": [ + "address", + "port" + ], + "properties": { + "type": {}, + "address": { + "type": "string", + "added" : "v24.05", + "description": "address in expected format for **type**" + }, + "port": { + "type": "u16", + "added" : "v24.05", + "description": "port number" + } + } + } + } + ] } } } From d70e2c04ea325d475658ac74ae769c8d580ac7b6 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Fri, 16 Feb 2024 12:07:40 +0100 Subject: [PATCH 17/24] cln_rpc: Test deserialize_connect_notification --- cln-rpc/src/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/cln-rpc/src/lib.rs b/cln-rpc/src/lib.rs index f4f207f07f6d..31c54622208c 100644 --- a/cln-rpc/src/lib.rs +++ b/cln-rpc/src/lib.rs @@ -597,6 +597,22 @@ mod test { } }) ) + } + + #[test] + fn deserialize_connect_notification() { + let connect_json = serde_json::json!({ + "connect" : { + "address" : { + "address" : "127.0.0.1", + "port" : 38012, + "type" : "ipv4" + }, + "direction" : "in", + "id" : "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + } + }); + let _ : Notification = serde_json::from_value(connect_json).unwrap(); } } From d44b969bd03ccc6abe6e35347d9507f48c925eb5 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Fri, 16 Feb 2024 12:13:21 +0100 Subject: [PATCH 18/24] Test for notifications over grpc --- tests/test_cln_rs.py | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/tests/test_cln_rs.py b/tests/test_cln_rs.py index 467759ec2d21..f91f3e394ce2 100644 --- a/tests/test_cln_rs.py +++ b/tests/test_cln_rs.py @@ -401,3 +401,57 @@ def test_rust_plugin_subscribe_wildcard(node_factory): l2.connect(l1) l1.daemon.wait_for_log("Received notification connect") + + +def test_grpc_block_added_notifications(node_factory, bitcoind): + grpc_port = reserve() + + l1 = node_factory.get_node(options={"grpc-port": str(grpc_port)}) + + # Test the block_added notification + # Start listening to block added events over grpc + block_added_stream = l1.grpc.SubscribeBlockAdded(clnpb.StreamBlockAddedRequest()) + bitcoind.generate_block(10) + for block_added_event in block_added_stream: + assert block_added_event.hash is not None + assert block_added_event.height is not None + + # If we don't break out of the loop we'll + # be waiting for ever + break + + +def test_grpc_connect_notification(node_factory): + grpc_port = reserve() + + l1 = node_factory.get_node(options={"grpc-port": str(grpc_port)}) + l2 = node_factory.get_node() + + # Test the connect notification + connect_stream = l1.grpc.SubscribeConnect(clnpb.StreamConnectRequest()) + l2.connect(l1) + + for connect_event in connect_stream: + assert connect_event.id.hex() == l2.info["id"] + break + + +def test_grpc_custommsg_notification(node_factory): + grpc_port = reserve() + + l1 = node_factory.get_node(options={"grpc-port": str(grpc_port)}) + l2 = node_factory.get_node() + + # Test the connect notification + custommsg_stream = l1.grpc.SubscribeCustomMsg(clnpb.StreamCustomMsgRequest()) + l2.connect(l1) + + # Send the custom-msg to node l1 + # The payload doesn't matter. + # It just needs to be valid hex which encodes to an odd BOLT-8 msg id + l2.rpc.sendcustommsg(l1.info["id"], "3131313174657374") + + for custommsg in custommsg_stream: + assert custommsg.peer_id.hex() == l2.info["id"] + assert custommsg.payload.hex() == "3131313174657374" + assert custommsg.payload == b"1111test" From ba693aca00df555309df5b927b32a97b62791b8f Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Mon, 19 Feb 2024 10:27:24 +0100 Subject: [PATCH 19/24] msggen: Allow non_camel_case for notification In rust enum are expected to be CamelCase. However, we are generating enum's using CAPITAL_SNAKE_CASE. This generates a warning and breaks CI. See `cln_rpc::notifications::ConnectAddressType::LOCAL_SOCKET` --- cln-rpc/src/notifications.rs | 1 + contrib/msggen/msggen/gen/rpc/notification.py | 1 + 2 files changed, 2 insertions(+) diff --git a/cln-rpc/src/notifications.rs b/cln-rpc/src/notifications.rs index e9b2917297cf..648fbb426c81 100644 --- a/cln-rpc/src/notifications.rs +++ b/cln-rpc/src/notifications.rs @@ -1,3 +1,4 @@ +#![allow(non_camel_case_types)] // This file is autogenerated by `msggen` // Do not edit it manually, your changes will be overwritten diff --git a/contrib/msggen/msggen/gen/rpc/notification.py b/contrib/msggen/msggen/gen/rpc/notification.py index 21a20e585c7a..9f7cb487c550 100644 --- a/contrib/msggen/msggen/gen/rpc/notification.py +++ b/contrib/msggen/msggen/gen/rpc/notification.py @@ -33,6 +33,7 @@ def generate_enum(self, service: Service): self.write("}\n") def generate(self, service: Service) -> None: + self.write("#![allow(non_camel_case_types)]\n") self.write("// This file is autogenerated by `msggen`\n") self.write("// Do not edit it manually, your changes will be overwritten\n\n\n") self.write("\n") From 1fd70d83ade8c61fa2169f23daa8193a16617e20 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Wed, 21 Feb 2024 10:35:52 +0100 Subject: [PATCH 20/24] Include `grpc-msg-buffer-size` in docs --- doc/lightningd-config.5.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/lightningd-config.5.md b/doc/lightningd-config.5.md index 10f34db13974..4dcc9f57536f 100644 --- a/doc/lightningd-config.5.md +++ b/doc/lightningd-config.5.md @@ -307,6 +307,13 @@ see lightning-hsmtool(8). The port number for the GRPC plugin to listen for incoming connections; default is not to activate the plugin at all. +* **grpc-msg-buffer-size**=*number* [plugin `cln-grpc`] + + The size of the buffer used by the GRPC-plugin. This buffer stores + notifications between receiving them from lightningd and forwarding + them over grpc. If buffer overflow occurs some notifications will not + be delivered. + ### Lightning node customization options * **recover**=*hsmsecret* From 4d015d0dce5940fcfe4a0639e403e74cb16214d2 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Wed, 21 Feb 2024 12:36:58 +0100 Subject: [PATCH 21/24] Fix test for notification of custommsg I forgot to add a `break` clause at the end of the test. Without the break the test will keep waiting forever on a `custommsg` that will never arrive --- tests/test_cln_rs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_cln_rs.py b/tests/test_cln_rs.py index f91f3e394ce2..83d91e8cd660 100644 --- a/tests/test_cln_rs.py +++ b/tests/test_cln_rs.py @@ -455,3 +455,4 @@ def test_grpc_custommsg_notification(node_factory): assert custommsg.peer_id.hex() == l2.info["id"] assert custommsg.payload.hex() == "3131313174657374" assert custommsg.payload == b"1111test" + break From 8d97cea442a5e3d1962cad9e015ad6a328721290 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Wed, 21 Feb 2024 16:36:04 +0100 Subject: [PATCH 22/24] gci: Try to fix the pyln-grpc installation in CI --- .github/workflows/ci.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1493e0ef21d6..30a5d3536176 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -434,10 +434,8 @@ jobs: run: | bash -x .github/scripts/setup.sh set -e - pip3 install --user pip wheel poetry - poetry export -o requirements.txt --with dev --without-hashes - python3 -m pip install -r requirements.txt - poetry install + pip3 install --user wheel poetry + poetry install --with dev --no-root - name: Install bitcoind run: .github/scripts/install-bitcoind.sh From 7a7615d08d253b3f42ac4a03ae6f0d3dd4277c70 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Thu, 22 Feb 2024 10:23:10 +0100 Subject: [PATCH 23/24] Makefile: Include pyln-grpc proto in PYTHONPATH When running `make check-python` we'll expclicitly include `pyln-grpc-proto` in the `PYTHONPATH`. This ensures we always run the tests using the version installed in `./contrib/pyln-grpc-proto` --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5e6b13bc5da2..fba689bc2597 100644 --- a/Makefile +++ b/Makefile @@ -72,7 +72,7 @@ endif # (method=thread to support xdist) PYTEST_OPTS := -v -p no:logging $(PYTEST_OPTS) -MY_CHECK_PYTHONPATH=$${PYTHONPATH}$${PYTHONPATH:+:}$(shell pwd)/contrib/pyln-client:$(shell pwd)/contrib/pyln-testing:$(shell pwd)/contrib/pyln-proto/:$(shell pwd)/contrib/pyln-spec/bolt1:$(shell pwd)/contrib/pyln-spec/bolt2:$(shell pwd)/contrib/pyln-spec/bolt4:$(shell pwd)/contrib/pyln-spec/bolt7 +MY_CHECK_PYTHONPATH=$${PYTHONPATH}$${PYTHONPATH:+:}$(shell pwd)/contrib/pyln-client:$(shell pwd)/contrib/pyln-testing:$(shell pwd)/contrib/pyln-proto/:$(shell pwd)/contrib/pyln-spec/bolt1:$(shell pwd)/contrib/pyln-spec/bolt2:$(shell pwd)/contrib/pyln-spec/bolt4:$(shell pwd)/contrib/pyln-spec/bolt7:$(shell pwd)/contrib/pyln-grpc-proto # Collect generated python files to be excluded from lint checks PYTHON_GENERATED= \ contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py \ From 28a018650be53029c81b121fe6d60c8d1d785bdf Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Thu, 22 Feb 2024 11:17:01 +0100 Subject: [PATCH 24/24] Updated poetry.lock file --- contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py | 1 + .../pyln/grpc/primitives_pb2.py | 1 + poetry.lock | 1746 ++++++++--------- 3 files changed, 862 insertions(+), 886 deletions(-) diff --git a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py index 503f506e9af1..a290b2720655 100644 --- a/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py +++ b/contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: node.proto +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py b/contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py index 3fabd6c394f9..345f87826c01 100644 --- a/contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py +++ b/contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: primitives.proto +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/poetry.lock b/poetry.lock index 304f9991a69e..133ee5d22e35 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. [[package]] name = "aniso8601" @@ -27,21 +27,22 @@ files = [ [[package]] name = "attrs" -version = "23.1.0" +version = "23.2.0" description = "Classes Without Boilerplate" optional = false python-versions = ">=3.7" files = [ - {file = "attrs-23.1.0-py3-none-any.whl", hash = "sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04"}, - {file = "attrs-23.1.0.tar.gz", hash = "sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015"}, + {file = "attrs-23.2.0-py3-none-any.whl", hash = "sha256:99b87a485a5820b23b879f04c2305b44b951b502fd64be915879d77a7e8fc6f1"}, + {file = "attrs-23.2.0.tar.gz", hash = "sha256:935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30"}, ] [package.extras] cov = ["attrs[tests]", "coverage[toml] (>=5.3)"] -dev = ["attrs[docs,tests]", "pre-commit"] +dev = ["attrs[tests]", "pre-commit"] docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier", "zope-interface"] tests = ["attrs[tests-no-zope]", "zope-interface"] -tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] +tests-mypy = ["mypy (>=1.6)", "pytest-mypy-plugins"] +tests-no-zope = ["attrs[tests-mypy]", "cloudpickle", "hypothesis", "pympler", "pytest (>=4.3.0)", "pytest-xdist[psutil]"] [[package]] name = "base58" @@ -59,185 +60,180 @@ tests = ["PyHamcrest (>=2.0.2)", "mypy", "pytest (>=4.6)", "pytest-benchmark", " [[package]] name = "bidict" -version = "0.22.1" +version = "0.23.1" description = "The bidirectional mapping library for Python." optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "bidict-0.22.1-py3-none-any.whl", hash = "sha256:6ef212238eb884b664f28da76f33f1d28b260f665fc737b413b287d5487d1e7b"}, - {file = "bidict-0.22.1.tar.gz", hash = "sha256:1e0f7f74e4860e6d0943a05d4134c63a2fad86f3d4732fb265bd79e4e856d81d"}, + {file = "bidict-0.23.1-py3-none-any.whl", hash = "sha256:5dae8d4d79b552a71cbabc7deb25dfe8ce710b17ff41711e13010ead2abfc3e5"}, + {file = "bidict-0.23.1.tar.gz", hash = "sha256:03069d763bc387bbd20e7d49914e75fc4132a41937fa3405417e1a5a2d006d71"}, ] -[package.extras] -docs = ["furo", "sphinx", "sphinx-copybutton"] -lint = ["pre-commit"] -test = ["hypothesis", "pytest", "pytest-benchmark[histogram]", "pytest-cov", "pytest-xdist", "sortedcollections", "sortedcontainers", "sphinx"] - [[package]] name = "bitarray" -version = "2.8.2" +version = "2.9.2" description = "efficient arrays of booleans -- C extension" optional = false python-versions = "*" files = [ - {file = "bitarray-2.8.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:525eda30469522cd840a11ba866d0616c132f6c4be8966a297d7545e97fcb822"}, - {file = "bitarray-2.8.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c3d9730341c825eb167ca06c9dddf6ad4d1b4e71ea7da73cc8c5139fcb5e14ca"}, - {file = "bitarray-2.8.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ad8f8c39c8df184e346184699783f105755003662f0dbe1233d9d9849650ab5f"}, - {file = "bitarray-2.8.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2cb8d08330d250df47088c13683322083afbdfafdc31df205616506d6b9f068f"}, - {file = "bitarray-2.8.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:56f19ccba8a6ddf1382b0fb4fb8d4e1330e4a1b148e5d198f0981ba2a97c3492"}, - {file = "bitarray-2.8.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4db2e0f58153a376d9a14873e342d507ca32640640284cddf3c1e74a65929477"}, - {file = "bitarray-2.8.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b9b3c27aeea1752f0c1df1e29115e4b6f0249173d71e53c5f7e2c821706f028b"}, - {file = "bitarray-2.8.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ef23f62b3abd287cf368341540ef2a81c86b48de9d488e182e63fe24ac165538"}, - {file = "bitarray-2.8.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:6d79fd3c58a4dc71ffd0fc55982a9a2079fe94c76ccff2777092f6107d6a049a"}, - {file = "bitarray-2.8.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:8528c59d3d3df6618777892b60435022d8917de9ea32933d439c7ffd24437237"}, - {file = "bitarray-2.8.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:c35bb5fe018fd9c42be3c28e74dc7dcfae471c3c6689679dbd0bd1d6dc0f51b7"}, - {file = "bitarray-2.8.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:232e8faa8e624f3eb0552a636ebe745cee00480e0e56ad62f17808d281838f2e"}, - {file = "bitarray-2.8.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:945e97ad2bbf7885426f39641a735a31fd4ca2e84e4d0cd271d9880372d6eae1"}, - {file = "bitarray-2.8.2-cp310-cp310-win32.whl", hash = "sha256:88c2d427ab1b20f220c1d53171b0691faa8f0a219367d84e859f1001e90ceefc"}, - {file = "bitarray-2.8.2-cp310-cp310-win_amd64.whl", hash = "sha256:f7c5745e0f96c2c16c03c7540dbe26f3b62ddee63059be0a014156933f054024"}, - {file = "bitarray-2.8.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:a610426251d1340baa4d8b7942d2cbfe6a1e20b92c66817ab582e0d341185ab5"}, - {file = "bitarray-2.8.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:599b04b04eb1b5b964a35986bea2bc4381145836fe550cc33c40a796b855b985"}, - {file = "bitarray-2.8.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:9014660472f2080d550157164cc5f9376245a34a0ab877b82b95c1f894af5b28"}, - {file = "bitarray-2.8.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:532d63c54159f7e0fb520e2f72ef596493bc43810eaa75fac7a188e898ab593b"}, - {file = "bitarray-2.8.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ad1563f11dd70cb1684cfe841e4cf7f35d4f65769de21d12b72cf773a7932615"}, - {file = "bitarray-2.8.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2e456150af62ee1f24a0c9976947629bfb80d80b4fbd37aa901cf794db6ba9b0"}, - {file = "bitarray-2.8.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1cc29909e4cef05d5e49f5d77ace1dc49311c7791734a048b690521c76b4b7a0"}, - {file = "bitarray-2.8.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:608385f07a4b0391d4982d1efb83ad70920cd8ca495a7868e44d2a4511cbf84e"}, - {file = "bitarray-2.8.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:d2baf7ec353fa64917045b3efe26e7c12ce0d7b4d120c3773a612dce54f91585"}, - {file = "bitarray-2.8.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:2c39d1cb04fc277701de6fe2119cc71facc4aff2ca0414b2e326aec337fa1ab4"}, - {file = "bitarray-2.8.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:3caf4ca668854bb23db4b65af0068238677b5791bcc45694bf8990f3e26e85c9"}, - {file = "bitarray-2.8.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:4bbfe4474d3470c724e283bd1fe8ee9ab3cb6a4c378112926f45d41e326a7622"}, - {file = "bitarray-2.8.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:cb941981676dc7859d53199a10a33ca56a3146cce6a45bc6ad70572c1147157d"}, - {file = "bitarray-2.8.2-cp311-cp311-win32.whl", hash = "sha256:e8963d7ac292f41654fa7cbc1a34efdb09e5a42399b2e3689c3fd5b8b4e0fe16"}, - {file = "bitarray-2.8.2-cp311-cp311-win_amd64.whl", hash = "sha256:ee779a291330287b341044635fce2979176d113b0dcce0308dc5d62da7951eec"}, - {file = "bitarray-2.8.2-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:05d84765bbfd0aa10890c765c56c917c237987325c4e327f3c0febbfc34365c8"}, - {file = "bitarray-2.8.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c7b7be4bff27d7ce6a81d3993755371b5f5b42436afa151868e8fd599acbab19"}, - {file = "bitarray-2.8.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c3d51ab9f3d5b9a10295abe480c50bf74ee5bf3d984c4cee77e493e575acc869"}, - {file = "bitarray-2.8.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:00bad63ef6f9d22ba36b01b89167176a451ea22a916d1dfa77d73e0298f1d1f9"}, - {file = "bitarray-2.8.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:225e19d37b234d4d721557434b7d5590cd63b6342492b689e2d694d44d7cc537"}, - {file = "bitarray-2.8.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d7e3ab9870c496e5a058436bf4d96ed111ca6154c8ef8147b70c44c188d6fb2c"}, - {file = "bitarray-2.8.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ff3e182c766cd6f302e99e0d8e44927d533356e9d6ac93fcd09987ebead467aa"}, - {file = "bitarray-2.8.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a7bb559b68eb9cb3c4f867eb9fb39a696c4da70a41fad37b410bd0c7b426a8ce"}, - {file = "bitarray-2.8.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:97e658a3793478d6bca684f47f29f62542312683687bc045dc3cb588160e74b3"}, - {file = "bitarray-2.8.2-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:dd351b8fbc77c2e2ebc3eeadc0cf72bd5024a43bef5a847697e2b076d1201636"}, - {file = "bitarray-2.8.2-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:280809e56a7098f48165ce134222098e4cfe7084b10d69bbc31367942e541dfd"}, - {file = "bitarray-2.8.2-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:14bc38ced7edffff25ee748c1eabc530624c9af68f86322b030b11b7918b966f"}, - {file = "bitarray-2.8.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:de4953b6b1e19dabd23767bd1f83f1cf73978372189dec0e2dd8b3d6971100d6"}, - {file = "bitarray-2.8.2-cp312-cp312-win32.whl", hash = "sha256:99196b4730d887a4bc578f05039b55dc57b131c81b5a5e03efa619b587bdf293"}, - {file = "bitarray-2.8.2-cp312-cp312-win_amd64.whl", hash = "sha256:215a5bf8fdcbed700cc8782d4044e1f036606d5c321710d83e8da6d0fdfe07d5"}, - {file = "bitarray-2.8.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:e9c54136c9fab2cefe9801e336b8a3aa7299bcfe7f387379cc6394ad1d5a484b"}, - {file = "bitarray-2.8.2-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:08ad70c1555d9622cecd8f1b132a5341d183a9161aba93cc9739bbaabe4220b0"}, - {file = "bitarray-2.8.2-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:384be6b7df8fb6a93ddd88d4184094f2ba4f1d07c30dcd4ae164d185d31a2af6"}, - {file = "bitarray-2.8.2-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bd2a098250c683d248a6490ac437ed56f7164d2151572231bd26c76bfe111b11"}, - {file = "bitarray-2.8.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a6ae5c18b9a70cb0ae576a8a3c8a9a0659356c016b49cc6b263dd987d344f30d"}, - {file = "bitarray-2.8.2-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:188f5780f1cfbeba0c3ddb1aa3fa0415ab1a8aa04e9e89f70ad5403197013437"}, - {file = "bitarray-2.8.2-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:5f2a96c5b40727bc21a695d3a106f49e88572fa11427bf2193cabd99e624c901"}, - {file = "bitarray-2.8.2-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:b6df948da34b5fb949698092573d798c76c54f2f2188db59276d599075f9ed04"}, - {file = "bitarray-2.8.2-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:a1f00c328b8dae1828844bac019dfe425d10a2043cc70e2f967224c5392d19ad"}, - {file = "bitarray-2.8.2-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:7965108069f9731306a882872c23ad4f5a8531668e82b27932a19814c52a8dd8"}, - {file = "bitarray-2.8.2-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:420aa610fe392c4ee700e474673276bb4f3c4f091d001f58b1f018bf650840c1"}, - {file = "bitarray-2.8.2-cp36-cp36m-win32.whl", hash = "sha256:b85929db81105c06e8292c05cac093068e86464555c628c03f99c9f8090d68d4"}, - {file = "bitarray-2.8.2-cp36-cp36m-win_amd64.whl", hash = "sha256:cba09dfd3aea2addc994eb21a861c3cea2d68141bb7ebe68b0e94c73405540f9"}, - {file = "bitarray-2.8.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:172169099797f1ec469b0aadb00c653193a74757f99312c9c17dc1a18d23d972"}, - {file = "bitarray-2.8.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:351a4fed240728dcc96966e0c4cfd3dce870525377a1cb5afac8e5cfe116ff7b"}, - {file = "bitarray-2.8.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ff31bef13fd278446b6d1969a46db9f02c36fd905f3e75878f0fe17271f7d897"}, - {file = "bitarray-2.8.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fb8b727cd9ddff848c5f73e65470abb110f026beab403bcebbd74e7439b9bd8f"}, - {file = "bitarray-2.8.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8d1356c86eefbde3fe8a3c39fb81bbc8b16acc8e442e191408042e8b1d6904e3"}, - {file = "bitarray-2.8.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7706336bd15acf4e42300579e42bef742c01a4eb202998f6c20c443a2ce5fd60"}, - {file = "bitarray-2.8.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:a4b43949477dc2b0d3e1d8b7c413ed74f515cef01954cdcc3fb1e2dcc49f2aff"}, - {file = "bitarray-2.8.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:06d9de5db244c6e45a5318713367765de0a57d82ad616869a004a710a95541e9"}, - {file = "bitarray-2.8.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:5569c8314335e92570c471d60b4b03eb2a4467864805a560d133d24b27b3961a"}, - {file = "bitarray-2.8.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:76a4faef4c31953aa7b9ebe00d162f7ce9bc03fc8d423ab2dc690a11d7520a8e"}, - {file = "bitarray-2.8.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:1474db8c4297026e1daa1699e70e25e56dff91104fe025b1a9804332f2737604"}, - {file = "bitarray-2.8.2-cp37-cp37m-win32.whl", hash = "sha256:85b504f233f0484e9a74df4f286a9ae56fbbe2a648c45726761cf7b6f072cdc8"}, - {file = "bitarray-2.8.2-cp37-cp37m-win_amd64.whl", hash = "sha256:3dde123ce85d1ba99d9bdf44b1b3174fa22bc8fb10004e0d72bb661a0444c1a9"}, - {file = "bitarray-2.8.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:23fae6a5a1403d16592b8823d5dea93f738c6e217a1e1bb0eefad242fb03d47f"}, - {file = "bitarray-2.8.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:c44b3022115eb1697315bc51aeadbade1a19d7188bcda66c52d91209cf2963ca"}, - {file = "bitarray-2.8.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:fea9354b7169810e2bdd6f3265ff128b564a25d38479b9ad0a9c5776e4fd0cfc"}, - {file = "bitarray-2.8.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6f699bf2cb223aeec04a106003bd2bf8a4fc6d4c5eddf79cacecb6b267657ac5"}, - {file = "bitarray-2.8.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:462c9425fbc5315cbc20a72ca62558e5545bb0f6dc9355e2fa96fa747e9b1a80"}, - {file = "bitarray-2.8.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0c8716b4c45fb128cd4da143749e276f150ecb0acb711f4969d7e7ebc9b2a675"}, - {file = "bitarray-2.8.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:79fde5b27e35aedd958f5fb58ebabce47d7eddae5a5e3774088c30c9610195ef"}, - {file = "bitarray-2.8.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6abf2593b91e36f1cb1c40ac895993c7d2eb30d3f1cb0954a80e5f13697b6b69"}, - {file = "bitarray-2.8.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:ab2e03dd140ab93b91f94a785d1cd6082d5ab53ab6ec958726efa0ad17f7b87a"}, - {file = "bitarray-2.8.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:9e895cc3e5ffee269dd9866097e227a68022ef2b78d627a6ed737534d0c88c14"}, - {file = "bitarray-2.8.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:0bbeb7120ec1a9b26ce423e74cad7b414cea9e35f8e05599e3b3dceb87f4d1b6"}, - {file = "bitarray-2.8.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:51d45d56be14b69720d11a8c61e101d86a65dc8a3a9f356bbe4d98cf4f3c5617"}, - {file = "bitarray-2.8.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:726a598e34657772e5f131115741ea8709e9b55fa35d63c4717bc16b2a737d38"}, - {file = "bitarray-2.8.2-cp38-cp38-win32.whl", hash = "sha256:ab87c4c50d65932788d058adbbd28a209144523ffacbab81dd41582ffce26af9"}, - {file = "bitarray-2.8.2-cp38-cp38-win_amd64.whl", hash = "sha256:316147fb62c810a7667277e5ae7bb75b2871c32d2c398aeb4503cbd4cf3315e7"}, - {file = "bitarray-2.8.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:36bdde1aba78e4a3a6ce5cbebd0a6bc967b0c3fbd8bd99a197dcc17d654f423c"}, - {file = "bitarray-2.8.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:932f7b77750dff7140522dc97dfd94533a599ef1c5d0be3733f556fd44a68821"}, - {file = "bitarray-2.8.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:5819b95d0ccce864066f062d2329363ae8a64b9c3d076d039c75ffc9204c2a12"}, - {file = "bitarray-2.8.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1c28b52e59a5e6aa00a929b35b04473bd479a74237ab1170c573c49e8aca61fe"}, - {file = "bitarray-2.8.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3ecdd528268478efeb78ed0132b01104bda6cd8f10c8a57708fc87b1add77e4d"}, - {file = "bitarray-2.8.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9f6f245d4a5e707d48274f38551b654a36db4fb83437c98be00d2019263aa364"}, - {file = "bitarray-2.8.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b088f06d9e2f523683ae363e227173ac454dbb56c938c6d42791fdd78bad8da7"}, - {file = "bitarray-2.8.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e883919cea8e446c5c49717a7ce5c93a016a02b9429b81d64b9ab1d80fc12e42"}, - {file = "bitarray-2.8.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:09d729420b8edc4d8a23a518ae4553074a0054d0441c1a461b425c2f033fab5e"}, - {file = "bitarray-2.8.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:d0d0923087fe1f2d85daa68463d221e90b4b8ed0356480c887eea90b2a2cc7ee"}, - {file = "bitarray-2.8.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:70cebcf9bc345ac1e034fa781eac3619323eaf87f7bbe26f0e28850beb6f5634"}, - {file = "bitarray-2.8.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:890355bf6ba3dc04b5a23d1328eb1f6062165e6262197cebc9acfebdcb23144c"}, - {file = "bitarray-2.8.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:f0b54b95e39036c116ffc057b3f56f6084ce88822de3d5d1f57fa38554ccf5c1"}, - {file = "bitarray-2.8.2-cp39-cp39-win32.whl", hash = "sha256:b499d93fa31a73e31ee62f2cbe07e4df833fd7151734b8f07c48ffe3e4547ec5"}, - {file = "bitarray-2.8.2-cp39-cp39-win_amd64.whl", hash = "sha256:b007aaf5810c708c5a2778e371aa546d7084e4e9f82f65865b2ce5a182376f42"}, - {file = "bitarray-2.8.2-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:1b734b074a09b1b2e1de7df423565412d9213faefa8ca422f32be756b189f729"}, - {file = "bitarray-2.8.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dd074b06be9484040acb4c2c0462c4d19a43e377716be7ba10440f51a57bb98c"}, - {file = "bitarray-2.8.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e678696bb613f0344b79be385747aae705b327a9a32ace45a353dd16497bc719"}, - {file = "bitarray-2.8.2-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bb337ffa10824fa2025c4b1c06a2d809dbed4a4bf9e3ffb262676d084c4e0c50"}, - {file = "bitarray-2.8.2-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:2b3c7aa2c9a6533dc7234d2a303efdcb9df3f4ac4d0919ec1caf568868f12a0a"}, - {file = "bitarray-2.8.2-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:e6765c47b487341837b3731cca3c8033b971ee082f6ab41cb430aa3447686eec"}, - {file = "bitarray-2.8.2-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cb8566b535bc4ebb26247d6f636a27bb0038bc93fa7e55121628f5cd6b0906ac"}, - {file = "bitarray-2.8.2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:56764825f64ab983d32b8c1d4ee483f415f2559e59388ba266a9fcafc44305bf"}, - {file = "bitarray-2.8.2-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0f45f7d58c399e90ee3bddff4f3e2f53ff95c948b2d43de304266153ebd1d778"}, - {file = "bitarray-2.8.2-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:095851409e0db75b1416c8c3e24957135d5a2a206790578e43739e92a00c17c4"}, - {file = "bitarray-2.8.2-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:8bb60d5a948f00901da1d7e4953189259b3c7ef79391fecd6f18db3f48a036fe"}, - {file = "bitarray-2.8.2-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2b2dc483ada55ef35990b67dc0e7a779f0b2ce79d156e452dc8b835b03c0dca9"}, - {file = "bitarray-2.8.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8a35e308c23f039064600108fc1c8416bd102bc3cf3a6915761a9f7c801237e0"}, - {file = "bitarray-2.8.2-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fa49f6cfcae4305d8cff028dc9c9a881189a38f7ca43c085aef894c58cb6fbde"}, - {file = "bitarray-2.8.2-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:111bf9913ebee4630e2cb43b61d0abb39813b231262b114e5268cd6a405a22b9"}, - {file = "bitarray-2.8.2-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:b71d82e3f001bcb53463023f7f37e223fff56cf048f577c6d85597db94770f10"}, - {file = "bitarray-2.8.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:440c537fdf2eaee7fdd41fb1dce5701c490c1964fdb74225b10b49a7c45bc7b4"}, - {file = "bitarray-2.8.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c384c49ce52b82d5b0355000b8aeb7e3a7654997916c1e6fd9d29697edda1076"}, - {file = "bitarray-2.8.2-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:27428d7b0e706307d0c697f81599e7af4f52e5873ea6bc269eae3604b16b81fe"}, - {file = "bitarray-2.8.2-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:4963982d5da0825768f9a80760a8560c3e4cf711a9a7ea06ff9bcb7bd250b131"}, - {file = "bitarray-2.8.2.tar.gz", hash = "sha256:f90b2f44b5b23364d5fbade2c34652e15b1fcfe813c46f828e008f68a709160f"}, + {file = "bitarray-2.9.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:917905de565d9576eb20f53c797c15ba88b9f4f19728acabec8d01eee1d3756a"}, + {file = "bitarray-2.9.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b35bfcb08b7693ab4bf9059111a6e9f14e07d57ac93cd967c420db58ab9b71e1"}, + {file = "bitarray-2.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ea1923d2e7880f9e1959e035da661767b5a2e16a45dfd57d6aa831e8b65ee1bf"}, + {file = "bitarray-2.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1e0b63a565e8a311cc8348ff1262d5784df0f79d64031d546411afd5dd7ef67d"}, + {file = "bitarray-2.9.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cf0620da2b81946d28c0b16f3e3704d38e9837d85ee4f0652816e2609aaa4fed"}, + {file = "bitarray-2.9.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:79a9b8b05f2876c7195a2b698c47528e86a73c61ea203394ff8e7a4434bda5c8"}, + {file = "bitarray-2.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:345c76b349ff145549652436235c5532e5bfe9db690db6f0a6ad301c62b9ef21"}, + {file = "bitarray-2.9.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4e2936f090bf3f4d1771f44f9077ebccdbc0415d2b598d51a969afcb519df505"}, + {file = "bitarray-2.9.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:f9346e98fc2abcef90b942973087e2462af6d3e3710e82938078d3493f7fef52"}, + {file = "bitarray-2.9.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:e6ec283d4741befb86e8c3ea2e9ac1d17416c956d392107e45263e736954b1f7"}, + {file = "bitarray-2.9.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:962892646599529917ef26266091e4cb3077c88b93c3833a909d68dcc971c4e3"}, + {file = "bitarray-2.9.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:e8da5355d7d75a52df5b84750989e34e39919ec7e59fafc4c104cc1607ab2d31"}, + {file = "bitarray-2.9.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:603e7d640e54ad764d2b4da6b61e126259af84f253a20f512dd10689566e5478"}, + {file = "bitarray-2.9.2-cp310-cp310-win32.whl", hash = "sha256:f00079f8e69d75c2a417de7961a77612bb77ef46c09bc74607d86de4740771ef"}, + {file = "bitarray-2.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:1bb33673e7f7190a65f0a940c1ef63266abdb391f4a3e544a47542d40a81f536"}, + {file = "bitarray-2.9.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:fe71fd4b76380c2772f96f1e53a524da7063645d647a4fcd3b651bdd80ca0f2e"}, + {file = "bitarray-2.9.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:d527172919cdea1e13994a66d9708a80c3d33dedcf2f0548e4925e600fef3a3a"}, + {file = "bitarray-2.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:052c5073bdcaa9dd10628d99d37a2f33ec09364b86dd1f6281e2d9f8d3db3060"}, + {file = "bitarray-2.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e064caa55a6ed493aca1eda06f8b3f689778bc780a75e6ad7724642ba5dc62f7"}, + {file = "bitarray-2.9.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:508069a04f658210fdeee85a7a0ca84db4bcc110cbb1d21f692caa13210f24a7"}, + {file = "bitarray-2.9.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4da73ebd537d75fa7bccfc2228fcaedea0803f21dd9d0bf0d3b67fef3c4af294"}, + {file = "bitarray-2.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5cb378eaa65cd43098f11ff5d27e48ee3b956d2c00d2d6b5bfc2a09fe183be47"}, + {file = "bitarray-2.9.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d14c790b91f6cbcd9b718f88ed737c78939980c69ac8c7f03dd7e60040c12951"}, + {file = "bitarray-2.9.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:7eea9318293bc0ea6447e9ebfba600a62f3428bea7e9c6d42170ae4f481dbab3"}, + {file = "bitarray-2.9.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:b76ffec27c7450b8a334f967366a9ebadaea66ee43f5b530c12861b1a991f503"}, + {file = "bitarray-2.9.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:76b76a07d4ee611405045c6950a1e24c4362b6b44808d4ad6eea75e0dbc59af4"}, + {file = "bitarray-2.9.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:c7d16beeaaab15b075990cd26963d6b5b22e8c5becd131781514a00b8bdd04bd"}, + {file = "bitarray-2.9.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:60df43e868a615c7e15117a1e1c2e5e11f48f6457280eba6ddf8fbefbec7da99"}, + {file = "bitarray-2.9.2-cp311-cp311-win32.whl", hash = "sha256:e788608ed7767b7b3bbde6d49058bccdf94df0de9ca75d13aa99020cc7e68095"}, + {file = "bitarray-2.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:a23397da092ef0a8cfe729571da64c2fc30ac18243caa82ac7c4f965087506ff"}, + {file = "bitarray-2.9.2-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:90e3a281ffe3897991091b7c46fca38c2675bfd4399ffe79dfeded6c52715436"}, + {file = "bitarray-2.9.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:bed637b674db5e6c8a97a4a321e3e4d73e72d50b5c6b29950008a93069cc64cd"}, + {file = "bitarray-2.9.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e49066d251dbbe4e6e3a5c3937d85b589e40e2669ad0eef41a00f82ec17d844b"}, + {file = "bitarray-2.9.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3c4344e96642e2211fb3a50558feff682c31563a4c64529a931769d40832ca79"}, + {file = "bitarray-2.9.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:aeb60962ec4813c539a59fbd4f383509c7222b62c3fb1faa76b54943a613e33a"}, + {file = "bitarray-2.9.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ed0f7982f10581bb16553719e5e8f933e003f5b22f7d25a68bdb30fac630a6ff"}, + {file = "bitarray-2.9.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c71d1cabdeee0cdda4669168618f0e46b7dace207b29da7b63aaa1adc2b54081"}, + {file = "bitarray-2.9.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b0ef2d0a6f1502d38d911d25609b44c6cc27bee0a4363dd295df78b075041b60"}, + {file = "bitarray-2.9.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:6f71d92f533770fb027388b35b6e11988ab89242b883f48a6fe7202d238c61f8"}, + {file = "bitarray-2.9.2-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:ba0734aa300757c924f3faf8148e1b8c247176a0ac8e16aefdf9c1eb19e868f7"}, + {file = "bitarray-2.9.2-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:d91406f413ccbf4af6ab5ae7bc78f772a95609f9ddd14123db36ef8c37116d95"}, + {file = "bitarray-2.9.2-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:87abb7f80c0a042f3fe8e5264da1a2756267450bb602110d5327b8eaff7682e7"}, + {file = "bitarray-2.9.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:4b558ce85579b51a2e38703877d1e93b7728a7af664dd45a34e833534f0b755d"}, + {file = "bitarray-2.9.2-cp312-cp312-win32.whl", hash = "sha256:dac2399ee2889fbdd3472bfc2ede74c34cceb1ccf29a339964281a16eb1d3188"}, + {file = "bitarray-2.9.2-cp312-cp312-win_amd64.whl", hash = "sha256:48a30d718d1a6dfc22a49547450107abe8f4afdf2abdcbe76eb9ed88edc49498"}, + {file = "bitarray-2.9.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:2c6be1b651fad8f3adb7a5aa12c65b612cd9b89530969af941844ae680f7d981"}, + {file = "bitarray-2.9.2-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c5b399ae6ab975257ec359f03b48fc00b1c1cd109471e41903548469b8feae5c"}, + {file = "bitarray-2.9.2-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0b3543c8a1cb286ad105f11c25d8d0f712f41c5c55f90be39f0e5a1376c7d0b0"}, + {file = "bitarray-2.9.2-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:03adaacb79e2fb8f483ab3a67665eec53bb3fd0cd5dbd7358741aef124688db3"}, + {file = "bitarray-2.9.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9ae5b0657380d2581e13e46864d147a52c1e2bbac9f59b59c576e42fa7d10cf0"}, + {file = "bitarray-2.9.2-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7c1f4bf6ea8eb9d7f30808c2e9894237a96650adfecbf5f3643862dc5982f89e"}, + {file = "bitarray-2.9.2-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:a8873089be2aa15494c0f81af1209f6e1237d762c5065bc4766c1b84321e1b50"}, + {file = "bitarray-2.9.2-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:677e67f50e2559efc677a4366707070933ad5418b8347a603a49a070890b19bc"}, + {file = "bitarray-2.9.2-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:a620d8ce4ea2f1c73c6b6b1399e14cb68c6915e2be3fad5808c2998ed55b4acf"}, + {file = "bitarray-2.9.2-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:64115ccabbdbe279c24c367b629c6b1d3da9ed36c7420129e27c338a3971bfee"}, + {file = "bitarray-2.9.2-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:5d6fb422772e75385b76ad1c52f45a68bd4efafd8be8d0061c11877be74c4d43"}, + {file = "bitarray-2.9.2-cp36-cp36m-win32.whl", hash = "sha256:852e202875dd6dfd6139ce7ec4e98dac2b17d8d25934dc99900831e81c3adaef"}, + {file = "bitarray-2.9.2-cp36-cp36m-win_amd64.whl", hash = "sha256:7dfefdcb0dc6a3ba9936063cec65a74595571b375beabe18742b3d91d087eefd"}, + {file = "bitarray-2.9.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:b306c4cf66912511422060f7f5e1149c8bdb404f8e00e600561b0749fdd45659"}, + {file = "bitarray-2.9.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a09c4f81635408e3387348f415521d4b94198c562c23330f560596a6aaa26eaf"}, + {file = "bitarray-2.9.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5361413fd2ecfdf44dc8f065177dc6aba97fa80a91b815586cb388763acf7f8d"}, + {file = "bitarray-2.9.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e8a9475d415ef1eaae7942df6f780fa4dcd48fce32825eda591a17abba869299"}, + {file = "bitarray-2.9.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c9b87baa7bfff9a5878fcc1bffe49ecde6e647a72a64b39a69cd8a2992a43a34"}, + {file = "bitarray-2.9.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bb6b86cfdfc503e92cb71c68766a24565359136961642504a7cc9faf936d9c88"}, + {file = "bitarray-2.9.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:cd56b8ae87ebc71bcacbd73615098e8a8de952ecbb5785b6b4e2b07da8a06e1f"}, + {file = "bitarray-2.9.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:3fa909cfd675004aed8b4cc9df352415933656e0155a6209d878b7cb615c787e"}, + {file = "bitarray-2.9.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:b069ca9bf728e0c5c5b60e00a89df9af34cc170c695c3bfa3b372d8f40288efb"}, + {file = "bitarray-2.9.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:6067f2f07a7121749858c7daa93c8774325c91590b3e81a299621e347740c2ae"}, + {file = "bitarray-2.9.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:321841cdad1dd0f58fe62e80e9c9c7531f8ebf8be93f047401e930dc47425b1e"}, + {file = "bitarray-2.9.2-cp37-cp37m-win32.whl", hash = "sha256:54e16e32e60973bb83c315de9975bc1bcfc9bd50bb13001c31da159bc49b0ca1"}, + {file = "bitarray-2.9.2-cp37-cp37m-win_amd64.whl", hash = "sha256:f4dcadb7b8034aa3491ee8f5a69b3d9ba9d7d1e55c3cc1fc45be313e708277f8"}, + {file = "bitarray-2.9.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:c8919fdbd3bb596b104388b56ae4b266eb28da1f2f7dff2e1f9334a21840fe96"}, + {file = "bitarray-2.9.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:eb7a9d8a2e400a1026de341ad48e21670a6261a75b06df162c5c39b0d0e7c8f4"}, + {file = "bitarray-2.9.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:6ec84668dd7b937874a2b2c293cd14ba84f37be0d196dead852e0ada9815d807"}, + {file = "bitarray-2.9.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f2de9a31c34e543ae089fd2a5ced01292f725190e379921384f695e2d7184bd3"}, + {file = "bitarray-2.9.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9521f49ae121a17c0a41e5112249e6fa7f6a571245b1118de81fb86e7c1bc1ce"}, + {file = "bitarray-2.9.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a6cc6545d6d76542aee3d18c1c9485fb7b9812b8df4ebe52c4535ec42081b48f"}, + {file = "bitarray-2.9.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:856bbe1616425f71c0df5ef2e8755e878d9504d5a531acba58ab4273c52c117a"}, + {file = "bitarray-2.9.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d4bba8042ea6ab331ade91bc435d81ad72fddb098e49108610b0ce7780c14e68"}, + {file = "bitarray-2.9.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:a035da89c959d98afc813e3c62f052690d67cfd55a36592f25d734b70de7d4b0"}, + {file = "bitarray-2.9.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:6d70b1579da7fb71be5a841a1f965d19aca0ef27f629cfc07d06b09aafd0a333"}, + {file = "bitarray-2.9.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:405b83bed28efaae6d86b6ab287c75712ead0adbfab2a1075a1b7ab47dad4d62"}, + {file = "bitarray-2.9.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:7eb8be687c50da0b397d5e0ab7ca200b5ebb639e79a9f5e285851d1944c94be9"}, + {file = "bitarray-2.9.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:eceb551dfeaf19c609003a69a0cf8264b0efd7abc3791a11dfabf4788daf0d19"}, + {file = "bitarray-2.9.2-cp38-cp38-win32.whl", hash = "sha256:bb198c6ed1edbcdaf3d1fa3c9c9d1cdb7e179a5134ef5ee660b53cdec43b34e7"}, + {file = "bitarray-2.9.2-cp38-cp38-win_amd64.whl", hash = "sha256:648d2f2685590b0103c67a937c2fb9e09bcc8dfb166f0c7c77bd341902a6f5b3"}, + {file = "bitarray-2.9.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:ea816dc8f8e65841a8bbdd30e921edffeeb6f76efe6a1eb0da147b60d539d1cf"}, + {file = "bitarray-2.9.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4d0e32530f941c41eddfc77600ec89b65184cb909c549336463a738fab3ed285"}, + {file = "bitarray-2.9.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4a22266fb416a3b6c258bf7f83c9fe531ba0b755a56986a81ad69dc0f3bcc070"}, + {file = "bitarray-2.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fc6d3e80dd8239850f2604833ff3168b28909c8a9357abfed95632cccd17e3e7"}, + {file = "bitarray-2.9.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f135e804986b12bf14f2cd1eb86674c47dea86c4c5f0fa13c88978876b97ebe6"}, + {file = "bitarray-2.9.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:87580c7f7d14f7ec401eda7adac1e2a25e95153e9c339872c8ae61b3208819a1"}, + {file = "bitarray-2.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:64b433e26993127732ac7b66a7821b2537c3044355798de7c5fcb0af34b8296f"}, + {file = "bitarray-2.9.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1e497c535f2a9b68c69d36631bf2dba243e05eb343b00b9c7bbdc8c601c6802d"}, + {file = "bitarray-2.9.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:e40b3cb9fa1edb4e0175d7c06345c49c7925fe93e39ef55ecb0bc40c906b0c09"}, + {file = "bitarray-2.9.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:f2f8692f95c9e377eb19ca519d30d1f884b02feb7e115f798de47570a359e43f"}, + {file = "bitarray-2.9.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:f0b84fc50b6dbeced4fa390688c07c10a73222810fb0e08392bd1a1b8259de36"}, + {file = "bitarray-2.9.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:d656ad38c942e38a470ddbce26b5020e08e1a7ea86b8fd413bb9024b5189993a"}, + {file = "bitarray-2.9.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:6ab0f1dbfe5070db98771a56aa14797595acd45a1af9eadfb193851a270e7996"}, + {file = "bitarray-2.9.2-cp39-cp39-win32.whl", hash = "sha256:0a99b23ac845a9ea3157782c97465e6ae026fe0c7c4c1ed1d88f759fd6ea52d9"}, + {file = "bitarray-2.9.2-cp39-cp39-win_amd64.whl", hash = "sha256:9bbcfc7c279e8d74b076e514e669b683f77b4a2a328585b3f16d4c5259c91222"}, + {file = "bitarray-2.9.2-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:43847799461d8ba71deb4d97b47250c2c2fb66d82cd3cb8b4caf52bb97c03034"}, + {file = "bitarray-2.9.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f4f44381b0a4bdf64416082f4f0e7140377ae962c0ced6f983c6d7bbfc034040"}, + {file = "bitarray-2.9.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a484061616fb4b158b80789bd3cb511f399d2116525a8b29b6334c68abc2310f"}, + {file = "bitarray-2.9.2-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1ff9e38356cc803e06134cf8ae9758e836ccd1b793135ef3db53c7c5d71e93bc"}, + {file = "bitarray-2.9.2-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:b44105792fbdcfbda3e26ee88786790fda409da4c71f6c2b73888108cf8f062f"}, + {file = "bitarray-2.9.2-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:7e913098de169c7fc890638ce5e171387363eb812579e637c44261460ac00aa2"}, + {file = "bitarray-2.9.2-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d6fe315355cdfe3ed22ef355b8bdc81a805ca4d0949d921576560e5b227a1112"}, + {file = "bitarray-2.9.2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f708e91fdbe443f3bec2df394ed42328fb9b0446dff5cb4199023ac6499e09fd"}, + {file = "bitarray-2.9.2-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5b7b09489b71f9f1f64c0fa0977e250ec24500767dab7383ba9912495849cadf"}, + {file = "bitarray-2.9.2-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:128cc3488176145b9b137fdcf54c1c201809bbb8dd30b260ee40afe915843b43"}, + {file = "bitarray-2.9.2-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:21f21e7f56206be346bdbda2a6bdb2165a5e6a11821f88fd4911c5a6bbbdc7e2"}, + {file = "bitarray-2.9.2-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5f4dd3af86dd8a617eb6464622fb64ca86e61ce99b59b5c35d8cd33f9c30603d"}, + {file = "bitarray-2.9.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6465de861aff7a2559f226b37982007417eab8c3557543879987f58b453519bd"}, + {file = "bitarray-2.9.2-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dbaf2bb71d6027152d603f1d5f31e0dfd5e50173d06f877bec484e5396d4594b"}, + {file = "bitarray-2.9.2-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:2f32948c86e0d230a296686db28191b67ed229756f84728847daa0c7ab7406e3"}, + {file = "bitarray-2.9.2-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:be94e5a685e60f9d24532af8fe5c268002e9016fa80272a94727f435de3d1003"}, + {file = "bitarray-2.9.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5cc9381fd54f3c23ae1039f977bfd6d041a5c3c1518104f616643c3a5a73b15"}, + {file = "bitarray-2.9.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cd926e8ae4d1ed1ac4a8f37212a62886292f692bc1739fde98013bf210c2d175"}, + {file = "bitarray-2.9.2-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:461a3dafb9d5fda0bb3385dc507d78b1984b49da3fe4c6d56c869a54373b7008"}, + {file = "bitarray-2.9.2-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:393cb27fd859af5fd9c16eb26b1c59b17b390ff66b3ae5d0dd258270191baf13"}, + {file = "bitarray-2.9.2.tar.gz", hash = "sha256:a8f286a51a32323715d77755ed959f94bef13972e9a2fe71b609e40e6d27957e"}, ] [[package]] name = "bitstring" -version = "4.1.2" +version = "4.2.2" description = "Simple construction, analysis and modification of binary data." optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "bitstring-4.1.2-py3-none-any.whl", hash = "sha256:bc0dbdb282099d5c6fbf995cd7261449ddeb7bbf042996e503471a35eb2efaa3"}, - {file = "bitstring-4.1.2.tar.gz", hash = "sha256:c22283d60fd3e1a8f386ccd4f1915d7fe13481d6349db39711421e24d4a9cccf"}, + {file = "bitstring-4.2.2-py3-none-any.whl", hash = "sha256:8b784373e78e953879c8192589e1ecbcda8f111841633a2aaf88d2b073fd6c35"}, + {file = "bitstring-4.2.2.tar.gz", hash = "sha256:b40b01d911eebaea6efff40d826580806dced5e04b9d3cbad6aebf9422f4b643"}, ] [package.dependencies] -bitarray = ">=2.8.0,<3.0.0" +bitarray = ">=2.9.0,<3.0.0" [[package]] name = "blinker" -version = "1.6.3" +version = "1.8.2" description = "Fast, simple object-to-object and broadcast signaling" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "blinker-1.6.3-py3-none-any.whl", hash = "sha256:296320d6c28b006eb5e32d4712202dbcdcbf5dc482da298c2f44881c43884aaa"}, - {file = "blinker-1.6.3.tar.gz", hash = "sha256:152090d27c1c5c722ee7e48504b02d76502811ce02e1523553b4cf8c8b3d3a8d"}, + {file = "blinker-1.8.2-py3-none-any.whl", hash = "sha256:1779309f71bf239144b9399d06ae925637cf6634cf6bd131104184531bf67c01"}, + {file = "blinker-1.8.2.tar.gz", hash = "sha256:8f77b09d3bf7c795e969e9486f39c2c5e9c39d4ee07424be2bc594ece9642d83"}, ] [[package]] name = "certifi" -version = "2023.7.22" +version = "2024.2.2" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" files = [ - {file = "certifi-2023.7.22-py3-none-any.whl", hash = "sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9"}, - {file = "certifi-2023.7.22.tar.gz", hash = "sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082"}, + {file = "certifi-2024.2.2-py3-none-any.whl", hash = "sha256:dc383c07b76109f368f6106eee2b593b04a011ea4d55f652c6ca24a754d1cdd1"}, + {file = "certifi-2024.2.2.tar.gz", hash = "sha256:0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f"}, ] [[package]] @@ -306,118 +302,117 @@ pycparser = "*" [[package]] name = "charset-normalizer" -version = "3.3.1" +version = "3.3.2" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." optional = false python-versions = ">=3.7.0" files = [ - {file = "charset-normalizer-3.3.1.tar.gz", hash = "sha256:d9137a876020661972ca6eec0766d81aef8a5627df628b664b234b73396e727e"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8aee051c89e13565c6bd366813c386939f8e928af93c29fda4af86d25b73d8f8"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:352a88c3df0d1fa886562384b86f9a9e27563d4704ee0e9d56ec6fcd270ea690"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:223b4d54561c01048f657fa6ce41461d5ad8ff128b9678cfe8b2ecd951e3f8a2"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4f861d94c2a450b974b86093c6c027888627b8082f1299dfd5a4bae8e2292821"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1171ef1fc5ab4693c5d151ae0fdad7f7349920eabbaca6271f95969fa0756c2d"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28f512b9a33235545fbbdac6a330a510b63be278a50071a336afc1b78781b147"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0e842112fe3f1a4ffcf64b06dc4c61a88441c2f02f373367f7b4c1aa9be2ad5"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3f9bc2ce123637a60ebe819f9fccc614da1bcc05798bbbaf2dd4ec91f3e08846"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:f194cce575e59ffe442c10a360182a986535fd90b57f7debfaa5c845c409ecc3"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:9a74041ba0bfa9bc9b9bb2cd3238a6ab3b7618e759b41bd15b5f6ad958d17605"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:b578cbe580e3b41ad17b1c428f382c814b32a6ce90f2d8e39e2e635d49e498d1"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:6db3cfb9b4fcecb4390db154e75b49578c87a3b9979b40cdf90d7e4b945656e1"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:debb633f3f7856f95ad957d9b9c781f8e2c6303ef21724ec94bea2ce2fcbd056"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-win32.whl", hash = "sha256:87071618d3d8ec8b186d53cb6e66955ef2a0e4fa63ccd3709c0c90ac5a43520f"}, - {file = "charset_normalizer-3.3.1-cp310-cp310-win_amd64.whl", hash = "sha256:e372d7dfd154009142631de2d316adad3cc1c36c32a38b16a4751ba78da2a397"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:ae4070f741f8d809075ef697877fd350ecf0b7c5837ed68738607ee0a2c572cf"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:58e875eb7016fd014c0eea46c6fa92b87b62c0cb31b9feae25cbbe62c919f54d"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:dbd95e300367aa0827496fe75a1766d198d34385a58f97683fe6e07f89ca3e3c"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:de0b4caa1c8a21394e8ce971997614a17648f94e1cd0640fbd6b4d14cab13a72"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:985c7965f62f6f32bf432e2681173db41336a9c2611693247069288bcb0c7f8b"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a15c1fe6d26e83fd2e5972425a772cca158eae58b05d4a25a4e474c221053e2d"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ae55d592b02c4349525b6ed8f74c692509e5adffa842e582c0f861751701a673"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:be4d9c2770044a59715eb57c1144dedea7c5d5ae80c68fb9959515037cde2008"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:851cf693fb3aaef71031237cd68699dded198657ec1e76a76eb8be58c03a5d1f"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:31bbaba7218904d2eabecf4feec0d07469284e952a27400f23b6628439439fa7"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:871d045d6ccc181fd863a3cd66ee8e395523ebfbc57f85f91f035f50cee8e3d4"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:501adc5eb6cd5f40a6f77fbd90e5ab915c8fd6e8c614af2db5561e16c600d6f3"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:f5fb672c396d826ca16a022ac04c9dce74e00a1c344f6ad1a0fdc1ba1f332213"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-win32.whl", hash = "sha256:bb06098d019766ca16fc915ecaa455c1f1cd594204e7f840cd6258237b5079a8"}, - {file = "charset_normalizer-3.3.1-cp311-cp311-win_amd64.whl", hash = "sha256:8af5a8917b8af42295e86b64903156b4f110a30dca5f3b5aedea123fbd638bff"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:7ae8e5142dcc7a49168f4055255dbcced01dc1714a90a21f87448dc8d90617d1"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:5b70bab78accbc672f50e878a5b73ca692f45f5b5e25c8066d748c09405e6a55"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:5ceca5876032362ae73b83347be8b5dbd2d1faf3358deb38c9c88776779b2e2f"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:34d95638ff3613849f473afc33f65c401a89f3b9528d0d213c7037c398a51296"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9edbe6a5bf8b56a4a84533ba2b2f489d0046e755c29616ef8830f9e7d9cf5728"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f6a02a3c7950cafaadcd46a226ad9e12fc9744652cc69f9e5534f98b47f3bbcf"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:10b8dd31e10f32410751b3430996f9807fc4d1587ca69772e2aa940a82ab571a"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:edc0202099ea1d82844316604e17d2b175044f9bcb6b398aab781eba957224bd"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:b891a2f68e09c5ef989007fac11476ed33c5c9994449a4e2c3386529d703dc8b"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:71ef3b9be10070360f289aea4838c784f8b851be3ba58cf796262b57775c2f14"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:55602981b2dbf8184c098bc10287e8c245e351cd4fdcad050bd7199d5a8bf514"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:46fb9970aa5eeca547d7aa0de5d4b124a288b42eaefac677bde805013c95725c"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:520b7a142d2524f999447b3a0cf95115df81c4f33003c51a6ab637cbda9d0bf4"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-win32.whl", hash = "sha256:8ec8ef42c6cd5856a7613dcd1eaf21e5573b2185263d87d27c8edcae33b62a61"}, - {file = "charset_normalizer-3.3.1-cp312-cp312-win_amd64.whl", hash = "sha256:baec8148d6b8bd5cee1ae138ba658c71f5b03e0d69d5907703e3e1df96db5e41"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:63a6f59e2d01310f754c270e4a257426fe5a591dc487f1983b3bbe793cf6bac6"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1d6bfc32a68bc0933819cfdfe45f9abc3cae3877e1d90aac7259d57e6e0f85b1"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4f3100d86dcd03c03f7e9c3fdb23d92e32abbca07e7c13ebd7ddfbcb06f5991f"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:39b70a6f88eebe239fa775190796d55a33cfb6d36b9ffdd37843f7c4c1b5dc67"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4e12f8ee80aa35e746230a2af83e81bd6b52daa92a8afaef4fea4a2ce9b9f4fa"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7b6cefa579e1237ce198619b76eaa148b71894fb0d6bcf9024460f9bf30fd228"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:61f1e3fb621f5420523abb71f5771a204b33c21d31e7d9d86881b2cffe92c47c"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:4f6e2a839f83a6a76854d12dbebde50e4b1afa63e27761549d006fa53e9aa80e"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:1ec937546cad86d0dce5396748bf392bb7b62a9eeb8c66efac60e947697f0e58"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:82ca51ff0fc5b641a2d4e1cc8c5ff108699b7a56d7f3ad6f6da9dbb6f0145b48"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:633968254f8d421e70f91c6ebe71ed0ab140220469cf87a9857e21c16687c034"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-win32.whl", hash = "sha256:c0c72d34e7de5604df0fde3644cc079feee5e55464967d10b24b1de268deceb9"}, - {file = "charset_normalizer-3.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:63accd11149c0f9a99e3bc095bbdb5a464862d77a7e309ad5938fbc8721235ae"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5a3580a4fdc4ac05f9e53c57f965e3594b2f99796231380adb2baaab96e22761"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:2465aa50c9299d615d757c1c888bc6fef384b7c4aec81c05a0172b4400f98557"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:cb7cd68814308aade9d0c93c5bd2ade9f9441666f8ba5aa9c2d4b389cb5e2a45"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91e43805ccafa0a91831f9cd5443aa34528c0c3f2cc48c4cb3d9a7721053874b"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:854cc74367180beb327ab9d00f964f6d91da06450b0855cbbb09187bcdb02de5"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c15070ebf11b8b7fd1bfff7217e9324963c82dbdf6182ff7050519e350e7ad9f"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2c4c99f98fc3a1835af8179dcc9013f93594d0670e2fa80c83aa36346ee763d2"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3fb765362688821404ad6cf86772fc54993ec11577cd5a92ac44b4c2ba52155b"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:dced27917823df984fe0c80a5c4ad75cf58df0fbfae890bc08004cd3888922a2"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a66bcdf19c1a523e41b8e9d53d0cedbfbac2e93c649a2e9502cb26c014d0980c"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:ecd26be9f112c4f96718290c10f4caea6cc798459a3a76636b817a0ed7874e42"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:3f70fd716855cd3b855316b226a1ac8bdb3caf4f7ea96edcccc6f484217c9597"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:17a866d61259c7de1bdadef418a37755050ddb4b922df8b356503234fff7932c"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-win32.whl", hash = "sha256:548eefad783ed787b38cb6f9a574bd8664468cc76d1538215d510a3cd41406cb"}, - {file = "charset_normalizer-3.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:45f053a0ece92c734d874861ffe6e3cc92150e32136dd59ab1fb070575189c97"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:bc791ec3fd0c4309a753f95bb6c749ef0d8ea3aea91f07ee1cf06b7b02118f2f"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:0c8c61fb505c7dad1d251c284e712d4e0372cef3b067f7ddf82a7fa82e1e9a93"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:2c092be3885a1b7899cd85ce24acedc1034199d6fca1483fa2c3a35c86e43041"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c2000c54c395d9e5e44c99dc7c20a64dc371f777faf8bae4919ad3e99ce5253e"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4cb50a0335382aac15c31b61d8531bc9bb657cfd848b1d7158009472189f3d62"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c30187840d36d0ba2893bc3271a36a517a717f9fd383a98e2697ee890a37c273"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fe81b35c33772e56f4b6cf62cf4aedc1762ef7162a31e6ac7fe5e40d0149eb67"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d0bf89afcbcf4d1bb2652f6580e5e55a840fdf87384f6063c4a4f0c95e378656"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:06cf46bdff72f58645434d467bf5228080801298fbba19fe268a01b4534467f5"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:3c66df3f41abee950d6638adc7eac4730a306b022570f71dd0bd6ba53503ab57"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:cd805513198304026bd379d1d516afbf6c3c13f4382134a2c526b8b854da1c2e"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:9505dc359edb6a330efcd2be825fdb73ee3e628d9010597aa1aee5aa63442e97"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:31445f38053476a0c4e6d12b047b08ced81e2c7c712e5a1ad97bc913256f91b2"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-win32.whl", hash = "sha256:bd28b31730f0e982ace8663d108e01199098432a30a4c410d06fe08fdb9e93f4"}, - {file = "charset_normalizer-3.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:555fe186da0068d3354cdf4bbcbc609b0ecae4d04c921cc13e209eece7720727"}, - {file = "charset_normalizer-3.3.1-py3-none-any.whl", hash = "sha256:800561453acdecedaac137bf09cd719c7a440b6800ec182f077bb8e7025fb708"}, + {file = "charset-normalizer-3.3.2.tar.gz", hash = "sha256:f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:25baf083bf6f6b341f4121c2f3c548875ee6f5339300e08be3f2b2ba1721cdd3"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:06435b539f889b1f6f4ac1758871aae42dc3a8c0e24ac9e60c2384973ad73027"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9063e24fdb1e498ab71cb7419e24622516c4a04476b17a2dab57e8baa30d6e03"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6897af51655e3691ff853668779c7bad41579facacf5fd7253b0133308cf000d"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1d3193f4a680c64b4b6a9115943538edb896edc190f0b222e73761716519268e"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cd70574b12bb8a4d2aaa0094515df2463cb429d8536cfb6c7ce983246983e5a6"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8465322196c8b4d7ab6d1e049e4c5cb460d0394da4a27d23cc242fbf0034b6b5"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a9a8e9031d613fd2009c182b69c7b2c1ef8239a0efb1df3f7c8da66d5dd3d537"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:beb58fe5cdb101e3a055192ac291b7a21e3b7ef4f67fa1d74e331a7f2124341c"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:e06ed3eb3218bc64786f7db41917d4e686cc4856944f53d5bdf83a6884432e12"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:2e81c7b9c8979ce92ed306c249d46894776a909505d8f5a4ba55b14206e3222f"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:572c3763a264ba47b3cf708a44ce965d98555f618ca42c926a9c1616d8f34269"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:fd1abc0d89e30cc4e02e4064dc67fcc51bd941eb395c502aac3ec19fab46b519"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-win32.whl", hash = "sha256:3d47fa203a7bd9c5b6cee4736ee84ca03b8ef23193c0d1ca99b5089f72645c73"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl", hash = "sha256:10955842570876604d404661fbccbc9c7e684caf432c09c715ec38fbae45ae09"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:802fe99cca7457642125a8a88a084cef28ff0cf9407060f7b93dca5aa25480db"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:573f6eac48f4769d667c4442081b1794f52919e7edada77495aaed9236d13a96"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:549a3a73da901d5bc3ce8d24e0600d1fa85524c10287f6004fbab87672bf3e1e"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f27273b60488abe721a075bcca6d7f3964f9f6f067c8c4c605743023d7d3944f"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1ceae2f17a9c33cb48e3263960dc5fc8005351ee19db217e9b1bb15d28c02574"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:65f6f63034100ead094b8744b3b97965785388f308a64cf8d7c34f2f2e5be0c4"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:753f10e867343b4511128c6ed8c82f7bec3bd026875576dfd88483c5c73b2fd8"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a78b2b446bd7c934f5dcedc588903fb2f5eec172f3d29e52a9096a43722adfc"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e537484df0d8f426ce2afb2d0f8e1c3d0b114b83f8850e5f2fbea0e797bd82ae"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:eb6904c354526e758fda7167b33005998fb68c46fbc10e013ca97f21ca5c8887"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:deb6be0ac38ece9ba87dea880e438f25ca3eddfac8b002a2ec3d9183a454e8ae"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:4ab2fe47fae9e0f9dee8c04187ce5d09f48eabe611be8259444906793ab7cbce"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:80402cd6ee291dcb72644d6eac93785fe2c8b9cb30893c1af5b8fdd753b9d40f"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-win32.whl", hash = "sha256:7cd13a2e3ddeed6913a65e66e94b51d80a041145a026c27e6bb76c31a853c6ab"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl", hash = "sha256:663946639d296df6a2bb2aa51b60a2454ca1cb29835324c640dafb5ff2131a77"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:0b2b64d2bb6d3fb9112bafa732def486049e63de9618b5843bcdd081d8144cd8"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:ddbb2551d7e0102e7252db79ba445cdab71b26640817ab1e3e3648dad515003b"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:55086ee1064215781fff39a1af09518bc9255b50d6333f2e4c74ca09fac6a8f6"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f4a014bc36d3c57402e2977dada34f9c12300af536839dc38c0beab8878f38a"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a10af20b82360ab00827f916a6058451b723b4e65030c5a18577c8b2de5b3389"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8d756e44e94489e49571086ef83b2bb8ce311e730092d2c34ca8f7d925cb20aa"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90d558489962fd4918143277a773316e56c72da56ec7aa3dc3dbbe20fdfed15b"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6ac7ffc7ad6d040517be39eb591cac5ff87416c2537df6ba3cba3bae290c0fed"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7ed9e526742851e8d5cc9e6cf41427dfc6068d4f5a3bb03659444b4cabf6bc26"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:8bdb58ff7ba23002a4c5808d608e4e6c687175724f54a5dade5fa8c67b604e4d"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:6b3251890fff30ee142c44144871185dbe13b11bab478a88887a639655be1068"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:b4a23f61ce87adf89be746c8a8974fe1c823c891d8f86eb218bb957c924bb143"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:efcb3f6676480691518c177e3b465bcddf57cea040302f9f4e6e191af91174d4"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-win32.whl", hash = "sha256:d965bba47ddeec8cd560687584e88cf699fd28f192ceb452d1d7ee807c5597b7"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl", hash = "sha256:96b02a3dc4381e5494fad39be677abcb5e6634bf7b4fa83a6dd3112607547001"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:95f2a5796329323b8f0512e09dbb7a1860c46a39da62ecb2324f116fa8fdc85c"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c002b4ffc0be611f0d9da932eb0f704fe2602a9a949d1f738e4c34c75b0863d5"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a981a536974bbc7a512cf44ed14938cf01030a99e9b3a06dd59578882f06f985"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3287761bc4ee9e33561a7e058c72ac0938c4f57fe49a09eae428fd88aafe7bb6"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42cb296636fcc8b0644486d15c12376cb9fa75443e00fb25de0b8602e64c1714"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0a55554a2fa0d408816b3b5cedf0045f4b8e1a6065aec45849de2d6f3f8e9786"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:c083af607d2515612056a31f0a8d9e0fcb5876b7bfc0abad3ecd275bc4ebc2d5"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:87d1351268731db79e0f8e745d92493ee2841c974128ef629dc518b937d9194c"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:bd8f7df7d12c2db9fab40bdd87a7c09b1530128315d047a086fa3ae3435cb3a8"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:c180f51afb394e165eafe4ac2936a14bee3eb10debc9d9e4db8958fe36afe711"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:8c622a5fe39a48f78944a87d4fb8a53ee07344641b0562c540d840748571b811"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-win32.whl", hash = "sha256:db364eca23f876da6f9e16c9da0df51aa4f104a972735574842618b8c6d999d4"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-win_amd64.whl", hash = "sha256:86216b5cee4b06df986d214f664305142d9c76df9b6512be2738aa72a2048f99"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:6463effa3186ea09411d50efc7d85360b38d5f09b870c48e4600f63af490e56a"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6c4caeef8fa63d06bd437cd4bdcf3ffefe6738fb1b25951440d80dc7df8c03ac"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:37e55c8e51c236f95b033f6fb391d7d7970ba5fe7ff453dad675e88cf303377a"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fb69256e180cb6c8a894fee62b3afebae785babc1ee98b81cdf68bbca1987f33"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ae5f4161f18c61806f411a13b0310bea87f987c7d2ecdbdaad0e94eb2e404238"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b2b0a0c0517616b6869869f8c581d4eb2dd83a4d79e0ebcb7d373ef9956aeb0a"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:45485e01ff4d3630ec0d9617310448a8702f70e9c01906b0d0118bdf9d124cf2"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eb00ed941194665c332bf8e078baf037d6c35d7c4f3102ea2d4f16ca94a26dc8"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:2127566c664442652f024c837091890cb1942c30937add288223dc895793f898"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a50aebfa173e157099939b17f18600f72f84eed3049e743b68ad15bd69b6bf99"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:4d0d1650369165a14e14e1e47b372cfcb31d6ab44e6e33cb2d4e57265290044d"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:923c0c831b7cfcb071580d3f46c4baf50f174be571576556269530f4bbd79d04"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:06a81e93cd441c56a9b65d8e1d043daeb97a3d0856d177d5c90ba85acb3db087"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-win32.whl", hash = "sha256:6ef1d82a3af9d3eecdba2321dc1b3c238245d890843e040e41e470ffa64c3e25"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-win_amd64.whl", hash = "sha256:eb8821e09e916165e160797a6c17edda0679379a4be5c716c260e836e122f54b"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:c235ebd9baae02f1b77bcea61bce332cb4331dc3617d254df3323aa01ab47bd4"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:5b4c145409bef602a690e7cfad0a15a55c13320ff7a3ad7ca59c13bb8ba4d45d"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:68d1f8a9e9e37c1223b656399be5d6b448dea850bed7d0f87a8311f1ff3dabb0"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22afcb9f253dac0696b5a4be4a1c0f8762f8239e21b99680099abd9b2b1b2269"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e27ad930a842b4c5eb8ac0016b0a54f5aebbe679340c26101df33424142c143c"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1f79682fbe303db92bc2b1136016a38a42e835d932bab5b3b1bfcfbf0640e519"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b261ccdec7821281dade748d088bb6e9b69e6d15b30652b74cbbac25e280b796"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:122c7fa62b130ed55f8f285bfd56d5f4b4a5b503609d181f9ad85e55c89f4185"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:d0eccceffcb53201b5bfebb52600a5fb483a20b61da9dbc885f8b103cbe7598c"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:9f96df6923e21816da7e0ad3fd47dd8f94b2a5ce594e00677c0013018b813458"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:7f04c839ed0b6b98b1a7501a002144b76c18fb1c1850c8b98d458ac269e26ed2"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:34d1c8da1e78d2e001f363791c98a272bb734000fcef47a491c1e3b0505657a8"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:ff8fa367d09b717b2a17a052544193ad76cd49979c805768879cb63d9ca50561"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-win32.whl", hash = "sha256:aed38f6e4fb3f5d6bf81bfa990a07806be9d83cf7bacef998ab1a9bd660a581f"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-win_amd64.whl", hash = "sha256:b01b88d45a6fcb69667cd6d2f7a9aeb4bf53760d7fc536bf679ec94fe9f3ff3d"}, + {file = "charset_normalizer-3.3.2-py3-none-any.whl", hash = "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc"}, ] [[package]] name = "cheroot" -version = "8.6.0" +version = "10.0.0" description = "Highly-optimized, pure-python HTTP server" optional = false -python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7" +python-versions = ">=3.6" files = [ - {file = "cheroot-8.6.0-py2.py3-none-any.whl", hash = "sha256:62cbced16f07e8aaf512673987cd6b1fc5ad00073345e9ed6c4e2a5cc2a3a22d"}, - {file = "cheroot-8.6.0.tar.gz", hash = "sha256:366adf6e7cac9555486c2d1be6297993022eff6f8c4655c1443268cca3f08e25"}, + {file = "cheroot-10.0.0-py3-none-any.whl", hash = "sha256:8f65dd38ad3d56419cfe2d1b5e4b4e3282b1d58758ca2a336231641a80cf0717"}, + {file = "cheroot-10.0.0.tar.gz", hash = "sha256:59c4a1877fef9969b3c3c080caaaf377e2780919437853fc0d32a9df40b311f0"}, ] [package.dependencies] "jaraco.functools" = "*" -more-itertools = {version = ">=2.6", markers = "python_version >= \"3.6\""} -six = ">=1.11.0" +more-itertools = ">=2.6" [package.extras] docs = ["furo", "jaraco.packaging (>=3.2)", "python-dateutil", "sphinx (>=1.8.2)", "sphinx-tabs (>=1.1.0)", "sphinxcontrib-apidoc (>=0.3.0)"] @@ -528,132 +523,137 @@ files = [ [[package]] name = "crc32c" -version = "2.3.post0" +version = "2.4" description = "A python package implementing the crc32c algorithm in hardware and software" optional = false python-versions = "*" files = [ - {file = "crc32c-2.3.post0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e311f52e24b633e8d588ab9a0e7992bfcfe8284a1655202bdac5aee80254a3fd"}, - {file = "crc32c-2.3.post0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:4459462c732232ffb29b58decd246ed5cdb8c16ae141f57f03cb2e3445dc1d2e"}, - {file = "crc32c-2.3.post0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1285d33cdeda2d2248994d41706f88f0fe58265ae907d23221c07028e79f9670"}, - {file = "crc32c-2.3.post0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3c24ebb561e10a5eada2128a7357e41969155cebe7b34656176fc24412d45c8b"}, - {file = "crc32c-2.3.post0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cb4222a766f59b1cd8cbe56af5dbdfd3a2c0ec40b60c9ee6efe4a5cabc94112d"}, - {file = "crc32c-2.3.post0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:217c1b64be777cf235556066c363f4dec22b29a956a174f6361037b1b2065c63"}, - {file = "crc32c-2.3.post0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:3bb11668f75a7f4f699b9a125aaf15259687f691beb95e756e3bea80d7163645"}, - {file = "crc32c-2.3.post0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:04220e1db5567dc234d1e9dc182c5b8241905057ec19967ac3a917bcaf06d70e"}, - {file = "crc32c-2.3.post0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:dbae415e9ec7dfdcdeac981cf4833d9942ce9de175b2be5a21c641c3a88e609b"}, - {file = "crc32c-2.3.post0-cp310-cp310-win32.whl", hash = "sha256:7fb366626bf7ef66e55656c8385fcc94f22f8d3847a7a84c810d2e3f63f54c62"}, - {file = "crc32c-2.3.post0-cp310-cp310-win_amd64.whl", hash = "sha256:01787094f281ae7c8f645d7b3c309a02bac45cb385206eee651aa27d933a87e5"}, - {file = "crc32c-2.3.post0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:8a3ff6b893ab482f0841a2b7e394adb749b1a896c854ce92f72c60e2ea3a3553"}, - {file = "crc32c-2.3.post0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:585ab3307a2aa73b935f0b0358197f0af5306204d646ac321ecf01f2a3725f94"}, - {file = "crc32c-2.3.post0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:acb0d4a1cf19fdc2946ab9b1dc5d4f1347e97b356a863fbba2d8a3d3c1cbe815"}, - {file = "crc32c-2.3.post0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:75e9a588e7241d09de9023dc51174cc2c9ac7c453ae0e26a5718e266b48ae392"}, - {file = "crc32c-2.3.post0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5be4ad72c198c4a22515ef2ad728f9829ee3d75e6c7f3e41030c8266e46c0c7c"}, - {file = "crc32c-2.3.post0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:08fdba1351d5cbb428d9ba3ce5c03d43687e7b23c6bc0cf99973306e5549dab9"}, - {file = "crc32c-2.3.post0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:21919937ecac802e436c1a9978e8b27522ca87bf67dc5ce3a5b5622c0b5c3a06"}, - {file = "crc32c-2.3.post0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:c102e8988618e3bd15f4297ab95631c6d9e59326f9af17bf7d71c2ad4639a7f7"}, - {file = "crc32c-2.3.post0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:6072cc60102a8ac86f45ab8d29c8679a8ac0445477eed3d0af6d0becceea1392"}, - {file = "crc32c-2.3.post0-cp311-cp311-win32.whl", hash = "sha256:295053584dc3a11d8f02d6ccc6dd3698331e252cd816d7652b0723c516ef3c41"}, - {file = "crc32c-2.3.post0-cp311-cp311-win_amd64.whl", hash = "sha256:05ad2f6b6392b2a0af159142e6ec029cddd15d67a76b7762b3316cbb5cc8e22c"}, - {file = "crc32c-2.3.post0-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:6281582e919e405fdc4bf0f3ecd5f2ad647767cc5c6beecc094476356bd6ad09"}, - {file = "crc32c-2.3.post0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:d14f1b02e763edbd5039665b1c7decf7714e55b992ce89971a997862a236394c"}, - {file = "crc32c-2.3.post0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4fed4b5f61c6a3009b522faf218e9665da71917756a09998386869b293145cfd"}, - {file = "crc32c-2.3.post0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9b81590ffd92f90dee3ff823b69392cd2640f527efcc5d637829b4a0cea370de"}, - {file = "crc32c-2.3.post0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bd62636466bf6b24f5ac32640b2401fe7333dea09cc46506ad3a855782bdfa0d"}, - {file = "crc32c-2.3.post0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:712474ce37ea262cdd8a46be5696a3d72aff55d02463428eae1ddee265feb882"}, - {file = "crc32c-2.3.post0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9a05ff1275350368e4e4e4d756e6a2924892e6160b4655ac5082d4f9b4a11a71"}, - {file = "crc32c-2.3.post0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:69b5c270f326a35777409cdd9547eada1f69fffbf9fd340862c00a655b2d9a3a"}, - {file = "crc32c-2.3.post0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:23a534b11619965ff8ce73775d703be2c59566fde88a5a03efd4b28eee023e90"}, - {file = "crc32c-2.3.post0-cp312-cp312-win32.whl", hash = "sha256:5f1d5c72daf5560daa89fd123bd6fe7dec58fdae142330f244850b20f61c518e"}, - {file = "crc32c-2.3.post0-cp312-cp312-win_amd64.whl", hash = "sha256:e5286061b6050689892ac145bab0a441c3e742b8c0f29a9be8f1c97eea5558a7"}, - {file = "crc32c-2.3.post0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:c002f55429a12ec87a0b33a073b384d26edd46d89b3cf7cfb6ddf5abb6e2bfab"}, - {file = "crc32c-2.3.post0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec216adbbf7ad1506918c8199a144d26740650b594f79755f5f1affec7e7820b"}, - {file = "crc32c-2.3.post0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:38f4c8eaa77fa9bbe690b58546dd3f2e244c13d5d0a01fa93076d3817a22bc68"}, - {file = "crc32c-2.3.post0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:247ada85bd0a54012e910ff46697871f80bcff9018b59f7de23161726a146b2a"}, - {file = "crc32c-2.3.post0-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:363b8f2993f07eb8ac665c7227cb2a569fb1f4eb1551a05695bc2f94c23307e4"}, - {file = "crc32c-2.3.post0-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:8af10d0c3752db01dfa77c6c4c8fa070bdefe939eb9ab94b4dec1dcc2cc11fa5"}, - {file = "crc32c-2.3.post0-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:b60dd506177d2ea68fb548caa9cc383f46c024947d1990604c11aa615ec9da62"}, - {file = "crc32c-2.3.post0-cp36-cp36m-win32.whl", hash = "sha256:305ca4eb8c399081a68ca0274ae176753be8430fc874d1e7397a2cbc95748733"}, - {file = "crc32c-2.3.post0-cp36-cp36m-win_amd64.whl", hash = "sha256:5c9e58f96a0e56e60ea683504f605b76c73b7f885837bfc8bd8346b054133045"}, - {file = "crc32c-2.3.post0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:21ef9ebdfe4f2e45c94327a1a9a222a899be784d78674065ada6e8e240d3a4a8"}, - {file = "crc32c-2.3.post0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:85b3395c476916b098a20cfb8686558865ca3ef71caaf9e6b0a548b2049ee87d"}, - {file = "crc32c-2.3.post0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:42c0363d68a95d133af02803772395b42bc202840ea70a317e2b46beb9e53af0"}, - {file = "crc32c-2.3.post0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:75eb7cc4200745cbc717bb0b83b538e6582be980d4f8c9f9bb0740a23e93a4d8"}, - {file = "crc32c-2.3.post0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:d7bcc07f3a63cc8be7536ca35a4c5b96763b8e0ce5d48f30d9374ec7e381b057"}, - {file = "crc32c-2.3.post0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:89bcf1158c577635bdc61b27d29deb2fe0c1191a54a490f976563a73abe3b2e3"}, - {file = "crc32c-2.3.post0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:d18e82f66a0c25c8fb10b21e71cf2f2aa81441fd1a062809249e98a338ef9c81"}, - {file = "crc32c-2.3.post0-cp37-cp37m-win32.whl", hash = "sha256:31f59b051a7fa4a2ada3f76a79014be38c45e9d3c906eca381e9007677ffe506"}, - {file = "crc32c-2.3.post0-cp37-cp37m-win_amd64.whl", hash = "sha256:19d6a505582194ed0b2bb257cf3729c922e7e92f457a9f7f5493cf821cb19afc"}, - {file = "crc32c-2.3.post0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:cce0c79dbf4d4f2276cb9e32f4d0dfc3ce5d8cc5c3f0a0bc62612505cd779c67"}, - {file = "crc32c-2.3.post0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:86837a00716056c29f9d84c980cdac050ba3c7610c9edca1b2ac01192715725d"}, - {file = "crc32c-2.3.post0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:7a61e6754ee54bbae9253035eabb5658d0ada9162eb1b98feabefb044b95e6c0"}, - {file = "crc32c-2.3.post0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:470bb05c224ede904af0278d18ac26f1132a8cfc7a11cfa0406c26ef75765427"}, - {file = "crc32c-2.3.post0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:de0307898c24a8ae29d4b94ddd3aa81b73d3b2b0e490d226e3a3dd05526dfca1"}, - {file = "crc32c-2.3.post0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e0925a7a8fcc216744e86c21f1749c22f950f9bdad512cb5c80ee85017625bd5"}, - {file = "crc32c-2.3.post0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:d9ea9e6eb2912051a40ac6877646925ee3a058c4aa3868988fe1d8c4577f57d4"}, - {file = "crc32c-2.3.post0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:6bfc277c43fa1dd4c4a91a1b56347008e34c8214dd99b1424b5d636272f2922c"}, - {file = "crc32c-2.3.post0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:771ad4abacb89a14e1f5cbbb291ead652a0c9ed4be2c9b579c869957c0b03e3d"}, - {file = "crc32c-2.3.post0-cp38-cp38-win32.whl", hash = "sha256:a57d1ec8f1aa45c14a51770b011359b511eb7dcc6ffd7c8fc9e918e2aa009416"}, - {file = "crc32c-2.3.post0-cp38-cp38-win_amd64.whl", hash = "sha256:05b69167116680bd40116c8fac847950d1eb170fdd42a814602223b4e002b0bb"}, - {file = "crc32c-2.3.post0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:cee4275dfb3cfc4a1e4c338089f3223fce878d7151cebb095937c07410371908"}, - {file = "crc32c-2.3.post0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:176b3c5ff7fa4e2f83c241ab9dc4fd1584d1c9333d4c7295c16c9f6097c29933"}, - {file = "crc32c-2.3.post0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:68941ac55632f231120baeeba72690cdf2ec2531fea3ceab4612dbf855411b05"}, - {file = "crc32c-2.3.post0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:00de0d157dc17bbf01fef615aff6095a78b3561aad37b4ba4a300b11311aae55"}, - {file = "crc32c-2.3.post0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:061b084e27d92dc3e1a9efd500e6e3feee9e97e8cefe2fbdcc0011cba7f3242a"}, - {file = "crc32c-2.3.post0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a2f6105a430f4f1f393cc660bf8ac3a4860396fa9b5ac8bf0c7ba1de044a3cbc"}, - {file = "crc32c-2.3.post0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:69cd27f493a6bcbeb1b59eea4a978734ebf3ce2b6f757a99405d6eebd38af551"}, - {file = "crc32c-2.3.post0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:7d02e45cddebfa82694fc9fc7df2f42366431e90b0abd40c5c63758bc9234123"}, - {file = "crc32c-2.3.post0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:0b5f5a18e9bfe98a273d9618d5c04470fe983dcebcd453fac07c398dfac7db10"}, - {file = "crc32c-2.3.post0-cp39-cp39-win32.whl", hash = "sha256:e88bbdeba430dfee6d83192a9e55c8e89884a3c5215d1b7643395ecbbd1b502b"}, - {file = "crc32c-2.3.post0-cp39-cp39-win_amd64.whl", hash = "sha256:c55e8a45e360aeb3cea2cf9d9fb3771a711ed3c3fce2d91c874d767aae4f5cee"}, - {file = "crc32c-2.3.post0-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:b3628ff77ca4cf3c3f0209d5eb824b79d8e324bbb1feaff3fb6bff8adc23ec08"}, - {file = "crc32c-2.3.post0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3ef1b87ac755e20933bc8136a45ca9993a03c0b0ba16dd946ab287108305332b"}, - {file = "crc32c-2.3.post0-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9ebbcde06765fcde3d2d440153839a9ac675866fb25aa86219595c370e6d3f7c"}, - {file = "crc32c-2.3.post0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:335f1fcd5fb346be4ac4c982f89bb66b39c93a2c2d4bcdb3e3188d8adcb225b2"}, - {file = "crc32c-2.3.post0-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:b6a4df4a978dbf43e548a008dc4686f6e24d52defb8c03a79b67aebfeaa2caa6"}, - {file = "crc32c-2.3.post0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:129b0ac8ee712ce42aae36d7e6e5202ab080f06117f57ba2c894226586e80050"}, - {file = "crc32c-2.3.post0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b6ad74ec499a3d6981900c1e2873b1e6a19e2ee3c650a3e611c3076ad9167f3a"}, - {file = "crc32c-2.3.post0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:69cb66a0c680ae531df7f32833a3d6df26aeeb144c0f7a8899d2d5bb7c9cdc2c"}, - {file = "crc32c-2.3.post0-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b823aacfefe0001a08667d7a4d7dd87133537e3628ed581fa416829a5dad26fd"}, - {file = "crc32c-2.3.post0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:a4d98142f6e40dec28994846a6acafd96ba822d81b3c6671633fb11d41692c32"}, - {file = "crc32c-2.3.post0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:bce06be1d9aa7e4b3e3038fe80facafa3526bec9e484ec089c035b8018727c1b"}, - {file = "crc32c-2.3.post0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0467261c67377a92ad6665a9590b3820cfb12d59c3c6ccac6326200e032ddda4"}, - {file = "crc32c-2.3.post0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1101b4e680085ea7c01074d38378610392262bc56936ec17eed61f1372197193"}, - {file = "crc32c-2.3.post0-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80ddf6b0594bb980a635ff4818c0c64927193c1a09e8b5b6986769e94a7ba9ee"}, - {file = "crc32c-2.3.post0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:3e547c06a1dda463daf398661af6bda767debe0097630b48c463605e38ade31a"}, - {file = "crc32c-2.3.post0.tar.gz", hash = "sha256:7d4b39ca6791830c4f1c053d2d8983627af702f0445535ff53d3220f35cf6ce6"}, + {file = "crc32c-2.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:b26976cfd4ed65b8ea91e5b5dcff27c4bf227594216d89944cf04e3821b673a3"}, + {file = "crc32c-2.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:95d46af714e01a091b17ac60526c7d78f21bf0c390cf013efb918a56191d0782"}, + {file = "crc32c-2.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4e01e3651a7d56808b792a381485e13366fd20a507bf41e48f266ca17af4c068"}, + {file = "crc32c-2.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d73e77f63f1a9fc3a6497b539fbcfde62dfe90daa2ad6edaad7df595164f76c0"}, + {file = "crc32c-2.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:95281a7e1192c4a046986e8e3e4cf766dbd45e91b22b501b1ad2b19446e5a825"}, + {file = "crc32c-2.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f4c9f501bb48e0a24bef9f0965ef83fcf882dfc2d4e9187e2721ba40d1e75c0e"}, + {file = "crc32c-2.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:b55f015d76b220eb4cb213ab3353f17c96fb76ed3d06c6cf404c091705302d89"}, + {file = "crc32c-2.4-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:05f958a1a3f1a60c86f0f60079ec57b626251331b321a3b261c2a3ee29026d5c"}, + {file = "crc32c-2.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:3c12a2c03fa27f5cf4d28f59c6923568351e0924e2996d878dbeacf83faea4d6"}, + {file = "crc32c-2.4-cp310-cp310-win32.whl", hash = "sha256:2a64596f336c9d57fed222bac0b6b37432c9269d86624b7a3dfb9ba018e6c543"}, + {file = "crc32c-2.4-cp310-cp310-win_amd64.whl", hash = "sha256:c4f3f547f68715525d8fd0bb04c890e4968c6c20d04994dbac533631f7c4ad10"}, + {file = "crc32c-2.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:77c4066f2093f50f2c400ac50b88b07739747088d1498c00d24a3166caed7213"}, + {file = "crc32c-2.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:37a8adef2aecc4158b2e3cd60e65b89a67368b3d01cbf05a80a57dd3a8cb785f"}, + {file = "crc32c-2.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:9bf83f8840d256d2d05d83c7ca2f5971e8a022e6106a14a70ea3667aa5981463"}, + {file = "crc32c-2.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a76ead3fbf8aea7170c5c32b680491551a6195f17b0e05765fb4b452594178ea"}, + {file = "crc32c-2.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:28c335908504bc84a5779cc41a9200178562c2c79050d8458ebe94d5702a8cf0"}, + {file = "crc32c-2.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d4262e7bcb578f4e86eb04c4bea02762889249480e0154adaed01bec4c25a068"}, + {file = "crc32c-2.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:83e79881d47a0773137926f5beec89575906f3dd057e6b4a181c890840b9e08d"}, + {file = "crc32c-2.4-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:f50a52c10682e56a8fe6934a4e86600e93c4b42a5481b8ff3da0fecca1fa7bad"}, + {file = "crc32c-2.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:db91b486df07a622553b64fb5d2a67696240914c63d7230410da3a636ea859dc"}, + {file = "crc32c-2.4-cp311-cp311-win32.whl", hash = "sha256:988c608cfc8e708690102e7abb5e2f98e68641cf0ab43ef8777430a963b02d70"}, + {file = "crc32c-2.4-cp311-cp311-win_amd64.whl", hash = "sha256:977a748205dc7ab775b26a4f1ba5372b0ddf3e9bcb24ec78fcd8e9eaf836e572"}, + {file = "crc32c-2.4-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:1f7a2de234982a4a5b299b753f08c41257912c5d12076558238ceb4efdc5b07b"}, + {file = "crc32c-2.4-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:a95845816b739860684bac663bc98cc1a4358711a73d8602b4efa3611cab4d06"}, + {file = "crc32c-2.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc34af7d14ae61061d0f15eb3b819692471c5e7403fa2d9284c5c6fdbe621c9b"}, + {file = "crc32c-2.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6fca7abb3cea2453e136b2439f5bc9202660d057835b7005b2a589c2a6daa4c0"}, + {file = "crc32c-2.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f529dbc0e22a1dbe86de712367960374073a2dca543a18c2b2e5ea77fda231b5"}, + {file = "crc32c-2.4-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aec0399578bc380497dc9441d58c7368d83c89f38423f799a315be08b3f0957b"}, + {file = "crc32c-2.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:a66e68e9cc4c05db725235079d1f3f647120622e29761cc1e8c81b55eb7810dc"}, + {file = "crc32c-2.4-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:15cc1e2d7749b3096cbca08a707fafb61d63a3d5306aa42ce7a131d504d3b931"}, + {file = "crc32c-2.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:3975c76e10386e5a9049bc948c13c5cb996e26e05b736723c4c88f4f034c1776"}, + {file = "crc32c-2.4-cp312-cp312-win32.whl", hash = "sha256:8167d620bf80ecd0eafc0b0dd9b039e6ec181eed06288ad6cec346bc058dc1d2"}, + {file = "crc32c-2.4-cp312-cp312-win_amd64.whl", hash = "sha256:d39e4af6d69cb23fa86030dc50737abd6d5f399dc95ab1bd8a89d69329da8aeb"}, + {file = "crc32c-2.4-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:3742a602867966b088a6ba245fa44f5f6c232e352e2474bf8a53992df97f3f9b"}, + {file = "crc32c-2.4-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4c360a88b6acfe0067516df616e7a9c8174c99803ef39815a8bb57efae93b72e"}, + {file = "crc32c-2.4-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c58243f207c836db732165fbe3cf113029476e1e8f58f3c7d0b7fa29c99dcec8"}, + {file = "crc32c-2.4-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0e3c10c238dd16747a532496ef608ceff755c2635c21657248a8c032d32c8e70"}, + {file = "crc32c-2.4-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:c9cde473e48e566f4733607ab91e25ff13fd6859bb95fb1bef5ad8bb6e182f15"}, + {file = "crc32c-2.4-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:f23eaa542d2ebb0222d96d217a346c398f0ffb1535c694a76a3d71a2752eadad"}, + {file = "crc32c-2.4-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:fc8769c407f98a659c7694399d0b8773f0f7b9b5424e09e45d4e1036037efdf7"}, + {file = "crc32c-2.4-cp36-cp36m-win32.whl", hash = "sha256:34ea2c204b8986c31789e8ff297bbd88e340a8a8c53d02d1802088494322911d"}, + {file = "crc32c-2.4-cp36-cp36m-win_amd64.whl", hash = "sha256:5c291a08519d170cd58787fe6d70e3828df10a86c72cefd2758dd6434e05888f"}, + {file = "crc32c-2.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:031353d47819b0d6d4ea683dd5b6aecc72e3682449e88457f38a670cb3f354b8"}, + {file = "crc32c-2.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ce14694790a85b60cf3f4a3244f6bb6cf2f303e51538734a23f9a3698ba7d53b"}, + {file = "crc32c-2.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:954eff112ad1586c3b719c3d6e5c00aa97c9484fdb629643b0b800a9416daa8d"}, + {file = "crc32c-2.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5bc180735766f8d85142ee89807c3414b0179456ca5149018d697ead17c3c014"}, + {file = "crc32c-2.4-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:96c3e4c940ff987cb15f41e0f5bc582c0dfa9c961f82686ee8478afb38056c13"}, + {file = "crc32c-2.4-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:1d5df23c0ef1564ea5ffbb6476f34e0f289fc18c48562e13fc7a402ba02847b7"}, + {file = "crc32c-2.4-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:057d1d22033e44611eb69ffbb67bcaee6cc3dab3e1635874908de959aece279f"}, + {file = "crc32c-2.4-cp37-cp37m-win32.whl", hash = "sha256:866747ffbcd86b49176ddcc9234ef2ddea58d77f3fa9fa1207633fcbdfae37bd"}, + {file = "crc32c-2.4-cp37-cp37m-win_amd64.whl", hash = "sha256:6464b53971ac49098fec692cf022d69548fbd07a02290033f8ed00a23d69055d"}, + {file = "crc32c-2.4-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:b9ec8a8c91cbd17dd86bd75ab96db6adf4fcb450e7f0cbed6140174251ad79a3"}, + {file = "crc32c-2.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:10817aa19b6c97d358a28f49ff85057638ae6e750d602b363b138a1049299e97"}, + {file = "crc32c-2.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:16b2fad68d0f79cd4203940988a3a4bd406a283e73d9f77a03ad8ee6ca92ae20"}, + {file = "crc32c-2.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1fbe7a12a1ca4de17490f08518cff6e2a83610fa8c38c1cf7eadbcb7b7aad806"}, + {file = "crc32c-2.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:031339d84e80d8724e27f208bf4899ffc87854e0e6b743fc98f7d36162d7ce3c"}, + {file = "crc32c-2.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2e5dce1731925a9395240cd33edf15aaf17521694acea5596f5a21868492169"}, + {file = "crc32c-2.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:cc590453e1f3fa940c845338419947ffd765860f6f421abeb20bfe4d86517b5a"}, + {file = "crc32c-2.4-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:9d85331942b9a9af00648cde7ee03fb6b51b7cf49cf98384c642b453874e30f5"}, + {file = "crc32c-2.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:1ccc74911a9815f0ec1d21130aa94b4d33ce04b4612e0144621dd5a15708ef5d"}, + {file = "crc32c-2.4-cp38-cp38-win32.whl", hash = "sha256:8bed35233cfe0af313b3b881af16f3ea9d4fce92e7c3c17120011103e063374a"}, + {file = "crc32c-2.4-cp38-cp38-win_amd64.whl", hash = "sha256:5768230e26ebfa35e167eb58f7d36e72d290545e436cf3e50ec94071743be16b"}, + {file = "crc32c-2.4-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:7020406b9732001f29f4d77fbec664b3f85c1fcf5f459ae3977fa6e4846a23b6"}, + {file = "crc32c-2.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:8549d8405eae1b420ecba6d32ca8d8e37de98722b18f4254bc60fff7162b56d9"}, + {file = "crc32c-2.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6e19ff2bb106a2c1afed9ffa1c38c877d0003cd5b4e8d821afcff743e18c8777"}, + {file = "crc32c-2.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fc06d46ae9390ef2ef973f1e609f388c40b2d120aa81bccc506a48534d7ee9b5"}, + {file = "crc32c-2.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e9ee7970e7abb18f4a3700c0a0e10e662feb4a20cc4b7a5cb69693dc9d4cb858"}, + {file = "crc32c-2.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5124e149fdb0b6e1c58024be3b944e3650125d209ef3a2b07de303b6d619c60e"}, + {file = "crc32c-2.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:9b9b218cee7d820512a5d76d1e0d3aeeb24886f5a9f543685f5acb23d956c3f1"}, + {file = "crc32c-2.4-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:94820b8e069d5eb711afed7920b2b9eb7919869204e09434d71c7d1b8e1a00bf"}, + {file = "crc32c-2.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a176337bdde989f3a1f0a930619baf2406521c12be744074c6f0eb4e7b6ba346"}, + {file = "crc32c-2.4-cp39-cp39-win32.whl", hash = "sha256:240f60443c1b8196b619e899c4eae30a09e38151f92c4436d24e119647e9f71a"}, + {file = "crc32c-2.4-cp39-cp39-win_amd64.whl", hash = "sha256:55775065e2c806acc3ecd1e72de8936e1c56dd967d81c89bc219477d65333c01"}, + {file = "crc32c-2.4-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:9247cc523fbb7e2166a7058f6723c444fd07b9bf5c87c5c242fd635d46fe9089"}, + {file = "crc32c-2.4-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a93e778a60cb8bb609dc4d596ccedb933e833c94d828820bccb929829321dbc0"}, + {file = "crc32c-2.4-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:625c9fafb4ed85a335ca95c2869c0ad873ae8f18aa8a149314a3b1129b36cda7"}, + {file = "crc32c-2.4-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:96a8c2d32dc07872c16113bf2a51803d5101ff7e616d9cd94fad9e24066e75cb"}, + {file = "crc32c-2.4-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:5a0f7eeaa37cff2ccfaa155906e7079716535b02c6211bf1be58542a3524558d"}, + {file = "crc32c-2.4-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:a00edfa728279367de8b394822b3439fa5927002b53d98445b6ec628f4269b0f"}, + {file = "crc32c-2.4-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cbbefad3c6aea43e74c5a6e968b4226426ba01b88a5922778566bdba65c3f74"}, + {file = "crc32c-2.4-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:39aedd018ec2e70f7322778a8a2b7ed1a13b183aa6b9622e0f8df59e6af2f5bf"}, + {file = "crc32c-2.4-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0429062fe7d6568d44548dccdbd0a8a63fc7b0fdc20bbde91f5b1e3ea3cccab5"}, + {file = "crc32c-2.4-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:fd082fa802d2183179554ad6a202c3ec7c101b2eda283e9074e0f7b9a68f5504"}, + {file = "crc32c-2.4-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:62f4cd80d02b0337b33ddd3889267f2ad93472ea36ae81656ad50340aa8e5784"}, + {file = "crc32c-2.4-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2c0fe3b69f6c1ec9f0600be6564439da7e2af8ee9ffd5ac7b213591671e09a66"}, + {file = "crc32c-2.4-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a90b7c3305ec5d03c5791f77ba7a3cb49ac74de762e2307c62dd6f3985b27a9d"}, + {file = "crc32c-2.4-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:512af034f21f0fe4f0b599cd4278332c970ddc9122df0aadda5193c3a6edb87a"}, + {file = "crc32c-2.4-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:c96e20f3ea5381126c0c66ad52857942dde9faa4ac4499086a55cc17d3d1bfdb"}, + {file = "crc32c-2.4-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:53c4fd7e21a69df50611800f97db74f21aa2d4b122bc740a88385023c2e7bf0c"}, + {file = "crc32c-2.4-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0a9dc5771634fafd1a548d7f84cfc0f1b8bb03f7fb4913614fb0f5998e2137af"}, + {file = "crc32c-2.4-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b341f6f4a5222c171c04de2c2918212d8087c9c9955996c8af502169dd6ce376"}, + {file = "crc32c-2.4-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f3b192e3368faee25f63a544902f242a010974b12d3ee415871c3163b5d7547b"}, + {file = "crc32c-2.4-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:7f6775d6266f8f72734c2e8e2663262fef3a9ccc1953791099c21f19be58d5de"}, + {file = "crc32c-2.4.tar.gz", hash = "sha256:d985c4d9b1a1fd16c593d83f8735a8e4e156790a95338a1e0b199aac51ca1e5e"}, ] [[package]] name = "cryptography" -version = "41.0.5" +version = "41.0.7" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." optional = false python-versions = ">=3.7" files = [ - {file = "cryptography-41.0.5-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:da6a0ff8f1016ccc7477e6339e1d50ce5f59b88905585f77193ebd5068f1e797"}, - {file = "cryptography-41.0.5-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:b948e09fe5fb18517d99994184854ebd50b57248736fd4c720ad540560174ec5"}, - {file = "cryptography-41.0.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d38e6031e113b7421db1de0c1b1f7739564a88f1684c6b89234fbf6c11b75147"}, - {file = "cryptography-41.0.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e270c04f4d9b5671ebcc792b3ba5d4488bf7c42c3c241a3748e2599776f29696"}, - {file = "cryptography-41.0.5-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:ec3b055ff8f1dce8e6ef28f626e0972981475173d7973d63f271b29c8a2897da"}, - {file = "cryptography-41.0.5-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:7d208c21e47940369accfc9e85f0de7693d9a5d843c2509b3846b2db170dfd20"}, - {file = "cryptography-41.0.5-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:8254962e6ba1f4d2090c44daf50a547cd5f0bf446dc658a8e5f8156cae0d8548"}, - {file = "cryptography-41.0.5-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:a48e74dad1fb349f3dc1d449ed88e0017d792997a7ad2ec9587ed17405667e6d"}, - {file = "cryptography-41.0.5-cp37-abi3-win32.whl", hash = "sha256:d3977f0e276f6f5bf245c403156673db103283266601405376f075c849a0b936"}, - {file = "cryptography-41.0.5-cp37-abi3-win_amd64.whl", hash = "sha256:73801ac9736741f220e20435f84ecec75ed70eda90f781a148f1bad546963d81"}, - {file = "cryptography-41.0.5-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:3be3ca726e1572517d2bef99a818378bbcf7d7799d5372a46c79c29eb8d166c1"}, - {file = "cryptography-41.0.5-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:e886098619d3815e0ad5790c973afeee2c0e6e04b4da90b88e6bd06e2a0b1b72"}, - {file = "cryptography-41.0.5-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:573eb7128cbca75f9157dcde974781209463ce56b5804983e11a1c462f0f4e88"}, - {file = "cryptography-41.0.5-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:0c327cac00f082013c7c9fb6c46b7cc9fa3c288ca702c74773968173bda421bf"}, - {file = "cryptography-41.0.5-pp38-pypy38_pp73-macosx_10_12_x86_64.whl", hash = "sha256:227ec057cd32a41c6651701abc0328135e472ed450f47c2766f23267b792a88e"}, - {file = "cryptography-41.0.5-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:22892cc830d8b2c89ea60148227631bb96a7da0c1b722f2aac8824b1b7c0b6b8"}, - {file = "cryptography-41.0.5-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:5a70187954ba7292c7876734183e810b728b4f3965fbe571421cb2434d279179"}, - {file = "cryptography-41.0.5-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:88417bff20162f635f24f849ab182b092697922088b477a7abd6664ddd82291d"}, - {file = "cryptography-41.0.5-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:c707f7afd813478e2019ae32a7c49cd932dd60ab2d2a93e796f68236b7e1fbf1"}, - {file = "cryptography-41.0.5-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:580afc7b7216deeb87a098ef0674d6ee34ab55993140838b14c9b83312b37b86"}, - {file = "cryptography-41.0.5-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:fba1e91467c65fe64a82c689dc6cf58151158993b13eb7a7f3f4b7f395636723"}, - {file = "cryptography-41.0.5-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:0d2a6a598847c46e3e321a7aef8af1436f11c27f1254933746304ff014664d84"}, - {file = "cryptography-41.0.5.tar.gz", hash = "sha256:392cb88b597247177172e02da6b7a63deeff1937fa6fec3bbf902ebd75d97ec7"}, + {file = "cryptography-41.0.7-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:3c78451b78313fa81607fa1b3f1ae0a5ddd8014c38a02d9db0616133987b9cdf"}, + {file = "cryptography-41.0.7-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:928258ba5d6f8ae644e764d0f996d61a8777559f72dfeb2eea7e2fe0ad6e782d"}, + {file = "cryptography-41.0.7-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5a1b41bc97f1ad230a41657d9155113c7521953869ae57ac39ac7f1bb471469a"}, + {file = "cryptography-41.0.7-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:841df4caa01008bad253bce2a6f7b47f86dc9f08df4b433c404def869f590a15"}, + {file = "cryptography-41.0.7-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:5429ec739a29df2e29e15d082f1d9ad683701f0ec7709ca479b3ff2708dae65a"}, + {file = "cryptography-41.0.7-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:43f2552a2378b44869fe8827aa19e69512e3245a219104438692385b0ee119d1"}, + {file = "cryptography-41.0.7-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:af03b32695b24d85a75d40e1ba39ffe7db7ffcb099fe507b39fd41a565f1b157"}, + {file = "cryptography-41.0.7-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:49f0805fc0b2ac8d4882dd52f4a3b935b210935d500b6b805f321addc8177406"}, + {file = "cryptography-41.0.7-cp37-abi3-win32.whl", hash = "sha256:f983596065a18a2183e7f79ab3fd4c475205b839e02cbc0efbbf9666c4b3083d"}, + {file = "cryptography-41.0.7-cp37-abi3-win_amd64.whl", hash = "sha256:90452ba79b8788fa380dfb587cca692976ef4e757b194b093d845e8d99f612f2"}, + {file = "cryptography-41.0.7-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:079b85658ea2f59c4f43b70f8119a52414cdb7be34da5d019a77bf96d473b960"}, + {file = "cryptography-41.0.7-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:b640981bf64a3e978a56167594a0e97db71c89a479da8e175d8bb5be5178c003"}, + {file = "cryptography-41.0.7-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:e3114da6d7f95d2dee7d3f4eec16dacff819740bbab931aff8648cb13c5ff5e7"}, + {file = "cryptography-41.0.7-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:d5ec85080cce7b0513cfd233914eb8b7bbd0633f1d1703aa28d1dd5a72f678ec"}, + {file = "cryptography-41.0.7-pp38-pypy38_pp73-macosx_10_12_x86_64.whl", hash = "sha256:7a698cb1dac82c35fcf8fe3417a3aaba97de16a01ac914b89a0889d364d2f6be"}, + {file = "cryptography-41.0.7-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:37a138589b12069efb424220bf78eac59ca68b95696fc622b6ccc1c0a197204a"}, + {file = "cryptography-41.0.7-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:68a2dec79deebc5d26d617bfdf6e8aab065a4f34934b22d3b5010df3ba36612c"}, + {file = "cryptography-41.0.7-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:09616eeaef406f99046553b8a40fbf8b1e70795a91885ba4c96a70793de5504a"}, + {file = "cryptography-41.0.7-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:48a0476626da912a44cc078f9893f292f0b3e4c739caf289268168d8f4702a39"}, + {file = "cryptography-41.0.7-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:c7f3201ec47d5207841402594f1d7950879ef890c0c495052fa62f58283fde1a"}, + {file = "cryptography-41.0.7-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:c5ca78485a255e03c32b513f8c2bc39fedb7f5c5f8535545bdc223a03b24f248"}, + {file = "cryptography-41.0.7-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:d6c391c021ab1f7a82da5d8d0b3cee2f4b2c455ec86c8aebbc84837a631ff309"}, + {file = "cryptography-41.0.7.tar.gz", hash = "sha256:13f93ce9bea8016c253b34afc6bd6a75993e5c40672ed5405a9c832f0d4a00bc"}, ] [package.dependencies] @@ -682,13 +682,13 @@ files = [ [[package]] name = "exceptiongroup" -version = "1.1.3" +version = "1.2.1" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" files = [ - {file = "exceptiongroup-1.1.3-py3-none-any.whl", hash = "sha256:343280667a4585d195ca1cf9cef84a4e178c4b6cf2274caef9859782b567d5e3"}, - {file = "exceptiongroup-1.1.3.tar.gz", hash = "sha256:097acd85d473d75af5bb98e41b61ff7fe35efe6675e4f9370ec6ec5126d160e9"}, + {file = "exceptiongroup-1.2.1-py3-none-any.whl", hash = "sha256:5258b9ed329c5bbdd31a309f53cbfb0b155341807f6ff7606a1e801a891b29ad"}, + {file = "exceptiongroup-1.2.1.tar.gz", hash = "sha256:a4785e48b045528f5bfe627b6ad554ff32def154f42372786903b7abcfe1aa16"}, ] [package.extras] @@ -696,13 +696,13 @@ test = ["pytest (>=6)"] [[package]] name = "execnet" -version = "2.0.2" +version = "2.1.1" description = "execnet: rapid multi-Python deployment" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "execnet-2.0.2-py3-none-any.whl", hash = "sha256:88256416ae766bc9e8895c76a87928c0012183da3cc4fc18016e6f050e025f41"}, - {file = "execnet-2.0.2.tar.gz", hash = "sha256:cc59bc4423742fd71ad227122eb0dd44db51efb3dc4095b45ac9a08c770096af"}, + {file = "execnet-2.1.1-py3-none-any.whl", hash = "sha256:26dee51f1b80cebd6d0ca8e74dd8745419761d3bef34163928cbebbdc4749fdc"}, + {file = "execnet-2.1.1.tar.gz", hash = "sha256:5189b52c6121c24feae288166ab41b32549c7e2348652736540b9e6e7d4e72e3"}, ] [package.extras] @@ -726,13 +726,13 @@ pyflakes = ">=2.4.0,<2.5.0" [[package]] name = "flaky" -version = "3.7.0" -description = "Plugin for nose or pytest that automatically reruns flaky tests." +version = "3.8.1" +description = "Plugin for pytest that automatically reruns flaky tests." optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +python-versions = ">=3.5" files = [ - {file = "flaky-3.7.0-py2.py3-none-any.whl", hash = "sha256:d6eda73cab5ae7364504b7c44670f70abed9e75f77dd116352f662817592ec9c"}, - {file = "flaky-3.7.0.tar.gz", hash = "sha256:3ad100780721a1911f57a165809b7ea265a7863305acb66708220820caf8aa0d"}, + {file = "flaky-3.8.1-py2.py3-none-any.whl", hash = "sha256:194ccf4f0d3a22b2de7130f4b62e45e977ac1b5ccad74d4d48f3005dcc38815e"}, + {file = "flaky-3.8.1.tar.gz", hash = "sha256:47204a81ec905f3d5acfbd61daeabcada8f9d4031616d9bcb0618461729699f5"}, ] [[package]] @@ -760,13 +760,13 @@ dotenv = ["python-dotenv"] [[package]] name = "flask-cors" -version = "4.0.0" +version = "4.0.1" description = "A Flask extension adding a decorator for CORS support" optional = false python-versions = "*" files = [ - {file = "Flask-Cors-4.0.0.tar.gz", hash = "sha256:f268522fcb2f73e2ecdde1ef45e2fd5c71cc48fe03cffb4b441c6d1b40684eb0"}, - {file = "Flask_Cors-4.0.0-py2.py3-none-any.whl", hash = "sha256:bc3492bfd6368d27cfe79c7821df5a8a319e1a6d5eab277a3794be19bdc51783"}, + {file = "Flask_Cors-4.0.1-py2.py3-none-any.whl", hash = "sha256:f2a704e4458665580c074b714c4627dd5a306b333deb9074d0b1794dfa2fb677"}, + {file = "flask_cors-4.0.1.tar.gz", hash = "sha256:eeb69b342142fdbf4766ad99357a7f3876a2ceb77689dc10ff912aac06c389e4"}, ] [package.dependencies] @@ -774,26 +774,27 @@ Flask = ">=0.9" [[package]] name = "flask-restx" -version = "1.1.0" +version = "1.3.0" description = "Fully featured framework for fast, easy and documented API development with Flask" optional = false python-versions = "*" files = [ - {file = "flask-restx-1.1.0.tar.gz", hash = "sha256:62b6b6c9de65e5960cf4f8b35e1bd3eca6998838a01b2f71e2a9d4c14a4ccd14"}, - {file = "flask_restx-1.1.0-py2.py3-none-any.whl", hash = "sha256:eaff65f6edd400ee00b40475496d61a4937b28371dfed039d3fd180d206fee4e"}, + {file = "flask-restx-1.3.0.tar.gz", hash = "sha256:4f3d3fa7b6191fcc715b18c201a12cd875176f92ba4acc61626ccfd571ee1728"}, + {file = "flask_restx-1.3.0-py2.py3-none-any.whl", hash = "sha256:636c56c3fb3f2c1df979e748019f084a938c4da2035a3e535a4673e4fc177691"}, ] [package.dependencies] aniso8601 = ">=0.82" Flask = ">=0.8,<2.0.0 || >2.0.0" +importlib-resources = "*" jsonschema = "*" pytz = "*" werkzeug = "!=2.0.0" [package.extras] -dev = ["Faker (==2.0.0)", "black", "blinker", "invoke (==2.0.0)", "mock (==3.0.5)", "pytest (==7.0.1)", "pytest-benchmark (==3.4.1)", "pytest-cov (==4.0.0)", "pytest-flask (==1.2.0)", "pytest-mock (==3.6.1)", "pytest-profiling (==1.7.0)", "tox", "twine (==3.8.0)", "tzlocal"] +dev = ["Faker (==2.0.0)", "black", "blinker", "invoke (==2.2.0)", "mock (==3.0.5)", "pytest (==7.0.1)", "pytest-benchmark (==3.4.1)", "pytest-cov (==4.0.0)", "pytest-flask (==1.3.0)", "pytest-mock (==3.6.1)", "pytest-profiling (==1.7.0)", "setuptools", "tox", "twine (==3.8.0)", "tzlocal"] doc = ["Sphinx (==5.3.0)", "alabaster (==0.7.12)", "sphinx-issues (==3.0.1)"] -test = ["Faker (==2.0.0)", "blinker", "invoke (==2.0.0)", "mock (==3.0.5)", "pytest (==7.0.1)", "pytest-benchmark (==3.4.1)", "pytest-cov (==4.0.0)", "pytest-flask (==1.2.0)", "pytest-mock (==3.6.1)", "pytest-profiling (==1.7.0)", "twine (==3.8.0)", "tzlocal"] +test = ["Faker (==2.0.0)", "blinker", "invoke (==2.2.0)", "mock (==3.0.5)", "pytest (==7.0.1)", "pytest-benchmark (==3.4.1)", "pytest-cov (==4.0.0)", "pytest-flask (==1.3.0)", "pytest-mock (==3.6.1)", "pytest-profiling (==1.7.0)", "setuptools", "twine (==3.8.0)", "tzlocal"] [[package]] name = "flask-socketio" @@ -894,210 +895,198 @@ gevent = "*" [[package]] name = "greenlet" -version = "3.0.0" +version = "3.0.3" description = "Lightweight in-process concurrent programming" optional = false python-versions = ">=3.7" files = [ - {file = "greenlet-3.0.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e09dea87cc91aea5500262993cbd484b41edf8af74f976719dd83fe724644cd6"}, - {file = "greenlet-3.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f47932c434a3c8d3c86d865443fadc1fbf574e9b11d6650b656e602b1797908a"}, - {file = "greenlet-3.0.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bdfaeecf8cc705d35d8e6de324bf58427d7eafb55f67050d8f28053a3d57118c"}, - {file = "greenlet-3.0.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6a68d670c8f89ff65c82b936275369e532772eebc027c3be68c6b87ad05ca695"}, - {file = "greenlet-3.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:38ad562a104cd41e9d4644f46ea37167b93190c6d5e4048fcc4b80d34ecb278f"}, - {file = "greenlet-3.0.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:02a807b2a58d5cdebb07050efe3d7deaf915468d112dfcf5e426d0564aa3aa4a"}, - {file = "greenlet-3.0.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:b1660a15a446206c8545edc292ab5c48b91ff732f91b3d3b30d9a915d5ec4779"}, - {file = "greenlet-3.0.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:813720bd57e193391dfe26f4871186cf460848b83df7e23e6bef698a7624b4c9"}, - {file = "greenlet-3.0.0-cp310-cp310-win_amd64.whl", hash = "sha256:aa15a2ec737cb609ed48902b45c5e4ff6044feb5dcdfcf6fa8482379190330d7"}, - {file = "greenlet-3.0.0-cp310-universal2-macosx_11_0_x86_64.whl", hash = "sha256:7709fd7bb02b31908dc8fd35bfd0a29fc24681d5cc9ac1d64ad07f8d2b7db62f"}, - {file = "greenlet-3.0.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:211ef8d174601b80e01436f4e6905aca341b15a566f35a10dd8d1e93f5dbb3b7"}, - {file = "greenlet-3.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6512592cc49b2c6d9b19fbaa0312124cd4c4c8a90d28473f86f92685cc5fef8e"}, - {file = "greenlet-3.0.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:871b0a8835f9e9d461b7fdaa1b57e3492dd45398e87324c047469ce2fc9f516c"}, - {file = "greenlet-3.0.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b505fcfc26f4148551826a96f7317e02c400665fa0883fe505d4fcaab1dabfdd"}, - {file = "greenlet-3.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:123910c58234a8d40eaab595bc56a5ae49bdd90122dde5bdc012c20595a94c14"}, - {file = "greenlet-3.0.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:96d9ea57292f636ec851a9bb961a5cc0f9976900e16e5d5647f19aa36ba6366b"}, - {file = "greenlet-3.0.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:0b72b802496cccbd9b31acea72b6f87e7771ccfd7f7927437d592e5c92ed703c"}, - {file = "greenlet-3.0.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:527cd90ba3d8d7ae7dceb06fda619895768a46a1b4e423bdb24c1969823b8362"}, - {file = "greenlet-3.0.0-cp311-cp311-win_amd64.whl", hash = "sha256:37f60b3a42d8b5499be910d1267b24355c495064f271cfe74bf28b17b099133c"}, - {file = "greenlet-3.0.0-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:1482fba7fbed96ea7842b5a7fc11d61727e8be75a077e603e8ab49d24e234383"}, - {file = "greenlet-3.0.0-cp312-cp312-macosx_13_0_arm64.whl", hash = "sha256:be557119bf467d37a8099d91fbf11b2de5eb1fd5fc5b91598407574848dc910f"}, - {file = "greenlet-3.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:73b2f1922a39d5d59cc0e597987300df3396b148a9bd10b76a058a2f2772fc04"}, - {file = "greenlet-3.0.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d1e22c22f7826096ad503e9bb681b05b8c1f5a8138469b255eb91f26a76634f2"}, - {file = "greenlet-3.0.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1d363666acc21d2c204dd8705c0e0457d7b2ee7a76cb16ffc099d6799744ac99"}, - {file = "greenlet-3.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:334ef6ed8337bd0b58bb0ae4f7f2dcc84c9f116e474bb4ec250a8bb9bd797a66"}, - {file = "greenlet-3.0.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6672fdde0fd1a60b44fb1751a7779c6db487e42b0cc65e7caa6aa686874e79fb"}, - {file = "greenlet-3.0.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:952256c2bc5b4ee8df8dfc54fc4de330970bf5d79253c863fb5e6761f00dda35"}, - {file = "greenlet-3.0.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:269d06fa0f9624455ce08ae0179430eea61085e3cf6457f05982b37fd2cefe17"}, - {file = "greenlet-3.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:9adbd8ecf097e34ada8efde9b6fec4dd2a903b1e98037adf72d12993a1c80b51"}, - {file = "greenlet-3.0.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c6b5ce7f40f0e2f8b88c28e6691ca6806814157ff05e794cdd161be928550f4c"}, - {file = "greenlet-3.0.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ecf94aa539e97a8411b5ea52fc6ccd8371be9550c4041011a091eb8b3ca1d810"}, - {file = "greenlet-3.0.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:80dcd3c938cbcac986c5c92779db8e8ce51a89a849c135172c88ecbdc8c056b7"}, - {file = "greenlet-3.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e52a712c38e5fb4fd68e00dc3caf00b60cb65634d50e32281a9d6431b33b4af1"}, - {file = "greenlet-3.0.0-cp37-cp37m-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d5539f6da3418c3dc002739cb2bb8d169056aa66e0c83f6bacae0cd3ac26b423"}, - {file = "greenlet-3.0.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:343675e0da2f3c69d3fb1e894ba0a1acf58f481f3b9372ce1eb465ef93cf6fed"}, - {file = "greenlet-3.0.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:abe1ef3d780de56defd0c77c5ba95e152f4e4c4e12d7e11dd8447d338b85a625"}, - {file = "greenlet-3.0.0-cp37-cp37m-win32.whl", hash = "sha256:e693e759e172fa1c2c90d35dea4acbdd1d609b6936115d3739148d5e4cd11947"}, - {file = "greenlet-3.0.0-cp37-cp37m-win_amd64.whl", hash = "sha256:bdd696947cd695924aecb3870660b7545a19851f93b9d327ef8236bfc49be705"}, - {file = "greenlet-3.0.0-cp37-universal2-macosx_11_0_x86_64.whl", hash = "sha256:cc3e2679ea13b4de79bdc44b25a0c4fcd5e94e21b8f290791744ac42d34a0353"}, - {file = "greenlet-3.0.0-cp38-cp38-macosx_11_0_universal2.whl", hash = "sha256:63acdc34c9cde42a6534518e32ce55c30f932b473c62c235a466469a710bfbf9"}, - {file = "greenlet-3.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4a1a6244ff96343e9994e37e5b4839f09a0207d35ef6134dce5c20d260d0302c"}, - {file = "greenlet-3.0.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b822fab253ac0f330ee807e7485769e3ac85d5eef827ca224feaaefa462dc0d0"}, - {file = "greenlet-3.0.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8060b32d8586e912a7b7dac2d15b28dbbd63a174ab32f5bc6d107a1c4143f40b"}, - {file = "greenlet-3.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:621fcb346141ae08cb95424ebfc5b014361621b8132c48e538e34c3c93ac7365"}, - {file = "greenlet-3.0.0-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bb36985f606a7c49916eff74ab99399cdfd09241c375d5a820bb855dfb4af9f"}, - {file = "greenlet-3.0.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:10b5582744abd9858947d163843d323d0b67be9432db50f8bf83031032bc218d"}, - {file = "greenlet-3.0.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:f351479a6914fd81a55c8e68963609f792d9b067fb8a60a042c585a621e0de4f"}, - {file = "greenlet-3.0.0-cp38-cp38-win32.whl", hash = "sha256:9de687479faec7db5b198cc365bc34addd256b0028956501f4d4d5e9ca2e240a"}, - {file = "greenlet-3.0.0-cp38-cp38-win_amd64.whl", hash = "sha256:3fd2b18432e7298fcbec3d39e1a0aa91ae9ea1c93356ec089421fabc3651572b"}, - {file = "greenlet-3.0.0-cp38-universal2-macosx_11_0_x86_64.whl", hash = "sha256:3c0d36f5adc6e6100aedbc976d7428a9f7194ea79911aa4bf471f44ee13a9464"}, - {file = "greenlet-3.0.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:4cd83fb8d8e17633ad534d9ac93719ef8937568d730ef07ac3a98cb520fd93e4"}, - {file = "greenlet-3.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6a5b2d4cdaf1c71057ff823a19d850ed5c6c2d3686cb71f73ae4d6382aaa7a06"}, - {file = "greenlet-3.0.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2e7dcdfad252f2ca83c685b0fa9fba00e4d8f243b73839229d56ee3d9d219314"}, - {file = "greenlet-3.0.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c94e4e924d09b5a3e37b853fe5924a95eac058cb6f6fb437ebb588b7eda79870"}, - {file = "greenlet-3.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ad6fb737e46b8bd63156b8f59ba6cdef46fe2b7db0c5804388a2d0519b8ddb99"}, - {file = "greenlet-3.0.0-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d55db1db455c59b46f794346efce896e754b8942817f46a1bada2d29446e305a"}, - {file = "greenlet-3.0.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:56867a3b3cf26dc8a0beecdb4459c59f4c47cdd5424618c08515f682e1d46692"}, - {file = "greenlet-3.0.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:9a812224a5fb17a538207e8cf8e86f517df2080c8ee0f8c1ed2bdaccd18f38f4"}, - {file = "greenlet-3.0.0-cp39-cp39-win32.whl", hash = "sha256:0d3f83ffb18dc57243e0151331e3c383b05e5b6c5029ac29f754745c800f8ed9"}, - {file = "greenlet-3.0.0-cp39-cp39-win_amd64.whl", hash = "sha256:831d6f35037cf18ca5e80a737a27d822d87cd922521d18ed3dbc8a6967be50ce"}, - {file = "greenlet-3.0.0-cp39-universal2-macosx_11_0_x86_64.whl", hash = "sha256:a048293392d4e058298710a54dfaefcefdf49d287cd33fb1f7d63d55426e4355"}, - {file = "greenlet-3.0.0.tar.gz", hash = "sha256:19834e3f91f485442adc1ee440171ec5d9a4840a1f7bd5ed97833544719ce10b"}, + {file = "greenlet-3.0.3-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:9da2bd29ed9e4f15955dd1595ad7bc9320308a3b766ef7f837e23ad4b4aac31a"}, + {file = "greenlet-3.0.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d353cadd6083fdb056bb46ed07e4340b0869c305c8ca54ef9da3421acbdf6881"}, + {file = "greenlet-3.0.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dca1e2f3ca00b84a396bc1bce13dd21f680f035314d2379c4160c98153b2059b"}, + {file = "greenlet-3.0.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3ed7fb269f15dc662787f4119ec300ad0702fa1b19d2135a37c2c4de6fadfd4a"}, + {file = "greenlet-3.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dd4f49ae60e10adbc94b45c0b5e6a179acc1736cf7a90160b404076ee283cf83"}, + {file = "greenlet-3.0.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:73a411ef564e0e097dbe7e866bb2dda0f027e072b04da387282b02c308807405"}, + {file = "greenlet-3.0.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:7f362975f2d179f9e26928c5b517524e89dd48530a0202570d55ad6ca5d8a56f"}, + {file = "greenlet-3.0.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:649dde7de1a5eceb258f9cb00bdf50e978c9db1b996964cd80703614c86495eb"}, + {file = "greenlet-3.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:68834da854554926fbedd38c76e60c4a2e3198c6fbed520b106a8986445caaf9"}, + {file = "greenlet-3.0.3-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:b1b5667cced97081bf57b8fa1d6bfca67814b0afd38208d52538316e9422fc61"}, + {file = "greenlet-3.0.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:52f59dd9c96ad2fc0d5724107444f76eb20aaccb675bf825df6435acb7703559"}, + {file = "greenlet-3.0.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:afaff6cf5200befd5cec055b07d1c0a5a06c040fe5ad148abcd11ba6ab9b114e"}, + {file = "greenlet-3.0.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fe754d231288e1e64323cfad462fcee8f0288654c10bdf4f603a39ed923bef33"}, + {file = "greenlet-3.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2797aa5aedac23af156bbb5a6aa2cd3427ada2972c828244eb7d1b9255846379"}, + {file = "greenlet-3.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b7f009caad047246ed379e1c4dbcb8b020f0a390667ea74d2387be2998f58a22"}, + {file = "greenlet-3.0.3-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:c5e1536de2aad7bf62e27baf79225d0d64360d4168cf2e6becb91baf1ed074f3"}, + {file = "greenlet-3.0.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:894393ce10ceac937e56ec00bb71c4c2f8209ad516e96033e4b3b1de270e200d"}, + {file = "greenlet-3.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:1ea188d4f49089fc6fb283845ab18a2518d279c7cd9da1065d7a84e991748728"}, + {file = "greenlet-3.0.3-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:70fb482fdf2c707765ab5f0b6655e9cfcf3780d8d87355a063547b41177599be"}, + {file = "greenlet-3.0.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d4d1ac74f5c0c0524e4a24335350edad7e5f03b9532da7ea4d3c54d527784f2e"}, + {file = "greenlet-3.0.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:149e94a2dd82d19838fe4b2259f1b6b9957d5ba1b25640d2380bea9c5df37676"}, + {file = "greenlet-3.0.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:15d79dd26056573940fcb8c7413d84118086f2ec1a8acdfa854631084393efcc"}, + {file = "greenlet-3.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:881b7db1ebff4ba09aaaeae6aa491daeb226c8150fc20e836ad00041bcb11230"}, + {file = "greenlet-3.0.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fcd2469d6a2cf298f198f0487e0a5b1a47a42ca0fa4dfd1b6862c999f018ebbf"}, + {file = "greenlet-3.0.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:1f672519db1796ca0d8753f9e78ec02355e862d0998193038c7073045899f305"}, + {file = "greenlet-3.0.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:2516a9957eed41dd8f1ec0c604f1cdc86758b587d964668b5b196a9db5bfcde6"}, + {file = "greenlet-3.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:bba5387a6975598857d86de9eac14210a49d554a77eb8261cc68b7d082f78ce2"}, + {file = "greenlet-3.0.3-cp37-cp37m-macosx_11_0_universal2.whl", hash = "sha256:5b51e85cb5ceda94e79d019ed36b35386e8c37d22f07d6a751cb659b180d5274"}, + {file = "greenlet-3.0.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:daf3cb43b7cf2ba96d614252ce1684c1bccee6b2183a01328c98d36fcd7d5cb0"}, + {file = "greenlet-3.0.3-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:99bf650dc5d69546e076f413a87481ee1d2d09aaaaaca058c9251b6d8c14783f"}, + {file = "greenlet-3.0.3-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2dd6e660effd852586b6a8478a1d244b8dc90ab5b1321751d2ea15deb49ed414"}, + {file = "greenlet-3.0.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e3391d1e16e2a5a1507d83e4a8b100f4ee626e8eca43cf2cadb543de69827c4c"}, + {file = "greenlet-3.0.3-cp37-cp37m-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e1f145462f1fa6e4a4ae3c0f782e580ce44d57c8f2c7aae1b6fa88c0b2efdb41"}, + {file = "greenlet-3.0.3-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:1a7191e42732df52cb5f39d3527217e7ab73cae2cb3694d241e18f53d84ea9a7"}, + {file = "greenlet-3.0.3-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:0448abc479fab28b00cb472d278828b3ccca164531daab4e970a0458786055d6"}, + {file = "greenlet-3.0.3-cp37-cp37m-win32.whl", hash = "sha256:b542be2440edc2d48547b5923c408cbe0fc94afb9f18741faa6ae970dbcb9b6d"}, + {file = "greenlet-3.0.3-cp37-cp37m-win_amd64.whl", hash = "sha256:01bc7ea167cf943b4c802068e178bbf70ae2e8c080467070d01bfa02f337ee67"}, + {file = "greenlet-3.0.3-cp38-cp38-macosx_11_0_universal2.whl", hash = "sha256:1996cb9306c8595335bb157d133daf5cf9f693ef413e7673cb07e3e5871379ca"}, + {file = "greenlet-3.0.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3ddc0f794e6ad661e321caa8d2f0a55ce01213c74722587256fb6566049a8b04"}, + {file = "greenlet-3.0.3-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c9db1c18f0eaad2f804728c67d6c610778456e3e1cc4ab4bbd5eeb8e6053c6fc"}, + {file = "greenlet-3.0.3-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7170375bcc99f1a2fbd9c306f5be8764eaf3ac6b5cb968862cad4c7057756506"}, + {file = "greenlet-3.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b66c9c1e7ccabad3a7d037b2bcb740122a7b17a53734b7d72a344ce39882a1b"}, + {file = "greenlet-3.0.3-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:098d86f528c855ead3479afe84b49242e174ed262456c342d70fc7f972bc13c4"}, + {file = "greenlet-3.0.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:81bb9c6d52e8321f09c3d165b2a78c680506d9af285bfccbad9fb7ad5a5da3e5"}, + {file = "greenlet-3.0.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:fd096eb7ffef17c456cfa587523c5f92321ae02427ff955bebe9e3c63bc9f0da"}, + {file = "greenlet-3.0.3-cp38-cp38-win32.whl", hash = "sha256:d46677c85c5ba00a9cb6f7a00b2bfa6f812192d2c9f7d9c4f6a55b60216712f3"}, + {file = "greenlet-3.0.3-cp38-cp38-win_amd64.whl", hash = "sha256:419b386f84949bf0e7c73e6032e3457b82a787c1ab4a0e43732898a761cc9dbf"}, + {file = "greenlet-3.0.3-cp39-cp39-macosx_11_0_universal2.whl", hash = "sha256:da70d4d51c8b306bb7a031d5cff6cc25ad253affe89b70352af5f1cb68e74b53"}, + {file = "greenlet-3.0.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:086152f8fbc5955df88382e8a75984e2bb1c892ad2e3c80a2508954e52295257"}, + {file = "greenlet-3.0.3-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d73a9fe764d77f87f8ec26a0c85144d6a951a6c438dfe50487df5595c6373eac"}, + {file = "greenlet-3.0.3-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b7dcbe92cc99f08c8dd11f930de4d99ef756c3591a5377d1d9cd7dd5e896da71"}, + {file = "greenlet-3.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1551a8195c0d4a68fac7a4325efac0d541b48def35feb49d803674ac32582f61"}, + {file = "greenlet-3.0.3-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:64d7675ad83578e3fc149b617a444fab8efdafc9385471f868eb5ff83e446b8b"}, + {file = "greenlet-3.0.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:b37eef18ea55f2ffd8f00ff8fe7c8d3818abd3e25fb73fae2ca3b672e333a7a6"}, + {file = "greenlet-3.0.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:77457465d89b8263bca14759d7c1684df840b6811b2499838cc5b040a8b5b113"}, + {file = "greenlet-3.0.3-cp39-cp39-win32.whl", hash = "sha256:57e8974f23e47dac22b83436bdcf23080ade568ce77df33159e019d161ce1d1e"}, + {file = "greenlet-3.0.3-cp39-cp39-win_amd64.whl", hash = "sha256:c5ee858cfe08f34712f548c3c363e807e7186f03ad7a5039ebadb29e8c6be067"}, + {file = "greenlet-3.0.3.tar.gz", hash = "sha256:43374442353259554ce33599da8b692d5aa96f8976d567d4badf263371fbe491"}, ] [package.extras] -docs = ["Sphinx"] +docs = ["Sphinx", "furo"] test = ["objgraph", "psutil"] [[package]] name = "grpcio" -version = "1.59.0" +version = "1.63.0" description = "HTTP/2-based RPC framework" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "grpcio-1.59.0-cp310-cp310-linux_armv7l.whl", hash = "sha256:225e5fa61c35eeaebb4e7491cd2d768cd8eb6ed00f2664fa83a58f29418b39fd"}, - {file = "grpcio-1.59.0-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:b95ec8ecc4f703f5caaa8d96e93e40c7f589bad299a2617bdb8becbcce525539"}, - {file = "grpcio-1.59.0-cp310-cp310-manylinux_2_17_aarch64.whl", hash = "sha256:1a839ba86764cc48226f50b924216000c79779c563a301586a107bda9cbe9dcf"}, - {file = "grpcio-1.59.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f6cfe44a5d7c7d5f1017a7da1c8160304091ca5dc64a0f85bca0d63008c3137a"}, - {file = "grpcio-1.59.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d0fcf53df684fcc0154b1e61f6b4a8c4cf5f49d98a63511e3f30966feff39cd0"}, - {file = "grpcio-1.59.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:fa66cac32861500f280bb60fe7d5b3e22d68c51e18e65367e38f8669b78cea3b"}, - {file = "grpcio-1.59.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:8cd2d38c2d52f607d75a74143113174c36d8a416d9472415eab834f837580cf7"}, - {file = "grpcio-1.59.0-cp310-cp310-win32.whl", hash = "sha256:228b91ce454876d7eed74041aff24a8f04c0306b7250a2da99d35dd25e2a1211"}, - {file = "grpcio-1.59.0-cp310-cp310-win_amd64.whl", hash = "sha256:ca87ee6183421b7cea3544190061f6c1c3dfc959e0b57a5286b108511fd34ff4"}, - {file = "grpcio-1.59.0-cp311-cp311-linux_armv7l.whl", hash = "sha256:c173a87d622ea074ce79be33b952f0b424fa92182063c3bda8625c11d3585d09"}, - {file = "grpcio-1.59.0-cp311-cp311-macosx_10_10_universal2.whl", hash = "sha256:ec78aebb9b6771d6a1de7b6ca2f779a2f6113b9108d486e904bde323d51f5589"}, - {file = "grpcio-1.59.0-cp311-cp311-manylinux_2_17_aarch64.whl", hash = "sha256:0b84445fa94d59e6806c10266b977f92fa997db3585f125d6b751af02ff8b9fe"}, - {file = "grpcio-1.59.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c251d22de8f9f5cca9ee47e4bade7c5c853e6e40743f47f5cc02288ee7a87252"}, - {file = "grpcio-1.59.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:956f0b7cb465a65de1bd90d5a7475b4dc55089b25042fe0f6c870707e9aabb1d"}, - {file = "grpcio-1.59.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:38da5310ef84e16d638ad89550b5b9424df508fd5c7b968b90eb9629ca9be4b9"}, - {file = "grpcio-1.59.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:63982150a7d598281fa1d7ffead6096e543ff8be189d3235dd2b5604f2c553e5"}, - {file = "grpcio-1.59.0-cp311-cp311-win32.whl", hash = "sha256:50eff97397e29eeee5df106ea1afce3ee134d567aa2c8e04fabab05c79d791a7"}, - {file = "grpcio-1.59.0-cp311-cp311-win_amd64.whl", hash = "sha256:15f03bd714f987d48ae57fe092cf81960ae36da4e520e729392a59a75cda4f29"}, - {file = "grpcio-1.59.0-cp312-cp312-linux_armv7l.whl", hash = "sha256:f1feb034321ae2f718172d86b8276c03599846dc7bb1792ae370af02718f91c5"}, - {file = "grpcio-1.59.0-cp312-cp312-macosx_10_10_universal2.whl", hash = "sha256:d09bd2a4e9f5a44d36bb8684f284835c14d30c22d8ec92ce796655af12163588"}, - {file = "grpcio-1.59.0-cp312-cp312-manylinux_2_17_aarch64.whl", hash = "sha256:2f120d27051e4c59db2f267b71b833796770d3ea36ca712befa8c5fff5da6ebd"}, - {file = "grpcio-1.59.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ba0ca727a173ee093f49ead932c051af463258b4b493b956a2c099696f38aa66"}, - {file = "grpcio-1.59.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5711c51e204dc52065f4a3327dca46e69636a0b76d3e98c2c28c4ccef9b04c52"}, - {file = "grpcio-1.59.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:d74f7d2d7c242a6af9d4d069552ec3669965b74fed6b92946e0e13b4168374f9"}, - {file = "grpcio-1.59.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:3859917de234a0a2a52132489c4425a73669de9c458b01c9a83687f1f31b5b10"}, - {file = "grpcio-1.59.0-cp312-cp312-win32.whl", hash = "sha256:de2599985b7c1b4ce7526e15c969d66b93687571aa008ca749d6235d056b7205"}, - {file = "grpcio-1.59.0-cp312-cp312-win_amd64.whl", hash = "sha256:598f3530231cf10ae03f4ab92d48c3be1fee0c52213a1d5958df1a90957e6a88"}, - {file = "grpcio-1.59.0-cp37-cp37m-linux_armv7l.whl", hash = "sha256:b34c7a4c31841a2ea27246a05eed8a80c319bfc0d3e644412ec9ce437105ff6c"}, - {file = "grpcio-1.59.0-cp37-cp37m-macosx_10_10_universal2.whl", hash = "sha256:c4dfdb49f4997dc664f30116af2d34751b91aa031f8c8ee251ce4dcfc11277b0"}, - {file = "grpcio-1.59.0-cp37-cp37m-manylinux_2_17_aarch64.whl", hash = "sha256:61bc72a00ecc2b79d9695220b4d02e8ba53b702b42411397e831c9b0589f08a3"}, - {file = "grpcio-1.59.0-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f367e4b524cb319e50acbdea57bb63c3b717c5d561974ace0b065a648bb3bad3"}, - {file = "grpcio-1.59.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:849c47ef42424c86af069a9c5e691a765e304079755d5c29eff511263fad9c2a"}, - {file = "grpcio-1.59.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:c0488c2b0528e6072010182075615620071371701733c63ab5be49140ed8f7f0"}, - {file = "grpcio-1.59.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:611d9aa0017fa386809bddcb76653a5ab18c264faf4d9ff35cb904d44745f575"}, - {file = "grpcio-1.59.0-cp37-cp37m-win_amd64.whl", hash = "sha256:e5378785dce2b91eb2e5b857ec7602305a3b5cf78311767146464bfa365fc897"}, - {file = "grpcio-1.59.0-cp38-cp38-linux_armv7l.whl", hash = "sha256:fe976910de34d21057bcb53b2c5e667843588b48bf11339da2a75f5c4c5b4055"}, - {file = "grpcio-1.59.0-cp38-cp38-macosx_10_10_universal2.whl", hash = "sha256:c041a91712bf23b2a910f61e16565a05869e505dc5a5c025d429ca6de5de842c"}, - {file = "grpcio-1.59.0-cp38-cp38-manylinux_2_17_aarch64.whl", hash = "sha256:0ae444221b2c16d8211b55326f8ba173ba8f8c76349bfc1768198ba592b58f74"}, - {file = "grpcio-1.59.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ceb1e68135788c3fce2211de86a7597591f0b9a0d2bb80e8401fd1d915991bac"}, - {file = "grpcio-1.59.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c4b1cc3a9dc1924d2eb26eec8792fedd4b3fcd10111e26c1d551f2e4eda79ce"}, - {file = "grpcio-1.59.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:871371ce0c0055d3db2a86fdebd1e1d647cf21a8912acc30052660297a5a6901"}, - {file = "grpcio-1.59.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:93e9cb546e610829e462147ce724a9cb108e61647a3454500438a6deef610be1"}, - {file = "grpcio-1.59.0-cp38-cp38-win32.whl", hash = "sha256:f21917aa50b40842b51aff2de6ebf9e2f6af3fe0971c31960ad6a3a2b24988f4"}, - {file = "grpcio-1.59.0-cp38-cp38-win_amd64.whl", hash = "sha256:14890da86a0c0e9dc1ea8e90101d7a3e0e7b1e71f4487fab36e2bfd2ecadd13c"}, - {file = "grpcio-1.59.0-cp39-cp39-linux_armv7l.whl", hash = "sha256:34341d9e81a4b669a5f5dca3b2a760b6798e95cdda2b173e65d29d0b16692857"}, - {file = "grpcio-1.59.0-cp39-cp39-macosx_10_10_universal2.whl", hash = "sha256:986de4aa75646e963466b386a8c5055c8b23a26a36a6c99052385d6fe8aaf180"}, - {file = "grpcio-1.59.0-cp39-cp39-manylinux_2_17_aarch64.whl", hash = "sha256:aca8a24fef80bef73f83eb8153f5f5a0134d9539b4c436a716256b311dda90a6"}, - {file = "grpcio-1.59.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:936b2e04663660c600d5173bc2cc84e15adbad9c8f71946eb833b0afc205b996"}, - {file = "grpcio-1.59.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fc8bf2e7bc725e76c0c11e474634a08c8f24bcf7426c0c6d60c8f9c6e70e4d4a"}, - {file = "grpcio-1.59.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:81d86a096ccd24a57fa5772a544c9e566218bc4de49e8c909882dae9d73392df"}, - {file = "grpcio-1.59.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:2ea95cd6abbe20138b8df965b4a8674ec312aaef3147c0f46a0bac661f09e8d0"}, - {file = "grpcio-1.59.0-cp39-cp39-win32.whl", hash = "sha256:3b8ff795d35a93d1df6531f31c1502673d1cebeeba93d0f9bd74617381507e3f"}, - {file = "grpcio-1.59.0-cp39-cp39-win_amd64.whl", hash = "sha256:38823bd088c69f59966f594d087d3a929d1ef310506bee9e3648317660d65b81"}, - {file = "grpcio-1.59.0.tar.gz", hash = "sha256:acf70a63cf09dd494000007b798aff88a436e1c03b394995ce450be437b8e54f"}, + {file = "grpcio-1.63.0-cp310-cp310-linux_armv7l.whl", hash = "sha256:2e93aca840c29d4ab5db93f94ed0a0ca899e241f2e8aec6334ab3575dc46125c"}, + {file = "grpcio-1.63.0-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:91b73d3f1340fefa1e1716c8c1ec9930c676d6b10a3513ab6c26004cb02d8b3f"}, + {file = "grpcio-1.63.0-cp310-cp310-manylinux_2_17_aarch64.whl", hash = "sha256:b3afbd9d6827fa6f475a4f91db55e441113f6d3eb9b7ebb8fb806e5bb6d6bd0d"}, + {file = "grpcio-1.63.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8f3f6883ce54a7a5f47db43289a0a4c776487912de1a0e2cc83fdaec9685cc9f"}, + {file = "grpcio-1.63.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cf8dae9cc0412cb86c8de5a8f3be395c5119a370f3ce2e69c8b7d46bb9872c8d"}, + {file = "grpcio-1.63.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:08e1559fd3b3b4468486b26b0af64a3904a8dbc78d8d936af9c1cf9636eb3e8b"}, + {file = "grpcio-1.63.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:5c039ef01516039fa39da8a8a43a95b64e288f79f42a17e6c2904a02a319b357"}, + {file = "grpcio-1.63.0-cp310-cp310-win32.whl", hash = "sha256:ad2ac8903b2eae071055a927ef74121ed52d69468e91d9bcbd028bd0e554be6d"}, + {file = "grpcio-1.63.0-cp310-cp310-win_amd64.whl", hash = "sha256:b2e44f59316716532a993ca2966636df6fbe7be4ab6f099de6815570ebe4383a"}, + {file = "grpcio-1.63.0-cp311-cp311-linux_armv7l.whl", hash = "sha256:f28f8b2db7b86c77916829d64ab21ff49a9d8289ea1564a2b2a3a8ed9ffcccd3"}, + {file = "grpcio-1.63.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:65bf975639a1f93bee63ca60d2e4951f1b543f498d581869922910a476ead2f5"}, + {file = "grpcio-1.63.0-cp311-cp311-manylinux_2_17_aarch64.whl", hash = "sha256:b5194775fec7dc3dbd6a935102bb156cd2c35efe1685b0a46c67b927c74f0cfb"}, + {file = "grpcio-1.63.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e4cbb2100ee46d024c45920d16e888ee5d3cf47c66e316210bc236d5bebc42b3"}, + {file = "grpcio-1.63.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1ff737cf29b5b801619f10e59b581869e32f400159e8b12d7a97e7e3bdeee6a2"}, + {file = "grpcio-1.63.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:cd1e68776262dd44dedd7381b1a0ad09d9930ffb405f737d64f505eb7f77d6c7"}, + {file = "grpcio-1.63.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:93f45f27f516548e23e4ec3fbab21b060416007dbe768a111fc4611464cc773f"}, + {file = "grpcio-1.63.0-cp311-cp311-win32.whl", hash = "sha256:878b1d88d0137df60e6b09b74cdb73db123f9579232c8456f53e9abc4f62eb3c"}, + {file = "grpcio-1.63.0-cp311-cp311-win_amd64.whl", hash = "sha256:756fed02dacd24e8f488f295a913f250b56b98fb793f41d5b2de6c44fb762434"}, + {file = "grpcio-1.63.0-cp312-cp312-linux_armv7l.whl", hash = "sha256:93a46794cc96c3a674cdfb59ef9ce84d46185fe9421baf2268ccb556f8f81f57"}, + {file = "grpcio-1.63.0-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:a7b19dfc74d0be7032ca1eda0ed545e582ee46cd65c162f9e9fc6b26ef827dc6"}, + {file = "grpcio-1.63.0-cp312-cp312-manylinux_2_17_aarch64.whl", hash = "sha256:8064d986d3a64ba21e498b9a376cbc5d6ab2e8ab0e288d39f266f0fca169b90d"}, + {file = "grpcio-1.63.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:219bb1848cd2c90348c79ed0a6b0ea51866bc7e72fa6e205e459fedab5770172"}, + {file = "grpcio-1.63.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a2d60cd1d58817bc5985fae6168d8b5655c4981d448d0f5b6194bbcc038090d2"}, + {file = "grpcio-1.63.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:9e350cb096e5c67832e9b6e018cf8a0d2a53b2a958f6251615173165269a91b0"}, + {file = "grpcio-1.63.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:56cdf96ff82e3cc90dbe8bac260352993f23e8e256e063c327b6cf9c88daf7a9"}, + {file = "grpcio-1.63.0-cp312-cp312-win32.whl", hash = "sha256:3a6d1f9ea965e750db7b4ee6f9fdef5fdf135abe8a249e75d84b0a3e0c668a1b"}, + {file = "grpcio-1.63.0-cp312-cp312-win_amd64.whl", hash = "sha256:d2497769895bb03efe3187fb1888fc20e98a5f18b3d14b606167dacda5789434"}, + {file = "grpcio-1.63.0-cp38-cp38-linux_armv7l.whl", hash = "sha256:fdf348ae69c6ff484402cfdb14e18c1b0054ac2420079d575c53a60b9b2853ae"}, + {file = "grpcio-1.63.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:a3abfe0b0f6798dedd2e9e92e881d9acd0fdb62ae27dcbbfa7654a57e24060c0"}, + {file = "grpcio-1.63.0-cp38-cp38-manylinux_2_17_aarch64.whl", hash = "sha256:6ef0ad92873672a2a3767cb827b64741c363ebaa27e7f21659e4e31f4d750280"}, + {file = "grpcio-1.63.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b416252ac5588d9dfb8a30a191451adbf534e9ce5f56bb02cd193f12d8845b7f"}, + {file = "grpcio-1.63.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e3b77eaefc74d7eb861d3ffbdf91b50a1bb1639514ebe764c47773b833fa2d91"}, + {file = "grpcio-1.63.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:b005292369d9c1f80bf70c1db1c17c6c342da7576f1c689e8eee4fb0c256af85"}, + {file = "grpcio-1.63.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:cdcda1156dcc41e042d1e899ba1f5c2e9f3cd7625b3d6ebfa619806a4c1aadda"}, + {file = "grpcio-1.63.0-cp38-cp38-win32.whl", hash = "sha256:01799e8649f9e94ba7db1aeb3452188048b0019dc37696b0f5ce212c87c560c3"}, + {file = "grpcio-1.63.0-cp38-cp38-win_amd64.whl", hash = "sha256:6a1a3642d76f887aa4009d92f71eb37809abceb3b7b5a1eec9c554a246f20e3a"}, + {file = "grpcio-1.63.0-cp39-cp39-linux_armv7l.whl", hash = "sha256:75f701ff645858a2b16bc8c9fc68af215a8bb2d5a9b647448129de6e85d52bce"}, + {file = "grpcio-1.63.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:cacdef0348a08e475a721967f48206a2254a1b26ee7637638d9e081761a5ba86"}, + {file = "grpcio-1.63.0-cp39-cp39-manylinux_2_17_aarch64.whl", hash = "sha256:0697563d1d84d6985e40ec5ec596ff41b52abb3fd91ec240e8cb44a63b895094"}, + {file = "grpcio-1.63.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6426e1fb92d006e47476d42b8f240c1d916a6d4423c5258ccc5b105e43438f61"}, + {file = "grpcio-1.63.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e48cee31bc5f5a31fb2f3b573764bd563aaa5472342860edcc7039525b53e46a"}, + {file = "grpcio-1.63.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:50344663068041b34a992c19c600236e7abb42d6ec32567916b87b4c8b8833b3"}, + {file = "grpcio-1.63.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:259e11932230d70ef24a21b9fb5bb947eb4703f57865a404054400ee92f42f5d"}, + {file = "grpcio-1.63.0-cp39-cp39-win32.whl", hash = "sha256:a44624aad77bf8ca198c55af811fd28f2b3eaf0a50ec5b57b06c034416ef2d0a"}, + {file = "grpcio-1.63.0-cp39-cp39-win_amd64.whl", hash = "sha256:166e5c460e5d7d4656ff9e63b13e1f6029b122104c1633d5f37eaea348d7356d"}, + {file = "grpcio-1.63.0.tar.gz", hash = "sha256:f3023e14805c61bc439fb40ca545ac3d5740ce66120a678a3c6c2c55b70343d1"}, ] [package.extras] -protobuf = ["grpcio-tools (>=1.59.0)"] +protobuf = ["grpcio-tools (>=1.63.0)"] [[package]] name = "grpcio-tools" -version = "1.59.0" +version = "1.62.2" description = "Protobuf code generator for gRPC" optional = false python-versions = ">=3.7" files = [ - {file = "grpcio-tools-1.59.0.tar.gz", hash = "sha256:aa4018f2d8662ac4d9830445d3d253a11b3e096e8afe20865547137aa1160e93"}, - {file = "grpcio_tools-1.59.0-cp310-cp310-linux_armv7l.whl", hash = "sha256:882b809b42b5464bee55288f4e60837297f9618e53e69ae3eea6d61b05ce48fa"}, - {file = "grpcio_tools-1.59.0-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:4499d4bc5aa9c7b645018d8b0db4bebd663d427aabcd7bee7777046cb1bcbca7"}, - {file = "grpcio_tools-1.59.0-cp310-cp310-manylinux_2_17_aarch64.whl", hash = "sha256:f381ae3ad6a5eb27aad8d810438937d8228977067c54e0bd456fce7e11fdbf3d"}, - {file = "grpcio_tools-1.59.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f1c684c0d9226d04cadafced620a46ab38c346d0780eaac7448da96bf12066a3"}, - {file = "grpcio_tools-1.59.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:40cbf712769242c2ba237745285ef789114d7fcfe8865fc4817d87f20015e99a"}, - {file = "grpcio_tools-1.59.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:1df755951f204e65bf9232a9cac5afe7d6b8e4c87ac084d3ecd738fdc7aa4174"}, - {file = "grpcio_tools-1.59.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:de156c18b0c638aaee3be6ad650c8ba7dec94ed4bac26403aec3dce95ffe9407"}, - {file = "grpcio_tools-1.59.0-cp310-cp310-win32.whl", hash = "sha256:9af7e138baa9b2895cf1f3eb718ac96fc5ae2f8e31fca405e21e0e5cd1643c52"}, - {file = "grpcio_tools-1.59.0-cp310-cp310-win_amd64.whl", hash = "sha256:f14a6e4f700dfd30ff8f0e6695f944affc16ae5a1e738666b3fae4e44b65637e"}, - {file = "grpcio_tools-1.59.0-cp311-cp311-linux_armv7l.whl", hash = "sha256:db030140d0da2368319e2f23655df3baec278c7e0078ecbe051eaf609a69382c"}, - {file = "grpcio_tools-1.59.0-cp311-cp311-macosx_10_10_universal2.whl", hash = "sha256:eeed386971bb8afc3ec45593df6a1154d680d87be1209ef8e782e44f85f47e64"}, - {file = "grpcio_tools-1.59.0-cp311-cp311-manylinux_2_17_aarch64.whl", hash = "sha256:962d1a3067129152cee3e172213486cb218a6bad703836991f46f216caefcf00"}, - {file = "grpcio_tools-1.59.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:26eb2eebf150a33ebf088e67c1acf37eb2ac4133d9bfccbaa011ad2148c08b42"}, - {file = "grpcio_tools-1.59.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5b2d6da553980c590487f2e7fd3ec9c1ad8805ff2ec77977b92faa7e3ca14e1f"}, - {file = "grpcio_tools-1.59.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:335e2f355a0c544a88854e2c053aff8a3f398b84a263a96fa19d063ca1fe513a"}, - {file = "grpcio_tools-1.59.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:204e08f807b1d83f5f0efea30c4e680afe26a43dec8ba614a45fa698a7ef0a19"}, - {file = "grpcio_tools-1.59.0-cp311-cp311-win32.whl", hash = "sha256:05bf7b3ed01c8a562bb7e840f864c58acedbd6924eb616367c0bd0a760bdf483"}, - {file = "grpcio_tools-1.59.0-cp311-cp311-win_amd64.whl", hash = "sha256:df85096fcac7cea8aa5bd84b7a39c4cdbf556b93669bb4772eb96aacd3222a4e"}, - {file = "grpcio_tools-1.59.0-cp312-cp312-linux_armv7l.whl", hash = "sha256:240a7a3c2c54f77f1f66085a635bca72003d02f56a670e7db19aec531eda8f78"}, - {file = "grpcio_tools-1.59.0-cp312-cp312-macosx_10_10_universal2.whl", hash = "sha256:6119f62c462d119c63227b9534210f0f13506a888151b9bf586f71e7edf5088b"}, - {file = "grpcio_tools-1.59.0-cp312-cp312-manylinux_2_17_aarch64.whl", hash = "sha256:387662bee8e4c0b52cc0f61eaaca0ca583f5b227103f685b76083a3590a71a3e"}, - {file = "grpcio_tools-1.59.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8f0da5861ee276ca68493b217daef358960e8527cc63c7cb292ca1c9c54939af"}, - {file = "grpcio_tools-1.59.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d0f0806de1161c7f248e4c183633ee7a58dfe45c2b77ddf0136e2e7ad0650b1b"}, - {file = "grpcio_tools-1.59.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:c683be38a9bf4024c223929b4cd2f0a0858c94e9dc8b36d7eaa5a48ce9323a6f"}, - {file = "grpcio_tools-1.59.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:f965707da2b48a33128615bcfebedd215a3a30e346447e885bb3da37a143177a"}, - {file = "grpcio_tools-1.59.0-cp312-cp312-win32.whl", hash = "sha256:2ee960904dde12a7fa48e1591a5b3eeae054bdce57bacf9fd26685a98138f5bf"}, - {file = "grpcio_tools-1.59.0-cp312-cp312-win_amd64.whl", hash = "sha256:71cc6db1d66da3bc3730d9937bddc320f7b1f1dfdff6342bcb5741515fe4110b"}, - {file = "grpcio_tools-1.59.0-cp37-cp37m-linux_armv7l.whl", hash = "sha256:f6263b85261b62471cb97b7505df72d72b8b62e5e22d8184924871a6155b4dbf"}, - {file = "grpcio_tools-1.59.0-cp37-cp37m-macosx_10_10_universal2.whl", hash = "sha256:b8e95d921cc2a1521d4750eedefec9f16031457920a6677edebe9d1b2ad6ae60"}, - {file = "grpcio_tools-1.59.0-cp37-cp37m-manylinux_2_17_aarch64.whl", hash = "sha256:cb63055739808144b541986291679d643bae58755d0eb082157c4d4c04443905"}, - {file = "grpcio_tools-1.59.0-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8c4634b3589efa156a8d5860c0a2547315bd5c9e52d14c960d716fe86e0927be"}, - {file = "grpcio_tools-1.59.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2d970aa26854f535ffb94ea098aa8b43de020d9a14682e4a15dcdaeac7801b27"}, - {file = "grpcio_tools-1.59.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:821dba464d84ebbcffd9d420302404db2fa7a40c7ff4c4c4c93726f72bfa2769"}, - {file = "grpcio_tools-1.59.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:0548e901894399886ff4a4cd808cb850b60c021feb4a8977a0751f14dd7e55d9"}, - {file = "grpcio_tools-1.59.0-cp37-cp37m-win_amd64.whl", hash = "sha256:bb87158dbbb9e5a79effe78d54837599caa16df52d8d35366e06a91723b587ae"}, - {file = "grpcio_tools-1.59.0-cp38-cp38-linux_armv7l.whl", hash = "sha256:1d551ff42962c7c333c3da5c70d5e617a87dee581fa2e2c5ae2d5137c8886779"}, - {file = "grpcio_tools-1.59.0-cp38-cp38-macosx_10_10_universal2.whl", hash = "sha256:4ee443abcd241a5befb05629013fbf2eac637faa94aaa3056351aded8a31c1bc"}, - {file = "grpcio_tools-1.59.0-cp38-cp38-manylinux_2_17_aarch64.whl", hash = "sha256:520c0c83ea79d14b0679ba43e19c64ca31d30926b26ad2ca7db37cbd89c167e2"}, - {file = "grpcio_tools-1.59.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9fc02a6e517c34dcf885ff3b57260b646551083903e3d2c780b4971ce7d4ab7c"}, - {file = "grpcio_tools-1.59.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6aec8a4ed3808b7dfc1276fe51e3e24bec0eeaf610d395bcd42934647cf902a3"}, - {file = "grpcio_tools-1.59.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:99b3bde646720bbfb77f263f5ba3e1a0de50632d43c38d405a0ef9c7e94373cd"}, - {file = "grpcio_tools-1.59.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:51d9595629998d8b519126c5a610f15deb0327cd6325ed10796b47d1d292e70b"}, - {file = "grpcio_tools-1.59.0-cp38-cp38-win32.whl", hash = "sha256:bfa4b2b7d21c5634b62e5f03462243bd705adc1a21806b5356b8ce06d902e160"}, - {file = "grpcio_tools-1.59.0-cp38-cp38-win_amd64.whl", hash = "sha256:9ed05197c5ab071e91bcef28901e97ca168c4ae94510cb67a14cb4931b94255a"}, - {file = "grpcio_tools-1.59.0-cp39-cp39-linux_armv7l.whl", hash = "sha256:498e7be0b14385980efa681444ba481349c131fc5ec88003819f5d929646947c"}, - {file = "grpcio_tools-1.59.0-cp39-cp39-macosx_10_10_universal2.whl", hash = "sha256:b519f2ecde9a579cad2f4a7057d5bb4e040ad17caab8b5e691ed7a13b9db0be9"}, - {file = "grpcio_tools-1.59.0-cp39-cp39-manylinux_2_17_aarch64.whl", hash = "sha256:ef3e8aca2261f7f07436d4e2111556c1fb9bf1f9cfcdf35262743ccdee1b6ce9"}, - {file = "grpcio_tools-1.59.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:27a7f226b741b2ebf7e2d0779d2c9b17f446d1b839d59886c1619e62cc2ae472"}, - {file = "grpcio_tools-1.59.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:784aa52965916fec5afa1a28eeee6f0073bb43a2a1d7fedf963393898843077a"}, - {file = "grpcio_tools-1.59.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:e312ddc2d8bec1a23306a661ad52734f984c9aad5d8f126ebb222a778d95407d"}, - {file = "grpcio_tools-1.59.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:868892ad9e00651a38dace3e4924bae82fc4fd4df2c65d37b74381570ee8deb1"}, - {file = "grpcio_tools-1.59.0-cp39-cp39-win32.whl", hash = "sha256:a4f6cae381f21fee1ef0a5cbbbb146680164311157ae618edf3061742d844383"}, - {file = "grpcio_tools-1.59.0-cp39-cp39-win_amd64.whl", hash = "sha256:4a10e59cca462208b489478340b52a96d64e8b8b6f1ac097f3e8cb211d3f66c0"}, + {file = "grpcio-tools-1.62.2.tar.gz", hash = "sha256:5fd5e1582b678e6b941ee5f5809340be5e0724691df5299aae8226640f94e18f"}, + {file = "grpcio_tools-1.62.2-cp310-cp310-linux_armv7l.whl", hash = "sha256:1679b4903aed2dc5bd8cb22a452225b05dc8470a076f14fd703581efc0740cdb"}, + {file = "grpcio_tools-1.62.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:9d41e0e47dd075c075bb8f103422968a65dd0d8dc8613288f573ae91eb1053ba"}, + {file = "grpcio_tools-1.62.2-cp310-cp310-manylinux_2_17_aarch64.whl", hash = "sha256:987e774f74296842bbffd55ea8826370f70c499e5b5f71a8cf3103838b6ee9c3"}, + {file = "grpcio_tools-1.62.2-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40cd4eeea4b25bcb6903b82930d579027d034ba944393c4751cdefd9c49e6989"}, + {file = "grpcio_tools-1.62.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b6746bc823958499a3cf8963cc1de00072962fb5e629f26d658882d3f4c35095"}, + {file = "grpcio_tools-1.62.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:2ed775e844566ce9ce089be9a81a8b928623b8ee5820f5e4d58c1a9d33dfc5ae"}, + {file = "grpcio_tools-1.62.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:bdc5dd3f57b5368d5d661d5d3703bcaa38bceca59d25955dff66244dbc987271"}, + {file = "grpcio_tools-1.62.2-cp310-cp310-win32.whl", hash = "sha256:3a8d6f07e64c0c7756f4e0c4781d9d5a2b9cc9cbd28f7032a6fb8d4f847d0445"}, + {file = "grpcio_tools-1.62.2-cp310-cp310-win_amd64.whl", hash = "sha256:e33b59fb3efdddeb97ded988a871710033e8638534c826567738d3edce528752"}, + {file = "grpcio_tools-1.62.2-cp311-cp311-linux_armv7l.whl", hash = "sha256:472505d030135d73afe4143b0873efe0dcb385bd6d847553b4f3afe07679af00"}, + {file = "grpcio_tools-1.62.2-cp311-cp311-macosx_10_10_universal2.whl", hash = "sha256:ec674b4440ef4311ac1245a709e87b36aca493ddc6850eebe0b278d1f2b6e7d1"}, + {file = "grpcio_tools-1.62.2-cp311-cp311-manylinux_2_17_aarch64.whl", hash = "sha256:184b4174d4bd82089d706e8223e46c42390a6ebac191073b9772abc77308f9fa"}, + {file = "grpcio_tools-1.62.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c195d74fe98541178ece7a50dad2197d43991e0f77372b9a88da438be2486f12"}, + {file = "grpcio_tools-1.62.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a34d97c62e61bfe9e6cff0410fe144ac8cca2fc979ad0be46b7edf026339d161"}, + {file = "grpcio_tools-1.62.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:cbb8453ae83a1db2452b7fe0f4b78e4a8dd32be0f2b2b73591ae620d4d784d3d"}, + {file = "grpcio_tools-1.62.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:4f989e5cebead3ae92c6abf6bf7b19949e1563a776aea896ac5933f143f0c45d"}, + {file = "grpcio_tools-1.62.2-cp311-cp311-win32.whl", hash = "sha256:c48fabe40b9170f4e3d7dd2c252e4f1ff395dc24e49ac15fc724b1b6f11724da"}, + {file = "grpcio_tools-1.62.2-cp311-cp311-win_amd64.whl", hash = "sha256:8c616d0ad872e3780693fce6a3ac8ef00fc0963e6d7815ce9dcfae68ba0fc287"}, + {file = "grpcio_tools-1.62.2-cp312-cp312-linux_armv7l.whl", hash = "sha256:10cc3321704ecd17c93cf68c99c35467a8a97ffaaed53207e9b2da6ae0308ee1"}, + {file = "grpcio_tools-1.62.2-cp312-cp312-macosx_10_10_universal2.whl", hash = "sha256:9be84ff6d47fd61462be7523b49d7ba01adf67ce4e1447eae37721ab32464dd8"}, + {file = "grpcio_tools-1.62.2-cp312-cp312-manylinux_2_17_aarch64.whl", hash = "sha256:d82f681c9a9d933a9d8068e8e382977768e7779ddb8870fa0cf918d8250d1532"}, + {file = "grpcio_tools-1.62.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:04c607029ae3660fb1624ed273811ffe09d57d84287d37e63b5b802a35897329"}, + {file = "grpcio_tools-1.62.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:72b61332f1b439c14cbd3815174a8f1d35067a02047c32decd406b3a09bb9890"}, + {file = "grpcio_tools-1.62.2-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:8214820990d01b52845f9fbcb92d2b7384a0c321b303e3ac614c219dc7d1d3af"}, + {file = "grpcio_tools-1.62.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:462e0ab8dd7c7b70bfd6e3195eebc177549ede5cf3189814850c76f9a340d7ce"}, + {file = "grpcio_tools-1.62.2-cp312-cp312-win32.whl", hash = "sha256:fa107460c842e4c1a6266150881694fefd4f33baa544ea9489601810c2210ef8"}, + {file = "grpcio_tools-1.62.2-cp312-cp312-win_amd64.whl", hash = "sha256:759c60f24c33a181bbbc1232a6752f9b49fbb1583312a4917e2b389fea0fb0f2"}, + {file = "grpcio_tools-1.62.2-cp37-cp37m-linux_armv7l.whl", hash = "sha256:45db5da2bcfa88f2b86b57ef35daaae85c60bd6754a051d35d9449c959925b57"}, + {file = "grpcio_tools-1.62.2-cp37-cp37m-macosx_10_10_universal2.whl", hash = "sha256:ab84bae88597133f6ea7a2bdc57b2fda98a266fe8d8d4763652cbefd20e73ad7"}, + {file = "grpcio_tools-1.62.2-cp37-cp37m-manylinux_2_17_aarch64.whl", hash = "sha256:7a49bccae1c7d154b78e991885c3111c9ad8c8fa98e91233de425718f47c6139"}, + {file = "grpcio_tools-1.62.2-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a7e439476b29d6dac363b321781a113794397afceeb97dad85349db5f1cb5e9a"}, + {file = "grpcio_tools-1.62.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7ea369c4d1567d1acdf69c8ea74144f4ccad9e545df7f9a4fc64c94fa7684ba3"}, + {file = "grpcio_tools-1.62.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:4f955702dc4b530696375251319d05223b729ed24e8673c2129f7a75d2caefbb"}, + {file = "grpcio_tools-1.62.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:3708a747aa4b6b505727282ca887041174e146ae030ebcadaf4c1d346858df62"}, + {file = "grpcio_tools-1.62.2-cp37-cp37m-win_amd64.whl", hash = "sha256:2ce149ea55eadb486a7fb75a20f63ef3ac065ee6a0240ed25f3549ce7954c653"}, + {file = "grpcio_tools-1.62.2-cp38-cp38-linux_armv7l.whl", hash = "sha256:58cbb24b3fa6ae35aa9c210fcea3a51aa5fef0cd25618eb4fd94f746d5a9b703"}, + {file = "grpcio_tools-1.62.2-cp38-cp38-macosx_10_10_universal2.whl", hash = "sha256:6413581e14a80e0b4532577766cf0586de4dd33766a31b3eb5374a746771c07d"}, + {file = "grpcio_tools-1.62.2-cp38-cp38-manylinux_2_17_aarch64.whl", hash = "sha256:47117c8a7e861382470d0e22d336e5a91fdc5f851d1db44fa784b9acea190d87"}, + {file = "grpcio_tools-1.62.2-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9f1ba79a253df9e553d20319c615fa2b429684580fa042dba618d7f6649ac7e4"}, + {file = "grpcio_tools-1.62.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:04a394cf5e51ba9be412eb9f6c482b6270bd81016e033e8eb7d21b8cc28fe8b5"}, + {file = "grpcio_tools-1.62.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:3c53b221378b035ae2f1881cbc3aca42a6075a8e90e1a342c2f205eb1d1aa6a1"}, + {file = "grpcio_tools-1.62.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:c384c838b34d1b67068e51b5bbe49caa6aa3633acd158f1ab16b5da8d226bc53"}, + {file = "grpcio_tools-1.62.2-cp38-cp38-win32.whl", hash = "sha256:19ea69e41c3565932aa28a202d1875ec56786aea46a2eab54a3b28e8a27f9517"}, + {file = "grpcio_tools-1.62.2-cp38-cp38-win_amd64.whl", hash = "sha256:1d768a5c07279a4c461ebf52d0cec1c6ca85c6291c71ec2703fe3c3e7e28e8c4"}, + {file = "grpcio_tools-1.62.2-cp39-cp39-linux_armv7l.whl", hash = "sha256:5b07b5874187e170edfbd7aa2ca3a54ebf3b2952487653e8c0b0d83601c33035"}, + {file = "grpcio_tools-1.62.2-cp39-cp39-macosx_10_10_universal2.whl", hash = "sha256:d58389fe8be206ddfb4fa703db1e24c956856fcb9a81da62b13577b3a8f7fda7"}, + {file = "grpcio_tools-1.62.2-cp39-cp39-manylinux_2_17_aarch64.whl", hash = "sha256:7d8b4e00c3d7237b92260fc18a561cd81f1da82e8be100db1b7d816250defc66"}, + {file = "grpcio_tools-1.62.2-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1fe08d2038f2b7c53259b5c49e0ad08c8e0ce2b548d8185993e7ef67e8592cca"}, + {file = "grpcio_tools-1.62.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:19216e1fb26dbe23d12a810517e1b3fbb8d4f98b1a3fbebeec9d93a79f092de4"}, + {file = "grpcio_tools-1.62.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:b8574469ecc4ff41d6bb95f44e0297cdb0d95bade388552a9a444db9cd7485cd"}, + {file = "grpcio_tools-1.62.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:4f6f32d39283ea834a493fccf0ebe9cfddee7577bdcc27736ad4be1732a36399"}, + {file = "grpcio_tools-1.62.2-cp39-cp39-win32.whl", hash = "sha256:76eb459bdf3fb666e01883270beee18f3f11ed44488486b61cd210b4e0e17cc1"}, + {file = "grpcio_tools-1.62.2-cp39-cp39-win_amd64.whl", hash = "sha256:217c2ee6a7ce519a55958b8622e21804f6fdb774db08c322f4c9536c35fdce7c"}, ] [package.dependencies] -grpcio = ">=1.59.0" +grpcio = ">=1.62.2" protobuf = ">=4.21.6,<5.0dev" setuptools = "*" @@ -1134,43 +1123,43 @@ files = [ [[package]] name = "idna" -version = "3.4" +version = "3.7" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.5" files = [ - {file = "idna-3.4-py3-none-any.whl", hash = "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"}, - {file = "idna-3.4.tar.gz", hash = "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"}, + {file = "idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0"}, + {file = "idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"}, ] [[package]] name = "importlib-metadata" -version = "6.8.0" +version = "7.1.0" description = "Read metadata from Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "importlib_metadata-6.8.0-py3-none-any.whl", hash = "sha256:3ebb78df84a805d7698245025b975d9d67053cd94c79245ba4b3eb694abe68bb"}, - {file = "importlib_metadata-6.8.0.tar.gz", hash = "sha256:dbace7892d8c0c4ac1ad096662232f831d4e64f4c4545bd53016a3e9d4654743"}, + {file = "importlib_metadata-7.1.0-py3-none-any.whl", hash = "sha256:30962b96c0c223483ed6cc7280e7f0199feb01a0e40cfae4d4450fc6fab1f570"}, + {file = "importlib_metadata-7.1.0.tar.gz", hash = "sha256:b78938b926ee8d5f020fc4772d487045805a55ddbad2ecf21c6d60938dc7fcd2"}, ] [package.dependencies] zipp = ">=0.5" [package.extras] -docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] +docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] perf = ["ipython"] -testing = ["flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-perf (>=0.9.2)", "pytest-ruff"] +testing = ["flufl.flake8", "importlib-resources (>=1.3)", "jaraco.test (>=5.4)", "packaging", "pyfakefs", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-perf (>=0.9.2)", "pytest-ruff (>=0.2.1)"] [[package]] name = "importlib-resources" -version = "6.1.0" +version = "6.4.0" description = "Read resources from Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "importlib_resources-6.1.0-py3-none-any.whl", hash = "sha256:aa50258bbfa56d4e33fbd8aa3ef48ded10d1735f11532b8df95388cc6bdb7e83"}, - {file = "importlib_resources-6.1.0.tar.gz", hash = "sha256:9d48dcccc213325e810fd723e7fbb45ccb39f6cf5c31f00cf2b965f5f10f3cb9"}, + {file = "importlib_resources-6.4.0-py3-none-any.whl", hash = "sha256:50d10f043df931902d4194ea07ec57960f66a80449ff867bfe782b4c486ba78c"}, + {file = "importlib_resources-6.4.0.tar.gz", hash = "sha256:cdb2b453b8046ca4e3798eb1d84f3cce1446a0e8e7b5ef4efb600f19fc398145"}, ] [package.dependencies] @@ -1178,7 +1167,7 @@ zipp = {version = ">=3.1.0", markers = "python_version < \"3.10\""} [package.extras] docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-ruff", "zipp (>=3.17)"] +testing = ["jaraco.test (>=5.4)", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-ruff (>=0.2.1)", "zipp (>=3.17)"] [[package]] name = "iniconfig" @@ -1193,43 +1182,42 @@ files = [ [[package]] name = "itsdangerous" -version = "2.1.2" +version = "2.2.0" description = "Safely pass data to untrusted environments and back." optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "itsdangerous-2.1.2-py3-none-any.whl", hash = "sha256:2c2349112351b88699d8d4b6b075022c0808887cb7ad10069318a8b0bc88db44"}, - {file = "itsdangerous-2.1.2.tar.gz", hash = "sha256:5dbbc68b317e5e42f327f9021763545dc3fc3bfe22e6deb96aaf1fc38874156a"}, + {file = "itsdangerous-2.2.0-py3-none-any.whl", hash = "sha256:c6242fc49e35958c8b15141343aa660db5fc54d4f13a1db01a3f5891b98700ef"}, + {file = "itsdangerous-2.2.0.tar.gz", hash = "sha256:e0050c0b7da1eea53ffaf149c0cfbb5c6e2e2b69c4bef22c81fa6eb73e5f6173"}, ] [[package]] name = "jaraco-functools" -version = "3.9.0" +version = "4.0.1" description = "Functools like those found in stdlib" optional = false python-versions = ">=3.8" files = [ - {file = "jaraco.functools-3.9.0-py3-none-any.whl", hash = "sha256:df2e2b0aadd2dfcee2d7e0d7d083d5a5b68f4c8621e6915ae9819a90de65dd44"}, - {file = "jaraco.functools-3.9.0.tar.gz", hash = "sha256:8b137b0feacc17fef4bacee04c011c9e86f2341099c870a1d12d3be37b32a638"}, + {file = "jaraco.functools-4.0.1-py3-none-any.whl", hash = "sha256:3b24ccb921d6b593bdceb56ce14799204f473976e2a9d4b15b04d0f2c2326664"}, + {file = "jaraco_functools-4.0.1.tar.gz", hash = "sha256:d33fa765374c0611b52f8b3a795f8900869aa88c84769d4d1746cd68fb28c3e8"}, ] [package.dependencies] more-itertools = "*" -typing-extensions = {version = "*", markers = "python_version < \"3.11\""} [package.extras] -docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["jaraco.classes", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-ruff"] +docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"] +testing = ["jaraco.classes", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-ruff (>=0.2.1)"] [[package]] name = "jinja2" -version = "3.1.2" +version = "3.1.4" description = "A very fast and expressive template engine." optional = false python-versions = ">=3.7" files = [ - {file = "Jinja2-3.1.2-py3-none-any.whl", hash = "sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61"}, - {file = "Jinja2-3.1.2.tar.gz", hash = "sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852"}, + {file = "jinja2-3.1.4-py3-none-any.whl", hash = "sha256:bc5dd2abb727a5319567b7a813e6a2e7318c39f4f487cfe6c89c6f9c7d25197d"}, + {file = "jinja2-3.1.4.tar.gz", hash = "sha256:4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369"}, ] [package.dependencies] @@ -1240,27 +1228,24 @@ i18n = ["Babel (>=2.7)"] [[package]] name = "json5" -version = "0.9.14" +version = "0.9.25" description = "A Python implementation of the JSON5 data format." optional = false -python-versions = "*" +python-versions = ">=3.8" files = [ - {file = "json5-0.9.14-py2.py3-none-any.whl", hash = "sha256:740c7f1b9e584a468dbb2939d8d458db3427f2c93ae2139d05f47e453eae964f"}, - {file = "json5-0.9.14.tar.gz", hash = "sha256:9ed66c3a6ca3510a976a9ef9b8c0787de24802724ab1860bc0153c7fdd589b02"}, + {file = "json5-0.9.25-py3-none-any.whl", hash = "sha256:34ed7d834b1341a86987ed52f3f76cd8ee184394906b6e22a1e0deb9ab294e8f"}, + {file = "json5-0.9.25.tar.gz", hash = "sha256:548e41b9be043f9426776f05df8635a00fe06104ea51ed24b67f908856e151ae"}, ] -[package.extras] -dev = ["hypothesis"] - [[package]] name = "jsonschema" -version = "4.19.1" +version = "4.22.0" description = "An implementation of JSON Schema validation for Python" optional = false python-versions = ">=3.8" files = [ - {file = "jsonschema-4.19.1-py3-none-any.whl", hash = "sha256:cd5f1f9ed9444e554b38ba003af06c0a8c2868131e56bfbef0550fb450c0330e"}, - {file = "jsonschema-4.19.1.tar.gz", hash = "sha256:ec84cc37cfa703ef7cd4928db24f9cb31428a5d0fa77747b8b51a847458e0bbf"}, + {file = "jsonschema-4.22.0-py3-none-any.whl", hash = "sha256:ff4cfd6b1367a40e7bc6411caec72effadd3db0bbe5017de188f2d6108335802"}, + {file = "jsonschema-4.22.0.tar.gz", hash = "sha256:5b22d434a45935119af990552c862e5d6d564e8f6601206b305a61fdf661a2b7"}, ] [package.dependencies] @@ -1277,28 +1262,28 @@ format-nongpl = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339- [[package]] name = "jsonschema-specifications" -version = "2023.7.1" +version = "2023.12.1" description = "The JSON Schema meta-schemas and vocabularies, exposed as a Registry" optional = false python-versions = ">=3.8" files = [ - {file = "jsonschema_specifications-2023.7.1-py3-none-any.whl", hash = "sha256:05adf340b659828a004220a9613be00fa3f223f2b82002e273dee62fd50524b1"}, - {file = "jsonschema_specifications-2023.7.1.tar.gz", hash = "sha256:c91a50404e88a1f6ba40636778e2ee08f6e24c5613fe4c53ac24578a5a7f72bb"}, + {file = "jsonschema_specifications-2023.12.1-py3-none-any.whl", hash = "sha256:87e4fdf3a94858b8a2ba2778d9ba57d8a9cafca7c7489c46ba0d30a8bc6a9c3c"}, + {file = "jsonschema_specifications-2023.12.1.tar.gz", hash = "sha256:48a76787b3e70f5ed53f1160d2b81f586e4ca6d1548c5de7085d1682674764cc"}, ] [package.dependencies] importlib-resources = {version = ">=1.4.0", markers = "python_version < \"3.9\""} -referencing = ">=0.28.0" +referencing = ">=0.31.0" [[package]] name = "mako" -version = "1.2.4" +version = "1.3.4" description = "A super-fast templating language that borrows the best ideas from the existing templating languages." optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "Mako-1.2.4-py3-none-any.whl", hash = "sha256:c97c79c018b9165ac9922ae4f32da095ffd3c4e6872b45eded42926deea46818"}, - {file = "Mako-1.2.4.tar.gz", hash = "sha256:d60a3903dc3bb01a18ad6a89cdbe2e4eadc69c0bc8ef1e3773ba53d44c3f7a34"}, + {file = "Mako-1.3.4-py3-none-any.whl", hash = "sha256:a080ace85c3ceb6226d85e124608607b9ee072a87ae3ea22561435e8e6738125"}, + {file = "Mako-1.3.4.tar.gz", hash = "sha256:029a10f5fc497f5be7f7754e4ef5bcf26cb93044798de31fd1303f777f360916"}, ] [package.dependencies] @@ -1311,71 +1296,71 @@ testing = ["pytest"] [[package]] name = "markupsafe" -version = "2.1.3" +version = "2.1.5" description = "Safely add untrusted strings to HTML/XML markup." optional = false python-versions = ">=3.7" files = [ - {file = "MarkupSafe-2.1.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:cd0f502fe016460680cd20aaa5a76d241d6f35a1c3350c474bac1273803893fa"}, - {file = "MarkupSafe-2.1.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e09031c87a1e51556fdcb46e5bd4f59dfb743061cf93c4d6831bf894f125eb57"}, - {file = "MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:68e78619a61ecf91e76aa3e6e8e33fc4894a2bebe93410754bd28fce0a8a4f9f"}, - {file = "MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:65c1a9bcdadc6c28eecee2c119465aebff8f7a584dd719facdd9e825ec61ab52"}, - {file = "MarkupSafe-2.1.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:525808b8019e36eb524b8c68acdd63a37e75714eac50e988180b169d64480a00"}, - {file = "MarkupSafe-2.1.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:962f82a3086483f5e5f64dbad880d31038b698494799b097bc59c2edf392fce6"}, - {file = "MarkupSafe-2.1.3-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:aa7bd130efab1c280bed0f45501b7c8795f9fdbeb02e965371bbef3523627779"}, - {file = "MarkupSafe-2.1.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:c9c804664ebe8f83a211cace637506669e7890fec1b4195b505c214e50dd4eb7"}, - {file = "MarkupSafe-2.1.3-cp310-cp310-win32.whl", hash = "sha256:10bbfe99883db80bdbaff2dcf681dfc6533a614f700da1287707e8a5d78a8431"}, - {file = "MarkupSafe-2.1.3-cp310-cp310-win_amd64.whl", hash = "sha256:1577735524cdad32f9f694208aa75e422adba74f1baee7551620e43a3141f559"}, - {file = "MarkupSafe-2.1.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:ad9e82fb8f09ade1c3e1b996a6337afac2b8b9e365f926f5a61aacc71adc5b3c"}, - {file = "MarkupSafe-2.1.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3c0fae6c3be832a0a0473ac912810b2877c8cb9d76ca48de1ed31e1c68386575"}, - {file = "MarkupSafe-2.1.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b076b6226fb84157e3f7c971a47ff3a679d837cf338547532ab866c57930dbee"}, - {file = "MarkupSafe-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bfce63a9e7834b12b87c64d6b155fdd9b3b96191b6bd334bf37db7ff1fe457f2"}, - {file = "MarkupSafe-2.1.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:338ae27d6b8745585f87218a3f23f1512dbf52c26c28e322dbe54bcede54ccb9"}, - {file = "MarkupSafe-2.1.3-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e4dd52d80b8c83fdce44e12478ad2e85c64ea965e75d66dbeafb0a3e77308fcc"}, - {file = "MarkupSafe-2.1.3-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:df0be2b576a7abbf737b1575f048c23fb1d769f267ec4358296f31c2479db8f9"}, - {file = "MarkupSafe-2.1.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:5bbe06f8eeafd38e5d0a4894ffec89378b6c6a625ff57e3028921f8ff59318ac"}, - {file = "MarkupSafe-2.1.3-cp311-cp311-win32.whl", hash = "sha256:dd15ff04ffd7e05ffcb7fe79f1b98041b8ea30ae9234aed2a9168b5797c3effb"}, - {file = "MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl", hash = "sha256:134da1eca9ec0ae528110ccc9e48041e0828d79f24121a1a146161103c76e686"}, - {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"}, - {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"}, - {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"}, - {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"}, - {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"}, - {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"}, - {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"}, - {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"}, - {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"}, - {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"}, - {file = "MarkupSafe-2.1.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:8e254ae696c88d98da6555f5ace2279cf7cd5b3f52be2b5cf97feafe883b58d2"}, - {file = "MarkupSafe-2.1.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cb0932dc158471523c9637e807d9bfb93e06a95cbf010f1a38b98623b929ef2b"}, - {file = "MarkupSafe-2.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9402b03f1a1b4dc4c19845e5c749e3ab82d5078d16a2a4c2cd2df62d57bb0707"}, - {file = "MarkupSafe-2.1.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ca379055a47383d02a5400cb0d110cef0a776fc644cda797db0c5696cfd7e18e"}, - {file = "MarkupSafe-2.1.3-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:b7ff0f54cb4ff66dd38bebd335a38e2c22c41a8ee45aa608efc890ac3e3931bc"}, - {file = "MarkupSafe-2.1.3-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:c011a4149cfbcf9f03994ec2edffcb8b1dc2d2aede7ca243746df97a5d41ce48"}, - {file = "MarkupSafe-2.1.3-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:56d9f2ecac662ca1611d183feb03a3fa4406469dafe241673d521dd5ae92a155"}, - {file = "MarkupSafe-2.1.3-cp37-cp37m-win32.whl", hash = "sha256:8758846a7e80910096950b67071243da3e5a20ed2546e6392603c096778d48e0"}, - {file = "MarkupSafe-2.1.3-cp37-cp37m-win_amd64.whl", hash = "sha256:787003c0ddb00500e49a10f2844fac87aa6ce977b90b0feaaf9de23c22508b24"}, - {file = "MarkupSafe-2.1.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:2ef12179d3a291be237280175b542c07a36e7f60718296278d8593d21ca937d4"}, - {file = "MarkupSafe-2.1.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:2c1b19b3aaacc6e57b7e25710ff571c24d6c3613a45e905b1fde04d691b98ee0"}, - {file = "MarkupSafe-2.1.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8afafd99945ead6e075b973fefa56379c5b5c53fd8937dad92c662da5d8fd5ee"}, - {file = "MarkupSafe-2.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8c41976a29d078bb235fea9b2ecd3da465df42a562910f9022f1a03107bd02be"}, - {file = "MarkupSafe-2.1.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d080e0a5eb2529460b30190fcfcc4199bd7f827663f858a226a81bc27beaa97e"}, - {file = "MarkupSafe-2.1.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:69c0f17e9f5a7afdf2cc9fb2d1ce6aabdb3bafb7f38017c0b77862bcec2bbad8"}, - {file = "MarkupSafe-2.1.3-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:504b320cd4b7eff6f968eddf81127112db685e81f7e36e75f9f84f0df46041c3"}, - {file = "MarkupSafe-2.1.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:42de32b22b6b804f42c5d98be4f7e5e977ecdd9ee9b660fda1a3edf03b11792d"}, - {file = "MarkupSafe-2.1.3-cp38-cp38-win32.whl", hash = "sha256:ceb01949af7121f9fc39f7d27f91be8546f3fb112c608bc4029aef0bab86a2a5"}, - {file = "MarkupSafe-2.1.3-cp38-cp38-win_amd64.whl", hash = "sha256:1b40069d487e7edb2676d3fbdb2b0829ffa2cd63a2ec26c4938b2d34391b4ecc"}, - {file = "MarkupSafe-2.1.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:8023faf4e01efadfa183e863fefde0046de576c6f14659e8782065bcece22198"}, - {file = "MarkupSafe-2.1.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:6b2b56950d93e41f33b4223ead100ea0fe11f8e6ee5f641eb753ce4b77a7042b"}, - {file = "MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9dcdfd0eaf283af041973bff14a2e143b8bd64e069f4c383416ecd79a81aab58"}, - {file = "MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:05fb21170423db021895e1ea1e1f3ab3adb85d1c2333cbc2310f2a26bc77272e"}, - {file = "MarkupSafe-2.1.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:282c2cb35b5b673bbcadb33a585408104df04f14b2d9b01d4c345a3b92861c2c"}, - {file = "MarkupSafe-2.1.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:ab4a0df41e7c16a1392727727e7998a467472d0ad65f3ad5e6e765015df08636"}, - {file = "MarkupSafe-2.1.3-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:7ef3cb2ebbf91e330e3bb937efada0edd9003683db6b57bb108c4001f37a02ea"}, - {file = "MarkupSafe-2.1.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:0a4e4a1aff6c7ac4cd55792abf96c915634c2b97e3cc1c7129578aa68ebd754e"}, - {file = "MarkupSafe-2.1.3-cp39-cp39-win32.whl", hash = "sha256:fec21693218efe39aa7f8599346e90c705afa52c5b31ae019b2e57e8f6542bb2"}, - {file = "MarkupSafe-2.1.3-cp39-cp39-win_amd64.whl", hash = "sha256:3fd4abcb888d15a94f32b75d8fd18ee162ca0c064f35b11134be77050296d6ba"}, - {file = "MarkupSafe-2.1.3.tar.gz", hash = "sha256:af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a17a92de5231666cfbe003f0e4b9b3a7ae3afb1ec2845aadc2bacc93ff85febc"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:72b6be590cc35924b02c78ef34b467da4ba07e4e0f0454a2c5907f473fc50ce5"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e61659ba32cf2cf1481e575d0462554625196a1f2fc06a1c777d3f48e8865d46"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2174c595a0d73a3080ca3257b40096db99799265e1c27cc5a610743acd86d62f"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ae2ad8ae6ebee9d2d94b17fb62763125f3f374c25618198f40cbb8b525411900"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:075202fa5b72c86ad32dc7d0b56024ebdbcf2048c0ba09f1cde31bfdd57bcfff"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:598e3276b64aff0e7b3451b72e94fa3c238d452e7ddcd893c3ab324717456bad"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:fce659a462a1be54d2ffcacea5e3ba2d74daa74f30f5f143fe0c58636e355fdd"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-win32.whl", hash = "sha256:d9fad5155d72433c921b782e58892377c44bd6252b5af2f67f16b194987338a4"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl", hash = "sha256:bf50cd79a75d181c9181df03572cdce0fbb75cc353bc350712073108cba98de5"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:629ddd2ca402ae6dbedfceeba9c46d5f7b2a61d9749597d4307f943ef198fc1f"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:5b7b716f97b52c5a14bffdf688f971b2d5ef4029127f1ad7a513973cfd818df2"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6ec585f69cec0aa07d945b20805be741395e28ac1627333b1c5b0105962ffced"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b91c037585eba9095565a3556f611e3cbfaa42ca1e865f7b8015fe5c7336d5a5"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7502934a33b54030eaf1194c21c692a534196063db72176b0c4028e140f8f32c"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:0e397ac966fdf721b2c528cf028494e86172b4feba51d65f81ffd65c63798f3f"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:c061bb86a71b42465156a3ee7bd58c8c2ceacdbeb95d05a99893e08b8467359a"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:3a57fdd7ce31c7ff06cdfbf31dafa96cc533c21e443d57f5b1ecc6cdc668ec7f"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-win32.whl", hash = "sha256:397081c1a0bfb5124355710fe79478cdbeb39626492b15d399526ae53422b906"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl", hash = "sha256:2b7c57a4dfc4f16f7142221afe5ba4e093e09e728ca65c51f5620c9aaeb9a617"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:8dec4936e9c3100156f8a2dc89c4b88d5c435175ff03413b443469c7c8c5f4d1"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:3c6b973f22eb18a789b1460b4b91bf04ae3f0c4234a0a6aa6b0a92f6f7b951d4"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ac07bad82163452a6884fe8fa0963fb98c2346ba78d779ec06bd7a6262132aee"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f5dfb42c4604dddc8e4305050aa6deb084540643ed5804d7455b5df8fe16f5e5"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ea3d8a3d18833cf4304cd2fc9cbb1efe188ca9b5efef2bdac7adc20594a0e46b"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:d050b3361367a06d752db6ead6e7edeb0009be66bc3bae0ee9d97fb326badc2a"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:bec0a414d016ac1a18862a519e54b2fd0fc8bbfd6890376898a6c0891dd82e9f"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:58c98fee265677f63a4385256a6d7683ab1832f3ddd1e66fe948d5880c21a169"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-win32.whl", hash = "sha256:8590b4ae07a35970728874632fed7bd57b26b0102df2d2b233b6d9d82f6c62ad"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-win_amd64.whl", hash = "sha256:823b65d8706e32ad2df51ed89496147a42a2a6e01c13cfb6ffb8b1e92bc910bb"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:c8b29db45f8fe46ad280a7294f5c3ec36dbac9491f2d1c17345be8e69cc5928f"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec6a563cff360b50eed26f13adc43e61bc0c04d94b8be985e6fb24b81f6dcfdf"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a549b9c31bec33820e885335b451286e2969a2d9e24879f83fe904a5ce59d70a"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4f11aa001c540f62c6166c7726f71f7573b52c68c31f014c25cc7901deea0b52"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:7b2e5a267c855eea6b4283940daa6e88a285f5f2a67f2220203786dfa59b37e9"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:2d2d793e36e230fd32babe143b04cec8a8b3eb8a3122d2aceb4a371e6b09b8df"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:ce409136744f6521e39fd8e2a24c53fa18ad67aa5bc7c2cf83645cce5b5c4e50"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-win32.whl", hash = "sha256:4096e9de5c6fdf43fb4f04c26fb114f61ef0bf2e5604b6ee3019d51b69e8c371"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-win_amd64.whl", hash = "sha256:4275d846e41ecefa46e2015117a9f491e57a71ddd59bbead77e904dc02b1bed2"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:656f7526c69fac7f600bd1f400991cc282b417d17539a1b228617081106feb4a"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:97cafb1f3cbcd3fd2b6fbfb99ae11cdb14deea0736fc2b0952ee177f2b813a46"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f3fbcb7ef1f16e48246f704ab79d79da8a46891e2da03f8783a5b6fa41a9532"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fa9db3f79de01457b03d4f01b34cf91bc0048eb2c3846ff26f66687c2f6d16ab"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ffee1f21e5ef0d712f9033568f8344d5da8cc2869dbd08d87c84656e6a2d2f68"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:5dedb4db619ba5a2787a94d877bc8ffc0566f92a01c0ef214865e54ecc9ee5e0"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:30b600cf0a7ac9234b2638fbc0fb6158ba5bdcdf46aeb631ead21248b9affbc4"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:8dd717634f5a044f860435c1d8c16a270ddf0ef8588d4887037c5028b859b0c3"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-win32.whl", hash = "sha256:daa4ee5a243f0f20d528d939d06670a298dd39b1ad5f8a72a4275124a7819eff"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-win_amd64.whl", hash = "sha256:619bc166c4f2de5caa5a633b8b7326fbe98e0ccbfacabd87268a2b15ff73a029"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:7a68b554d356a91cce1236aa7682dc01df0edba8d043fd1ce607c49dd3c1edcf"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:db0b55e0f3cc0be60c1f19efdde9a637c32740486004f20d1cff53c3c0ece4d2"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e53af139f8579a6d5f7b76549125f0d94d7e630761a2111bc431fd820e163b8"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:17b950fccb810b3293638215058e432159d2b71005c74371d784862b7e4683f3"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4c31f53cdae6ecfa91a77820e8b151dba54ab528ba65dfd235c80b086d68a465"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:bff1b4290a66b490a2f4719358c0cdcd9bafb6b8f061e45c7a2460866bf50c2e"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:bc1667f8b83f48511b94671e0e441401371dfd0f0a795c7daa4a3cd1dde55bea"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:5049256f536511ee3f7e1b3f87d1d1209d327e818e6ae1365e8653d7e3abb6a6"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-win32.whl", hash = "sha256:00e046b6dd71aa03a41079792f8473dc494d564611a8f89bbbd7cb93295ebdcf"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-win_amd64.whl", hash = "sha256:fa173ec60341d6bb97a89f5ea19c85c5643c1e7dedebc22f5181eb73573142c5"}, + {file = "MarkupSafe-2.1.5.tar.gz", hash = "sha256:d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b"}, ] [[package]] @@ -1391,13 +1376,13 @@ files = [ [[package]] name = "more-itertools" -version = "10.1.0" +version = "10.2.0" description = "More routines for operating on iterables, beyond itertools" optional = false python-versions = ">=3.8" files = [ - {file = "more-itertools-10.1.0.tar.gz", hash = "sha256:626c369fa0eb37bac0291bce8259b332fd59ac792fa5497b59837309cd5b114a"}, - {file = "more_itertools-10.1.0-py3-none-any.whl", hash = "sha256:64e0735fcfdc6f3464ea133afe8ea4483b1c5fe3a3d69852e6503b43a0b222e6"}, + {file = "more-itertools-10.2.0.tar.gz", hash = "sha256:8fccb480c43d3e99a00087634c06dd02b0d50fbf088b380de5a41a015ec239e1"}, + {file = "more_itertools-10.2.0-py3-none-any.whl", hash = "sha256:686b06abe565edfab151cb8fd385a05651e1fdf8f0a14191e4439283421f8684"}, ] [[package]] @@ -1451,13 +1436,13 @@ files = [ [[package]] name = "packaging" -version = "23.2" +version = "24.0" description = "Core utilities for Python packages" optional = false python-versions = ">=3.7" files = [ - {file = "packaging-23.2-py3-none-any.whl", hash = "sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7"}, - {file = "packaging-23.2.tar.gz", hash = "sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5"}, + {file = "packaging-24.0-py3-none-any.whl", hash = "sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5"}, + {file = "packaging-24.0.tar.gz", hash = "sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9"}, ] [[package]] @@ -1473,13 +1458,13 @@ files = [ [[package]] name = "pluggy" -version = "1.3.0" +version = "1.5.0" description = "plugin and hook calling mechanisms for python" optional = false python-versions = ">=3.8" files = [ - {file = "pluggy-1.3.0-py3-none-any.whl", hash = "sha256:d89c696a773f8bd377d18e5ecda92b7a3793cbe66c87060a6fb58c7b6e1061f7"}, - {file = "pluggy-1.3.0.tar.gz", hash = "sha256:cf61ae8f126ac6f7c451172cf30e3e43d3ca77615509771b3a984a0730651e12"}, + {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, + {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, ] [package.extras] @@ -1521,27 +1506,27 @@ files = [ [[package]] name = "psutil" -version = "5.9.6" +version = "5.9.8" description = "Cross-platform lib for process and system monitoring in Python." optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" files = [ - {file = "psutil-5.9.6-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:fb8a697f11b0f5994550555fcfe3e69799e5b060c8ecf9e2f75c69302cc35c0d"}, - {file = "psutil-5.9.6-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:91ecd2d9c00db9817a4b4192107cf6954addb5d9d67a969a4f436dbc9200f88c"}, - {file = "psutil-5.9.6-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:10e8c17b4f898d64b121149afb136c53ea8b68c7531155147867b7b1ac9e7e28"}, - {file = "psutil-5.9.6-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:18cd22c5db486f33998f37e2bb054cc62fd06646995285e02a51b1e08da97017"}, - {file = "psutil-5.9.6-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:ca2780f5e038379e520281e4c032dddd086906ddff9ef0d1b9dcf00710e5071c"}, - {file = "psutil-5.9.6-cp27-none-win32.whl", hash = "sha256:70cb3beb98bc3fd5ac9ac617a327af7e7f826373ee64c80efd4eb2856e5051e9"}, - {file = "psutil-5.9.6-cp27-none-win_amd64.whl", hash = "sha256:51dc3d54607c73148f63732c727856f5febec1c7c336f8f41fcbd6315cce76ac"}, - {file = "psutil-5.9.6-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:c69596f9fc2f8acd574a12d5f8b7b1ba3765a641ea5d60fb4736bf3c08a8214a"}, - {file = "psutil-5.9.6-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:92e0cc43c524834af53e9d3369245e6cc3b130e78e26100d1f63cdb0abeb3d3c"}, - {file = "psutil-5.9.6-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:748c9dd2583ed86347ed65d0035f45fa8c851e8d90354c122ab72319b5f366f4"}, - {file = "psutil-5.9.6-cp36-cp36m-win32.whl", hash = "sha256:3ebf2158c16cc69db777e3c7decb3c0f43a7af94a60d72e87b2823aebac3d602"}, - {file = "psutil-5.9.6-cp36-cp36m-win_amd64.whl", hash = "sha256:ff18b8d1a784b810df0b0fff3bcb50ab941c3b8e2c8de5726f9c71c601c611aa"}, - {file = "psutil-5.9.6-cp37-abi3-win32.whl", hash = "sha256:a6f01f03bf1843280f4ad16f4bde26b817847b4c1a0db59bf6419807bc5ce05c"}, - {file = "psutil-5.9.6-cp37-abi3-win_amd64.whl", hash = "sha256:6e5fb8dc711a514da83098bc5234264e551ad980cec5f85dabf4d38ed6f15e9a"}, - {file = "psutil-5.9.6-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:daecbcbd29b289aac14ece28eca6a3e60aa361754cf6da3dfb20d4d32b6c7f57"}, - {file = "psutil-5.9.6.tar.gz", hash = "sha256:e4b92ddcd7dd4cdd3f900180ea1e104932c7bce234fb88976e2a3b296441225a"}, + {file = "psutil-5.9.8-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:26bd09967ae00920df88e0352a91cff1a78f8d69b3ecabbfe733610c0af486c8"}, + {file = "psutil-5.9.8-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:05806de88103b25903dff19bb6692bd2e714ccf9e668d050d144012055cbca73"}, + {file = "psutil-5.9.8-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:611052c4bc70432ec770d5d54f64206aa7203a101ec273a0cd82418c86503bb7"}, + {file = "psutil-5.9.8-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:50187900d73c1381ba1454cf40308c2bf6f34268518b3f36a9b663ca87e65e36"}, + {file = "psutil-5.9.8-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:02615ed8c5ea222323408ceba16c60e99c3f91639b07da6373fb7e6539abc56d"}, + {file = "psutil-5.9.8-cp27-none-win32.whl", hash = "sha256:36f435891adb138ed3c9e58c6af3e2e6ca9ac2f365efe1f9cfef2794e6c93b4e"}, + {file = "psutil-5.9.8-cp27-none-win_amd64.whl", hash = "sha256:bd1184ceb3f87651a67b2708d4c3338e9b10c5df903f2e3776b62303b26cb631"}, + {file = "psutil-5.9.8-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:aee678c8720623dc456fa20659af736241f575d79429a0e5e9cf88ae0605cc81"}, + {file = "psutil-5.9.8-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8cb6403ce6d8e047495a701dc7c5bd788add903f8986d523e3e20b98b733e421"}, + {file = "psutil-5.9.8-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d06016f7f8625a1825ba3732081d77c94589dca78b7a3fc072194851e88461a4"}, + {file = "psutil-5.9.8-cp36-cp36m-win32.whl", hash = "sha256:7d79560ad97af658a0f6adfef8b834b53f64746d45b403f225b85c5c2c140eee"}, + {file = "psutil-5.9.8-cp36-cp36m-win_amd64.whl", hash = "sha256:27cc40c3493bb10de1be4b3f07cae4c010ce715290a5be22b98493509c6299e2"}, + {file = "psutil-5.9.8-cp37-abi3-win32.whl", hash = "sha256:bc56c2a1b0d15aa3eaa5a60c9f3f8e3e565303b465dbf57a1b730e7a2b9844e0"}, + {file = "psutil-5.9.8-cp37-abi3-win_amd64.whl", hash = "sha256:8db4c1b57507eef143a15a6884ca10f7c73876cdf5d51e713151c1236a0e68cf"}, + {file = "psutil-5.9.8-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:d16bbddf0693323b8c6123dd804100241da461e41d6e332fb0ba6058f630f8c8"}, + {file = "psutil-5.9.8.tar.gz", hash = "sha256:6be126e3225486dff286a8fb9a06246a5253f4c7c53b475ea5f5ac934e64194c"}, ] [package.extras] @@ -1652,13 +1637,13 @@ files = [ [[package]] name = "pycparser" -version = "2.21" +version = "2.22" description = "C parser in Python" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +python-versions = ">=3.8" files = [ - {file = "pycparser-2.21-py2.py3-none-any.whl", hash = "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9"}, - {file = "pycparser-2.21.tar.gz", hash = "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"}, + {file = "pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"}, + {file = "pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"}, ] [[package]] @@ -1781,13 +1766,13 @@ files = [ [[package]] name = "pytest" -version = "7.4.3" +version = "7.4.4" description = "pytest: simple powerful testing with Python" optional = false python-versions = ">=3.7" files = [ - {file = "pytest-7.4.3-py3-none-any.whl", hash = "sha256:0d009c083ea859a71b76adf7c1d502e4bc170b80a8ef002da5806527b9591fac"}, - {file = "pytest-7.4.3.tar.gz", hash = "sha256:d989d136982de4e3b29dabcc838ad581c64e8ed52c11fbe86ddebd9da0818cd5"}, + {file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"}, + {file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"}, ] [package.dependencies] @@ -1845,17 +1830,17 @@ pytest = ">=2.5" [[package]] name = "pytest-timeout" -version = "2.2.0" +version = "2.3.1" description = "pytest plugin to abort hanging tests" optional = false python-versions = ">=3.7" files = [ - {file = "pytest-timeout-2.2.0.tar.gz", hash = "sha256:3b0b95dabf3cb50bac9ef5ca912fa0cfc286526af17afc806824df20c2f72c90"}, - {file = "pytest_timeout-2.2.0-py3-none-any.whl", hash = "sha256:bde531e096466f49398a59f2dde76fa78429a09a12411466f88a07213e220de2"}, + {file = "pytest-timeout-2.3.1.tar.gz", hash = "sha256:12397729125c6ecbdaca01035b9e5239d4db97352320af155b3f5de1ba5165d9"}, + {file = "pytest_timeout-2.3.1-py3-none-any.whl", hash = "sha256:68188cb703edfc6a18fad98dc25a3c61e9f24d644b0b70f33af545219fc7813e"}, ] [package.dependencies] -pytest = ">=5.0.0" +pytest = ">=7.0.0" [[package]] name = "pytest-xdist" @@ -1891,13 +1876,13 @@ files = [ [[package]] name = "python-engineio" -version = "4.8.0" +version = "4.9.0" description = "Engine.IO server and client for Python" optional = false python-versions = ">=3.6" files = [ - {file = "python-engineio-4.8.0.tar.gz", hash = "sha256:2a32585d8fecd0118264fe0c39788670456ca9aa466d7c026d995cfff68af164"}, - {file = "python_engineio-4.8.0-py3-none-any.whl", hash = "sha256:6055ce35b7f32b70641d53846faf76e06f2af0107a714cedb2750595c69ade43"}, + {file = "python-engineio-4.9.0.tar.gz", hash = "sha256:e87459c15638e567711fd156e6f9c4a402668871bed79523f0ecfec744729ec7"}, + {file = "python_engineio-4.9.0-py3-none-any.whl", hash = "sha256:979859bff770725b75e60353d7ae53b397e8b517d05ba76733b404a3dcca3e4c"}, ] [package.dependencies] @@ -1910,13 +1895,13 @@ docs = ["sphinx"] [[package]] name = "python-socketio" -version = "5.10.0" +version = "5.11.2" description = "Socket.IO server and client for Python" optional = false -python-versions = ">=3.6" +python-versions = ">=3.8" files = [ - {file = "python-socketio-5.10.0.tar.gz", hash = "sha256:01c616946fa9f67ed5cc3d1568e1c4940acfc64aeeb9ff621a53e80cabeb748a"}, - {file = "python_socketio-5.10.0-py3-none-any.whl", hash = "sha256:fb18d9b84cfb05289dc207b790c3de59cd242310d9b980b1c31e9faf4f79101a"}, + {file = "python-socketio-5.11.2.tar.gz", hash = "sha256:ae6a1de5c5209ca859dc574dccc8931c4be17ee003e74ce3b8d1306162bb4a37"}, + {file = "python_socketio-5.11.2-py3-none-any.whl", hash = "sha256:b9f22a8ff762d7a6e123d16a43ddb1a27d50f07c3c88ea999334f2f89b0ad52b"}, ] [package.dependencies] @@ -1930,24 +1915,24 @@ docs = ["sphinx"] [[package]] name = "pytz" -version = "2023.3.post1" +version = "2024.1" description = "World timezone definitions, modern and historical" optional = false python-versions = "*" files = [ - {file = "pytz-2023.3.post1-py2.py3-none-any.whl", hash = "sha256:ce42d816b81b68506614c11e8937d3aa9e41007ceb50bfdcb0749b921bf646c7"}, - {file = "pytz-2023.3.post1.tar.gz", hash = "sha256:7b4fddbeb94a1eba4b557da24f19fdf9db575192544270a9101d8509f9f43d7b"}, + {file = "pytz-2024.1-py2.py3-none-any.whl", hash = "sha256:328171f4e3623139da4983451950b28e95ac706e13f3f2630a879749e7a8b319"}, + {file = "pytz-2024.1.tar.gz", hash = "sha256:2a29735ea9c18baf14b448846bde5a48030ed267578472d8955cd0e7443a9812"}, ] [[package]] name = "referencing" -version = "0.30.2" +version = "0.35.1" description = "JSON Referencing + Python" optional = false python-versions = ">=3.8" files = [ - {file = "referencing-0.30.2-py3-none-any.whl", hash = "sha256:449b6669b6121a9e96a7f9e410b245d471e8d48964c67113ce9afe50c8dd7bdf"}, - {file = "referencing-0.30.2.tar.gz", hash = "sha256:794ad8003c65938edcdbc027f1933215e0d0ccc0291e3ce20a4d87432b59efc0"}, + {file = "referencing-0.35.1-py3-none-any.whl", hash = "sha256:eda6d3234d62814d1c64e305c1331c9a3a6132da475ab6382eaa997b21ee75de"}, + {file = "referencing-0.35.1.tar.gz", hash = "sha256:25b42124a6c8b632a425174f24087783efb348a6f1e0008e63cd4466fedf703c"}, ] [package.dependencies] @@ -1977,127 +1962,127 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] [[package]] name = "rpds-py" -version = "0.10.6" +version = "0.18.1" description = "Python bindings to Rust's persistent data structures (rpds)" optional = false python-versions = ">=3.8" files = [ - {file = "rpds_py-0.10.6-cp310-cp310-macosx_10_7_x86_64.whl", hash = "sha256:6bdc11f9623870d75692cc33c59804b5a18d7b8a4b79ef0b00b773a27397d1f6"}, - {file = "rpds_py-0.10.6-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:26857f0f44f0e791f4a266595a7a09d21f6b589580ee0585f330aaccccb836e3"}, - {file = "rpds_py-0.10.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7f5e15c953ace2e8dde9824bdab4bec50adb91a5663df08d7d994240ae6fa31"}, - {file = "rpds_py-0.10.6-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:61fa268da6e2e1cd350739bb61011121fa550aa2545762e3dc02ea177ee4de35"}, - {file = "rpds_py-0.10.6-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c48f3fbc3e92c7dd6681a258d22f23adc2eb183c8cb1557d2fcc5a024e80b094"}, - {file = "rpds_py-0.10.6-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c0503c5b681566e8b722fe8c4c47cce5c7a51f6935d5c7012c4aefe952a35eed"}, - {file = "rpds_py-0.10.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:734c41f9f57cc28658d98270d3436dba65bed0cfc730d115b290e970150c540d"}, - {file = "rpds_py-0.10.6-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a5d7ed104d158c0042a6a73799cf0eb576dfd5fc1ace9c47996e52320c37cb7c"}, - {file = "rpds_py-0.10.6-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:e3df0bc35e746cce42579826b89579d13fd27c3d5319a6afca9893a9b784ff1b"}, - {file = "rpds_py-0.10.6-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:73e0a78a9b843b8c2128028864901f55190401ba38aae685350cf69b98d9f7c9"}, - {file = "rpds_py-0.10.6-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:5ed505ec6305abd2c2c9586a7b04fbd4baf42d4d684a9c12ec6110deefe2a063"}, - {file = "rpds_py-0.10.6-cp310-none-win32.whl", hash = "sha256:d97dd44683802000277bbf142fd9f6b271746b4846d0acaf0cefa6b2eaf2a7ad"}, - {file = "rpds_py-0.10.6-cp310-none-win_amd64.whl", hash = "sha256:b455492cab07107bfe8711e20cd920cc96003e0da3c1f91297235b1603d2aca7"}, - {file = "rpds_py-0.10.6-cp311-cp311-macosx_10_7_x86_64.whl", hash = "sha256:e8cdd52744f680346ff8c1ecdad5f4d11117e1724d4f4e1874f3a67598821069"}, - {file = "rpds_py-0.10.6-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:66414dafe4326bca200e165c2e789976cab2587ec71beb80f59f4796b786a238"}, - {file = "rpds_py-0.10.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cc435d059f926fdc5b05822b1be4ff2a3a040f3ae0a7bbbe672babb468944722"}, - {file = "rpds_py-0.10.6-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8e7f2219cb72474571974d29a191714d822e58be1eb171f229732bc6fdedf0ac"}, - {file = "rpds_py-0.10.6-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3953c6926a63f8ea5514644b7afb42659b505ece4183fdaaa8f61d978754349e"}, - {file = "rpds_py-0.10.6-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2bb2e4826be25e72013916eecd3d30f66fd076110de09f0e750163b416500721"}, - {file = "rpds_py-0.10.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7bf347b495b197992efc81a7408e9a83b931b2f056728529956a4d0858608b80"}, - {file = "rpds_py-0.10.6-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:102eac53bb0bf0f9a275b438e6cf6904904908562a1463a6fc3323cf47d7a532"}, - {file = "rpds_py-0.10.6-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:40f93086eef235623aa14dbddef1b9fb4b22b99454cb39a8d2e04c994fb9868c"}, - {file = "rpds_py-0.10.6-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e22260a4741a0e7a206e175232867b48a16e0401ef5bce3c67ca5b9705879066"}, - {file = "rpds_py-0.10.6-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f4e56860a5af16a0fcfa070a0a20c42fbb2012eed1eb5ceeddcc7f8079214281"}, - {file = "rpds_py-0.10.6-cp311-none-win32.whl", hash = "sha256:0774a46b38e70fdde0c6ded8d6d73115a7c39d7839a164cc833f170bbf539116"}, - {file = "rpds_py-0.10.6-cp311-none-win_amd64.whl", hash = "sha256:4a5ee600477b918ab345209eddafde9f91c0acd931f3776369585a1c55b04c57"}, - {file = "rpds_py-0.10.6-cp312-cp312-macosx_10_7_x86_64.whl", hash = "sha256:5ee97c683eaface61d38ec9a489e353d36444cdebb128a27fe486a291647aff6"}, - {file = "rpds_py-0.10.6-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0713631d6e2d6c316c2f7b9320a34f44abb644fc487b77161d1724d883662e31"}, - {file = "rpds_py-0.10.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b5a53f5998b4bbff1cb2e967e66ab2addc67326a274567697379dd1e326bded7"}, - {file = "rpds_py-0.10.6-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6a555ae3d2e61118a9d3e549737bb4a56ff0cec88a22bd1dfcad5b4e04759175"}, - {file = "rpds_py-0.10.6-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:945eb4b6bb8144909b203a88a35e0a03d22b57aefb06c9b26c6e16d72e5eb0f0"}, - {file = "rpds_py-0.10.6-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:52c215eb46307c25f9fd2771cac8135d14b11a92ae48d17968eda5aa9aaf5071"}, - {file = "rpds_py-0.10.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c1b3cd23d905589cb205710b3988fc8f46d4a198cf12862887b09d7aaa6bf9b9"}, - {file = "rpds_py-0.10.6-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:64ccc28683666672d7c166ed465c09cee36e306c156e787acef3c0c62f90da5a"}, - {file = "rpds_py-0.10.6-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:516a611a2de12fbea70c78271e558f725c660ce38e0006f75139ba337d56b1f6"}, - {file = "rpds_py-0.10.6-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:9ff93d3aedef11f9c4540cf347f8bb135dd9323a2fc705633d83210d464c579d"}, - {file = "rpds_py-0.10.6-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d858532212f0650be12b6042ff4378dc2efbb7792a286bee4489eaa7ba010586"}, - {file = "rpds_py-0.10.6-cp312-none-win32.whl", hash = "sha256:3c4eff26eddac49d52697a98ea01b0246e44ca82ab09354e94aae8823e8bda02"}, - {file = "rpds_py-0.10.6-cp312-none-win_amd64.whl", hash = "sha256:150eec465dbc9cbca943c8e557a21afdcf9bab8aaabf386c44b794c2f94143d2"}, - {file = "rpds_py-0.10.6-cp38-cp38-macosx_10_7_x86_64.whl", hash = "sha256:cf693eb4a08eccc1a1b636e4392322582db2a47470d52e824b25eca7a3977b53"}, - {file = "rpds_py-0.10.6-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:4134aa2342f9b2ab6c33d5c172e40f9ef802c61bb9ca30d21782f6e035ed0043"}, - {file = "rpds_py-0.10.6-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e782379c2028a3611285a795b89b99a52722946d19fc06f002f8b53e3ea26ea9"}, - {file = "rpds_py-0.10.6-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2f6da6d842195fddc1cd34c3da8a40f6e99e4a113918faa5e60bf132f917c247"}, - {file = "rpds_py-0.10.6-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b4a9fe992887ac68256c930a2011255bae0bf5ec837475bc6f7edd7c8dfa254e"}, - {file = "rpds_py-0.10.6-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b788276a3c114e9f51e257f2a6f544c32c02dab4aa7a5816b96444e3f9ffc336"}, - {file = "rpds_py-0.10.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:caa1afc70a02645809c744eefb7d6ee8fef7e2fad170ffdeacca267fd2674f13"}, - {file = "rpds_py-0.10.6-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:bddd4f91eede9ca5275e70479ed3656e76c8cdaaa1b354e544cbcf94c6fc8ac4"}, - {file = "rpds_py-0.10.6-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:775049dfa63fb58293990fc59473e659fcafd953bba1d00fc5f0631a8fd61977"}, - {file = "rpds_py-0.10.6-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:c6c45a2d2b68c51fe3d9352733fe048291e483376c94f7723458cfd7b473136b"}, - {file = "rpds_py-0.10.6-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:0699ab6b8c98df998c3eacf51a3b25864ca93dab157abe358af46dc95ecd9801"}, - {file = "rpds_py-0.10.6-cp38-none-win32.whl", hash = "sha256:ebdab79f42c5961682654b851f3f0fc68e6cc7cd8727c2ac4ffff955154123c1"}, - {file = "rpds_py-0.10.6-cp38-none-win_amd64.whl", hash = "sha256:24656dc36f866c33856baa3ab309da0b6a60f37d25d14be916bd3e79d9f3afcf"}, - {file = "rpds_py-0.10.6-cp39-cp39-macosx_10_7_x86_64.whl", hash = "sha256:0898173249141ee99ffcd45e3829abe7bcee47d941af7434ccbf97717df020e5"}, - {file = "rpds_py-0.10.6-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:9e9184fa6c52a74a5521e3e87badbf9692549c0fcced47443585876fcc47e469"}, - {file = "rpds_py-0.10.6-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5752b761902cd15073a527b51de76bbae63d938dc7c5c4ad1e7d8df10e765138"}, - {file = "rpds_py-0.10.6-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:99a57006b4ec39dbfb3ed67e5b27192792ffb0553206a107e4aadb39c5004cd5"}, - {file = "rpds_py-0.10.6-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:09586f51a215d17efdb3a5f090d7cbf1633b7f3708f60a044757a5d48a83b393"}, - {file = "rpds_py-0.10.6-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e225a6a14ecf44499aadea165299092ab0cba918bb9ccd9304eab1138844490b"}, - {file = "rpds_py-0.10.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b2039f8d545f20c4e52713eea51a275e62153ee96c8035a32b2abb772b6fc9e5"}, - {file = "rpds_py-0.10.6-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:34ad87a831940521d462ac11f1774edf867c34172010f5390b2f06b85dcc6014"}, - {file = "rpds_py-0.10.6-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:dcdc88b6b01015da066da3fb76545e8bb9a6880a5ebf89e0f0b2e3ca557b3ab7"}, - {file = "rpds_py-0.10.6-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:25860ed5c4e7f5e10c496ea78af46ae8d8468e0be745bd233bab9ca99bfd2647"}, - {file = "rpds_py-0.10.6-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:7854a207ef77319ec457c1eb79c361b48807d252d94348305db4f4b62f40f7f3"}, - {file = "rpds_py-0.10.6-cp39-none-win32.whl", hash = "sha256:e6fcc026a3f27c1282c7ed24b7fcac82cdd70a0e84cc848c0841a3ab1e3dea2d"}, - {file = "rpds_py-0.10.6-cp39-none-win_amd64.whl", hash = "sha256:e98c4c07ee4c4b3acf787e91b27688409d918212dfd34c872201273fdd5a0e18"}, - {file = "rpds_py-0.10.6-pp310-pypy310_pp73-macosx_10_7_x86_64.whl", hash = "sha256:68fe9199184c18d997d2e4293b34327c0009a78599ce703e15cd9a0f47349bba"}, - {file = "rpds_py-0.10.6-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:3339eca941568ed52d9ad0f1b8eb9fe0958fa245381747cecf2e9a78a5539c42"}, - {file = "rpds_py-0.10.6-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a360cfd0881d36c6dc271992ce1eda65dba5e9368575663de993eeb4523d895f"}, - {file = "rpds_py-0.10.6-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:031f76fc87644a234883b51145e43985aa2d0c19b063e91d44379cd2786144f8"}, - {file = "rpds_py-0.10.6-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1f36a9d751f86455dc5278517e8b65580eeee37d61606183897f122c9e51cef3"}, - {file = "rpds_py-0.10.6-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:052a832078943d2b2627aea0d19381f607fe331cc0eb5df01991268253af8417"}, - {file = "rpds_py-0.10.6-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:023574366002bf1bd751ebaf3e580aef4a468b3d3c216d2f3f7e16fdabd885ed"}, - {file = "rpds_py-0.10.6-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:defa2c0c68734f4a82028c26bcc85e6b92cced99866af118cd6a89b734ad8e0d"}, - {file = "rpds_py-0.10.6-pp310-pypy310_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:879fb24304ead6b62dbe5034e7b644b71def53c70e19363f3c3be2705c17a3b4"}, - {file = "rpds_py-0.10.6-pp310-pypy310_pp73-musllinux_1_2_i686.whl", hash = "sha256:53c43e10d398e365da2d4cc0bcaf0854b79b4c50ee9689652cdc72948e86f487"}, - {file = "rpds_py-0.10.6-pp310-pypy310_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:3777cc9dea0e6c464e4b24760664bd8831738cc582c1d8aacf1c3f546bef3f65"}, - {file = "rpds_py-0.10.6-pp38-pypy38_pp73-macosx_10_7_x86_64.whl", hash = "sha256:40578a6469e5d1df71b006936ce95804edb5df47b520c69cf5af264d462f2cbb"}, - {file = "rpds_py-0.10.6-pp38-pypy38_pp73-macosx_11_0_arm64.whl", hash = "sha256:cf71343646756a072b85f228d35b1d7407da1669a3de3cf47f8bbafe0c8183a4"}, - {file = "rpds_py-0.10.6-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:10f32b53f424fc75ff7b713b2edb286fdbfc94bf16317890260a81c2c00385dc"}, - {file = "rpds_py-0.10.6-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:81de24a1c51cfb32e1fbf018ab0bdbc79c04c035986526f76c33e3f9e0f3356c"}, - {file = "rpds_py-0.10.6-pp38-pypy38_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ac17044876e64a8ea20ab132080ddc73b895b4abe9976e263b0e30ee5be7b9c2"}, - {file = "rpds_py-0.10.6-pp38-pypy38_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5e8a78bd4879bff82daef48c14d5d4057f6856149094848c3ed0ecaf49f5aec2"}, - {file = "rpds_py-0.10.6-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78ca33811e1d95cac8c2e49cb86c0fb71f4d8409d8cbea0cb495b6dbddb30a55"}, - {file = "rpds_py-0.10.6-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c63c3ef43f0b3fb00571cff6c3967cc261c0ebd14a0a134a12e83bdb8f49f21f"}, - {file = "rpds_py-0.10.6-pp38-pypy38_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:7fde6d0e00b2fd0dbbb40c0eeec463ef147819f23725eda58105ba9ca48744f4"}, - {file = "rpds_py-0.10.6-pp38-pypy38_pp73-musllinux_1_2_i686.whl", hash = "sha256:79edd779cfc46b2e15b0830eecd8b4b93f1a96649bcb502453df471a54ce7977"}, - {file = "rpds_py-0.10.6-pp38-pypy38_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:9164ec8010327ab9af931d7ccd12ab8d8b5dc2f4c6a16cbdd9d087861eaaefa1"}, - {file = "rpds_py-0.10.6-pp39-pypy39_pp73-macosx_10_7_x86_64.whl", hash = "sha256:d29ddefeab1791e3c751e0189d5f4b3dbc0bbe033b06e9c333dca1f99e1d523e"}, - {file = "rpds_py-0.10.6-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:30adb75ecd7c2a52f5e76af50644b3e0b5ba036321c390b8e7ec1bb2a16dd43c"}, - {file = "rpds_py-0.10.6-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dd609fafdcdde6e67a139898196698af37438b035b25ad63704fd9097d9a3482"}, - {file = "rpds_py-0.10.6-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6eef672de005736a6efd565577101277db6057f65640a813de6c2707dc69f396"}, - {file = "rpds_py-0.10.6-pp39-pypy39_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6cf4393c7b41abbf07c88eb83e8af5013606b1cdb7f6bc96b1b3536b53a574b8"}, - {file = "rpds_py-0.10.6-pp39-pypy39_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ad857f42831e5b8d41a32437f88d86ead6c191455a3499c4b6d15e007936d4cf"}, - {file = "rpds_py-0.10.6-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1d7360573f1e046cb3b0dceeb8864025aa78d98be4bb69f067ec1c40a9e2d9df"}, - {file = "rpds_py-0.10.6-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d08f63561c8a695afec4975fae445245386d645e3e446e6f260e81663bfd2e38"}, - {file = "rpds_py-0.10.6-pp39-pypy39_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:f0f17f2ce0f3529177a5fff5525204fad7b43dd437d017dd0317f2746773443d"}, - {file = "rpds_py-0.10.6-pp39-pypy39_pp73-musllinux_1_2_i686.whl", hash = "sha256:442626328600bde1d09dc3bb00434f5374948838ce75c41a52152615689f9403"}, - {file = "rpds_py-0.10.6-pp39-pypy39_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:e9616f5bd2595f7f4a04b67039d890348ab826e943a9bfdbe4938d0eba606971"}, - {file = "rpds_py-0.10.6.tar.gz", hash = "sha256:4ce5a708d65a8dbf3748d2474b580d606b1b9f91b5c6ab2a316e0b0cf7a4ba50"}, + {file = "rpds_py-0.18.1-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:d31dea506d718693b6b2cffc0648a8929bdc51c70a311b2770f09611caa10d53"}, + {file = "rpds_py-0.18.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:732672fbc449bab754e0b15356c077cc31566df874964d4801ab14f71951ea80"}, + {file = "rpds_py-0.18.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4a98a1f0552b5f227a3d6422dbd61bc6f30db170939bd87ed14f3c339aa6c7c9"}, + {file = "rpds_py-0.18.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:7f1944ce16401aad1e3f7d312247b3d5de7981f634dc9dfe90da72b87d37887d"}, + {file = "rpds_py-0.18.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:38e14fb4e370885c4ecd734f093a2225ee52dc384b86fa55fe3f74638b2cfb09"}, + {file = "rpds_py-0.18.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:08d74b184f9ab6289b87b19fe6a6d1a97fbfea84b8a3e745e87a5de3029bf944"}, + {file = "rpds_py-0.18.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d70129cef4a8d979caa37e7fe957202e7eee8ea02c5e16455bc9808a59c6b2f0"}, + {file = "rpds_py-0.18.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ce0bb20e3a11bd04461324a6a798af34d503f8d6f1aa3d2aa8901ceaf039176d"}, + {file = "rpds_py-0.18.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:81c5196a790032e0fc2464c0b4ab95f8610f96f1f2fa3d4deacce6a79852da60"}, + {file = "rpds_py-0.18.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:f3027be483868c99b4985fda802a57a67fdf30c5d9a50338d9db646d590198da"}, + {file = "rpds_py-0.18.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:d44607f98caa2961bab4fa3c4309724b185b464cdc3ba6f3d7340bac3ec97cc1"}, + {file = "rpds_py-0.18.1-cp310-none-win32.whl", hash = "sha256:c273e795e7a0f1fddd46e1e3cb8be15634c29ae8ff31c196debb620e1edb9333"}, + {file = "rpds_py-0.18.1-cp310-none-win_amd64.whl", hash = "sha256:8352f48d511de5f973e4f2f9412736d7dea76c69faa6d36bcf885b50c758ab9a"}, + {file = "rpds_py-0.18.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:6b5ff7e1d63a8281654b5e2896d7f08799378e594f09cf3674e832ecaf396ce8"}, + {file = "rpds_py-0.18.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8927638a4d4137a289e41d0fd631551e89fa346d6dbcfc31ad627557d03ceb6d"}, + {file = "rpds_py-0.18.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:154bf5c93d79558b44e5b50cc354aa0459e518e83677791e6adb0b039b7aa6a7"}, + {file = "rpds_py-0.18.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:07f2139741e5deb2c5154a7b9629bc5aa48c766b643c1a6750d16f865a82c5fc"}, + {file = "rpds_py-0.18.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8c7672e9fba7425f79019db9945b16e308ed8bc89348c23d955c8c0540da0a07"}, + {file = "rpds_py-0.18.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:489bdfe1abd0406eba6b3bb4fdc87c7fa40f1031de073d0cfb744634cc8fa261"}, + {file = "rpds_py-0.18.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3c20f05e8e3d4fc76875fc9cb8cf24b90a63f5a1b4c5b9273f0e8225e169b100"}, + {file = "rpds_py-0.18.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:967342e045564cef76dfcf1edb700b1e20838d83b1aa02ab313e6a497cf923b8"}, + {file = "rpds_py-0.18.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2cc7c1a47f3a63282ab0f422d90ddac4aa3034e39fc66a559ab93041e6505da7"}, + {file = "rpds_py-0.18.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:f7afbfee1157e0f9376c00bb232e80a60e59ed716e3211a80cb8506550671e6e"}, + {file = "rpds_py-0.18.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9e6934d70dc50f9f8ea47081ceafdec09245fd9f6032669c3b45705dea096b88"}, + {file = "rpds_py-0.18.1-cp311-none-win32.whl", hash = "sha256:c69882964516dc143083d3795cb508e806b09fc3800fd0d4cddc1df6c36e76bb"}, + {file = "rpds_py-0.18.1-cp311-none-win_amd64.whl", hash = "sha256:70a838f7754483bcdc830444952fd89645569e7452e3226de4a613a4c1793fb2"}, + {file = "rpds_py-0.18.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:3dd3cd86e1db5aadd334e011eba4e29d37a104b403e8ca24dcd6703c68ca55b3"}, + {file = "rpds_py-0.18.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:05f3d615099bd9b13ecf2fc9cf2d839ad3f20239c678f461c753e93755d629ee"}, + {file = "rpds_py-0.18.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:35b2b771b13eee8729a5049c976197ff58a27a3829c018a04341bcf1ae409b2b"}, + {file = "rpds_py-0.18.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ee17cd26b97d537af8f33635ef38be873073d516fd425e80559f4585a7b90c43"}, + {file = "rpds_py-0.18.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b646bf655b135ccf4522ed43d6902af37d3f5dbcf0da66c769a2b3938b9d8184"}, + {file = "rpds_py-0.18.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:19ba472b9606c36716062c023afa2484d1e4220548751bda14f725a7de17b4f6"}, + {file = "rpds_py-0.18.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6e30ac5e329098903262dc5bdd7e2086e0256aa762cc8b744f9e7bf2a427d3f8"}, + {file = "rpds_py-0.18.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d58ad6317d188c43750cb76e9deacf6051d0f884d87dc6518e0280438648a9ac"}, + {file = "rpds_py-0.18.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e1735502458621921cee039c47318cb90b51d532c2766593be6207eec53e5c4c"}, + {file = "rpds_py-0.18.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:f5bab211605d91db0e2995a17b5c6ee5edec1270e46223e513eaa20da20076ac"}, + {file = "rpds_py-0.18.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:2fc24a329a717f9e2448f8cd1f960f9dac4e45b6224d60734edeb67499bab03a"}, + {file = "rpds_py-0.18.1-cp312-none-win32.whl", hash = "sha256:1805d5901779662d599d0e2e4159d8a82c0b05faa86ef9222bf974572286b2b6"}, + {file = "rpds_py-0.18.1-cp312-none-win_amd64.whl", hash = "sha256:720edcb916df872d80f80a1cc5ea9058300b97721efda8651efcd938a9c70a72"}, + {file = "rpds_py-0.18.1-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:c827576e2fa017a081346dce87d532a5310241648eb3700af9a571a6e9fc7e74"}, + {file = "rpds_py-0.18.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:aa3679e751408d75a0b4d8d26d6647b6d9326f5e35c00a7ccd82b78ef64f65f8"}, + {file = "rpds_py-0.18.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0abeee75434e2ee2d142d650d1e54ac1f8b01e6e6abdde8ffd6eeac6e9c38e20"}, + {file = "rpds_py-0.18.1-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ed402d6153c5d519a0faf1bb69898e97fb31613b49da27a84a13935ea9164dfc"}, + {file = "rpds_py-0.18.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:338dee44b0cef8b70fd2ef54b4e09bb1b97fc6c3a58fea5db6cc083fd9fc2724"}, + {file = "rpds_py-0.18.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7750569d9526199c5b97e5a9f8d96a13300950d910cf04a861d96f4273d5b104"}, + {file = "rpds_py-0.18.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:607345bd5912aacc0c5a63d45a1f73fef29e697884f7e861094e443187c02be5"}, + {file = "rpds_py-0.18.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:207c82978115baa1fd8d706d720b4a4d2b0913df1c78c85ba73fe6c5804505f0"}, + {file = "rpds_py-0.18.1-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:6d1e42d2735d437e7e80bab4d78eb2e459af48c0a46e686ea35f690b93db792d"}, + {file = "rpds_py-0.18.1-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:5463c47c08630007dc0fe99fb480ea4f34a89712410592380425a9b4e1611d8e"}, + {file = "rpds_py-0.18.1-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:06d218939e1bf2ca50e6b0ec700ffe755e5216a8230ab3e87c059ebb4ea06afc"}, + {file = "rpds_py-0.18.1-cp38-none-win32.whl", hash = "sha256:312fe69b4fe1ffbe76520a7676b1e5ac06ddf7826d764cc10265c3b53f96dbe9"}, + {file = "rpds_py-0.18.1-cp38-none-win_amd64.whl", hash = "sha256:9437ca26784120a279f3137ee080b0e717012c42921eb07861b412340f85bae2"}, + {file = "rpds_py-0.18.1-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:19e515b78c3fc1039dd7da0a33c28c3154458f947f4dc198d3c72db2b6b5dc93"}, + {file = "rpds_py-0.18.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a7b28c5b066bca9a4eb4e2f2663012debe680f097979d880657f00e1c30875a0"}, + {file = "rpds_py-0.18.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:673fdbbf668dd958eff750e500495ef3f611e2ecc209464f661bc82e9838991e"}, + {file = "rpds_py-0.18.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d960de62227635d2e61068f42a6cb6aae91a7fe00fca0e3aeed17667c8a34611"}, + {file = "rpds_py-0.18.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:352a88dc7892f1da66b6027af06a2e7e5d53fe05924cc2cfc56495b586a10b72"}, + {file = "rpds_py-0.18.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4e0ee01ad8260184db21468a6e1c37afa0529acc12c3a697ee498d3c2c4dcaf3"}, + {file = "rpds_py-0.18.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e4c39ad2f512b4041343ea3c7894339e4ca7839ac38ca83d68a832fc8b3748ab"}, + {file = "rpds_py-0.18.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:aaa71ee43a703c321906813bb252f69524f02aa05bf4eec85f0c41d5d62d0f4c"}, + {file = "rpds_py-0.18.1-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:6cd8098517c64a85e790657e7b1e509b9fe07487fd358e19431cb120f7d96338"}, + {file = "rpds_py-0.18.1-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:4adec039b8e2928983f885c53b7cc4cda8965b62b6596501a0308d2703f8af1b"}, + {file = "rpds_py-0.18.1-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:32b7daaa3e9389db3695964ce8e566e3413b0c43e3394c05e4b243a4cd7bef26"}, + {file = "rpds_py-0.18.1-cp39-none-win32.whl", hash = "sha256:2625f03b105328729f9450c8badda34d5243231eef6535f80064d57035738360"}, + {file = "rpds_py-0.18.1-cp39-none-win_amd64.whl", hash = "sha256:bf18932d0003c8c4d51a39f244231986ab23ee057d235a12b2684ea26a353590"}, + {file = "rpds_py-0.18.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:cbfbea39ba64f5e53ae2915de36f130588bba71245b418060ec3330ebf85678e"}, + {file = "rpds_py-0.18.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:a3d456ff2a6a4d2adcdf3c1c960a36f4fd2fec6e3b4902a42a384d17cf4e7a65"}, + {file = "rpds_py-0.18.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7700936ef9d006b7ef605dc53aa364da2de5a3aa65516a1f3ce73bf82ecfc7ae"}, + {file = "rpds_py-0.18.1-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:51584acc5916212e1bf45edd17f3a6b05fe0cbb40482d25e619f824dccb679de"}, + {file = "rpds_py-0.18.1-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:942695a206a58d2575033ff1e42b12b2aece98d6003c6bc739fbf33d1773b12f"}, + {file = "rpds_py-0.18.1-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b906b5f58892813e5ba5c6056d6a5ad08f358ba49f046d910ad992196ea61397"}, + {file = "rpds_py-0.18.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f6f8e3fecca256fefc91bb6765a693d96692459d7d4c644660a9fff32e517843"}, + {file = "rpds_py-0.18.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:7732770412bab81c5a9f6d20aeb60ae943a9b36dcd990d876a773526468e7163"}, + {file = "rpds_py-0.18.1-pp310-pypy310_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:bd1105b50ede37461c1d51b9698c4f4be6e13e69a908ab7751e3807985fc0346"}, + {file = "rpds_py-0.18.1-pp310-pypy310_pp73-musllinux_1_2_i686.whl", hash = "sha256:618916f5535784960f3ecf8111581f4ad31d347c3de66d02e728de460a46303c"}, + {file = "rpds_py-0.18.1-pp310-pypy310_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:17c6d2155e2423f7e79e3bb18151c686d40db42d8645e7977442170c360194d4"}, + {file = "rpds_py-0.18.1-pp38-pypy38_pp73-macosx_10_12_x86_64.whl", hash = "sha256:6c4c4c3f878df21faf5fac86eda32671c27889e13570645a9eea0a1abdd50922"}, + {file = "rpds_py-0.18.1-pp38-pypy38_pp73-macosx_11_0_arm64.whl", hash = "sha256:fab6ce90574645a0d6c58890e9bcaac8d94dff54fb51c69e5522a7358b80ab64"}, + {file = "rpds_py-0.18.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:531796fb842b53f2695e94dc338929e9f9dbf473b64710c28af5a160b2a8927d"}, + {file = "rpds_py-0.18.1-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:740884bc62a5e2bbb31e584f5d23b32320fd75d79f916f15a788d527a5e83644"}, + {file = "rpds_py-0.18.1-pp38-pypy38_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:998125738de0158f088aef3cb264a34251908dd2e5d9966774fdab7402edfab7"}, + {file = "rpds_py-0.18.1-pp38-pypy38_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e2be6e9dd4111d5b31ba3b74d17da54a8319d8168890fbaea4b9e5c3de630ae5"}, + {file = "rpds_py-0.18.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d0cee71bc618cd93716f3c1bf56653740d2d13ddbd47673efa8bf41435a60daa"}, + {file = "rpds_py-0.18.1-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2c3caec4ec5cd1d18e5dd6ae5194d24ed12785212a90b37f5f7f06b8bedd7139"}, + {file = "rpds_py-0.18.1-pp38-pypy38_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:27bba383e8c5231cd559affe169ca0b96ec78d39909ffd817f28b166d7ddd4d8"}, + {file = "rpds_py-0.18.1-pp38-pypy38_pp73-musllinux_1_2_i686.whl", hash = "sha256:a888e8bdb45916234b99da2d859566f1e8a1d2275a801bb8e4a9644e3c7e7909"}, + {file = "rpds_py-0.18.1-pp38-pypy38_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:6031b25fb1b06327b43d841f33842b383beba399884f8228a6bb3df3088485ff"}, + {file = "rpds_py-0.18.1-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:48c2faaa8adfacefcbfdb5f2e2e7bdad081e5ace8d182e5f4ade971f128e6bb3"}, + {file = "rpds_py-0.18.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:d85164315bd68c0806768dc6bb0429c6f95c354f87485ee3593c4f6b14def2bd"}, + {file = "rpds_py-0.18.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6afd80f6c79893cfc0574956f78a0add8c76e3696f2d6a15bca2c66c415cf2d4"}, + {file = "rpds_py-0.18.1-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fa242ac1ff583e4ec7771141606aafc92b361cd90a05c30d93e343a0c2d82a89"}, + {file = "rpds_py-0.18.1-pp39-pypy39_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d21be4770ff4e08698e1e8e0bce06edb6ea0626e7c8f560bc08222880aca6a6f"}, + {file = "rpds_py-0.18.1-pp39-pypy39_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5c45a639e93a0c5d4b788b2613bd637468edd62f8f95ebc6fcc303d58ab3f0a8"}, + {file = "rpds_py-0.18.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:910e71711d1055b2768181efa0a17537b2622afeb0424116619817007f8a2b10"}, + {file = "rpds_py-0.18.1-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b9bb1f182a97880f6078283b3505a707057c42bf55d8fca604f70dedfdc0772a"}, + {file = "rpds_py-0.18.1-pp39-pypy39_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:1d54f74f40b1f7aaa595a02ff42ef38ca654b1469bef7d52867da474243cc633"}, + {file = "rpds_py-0.18.1-pp39-pypy39_pp73-musllinux_1_2_i686.whl", hash = "sha256:8d2e182c9ee01135e11e9676e9a62dfad791a7a467738f06726872374a83db49"}, + {file = "rpds_py-0.18.1-pp39-pypy39_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:636a15acc588f70fda1661234761f9ed9ad79ebed3f2125d44be0862708b666e"}, + {file = "rpds_py-0.18.1.tar.gz", hash = "sha256:dc48b479d540770c811fbd1eb9ba2bb66951863e448efec2e2c102625328e92f"}, ] [[package]] name = "setuptools" -version = "68.2.2" +version = "69.5.1" description = "Easily download, build, install, upgrade, and uninstall Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "setuptools-68.2.2-py3-none-any.whl", hash = "sha256:b454a35605876da60632df1a60f736524eb73cc47bbc9f3f1ef1b644de74fd2a"}, - {file = "setuptools-68.2.2.tar.gz", hash = "sha256:4ac1475276d2f1c48684874089fefcd83bd7162ddaafb81fac866ba0db282a87"}, + {file = "setuptools-69.5.1-py3-none-any.whl", hash = "sha256:c636ac361bc47580504644275c9ad802c50415c7522212252c033bd15f301f32"}, + {file = "setuptools-69.5.1.tar.gz", hash = "sha256:6c1fccdac05a97e598fb0ae3bbed5904ccb317337a51139dcd51453611bbb987"}, ] [package.extras] -docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-hoverxref (<2)", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier"] -testing = ["build[virtualenv]", "filelock (>=3.4.0)", "flake8-2020", "ini2toml[lite] (>=0.9)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pip (>=19.1)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-perf", "pytest-ruff", "pytest-timeout", "pytest-xdist", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"] -testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "packaging (>=23.1)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"] +docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier"] +testing = ["build[virtualenv]", "filelock (>=3.4.0)", "importlib-metadata", "ini2toml[lite] (>=0.9)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "mypy (==1.9)", "packaging (>=23.2)", "pip (>=19.1)", "pytest (>=6,!=8.1.1)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-home (>=0.5)", "pytest-mypy", "pytest-perf", "pytest-ruff (>=0.2.1)", "pytest-timeout", "pytest-xdist (>=3)", "tomli", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"] +testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "packaging (>=23.2)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"] [[package]] name = "simple-websocket" @@ -2116,17 +2101,6 @@ wsproto = "*" [package.extras] docs = ["sphinx"] -[[package]] -name = "six" -version = "1.16.0" -description = "Python 2 and 3 compatibility utilities" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" -files = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] - [[package]] name = "tomli" version = "2.0.1" @@ -2140,45 +2114,45 @@ files = [ [[package]] name = "typing-extensions" -version = "4.8.0" +version = "4.11.0" description = "Backported and Experimental Type Hints for Python 3.8+" optional = false python-versions = ">=3.8" files = [ - {file = "typing_extensions-4.8.0-py3-none-any.whl", hash = "sha256:8f92fc8806f9a6b641eaa5318da32b44d401efaac0f6678c9bc448ba3605faa0"}, - {file = "typing_extensions-4.8.0.tar.gz", hash = "sha256:df8e4339e9cb77357558cbdbceca33c303714cf861d1eef15e1070055ae8b7ef"}, + {file = "typing_extensions-4.11.0-py3-none-any.whl", hash = "sha256:c1f94d72897edaf4ce775bb7558d5b79d8126906a14ea5ed1635921406c0387a"}, + {file = "typing_extensions-4.11.0.tar.gz", hash = "sha256:83f085bd5ca59c80295fc2a82ab5dac679cbe02b9f33f7d83af68e241bea51b0"}, ] [[package]] name = "urllib3" -version = "2.0.7" +version = "2.2.1" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "urllib3-2.0.7-py3-none-any.whl", hash = "sha256:fdb6d215c776278489906c2f8916e6e7d4f5a9b602ccbcfdf7f016fc8da0596e"}, - {file = "urllib3-2.0.7.tar.gz", hash = "sha256:c97dfde1f7bd43a71c8d2a58e369e9b2bf692d1334ea9f9cae55add7d0dd0f84"}, + {file = "urllib3-2.2.1-py3-none-any.whl", hash = "sha256:450b20ec296a467077128bff42b73080516e71b56ff59a60a02bef2232c4fa9d"}, + {file = "urllib3-2.2.1.tar.gz", hash = "sha256:d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19"}, ] [package.extras] brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"] -secure = ["certifi", "cryptography (>=1.9)", "idna (>=2.0.0)", "pyopenssl (>=17.1.0)", "urllib3-secure-extra"] +h2 = ["h2 (>=4,<5)"] socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] zstd = ["zstandard (>=0.18.0)"] [[package]] name = "websocket-client" -version = "1.6.4" +version = "1.8.0" description = "WebSocket client for Python with low level API options" optional = false python-versions = ">=3.8" files = [ - {file = "websocket-client-1.6.4.tar.gz", hash = "sha256:b3324019b3c28572086c4a319f91d1dcd44e6e11cd340232978c684a7650d0df"}, - {file = "websocket_client-1.6.4-py3-none-any.whl", hash = "sha256:084072e0a7f5f347ef2ac3d8698a5e0b4ffbfcab607628cadabc650fc9a83a24"}, + {file = "websocket_client-1.8.0-py3-none-any.whl", hash = "sha256:17b44cc997f5c498e809b22cdf2d9c7a9e71c02c8cc2b6c56e7c2d1239bfa526"}, + {file = "websocket_client-1.8.0.tar.gz", hash = "sha256:3239df9f44da632f96012472805d40a23281a991027ce11d2f45a6f24ac4c3da"}, ] [package.extras] -docs = ["Sphinx (>=6.0)", "sphinx-rtd-theme (>=1.1.0)"] +docs = ["Sphinx (>=6.0)", "myst-parser (>=2.0.0)", "sphinx-rtd-theme (>=1.1.0)"] optional = ["python-socks", "wsaccel"] test = ["websockets"] @@ -2265,13 +2239,13 @@ files = [ [[package]] name = "werkzeug" -version = "3.0.1" +version = "3.0.3" description = "The comprehensive WSGI web application library." optional = false python-versions = ">=3.8" files = [ - {file = "werkzeug-3.0.1-py3-none-any.whl", hash = "sha256:90a285dc0e42ad56b34e696398b8122ee4c681833fb35b8334a095d82c56da10"}, - {file = "werkzeug-3.0.1.tar.gz", hash = "sha256:507e811ecea72b18a404947aded4b3390e1db8f826b494d76550ef45bb3b1dcc"}, + {file = "werkzeug-3.0.3-py3-none-any.whl", hash = "sha256:fc9645dc43e03e4d630d23143a04a7f947a9a3b5727cd535fdfe155a17cc48c8"}, + {file = "werkzeug-3.0.3.tar.gz", hash = "sha256:097e5bfda9f0aba8da6b8545146def481d06aa7d3266e7448e2cccf67dd8bd18"}, ] [package.dependencies] @@ -2313,18 +2287,18 @@ url = "plugins/wss-proxy" [[package]] name = "zipp" -version = "3.17.0" +version = "3.18.1" description = "Backport of pathlib-compatible object wrapper for zip files" optional = false python-versions = ">=3.8" files = [ - {file = "zipp-3.17.0-py3-none-any.whl", hash = "sha256:0e923e726174922dce09c53c59ad483ff7bbb8e572e00c7f7c46b88556409f31"}, - {file = "zipp-3.17.0.tar.gz", hash = "sha256:84e64a1c28cf7e91ed2078bb8cc8c259cb19b76942096c8d7b84947690cabaf0"}, + {file = "zipp-3.18.1-py3-none-any.whl", hash = "sha256:206f5a15f2af3dbaee80769fb7dc6f249695e940acca08dfb2a4769fe61e538b"}, + {file = "zipp-3.18.1.tar.gz", hash = "sha256:2884ed22e7d8961de1c9a05142eb69a247f120291bc0206a00a7642f09b5b715"}, ] [package.extras] -docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy (>=0.9.1)", "pytest-ruff"] +docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] +testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"] [[package]] name = "zope-event" @@ -2346,47 +2320,47 @@ test = ["zope.testrunner"] [[package]] name = "zope-interface" -version = "6.1" +version = "6.3" description = "Interfaces for Python" optional = false python-versions = ">=3.7" files = [ - {file = "zope.interface-6.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:43b576c34ef0c1f5a4981163b551a8781896f2a37f71b8655fd20b5af0386abb"}, - {file = "zope.interface-6.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:67be3ca75012c6e9b109860820a8b6c9a84bfb036fbd1076246b98e56951ca92"}, - {file = "zope.interface-6.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9b9bc671626281f6045ad61d93a60f52fd5e8209b1610972cf0ef1bbe6d808e3"}, - {file = "zope.interface-6.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bbe81def9cf3e46f16ce01d9bfd8bea595e06505e51b7baf45115c77352675fd"}, - {file = "zope.interface-6.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6dc998f6de015723196a904045e5a2217f3590b62ea31990672e31fbc5370b41"}, - {file = "zope.interface-6.1-cp310-cp310-win_amd64.whl", hash = "sha256:239a4a08525c080ff833560171d23b249f7f4d17fcbf9316ef4159f44997616f"}, - {file = "zope.interface-6.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:9ffdaa5290422ac0f1688cb8adb1b94ca56cee3ad11f29f2ae301df8aecba7d1"}, - {file = "zope.interface-6.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:34c15ca9248f2e095ef2e93af2d633358c5f048c49fbfddf5fdfc47d5e263736"}, - {file = "zope.interface-6.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b012d023b4fb59183909b45d7f97fb493ef7a46d2838a5e716e3155081894605"}, - {file = "zope.interface-6.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:97806e9ca3651588c1baaebb8d0c5ee3db95430b612db354c199b57378312ee8"}, - {file = "zope.interface-6.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fddbab55a2473f1d3b8833ec6b7ac31e8211b0aa608df5ab09ce07f3727326de"}, - {file = "zope.interface-6.1-cp311-cp311-win_amd64.whl", hash = "sha256:a0da79117952a9a41253696ed3e8b560a425197d4e41634a23b1507efe3273f1"}, - {file = "zope.interface-6.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:e8bb9c990ca9027b4214fa543fd4025818dc95f8b7abce79d61dc8a2112b561a"}, - {file = "zope.interface-6.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b51b64432eed4c0744241e9ce5c70dcfecac866dff720e746d0a9c82f371dfa7"}, - {file = "zope.interface-6.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aa6fd016e9644406d0a61313e50348c706e911dca29736a3266fc9e28ec4ca6d"}, - {file = "zope.interface-6.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0c8cf55261e15590065039696607f6c9c1aeda700ceee40c70478552d323b3ff"}, - {file = "zope.interface-6.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e30506bcb03de8983f78884807e4fd95d8db6e65b69257eea05d13d519b83ac0"}, - {file = "zope.interface-6.1-cp312-cp312-win_amd64.whl", hash = "sha256:e33e86fd65f369f10608b08729c8f1c92ec7e0e485964670b4d2633a4812d36b"}, - {file = "zope.interface-6.1-cp37-cp37m-macosx_11_0_x86_64.whl", hash = "sha256:2f8d89721834524a813f37fa174bac074ec3d179858e4ad1b7efd4401f8ac45d"}, - {file = "zope.interface-6.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:13b7d0f2a67eb83c385880489dbb80145e9d344427b4262c49fbf2581677c11c"}, - {file = "zope.interface-6.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ef43ee91c193f827e49599e824385ec7c7f3cd152d74cb1dfe02cb135f264d83"}, - {file = "zope.interface-6.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e441e8b7d587af0414d25e8d05e27040d78581388eed4c54c30c0c91aad3a379"}, - {file = "zope.interface-6.1-cp37-cp37m-win_amd64.whl", hash = "sha256:f89b28772fc2562ed9ad871c865f5320ef761a7fcc188a935e21fe8b31a38ca9"}, - {file = "zope.interface-6.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:70d2cef1bf529bff41559be2de9d44d47b002f65e17f43c73ddefc92f32bf00f"}, - {file = "zope.interface-6.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:ad54ed57bdfa3254d23ae04a4b1ce405954969c1b0550cc2d1d2990e8b439de1"}, - {file = "zope.interface-6.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ef467d86d3cfde8b39ea1b35090208b0447caaabd38405420830f7fd85fbdd56"}, - {file = "zope.interface-6.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6af47f10cfc54c2ba2d825220f180cc1e2d4914d783d6fc0cd93d43d7bc1c78b"}, - {file = "zope.interface-6.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c9559138690e1bd4ea6cd0954d22d1e9251e8025ce9ede5d0af0ceae4a401e43"}, - {file = "zope.interface-6.1-cp38-cp38-win_amd64.whl", hash = "sha256:964a7af27379ff4357dad1256d9f215047e70e93009e532d36dcb8909036033d"}, - {file = "zope.interface-6.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:387545206c56b0315fbadb0431d5129c797f92dc59e276b3ce82db07ac1c6179"}, - {file = "zope.interface-6.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:57d0a8ce40ce440f96a2c77824ee94bf0d0925e6089df7366c2272ccefcb7941"}, - {file = "zope.interface-6.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7ebc4d34e7620c4f0da7bf162c81978fce0ea820e4fa1e8fc40ee763839805f3"}, - {file = "zope.interface-6.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5a804abc126b33824a44a7aa94f06cd211a18bbf31898ba04bd0924fbe9d282d"}, - {file = "zope.interface-6.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1f294a15f7723fc0d3b40701ca9b446133ec713eafc1cc6afa7b3d98666ee1ac"}, - {file = "zope.interface-6.1-cp39-cp39-win_amd64.whl", hash = "sha256:a41f87bb93b8048fe866fa9e3d0c51e27fe55149035dcf5f43da4b56732c0a40"}, - {file = "zope.interface-6.1.tar.gz", hash = "sha256:2fdc7ccbd6eb6b7df5353012fbed6c3c5d04ceaca0038f75e601060e95345309"}, + {file = "zope.interface-6.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2f32010ffb87759c6a3ad1c65ed4d2e38e51f6b430a1ca11cee901ec2b42e021"}, + {file = "zope.interface-6.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e78a183a3c2f555c2ad6aaa1ab572d1c435ba42f1dc3a7e8c82982306a19b785"}, + {file = "zope.interface-6.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:afa0491a9f154cf8519a02026dc85a416192f4cb1efbbf32db4a173ba28b289a"}, + {file = "zope.interface-6.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62e32f02b3f26204d9c02c3539c802afc3eefb19d601a0987836ed126efb1f21"}, + {file = "zope.interface-6.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c40df4aea777be321b7e68facb901bc67317e94b65d9ab20fb96e0eb3c0b60a1"}, + {file = "zope.interface-6.3-cp310-cp310-win_amd64.whl", hash = "sha256:46034be614d1f75f06e7dcfefba21d609b16b38c21fc912b01a99cb29e58febb"}, + {file = "zope.interface-6.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:600101f43a7582d5b9504a7c629a1185a849ce65e60fca0f6968dfc4b76b6d39"}, + {file = "zope.interface-6.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4d6b229f5e1a6375f206455cc0a63a8e502ed190fe7eb15e94a312dc69d40299"}, + {file = "zope.interface-6.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:10cde8dc6b2fd6a1d0b5ca4be820063e46ddba417ab82bcf55afe2227337b130"}, + {file = "zope.interface-6.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40aa8c8e964d47d713b226c5baf5f13cdf3a3169c7a2653163b17ff2e2334d10"}, + {file = "zope.interface-6.3-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d165d7774d558ea971cb867739fb334faf68fc4756a784e689e11efa3becd59e"}, + {file = "zope.interface-6.3-cp311-cp311-win_amd64.whl", hash = "sha256:69dedb790530c7ca5345899a1b4cb837cc53ba669051ea51e8c18f82f9389061"}, + {file = "zope.interface-6.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:8d407e0fd8015f6d5dfad481309638e1968d70e6644e0753f229154667dd6cd5"}, + {file = "zope.interface-6.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:72d5efecad16c619a97744a4f0b67ce1bcc88115aa82fcf1dc5be9bb403bcc0b"}, + {file = "zope.interface-6.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:567d54c06306f9c5b6826190628d66753b9f2b0422f4c02d7c6d2b97ebf0a24e"}, + {file = "zope.interface-6.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:483e118b1e075f1819b3c6ace082b9d7d3a6a5eb14b2b375f1b80a0868117920"}, + {file = "zope.interface-6.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bb78c12c1ad3a20c0d981a043d133299117b6854f2e14893b156979ed4e1d2c"}, + {file = "zope.interface-6.3-cp312-cp312-win_amd64.whl", hash = "sha256:ad4524289d8dbd6fb5aa17aedb18f5643e7d48358f42c007a5ee51a2afc2a7c5"}, + {file = "zope.interface-6.3-cp37-cp37m-macosx_11_0_x86_64.whl", hash = "sha256:a56fe1261230093bfeedc1c1a6cd6f3ec568f9b07f031c9a09f46b201f793a85"}, + {file = "zope.interface-6.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:014bb94fe6bf1786da1aa044eadf65bc6437bcb81c451592987e5be91e70a91e"}, + {file = "zope.interface-6.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:22e8a218e8e2d87d4d9342aa973b7915297a08efbebea5b25900c73e78ed468e"}, + {file = "zope.interface-6.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f95bebd0afe86b2adc074df29edb6848fc4d474ff24075e2c263d698774e108d"}, + {file = "zope.interface-6.3-cp37-cp37m-win_amd64.whl", hash = "sha256:d0e7321557c702bd92dac3c66a2f22b963155fdb4600133b6b29597f62b71b12"}, + {file = "zope.interface-6.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:187f7900b63845dcdef1be320a523dbbdba94d89cae570edc2781eb55f8c2f86"}, + {file = "zope.interface-6.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a058e6cf8d68a5a19cb5449f42a404f0d6c2778b897e6ce8fadda9cea308b1b0"}, + {file = "zope.interface-6.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e8fa0fb05083a1a4216b4b881fdefa71c5d9a106e9b094cd4399af6b52873e91"}, + {file = "zope.interface-6.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:26c9a37fb395a703e39b11b00b9e921c48f82b6e32cc5851ad5d0618cd8876b5"}, + {file = "zope.interface-6.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1b0c4c90e5eefca2c3e045d9f9ed9f1e2cdbe70eb906bff6b247e17119ad89a1"}, + {file = "zope.interface-6.3-cp38-cp38-win_amd64.whl", hash = "sha256:5683aa8f2639016fd2b421df44301f10820e28a9b96382a6e438e5c6427253af"}, + {file = "zope.interface-6.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:2c3cfb272bcb83650e6695d49ae0d14dd06dc694789a3d929f23758557a23d92"}, + {file = "zope.interface-6.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:01a0b3dd012f584afcf03ed814bce0fc40ed10e47396578621509ac031be98bf"}, + {file = "zope.interface-6.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4137025731e824eee8d263b20682b28a0bdc0508de9c11d6c6be54163e5b7c83"}, + {file = "zope.interface-6.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3c8731596198198746f7ce2a4487a0edcbc9ea5e5918f0ab23c4859bce56055c"}, + {file = "zope.interface-6.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf34840e102d1d0b2d39b1465918d90b312b1119552cebb61a242c42079817b9"}, + {file = "zope.interface-6.3-cp39-cp39-win_amd64.whl", hash = "sha256:a1adc14a2a9d5e95f76df625a9b39f4709267a483962a572e3f3001ef90ea6e6"}, + {file = "zope.interface-6.3.tar.gz", hash = "sha256:f83d6b4b22262d9a826c3bd4b2fbfafe1d0000f085ef8e44cd1328eea274ae6a"}, ] [package.dependencies]