From e70eeecfe341b74c3166a5aebced0d420e1fb8ba Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Fri, 9 Aug 2024 22:44:53 -0700 Subject: [PATCH] doc: Lock example values Changelog-Added: Test script generates all RPC documentation examples now. --- .gitignore | 2 + contrib/msggen/msggen/schema.json | 4258 ++++++----------- doc/schemas/lightning-addpsbtoutput.json | 16 +- doc/schemas/lightning-askrene-listlayers.json | 12 + doc/schemas/lightning-bkpr-channelsapy.json | 18 +- doc/schemas/lightning-bkpr-inspect.json | 39 +- .../lightning-bkpr-listaccountevents.json | 551 +-- doc/schemas/lightning-bkpr-listbalances.json | 18 +- doc/schemas/lightning-bkpr-listincome.json | 304 +- doc/schemas/lightning-check.json | 8 +- doc/schemas/lightning-checkmessage.json | 2 +- doc/schemas/lightning-checkrune.json | 4 +- doc/schemas/lightning-close.json | 12 +- doc/schemas/lightning-commando-listrunes.json | 8 +- doc/schemas/lightning-commando.json | 36 +- doc/schemas/lightning-connect.json | 20 +- doc/schemas/lightning-createinvoice.json | 8 +- doc/schemas/lightning-createonion.json | 40 +- doc/schemas/lightning-datastore.json | 49 +- doc/schemas/lightning-datastoreusage.json | 4 +- doc/schemas/lightning-decode.json | 16 +- doc/schemas/lightning-decodepay.json | 14 +- doc/schemas/lightning-deldatastore.json | 4 +- doc/schemas/lightning-delforward.json | 10 +- doc/schemas/lightning-delinvoice.json | 16 +- doc/schemas/lightning-delpay.json | 36 +- doc/schemas/lightning-dev-forget-channel.json | 10 +- .../lightning-disableinvoicerequest.json | 6 +- doc/schemas/lightning-disableoffer.json | 6 +- doc/schemas/lightning-disconnect.json | 4 +- doc/schemas/lightning-emergencyrecover.json | 4 +- doc/schemas/lightning-enableoffer.json | 6 +- doc/schemas/lightning-fetchinvoice.json | 8 +- doc/schemas/lightning-fundchannel.json | 24 +- doc/schemas/lightning-fundchannel_cancel.json | 4 +- .../lightning-fundchannel_complete.json | 12 +- doc/schemas/lightning-fundchannel_start.json | 12 +- doc/schemas/lightning-fundpsbt.json | 4 +- .../lightning-getemergencyrecoverdata.json | 4 +- doc/schemas/lightning-getinfo.json | 23 +- doc/schemas/lightning-getlog.json | 47 +- doc/schemas/lightning-getroute.json | 18 +- doc/schemas/lightning-invoice.json | 16 +- doc/schemas/lightning-invoicerequest.json | 8 +- doc/schemas/lightning-keysend.json | 34 +- doc/schemas/lightning-listchannels.json | 144 +- doc/schemas/lightning-listclosedchannels.json | 75 +- doc/schemas/lightning-listconfigs.json | 684 ++- doc/schemas/lightning-listdatastore.json | 20 +- doc/schemas/lightning-listforwards.json | 167 +- doc/schemas/lightning-listfunds.json | 66 +- doc/schemas/lightning-listhtlcs.json | 128 +- .../lightning-listinvoicerequests.json | 18 +- doc/schemas/lightning-listinvoices.json | 114 +- doc/schemas/lightning-listnodes.json | 42 +- doc/schemas/lightning-listoffers.json | 21 +- doc/schemas/lightning-listpays.json | 71 +- doc/schemas/lightning-listpeerchannels.json | 245 +- doc/schemas/lightning-listpeers.json | 33 +- doc/schemas/lightning-listsendpays.json | 131 +- doc/schemas/lightning-listtransactions.json | 125 +- doc/schemas/lightning-multifundchannel.json | 44 +- doc/schemas/lightning-multiwithdraw.json | 8 +- doc/schemas/lightning-offer.json | 8 +- doc/schemas/lightning-openchannel_abort.json | 4 +- doc/schemas/lightning-openchannel_bump.json | 26 +- doc/schemas/lightning-openchannel_init.json | 16 +- doc/schemas/lightning-openchannel_signed.json | 18 +- doc/schemas/lightning-openchannel_update.json | 16 +- doc/schemas/lightning-pay.json | 20 +- doc/schemas/lightning-ping.json | 4 +- doc/schemas/lightning-plugin.json | 20 + doc/schemas/lightning-preapproveinvoice.json | 4 +- doc/schemas/lightning-preapprovekeysend.json | 4 +- doc/schemas/lightning-reckless.json | 101 +- doc/schemas/lightning-recoverchannel.json | 24 +- doc/schemas/lightning-renepay.json | 24 +- doc/schemas/lightning-renepaystatus.json | 12 +- doc/schemas/lightning-reserveinputs.json | 10 +- doc/schemas/lightning-sendcustommsg.json | 2 +- doc/schemas/lightning-sendinvoice.json | 12 +- doc/schemas/lightning-sendonion.json | 10 +- doc/schemas/lightning-sendpay.json | 16 +- doc/schemas/lightning-sendpsbt.json | 6 +- doc/schemas/lightning-setchannel.json | 12 +- doc/schemas/lightning-setpsbtversion.json | 6 +- doc/schemas/lightning-showrunes.json | 16 +- doc/schemas/lightning-signinvoice.json | 8 +- doc/schemas/lightning-signpsbt.json | 8 +- doc/schemas/lightning-splice_init.json | 12 +- doc/schemas/lightning-splice_signed.json | 18 +- doc/schemas/lightning-splice_update.json | 12 +- doc/schemas/lightning-sql-template.json | 52 +- doc/schemas/lightning-staticbackup.json | 12 +- doc/schemas/lightning-txdiscard.json | 12 +- doc/schemas/lightning-txprepare.json | 16 +- doc/schemas/lightning-txsend.json | 16 +- doc/schemas/lightning-unreserveinputs.json | 4 +- doc/schemas/lightning-upgradewallet.json | 6 +- doc/schemas/lightning-utxopsbt.json | 12 +- doc/schemas/lightning-wait.json | 4 +- doc/schemas/lightning-waitanyinvoice.json | 20 +- doc/schemas/lightning-waitblockheight.json | 2 +- doc/schemas/lightning-waitinvoice.json | 20 +- doc/schemas/lightning-waitsendpay.json | 12 +- doc/schemas/lightning-withdraw.json | 18 +- tests/autogenerate-rpc-examples.py | 1621 +++++-- 107 files changed, 4245 insertions(+), 5922 deletions(-) diff --git a/.gitignore b/.gitignore index b7f2de9530f4..0009b687febb 100644 --- a/.gitignore +++ b/.gitignore @@ -69,6 +69,8 @@ tests/node_pb2.py tests/node_pb2_grpc.py tests/primitives_pb2.py tests/primitives_pb2_grpc.py +tests/autogenerate-examples-status.log +tests/autogenerate-examples.json # Ignore unrelated stuff .DS_Store diff --git a/contrib/msggen/msggen/schema.json b/contrib/msggen/msggen/schema.json index d0f25cdab27c..13bc2f9dec1e 100644 --- a/contrib/msggen/msggen/schema.json +++ b/contrib/msggen/msggen/schema.json @@ -155,9 +155,9 @@ } }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAA==", + "psbt": "cHNidP8BAgpsbt1001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "estimated_added_weight": 172, - "outnum": 0 + "outnum": 1 } }, { @@ -166,11 +166,11 @@ "method": "addpsbtoutput", "params": [ 3333333, - "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=" + "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=", + "psbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", "estimated_added_weight": 172, "outnum": 1 } @@ -181,14 +181,14 @@ "method": "addpsbtoutput", "params": { "satoshi": 3333333, - "initialpsbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=", - "destination": "bcrt1p52spc7t99z0wu444elxahxzkcu86gakzvnfp7ugudf567am2uspsuneuq9" + "initialpsbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", + "destination": "bcrt1p5201010101010101010101010101010101010101010101010101010101" } }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEDAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQABAwjV3DIAAAAAAAEEIlEgoqAceWUonu5Wtc/N25hWxw+kdsJk0h9xHGppr3dq5AMA", + "psbt": "cHNidP8BAgpsbt300303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303", "estimated_added_weight": 172, - "outnum": 2 + "outnum": 1 } } ] @@ -867,6 +867,18 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-listlayers#1", + "method": "askrene-listlayers", + "params": {} + }, + "response": { + "layers": [] + } + } ] }, "lightning-askrene-listreservations.json": { @@ -2166,9 +2178,9 @@ "response": { "channels_apy": [ { - "account": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", + "account": "channelid0120000120000120000120000120000120000120000120000120000", "routed_out_msat": 1000000, - "routed_in_msat": 510081208, + "routed_in_msat": 510481208, "lease_fee_paid_msat": 0, "lease_fee_earned_msat": 0, "pushed_out_msat": 0, @@ -2178,15 +2190,15 @@ "fees_out_msat": 0, "fees_in_msat": 106, "utilization_out": "0.1000%", - "utilization_in": "51.0081%", - "utilization_in_initial": "51.0081%", + "utilization_in": "51.0481%", + "utilization_in_initial": "51.0481%", "apy_out": "0.0000%", "apy_in": "0.0252%", "apy_in_initial": "0.0252%", "apy_total": "0.0252%" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "routed_out_msat": 510181102, "routed_in_msat": 0, "lease_fee_paid_msat": 0, @@ -2207,7 +2219,7 @@ "apy_total_initial": "0.0505%" }, { - "account": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", + "account": "channelid0250000250000250000250000250000250000250000250000250000", "routed_out_msat": 500000000, "routed_in_msat": 0, "lease_fee_paid_msat": 0, @@ -2230,7 +2242,7 @@ { "account": "net", "routed_out_msat": 1011181102, - "routed_in_msat": 510081208, + "routed_in_msat": 510481208, "lease_fee_paid_msat": 0, "lease_fee_earned_msat": 0, "pushed_out_msat": 0, @@ -2241,8 +2253,8 @@ "fees_in_msat": 106, "utilization_out": "33.7060%", "utilization_out_initial": "50.5591%", - "utilization_in": "17.0027%", - "utilization_in_initial": "51.0081%", + "utilization_in": "17.0160%", + "utilization_in_initial": "51.0481%", "apy_out": "0.0084%", "apy_out_initial": "0.0126%", "apy_in": "0.0084%", @@ -2574,50 +2586,23 @@ "id": "example:bkpr-inspect#1", "method": "bkpr-inspect", "params": { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2" + "account": "channelid0230200230200230200230200230200230200230200230200230200" } }, "response": { "txs": [ { - "txid": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483", - "blockheight": 111, - "fees_paid_msat": 4927000, + "txid": "channeltxid230200230200230200230200230200230200230200230200230200", + "blockheight": 123, + "fees_paid_msat": 5020000, "outputs": [ { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "outnum": 0, + "account": "channelid0230200230200230200230200230200230200230200230200230200", + "outnum": 1, "output_tag": "channel_open", "output_value_msat": 1000000000, "credit_msat": 1000000000, - "currency": "bcrt", - "spend_tag": "channel_close", - "spending_txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", - "debit_msat": 489818898 - } - ] - }, - { - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", - "blockheight": 121, - "fees_paid_msat": 2895898, - "outputs": [ - { - "account": "wallet", - "outnum": 0, - "output_tag": "deposit", - "output_value_msat": 486923000, - "credit_msat": 486923000, "currency": "bcrt" - }, - { - "account": "external", - "outnum": 1, - "output_tag": "to_them", - "output_value_msat": 510181000, - "credit_msat": 510181000, - "currency": "bcrt", - "originating_account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2" } ] } @@ -2899,416 +2884,22 @@ "request": { "id": "example:bkpr-listaccountevents#1", "method": "bkpr-listaccountevents", - "params": {} + "params": [ + "channelid0230200230200230200230200230200230200230200230200230200" + ] }, "response": { "events": [ { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 200000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0", - "timestamp": 1722303635, - "blockheight": 105 - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "chain", - "tag": "channel_open", - "credit_msat": 0, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483:0", - "timestamp": 1722303653, - "blockheight": 111 - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 2000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "b19a249c64f2c952b4b9a400bdec159b56af2af63939c9ecb8fd937f344a7056:0", - "timestamp": 1722303656, - "blockheight": 112 - }, - { - "account": "wallet", - "type": "chain", - "tag": "withdrawal", - "credit_msat": 0, - "debit_msat": 2000000000, - "currency": "bcrt", - "outpoint": "b19a249c64f2c952b4b9a400bdec159b56af2af63939c9ecb8fd937f344a7056:0", - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2", - "timestamp": 1722303659, - "blockheight": 113 - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 995073000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2:0", - "timestamp": 1722303659, - "blockheight": 113 - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "chain", - "tag": "channel_open", - "credit_msat": 1000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2:1", - "timestamp": 1722303659, - "blockheight": 113 - }, - { - "account": "wallet", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 1004927000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" - }, - { - "account": "wallet", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 1004927000, - "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 4927000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 500000000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670", - "part_id": 0, - "timestamp": 1722303673, - "description": "description send some sats l2 to l3", - "is_rebalance": false - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "channel", - "tag": "invoice", - "credit_msat": 0, - "debit_msat": 500000000, - "currency": "bcrt", - "payment_id": "365522e0e6c2fe84987153324cc9fac02986855d849bbd650426ba6064463166", - "part_id": 0, - "timestamp": 1722303675, - "description": "description send some sats l3 to l4", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", - "part_id": 0, - "timestamp": 1722303677, - "description": "Invoice description l31", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", - "part_id": 0, - "timestamp": 1722303679, - "description": "keysend", - "is_rebalance": false - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "channel", - "tag": "routed", - "credit_msat": 0, - "debit_msat": 10000000, - "fees_msat": 101, - "currency": "bcrt", - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", - "part_id": 0, - "timestamp": 1722303682, - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "routed", - "credit_msat": 10000101, - "debit_msat": 0, - "fees_msat": 101, - "currency": "bcrt", - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", - "part_id": 0, - "timestamp": 1722303682, - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "part_id": 0, - "timestamp": 1722303686, - "description": "keysend", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 50000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "part_id": 0, - "timestamp": 1722303688, - "description": "l32 description", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 100000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68", - "part_id": 0, - "timestamp": 1722303689, - "description": "l33 description", - "is_rebalance": false - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "channel", - "tag": "routed", - "credit_msat": 0, - "debit_msat": 1000, - "fees_msat": 1, - "currency": "bcrt", - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "part_id": 0, - "timestamp": 1722303692, - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "routed", - "credit_msat": 1001, - "debit_msat": 0, - "fees_msat": 1, - "currency": "bcrt", - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "part_id": 0, - "timestamp": 1722303692, - "is_rebalance": false - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 510181000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305:1", - "timestamp": 1722303693, - "blockheight": 121 - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "chain", - "tag": "channel_close", - "credit_msat": 0, - "debit_msat": 489999000, - "currency": "bcrt", - "outpoint": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2:1", - "txid": "2849a5c5cd182ebec02d18ba6348bb01e70a544d0ce9aa8b5533fb09d24c969e", - "timestamp": 1722303693, - "blockheight": 121 - }, - { - "account": "external", - "origin": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "chain", - "tag": "to_them", - "credit_msat": 510001000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "2849a5c5cd182ebec02d18ba6348bb01e70a544d0ce9aa8b5533fb09d24c969e:1", - "timestamp": 1722303693, - "blockheight": 121 - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "chain", - "tag": "channel_close", - "credit_msat": 0, - "debit_msat": 510181102, - "currency": "bcrt", - "outpoint": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483:0", - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", - "timestamp": 1722303693, - "blockheight": 121 - }, - { - "account": "external", - "origin": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "chain", - "tag": "to_them", - "credit_msat": 486923000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305:0", - "timestamp": 1722303693, - "blockheight": 121 - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 102, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303693, - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305" - }, - { - "account": "ecabe6d86abdd57565b3fb7e7c5d724e60ca1a07633951769b5dbfa48dc884b3", + "account": "channelid0230200230200230200230200230200230200230200230200230200", "type": "chain", "tag": "channel_open", "credit_msat": 0, "debit_msat": 0, "currency": "bcrt", - "outpoint": "f2f4e67dbf2791a3b57dd986418156b116b452c5fc27b077da7c529db82f06f5:1", - "timestamp": 1722303702, + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1", + "timestamp": 1738500000, "blockheight": 123 - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 2000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "4c4b46acfd0c9d4b8393a2c3fbc27cb70bfa9270bf47ade3348c4acd949b770b:0", - "timestamp": 1722303705, - "blockheight": 124 - }, - { - "account": "wallet", - "type": "chain", - "tag": "withdrawal", - "credit_msat": 0, - "debit_msat": 510181000, - "currency": "bcrt", - "outpoint": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305:1", - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee", - "timestamp": 1722303708, - "blockheight": 125 - }, - { - "account": "wallet", - "type": "chain", - "tag": "withdrawal", - "credit_msat": 0, - "debit_msat": 2000000000, - "currency": "bcrt", - "outpoint": "4c4b46acfd0c9d4b8393a2c3fbc27cb70bfa9270bf47ade3348c4acd949b770b:0", - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee", - "timestamp": 1722303708, - "blockheight": 125 - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 1503221000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee:0", - "timestamp": 1722303708, - "blockheight": 125 - }, - { - "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", - "type": "chain", - "tag": "channel_open", - "credit_msat": 1000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee:1", - "timestamp": 1722303708, - "blockheight": 125 - }, - { - "account": "wallet", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 1006960000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" - }, - { - "account": "wallet", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 1006960000, - "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" - }, - { - "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 6960000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" } ] } @@ -3317,148 +2908,43 @@ "request": { "id": "example:bkpr-listaccountevents#2", "method": "bkpr-listaccountevents", - "params": [ - "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2" - ] + "params": {} }, "response": { "events": [ { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "external", + "origin": "channelid0340000340000340000340000340000340000340000340000340000", "type": "chain", - "tag": "channel_open", - "credit_msat": 0, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483:0", - "timestamp": 1722303653, - "blockheight": 111 - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 500000000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670", - "part_id": 0, - "timestamp": 1722303673, - "description": "description send some sats l2 to l3", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", - "part_id": 0, - "timestamp": 1722303677, - "description": "Invoice description l31", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", - "part_id": 0, - "timestamp": 1722303679, - "description": "keysend", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "routed", - "credit_msat": 10000101, - "debit_msat": 0, - "fees_msat": 101, - "currency": "bcrt", - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", - "part_id": 0, - "timestamp": 1722303682, - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "part_id": 0, - "timestamp": 1722303686, - "description": "keysend", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 50000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "part_id": 0, - "timestamp": 1722303688, - "description": "l32 description", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 100000, + "tag": "to_them", + "credit_msat": 510001000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68", - "part_id": 0, - "timestamp": 1722303689, - "description": "l33 description", - "is_rebalance": false + "outpoint": "txidbk0202020202020202020202020202020202020202020202020202020202:1", + "timestamp": 1738520000, + "blockheight": 142 }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "routed", - "credit_msat": 1001, + "account": "wallet", + "type": "chain", + "tag": "deposit", + "credit_msat": 200000000000, "debit_msat": 0, - "fees_msat": 1, "currency": "bcrt", - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "part_id": 0, - "timestamp": 1722303692, - "is_rebalance": false + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1", + "timestamp": 1738510000, + "blockheight": 141 }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "chain", - "tag": "channel_close", + "tag": "channel_open", "credit_msat": 0, - "debit_msat": 510181102, - "currency": "bcrt", - "outpoint": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483:0", - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", - "timestamp": 1722303693, - "blockheight": 121 - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 102, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303693, - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305" + "outpoint": "txidbk0303030303030303030303030303030303030303030303030303030303:1", + "timestamp": 1738530000, + "blockheight": 143 } ] } @@ -3615,14 +3101,14 @@ "account": "wallet", "balances": [ { - "balance_msat": 202498294000, + "balance_msat": 202050000000, "coin_type": "bcrt" } ] }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "account": "channelid0230000230000230000230000230000230000230000230000230000", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "we_opened": false, "account_closed": true, "account_resolved": true, @@ -3635,8 +3121,8 @@ ] }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "peer_id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "account": "channelid0340000340000340000340000340000340000340000340000340000", + "peer_id": "nodeid040404040404040404040404040404040404040404040404040404040404", "we_opened": true, "account_closed": true, "account_resolved": false, @@ -3648,8 +3134,8 @@ ] }, { - "account": "ecabe6d86abdd57565b3fb7e7c5d724e60ca1a07633951769b5dbfa48dc884b3", - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "account": "channelid0230200230200230200230200230200230200230200230200230200", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "we_opened": false, "account_closed": false, "account_resolved": false, @@ -3661,8 +3147,8 @@ ] }, { - "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", - "peer_id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "account": "channelid0340200340200340200340200340200340200340200340200340200", + "peer_id": "nodeid040404040404040404040404040404040404040404040404040404040404", "we_opened": true, "account_closed": false, "account_resolved": false, @@ -3814,7 +3300,9 @@ "request": { "id": "example:bkpr-listincome#1", "method": "bkpr-listincome", - "params": {} + "params": { + "consolidate_fees": false + } }, "response": { "income_events": [ @@ -3824,8 +3312,8 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303635, - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0" + "timestamp": 1738500000, + "outpoint": "txidbk0000000000000000000000000000000000000000000000000000000000:1" }, { "account": "wallet", @@ -3833,132 +3321,26 @@ "credit_msat": 2000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303656, - "outpoint": "b19a249c64f2c952b4b9a400bdec159b56af2af63939c9ecb8fd937f344a7056:0" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 500000000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303673, - "description": "description send some sats l2 to l3", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "invoice", - "credit_msat": 0, - "debit_msat": 500000000, - "currency": "bcrt", - "timestamp": 1722303675, - "description": "description send some sats l3 to l4", - "payment_id": "365522e0e6c2fe84987153324cc9fac02986855d849bbd650426ba6064463166" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303677, - "description": "Invoice description l31", - "payment_id": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303679, - "description": "keysend", - "payment_id": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "routed", - "credit_msat": 101, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303682, - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303686, - "description": "keysend", - "payment_id": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 50000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303688, - "description": "l32 description", - "payment_id": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 100000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303689, - "description": "l33 description", - "payment_id": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68" + "timestamp": 1738510000, + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1" }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "routed", - "credit_msat": 1, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303692, - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 102, - "currency": "bcrt", - "timestamp": 1722303693, - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "wallet", "tag": "onchain_fee", "credit_msat": 0, - "debit_msat": 4927000, + "debit_msat": 1004927000, "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" + "timestamp": 1738520000, + "txid": "channeltxid340000340000340000340000340000340000340000340000340000" }, { "account": "wallet", - "tag": "deposit", - "credit_msat": 2000000000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303705, - "outpoint": "4c4b46acfd0c9d4b8393a2c3fbc27cb70bfa9270bf47ade3348c4acd949b770b:0" - }, - { - "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 6960000, + "credit_msat": 1004927000, + "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "timestamp": 1738530000, + "txid": "channeltxid340000340000340000340000340000340000340000340000340000" } ] } @@ -3967,9 +3349,7 @@ "request": { "id": "example:bkpr-listincome#2", "method": "bkpr-listincome", - "params": { - "consolidate_fees": false - } + "params": {} }, "response": { "income_events": [ @@ -3979,177 +3359,27 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303635, - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0" + "timestamp": 1738510000, + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1" }, { - "account": "wallet", - "tag": "deposit", - "credit_msat": 2000000000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303656, - "outpoint": "b19a249c64f2c952b4b9a400bdec159b56af2af63939c9ecb8fd937f344a7056:0" - }, - { - "account": "wallet", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 1004927000, - "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" - }, - { - "account": "wallet", - "tag": "onchain_fee", - "credit_msat": 1004927000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 4927000, - "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 500000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303673, + "timestamp": 1738520000, "description": "description send some sats l2 to l3", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "invoice", - "credit_msat": 0, - "debit_msat": 500000000, - "currency": "bcrt", - "timestamp": 1722303675, - "description": "description send some sats l3 to l4", - "payment_id": "365522e0e6c2fe84987153324cc9fac02986855d849bbd650426ba6064463166" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303677, - "description": "Invoice description l31", - "payment_id": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303679, - "description": "keysend", - "payment_id": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b" + "payment_id": "paymentid0000202020202020202020202020202020202020202020202020202" }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "routed", - "credit_msat": 101, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303682, - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303686, - "description": "keysend", - "payment_id": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 50000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303688, - "description": "l32 description", - "payment_id": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 100000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303689, - "description": "l33 description", - "payment_id": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "routed", - "credit_msat": 1, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303692, - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 102, - "currency": "bcrt", - "timestamp": 1722303693, - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305" - }, - { - "account": "wallet", - "tag": "deposit", - "credit_msat": 2000000000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303705, - "outpoint": "4c4b46acfd0c9d4b8393a2c3fbc27cb70bfa9270bf47ade3348c4acd949b770b:0" - }, - { - "account": "wallet", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 1006960000, - "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" - }, - { - "account": "wallet", - "tag": "onchain_fee", - "credit_msat": 1006960000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" - }, - { - "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", + "account": "channelid0340200340200340200340200340200340200340200340200340200", "tag": "onchain_fee", "credit_msat": 0, "debit_msat": 6960000, "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "timestamp": 1738530000, + "txid": "channeltxid340200340200340200340200340200340200340200340200340200" } ] } @@ -4348,15 +3578,15 @@ "route": [ { "amount_msat": 1011, - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "delay": 20, - "channel": "111x1x0" + "channel": "123x1x1" }, { "amount_msat": 1000, - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", "delay": 10, - "channel": "113x1x1" + "channel": "130x1x1" } ], "payment_hash": "0000000000000000000000000000000000000000000000000000000000000000" @@ -4496,7 +3726,7 @@ } }, "response": { - "pubkey": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "pubkey": "nodeid010101010101010101010101010101010101010101010101010101010101", "verified": true } } @@ -4593,7 +3823,7 @@ "id": "example:checkrune#1", "method": "checkrune", "params": { - "nodeid": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "nodeid": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "_RWaZZRI7wAYU2hqlFBmYgC_dFczcpAdI_9O87YbDpg9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl", "method": "listpeers", "params": {} @@ -4608,7 +3838,7 @@ "id": "example:checkrune#2", "method": "checkrune", "params": { - "nodeid": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "nodeid": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "QUJEYMLGgiaJvMDv_MhR2hiMKIBTbq-PrL-KxcIlirQ9MiZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", "method": "pay", "params": { @@ -4784,13 +4014,13 @@ "id": "example:close#1", "method": "close", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "unilateraltimeout": 1 } }, "response": { - "tx": "020000000001018304b0bbf2ea662c053e0377df4652059bb107eb5312989471c2ef7e51f023cd0000000000ffffffff020b6e07000000000022512085d72025e78fd08bb61119f0987ab0041f50561ada6e130c645343db8c44c2afe5c8070000000000225120a7583f0c421663b8ca76fa579018b40682ef8553d73fd061cd8f216ecdced6a304004730440220369e36994b74172c67b738891a22a8f7cf3ad3d6051a1c08b641277c2b129134022060b96175b5046a0e8814c03076da885e4546f11e72188582473f0ca901001a0b0147304402206733aaa116b30474dfcdcc2ce48fbc6f222ed0eae7ac6e4c95da6a6f2a2105a502200ab85229e9981e0364ab1bef38e9a581067a9c7d9fe30487e34fd8e13eff56320147522102d595ae92b3544c3250fb772f214ad8d4c51425033740a5bcc357190add6d7e7a2102d6063d022691b2490ab454dee73a57c6ff5d308352b461ece69f3c284f2c241252ae00000000", - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", + "tx": "02000000000101cls00101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "txid": "txid010101010101010101010101010101010101010101010101010101010101", "type": "mutual" } }, @@ -4799,13 +4029,13 @@ "id": "example:close#2", "method": "close", "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", "destination": "bcrt1qwvp8fktkxp07v0fp9jyqe7yl6rcgyu585a7pzr" } }, "response": { - "tx": "02000000000101e23fcc9e6306ce636b203217b22409bf9bab2211f9f432de781dedb6377dab5a0100000000ffffffff02746f070000000000160014730274d976305fe63d212c880cf89fd0f082728731c80700000000002251202bdd81f95d64ed2cc37d2eae725de428c91bff072d7503d87446970eedc63030040047304402205834de4c5c994a50f3ba5406534254b68e35836f98b4d5371b78225a79d087dd02201f54e1ae045e9a33dd3dd5a2b589903f305af5ead515a8e55feb2447b090415c0147304402202dd2efc52e5b4a78cbc1cf5664a0a3e3a5e67e16b0de37fc6818dbb838b6be17022062a071e81ecaec4808a44b049e091fa60b5fcf9e7f7bbdf85bc564a0a467e13601475221021c29746e4136ddff456483df3980c2d0d5f31c93ef5ded564f7294a10d7414aa2103c47b1b2afcfd68c7b86c0976adb9a4f0835bc78242fced745d78433497a867d652ae00000000", - "txid": "2849a5c5cd182ebec02d18ba6348bb01e70a544d0ce9aa8b5533fb09d24c969e", + "tx": "02000000000101cls10202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", + "txid": "txid020202020202020202020202020202020202020202020202020202020202", "type": "mutual" } } @@ -5226,7 +4456,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -5259,13 +4489,13 @@ "alternatives": [ { "fieldname": "pnameid", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "pnameid equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" }, { "fieldname": "parr0", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "parr0 equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -5283,7 +4513,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -5798,15 +5028,15 @@ "id": "example:commando#1", "method": "commando", "params": { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "_RWaZZRI7wAYU2hqlFBmYgC_dFczcpAdI_9O87YbDpg9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl", "method": "getinfo", "params": {} } }, "response": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "alias": "SILENTARTIST-190-g5fd2f9c-modded", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", + "alias": "SILENTARTIST", "color": "022d22", "num_peers": 3, "num_pending_channels": 0, @@ -5817,17 +5047,17 @@ { "type": "ipv4", "address": "127.0.0.1", - "port": 41219 + "port": 19735 } ], - "version": "v24.05-190-g5fd2f9c-modded", + "version": "v24.08", "blockheight": 130, "network": "regtest", "fees_collected_msat": 106, "lightning-dir": "/tmp/.lightning/regtest", "our_features": { - "init": "08a0802a8a59a1", - "node": "88a0802a8a59a1", + "init": "08a0882a8a59a1", + "node": "88a0882a8a59a1", "channel": "", "invoice": "02000002024100" } @@ -5838,24 +5068,24 @@ "id": "example:commando#2", "method": "commando", "params": { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "RXgu0DD_i0wSPEZkIDyZIWL0bSAGdhvJ_GHOQdTg04A9MSZpZF4wMjY2ZTQ1OThkMWQzYzQxNWY1NyZtZXRob2Q9bGlzdHBlZXJz", "method": "listpeers", "params": [ - "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d" + "nodeid030303030303030303030303030303030303030303030303030303030303" ] } }, "response": { "peers": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "connected": true, "num_channels": 2, "netaddr": [ - "127.0.0.1:34785" + "127.0.0.1:19736" ], - "features": "08a0802a8a59a1" + "features": "08a0882a8a59a1" } ] } @@ -5865,23 +5095,23 @@ "id": "example:commando#3", "method": "commando", "params": { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "QUJEYMLGgiaJvMDv_MhR2hiMKIBTbq-PrL-KxcIlirQ9MiZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", "method": "pay", "params": { - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", + "bolt11": "lnbcrt100n1pnt2bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000", "amount_msat": 9900 } } }, "response": { - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", - "created_at": 1722303715.008808, + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", + "payment_hash": "paymenthashcmdpycp10cp10cp10cp10cp10cp10cp10cp10cp10cp10cp10cp10", + "created_at": 1738000000, "parts": 1, "amount_msat": 9900, "amount_sent_msat": 9900, - "payment_preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", + "payment_preimage": "paymentpreimagec010101010101010101010101010101010101010101010101", "status": "complete" } } @@ -6078,19 +5308,19 @@ "id": "example:connect#1", "method": "connect", "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "host": "localhost", - "port": 41219 + "port": 19735 } }, "response": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "features": "08a0802a8a59a1", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", + "features": "08a0882a8a59a1", "direction": "out", "address": { "type": "ipv4", "address": "127.0.0.1", - "port": 41219 + "port": 19735 } } }, @@ -6099,19 +5329,19 @@ "id": "example:connect#2", "method": "connect", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "host": "localhost", - "port": 34785 + "port": 19736 } }, "response": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "features": "08a0802a8a59a1", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "features": "08a0882a8a59a1", "direction": "out", "address": { "type": "ipv4", "address": "127.0.0.1", - "port": 34785 + "port": 19736 } } } @@ -6329,19 +5559,19 @@ "id": "example:createinvoice#1", "method": "createinvoice", "params": { - "invstring": "lnbcrt1u1pn2s38zsp5j9w8t9p2y6an5se63n3vkpp8c20vdsthtn78sv5t2lmt57l742wqpp5wtxkappzcsrlkmgfs6g0zyct0hkhashh7hsaxz7e65slq9fkx7fsdqcdscnxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq4sjk5smmjpgu6v8k7xc7q5evf370kdvt8s8t6x9he6jh9sgagxyqw8l7ctdldf8vgyz3pdfwr4hn9r6u5xvd48w2f2atu752zwqsulspwpxne4", + "invstring": "lnbcrt100n1pnt2bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000", "label": "lbl_l13", "preimage": "0101010101010101010101010101010101010101010101010101010101010101" } }, "response": { "label": "lbl_l13", - "bolt11": "lnbcrt1u1pn2s38zsp5j9w8t9p2y6an5se63n3vkpp8c20vdsthtn78sv5t2lmt57l742wqpp5wtxkappzcsrlkmgfs6g0zyct0hkhashh7hsaxz7e65slq9fkx7fsdqcdscnxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqcjq9fq26ph2skcsm65xjwnw3crgygpampszjcvqs8aw2zf3jzcxqg4dh58fm8mxul29vh5urpyjkll9m4dq3807xcmq2q9yvgd5qt7qp695qvu", - "payment_hash": "72cd6e8422c407fb6d098690f1130b7ded7ec2f7f5e1d30bd9d521f015363793", + "bolt11": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", + "payment_hash": "paymenthashinvl0210021002100210021002100210021002100210021002100", "amount_msat": 100000, "status": "unpaid", "description": "l13 description", - "expires_at": 1722908514, + "expires_at": 1739000000, "created_index": 7 } } @@ -6457,26 +5687,26 @@ "hops": [ { "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payload": "11020203e9040187060800006f0000010000" + "payload": "payload010101010101010101010101010" }, { "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payload": "11020203e804018106080000710000010001" + "payload": "payload020202020202020202020202020" }, { "pubkey": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payload": "2b020203e80401810822810248b37c63b882804cf746c5b1d7595d26713d89a443ec5808a18ed2327a1903e8" + "payload": "payload030303030303030303030303030" } ], - "assocdata": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" + "assocdata": "assocdata0010101010101010101010101010101010101010101010101010101" } }, "response": { - "onion": "0003ccc1f8876af4810e23bd4cccd8f2f38ee5dc117f527c783fefa4e632f857c98d588d2e3150d16b78f9458777502e4829b490e8a2d560841eb0c2368311bf9bb4e8ded0356badafd915839409ad60866c24dd7580b468c14097575565ca95425b9f44211d9ad0305ddba2391a70892ac8c9fd7c3b67d0fe22faf5a0b6905ee2e22278fe224e89ea72c3fcc598b35afaa255123e61ae7a697703e3bb8aec4d36ea487df6ec27942aadff0527d178c897e75f1ee284995196b5ead963ee9d0df798c8265c00c5c73daac917d298cc17e5d813189321d914c45ef30170c4d617dae12bb3a760d1665705e61bb6c52789e15623cefc68d96b86a6f17159c4a86bb196c9f5e40a0744d08d6da0cfd587717b6d0d074d42ac0893fa6ae1497c84824f1d27670d4e201af5e9e5a3493b603cfc209bb0ee41b573ca647c5b9882272c972cd18f19fd895e8995097d86882a473f4d26118a7ed656c5ea04c2a183b05cc0191d07fab5e78edab4ab8ec58e05e03f32d150449c0c8e3505e46ae58e77c87616144873f72f4571b00ccf8e71bcdf33a7d32345aecb660970fa73c4844ab157aa322f140f5d47b66a0590273728ddb5b8a7f3577cff5a268935b93fe598d6df4413c67c45efa9461abaf3294070a484418aa28c03ac20d08856eb0c74dfca851e8ed110bdcacb2a2fb90954b04e99986fde0678846a709120b5d1eeab9cde8d9f27d77448f4591e00bf30d7580703e6c189c658746cf7a7cc1430ce41f84244612b438c3d895333848e5f55e99b2a9d28860863c11aaa8e3ef01ead7ba1545156c356424c33aeeaa2f1e2c290d1d8dd52cd7b8116159025aba26db6fb81ad7f9cc4554c6f9f13d16defe38918b32d62a0516521934a0009a8d37c9a84689bfd8fc1f0beceb92701dca11175e0099d7541698956ba5d93efff996f538ee47717ae6c5cda98111bc28c822e99cf8957b707de270f447b6e52d30bcf9b8a9befd8663bc54612b543d0e167da67e2f295207b70857d0a7cae8932d905db2f48c873dec20aeafa07e15fa98a088e529424c8b404f03ba0ee78a6639fde5cd37dee42877ff6489ce1de5a8992cae25dd20a6521955c19129fdcc0ea157913373bf47a8018a1dd825a2f8e26194d5008161360ae9b25fc701b2accbe88eb47eee6a50b7ee6d6e169e3905e03ca72e00eb6a51b7ed3d27501715428368662b822e2262749d3e7d3243c4fd3d825b3e72bebdeebf6e035f1ad6634523ab5dc0335611c19c9936d006f2e4cd8818eb4f8b4857c8f35d18a4891e35ff91e3b54b384398574d673fcc8da50b22b8f485a41223c97e3b8ee5b8e5ff9c00a2cbfe7360509d3fee9248b5eaa81bb83da3be45dfa8cbbbf5c52ba8749c9d6261d4239feea1e7ce85ad40ad0c66bbeb1c6898626ae4e710a66f9c39a5ee94581353b46e070cfcff9a14e3f9a6108d55bb92852eb3a50e89b1e45d31b760f2a4e263a6a876ad638b123ffee7a2b0b48e16175e3eb92bfaad4dbe0af8b2bc1c15fec5a9d92d3970c2ffab2ab8fa2c9de0bd276680a4284707cd8543a97bca2394e9514236129f1c50a932f7e9bfb98c2aaa6ffc9a4a30641061246de6edf0f711a8d25d59af42ee4445b22ce2f832f3ece52c18ca62d90c590729e04c47accaec95b556ee2541c84843c54a116f5cc45bc251a8023b695f0bf79c43a97bece8a761d387a466821984fb5ec438af20d14cebb7f0026988c81b5a1b895ef94df61aa509e53083b4306c42132b5ce302fd5a2fbb1cee30a7078ccaa3bdccf781b8c9d6ae016a5f8e5cb13f7ac1f3fd0d74a182c9abea67d346f0dfcfc211aaa7ff47196465398fce3e6e0f3b73a944a7f57a90cc6a8f1bfcd385f8312e23af6f508f4f8a976d750660ac3d63630555a3a2e7fe158a982aaf0278d9f8819e5cb", + "onion": "onion10101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010", "shared_secrets": [ - "7d856ece68ddf5a89b909f888bc0c37207800a6cdba89db12a7cf7e7c26e5209", - "d1dfacfabba80f07461b890fc660440a105460b687c21bf78f7e6050c2889a98", - "46ff1895fde58206d5b437d39bb149995456ede6b9af75c0135210efbff23333" + "sharedsecret1010101010101010101010101010101010101010101010101010", + "sharedsecret1111111111111111111111111111111111111111111111111111", + "sharedsecret1212121212121212121212121212121212121212121212121212" ] } }, @@ -6484,31 +5714,31 @@ "request": { "id": "example:createonion#2", "method": "createonion", - "params": [ - [ + "params": { + "hops": [ { "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payload": "11020203e9040187060800006f0000010000" + "payload": "payload010101010101010101010101010" }, { "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payload": "11020203e804018106080000710000010001" + "payload": "payload020202020202020202020202020" }, { "pubkey": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payload": "2b020203e80401810822810248b37c63b882804cf746c5b1d7595d26713d89a443ec5808a18ed2327a1903e8" + "payload": "payload030303030303030303030303030" } ], - "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "4141414141414141414141414141414141414141414141414141414141414141" - ] + "assocdata": "assocdata0010101010101010101010101010101010101010101010101010101", + "session_key": "4141414141414141414141414141414141414141414141414141414141414141" + } }, "response": { - "onion": "0002eec7245d6b7d2ccb30380bfbe2a3648cd7a942653f5aa340edcea1f2836866191c78fd992bdb6323814526c8ea3ab57e22cd7739942f3a3f117d1191ed07d90599edc15c1d83a85b3f00350f4ec0f4b78894d38499e802a15843122723857ebddb629cf308d485de6bdbef80209059e3409ee47154e1b7e8f20d7ce02826c734601240c31ea9fa2c0caea8677b0db9e98835e762cb32e42da32f60bd000fe44350e8e87b69d83363c41d8d22f1639e8701901d74b64bf51f1c21cdc785b54dc5a6ba39fc75f956b60a372f6421a84f6001b294487baf1bb049b7bd901c5854c0999a82095874b02da90021a685f7c77f4b724a3d27489c091807b32bcdfb2c68f69b50c0b43c78288c333dbb007874f36fcf224fbc2ed89690f64a62b5ecfe6275750eb1a5575f689ca6d59c9a570689372db120cf6a29177caaace5ac671a3607d37a3048af18d1d736ac8a4dde8efc4884f8eab23cdc8cb15170471ee7b416b5cf089dee8ab8ac3eea6700a6040839c1e86f6d2b5acf9c7bac856cae96e9d1b7142f91ac4818cf0007a23100ae621470ac2552116f30948f21602237d12d29f58ca73f10f05b38f7b4b728fcfd8aafc1a82502aae3081c4bc8a77771aef16247bcf26d8569140441c405a3c21a649a8439797f45e7c37a2025318f4c88e3eba454fd4cc37e9978b59fa7b1e41af450523713fdad8070c7abdeea299474c99b2bde737e8c8ad79cb9fdd70a935ad29504d185bf100a339d203cd929030454a6450132255fea11ba0c6a520fa7cc3b8638f8032a61c492f7f9d1ec591a851f25df9238945ae467126b64019f21a71a2d3ef46cdd7b61773ad632dc77e0bda7d06b493efe940d9b975ebb85c423a83d24966f5e2ae2ec9c3b2257cc21a4989dd016d688865ba5245667c302e408dc56ffdf4282ad834f0c5af1ce49b3997fe397faf6874cac24ae346b4e72e468506c0e724efe6f805e0fd115de39b6fa29d05e11bbe2ec27548517f93ebd7b977b13237ab9c40ff5766f7263ea1f2eabba460600cd7da082fcf8d0a7bd37054abfd6040f886dde48cf600612b5b73a44026e79d46336de73f2ea5fbfc9603ccd89f6954e5093b6bfe556e6f67deb0878128049186f7ac6ef461a56c2bb4f24a9679fb386e06052c3da2f367f14bc41ec191f5b0b7b3ccad1f2cc58c863c49055c889b8b04b6b6cbaec50d0d103d4ea0da75952a730b07cea0da43914b5ab3f30b5104d9a75eb003da0b5b97bf9eb9081194cc5b50362041a972841bdafde31909929237ed5b94c88dd05126cdb3fd25add0c777c2ad021e1a0e7140d6c4c2005cb353a7a6a747ee75467c052f55faa485cbcf3758eafba7a8ef00d1481cc0f05af539116f443cb02a7b30a3de899dc66cb0781ccccf5c8d93b34be0665d11cbca55cd7a424b958124edf1289c7f4fc19c1be8fc7a861ce47c43a641bafdb195e1c74a1fbf69dbd518013f3dbf2860818b5a3e6f1dd36a5546bfd416e9714dec29818ecd1aeeb29c319b407c497621248d232680417486698a3e1262f03a8bc6441d1de40ae351dae4527a8efe25fc68a3f1571aa556edd6bfb9db7caba4d2c02bab003c43055f5d3ebf961735c3b1f4cd3e0a96038697a95cceac08c0aff084450cf571f81c95d468826aa4292997ccfeba32db77c4c22a9d3caa0a37a8a961ac2f2c8a6965687143bc93c620503839fd7bd7fc2e6d9c966586b713f824b8e9d3de55cb1b81f9204b92dfaa066920c0910e62e59650e904e05b94bde3e467d45719d6a3b85a71c8ff1dcca5a5f497928db5f64c55aad93513e87f4f0c93a6fa5a9afe929cf8223ea509f584913844044aa23a4afa4bc0ad975f4904aab5d77b5e51511460a3b7a982d3b0adcf3fd2ffc2494d16add2825a929fc7c4f0c97159e6fa6aba8569433", + "onion": "onion20202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020", "shared_secrets": [ - "2d7581974cde41b42da1d0a3147704aae5a71e8987fa30dc920c8cdf784b661d", - "bb599b824ce9e123c8cb27cd50a996e5035b8ae903356dcbff224496aab3a891", - "7bc4f97c2d18d5372ef572334e31590ec36b33220d7a71fa4e0fe841174eaccb" + "sharedsecret2020202020202020202020202020202020202020202020202020", + "sharedsecret2121212121212121212121212121212121212121212121212121", + "sharedsecret2222222222222222222222222222222222222222222222222222" ] } } @@ -7019,51 +6249,32 @@ "request": { "id": "example:datastore#1", "method": "datastore", - "params": { - "key": "somekey", - "hex": "61", - "mode": "create-or-append" - } - }, - "response": { - "key": [ - "somekey" - ], - "generation": 0, - "hex": "61", - "string": "a" - } - }, - { - "request": { - "id": "example:datastore#2", - "method": "datastore", "params": { "key": [ - "test", - "name" + "employee", + "index" ], - "string": "saving data to the store", + "string": "saving employee keys to the store", "mode": "must-create" } }, "response": { "key": [ - "test", - "name" + "employee", + "index" ], "generation": 0, - "hex": "736176696e67206461746120746f207468652073746f7265", - "string": "saving data to the store" + "hex": "736176696e6720656d706c6f796565206b65797320746f207468652073746f7265", + "string": "saving employee keys to the store" } }, { "request": { - "id": "example:datastore#3", + "id": "example:datastore#2", "method": "datastore", "params": { "key": "otherkey", - "string": "foo", + "string": "other", "mode": "must-create" } }, @@ -7072,17 +6283,17 @@ "otherkey" ], "generation": 0, - "hex": "666f6f", - "string": "foo" + "hex": "6f74686572", + "string": "other" } }, { "request": { - "id": "example:datastore#4", + "id": "example:datastore#3", "method": "datastore", "params": { "key": "otherkey", - "string": "bar", + "string": " key: text to be appended to the otherkey", "mode": "must-append", "generation": 0 } @@ -7092,8 +6303,8 @@ "otherkey" ], "generation": 1, - "hex": "666f6f626172", - "string": "foobar" + "hex": "6f74686572206b65793a207465787420746f20626520617070656e64656420746f20746865206f746865726b6579", + "string": "other key: text to be appended to the otherkey" } } ] @@ -7183,7 +6394,7 @@ "response": { "datastoreusage": { "key": "[]", - "total_bytes": 55 + "total_bytes": 142 } } }, @@ -7216,7 +6427,7 @@ "response": { "datastoreusage": { "key": "[otherkey]", - "total_bytes": 14 + "total_bytes": 54 } } } @@ -9592,33 +8803,33 @@ "id": "example:decode#2", "method": "decode", "params": [ - "lnbcrt2u1pn2s3xxsp5cpcdj2cy5wpd2nphp2evrp9kqymxf9434zftkmdd6dlgmy8cu78qpp58yq5qf3h0694xwymzjs5e8eejce83vjmxv6cpwqv8cs9e05dxe4qdqcdserygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq9wlpxf8ur0q798646w94tduf6wfkaw7m0ecmxepgatd4utvsyvcy0pku9t8m39rlsjzhe8x53mup5jkn0f84clfj3ctc6qj09t35wxspycpup2" + "lnbcrt100n1pnt2bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000" ] }, "response": { "type": "bolt11 invoice", "currency": "bcrt", - "created_at": 1722303686, + "created_at": 1738000000, "expiry": 604800, - "payee": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "payee": "nodeid020202020202020202020202020202020202020202020202020202020202", "amount_msat": 200000, "description": "l22 description", "min_final_cltv_expiry": 5, - "payment_secret": "c070d92b04a382d54c370ab2c184b601366496b1a892bb6dadd37e8d90f8e78e", + "payment_secret": "paymentsecretinvl00220002200022000220002200022000220002200022000", "features": "02024100", "routes": [ [ { - "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "111x1x0", + "pubkey": "nodeid030303030303030303030303030303030303030303030303030303030303", + "short_channel_id": "111x1x1", "fee_base_msat": 1, "fee_proportional_millionths": 10, "cltv_expiry_delta": 6 } ] ], - "payment_hash": "39014026377e8b53389b14a14c9f39963278b25b333580b80c3e205cbe8d366a", - "signature": "304402202bbe1324fc1bc1e29f55d38b55b789d3936ebbdb7e71b36428eadb5e2d90233002204786dc2acfb8947f84857c9cd48ef81a4ad37a4f5c7d328e178d024f2ae3471a", + "payment_hash": "paymenthashinvl0220022002200220022002200220022002200220022002200", + "signature": "dcde30c4bb50bed221009d010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "valid": true } } @@ -9892,23 +9103,23 @@ "id": "example:decodepay#1", "method": "decodepay", "params": { - "bolt11": "lnbcrt100n1pn2s3xxsp5s4wvy67lduz0tpxzmw0x0m8z5krfn6ppeu3a9t559tcdxquqwjfqpp5r0zx30ded4lpxp7vrdxqenmwr9rqftn93dcymvmuaxpu8y5zxunqdqcdscnzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqyk0lnqhsl07405jsqzyyaheu3dhxdv6s498ex97yvacs04gf6carplepnh5drlse8spy8nluz4uwj78h47ez6hak9md2s8mtg6yy5tcqt8yfsj" + "bolt11": "lnbcrt100n1pnt2bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000" } }, "response": { "currency": "bcrt", - "created_at": 1722303686, + "created_at": 1738000000, "expiry": 604800, - "payee": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "payee": "nodeid010101010101010101010101010101010101010101010101010101010101", "amount_msat": 10000, "description": "l11 description", "min_final_cltv_expiry": 5, - "payment_secret": "855cc26bdf6f04f584c2db9e67ece2a58699e821cf23d2ae942af0d303807492", + "payment_secret": "paymentsecretinvl00110001100011000110001100011000110001100011000", "features": "02024100", "routes": [ [ { - "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "pubkey": "nodeid020202020202020202020202020202020202020202020202020202020202", "short_channel_id": "109x1x1", "fee_base_msat": 1, "fee_proportional_millionths": 10, @@ -9916,8 +9127,8 @@ } ] ], - "payment_hash": "1bc468bdb96d7e1307cc1b4c0ccf6e194604ae658b704db37ce983c392823726", - "signature": "30440220259ff982f0fbfd57d25000884edf3c8b6e66b350a94f9317c4677107d509d63a022030ff219de8d1fe193c0243cffc1578e978f7afb22d5fb62edaa81f6b46884a2f" + "payment_hash": "paymenthashinvl0110011001100110011001100110011001100110011001100", + "signature": "dcdepay30c4bb50bed209d020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" } } ] @@ -10050,8 +9261,8 @@ "otherkey" ], "generation": 1, - "hex": "666f6f626172", - "string": "foobar" + "hex": "6f74686572206b65793a207465787420746f20626520617070656e64656420746f20746865206f746865726b6579", + "string": "other key: text to be appended to the otherkey" } } ] @@ -10134,11 +9345,11 @@ "request": { "id": "example:delforward#2", "method": "delforward", - "params": [ - "109x1x1", - 19, - "failed" - ] + "params": { + "in_channel": "109x1x1", + "in_htlc_id": 19, + "status": "failed" + } }, "response": {} } @@ -10447,12 +9658,12 @@ }, "response": { "label": "lbl_l36", - "bolt11": "lnbcrt500u1pn2s3fwsp5e6nltgzk3yqn5033r6z2q32pzduys3zs5dtzc5cjs60ppcgytrsqpp5ykhhcxzcqeng2gfggmsdja3x8h0qmkl35lw9z7n99pfkg8w0s8asdqcdsenvgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqwn7uwmy3x8u9c4ea0ka0yp3qvs0w9m7459g65kalm553vusctq8kseaph7tav4ryjfghnhu0ggjhhkrqmafarqkdsrzsk8stcvdmpmcqwfsajc", - "payment_hash": "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "bolt11": "lnbcrt222n1pnt3005720bolt113000101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "payment_hash": "paymenthashdelinv10101010101010101010101010101010101010101010101", "amount_msat": 50000000, "status": "unpaid", "description": "l36 description", - "expires_at": 1722908590, + "expires_at": 1739000000, "created_index": 9 } }, @@ -10468,15 +9679,15 @@ }, "response": { "label": "lbl_l37", - "bolt11": "lnbcrt500u1pn2s3fwsp5g96a3t3kn2we3ulrepd8eg4nw900wc324r06zlpr8py7p4zyftrspp5ggs9vzev5gcgthdysjrk0pcjgl3r5fwy4zgw6m48kk9nwx4h9slqdqcdsenwgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqwkmgxwugmtjvf9cu324h87x5ux3cwa6glefyfxvergy3mw8gwtnzg05mrf69yz0dafk4n7u7asaxh2nx5jsylwvqttzxmr9krpc9rlsquhqkt4", - "payment_hash": "4220560b2ca23085dda4848767871247e23a25c4a890ed6ea7b58b371ab72c3e", + "bolt11": "lnbcrt222n1pnt3005720bolt113000101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "payment_hash": "paymenthashdelinv20202020202020202020202020202020202020202020202", "amount_msat": 50000000, "status": "paid", "pay_index": 9, "amount_received_msat": 50000000, - "paid_at": 1722303802, - "payment_preimage": "e876ca5ae4ed9897178b2b3a17997256ad669335eb9201e05e3c97ffb83c634b", - "expires_at": 1722908590, + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagedelinv01010101010101010101010101010101010101010101", + "expires_at": 1739000000, "created_index": 10, "updated_index": 9 } @@ -10697,7 +9908,7 @@ "id": "example:delpay#1", "method": "delpay", "params": { - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "status": "complete" } }, @@ -10706,17 +9917,17 @@ { "created_index": 1, "id": 1, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "groupid": 1, "updated_index": 1, - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", "amount_msat": 500000000, "amount_sent_msat": 500000000, - "created_at": 1722303670, - "completed_at": 1722303671, + "created_at": 1738000000, + "completed_at": 1738500000, "status": "complete", - "payment_preimage": "bed4140e1db302720d7f9547dc9127d45b115080447cce7e23cfd00b60991831", - "bolt11": "lnbcrt5m1pn2s39ksp53sknyy2mxxurt4y0wqgp730z0cnm0vz3zmzth8p79xsrtmg5llxspp5dp94v59nm6c99jf7lc07zmnhqw6kyujx3mkdav7643dczgtdedfqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqdz9cftkxe6kcqfddyrvr7j57ulsfxxxkgkjyhr3k77n8v59mzs5rmuexz9lxusyhhehlemd9ujclgahln8e0n8y86stc7u8uys6mjqgqerm6q4" + "payment_preimage": "paymentpreimgdp1010101010101010101010101010101010101010101010101", + "bolt11": "lnbcrt222n1pnt3005720bolt114000101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" } ] } @@ -10726,7 +9937,7 @@ "id": "example:delpay#2", "method": "delpay", "params": [ - "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "paymenthashdelpay20202020202020202020202020202020202020202020202", "failed" ] }, @@ -10735,16 +9946,16 @@ { "created_index": 20, "id": 20, - "payment_hash": "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "payment_hash": "paymenthashdelinv10101010101010101010101010101010101010101010101", "groupid": 1, "updated_index": 19, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 50000000, "amount_sent_msat": 50000501, - "created_at": 1722303803, - "completed_at": 1722303806, + "created_at": 1738000000, + "completed_at": 1738500000, "status": "failed", - "bolt11": "lnbcrt500u1pn2s3fwsp5e6nltgzk3yqn5033r6z2q32pzduys3zs5dtzc5cjs60ppcgytrsqpp5ykhhcxzcqeng2gfggmsdja3x8h0qmkl35lw9z7n99pfkg8w0s8asdqcdsenvgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqwn7uwmy3x8u9c4ea0ka0yp3qvs0w9m7459g65kalm553vusctq8kseaph7tav4ryjfghnhu0ggjhhkrqmafarqkdsrzsk8stcvdmpmcqwfsajc" + "bolt11": "lnbcrt222n1pnt3005720bolt113000101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" } ] } @@ -10754,7 +9965,7 @@ "id": "example:delpay#3", "method": "delpay", "params": { - "payment_hash": "647252f7e45fce7bb964523206874f40f58fbb7b208bc08967caa0e2404990c9", + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", "status": "failed", "groupid": 1, "partid": 2 @@ -10765,15 +9976,15 @@ { "created_index": 17, "id": 17, - "payment_hash": "647252f7e45fce7bb964523206874f40f58fbb7b208bc08967caa0e2404990c9", + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", "groupid": 1, "updated_index": 16, "partid": 2, - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "destination": "nodeid040404040404040404040404040404040404040404040404040404040404", "amount_msat": 1000000, "amount_sent_msat": 1000000, - "created_at": 1722303798, - "completed_at": 1722303799, + "created_at": 1738000000, + "completed_at": 1738500000, "status": "failed" } ] @@ -10945,13 +10156,13 @@ "id": "example:dev-forget-channel#1", "method": "dev-forget-channel", "params": { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e" + "id": "nodeid050505050505050505050505050505050505050505050505050505050505" } }, "response": { "forced": false, "funding_unspent": false, - "funding_txid": "c40c9d52aaac47f76c67163a2efc005df189b36b855b0ad209da7d0d066358b1" + "funding_txid": "fundingtxid00101010101010101010101010101010101010101010101010101" } }, { @@ -10962,15 +10173,15 @@ "id": "example:dev-forget-channel#2", "method": "dev-forget-channel", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "111x1x0", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "short_channel_id": "111x1x1", "force": true } }, "response": { "forced": true, "funding_unspent": false, - "funding_txid": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483" + "funding_txid": "fundingtxid00202020202020202020202020202020202020202020202020202" } } ] @@ -11070,14 +10281,14 @@ "id": "example:disableinvoicerequest#1", "method": "disableinvoicerequest", "params": { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9" + "invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202" } }, "response": { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202", "active": false, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", + "bolt12": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000", "used": false } } @@ -11178,14 +10389,14 @@ "id": "example:disableoffer#1", "method": "disableoffer", "params": { - "offer_id": "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24" + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000" } }, "response": { - "offer_id": "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24", + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000", "active": false, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv0gfqq2zp8kven9wgs8gmeqg35hxctzd3j3vggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vs", + "bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000", "used": false } } @@ -11244,7 +10455,7 @@ "id": "example:disconnect#1", "method": "disconnect", "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", "force": false } }, @@ -11255,7 +10466,7 @@ "id": "example:disconnect#2", "method": "disconnect", "params": { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", + "id": "nodeid050505050505050505050505050505050505050505050505050505050505", "force": true } }, @@ -11322,9 +10533,9 @@ }, "response": { "stubs": [ + "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9", "e13472d6512413eb1bf03b9a0bb391d0e4152fd337fa6d1014e3de5e131918d9", - "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", - "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9" + "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f" ] } } @@ -11429,14 +10640,14 @@ "id": "example:enableoffer#1", "method": "enableoffer", "params": { - "offer_id": "713a16ccd4eb10438bdcfbc2c8276be301020dd9d489c530773ba64f3b33307d" + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000" } }, "response": { - "offer_id": "053a5c566fbea2681a5ff9c05a913da23e45b95d09ef5bd25d7d408f23da7084", + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqvqcdgq2z9pk7enxv4jjqen0wgs8yatnw3ujz83qkc6rvp4j28rt3dtrn32zkvdy7efhnlrpr5rp5geqxs783wtlj550qs8czzku4nk3pqp6m593qxgunzuqcwkmgqkmp6ty0wyvjcqdguv3pnpukedwn6cr87m89t74h3auyaeg89xkvgzpac70z3m9rn5xzu28c", + "bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000", "used": false } } @@ -12123,12 +11334,12 @@ "id": "example:fetchinvoice#1", "method": "fetchinvoice", "params": { - "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqgn3qzs2ge5hx6pqwdskcefpzcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "offer": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "payer_note": "Thanks for the fish!" } }, "response": { - "invoice": "lni1qqg9g04gczk9ntk4gsjg3aptwykk2q3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssq38zq9q53nfwd5zqumpd3jjz93pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84sggztuesttnr6atmya7afycpsvcg0wnzprn58n54lfhf2ragp0jq0e04j9z5dpsku6mnypnx7u3qw35x2grxd9eksgdqnqpz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336kgr6euj6p39a209zw5kpkftk7h9te69vlmjg0arceagpaajague0zsszqk96htpgqn2wsznaas0zfdtf8v97ryz29jrn7rwgs5687ghgq5jusqr99dtx4jdj9nqpep5zxmynegrg6e7rm2l53ur8043h2yqzldyl5vh08h8ssaeq5jrvw9y24kztlwvc4nwagsuqqqqqqqqqqqqqqq9qqqqqqqqqqqqq8fykt06c5sqqqqqpfqyv65yfedgyqrp2s7qpxpjse8q8796qcrr5xwgfkqjue3urd6rs2rt2f68tk0vl2szyugtqggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vlqsy2n7vmpn67ltzrj70znp70sk4m530j5vceq6jhk97h7ttzn09sh8m9gecarrt27v2tux8z6rr06sj9h60r05p4vhkhzsp0xf9ea4jgg", + "invoice": "lni1qqg0qe01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "changes": {} } }, @@ -12137,13 +11348,13 @@ "id": "example:fetchinvoice#2", "method": "fetchinvoice", "params": { - "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv85ysq2qepk7enxv4j3gqg2zcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "offer": "lno1qgsq000bolt220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000", "amount_msat": 2000000, "quantity": 2 } }, "response": { - "invoice": "lni1qqg86u6jfl660zfuk22sexem37r7xq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqc0gfqq5pjrdanxvet9zsqs593pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84yqc7sjq9vqgztqssxq2dwgnpqyhz3j68zx5cts28t6aqfgq937wsgvsmfncau3uhz8t05zvqytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82eq2rdjuqaychg3jndvsjrlu6y08aeuh4ytw6f6ak5n24p5n8zmsz2sqgrg3rg89hqfh6n7dfr0fugvq20ehecd3ezc438l6uh4r8epaakn4lsqv4qgr3ks4yxngyflq339lza456xt8uly085umq3gwql3qyfge0ec03dezeg8xulz33ntlj8yd7dcra9564zrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s3894qsfwwvj3szk4yplg4fkw68nwzlwyc23457qx6v7xe38znuha72km6a2qv0gfq9syypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgz2rxjcsxs6s3lnngq9xeqn9pzy53n50p4ulcdvkx8dye7h8xgxpvjyg928m2txk2knl0zzfl7j82c6lq7xqlx83ey7z4aux9pjp4sp7", + "invoice": "lni1qqg0qe02020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", "changes": {} } } @@ -12393,15 +11604,15 @@ "id": "example:fundchannel#1", "method": "fundchannel", "params": { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", + "id": "nodeid050505050505050505050505050505050505050505050505050505050505", "amount": 1000000, "announce": true } }, "response": { - "tx": "02000000000101a4f6a433b1c2625323c18bc25f880c3e7960722d9ca353d7ff5c2a2132d56a380000000000fdffffff0240420f0000000000220020b41521751a8eb257315f73a531763071cc39b7cece470f630fd5149fe7b7057a816cdc0b00000000225120a5410daebf4fc3cba618a840af497fbec4c3a084534f2b7b6a7d30bf35f8f566024730440220700ee63053ba1fea998685e721016c15cf7809fd77698560230457e122566f220220181aaa01f472ec575edc532bc612c749e7a3829f5616fc3289fd4dc7d96e98d8012102c8a8f25ed135cd671c88bd4e407bb3746678cfacbcf65ce89f8efc2aa0abe53596000000", - "txid": "8326851788c6da23bc883c960affc6126f766348c131eda53d73bc06f0bd90ff", - "channel_id": "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9", + "tx": "020000000000305fundchanneltx350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000", + "txid": "channeltxid350000350000350000350000350000350000350000350000350000", + "channel_id": "channelid0350000350000350000350000350000350000350000350000350000", "channel_type": { "bits": [ 12, @@ -12412,30 +11623,30 @@ "anchors/even" ] }, - "outnum": 0 + "outnum": 1 } }, { "description": [ - "This example shows how to to open new channel with peer 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518 from one whole utxo c8afe317789f3ecbd52893d2ac08be7499486df5a03c95ad063e395e931eb50a:1 (you can use **listfunds** command to get txid and vout):" + "This example shows how to to open new channel with peer 1 from one whole utxo (you can use **listfunds** command to get txid and vout):" ], "request": { "id": "example:fundchannel#2", "method": "fundchannel", "params": { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "id": "nodeid010101010101010101010101010101010101010101010101010101010101", "amount": "all", "feerate": "normal", "push_msat": 100000, "utxos": [ - "c8afe317789f3ecbd52893d2ac08be7499486df5a03c95ad063e395e931eb50a:1" + "channeltxid350000350000350000350000350000350000350000350000350000:1" ] } }, "response": { - "tx": "020000000001010ab51e935e393e06ad953ca0f56d489974be08acd29328d5cb3e9f7817e3afc80100000000fdffffff01cbb3eb0b00000000220020752dd5af63b98ff64fedf94683b0306c43f6eec74fbfe917639735b305e1b6d9024730440220431a00efd961f417160bd7180970a61b57c01b7c1e082d41429bb0c4e220d4180220542d0c9a1a59048751364b0ede571117fd8abdbf63d83d67a181c17ea3d3ef9e0121024740cce0e548f4ffe80c9914e43444d8e66ee8991dc9d93ec56dff4c56b933159a000000", - "txid": "20bbe695f309285479e6b63b8ab4346ce66b2db7018485e09d59175cec6156b1", - "channel_id": "222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa", + "tx": "020000000000401fundchanneltx410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000", + "txid": "channeltxid410000410000410000410000410000410000410000410000410000", + "channel_id": "channelid0410000410000410000410000410000410000410000410000410000", "channel_type": { "bits": [ 12, @@ -12446,7 +11657,7 @@ "anchors/even" ] }, - "outnum": 0 + "outnum": 1 } } ] @@ -12521,7 +11732,7 @@ "id": "example:fundchannel_cancel#1", "method": "fundchannel_cancel", "params": [ - "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc" + "nodeid101010101010101010101010101010101010101010101010101010101010" ] }, "response": { @@ -12533,7 +11744,7 @@ "id": "example:fundchannel_cancel#2", "method": "fundchannel_cancel", "params": { - "id": "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc" + "id": "nodeid101010101010101010101010101010101010101010101010101010101010" } }, "response": { @@ -12629,12 +11840,12 @@ "id": "example:fundchannel_complete#1", "method": "fundchannel_complete", "params": [ - "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc", - "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAFpz79e9wou5mbmtaiB+6WfRTf8SpZxmrd6n+rIFcWewQAAAAAA/f///wLS79/eAAAAABYAFE35CMxYA4yQx9XLuFj0/q5uNmligJaYAQAAAAAWABT/hTPq8LE5vAc9KiJjjmygoIN81UsAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVAQ4gl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywBDwQBAAAAARAE/f///wABAwgAAAABAAAAAAEEIgAgrcWu1QvOE7IcR/Pw6wFIFh6/TLwoeKjo5eUoi7suzsEAAQMIQYOYAAAAAAABBCJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AA==" + "nodeid101010101010101010101010101010101010101010101010101010101010", + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000" ] }, "response": { - "channel_id": "4ef7fbec78160e41ac53e32bb7d4d491222070cf719bd236a03a27109a306ced", + "channel_id": "channelid0910109101091010910109101091010910109101091010910109101", "commitments_secured": true } }, @@ -12643,12 +11854,12 @@ "id": "example:fundchannel_complete#2", "method": "fundchannel_complete", "params": { - "id": "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc", - "psbt": "cHNidP8BAgQCAAAAAQMETgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAEAAAAA/f///wIAAAABAAAAACIAIK3FrtULzhOyHEfz8OsBSBYev0y8KHio6OXlKIu7Ls7BQYOYAAAAAAAiUSCB2g0+MFETWoni+dheLq32YflZv7BeZxCXhUZyz9CsfZUAAAABAStBg5gAAAAAACJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AQ4gTvf77HgWDkGsU+Mrt9TUkSIgcM9xm9I2oDonEJowbO0BDwQBAAAAARAE/f///wABAwhAQg8AAAAAAAEEIgAgyeosZcqM3Ce8Ew/hH15S4XVHXg4xtkWx3MODLcT3540AAQMIwi2JAAAAAAABBCJRIHdLHCqbSwqdzkO0Y5WUDaIAERXUAPo2Z5CeyGpdNlGLAA==" + "id": "nodeid101010101010101010101010101010101010101010101010101010101010", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000" } }, "response": { - "channel_id": "589340033fb4e1ace8a5f6239a9bcc88e2d65191f68e4ad3f2ad37818718a2e9", + "channel_id": "channelid0910209102091020910209102091020910209102091020910209102", "commitments_secured": true } } @@ -12867,13 +12078,13 @@ "id": "example:fundchannel_start#1", "method": "fundchannel_start", "params": [ - "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc", + "nodeid101010101010101010101010101010101010101010101010101010101010", 16777216 ] }, "response": { - "funding_address": "bcrt1q5ptrvwlgcldm2ygf3nzsl09zfpp7dmtduqlczer97xvc4x5z5zwsc2ulv4", - "scriptpubkey": "0020a056363be8c7dbb511098cc50fbca24843e6ed6de03f816465f1998a9a82a09d", + "funding_address": "bcrt1p0002020202020202020202020202020202020202020202020202020202", + "scriptpubkey": "scriptpubkey01010101010101010101010101010101010101010101010101010101", "channel_type": { "bits": [ 12, @@ -12892,13 +12103,13 @@ "id": "example:fundchannel_start#2", "method": "fundchannel_start", "params": { - "id": "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc", + "id": "nodeid101010101010101010101010101010101010101010101010101010101010", "amount": 16777216 } }, "response": { - "funding_address": "bcrt1q4hz6a4gtecfmy8z870cwkq2gzc0t7n9u9pu23689u55ghwewemqsv4v2zs", - "scriptpubkey": "0020adc5aed50bce13b21c47f3f0eb0148161ebf4cbc2878a8e8e5e5288bbb2ecec1", + "funding_address": "bcrt1p0003030303030303030303030303030303030303030303030303030303", + "scriptpubkey": "scriptpubkey02020202020202020202020202020202020202020202020202020202", "channel_type": { "bits": [ 12, @@ -13466,7 +12677,7 @@ } }, "response": { - "psbt": "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AahhAAAAAAAAIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+GZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000", "feerate_per_kw": 253, "estimated_final_weight": 693, "excess_msat": 196962507000, @@ -13487,7 +12698,7 @@ } }, "response": { - "psbt": "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE+ZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000", "feerate_per_kw": 11000, "estimated_final_weight": 612, "excess_msat": 0, @@ -13538,9 +12749,7 @@ "method": "getemergencyrecoverdata", "params": {} }, - "response": { - "filedata": "5b3142fa0dd1115c29654b44780dcd9cf56cd53f9168061e964b39f3ce596962594b25660cba5d90ef07cfccbe1620f378ef284c7d1afed49d" - } + "response": "emergencyrecoverdata0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" } ] }, @@ -13936,9 +13145,9 @@ "params": {} }, "response": { - "id": "02bf811f7571754f0b51e6d41a8885f5561041a7b14fac093e4cffb95749de1a8d", - "alias": "SLICKERGOPHER", - "color": "02bf81", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", + "alias": "SILENTARTIST", + "color": "022d22", "num_peers": 0, "num_pending_channels": 0, "num_active_channels": 0, @@ -13948,18 +13157,17 @@ { "type": "ipv4", "address": "127.0.0.1", - "port": 9736 + "port": 19735 } ], - "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", + "version": "v24.08", + "blockheight": 110, + "network": "regtest", + "fees_collected_msat": 0, + "lightning-dir": "/tmp/.lightning/regtest", "our_features": { - "init": "08a0802a8a59a1", - "node": "88a0802a8a59a1", + "init": "08a0882a8a59a1", + "node": "88a0882a8a59a1", "channel": "", "invoice": "02000002024100" } @@ -14209,55 +13417,36 @@ } }, "response": { - "created_at": "1722303623.956237697", - "bytes_used": 1723719, + "created_at": 1738000000, + "bytes_used": 1630000, "bytes_max": 10485760, "log": [ { "type": "SKIPPED", - "num_skipped": 2927 + "num_skipped": 144 }, { "type": "UNUSUAL", - "time": "59.598510878", - "node_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "source": "chan#1", - "log": "No peer channel with scid=6250403x3681116x19863" - }, - { - "type": "SKIPPED", - "num_skipped": 1183 + "time": "71.800000000", + "source": "plugin-bookkeeper", + "log": "topic 'utxo_deposit' is not a known notification topic" }, { "type": "UNUSUAL", - "time": "71.923794351", - "node_id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "source": "chan#2", - "log": "Peer permanent failure in CLOSINGD_COMPLETE: Funding transaction spent (reason=unknown)" + "time": "72.800000000", + "source": "plugin-bookkeeper", + "log": "topic 'utxo_spend' is not a known notification topic" }, { "type": "SKIPPED", - "num_skipped": 557 - }, - { - "type": "BROKEN", - "time": "89.108598990", - "source": "plugin-topology", - "log": "DEPRECATED API USED: listchannels.include_private by \\\"-c:listchannels#114/cln:listchannels#175\\\"" - }, - { - "type": "SKIPPED", - "num_skipped": 1246 + "num_skipped": 147 }, { "type": "UNUSUAL", - "time": "95.217065000", - "source": "plugin-cln-renepay", - "log": "Failed to update hint channel 111x1x0: Failed to update scid=111x1x0 in the local_gossmods." - }, - { - "type": "SKIPPED", - "num_skipped": 1696 + "time": "74.800000000", + "node_id": "nodeid010101010101010101010101010101010101010101010101010101010101", + "source": "chan#1", + "log": "No peer channel with scid=228x1x1" } ] } @@ -14637,7 +13826,7 @@ "id": "example:getroute#1", "method": "getroute", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "riskfactor": 1 } @@ -14645,7 +13834,7 @@ "response": { "route": [ { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "channel": "109x1x1", "direction": 1, "amount_msat": 10001, @@ -14653,8 +13842,8 @@ "style": "tlv" }, { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "111x1x0", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel": "111x1x1", "direction": 0, "amount_msat": 10000, "delay": 9, @@ -14668,7 +13857,7 @@ "id": "example:getroute#2", "method": "getroute", "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", "amount_msat": 500000, "riskfactor": 10, "cltv": 9 @@ -14677,16 +13866,16 @@ "response": { "route": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "111x1x0", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel": "111x1x1", "direction": 0, "amount_msat": 500006, "delay": 15, "style": "tlv" }, { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "channel": "113x1x1", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", + "channel": "125x1x1", "direction": 0, "amount_msat": 500000, "delay": 9, @@ -15192,10 +14381,10 @@ } }, "response": { - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", - "expires_at": 1722908474, - "bolt11": "lnbcrt100n1pn2s396sp5v3en0qa3rrljw4m0wtz88sx99q20rarufhjpfysefhwhs42gvqjqpp56kvvl33d594nsxu0hzhesvazgqzlwv89fnpjcvtlanz3rl7x623qdp9f9h8vmmfvdjjqer9wd3hy6tsw35k7m3qdsenzxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq7za6z8kx2k5nul45zwttfz2njx3836v69mxqsl4ty9228pyjrkfnkymysy8ygsrrje9qf6j4tpalt5qkqusfp2esrsqc5ak7t4yzajgpezef54", - "payment_secret": "64733783b118ff27576f72c473c0c52814f1f47c4de41492194ddd7855486024", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", + "expires_at": 1739000000, + "bolt11": "lnbcrt100n1pnt2bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000", + "payment_secret": "paymentsecretinvl00310003100031000310003100031000310003100031000", "created_index": 2 } }, @@ -15210,10 +14399,10 @@ } }, "response": { - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "expires_at": 1722908474, - "bolt11": "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll", - "payment_secret": "bd162d243b8b4cc1fdd89bb6901e8cad1c99563b6ec3f0e33ab714cda5b719a8", + "payment_hash": "paymenthashinvl0320032003200320032003200320032003200320032003200", + "expires_at": 1739000000, + "bolt11": "lnbcrt100n1pnt2bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000", + "payment_secret": "paymentsecretinvl00032003200320032003200320032003200320032003200", "created_index": 3 } } @@ -15354,10 +14543,10 @@ } }, "response": { - "invreq_id": "93f193cd2432d292f8b64af08942989d71c0a0366fb52d57ddb688c8fb066399", + "invreq_id": "invreqid01010101010101010101010101010101010101010101010101010101", "active": true, "single_use": true, - "bolt12": "lnr1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq947t0ks7a4yejz8w79x4zj25s3pu6zrnw2e0v2ugdescpcqsq307z4p2dlxe92fv7xd43qut0pjkg4y094hupqyhsj8dlhvmmfng6sv", + "bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "used": false } }, @@ -15372,10 +14561,10 @@ } }, "response": { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202", "active": true, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", + "bolt12": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000", "used": false } } @@ -15619,18 +14808,18 @@ "id": "example:keysend#1", "method": "keysend", "params": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000 } }, "response": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "bf2806c76e67fbc07bccd878a2c583664f97ba49eebb707939bacaa9d6813858", - "created_at": 1726169170.7366238, + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101", + "created_at": 1738000000, "parts": 1, "amount_msat": 10000, "amount_sent_msat": 10001, - "payment_preimage": "8e9f92f7f4928fde1469b199680aa09ca2690fa4e1c0b21ea60fd87e962ecce4", + "payment_preimage": "paymentpreimage1010101010101010101010101010101010101010101010101", "status": "complete" } }, @@ -15639,7 +14828,7 @@ "id": "example:keysend#2", "method": "keysend", "params": { - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "destination": "nodeid040404040404040404040404040404040404040404040404040404040404", "amount_msat": 10000000, "extratlvs": { "133773310": "68656c6c6f776f726c64", @@ -15648,13 +14837,13 @@ } }, "response": { - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payment_hash": "06f861fa426d342ca144785243c44093654ff8dfc7cec7db346286c20010cffc", - "created_at": 1726169172.886992, + "destination": "nodeid040404040404040404040404040404040404040404040404040404040404", + "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201", + "created_at": 1738000000, "parts": 1, "amount_msat": 10000000, "amount_sent_msat": 10000202, - "payment_preimage": "9416f0889f0dfe6316e047aee01a5451e29753a51b10ddda83fe6b8ccad2eb72", + "payment_preimage": "paymentpreimage2020202020202020202020202020202020202020202020202", "status": "complete" } }, @@ -15663,13 +14852,13 @@ "id": "example:keysend#3", "method": "keysend", "params": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "routehints": [ [ { - "scid": "6974878x14919575x17443", - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "scid": "111x1x1", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "feebase": "1msat", "feeprop": 10, "expirydelta": 9 @@ -15679,13 +14868,13 @@ } }, "response": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "c9e6b85aafb27fbaceb3f0eca6d0940d6e1d93a4be2d6da981aed9503fcec92c", - "created_at": 1726169175.977477, + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301", + "created_at": 1738000000, "parts": 2, "amount_msat": 10000, "amount_sent_msat": 10001, - "payment_preimage": "1cd3749122f3a1b8c1cbd9f4585ec820ec4e1b8f2aa3514a4dd9deda170bdf5d", + "payment_preimage": "paymentpreimage3030303030303030303030303030303030303030303030303", "status": "complete" } } @@ -15889,8 +15078,8 @@ "response": { "channels": [ { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "source": "nodeid020202020202020202020202020202020202020202020202020202020202", + "destination": "nodeid010101010101010101010101010101010101010101010101010101010101", "short_channel_id": "109x1x1", "direction": 0, "public": true, @@ -15898,7 +15087,7 @@ "message_flags": 1, "channel_flags": 0, "active": true, - "last_update": 1722303662, + "last_update": 1738500000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -15907,16 +15096,16 @@ "features": "" }, { - "source": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "source": "nodeid010101010101010101010101010101010101010101010101010101010101", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", "short_channel_id": "109x1x1", "direction": 1, "public": true, "amount_msat": 1000000000, "message_flags": 1, "channel_flags": 1, - "active": true, - "last_update": 1722303662, + "active": false, + "last_update": 1738510000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -15936,8 +15125,8 @@ "response": { "channels": [ { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "source": "nodeid020202020202020202020202020202020202020202020202020202020202", + "destination": "nodeid010101010101010101010101010101010101010101010101010101010101", "short_channel_id": "109x1x1", "direction": 0, "public": true, @@ -15945,7 +15134,7 @@ "message_flags": 1, "channel_flags": 0, "active": true, - "last_update": 1722303662, + "last_update": 1738500000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -15954,34 +15143,16 @@ "features": "" }, { - "source": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "source": "nodeid010101010101010101010101010101010101010101010101010101010101", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", "short_channel_id": "109x1x1", "direction": 1, "public": true, "amount_msat": 1000000000, "message_flags": 1, "channel_flags": 1, - "active": true, - "last_update": 1722303662, - "base_fee_millisatoshi": 1, - "fee_per_millionth": 10, - "delay": 6, - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "features": "" - }, - { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "111x1x0", - "direction": 0, - "public": true, - "amount_msat": 1000000000, - "message_flags": 1, - "channel_flags": 2, "active": false, - "last_update": 1722303692, + "last_update": 1738510000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -15990,70 +15161,16 @@ "features": "" }, { - "source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "short_channel_id": "111x1x0", - "direction": 1, - "public": true, - "amount_msat": 1000000000, - "message_flags": 1, - "channel_flags": 1, - "active": true, - "last_update": 1722303669, - "base_fee_millisatoshi": 1, - "fee_per_millionth": 10, - "delay": 6, - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "features": "" - }, - { - "source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "short_channel_id": "113x1x1", - "direction": 0, - "public": true, - "amount_msat": 1000000000, - "message_flags": 1, - "channel_flags": 0, - "active": true, - "last_update": 1722303669, - "base_fee_millisatoshi": 1, - "fee_per_millionth": 10, - "delay": 6, - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "features": "" - }, - { - "source": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "113x1x1", - "direction": 1, - "public": true, - "amount_msat": 1000000000, - "message_flags": 1, - "channel_flags": 1, - "active": true, - "last_update": 1722303669, - "base_fee_millisatoshi": 1, - "fee_per_millionth": 10, - "delay": 6, - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "features": "" - }, - { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "source": "nodeid020202020202020202020202020202020202020202020202020202020202", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "short_channel_id": "123x1x1", "direction": 0, "public": true, "amount_msat": 1000000000, "message_flags": 1, - "channel_flags": 0, + "channel_flags": 2, "active": true, - "last_update": 1722303711, + "last_update": 1738520000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -16062,16 +15179,16 @@ "features": "" }, { - "source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "source": "nodeid030303030303030303030303030303030303030303030303030303030303", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", "short_channel_id": "123x1x1", "direction": 1, "public": true, "amount_msat": 1000000000, "message_flags": 1, - "channel_flags": 1, - "active": true, - "last_update": 1722303711, + "channel_flags": 3, + "active": false, + "last_update": 1738530000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -16080,34 +15197,16 @@ "features": "" }, { - "source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "short_channel_id": "125x1x1", + "source": "nodeid030303030303030303030303030303030303030303030303030303030303", + "destination": "nodeid040404040404040404040404040404040404040404040404040404040404", + "short_channel_id": "130x1x1", "direction": 0, "public": true, "amount_msat": 1000000000, "message_flags": 1, - "channel_flags": 0, - "active": true, - "last_update": 1722303714, - "base_fee_millisatoshi": 1, - "fee_per_millionth": 10, - "delay": 6, - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "features": "" - }, - { - "source": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "125x1x1", - "direction": 1, - "public": true, - "amount_msat": 1000000000, - "message_flags": 1, - "channel_flags": 1, + "channel_flags": 2, "active": true, - "last_update": 1722303714, + "last_update": 1738540000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -16416,7 +15515,80 @@ "params": {} }, "response": { - "closedchannels": [] + "closedchannels": [ + { + "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel_id": "channelid0230000230000230000230000230000230000230000230000230000", + "short_channel_id": "111x1x1", + "alias": { + "local": "9100000x13000000x63000", + "remote": "3500000x7300000x11000" + }, + "opener": "local", + "closer": "local", + "private": false, + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors/even" + ] + }, + "total_local_commitments": 16, + "total_remote_commitments": 16, + "total_htlcs_sent": 8, + "funding_txid": "fundingtxid00202020202020202020202020202020202020202020202020202", + "funding_outnum": 1, + "leased": false, + "total_msat": 1000000000, + "final_to_us_msat": 489818898, + "min_to_us_msat": 489818898, + "max_to_us_msat": 1000000000, + "last_commitment_txid": "txidcloselastcommitment00000100001000010000100001000010000100001", + "last_commitment_fee_msat": 2896000, + "close_cause": "user", + "last_stable_connection": 1738500000 + }, + { + "peer_id": "nodeid050505050505050505050505050505050505050505050505050505050505", + "channel_id": "channelid0250000250000250000250000250000250000250000250000250000", + "short_channel_id": "115x1x1", + "alias": { + "local": "6500000x1100000x23000", + "remote": "5300000x1300000x55000" + }, + "opener": "local", + "closer": "local", + "private": true, + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors/even" + ] + }, + "total_local_commitments": 2, + "total_remote_commitments": 2, + "total_htlcs_sent": 1, + "funding_txid": "fundingtxid00101010101010101010101010101010101010101010101010101", + "funding_outnum": 1, + "leased": false, + "total_msat": 1000000000, + "final_to_us_msat": 500000000, + "min_to_us_msat": 500000000, + "max_to_us_msat": 1000000000, + "last_commitment_txid": "txidcloselastcommitment00000200002000020000200002000020000200002", + "last_commitment_fee_msat": 2895000, + "close_cause": "user", + "last_stable_connection": 1738500000 + } + ] } } ] @@ -18899,7 +18071,6 @@ } }, "response": { - "network": "regtest", "configs": { "network": { "value_str": "regtest", @@ -18917,7 +18088,6 @@ } }, "response": { - "experimental-dual-fund": true, "configs": { "experimental-dual-fund": { "set": true, @@ -18933,212 +18103,166 @@ "params": {} }, "response": { - "# version": "v24.05-190-g5fd2f9c-modded", - "developer": true, - "lightning-dir": "/tmp/.lightning/", - "network": "regtest", - "rpc-file": "lightning-rpc", - "allow-deprecated-apis": true, - "plugins": [ - { - "path": "/root/lightning/plugins/cln-renepay", - "name": "cln-renepay", - "options": {} - } - ], - "important-plugins": [ - { - "path": "/root/lightning/plugins/autoclean", - "name": "autoclean", - "options": { - "autoclean-cycle": 3600, - "dev-autoclean-max-batch": 10000 - } + "configs": { + "accept-htlc-tlv-type": { + "values_int": [], + "sources": [] }, - { - "path": "/root/lightning/plugins/chanbackup", - "name": "chanbackup" + "addr": { + "values_str": [ + "127.0.0.1:19735" + ], + "sources": [ + "cmdline" + ] }, - { - "path": "/root/lightning/plugins/bcli", - "name": "bcli", - "options": { - "bitcoin-datadir": "/tmp/.lightning/", - "bitcoin-rpcuser": "rpcuser", - "bitcoin-rpcpassword": "rpcpass", - "bitcoin-rpcport": 51251, - "bitcoin-rpcclienttimeout": 60, - "bitcoin-retry-timeout": 60 - } + "alias": { + "value_str": "SILENTARTIST", + "source": "default" }, - { - "path": "/root/lightning/plugins/commando", - "name": "commando" + "allow-deprecated-apis": { + "value_bool": true, + "source": "cmdline" }, - { - "path": "/root/lightning/plugins/funder", - "name": "funder", - "options": { - "funder-policy": "fixed", - "funder-policy-mod": "0", - "funder-min-their-funding": "10000sat", - "funder-max-their-funding": "4294967295sat", - "funder-per-channel-min": "10000sat", - "funder-per-channel-max": "4294967295sat", - "funder-reserve-tank": "0sat", - "funder-fuzz-percent": 0, - "funder-fund-probability": 100, - "funder-lease-requests-only": true - } + "always-use-proxy": { + "value_bool": false, + "source": "default" }, - { - "path": "/root/lightning/plugins/topology", - "name": "topology" + "announce-addr": { + "values_str": [], + "sources": [] }, - { - "path": "/root/lightning/plugins/keysend", - "name": "keysend" + "announce-addr-discovered": { + "value_str": "auto", + "source": "default" }, - { - "path": "/root/lightning/plugins/offers", - "name": "offers", - "options": {} + "announce-addr-discovered-port": { + "value_int": 19846, + "source": "default" }, - { - "path": "/root/lightning/plugins/pay", - "name": "pay", - "options": {} + "autoclean-cycle": { + "value_int": 3600, + "source": "default", + "plugin": "/root/lightning/plugins/autoclean", + "dynamic": true }, - { - "path": "/root/lightning/plugins/recover", - "name": "recover" + "autoclean-expiredinvoices-age": { + "value_int": 300, + "source": "/tmp/.lightning/regtest/config:2", + "plugin": "/root/lightning/plugins/autoclean", + "dynamic": true }, - { - "path": "/root/lightning/plugins/txprepare", - "name": "txprepare" + "autolisten": { + "value_bool": false, + "source": "default" }, - { - "path": "/root/lightning/plugins/spenderp", - "name": "spenderp" + "bind-addr": { + "values_str": [], + "sources": [] }, - { - "path": "/root/lightning/plugins/sql", - "name": "sql", - "options": {} + "bitcoin-datadir": { + "value_str": "/tmp/.lightning/", + "source": "cmdline", + "plugin": "/root/lightning/plugins/bcli" }, - { - "path": "/root/lightning/plugins/bookkeeper", - "name": "bookkeeper", - "options": {} - } - ], - "disable-plugin": [], - "always-use-proxy": false, - "daemon": false, - "wallet": "sqlite3:///tmp/.lightning/regtest/lightningd.sqlite3", - "experimental-dual-fund": true, - "experimental-splicing": false, - "experimental-offers": true, - "experimental-shutdown-wrong-funding": false, - "experimental-peer-storage": false, - "experimental-quiesce": false, - "rgb": "022d22", - "alias": "SILENTARTIST-190-g5fd2f9c-modded", - "pid-file": "/tmp/.lightning/lightningd-regtest.pid", - "ignore-fee-limits": false, - "watchtime-blocks": 5, - "funding-confirms": 1, - "require-confirmed-inputs": false, - "cltv-delta": 6, - "cltv-final": 5, - "commit-time": 10, - "fee-base": 1, - "rescan": 1, - "fee-per-satoshi": 10, - "htlc-minimum-msat": 0, - "htlc-maximum-msat": 18446744073709552000, - "max-concurrent-htlcs": 483, - "max-dust-htlc-exposure-msat": 50000000, - "min-capacity-sat": 10000, - "addr": "127.0.0.1:41219", - "announce-addr-discovered": "auto", - "announce-addr-discovered-port": 19846, - "offline": false, - "autolisten": false, - "disable-dns": true, - "encrypted-hsm": false, - "rpc-file-mode": "0600", - "commit-fee": 100, - "commit-feerate-offset": 5, - "min-emergency-msat": 25000000, - "experimental-upgrade-protocol": false, - "invoices-onchain-fallback": false, - "log-level": "debug", - "log-timestamps": true, - "log-prefix": "lightningd-2 ", - "log-file": "/tmp/.lightning/log", - "configs": { - "developer": { - "set": true, - "source": "cmdline" + "bitcoin-retry-timeout": { + "value_int": 60, + "source": "default", + "plugin": "/root/lightning/plugins/bcli" }, - "lightning-dir": { - "value_str": "/tmp/.lightning/", + "bitcoin-rpcclienttimeout": { + "value_int": 60, + "source": "default", + "plugin": "/root/lightning/plugins/bcli" + }, + "bitcoin-rpcpassword": { + "value_str": "rpcpass", + "source": "cmdline", + "plugin": "/root/lightning/plugins/bcli" + }, + "bitcoin-rpcport": { + "value_int": 18332, + "source": "cmdline", + "plugin": "/root/lightning/plugins/bcli" + }, + "bitcoin-rpcuser": { + "value_str": "rpcuser", + "source": "cmdline", + "plugin": "/root/lightning/plugins/bcli" + }, + "clear-plugins": { + "set": false, + "source": "default" + }, + "cltv-delta": { + "value_int": 6, "source": "cmdline" }, - "network": { - "value_str": "regtest", + "cltv-final": { + "value_int": 5, "source": "cmdline" }, - "testnet": { - "set": false, + "commit-fee": { + "value_int": 100, "source": "default" }, - "signet": { - "set": false, + "commit-feerate-offset": { + "value_int": 5, "source": "default" }, - "mainnet": { - "set": false, + "commit-time": { + "value_int": 10, "source": "default" }, - "regtest": { + "daemon": { "set": false, "source": "default" }, - "rpc-file": { - "value_str": "lightning-rpc", - "source": "default" + "dev-autoclean-max-batch": { + "value_int": 10000, + "source": "default", + "plugin": "/root/lightning/plugins/autoclean", + "dynamic": true }, - "allow-deprecated-apis": { - "value_bool": true, + "dev-bitcoind-poll": { + "value_int": 3, "source": "cmdline" }, - "plugin": { - "values_str": [], - "sources": [] + "dev-fail-on-subdaemon-fail": { + "set": true, + "source": "cmdline" }, - "plugin-dir": { - "values_str": [], - "sources": [] + "dev-fast-gossip": { + "set": true, + "source": "cmdline" }, - "clear-plugins": { + "dev-hsmd-no-preapprove-check": { + "set": true, + "source": "cmdline" + }, + "dev-invoice-bpath-scid": { "set": false, - "source": "default" + "source": "default", + "plugin": "/root/lightning/plugins/offers" }, - "disable-plugin": { - "values_str": [], - "sources": [] + "developer": { + "set": true, + "source": "cmdline" }, - "important-plugin": { + "disable-dns": { + "set": true, + "source": "cmdline" + }, + "disable-mpp": { + "set": false, + "source": "default", + "plugin": "/root/lightning/plugins/pay" + }, + "disable-plugin": { "values_str": [], "sources": [] }, - "always-use-proxy": { - "value_bool": false, - "source": "default" - }, - "daemon": { + "encrypted-hsm": { "set": false, "source": "default" }, @@ -19146,18 +18270,10 @@ "set": true, "source": "cmdline" }, - "experimental-splicing": { - "set": false, - "source": "default" - }, "experimental-offers": { "set": true, "source": "cmdline" }, - "experimental-shutdown-wrong-funding": { - "set": false, - "source": "default" - }, "experimental-peer-storage": { "set": false, "source": "default" @@ -19166,165 +18282,111 @@ "set": false, "source": "default" }, - "rgb": { - "value_str": "022d22", - "source": "default" - }, - "alias": { - "value_str": "SILENTARTIST-190-g5fd2f9c-modded", - "source": "default" - }, - "pid-file": { - "value_str": "/tmp/.lightning/lightningd-regtest.pid", - "source": "default" - }, - "ignore-fee-limits": { - "value_bool": false, - "source": "cmdline" - }, - "watchtime-blocks": { - "value_int": 5, - "source": "cmdline" - }, - "funding-confirms": { - "value_int": 1, + "experimental-shutdown-wrong-funding": { + "set": false, "source": "default" }, - "require-confirmed-inputs": { - "value_bool": false, + "experimental-splicing": { + "set": false, "source": "default" }, - "cltv-delta": { - "value_int": 6, - "source": "cmdline" - }, - "cltv-final": { - "value_int": 5, - "source": "cmdline" - }, - "commit-time": { - "value_int": 10, + "experimental-upgrade-protocol": { + "set": false, "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, + "fetchinvoice-noconnect": { + "set": false, "source": "default", - "dynamic": true - }, - "addr": { - "values_str": [ - "127.0.0.1:41219" - ], - "sources": [ - "cmdline" - ] + "plugin": "/root/lightning/plugins/offers" }, - "bind-addr": { - "values_str": [], - "sources": [] + "funder-fund-probability": { + "value_int": 100, + "source": "default", + "plugin": "/root/lightning/plugins/funder" }, - "announce-addr": { - "values_str": [], - "sources": [] + "funder-fuzz-percent": { + "value_int": 0, + "source": "default", + "plugin": "/root/lightning/plugins/funder" }, - "announce-addr-discovered": { - "value_str": "auto", - "source": "default" + "funder-lease-requests-only": { + "value_bool": true, + "source": "default", + "plugin": "/root/lightning/plugins/funder" }, - "announce-addr-discovered-port": { - "value_int": 19846, - "source": "default" + "funder-max-their-funding": { + "value_str": "4294967295sat", + "source": "default", + "plugin": "/root/lightning/plugins/funder" }, - "offline": { - "set": false, - "source": "default" + "funder-min-their-funding": { + "value_str": "10000sat", + "source": "default", + "plugin": "/root/lightning/plugins/funder" }, - "autolisten": { - "value_bool": false, - "source": "default" + "funder-per-channel-max": { + "value_str": "4294967295sat", + "source": "default", + "plugin": "/root/lightning/plugins/funder" }, - "accept-htlc-tlv-type": { - "values_int": [], - "sources": [] + "funder-per-channel-min": { + "value_str": "10000sat", + "source": "default", + "plugin": "/root/lightning/plugins/funder" }, - "disable-dns": { - "set": true, - "source": "cmdline" + "funder-policy": { + "value_str": "fixed", + "source": "default", + "plugin": "/root/lightning/plugins/funder" }, - "encrypted-hsm": { - "set": false, - "source": "default" + "funder-policy-mod": { + "value_str": "0", + "source": "default", + "plugin": "/root/lightning/plugins/funder" }, - "rpc-file-mode": { - "value_str": "0600", - "source": "default" + "funder-reserve-tank": { + "value_str": "0sat", + "source": "default", + "plugin": "/root/lightning/plugins/funder" }, - "commit-fee": { - "value_int": 100, + "funding-confirms": { + "value_int": 1, "source": "default" }, - "commit-feerate-offset": { - "value_int": 5, + "htlc-maximum-msat": { + "value_msat": 18446744073709552000, "source": "default" }, - "min-emergency-msat": { - "value_msat": 25000000, + "htlc-minimum-msat": { + "value_msat": 0, "source": "default" }, - "subdaemon": { + "i-promise-to-fix-broken-api-user": { "values_str": [], "sources": [] }, - "experimental-upgrade-protocol": { - "set": false, - "source": "default" - }, - "invoices-onchain-fallback": { - "set": false, - "source": "default" + "ignore-fee-limits": { + "value_bool": false, + "source": "cmdline" }, - "i-promise-to-fix-broken-api-user": { + "important-plugin": { "values_str": [], "sources": [] }, - "log-level": { - "value_str": "debug", - "source": "cmdline" - }, - "log-timestamps": { - "value_bool": true, + "invoices-onchain-fallback": { + "set": false, "source": "default" }, - "log-prefix": { - "value_str": "lightningd-2 ", + "lightning-dir": { + "value_str": "/tmp/.lightning/", "source": "cmdline" }, "log-file": { @@ -19337,138 +18399,108 @@ "cmdline" ] }, - "dev-fail-on-subdaemon-fail": { - "set": true, - "source": "cmdline" - }, - "dev-bitcoind-poll": { - "value_int": 3, - "source": "cmdline" - }, - "dev-fast-gossip": { - "set": true, + "log-level": { + "value_str": "debug", "source": "cmdline" }, - "dev-hsmd-no-preapprove-check": { - "set": true, + "log-prefix": { + "value_str": "lightningd-2 ", "source": "cmdline" }, - "autoclean-cycle": { - "value_int": 3600, - "source": "default", - "plugin": "/root/lightning/plugins/autoclean", - "dynamic": true + "log-timestamps": { + "value_bool": true, + "source": "default" }, - "dev-autoclean-max-batch": { - "value_int": 10000, - "source": "default", - "plugin": "/root/lightning/plugins/autoclean", - "dynamic": true + "mainnet": { + "set": false, + "source": "default" }, - "bitcoin-datadir": { - "value_str": "/tmp/.lightning/", - "source": "cmdline", - "plugin": "/root/lightning/plugins/bcli" + "max-concurrent-htlcs": { + "value_int": 483, + "source": "default" }, - "bitcoin-rpcuser": { - "value_str": "rpcuser", - "source": "cmdline", - "plugin": "/root/lightning/plugins/bcli" + "max-dust-htlc-exposure-msat": { + "value_msat": 50000000, + "source": "default" }, - "bitcoin-rpcpassword": { - "value_str": "rpcpass", - "source": "cmdline", - "plugin": "/root/lightning/plugins/bcli" + "min-capacity-sat": { + "value_int": 500000, + "source": "/tmp/.lightning/regtest/config:4", + "dynamic": true }, - "bitcoin-rpcport": { - "value_int": 51251, - "source": "cmdline", - "plugin": "/root/lightning/plugins/bcli" + "min-emergency-msat": { + "value_msat": 25000000, + "source": "default" }, - "bitcoin-rpcclienttimeout": { - "value_int": 60, - "source": "default", - "plugin": "/root/lightning/plugins/bcli" + "network": { + "value_str": "regtest", + "source": "cmdline" }, - "bitcoin-retry-timeout": { - "value_int": 60, - "source": "default", - "plugin": "/root/lightning/plugins/bcli" + "offline": { + "set": false, + "source": "default" }, - "funder-policy": { - "value_str": "fixed", - "source": "default", - "plugin": "/root/lightning/plugins/funder" + "pid-file": { + "value_str": "/tmp/.lightning/lightningd-regtest.pid", + "source": "default" }, - "funder-policy-mod": { - "value_str": "0", - "source": "default", - "plugin": "/root/lightning/plugins/funder" + "plugin": { + "values_str": [], + "sources": [] }, - "funder-min-their-funding": { - "value_str": "10000sat", - "source": "default", - "plugin": "/root/lightning/plugins/funder" + "plugin-dir": { + "values_str": [], + "sources": [] }, - "funder-max-their-funding": { - "value_str": "4294967295sat", - "source": "default", - "plugin": "/root/lightning/plugins/funder" + "regtest": { + "set": false, + "source": "default" }, - "funder-per-channel-min": { - "value_str": "10000sat", + "renepay-debug-mcf": { + "set": false, "source": "default", - "plugin": "/root/lightning/plugins/funder" + "plugin": "/root/lightning/plugins/cln-renepay" }, - "funder-per-channel-max": { - "value_str": "4294967295sat", + "renepay-debug-payflow": { + "set": false, "source": "default", - "plugin": "/root/lightning/plugins/funder" + "plugin": "/root/lightning/plugins/cln-renepay" }, - "funder-reserve-tank": { - "value_str": "0sat", - "source": "default", - "plugin": "/root/lightning/plugins/funder" + "require-confirmed-inputs": { + "value_bool": false, + "source": "default" }, - "funder-fuzz-percent": { - "value_int": 0, - "source": "default", - "plugin": "/root/lightning/plugins/funder" + "rescan": { + "value_int": 1, + "source": "cmdline" }, - "funder-fund-probability": { - "value_int": 100, - "source": "default", - "plugin": "/root/lightning/plugins/funder" + "rgb": { + "value_str": "022d22", + "source": "default" }, - "funder-lease-requests-only": { - "value_bool": true, - "source": "default", - "plugin": "/root/lightning/plugins/funder" + "rpc-file": { + "value_str": "lightning-rpc", + "source": "default" }, - "fetchinvoice-noconnect": { - "set": false, - "source": "default", - "plugin": "/root/lightning/plugins/offers" + "rpc-file-mode": { + "value_str": "0600", + "source": "default" }, - "dev-invoice-bpath-scid": { + "signet": { "set": false, - "source": "default", - "plugin": "/root/lightning/plugins/offers" + "source": "default" }, - "disable-mpp": { - "set": false, - "source": "default", - "plugin": "/root/lightning/plugins/pay" + "subdaemon": { + "values_str": [], + "sources": [] }, - "renepay-debug-mcf": { + "testnet": { "set": false, - "source": "default", - "plugin": "/root/lightning/plugins/cln-renepay" + "source": "default" }, - "renepay-debug-payflow": { - "set": false, - "source": "default", - "plugin": "/root/lightning/plugins/cln-renepay" + "watchtime-blocks": { + "value_int": 5, + "source": "cmdline" } } } @@ -19576,7 +18608,7 @@ "method": "listdatastore", "params": { "key": [ - "test" + "employee" ] } }, @@ -19584,12 +18616,12 @@ "datastore": [ { "key": [ - "test", - "name" + "employee", + "index" ], "generation": 0, - "hex": "736176696e67206461746120746f207468652073746f7265", - "string": "saving data to the store" + "hex": "736176696e6720656d706c6f796565206b65797320746f207468652073746f7265", + "string": "saving employee keys to the store" } ] } @@ -19599,18 +18631,18 @@ "id": "example:listdatastore#2", "method": "listdatastore", "params": { - "key": "otherkey" + "key": "somekey" } }, "response": { "datastore": [ { "key": [ - "otherkey" + "somekey" ], - "generation": 1, - "hex": "666f6f626172", - "string": "foobar" + "generation": 0, + "hex": "61", + "string": "a" } ] } @@ -20001,101 +19033,41 @@ "method": "listforwards", "params": { "in_channel": "109x1x1", - "out_channel": "111x1x0", + "out_channel": "123x1x1", "status": "settled" } }, "response": { "forwards": [ { - "created_index": 1, - "updated_index": 1, - "in_channel": "109x1x1", - "in_htlc_id": 1, - "out_channel": "111x1x0", - "out_htlc_id": 1, - "in_msat": 10001, - "out_msat": 10000, - "fee_msat": 1, - "status": "settled", - "style": "tlv", - "received_time": 1722303675.3853297, - "resolved_time": 1722303676.8396847 - }, - { - "created_index": 2, - "updated_index": 2, + "created_index": 11, + "updated_index": 7, "in_channel": "109x1x1", - "in_htlc_id": 2, - "out_channel": "111x1x0", + "in_htlc_id": 17, + "out_channel": "123x1x1", "out_htlc_id": 2, - "in_msat": 10001, - "out_msat": 10000, - "fee_msat": 1, + "in_msat": 50000501, + "out_msat": 50000000, + "fee_msat": 501, "status": "settled", "style": "tlv", - "received_time": 1722303677.6214294, - "resolved_time": 1722303679.0363395 + "received_time": 1738000000, + "resolved_time": 1738500000 }, { - "created_index": 3, - "updated_index": 3, + "created_index": 12, + "updated_index": 8, "in_channel": "109x1x1", - "in_htlc_id": 3, - "out_channel": "111x1x0", + "in_htlc_id": 18, + "out_channel": "123x1x1", "out_htlc_id": 3, - "in_msat": 10000202, - "out_msat": 10000101, - "fee_msat": 101, - "status": "settled", - "style": "tlv", - "received_time": 1722303679.8093705, - "resolved_time": 1722303682.2599013 - }, - { - "created_index": 5, - "updated_index": 4, - "in_channel": "109x1x1", - "in_htlc_id": 5, - "out_channel": "111x1x0", - "out_htlc_id": 4, - "in_msat": 10001, - "out_msat": 10000, - "fee_msat": 1, - "status": "settled", - "style": "tlv", - "received_time": 1722303684.4914763, - "resolved_time": 1722303685.8940926 - }, - { - "created_index": 6, - "updated_index": 5, - "in_channel": "109x1x1", - "in_htlc_id": 6, - "out_channel": "111x1x0", - "out_htlc_id": 5, - "in_msat": 50001, - "out_msat": 50000, - "fee_msat": 1, - "status": "settled", - "style": "tlv", - "received_time": 1722303686.7160892, - "resolved_time": 1722303688.1316907 - }, - { - "created_index": 7, - "updated_index": 6, - "in_channel": "109x1x1", - "in_htlc_id": 7, - "out_channel": "111x1x0", - "out_htlc_id": 7, - "in_msat": 1002, - "out_msat": 1001, - "fee_msat": 1, + "in_msat": 50000501, + "out_msat": 50000000, + "fee_msat": 501, "status": "settled", "style": "tlv", - "received_time": 1722303689.9082303, - "resolved_time": 1722303692.3156552 + "received_time": 1738010000, + "resolved_time": 1738510000 } ] } @@ -20113,114 +19085,75 @@ "updated_index": 1, "in_channel": "109x1x1", "in_htlc_id": 1, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 1, "in_msat": 10001, "out_msat": 10000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303675.3853297, - "resolved_time": 1722303676.8396847 + "received_time": 1738000000, + "resolved_time": 1738500000 }, { "created_index": 2, "updated_index": 2, "in_channel": "109x1x1", "in_htlc_id": 2, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 2, "in_msat": 10001, "out_msat": 10000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303677.6214294, - "resolved_time": 1722303679.0363395 + "received_time": 1738010000, + "resolved_time": 1738510000 }, { "created_index": 3, "updated_index": 3, "in_channel": "109x1x1", "in_htlc_id": 3, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 3, "in_msat": 10000202, "out_msat": 10000101, "fee_msat": 101, "status": "settled", "style": "tlv", - "received_time": 1722303679.8093705, - "resolved_time": 1722303682.2599013 - }, - { - "created_index": 4, - "in_channel": "109x1x1", - "in_htlc_id": 4, - "out_channel": "6250403x3681116x19863", - "in_msat": 10001, - "status": "local_failed", - "failcode": 16394, - "failreason": "WIRE_UNKNOWN_NEXT_PEER", - "style": "tlv", - "received_time": 1722303683.0972922 + "received_time": 1738020000, + "resolved_time": 1738520000 }, { "created_index": 5, "updated_index": 4, "in_channel": "109x1x1", "in_htlc_id": 5, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 4, "in_msat": 10001, "out_msat": 10000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303684.4914763, - "resolved_time": 1722303685.8940926 + "received_time": 1738030000, + "resolved_time": 1738530000 }, { "created_index": 6, "updated_index": 5, "in_channel": "109x1x1", "in_htlc_id": 6, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 5, "in_msat": 50001, "out_msat": 50000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303686.7160892, - "resolved_time": 1722303688.1316907 - }, - { - "created_index": 7, - "updated_index": 6, - "in_channel": "109x1x1", - "in_htlc_id": 7, - "out_channel": "111x1x0", - "out_htlc_id": 7, - "in_msat": 1002, - "out_msat": 1001, - "fee_msat": 1, - "status": "settled", - "style": "tlv", - "received_time": 1722303689.9082303, - "resolved_time": 1722303692.3156552 - }, - { - "created_index": 8, - "in_channel": "109x1x1", - "in_htlc_id": 8, - "out_channel": "111x1x0", - "in_msat": 10001, - "status": "local_failed", - "failcode": 16394, - "failreason": "WIRE_UNKNOWN_NEXT_PEER", - "style": "tlv", - "received_time": 1722303697.0961268 + "received_time": 1738040000, + "resolved_time": 1738540000 } ] } @@ -20583,47 +19516,67 @@ "response": { "outputs": [ { - "txid": "9454852bb62e304ee8933662284e10bd22a7f3710c262da4c94bdcc8b05ae407", - "output": 0, - "amount_msat": 19993653000, - "scriptpubkey": "51206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b5", - "address": "bcrt1pdsn7r9t2e7npu6pf9jqfpzyqaqf52rm4gyew3g4vgudgd0cny66srft45s", + "txid": "txid000010000100001000010000100001000010000100001000010000100001", + "output": 2, + "amount_msat": 26000000, + "scriptpubkey": "scriptpubkey01010101010101010101010101010101010101010101010101010101", + "address": "bcrt1p0004040404040404040404040404040404040404040404040404040404", "status": "confirmed", - "blockheight": 103, + "blockheight": 160, "reserved": false }, { - "txid": "7547ffc11396c62852104f7100d5ca27a2b9c0d5d43d08122147b2b03eb157a5", - "output": 0, - "amount_msat": 2000000000, - "scriptpubkey": "00149fb67bfcefee6cb7db4c7e55d9c6bfd749e31d1e", - "address": "bcrt1qn7m8hl80aekt0k6v0e2an34l6ay7x8g703x07y", + "txid": "txid000020000200002000020000200002000020000200002000020000200002", + "output": 3, + "amount_msat": 27000000, + "scriptpubkey": "scriptpubkey02020202020202020202020202020202020202020202020202020202", + "address": "bcrt1p0004040404040404040404040404040404040404040404040404040404", "status": "confirmed", - "blockheight": 108, + "blockheight": 160, "reserved": false }, { - "txid": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", - "output": 0, - "amount_msat": 198995073000, - "scriptpubkey": "512035f1184f6b470c9df347da62c4b28e7ec9ee10b220bac3accd22209def0036ea", - "address": "bcrt1pxhc3snmtguxfmu68mf3vfv5w0my7uy9jyzav8txdygsfmmcqxm4q0mms62", + "txid": "txid000030000300003000030000300003000030000300003000030000300003", + "output": 4, + "amount_msat": 28000000, + "scriptpubkey": "scriptpubkey03030303030303030303030303030303030303030303030303030303", + "address": "bcrt1p0004040404040404040404040404040404040404040404040404040404", "status": "confirmed", - "blockheight": 109, + "blockheight": 160, "reserved": false } ], "channels": [ { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "connected": true, "state": "CHANNELD_NORMAL", - "channel_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", + "channel_id": "channelid0120000120000120000120000120000120000120000120000120000", "short_channel_id": "109x1x1", - "our_amount_msat": 490518792, - "amount_msat": 1000000000, - "funding_txid": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", + "our_amount_msat": 36000000, + "amount_msat": 11000000, + "funding_txid": "txid010010100101001010010100101001010010100101001010010100101001", "funding_output": 1 + }, + { + "peer_id": "nodeid050505050505050505050505050505050505050505050505050505050505", + "connected": false, + "state": "ONCHAIN", + "channel_id": "channelid1300013000130001300013000130001300013000130001300013000", + "our_amount_msat": 37000000, + "amount_msat": 12000000, + "funding_txid": "txid010020100201002010020100201002010020100201002010020100201002", + "funding_output": 2 + }, + { + "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "connected": false, + "state": "ONCHAIN", + "channel_id": "channelid1100011000110001100011000110001100011000110001100011000", + "our_amount_msat": 38000000, + "amount_msat": 13000000, + "funding_txid": "txid010030100301003010030100301003010030100301003010030100301003", + "funding_output": 3 } ] } @@ -20772,7 +19725,7 @@ "expiry": 126, "direction": "out", "amount_msat": 500000000, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -20781,7 +19734,7 @@ "expiry": 136, "direction": "out", "amount_msat": 10001, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -20790,7 +19743,7 @@ "expiry": 149, "direction": "out", "amount_msat": 10001, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -20799,7 +19752,7 @@ "expiry": 155, "direction": "out", "amount_msat": 10000202, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -20808,61 +19761,7 @@ "expiry": 152, "direction": "out", "amount_msat": 10001, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 5, - "expiry": 149, - "direction": "out", - "amount_msat": 10001, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 6, - "expiry": 132, - "direction": "out", - "amount_msat": 50001, - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 7, - "expiry": 142, - "direction": "out", - "amount_msat": 1002, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 8, - "expiry": 137, - "direction": "out", - "amount_msat": 10001, - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 0, - "expiry": 136, - "direction": "in", - "amount_msat": 1000000, - "payment_hash": "a003badd6ad30f05f56e3607fd538456b05b9aad6135a494dad5320010af5844", - "state": "SENT_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 9, - "expiry": 136, - "direction": "out", - "amount_msat": 400000, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301", "state": "RCVD_REMOVE_ACK_REVOCATION" } ] @@ -20882,7 +19781,7 @@ "expiry": 126, "direction": "out", "amount_msat": 500000000, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -20891,7 +19790,7 @@ "expiry": 136, "direction": "out", "amount_msat": 10001, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -20900,7 +19799,7 @@ "expiry": 149, "direction": "out", "amount_msat": 10001, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -20909,7 +19808,7 @@ "expiry": 155, "direction": "out", "amount_msat": 10000202, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -20918,61 +19817,7 @@ "expiry": 152, "direction": "out", "amount_msat": 10001, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 5, - "expiry": 149, - "direction": "out", - "amount_msat": 10001, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 6, - "expiry": 132, - "direction": "out", - "amount_msat": 50001, - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 7, - "expiry": 142, - "direction": "out", - "amount_msat": 1002, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 8, - "expiry": 137, - "direction": "out", - "amount_msat": 10001, - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 0, - "expiry": 136, - "direction": "in", - "amount_msat": 1000000, - "payment_hash": "a003badd6ad30f05f56e3607fd538456b05b9aad6135a494dad5320010af5844", - "state": "SENT_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 9, - "expiry": 136, - "direction": "out", - "amount_msat": 400000, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301", "state": "RCVD_REMOVE_ACK_REVOCATION" } ] @@ -21086,16 +19931,16 @@ "id": "example:listinvoicerequests#1", "method": "listinvoicerequests", "params": [ - "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9" + "invreqid03030303030303030303030303030303030303030303030303030303" ] }, "response": { "invoicerequests": [ { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202", "active": false, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", + "bolt12": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000", "used": false } ] @@ -21110,18 +19955,18 @@ "response": { "invoicerequests": [ { - "invreq_id": "93f193cd2432d292f8b64af08942989d71c0a0366fb52d57ddb688c8fb066399", + "invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202", "active": false, "single_use": true, - "bolt12": "lnr1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq947t0ks7a4yejz8w79x4zj25s3pu6zrnw2e0v2ugdescpcqsq307z4p2dlxe92fv7xd43qut0pjkg4y094hupqyhsj8dlhvmmfng6sv", - "used": true + "bolt12": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000", + "used": false }, { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "invreqid01010101010101010101010101010101010101010101010101010101", "active": false, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", - "used": false + "bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", + "used": true } ] } @@ -21444,15 +20289,15 @@ "invoices": [ { "label": "lbl_l21", - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "bolt11": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", + "payment_hash": "paymenthashinvl0210021002100210021002100210021002100210021002100", "status": "paid", "pay_index": 3, "amount_received_msat": 400000, - "paid_at": 1722303718, - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimager010101010101010101010101010101010101010101010101", "description": "l21 description", - "expires_at": 1722908486, + "expires_at": 1739000000, "created_index": 2, "updated_index": 3 } @@ -21469,119 +20314,65 @@ "invoices": [ { "label": "lbl balance l1 to l2", - "bolt11": "lnbcrt5m1pn2s39ksp53sknyy2mxxurt4y0wqgp730z0cnm0vz3zmzth8p79xsrtmg5llxspp5dp94v59nm6c99jf7lc07zmnhqw6kyujx3mkdav7643dczgtdedfqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqdz9cftkxe6kcqfddyrvr7j57ulsfxxxkgkjyhr3k77n8v59mzs5rmuexz9lxusyhhehlemd9ujclgahln8e0n8y86stc7u8uys6mjqgqerm6q4", - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "bolt11": "lnbcrt222n1pnt3005720bolt114000101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "amount_msat": 500000000, "status": "paid", "pay_index": 1, "amount_received_msat": 500000000, - "paid_at": 1722303671, - "payment_preimage": "bed4140e1db302720d7f9547dc9127d45b115080447cce7e23cfd00b60991831", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimgdp1010101010101010101010101010101010101010101010101", "description": "description send some sats l1 to l2", - "expires_at": 1722908470, + "expires_at": 1739000000, "created_index": 1, "updated_index": 1 }, { "label": "lbl_l21", - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "bolt11": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", + "payment_hash": "paymenthashinvl0210021002100210021002100210021002100210021002100", "status": "paid", "pay_index": 3, "amount_received_msat": 400000, - "paid_at": 1722303718, - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", + "paid_at": 1738510000, + "payment_preimage": "paymentpreimager010101010101010101010101010101010101010101010101", "description": "l21 description", - "expires_at": 1722908486, + "expires_at": 1739010000, "created_index": 2, "updated_index": 3 }, { "label": "lbl_l22", - "bolt11": "lnbcrt2u1pn2s3xxsp5cpcdj2cy5wpd2nphp2evrp9kqymxf9434zftkmdd6dlgmy8cu78qpp58yq5qf3h0694xwymzjs5e8eejce83vjmxv6cpwqv8cs9e05dxe4qdqcdserygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq9wlpxf8ur0q798646w94tduf6wfkaw7m0ecmxepgatd4utvsyvcy0pku9t8m39rlsjzhe8x53mup5jkn0f84clfj3ctc6qj09t35wxspycpup2", - "payment_hash": "39014026377e8b53389b14a14c9f39963278b25b333580b80c3e205cbe8d366a", + "bolt11": "lnbcrt100n1pnt2bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000", + "payment_hash": "paymenthashinvl0220022002200220022002200220022002200220022002200", "amount_msat": 200000, "status": "unpaid", "description": "l22 description", - "expires_at": 1722908486, - "created_index": 3 + "expires_at": 1739020000, + "created_index": 3, + "paid_at": 1738520000 }, { "label": "label inv_l24", - "bolt11": "lnbcrt1230n1pn2s38psp5jf2zk7py4wmutyq4pdr6783egft24nkyhfrxegrzzqnef2matw2qpp5rf5zgqyexdt7q5ean83cvcjuc3jafn8etm3c0za6xldwcyllvffqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydqcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq8nn5qkcp9xl5u7dlqamdys6e6yc0ngyqe676cqajnwax6657verj7at5gvdqu6nk3l0wcagq4muyhqqms4t0t9sfvyazpga5eywj6uqpyc409e", - "payment_hash": "1a682400993357e0533d99e386625cc465d4ccf95ee3878bba37daec13ff6252", + "bolt11": "lnbcrt100n1pnt2bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000", + "payment_hash": "paymenthashinvl0240024002400240024002400240024002400240024002400", "amount_msat": 123000, "status": "unpaid", "description": "description inv_l24", - "expires_at": 1722307313, - "created_index": 4 + "expires_at": 1739030000, + "created_index": 4, + "paid_at": 1738530000 }, { "label": "label inv_l25", - "bolt11": "lnbcrt1240n1pn2s38psp5ufjqj6kuxlvl65xue9p06ulyvwf9sm0utxlch59d0ynl05778vwspp5qlacxkrdmc2p50yl8lsl75pwmlhve2ret2yd2f34z7jfs7yffwvqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydgcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqkml60qaytvnd08p57w7enuna95s7cqej8cfuvsgjzpeq9u83s0hqh60667nrp40qkqxkdu36z8wqtmac5z3208rwyn0q2pv56sgz5dcp9mn5hc", - "payment_hash": "07fb83586dde141a3c9f3fe1ff502edfeecca8795a88d5263517a49878894b98", + "bolt11": "lnbcrt100n1pnt2bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000", + "payment_hash": "paymenthashinvl0250025002500250025002500250025002500250025002500", "amount_msat": 124000, "status": "unpaid", "description": "description inv_l25", - "expires_at": 1722307313, - "created_index": 5 - }, - { - "label": "label inv_l26", - "bolt11": "lnbcrt1250n1pn2s38psp5u22hlvy5mk7keq57m4fatz7aqnmh4whcuk45npdexrw4m5athcvqpp5ps4h5lt8waz5pprvad3skzssnksl2wxng985rcsuedp8teh29rkqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydscqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqyljtru0gcvqh7k5l9u8ulcuxw8fwa9qycyd32hl7wwdpjtlefgrpyjch6aprcdah2pthx3pku3y7c6dzluzjjy9c32cs3m5hqq6ww3sp0j4tr8", - "payment_hash": "0c2b7a7d67774540846ceb630b0a109da1f538d3414f41e21ccb4275e6ea28ec", - "amount_msat": 125000, - "status": "unpaid", - "description": "description inv_l26", - "expires_at": 1722307313, - "created_index": 6 - }, - { - "label": "lbl_l13", - "bolt11": "lnbcrt1u1pn2s38zsp5j9w8t9p2y6an5se63n3vkpp8c20vdsthtn78sv5t2lmt57l742wqpp5wtxkappzcsrlkmgfs6g0zyct0hkhashh7hsaxz7e65slq9fkx7fsdqcdscnxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqcjq9fq26ph2skcsm65xjwnw3crgygpampszjcvqs8aw2zf3jzcxqg4dh58fm8mxul29vh5urpyjkll9m4dq3807xcmq2q9yvgd5qt7qp695qvu", - "payment_hash": "72cd6e8422c407fb6d098690f1130b7ded7ec2f7f5e1d30bd9d521f015363793", - "amount_msat": 100000, - "status": "unpaid", - "description": "l13 description", - "expires_at": 1722908514, - "created_index": 7 - }, - { - "label": "lbl_l23", - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", - "status": "paid", - "pay_index": 2, - "amount_received_msat": 9900, - "paid_at": 1722303715, - "payment_preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", - "description": "l23 description", - "expires_at": 1722908514, - "created_index": 8, - "updated_index": 2 - }, - { - "label": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e-025f3305ae63d757b277dd49301833087ba6208e743ce95fa6e950fa80be407e5f-0", - "bolt12": "lni1qqg9g04gczk9ntk4gsjg3aptwykk2q3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssq38zq9q53nfwd5zqumpd3jjz93pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84sggztuesttnr6atmya7afycpsvcg0wnzprn58n54lfhf2ragp0jq0e04j9z5dpsku6mnypnx7u3qw35x2grxd9eksgdqnqpz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336kgr6euj6p39a209zw5kpkftk7h9te69vlmjg0arceagpaajague0zsszqk96htpgqn2wsznaas0zfdtf8v97ryz29jrn7rwgs5687ghgq5jusqr99dtx4jdj9nqpep5zxmynegrg6e7rm2l53ur8043h2yqzldyl5vh08h8ssaeq5jrvw9y24kztlwvc4nwagsuqqqqqqqqqqqqqqq9qqqqqqqqqqqqq8fykt06c5sqqqqqpfqyv65yfedgyqrp2s7qpxpjse8q8796qcrr5xwgfkqjue3urd6rs2rt2f68tk0vl2szyugtqggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vlqsy2n7vmpn67ltzrj70znp70sk4m530j5vceq6jhk97h7ttzn09sh8m9gecarrt27v2tux8z6rr06sj9h60r05p4vhkhzsp0xf9ea4jgg", - "payment_hash": "061543c009832864e03f8ba06063a19c84d812e663c1b7438286b527475d9ecf", - "amount_msat": 10000, - "status": "unpaid", - "description": "Fish sale!", - "expires_at": 1722310917, - "local_offer_id": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e", - "invreq_payer_note": "Thanks for the fish!", - "created_index": 9 - }, - { - "label": "f901018768e13ea2da95f437749e24d22d47b2a6ea3030ef66ae0281df49d94b-03014d72261012e28cb4711a985c1475eba04a0058f9d04321b4cf1de479711d6f-0", - "bolt12": "lni1qqg86u6jfl660zfuk22sexem37r7xq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqc0gfqq5pjrdanxvet9zsqs593pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84yqc7sjq9vqgztqssxq2dwgnpqyhz3j68zx5cts28t6aqfgq937wsgvsmfncau3uhz8t05zvqytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82eq2rdjuqaychg3jndvsjrlu6y08aeuh4ytw6f6ak5n24p5n8zmsz2sqgrg3rg89hqfh6n7dfr0fugvq20ehecd3ezc438l6uh4r8epaakn4lsqv4qgr3ks4yxngyflq339lza456xt8uly085umq3gwql3qyfge0ec03dezeg8xulz33ntlj8yd7dcra9564zrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s3894qsfwwvj3szk4yplg4fkw68nwzlwyc23457qx6v7xe38znuha72km6a2qv0gfq9syypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgz2rxjcsxs6s3lnngq9xeqn9pzy53n50p4ulcdvkx8dye7h8xgxpvjyg928m2txk2knl0zzfl7j82c6lq7xqlx83ey7z4aux9pjp4sp7", - "payment_hash": "9739928c056a903f45536768f370bee26151ad3c03699e3662714f97ef956deb", - "amount_msat": 2000000, - "status": "unpaid", - "description": "Coffee", - "expires_at": 1722310917, - "local_offer_id": "f901018768e13ea2da95f437749e24d22d47b2a6ea3030ef66ae0281df49d94b", - "created_index": 10 + "expires_at": 1739040000, + "created_index": 5, + "paid_at": 1738540000 } ] } @@ -21858,17 +20649,17 @@ "id": "example:listnodes#1", "method": "listnodes", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d" + "id": "nodeid030303030303030303030303030303030303030303030303030303030303" } }, "response": { "nodes": [ { - "nodeid": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "alias": "HOPPINGFIRE--190-g5fd2f9c-modded", + "nodeid": "nodeid030303030303030303030303030303030303030303030303030303030303", + "alias": "HOPPINGFIRE", "color": "035d2b", - "last_timestamp": 1722303669, - "features": "88a0802a8a59a1", + "last_timestamp": 1738000000, + "features": "88a0882a8a59a1", "addresses": [] } ] @@ -21883,35 +20674,35 @@ "response": { "nodes": [ { - "nodeid": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "alias": "SILENTARTIST-190-g5fd2f9c-modded", + "nodeid": "nodeid020202020202020202020202020202020202020202020202020202020202", + "alias": "SILENTARTIST", "color": "022d22", - "last_timestamp": 1722303662, - "features": "88a0802a8a59a1", + "last_timestamp": 1738000000, + "features": "88a0882a8a59a1", "addresses": [] }, { - "nodeid": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "alias": "JUNIORBEAM-5-190-g5fd2f9c-modded", + "nodeid": "nodeid010101010101010101010101010101010101010101010101010101010101", + "alias": "JUNIORBEAM", "color": "0266e4", - "last_timestamp": 1722303662, - "features": "88a0802a8a59a1", + "last_timestamp": 1738010000, + "features": "88a0882a8a59a1", "addresses": [] }, { - "nodeid": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "alias": "HOPPINGFIRE--190-g5fd2f9c-modded", + "nodeid": "nodeid030303030303030303030303030303030303030303030303030303030303", + "alias": "HOPPINGFIRE", "color": "035d2b", - "last_timestamp": 1722303669, - "features": "88a0802a8a59a1", + "last_timestamp": 1738020000, + "features": "88a0882a8a59a1", "addresses": [] }, { - "nodeid": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "alias": "JUNIORFELONY-190-g5fd2f9c-modded", + "nodeid": "nodeid040404040404040404040404040404040404040404040404040404040404", + "alias": "JUNIORFELONY", "color": "0382ce", - "last_timestamp": 1722303669, - "features": "88a0802a8a59a1", + "last_timestamp": 1738030000, + "features": "88a0882a8a59a1", "addresses": [] } ] @@ -22030,17 +20821,24 @@ "response": { "offers": [ { - "offer_id": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e", + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000", + "active": true, + "single_use": false, + "bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000", + "used": false + }, + { + "offer_id": "offeridl21000002100000210000021000002100000210000021000002100000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqgn3qzs2ge5hx6pqwdskcefpzcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "used": false }, { - "offer_id": "f901018768e13ea2da95f437749e24d22d47b2a6ea3030ef66ae0281df49d94b", + "offer_id": "offeridl22000002200000220000022000002200000220000022000002200000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv85ysq2qepk7enxv4j3gqg2zcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000bolt220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000", "used": false } ] @@ -22057,10 +20855,10 @@ "response": { "offers": [ { - "offer_id": "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24", - "active": false, + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000", + "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv0gfqq2zp8kven9wgs8gmeqg35hxctzd3j3vggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vs", + "bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000", "used": false } ] @@ -22299,7 +21097,7 @@ "id": "example:listpays#1", "method": "listpays", "params": { - "bolt11": "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll" + "bolt11": "lnbcrt100n1pnt2bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000" } }, "response": { @@ -22313,74 +21111,7 @@ "params": {} }, "response": { - "pays": [ - { - "bolt11": "lnbcrt5m1pn2s39hsp50pekdm9axtcfm0ttsxzg2z0738ujk5uc3n0v5rul2y2ghkeh772qpp50a60qe8lg55t0mru27xlvcnpwetu46d0ff60tuj0dr9cged3secqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcv3qw3hjqmpnxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqcjj3uz0ux4qxt4ev4patfwz44e7ns57tmvxdwzfq2pj5drm5xhk5agm8j2wha32g664a0mw6casy44vfdf76jj38n3669fsjps4jkaqpaydvjr", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670", - "status": "complete", - "created_at": 1722303671, - "completed_at": 1722303672, - "preimage": "d9893938f4464933d87f5123a8c09b4e98e106c9c34c1812340c9570d72d16a2", - "amount_msat": 500000000, - "amount_sent_msat": 500000000 - }, - { - "bolt11": "lnbcrt5m1pn2s39csp59778k5kecnjhyqu7amy99kt8nhu43ap74m8q3xryvqxrjnsrnxpqpp5s3fd8u9xnhgwtqpsq9jtcspzu4dmxvcatpvl2a3dje5055fmqrdqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcv3qw3hjqmp4xqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jx3rjwmh5d5rmgqqqqqpqqqqqzsqqc9qxpqysgqe4hfa6arms4pz6ajwhq07lhc57g60vrdqyfdsewu84q823m8zqdjtcsv7aun8zqxr86amyz0lclf8pfts0hqy60s9fcvvsjyxnnmpugpjcq9xk", - "destination": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", - "payment_hash": "8452d3f0a69dd0e580300164bc4022e55bb3331d5859f5762d9668fa513b00da", - "status": "complete", - "created_at": 1722303672, - "completed_at": 1722303673, - "preimage": "576f5426f339b3db80d1b3c3546d6832274171609f25795c64b6cc74aa158d8c", - "amount_msat": 500000000, - "amount_sent_msat": 500000000 - }, - { - "bolt11": "lnbcrt1u1pn2s3xxsp5xk8hs6zuv0yqhq7hhl0sps6mxuj78pzwryejaljh48vr4htykujqpp593ndc8wrukteld5j4nqnt6tedavh8ezv48dmrkqen3440ajnre5qdqcdsenxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq0asve9rdtfd9fe20u5vjujzmm0phpq538z8ndhn5ts62aflhktqn6338e45xcxkyf7askjjq25ksxt4eqarjjame8wfdmau7kq7m4csqs0n32n", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68", - "status": "complete", - "created_at": 1722303688, - "completed_at": 1722303689, - "preimage": "1ce8370d3a179cee3af25a5a6c7058e8e12033a842efd6d34abae53334bc94bf", - "amount_msat": 100000, - "amount_sent_msat": 100000 - }, - { - "bolt12": "lni1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e5zvqyehytxx360zptatj4pygsv9kpal8gnkeyd0tpvd6jv5rkv2uqdgcq2s27mvxt0arlnulnmce53cuz00vzaqvgvhpphxgavl89r8zrdhaxqgzpvxkkmwsmxnuwflttmnpc8vtzwlgd3cfty3xwlnlc9r2gcjesguqqv4xey4m7l4wxem27vxyxfhwznlc62kffsd5xncx9w49m4g72u2y7lcl6a3x5cpu52j6gm8q5x0q8k7myxdzrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s38p5cq442pq5qpm4ht26v8statwxcrl65uy26c9hx4dvy66f9x665eqqy90tpz25qc0gfqtqggzvmj9nrga83q474e2sjygxzmq7ln5fmvjxh4skxafx2pmx9wqx5v0qsqfkcrpht0d3nnt8txkcgf5wr6gzrlacls2gyrvj5hhwuu98shurrn6ayruunju7k9yu9clvaj354tr064ruuht88q5dj73kzru20uzj", - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "payment_hash": "a003badd6ad30f05f56e3607fd538456b05b9aad6135a494dad5320010af5844", - "status": "complete", - "created_at": 1722303713, - "completed_at": 1722303714, - "preimage": "6f154ed7d108349cb6385eba5f160294ef83862c2c560ba6446b2a3da5c2b3b3", - "amount_msat": 1000000, - "amount_sent_msat": 1000000 - }, - { - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", - "status": "complete", - "created_at": 1722303715, - "completed_at": 1722303715, - "preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", - "amount_msat": 9900, - "amount_sent_msat": 9900 - }, - { - "bolt11": "lnbcrt40n1pn2s3xxsp5j329vez86jvxw6543zlcla2fusm7v6h74pf7ftmmyfv6zm9uedlspp5j6xpxmq8cwd305vj2dvd6dh4mkr0s6guvehvyleymedgf4vsm3ysdqaveskjmr9vssxgetnvdexjur5d9hkuxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqk6uwy8pkv42jzhdna3z4vxpwkapdzzpn2tcpjnqj738nlpkjc583l9v72vlskt8y33rr4z3jma32xx7ve0jfy7anvn6r98cr5flhcuqqhr4shx", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", - "status": "complete", - "created_at": 1722303719, - "completed_at": 1722303720, - "preimage": "8815ee921dba644c076f9f879abb520d8539a6913856a439752eaaadff1e21ac", - "amount_msat": 4000, - "amount_sent_msat": 4000 - } - ] + "pays": [] } } ] @@ -23796,13 +22527,13 @@ "id": "example:listpeerchannels#1", "method": "listpeerchannels", "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + "id": "nodeid020202020202020202020202020202020202020202020202020202020202" } }, "response": { "channels": [ { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "peer_connected": true, "reestablished": true, "channel_type": { @@ -23831,10 +22562,10 @@ "fee_proportional_millionths": 10 } }, - "last_stable_connection": 1722303707, + "last_stable_connection": 1738510000, "state": "CHANNELD_NORMAL", - "scratch_txid": "80aa008578b3b6924f2362146907e46ad83351d5b9b056bd8537befc3f1d7d65", - "last_tx_fee_msat": 4221000, + "scratch_txid": "scratchid1010101010101010101010101010101010101010101010101010101", + "last_tx_fee_msat": 4867000, "lost_state": false, "feerate": { "perkw": 3755, @@ -23843,16 +22574,16 @@ "owner": "channeld", "short_channel_id": "109x1x1", "direction": 1, - "channel_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", - "funding_txid": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", + "channel_id": "channelid0120000120000120000120000120000120000120000120000120000", + "funding_txid": "channeltxid120000120000120000120000120000120000120000120000120000", "funding_outnum": 1, "close_to_addr": "bcrt1p8c0ku4mpxq3443rss8e6rjwamztvv8yxvmxtetal5d0n6v39rlwqvfqy6n", "close_to": "51203e1f6e576130235ac47081f3a1c9ddd896c61c8666ccbcafbfa35f3d32251fdc", "private": false, "opener": "local", "alias": { - "local": "2240075x4300189x56636", - "remote": "3321841x5311416x1695" + "local": "30000001x60000001x60001", + "remote": "10000001x20000001x30001" }, "features": [ "option_static_remotekey", @@ -23864,8 +22595,8 @@ "remote_funds_msat": 0, "pushed_msat": 0 }, - "to_us_msat": 490518792, - "min_to_us_msat": 489918792, + "to_us_msat": 390502790, + "min_to_us_msat": 390502790, "max_to_us_msat": 1000000000, "total_msat": 1000000000, "fee_base_msat": 1, @@ -23874,8 +22605,8 @@ "max_total_htlc_in_msat": 18446744073709552000, "their_reserve_msat": 10000000, "our_reserve_msat": 10000000, - "spendable_msat": 469223792, - "receivable_msat": 499481208, + "spendable_msat": 363961708, + "receivable_msat": 599497210, "minimum_htlc_in_msat": 0, "minimum_htlc_out_msat": 0, "maximum_htlc_out_msat": 990000000, @@ -23884,14 +22615,14 @@ "max_accepted_htlcs": 483, "state_changes": [ { - "timestamp": "2024-07-30T01:40:45.942Z", + "timestamp": "2024-10-10T00:01:00.000Z", "old_state": "DUALOPEND_OPEN_COMMITTED", "new_state": "DUALOPEND_AWAITING_LOCKIN", "cause": "user", "message": "Sigs exchanged, waiting for lock-in" }, { - "timestamp": "2024-07-30T01:40:47.619Z", + "timestamp": "2024-10-10T00:02:00.000Z", "old_state": "DUALOPEND_AWAITING_LOCKIN", "new_state": "CHANNELD_NORMAL", "cause": "user", @@ -23905,11 +22636,20 @@ "in_offered_msat": 1000000, "in_payments_fulfilled": 1, "in_fulfilled_msat": 1000000, - "out_payments_offered": 10, - "out_offered_msat": 510501210, - "out_payments_fulfilled": 8, - "out_fulfilled_msat": 510481208, - "htlcs": [] + "out_payments_offered": 20, + "out_offered_msat": 665517795, + "out_payments_fulfilled": 15, + "out_fulfilled_msat": 610497210, + "htlcs": [ + { + "direction": "out", + "id": 15, + "amount_msat": 4000082, + "expiry": 181, + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", + "state": "SENT_ADD_ACK_REVOCATION" + } + ] } ] } @@ -23923,7 +22663,7 @@ "response": { "channels": [ { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "peer_connected": true, "reestablished": true, "channel_type": { @@ -23952,10 +22692,10 @@ "fee_proportional_millionths": 10 } }, - "last_stable_connection": 1722303707, + "last_stable_connection": 1738520000, "state": "CHANNELD_NORMAL", - "scratch_txid": "80aa008578b3b6924f2362146907e46ad83351d5b9b056bd8537befc3f1d7d65", - "last_tx_fee_msat": 4221000, + "scratch_txid": "scratchid2020202020202020202020202020202020202020202020202020202", + "last_tx_fee_msat": 4867000, "lost_state": false, "feerate": { "perkw": 3755, @@ -23964,16 +22704,16 @@ "owner": "channeld", "short_channel_id": "109x1x1", "direction": 1, - "channel_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", - "funding_txid": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", + "channel_id": "channelid0120000120000120000120000120000120000120000120000120000", + "funding_txid": "channeltxid120000120000120000120000120000120000120000120000120000", "funding_outnum": 1, - "close_to_addr": "bcrt1p8c0ku4mpxq3443rss8e6rjwamztvv8yxvmxtetal5d0n6v39rlwqvfqy6n", - "close_to": "51203e1f6e576130235ac47081f3a1c9ddd896c61c8666ccbcafbfa35f3d32251fdc", + "close_to_addr": "bcrt1pcl00020002000200020002000200020002000200020002000200020002", + "close_to": "db2dec31020202020202020202020202020202020202020202020202020202020202", "private": false, "opener": "local", "alias": { - "local": "2240075x4300189x56636", - "remote": "3321841x5311416x1695" + "local": "30000002x60000002x60002", + "remote": "10000002x20000002x30002" }, "features": [ "option_static_remotekey", @@ -23985,8 +22725,8 @@ "remote_funds_msat": 0, "pushed_msat": 0 }, - "to_us_msat": 490518792, - "min_to_us_msat": 489918792, + "to_us_msat": 390502790, + "min_to_us_msat": 390502790, "max_to_us_msat": 1000000000, "total_msat": 1000000000, "fee_base_msat": 1, @@ -23995,8 +22735,8 @@ "max_total_htlc_in_msat": 18446744073709552000, "their_reserve_msat": 10000000, "our_reserve_msat": 10000000, - "spendable_msat": 469223792, - "receivable_msat": 499481208, + "spendable_msat": 363961708, + "receivable_msat": 599497210, "minimum_htlc_in_msat": 0, "minimum_htlc_out_msat": 0, "maximum_htlc_out_msat": 990000000, @@ -24005,14 +22745,14 @@ "max_accepted_htlcs": 483, "state_changes": [ { - "timestamp": "2024-07-30T01:40:45.942Z", + "timestamp": "2024-10-10T00:01:00.000Z", "old_state": "DUALOPEND_OPEN_COMMITTED", "new_state": "DUALOPEND_AWAITING_LOCKIN", "cause": "user", "message": "Sigs exchanged, waiting for lock-in" }, { - "timestamp": "2024-07-30T01:40:47.619Z", + "timestamp": "2024-10-10T00:02:00.000Z", "old_state": "DUALOPEND_AWAITING_LOCKIN", "new_state": "CHANNELD_NORMAL", "cause": "user", @@ -24026,11 +22766,165 @@ "in_offered_msat": 1000000, "in_payments_fulfilled": 1, "in_fulfilled_msat": 1000000, - "out_payments_offered": 10, - "out_offered_msat": 510501210, - "out_payments_fulfilled": 8, - "out_fulfilled_msat": 510481208, - "htlcs": [] + "out_payments_offered": 20, + "out_offered_msat": 665517795, + "out_payments_fulfilled": 15, + "out_fulfilled_msat": 610497210, + "htlcs": [ + { + "direction": "out", + "id": 15, + "amount_msat": 4000082, + "expiry": 181, + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", + "state": "SENT_ADD_ACK_REVOCATION" + } + ] + }, + { + "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "peer_connected": false, + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors/even" + ] + }, + "updates": { + "local": { + "htlc_minimum_msat": 0, + "htlc_maximum_msat": 19454000, + "cltv_expiry_delta": 6, + "fee_base_msat": 1, + "fee_proportional_millionths": 10 + } + }, + "state": "ONCHAIN", + "scratch_txid": "scratchid2030303030303030303030303030303030303030303030303030303", + "last_tx_fee_msat": 2250000, + "lost_state": false, + "feerate": { + "perkw": 3750, + "perkb": 15000 + }, + "direction": 0, + "channel_id": "channelid1100011000110001100011000110001100011000110001100011000", + "funding_txid": "channeltxid01050000500005000050000500005000050000500005000050000", + "funding_outnum": 1, + "initial_feerate": "10000perkw", + "last_feerate": "10000perkw", + "next_feerate": "10416perkw", + "inflight": [ + { + "funding_txid": "channeltxid01050000500005000050000500005000050000500005000050000", + "funding_outnum": 1, + "feerate": "10000perkw", + "total_funding_msat": 20000000, + "our_funding_msat": 20000000, + "splice_amount": 0, + "scratch_txid": "scratchid2030303030303030303030303030303030303030303030303030303" + } + ], + "close_to_addr": "bcrt1pcl00030003000300030003000300030003000300030003000300030003", + "close_to": "db2dec31030303030303030303030303030303030303030303030303030303030303", + "private": false, + "opener": "local", + "closer": "local", + "alias": { + "local": "30000003x60000003x60003", + "remote": "10000003x20000003x30003" + }, + "features": [ + "option_static_remotekey", + "option_anchors_zero_fee_htlc_tx", + "option_anchors" + ], + "funding": { + "local_funds_msat": 20000000, + "remote_funds_msat": 0, + "pushed_msat": 0 + }, + "to_us_msat": 20000000, + "min_to_us_msat": 20000000, + "max_to_us_msat": 20000000, + "total_msat": 20000000, + "fee_base_msat": 1, + "fee_proportional_millionths": 10, + "dust_limit_msat": 546000, + "max_total_htlc_in_msat": 18446744073709552000, + "their_reserve_msat": 546000, + "our_reserve_msat": 546000, + "spendable_msat": 8172000, + "receivable_msat": 0, + "minimum_htlc_in_msat": 0, + "minimum_htlc_out_msat": 0, + "maximum_htlc_out_msat": 19454000, + "their_to_self_delay": 5, + "our_to_self_delay": 5, + "max_accepted_htlcs": 483, + "state_changes": [ + { + "timestamp": "2024-10-10T00:01:00.000Z", + "old_state": "DUALOPEND_OPEN_COMMITTED", + "new_state": "DUALOPEND_AWAITING_LOCKIN", + "cause": "user", + "message": "Sigs exchanged, waiting for lock-in" + }, + { + "timestamp": "2024-10-10T00:02:00.000Z", + "old_state": "DUALOPEND_AWAITING_LOCKIN", + "new_state": "CHANNELD_SHUTTING_DOWN", + "cause": "user", + "message": "User or plugin invoked close command" + }, + { + "timestamp": "2024-10-10T00:03:00.000Z", + "old_state": "CHANNELD_SHUTTING_DOWN", + "new_state": "CLOSINGD_SIGEXCHANGE", + "cause": "user", + "message": "Start closingd" + }, + { + "timestamp": "2024-10-10T00:04:00.000Z", + "old_state": "CLOSINGD_SIGEXCHANGE", + "new_state": "CLOSINGD_COMPLETE", + "cause": "user", + "message": "Closing complete" + }, + { + "timestamp": "2024-10-10T00:05:00.000Z", + "old_state": "CLOSINGD_COMPLETE", + "new_state": "FUNDING_SPEND_SEEN", + "cause": "user", + "message": "Onchain funding spend" + }, + { + "timestamp": "2024-10-10T00:06:00.000Z", + "old_state": "FUNDING_SPEND_SEEN", + "new_state": "ONCHAIN", + "cause": "user", + "message": "Onchain init reply" + } + ], + "status": [ + "CLOSINGD_SIGEXCHANGE:We agreed on a closing fee of 2250 satoshi for tx:scratchid2030303030303030303030303030303030303030303030303030303", + "ONCHAIN:Tracking mutual close transaction", + "ONCHAIN:All outputs resolved: waiting 99 more blocks before forgetting channel" + ], + "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": [], + "last_stable_connection": 1738530000 } ] } @@ -24365,19 +23259,19 @@ "id": "example:listpeers#1", "method": "listpeers", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d" + "id": "nodeid030303030303030303030303030303030303030303030303030303030303" } }, "response": { "peers": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "connected": true, - "num_channels": 2, + "num_channels": 1, "netaddr": [ - "127.0.0.1:34785" + "127.0.0.1:19736" ], - "features": "08a0802a8a59a1" + "features": "08a0882a8a59a1" } ] } @@ -24391,31 +23285,28 @@ "response": { "peers": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid010101010101010101010101010101010101010101010101010101010101", "connected": true, - "num_channels": 2, + "num_channels": 1, "netaddr": [ - "127.0.0.1:34785" + "127.0.0.1:19734" ], - "features": "08a0802a8a59a1" + "features": "08a0882a8a59a1" }, { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "connected": true, "num_channels": 1, "netaddr": [ - "127.0.0.1:38251" + "127.0.0.1:19736" ], - "features": "08a0802a8a59a1" + "features": "08a0882a8a59a1" }, { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "connected": true, + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", + "connected": false, "num_channels": 1, - "netaddr": [ - "127.0.0.1:47032" - ], - "features": "08a0802a8a59a1" + "features": "08a0882a8a59a1" } ] } @@ -24766,7 +23657,7 @@ "id": "example:listsendpays#1", "method": "listsendpays", "params": { - "bolt11": "lnbcrt100n1pn2s396sp5v3en0qa3rrljw4m0wtz88sx99q20rarufhjpfysefhwhs42gvqjqpp56kvvl33d594nsxu0hzhesvazgqzlwv89fnpjcvtlanz3rl7x623qdp9f9h8vmmfvdjjqer9wd3hy6tsw35k7m3qdsenzxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq7za6z8kx2k5nul45zwttfz2njx3836v69mxqsl4ty9228pyjrkfnkymysy8ygsrrje9qf6j4tpalt5qkqusfp2esrsqc5ak7t4yzajgpezef54" + "bolt11": "lnbcrt100n1pnt2bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000" } }, "response": { @@ -24774,16 +23665,16 @@ { "created_index": 2, "id": 2, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "groupid": 1, "updated_index": 2, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303675, - "completed_at": 1722303677, + "created_at": 1738000000, + "completed_at": 1739000000, "status": "complete", - "payment_preimage": "984a10782218478cd39e1f9a16795d756c337662067023a3b690bffdb1593f76" + "payment_preimage": "paymentpreimagew010101010101010101010101010101010101010101010101" } ] } @@ -24796,146 +23687,75 @@ }, "response": { "payments": [ - { - "created_index": 1, - "id": 1, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", - "groupid": 1, - "updated_index": 1, - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount_msat": 500000000, - "amount_sent_msat": 500000000, - "created_at": 1722303670, - "completed_at": 1722303671, - "status": "complete", - "payment_preimage": "bed4140e1db302720d7f9547dc9127d45b115080447cce7e23cfd00b60991831", - "bolt11": "lnbcrt5m1pn2s39ksp53sknyy2mxxurt4y0wqgp730z0cnm0vz3zmzth8p79xsrtmg5llxspp5dp94v59nm6c99jf7lc07zmnhqw6kyujx3mkdav7643dczgtdedfqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqdz9cftkxe6kcqfddyrvr7j57ulsfxxxkgkjyhr3k77n8v59mzs5rmuexz9lxusyhhehlemd9ujclgahln8e0n8y86stc7u8uys6mjqgqerm6q4" - }, { "created_index": 2, "id": 2, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "groupid": 1, "updated_index": 2, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303675, - "completed_at": 1722303677, + "created_at": 1738000000, + "completed_at": 1739000000, "status": "complete", - "payment_preimage": "984a10782218478cd39e1f9a16795d756c337662067023a3b690bffdb1593f76" + "payment_preimage": "paymentpreimagew010101010101010101010101010101010101010101010101" }, { "created_index": 3, "id": 3, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101", "groupid": 0, "updated_index": 3, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303677, - "completed_at": 1722303679, + "created_at": 1738010000, + "completed_at": 1739010000, "status": "complete", - "payment_preimage": "0d802c9c611bae611d51afa8ddf396df8ba4e0580a2eccfd1120da97e70482a0" + "payment_preimage": "paymentpreimage1010101010101010101010101010101010101010101010101" }, { "created_index": 4, "id": 4, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201", "groupid": 0, "updated_index": 4, - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "destination": "nodeid040404040404040404040404040404040404040404040404040404040404", "amount_msat": 10000000, "amount_sent_msat": 10000202, - "created_at": 1722303679, - "completed_at": 1722303682, + "created_at": 1738020000, + "completed_at": 1739020000, "status": "complete", - "payment_preimage": "f76d6b7ef362f33e25eb5571e616f6e539a2c77caf0afa4227d1351546823664" + "payment_preimage": "paymentpreimage2020202020202020202020202020202020202020202020202" }, { "created_index": 5, "id": 5, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", + "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301", "groupid": 0, "updated_index": 5, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303682, - "completed_at": 1722303684, + "created_at": 1738030000, + "completed_at": 1739030000, "status": "failed" }, { "created_index": 6, "id": 6, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", + "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301", "groupid": 0, "updated_index": 6, "partid": 1, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303684, - "completed_at": 1722303686, + "created_at": 1738040000, + "completed_at": 1739040000, "status": "complete", - "payment_preimage": "4dad6dcf625f650a35a8199fbda18ea4f6717cdfadb40e6bed2bf5f96a4742b0" - }, - { - "created_index": 7, - "id": 7, - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "groupid": 1, - "updated_index": 7, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "amount_msat": 50000, - "amount_sent_msat": 50001, - "created_at": 1722303686, - "completed_at": 1722303688, - "status": "complete", - "payment_preimage": "0e07efd883f66b6b22ec7f2e7116e203c3fecc22eb8596a73eaf06c4befb0641", - "bolt11": "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll" - }, - { - "created_index": 8, - "id": 8, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "groupid": 1, - "updated_index": 8, - "amount_sent_msat": 1002, - "created_at": 1722303689, - "completed_at": 1722303692, - "status": "complete", - "payment_preimage": "5e49b520e86aaec8d798bf8107892fb87053d4cb27342518e4588aa609cf35cf" - }, - { - "created_index": 9, - "id": 9, - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", - "groupid": 1, - "updated_index": 9, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "amount_msat": 10000, - "amount_sent_msat": 10001, - "created_at": 1722303696, - "completed_at": 1722303698, - "status": "failed" - }, - { - "created_index": 10, - "id": 10, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", - "groupid": 1, - "updated_index": 10, - "partid": 1, - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount_msat": 400000, - "amount_sent_msat": 400000, - "created_at": 1722303718, - "completed_at": 1722303719, - "status": "complete", - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7" + "payment_preimage": "paymentpreimage3030303030303030303030303030303030303030303030303" } ] } @@ -25402,132 +24222,51 @@ "response": { "transactions": [ { - "hash": "1712c8af55f6853be3179bf20398689bb9204695fe3d6171c3248783218814e3", - "rawtx": "02000000000101096b01ae63d631e321f039d49df4c5b055ce3afa655a3d5c22c2a8594f41f5cd0000000000fdffffff02002d31010000000017a914655728f36cfe36d01aa50d3236704469f84a55408771c4d4280100000017a9147cdfb08e6e44fc1152c4f423225d2b7148248a9d870247304402202ff40c938d644198c10d60fe660c1380bd601b6dc4533b64c64d3809290edf4a022028206e39cc36423524816a34806a721061814478b297c2bfb2bc3c417548c466012102129f00a7502a031999fe81aa35afed6f09617a9748e5fdde0f7a0191d364f59b65000000", - "blockheight": 102, - "txindex": 1, - "locktime": 101, + "hash": "txid7000170001700017000170001700017000170001700017000170001", + "rawtx": "02000000000101lstx70001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001", + "blockheight": 0, + "txindex": 0, + "locktime": 549000100, "version": 2, "inputs": [ { - "txid": "cdf5414f59a8c2225c3d5a65fa3ace55b0c5f49dd439f021e331d663ae016b09", - "index": 0, - "sequence": 4294967293 - } - ], - "outputs": [ - { - "index": 0, - "amount_msat": 20000000000, - "scriptPubKey": "a914655728f36cfe36d01aa50d3236704469f84a554087" - }, - { + "txid": "txid600116001160011600116001160011600116001160011600116001160011", "index": 1, - "amount_msat": 4979999857000, - "scriptPubKey": "a9147cdfb08e6e44fc1152c4f423225d2b7148248a9d87" - } - ] - }, - { - "hash": "9454852bb62e304ee8933662284e10bd22a7f3710c262da4c94bdcc8b05ae407", - "rawtx": "02000000000101e3148821838724c371613dfe954620b99b689803f29b17e33b85f655afc812170000000017160014d6b969d36dffdad9869193f663ee480dfdc73488fdffffff0135143101000000002251206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b50247304402201b09adb26aa7674b2e4954bef85e5d4cb5baee1e20c91e6d26db624407588b4e022044bae97372215531507b464b7978e6f9dc25f986aed5ab62dbc011c1e80a544f012102b9c0c6844e12a531c968e55c55078ec16d9bf76be9290fd87d1cca72b4839a1766000000", - "blockheight": 103, - "txindex": 1, - "locktime": 102, - "version": 2, - "inputs": [ - { - "txid": "1712c8af55f6853be3179bf20398689bb9204695fe3d6171c3248783218814e3", - "index": 0, - "sequence": 4294967293 + "sequence": 2158511000 } ], "outputs": [ - { - "index": 0, - "amount_msat": 19993653000, - "scriptPubKey": "51206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b5" - } - ] - }, - { - "hash": "706e569239dfe88a33ae6d276ae68d6c787a2403ecf0ac97ed14eec28aa6039d", - "rawtx": "02000000000101e3148821838724c371613dfe954620b99b689803f29b17e33b85f655afc8121701000000171600142577677b3b18e431cfe9ac900e842b4d0567d251fdffffff0200c2eb0b00000000160014661c23b790dd3491373af0b1d8bed0877d5cde22cd01e91c010000001600140527f5b39d5b246fc5ed823c59ccdc5cc50e70580247304402205d01bd83c715b11e29040b0e8a193629194f638b7369270d668df172616d872302205bbad12ce8fc7a4694195dc3871302e808547b24e7098ffd089d0e340ccf3b950121034bcbb11214c52ca895d87add0c0de5a1dfb429966aa50f59afe33669319ea99266000000", - "blockheight": 103, - "txindex": 2, - "locktime": 102, - "version": 2, - "inputs": [ - { - "txid": "1712c8af55f6853be3179bf20398689bb9204695fe3d6171c3248783218814e3", - "index": 1, - "sequence": 4294967293 - } - ], - "outputs": [ - { - "index": 0, - "amount_msat": 200000000000, - "scriptPubKey": "0014661c23b790dd3491373af0b1d8bed0877d5cde22" - }, { "index": 1, - "amount_msat": 4779999693000, - "scriptPubKey": "00140527f5b39d5b246fc5ed823c59ccdc5cc50e7058" + "amount_msat": 201998901100, + "scriptPubKey": "scriptpubkey01010101010101010101010101010101010101010101010101010101" } ] }, { - "hash": "7547ffc11396c62852104f7100d5ca27a2b9c0d5d43d08122147b2b03eb157a5", - "rawtx": "02000000000101e4f55092d059070e27bc6d3a8cce1ba7137244e997c499ce47ca9828d82319fc0000000000fdffffff0280841e00000000001600149fb67bfcefee6cb7db4c7e55d9c6bfd749e31d1e8c721bed0000000016001442e74d56791e0c6447ebb87c612d324a8fd1e9f90247304402201843081a5417aec6d9e77e894ca159622d76360a16b9ee66e7d363a38ccd2a6102206b2dfb4bd0b0e8c25ed798842288c0ef3a0e328fa4f42d6fb5c479715ab2f0710121023770a6280695342030684ebaf25094a197f97acbb988e1ec8459b6228e20f8596b000000", - "blockheight": 108, - "txindex": 1, - "locktime": 107, + "hash": "txid7000270002700027000270002700027000270002700027000270002", + "rawtx": "02000000000101lstx70002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002", + "blockheight": 0, + "txindex": 0, + "locktime": 549000200, "version": 2, "inputs": [ { - "txid": "fc1923d82898ca47ce99c497e9447213a71bce8c3a6dbc270e0759d09250f5e4", - "index": 0, - "sequence": 4294967293 - } - ], - "outputs": [ - { - "index": 0, - "amount_msat": 2000000000, - "scriptPubKey": "00149fb67bfcefee6cb7db4c7e55d9c6bfd749e31d1e" - }, - { + "txid": "txid600126001260012600126001260012600126001260012600126001260012", "index": 1, - "amount_msat": 3977998988000, - "scriptPubKey": "001442e74d56791e0c6447ebb87c612d324a8fd1e9f9" - } - ] - }, - { - "hash": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", - "rawtx": "020000000001019d03a68ac2ee14ed97acf0ec03247a786c8de66a276dae338ae8df3992566e700000000000fdffffff02816cdc0b0000000022512035f1184f6b470c9df347da62c4b28e7ec9ee10b220bac3accd22209def0036ea40420f00000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd0247304402207336a772e8643be4dc672957feaa3c9d97dde0aa5d8014a35ebc4772d8dacf91022074cd9cf97077fbf2f5d380b3917565f05232cc07db22aef12f327d6603861d6f012103fa9c95085e42b1e5003cd1f418178c30c96e4ae77954ca0fc48c58826ff4eb0e6c000000", - "blockheight": 109, - "txindex": 1, - "locktime": 108, - "version": 2, - "inputs": [ - { - "txid": "706e569239dfe88a33ae6d276ae68d6c787a2403ecf0ac97ed14eec28aa6039d", - "index": 0, - "sequence": 4294967293 + "sequence": 2158512000 } ], "outputs": [ { - "index": 0, - "amount_msat": 198995073000, - "scriptPubKey": "512035f1184f6b470c9df347da62c4b28e7ec9ee10b220bac3accd22209def0036ea" + "index": 1, + "amount_msat": 201998902100, + "scriptPubKey": "scriptpubkey02010201020102010201020102010201020102010201020102010201" }, { - "index": 1, - "amount_msat": 1000000000, - "scriptPubKey": "00205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd" + "index": 2, + "amount_msat": 201998902200, + "scriptPubKey": "scriptpubkey02020202020202020202020202020202020202020202020202020202" } ] } @@ -25958,15 +24697,15 @@ "params": { "destinations": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d@127.0.0.1:34785", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303@127.0.0.1:19736", "amount": "20000sat" }, { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199@127.0.0.1:46213", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404@127.0.0.1:19737", "amount": "0.0003btc" }, { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e@127.0.0.1:38251", + "id": "nodeid050505050505050505050505050505050505050505050505050505050505@127.0.0.1:19738", "amount": "all" } ], @@ -25975,12 +24714,12 @@ } }, "response": { - "tx": "02000000000107feed56fc07fe7a3094f5f7c104f4ac8f3c96f6bf7c44df90619307d6f75c06850200000000fdffffff72819eb0ce9892c1025fd83e5e1a39fd30f79f843b489a32c20f45e67f37c5f30100000000fdffffff187f8d1b7292d57a46e23ae746c530741b8493dff74a7f62ca7e200204f6ec800000000000fdfffffffeed56fc07fe7a3094f5f7c104f4ac8f3c96f6bf7c44df90619307d6f75c06850100000000fdffffff07e45ab0c8dc4bc9a42d260c71f3a722bd104e28623693e84e302eb62b8554940000000000fdffffff187f8d1b7292d57a46e23ae746c530741b8493dff74a7f62ca7e200204f6ec800700000000fdffffff187f8d1b7292d57a46e23ae746c530741b8493dff74a7f62ca7e200204f6ec800400000000fdffffff040a8b250700000000220020f7bbe8f915381b4b9b1ca14cccbfd156eea19888550d01a5014f977e98c7fc8c204e000000000000220020369444aad3ac8c5452be625479f761587c42fbf66fecf644447daabc73c498223075000000000000220020d90c23ede7b77f89f4cae93da9326ba176d158a0b65faeaede5684c3c0f7c839a86100000000000022512018ece00b736f9ed77ed3a87426643c242223e3d6116a4cd6d90946f73de2ce71024730440220296f0d677ae2151a2fceb00c717483488f46aff309e28f36934ec3bcf914443f02204a7a20186d9b936e029c6b55df302386ad306f6738176945cf5d8607c18d16c7012102272a9a25f1ffed52fab04a2cc88aeab135b53723856a8f1481c26417f88a922e02473044022063c77ad73bd1993abc48b04b2f7b66ab7aa34f56f55c69b1c3e1868a4580554c0220466333d7e6e9163ec6ad6ef755be6e61a79a6a50ac8ad32d071b2819f2a113a60121029da47016812598be384212ce15793496c0ec2176a87e81c6432dae964f87c9870247304402205dfb4fcf67b12cf0fc3a1f3527bc37964c1604fb7ac11df2fd80b2bde605689d02203bbd1bcf5f92a6cd31c9459c9252d84fcd102fdfc8e367360e71ef047c704015012103d034f788f410c2ec2d89d161df3c3715f965248aa53eace463d10eca443eb1f20247304402203b12894f094c85c94bf7a898ddfe8d82359486aedb56b0891e5db83fee628dff0220478b954fd0514de5ff0d3273ed93d54f87e7d90e63f2d4b478a9a7669af2e1110121028a599168d3c97debc71bc66e6270ecf054f300d888309ba05471a482175dd9300140508f9706e9d6353d0a19a9128353fc8090948de09ee79afc35ae10c17ab0f894ec04eabf9187082bd31d3b63e9e52d99cbaef4c1f79dd6121024a7d3b4d994ec014054bdc1bab81661fd3ad8c0a65402abf2c2228da8f2150b6ce0cb8fddafd4c25a0318cc16cdbf72c5142dd6bbccb606cc7c2c39f91a218309dc5dadb7a74fe56b024730440220203ba0cc960cb70555e2096ecba5a5992b6b35ff621f736625360f836d208ce202207fa53d5ac33847fc166e03d888ef27c709dc65bfb79ece85d9d93bdda62c0ca501210267f4468ffafe6f919ae871f57f09690467f494e83e0358dc64d10472f9072f4c9b000000", - "txid": "9c3d4a6491eaa04c378101a7a7836f07409d04db8295b14930f89f7562744e18", + "tx": "02000000000101multif50000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000", + "txid": "channeltxid01050000500005000050000500005000050000500005000050000", "channel_ids": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel_id": "a9c39915cfa357205e3597ec62d92c541a2be7f44b9c6292e126aeddb11bf97e", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel_id": "channelid1100011000110001100011000110001100011000110001100011000", "channel_type": { "bits": [ 12, @@ -25994,8 +24733,8 @@ "outnum": 1 }, { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "channel_id": "a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", + "channel_id": "channelid1200012000120001200012000120001200012000120001200012000", "channel_type": { "bits": [ 12, @@ -26006,11 +24745,11 @@ "anchors/even" ] }, - "outnum": 2 + "outnum": 1 }, { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", - "channel_id": "e13472d6512413eb1bf03b9a0bb391d0e4152fd337fa6d1014e3de5e131918d9", + "id": "nodeid050505050505050505050505050505050505050505050505050505050505", + "channel_id": "channelid1300013000130001300013000130001300013000130001300013000", "channel_type": { "bits": [ 12, @@ -26021,7 +24760,7 @@ "anchors/even" ] }, - "outnum": 0 + "outnum": 1 } ], "failed": [] @@ -26034,15 +24773,15 @@ "params": { "destinations": [ { - "id": "03a389b3a2f7aa6f9f4ccc19f2bd7a2eba83596699e86b715caaaa147fc37f3144@127.0.0.1:34785", + "id": "fakenodeid03030303030303030303030303030303030303030303030303030303@127.0.0.1:19736", "amount": 50000 }, { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199@127.0.0.1:46213", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404@127.0.0.1:19737", "amount": 50000 }, { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518@127.0.0.1:39877", + "id": "nodeid010101010101010101010101010101010101010101010101010101010101@127.0.0.1:19734", "amount": 50000 } ], @@ -26050,12 +24789,12 @@ } }, "response": { - "tx": "0200000000010289da71f14f2e28c351f3f2cea6c9008fbf316cd353f6a084a17851afd37e5be70000000000fdffffffdcb684b96d9a2a37ef441c5eca75d15ef35ca8e16a6df21dca5fb6558400ca840000000000fdffffff022610250700000000225120def24e878a66b695c4d5b414b42b7ce94471dac985bb0afb0367e8bbb92c5a5250c30000000000002200209bd3269fda069b7ee0584622d458bb437635b3a179265dee3843ef18f42f35c601404a5e8638f6961d1c42609a5497346af9ba4cffb7f44cc8869c7e158627a8bb35884652fe1927d0b1917e9c22328339c33adedf93a7c86d90edba49eef4d949f301400373733215aeb64ca95e21b16be5772d3ad2ba7fa92faf842eeffab2c5741a66076cd1fb8af1c6c65456eeaf05f9ac80ce5502ae3ff88c40b632d8785bcd63799c000000", - "txid": "313dc9366eeab30a094fb85297673187cfb93aec0ec8610215f75d129d7c06e9", + "tx": "02000000000102multif60000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000", + "txid": "channeltxid02060000600006000060000600006000060000600006000060000", "channel_ids": [ { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "channel_id": "09eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", + "channel_id": "channelid1520015200152001520015200152001520015200152001520015200", "channel_type": { "bits": [ 12, @@ -26075,11 +24814,11 @@ "method": "connect", "error": { "code": 401, - "message": "All addresses failed: 127.0.0.1:34785: Cryptographic handshake: peer closed connection (wrong key?). " + "message": "All addresses failed: 127.0.0.1:19736: Cryptographic handshake: peer closed connection (wrong key?). " } }, { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "id": "nodeid010101010101010101010101010101010101010101010101010101010101", "method": "connect", "error": { "code": 402, @@ -26196,8 +24935,8 @@ } }, "response": { - "tx": "02000000000101057342aca7062873a4edd5a673980757885e5da8f68de3af254fe7c26d46e0700000000000fdffffff03df420700000000002251202b5dd0613b6e534f572dbcf4311b66e6cc8bb07e285928ddb6fa5791e4737874ae080000000000001600143d43d226bcc27019ade52d7a3dc52a7ac1be28b8050d000000000000160014d55c493983db651e10477455b1d408c31e7e9e310140beb27b31860b45464367b0f08334a0c90f3409ad176b9e21a35079495d6ce3dee0bbed786225ae56f59294466c9a14daf983375486dccaad7df3a7bc56b03faa87000000", - "txid": "85065cf7d607936190df447cbff6963c8facf404c1f7f594307afe07fc56edfe" + "tx": "02000000000155multiw55000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000", + "txid": "txid5500055000550005500055000550005500055000550005500055000" } }, { @@ -26231,8 +24970,8 @@ } }, "response": { - "tx": "02000000000101b621d886a10f33d5ad58c163a35cddf03bd435e3ed100f14af3fcdac1a7dff510100000000fdffffff08e803000000000000160014dfadaae18d57e4ef50e15b863d9e648bf9af67b1e8030000000000002251200978ea47f31ad6561d96ceee14e85192726536c4e1e59d09f217f3b5762b0630b53e1e000000000022512000dea9b3b059044ed411fe24d7bff4d1b3bbdd09a16034a096a4b175f7f5ac0fe80300000000000016001407905c6189c1ae8aff12566b03f35ff516d17e84e803000000000000160014a43b821a9790f880e113a395b717a0f354b9d9c6e80300000000000016001483bad0f86037b6f1194b4a6e2d813d9c1a30a730e803000000000000160014d1dc90a7bb3af91ed69e933dc38f555b580fad09e8030000000000002251202f843ba0c8de9d0c41a63a25d4cab22032be4fabf24931dab82214316be218ca0247304402203c885a48d44614905673678d31e1c6a42af612ca6cd20d65a2e81670cd11bf8a0220738dc66ca4c1c1d466d6195ddaaf7b0c98a60769b782c282ad1f9db30bb9784201210330a75acaed258be6bc02da9fab058abbe0e770caceb7c6496eaaea7014c3d39b87000000", - "txid": "80ecf60402207eca627f4af7df93841b7430c546e73ae2467ad592721b8d7f18" + "tx": "02000000000155multiw56000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000", + "txid": "txid5600056000560005600056000560005600056000560005600056000" } } ] @@ -26609,10 +25348,10 @@ } }, "response": { - "offer_id": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e", + "offer_id": "offeridl21000002100000210000021000002100000210000021000002100000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqgn3qzs2ge5hx6pqwdskcefpzcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "used": false, "created": true } @@ -26628,10 +25367,10 @@ } }, "response": { - "offer_id": "f901018768e13ea2da95f437749e24d22d47b2a6ea3030ef66ae0281df49d94b", + "offer_id": "offeridl22000002200000220000022000002200000220000022000002200000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv85ysq2qepk7enxv4j3gqg2zcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000bolt220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000", "used": false, "created": true } @@ -26720,11 +25459,11 @@ "id": "example:openchannel_abort#1", "method": "openchannel_abort", "params": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5" + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200" } }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", "channel_canceled": false, "reason": "Abort requested" } @@ -26911,13 +25650,13 @@ "params": [ "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", 1000000, - "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AUFZ3AsAAAAAIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUreYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000", "15000perkw" ] }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEITP+kZdFBsOIAAQMIQEIPAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQg8VGAuu93kPAABAwhBWdwLAAAAAAEEIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUrcM/AlsaWdodG5pbmcBCJhXLSQQ2IEcAA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000", "channel_type": { "bits": [ 12, @@ -26929,7 +25668,7 @@ ] }, "commitments_secured": false, - "funding_serial": 4347205294156014600, + "funding_serial": 17725655605188030000, "requires_confirmed_inputs": false } }, @@ -26938,15 +25677,15 @@ "id": "example:openchannel_bump#2", "method": "openchannel_bump", "params": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", "amount": 1000000, - "initialpsbt": "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AUFZ3AsAAAAAIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUreYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "initialpsbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000", "funding_feerate": "15000perkw" } }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIQCsNB0i02NIAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3DPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000", "channel_type": { "bits": [ 12, @@ -26958,7 +25697,7 @@ ] }, "commitments_secured": false, - "funding_serial": 10324133783552127000, + "funding_serial": 17725655605188040000, "requires_confirmed_inputs": false } }, @@ -26969,13 +25708,13 @@ "params": [ "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", 2000000, - "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AWINzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000", "18750perkw" ] }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIwRR1uu1r8GoAAQMIgIQeAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQjdRD+FoUsRIAABAwhiDc0LAAAAAAEEIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2gM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000", "channel_type": { "bits": [ 12, @@ -26987,7 +25726,7 @@ ] }, "commitments_secured": false, - "funding_serial": 15943938423967650000, + "funding_serial": 17725655605188050000, "requires_confirmed_inputs": false } } @@ -27213,14 +25952,14 @@ "id": "example:openchannel_init#1", "method": "openchannel_init", "params": { - "id": "03a00f49374e4bb876e766e9305e5fefa86e53dbc89a4f27d794b02f59ca316426", + "id": "nodeid121212121212121212121212121212121212121212121212121212121212", "amount": 1000000, - "initialpsbt": "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AahhAAAAAAAAIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+GZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" + "initialpsbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000" } }, "response": { "channel_id": "a5be438539f73c018a98a4b9dd557d62430881c56552025b5579d180cc3887ed", - "psbt": "cHNidP8BAgQCAAAAAQMEmQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAGzBTzTCENk6ggdL+V/LHCYeHlRIcHBtyNYdon39dT7vwEAAAAA/f///wKAhB4AAAAAACIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aJgAAAABAStiDc0LAAAAACJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oAQ4gmJB/+YSzg1wUV8PgrzFq46BKlvP/F562hdVYA8IjSHoBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEI/+im2BTLcnwAAQMIqGEAAAAAAAABBCJRIPt3fY6TZitIHrcoOVvjKd9QjyEQynCYP5mbP7mla0PhDPwJbGlnaHRuaW5nAQhfx1o3nKFaVgABAwhAQg8AAAAAAAEEIgAgBkixRgS2irzkjzD4bs/Wm7V/PQFNNgUvPR5aBVpSJHoM/AlsaWdodG5pbmcBCHHI3g73GwAQAA==", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000", "channel_type": { "bits": [ 12, @@ -27232,7 +25971,7 @@ ] }, "commitments_secured": false, - "funding_serial": 8199047277484638000, + "funding_serial": 17725655605188010000, "requires_confirmed_inputs": false } }, @@ -27241,14 +25980,14 @@ "id": "example:openchannel_init#2", "method": "openchannel_init", "params": [ - "03a00f49374e4bb876e766e9305e5fefa86e53dbc89a4f27d794b02f59ca316426", + "nodeid121212121212121212121212121212121212121212121212121212121212", 500000, - "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE+ZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000" ] }, "response": { "channel_id": "b3b2e46371876858784cd1b87ecf406e32d8f98b7a44b7f436d1dca317ce0f1b", - "psbt": "cHNidP8BAgQCAAAAAQMEmQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAGzBTzTCENk6ggdL+V/LHCYeHlRIcHBtyNYdon39dT7vwEAAAAA/f///wKAhB4AAAAAACIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aJgAAAABAStiDc0LAAAAACJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oAQ4gmJB/+YSzg1wUV8PgrzFq46BKlvP/F562hdVYA8IjSHoBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEILfzCFE4M1pQAAQMIIKEHAAAAAAABBCIAIMG0H4vceOuMkzqvG9svQmglTygLSd9kn0qrQFRmpEvIDPwJbGlnaHRuaW5nAQhU+Hu3eGH5tgABAwj2UcULAAAAAAEEIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE8M/AlsaWdodG5pbmcBCG0sGEoFgVYuAA==", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000", "channel_type": { "bits": [ 12, @@ -27260,7 +25999,7 @@ ] }, "commitments_secured": false, - "funding_serial": 6122779721339107000, + "funding_serial": 17725655605188020000, "requires_confirmed_inputs": false } } @@ -27361,14 +26100,14 @@ "id": "example:openchannel_signed#1", "method": "openchannel_signed", "params": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "signed_psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIHlCL2oKhnYn6hhaUG8+V+8D6GHFlI61OM507VB6aBwoAiACA2d5TnCdlJ1j2rF/EIHkxl3W0hBp3QqweO7hEul9aQEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOILMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCEArDQdItNjSAAEDCEFZ3AsAAAAAAQQiUSA74Tflo81LdhBFqIwHKNMkNRg28E7Vnf2jebjYRkZStyEHE0cioCqqq2UZ2npxQi9Q6DXNZheODM6F4GjHHS3XScEJAG/ctUwEAAAADPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==" + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "signed_psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000" } }, "response": { - "tx": "02000000000101b3053cd3084364ea081d2fe57f2c709878795121c1c1b723587689f7f5d4fbbf0100000000fdffffff024159dc0b000000002251203be137e5a3cd4b761045a88c0728d324351836f04ed59dfda379b8d8464652b740420f0000000000220020c9bc5c063caefbf7a6c7814407b5627b4f81a8b56ecbe932c682f9cbac0d19df02473044022079422f6a0a867627ea185a506f3e57ef03e861c5948eb538ce74ed507a681c280220020367794e709d949d63dab17f1081e4c65dd6d21069dd0ab078eee112e97d69012102473d79cf4a10e7ba834c026aac43ea18b0a7fb75ecda5184bfafa8c46615f6b798000000", - "txid": "ed994900569f2fddca6d86675f2e2247000197ee69aa53348e63e16fbaf39409", - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5" + "tx": "02000000000101sgpsbt11000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000", + "txid": "txidocsigned1011000110001100011000110001100011000110001100011000", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200" } }, { @@ -27377,13 +26116,13 @@ "method": "openchannel_signed", "params": [ "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIA8+zCzZ59t2OEFHWefZeTypY89RRQ8dMQCjtGWw6gskAiArELH1MvjW6j1G1CKnLZdV+/oabLDU48ingGSPFDOYxwEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOILMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCMEUdbrta/BqAAEDCICEHgAAAAAAAQQiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z3wz8CWxpZ2h0bmluZwEI3UQ/haFLESAAAQMIYg3NCwAAAAABBCJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oIQeffk+gJsmVIxDZ8UKPKgJB9CLvaUr9xqOEogpzJx1hbAkAEioNzwUAAAAM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000" ] }, "response": { - "tx": "02000000000101b3053cd3084364ea081d2fe57f2c709878795121c1c1b723587689f7f5d4fbbf0100000000fdffffff0280841e0000000000220020c9bc5c063caefbf7a6c7814407b5627b4f81a8b56ecbe932c682f9cbac0d19df620dcd0b00000000225120c9183ede9121f3c6fd1498822c47a760273227669c909508843bac5bbd813f680247304402200f3ecc2cd9e7db7638414759e7d9793ca963cf51450f1d3100a3b465b0ea0b2402202b10b1f532f8d6ea3d46d422a72d9755fbfa1a6cb0d4e3c8a780648f143398c7012102473d79cf4a10e7ba834c026aac43ea18b0a7fb75ecda5184bfafa8c46615f6b798000000", - "txid": "7a4823c20358d585b69e17fff3964aa0e36a31afe0c357145c83b384f97f9098", - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5" + "tx": "02000000000101sgpsbt12000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000", + "txid": "txidocsigned1012000120001200012000120001200012000120001200012000", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200" } } ] @@ -27599,13 +26338,13 @@ "id": "example:openchannel_update#1", "method": "openchannel_update", "params": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIQCsNB0i02NIAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3DPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==" + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000" } }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIQCsNB0i02NIAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3DPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000", "channel_type": { "bits": [ 12, @@ -27627,12 +26366,12 @@ "method": "openchannel_update", "params": [ "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIwRR1uu1r8GoAAQMIgIQeAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQjdRD+FoUsRIAABAwhiDc0LAAAAAAEEIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2gM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000" ] }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIwRR1uu1r8GoAAQMIgIQeAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQjdRD+FoUsRIAABAwhiDc0LAAAAAAEEIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2gM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000", "channel_type": { "bits": [ 12, @@ -27644,7 +26383,7 @@ ] }, "commitments_secured": true, - "funding_outnum": 0, + "funding_outnum": 1, "close_to": "51202321a432c9022a560c7dae78bdb72c605c373961edd29c42aa98c183782d052a" } } @@ -27991,17 +26730,17 @@ "id": "example:pay#1", "method": "pay", "params": [ - "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll" + "lnbcrt100n1pnt2bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000" ] }, "response": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "created_at": 1722303686.2193663, + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "payment_hash": "paymenthashinvl0320032003200320032003200320032003200320032003200", + "created_at": 1738000000, "parts": 1, "amount_msat": 50000, "amount_sent_msat": 50001, - "payment_preimage": "0e07efd883f66b6b22ec7f2e7116e203c3fecc22eb8596a73eaf06c4befb0641", + "payment_preimage": "paymentpreimagep010101010101010101010101010101010101010101010101", "status": "complete" } }, @@ -28010,17 +26749,17 @@ "id": "example:pay#2", "method": "pay", "params": { - "bolt11": "lnbcrt1u1pn2s3xxsp5xk8hs6zuv0yqhq7hhl0sps6mxuj78pzwryejaljh48vr4htykujqpp593ndc8wrukteld5j4nqnt6tedavh8ezv48dmrkqen3440ajnre5qdqcdsenxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq0asve9rdtfd9fe20u5vjujzmm0phpq538z8ndhn5ts62aflhktqn6338e45xcxkyf7askjjq25ksxt4eqarjjame8wfdmau7kq7m4csqs0n32n" + "bolt11": "lnbcrt100n1pnt2bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000" } }, "response": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68", - "created_at": 1722303688.41859, + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "payment_hash": "paymenthashinvl0330033003300330033003300330033003300330033003300", + "created_at": 1738000000, "parts": 1, "amount_msat": 100000, "amount_sent_msat": 100000, - "payment_preimage": "1ce8370d3a179cee3af25a5a6c7058e8e12033a842efd6d34abae53334bc94bf", + "payment_preimage": "paymentpreimagep020202020202020202020202020202020202020202020202", "status": "complete" } } @@ -28096,7 +26835,7 @@ "id": "example:ping#1", "method": "ping", "params": { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "id": "nodeid010101010101010101010101010101010101010101010101010101010101", "len": 128, "pongbytes": 128 } @@ -28110,7 +26849,7 @@ "id": "example:ping#2", "method": "ping", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "len": 1000, "pongbytes": 65535 } @@ -28366,6 +27105,11 @@ "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/recklessrpc", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/recover", "active": true, @@ -28386,6 +27130,11 @@ "active": true, "dynamic": false }, + { + "name": "/root/lightning/plugins/cln-askrene", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/sql", "active": true, @@ -28474,6 +27223,11 @@ "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/recklessrpc", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/recover", "active": true, @@ -28494,6 +27248,11 @@ "active": true, "dynamic": false }, + { + "name": "/root/lightning/plugins/cln-askrene", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/sql", "active": true, @@ -28559,7 +27318,7 @@ "id": "example:preapproveinvoice#1", "method": "preapproveinvoice", "params": { - "bolt11": "lnbcrt1230n1pn2s38psp5jf2zk7py4wmutyq4pdr6783egft24nkyhfrxegrzzqnef2matw2qpp5rf5zgqyexdt7q5ean83cvcjuc3jafn8etm3c0za6xldwcyllvffqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydqcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq8nn5qkcp9xl5u7dlqamdys6e6yc0ngyqe676cqajnwax6657verj7at5gvdqu6nk3l0wcagq4muyhqqms4t0t9sfvyazpga5eywj6uqpyc409e" + "bolt11": "lnbcrt100n1pnt2bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000" } }, "response": {} @@ -28569,7 +27328,7 @@ "id": "example:preapproveinvoice#2", "method": "preapproveinvoice", "params": [ - "lnbcrt1240n1pn2s38psp5ufjqj6kuxlvl65xue9p06ulyvwf9sm0utxlch59d0ynl05778vwspp5qlacxkrdmc2p50yl8lsl75pwmlhve2ret2yd2f34z7jfs7yffwvqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydgcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqkml60qaytvnd08p57w7enuna95s7cqej8cfuvsgjzpeq9u83s0hqh60667nrp40qkqxkdu36z8wqtmac5z3208rwyn0q2pv56sgz5dcp9mn5hc" + "lnbcrt100n1pnt2bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000" ] }, "response": {} @@ -28644,7 +27403,7 @@ "id": "example:preapprovekeysend#1", "method": "preapprovekeysend", "params": { - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", "payment_hash": "0000000000000000000000000000000000000000000000000000000000000000", "amount_msat": 1000 } @@ -28656,7 +27415,7 @@ "id": "example:preapprovekeysend#2", "method": "preapprovekeysend", "params": [ - "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", + "nodeid050505050505050505050505050505050505050505050505050505050505", "0101010101010101010101010101010101010101010101010101010101010101", 2000 ] @@ -28768,7 +27527,7 @@ "method": "reckless", "params": { "command": "search", - "target/subcommand": "backup" + "target/subcommand": "testplugpyproj" } }, "response": { @@ -28777,11 +27536,9 @@ ], "log": [ "DEBUG: Warning: Reckless requires write access", - "DEBUG: fetching from gh API: https://github.com/repos/lightningd/plugins/contents/", - "DEBUG: fetching from gh API: https://github.com/repos/lightningd/plugins/git/trees/294f93d7060799439c994daa84f534c4d1458325", - "INFO: found backup in source: https://github.com/lightningd/plugins", + "INFO: found testplugpass in source: https://github.com/lightningd/plugins", "DEBUG: entry: None", - "DEBUG: sub-directory: backup" + "DEBUG: sub-directory: testplugpass" ] } }, @@ -28792,65 +27549,64 @@ "params": { "command": "install", "target/subcommand": [ - "summars", - "currecyrate" + "testplugpass@v1", + "testplugpyproj" ] } }, "response": { "result": [ - "/tmp/l1/reckless/summars", - "/tmp/l1/reckless/currencyrate" + "/tmp/.lightning/reckless/testplugpass", + "/tmp/.lightning/reckless/testplugpyproj" ], "log": [ - "DEBUG: Searching for summars", - "DEBUG: fetching from gh API: https://github.com/repos/lightningd/plugins/contents/", - "DEBUG: fetching from gh API: https://github.com/repos/lightningd/plugins/git/trees/294f93d7060799439c994daa84f534c4d1458325", - "INFO: found summars in source: https://github.com/lightningd/plugins", + "DEBUG: testing for a commit/tag in plugin name", + "DEBUG: Searching for testplugpass", + "INFO: found testplugpass in source: https://github.com/lightningd/plugins", "DEBUG: entry: None", - "DEBUG: sub-directory: summars", - "DEBUG: Retrieving summars from https://github.com/lightningd/plugins", - "DEBUG: Install requested from InstInfo(summars, https://github.com/lightningd/plugins, None, None, None, summars).", - "INFO: cloning Source.GITHUB_REPO InstInfo(summars, https://github.com/lightningd/plugins, None, None, None, summars)", - "DEBUG: cloned_src: InstInfo(summars, /tmp/reckless-726255950dyifh_fh/clone, None, Cargo.toml, Cargo.toml, summars/summars)", - "DEBUG: using latest commit of default branch", - "DEBUG: checked out HEAD: 5e449468bd57db7d0f33178fe0dc867e0da94133", - "DEBUG: using installer rust", - "DEBUG: creating /tmp/l1/reckless/summars", - "DEBUG: creating /tmp/l1/reckless/summars/source", - "DEBUG: copying /tmp/reckless-726255950dyifh_fh/clone/summars/summars tree to /tmp/l1/reckless/summars/source/summars", - "DEBUG: linking source /tmp/l1/reckless/summars/source/summars/Cargo.toml to /tmp/l1/reckless/summars/Cargo.toml", - "DEBUG: InstInfo(summars, /tmp/l1/reckless/summars, None, Cargo.toml, Cargo.toml, source/summars)", - "DEBUG: cargo installing from /tmp/l1/reckless/summars/source/summars", - "DEBUG: rust project compiled successfully", - "INFO: plugin installed: /tmp/l1/reckless/summars", - "DEBUG: activating summars", - "INFO: summars enabled", - "DEBUG: Searching for currencyrate", - "DEBUG: fetching from gh API: https://github.com/repos/lightningd/plugins/contents/", - "DEBUG: fetching from gh API: https://github.com/repos/lightningd/plugins/git/trees/294f93d7060799439c994daa84f534c4d1458325", - "INFO: found currencyrate in source: https://github.com/lightningd/plugins", + "DEBUG: sub-directory: testplugpass", + "DEBUG: Retrieving testplugpass from https://github.com/lightningd/plugins", + "DEBUG: Install requested from InstInfo(testplugpass, https://github.com/lightningd/plugins, None, None, None, testplugpass).", + "INFO: cloning Source.GITHUB_REPO InstInfo(testplugpass, https://github.com/lightningd/plugins, None, None, None, testplugpass)", + "DEBUG: cloned_src: InstInfo(testplugpass, /tmp/reckless-0123456789abcdefg/clone, None, testplugpass.py, requirements.txt, testplugpass/testplugpass)", + "DEBUG: Checking out v1", + "DEBUG: checked out HEAD: 012abc345def678ghi901jkl234mno567pqr89st", + "DEBUG: using installer python3venv", + "DEBUG: creating /tmp/.lightning/reckless/testplugpass", + "DEBUG: creating /tmp/.lightning/reckless/testplugpass/source", + "DEBUG: copying /tmp/reckless-0123456789abcdefg/clone/testplugpass/testplugpass tree to /tmp/.lightning/reckless/testplugpass/source/testplugpass", + "DEBUG: linking source /tmp/.lightning/reckless/testplugpass/source/testplugpass/testplugpass.py to /tmp/.lightning/reckless/testplugpass/testplugpass.py", + "DEBUG: InstInfo(testplugpass, /tmp/.lightning/reckless/testplugpass, None, testplugpass.py, requirements.txt, source/testplugpass)", + "DEBUG: configuring a python virtual environment (pip) in /tmp/.lightning/reckless/testplugpass/.venv", + "DEBUG: virtual environment created in /tmp/.lightning/reckless/testplugpass/.venv.", + "INFO: dependencies installed successfully", + "DEBUG: virtual environment for cloned plugin: .venv", + "INFO: plugin installed: /tmp/.lightning/reckless/testplugpass", + "DEBUG: activating testplugpass", + "INFO: testplugpass enabled", + "DEBUG: Searching for testplugpyproj", + "INFO: found testplugpyproj in source: https://github.com/lightningd/plugins", "DEBUG: entry: None", - "DEBUG: sub-directory: currencyrate", - "DEBUG: Retrieving currencyrate from https://github.com/lightningd/plugins", - "DEBUG: Install requested from InstInfo(currencyrate, https://github.com/lightningd/plugins, None, None, None, currencyrate).", - "INFO: cloning Source.GITHUB_REPO InstInfo(currencyrate, https://github.com/lightningd/plugins, None, None, None, currencyrate)", - "DEBUG: cloned_src: InstInfo(currencyrate, /tmp/reckless-192564272t478naxn/clone, None, currencyrate.py, requirements.txt, currencyrate/currencyrate)", + "DEBUG: sub-directory: testplugpyproj", + "DEBUG: Retrieving testplugpyproj from https://github.com/lightningd/plugins", + "DEBUG: Install requested from InstInfo(testplugpyproj, https://github.com/lightningd/plugins, None, None, None, testplugpyproj).", + "INFO: cloning Source.GITHUB_REPO InstInfo(testplugpyproj, https://github.com/lightningd/plugins, None, None, None, testplugpyproj)", + "DEBUG: missing dependency for InstInfo(testplugpyproj, /tmp/reckless-0123456789abcdefg/clone, None, None, None, None)", + "DEBUG: cloned_src: InstInfo(testplugpyproj, /tmp/reckless-0123456789abcdefg/clone, None, testplugpyproj.py, pyproject.toml, testplugpyproj/testplugpyproj)", "DEBUG: using latest commit of default branch", - "DEBUG: checked out HEAD: 5e449468bd57db7d0f33178fe0dc867e0da94133", - "DEBUG: using installer python3venv", - "DEBUG: creating /tmp/l1/reckless/currencyrate", - "DEBUG: creating /tmp/l1/reckless/currencyrate/source", - "DEBUG: copying /tmp/reckless-192564272t478naxn/clone/currencyrate/currencyrate tree to /tmp/l1/reckless/currencyrate/source/currencyrate", - "DEBUG: linking source /tmp/l1/reckless/currencyrate/source/currencyrate/currencyrate.py to /tmp/l1/reckless/currencyrate/currencyrate.py", - "DEBUG: InstInfo(currencyrate, /tmp/l1/reckless/currencyrate, None, currencyrate.py, requirements.txt, source/currencyrate)", - "DEBUG: configuring a python virtual environment (pip) in /tmp/l1/reckless/currencyrate/.venv", - "DEBUG: virtual environment created in /tmp/l1/reckless/currencyrate/.venv.", + "DEBUG: checked out HEAD: 012abc345def678ghi901jkl234mno567pqr89st", + "DEBUG: using installer poetryvenv", + "DEBUG: creating /tmp/.lightning/reckless/testplugpyproj", + "DEBUG: creating /tmp/.lightning/reckless/testplugpyproj/source", + "DEBUG: copying /tmp/reckless-0123456789abcdefg/clone/testplugpyproj/testplugpyproj tree to /tmp/.lightning/reckless/testplugpyproj/source/testplugpyproj", + "DEBUG: linking source /tmp/.lightning/reckless/testplugpyproj/source/testplugpyproj/testplugpyproj.py to /tmp/.lightning/reckless/testplugpyproj/testplugpyproj.py", + "DEBUG: InstInfo(testplugpyproj, /tmp/.lightning/reckless/testplugpyproj, None, testplugpyproj.py, pyproject.toml, source/testplugpyproj)", + "DEBUG: configuring a python virtual environment (poetry) in /tmp/.lightning/reckless/testplugpyproj/.venv", "INFO: dependencies installed successfully", "DEBUG: virtual environment for cloned plugin: .venv", - "INFO: plugin installed: /tmp/l1/reckless/currencyrate", - "DEBUG: activating currencyrate", - "INFO: currencyrate enabled" + "INFO: plugin installed: /tmp/.lightning/reckless/testplugpyproj", + "DEBUG: activating testplugpyproj", + "DEBUG: testplugpyproj is already running" ] } } @@ -28989,25 +27745,25 @@ "request": { "id": "example:recoverchannel#1", "method": "recoverchannel", - "params": [ - [ - "0000000000000006f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5900017f0000019b987577c455da982b1753df79c56f9d8d2b75d1401e60a5af322ab27b13b20d75970000000100000000000f42400003401000", - "000000000000000121bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610e23fcc9e6306ce636b203217b22409bf9bab2211f9f432de781dedb6377dab5a0000000100000000000f42400003401000", - "00000000000000027512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610ee1db407eb3e47be3e93e1abc05b13806ee7aef8550c517a4974c72bf91866410000000100000000000f42400003401000", - "0000000000000003222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f0000019bc5b15661ec5c17599de0858401b72d6be66c34b48a3bb6e679542809f395e6bb2000000000000000000bebb3cb0003401000", - "0000000000000004a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ac184e7462759ff83049b19582db049d40076f83a7a70181374ca0ea91644a3d9c0000000200000000000075300003401000", - "000000000000000509eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ace9067c9d125df7150261c80eec3ab9cf8731679752b84f090ab3ea6e36c93d3100000001000000000000c3500003401000" + "params": { + "scb": [ + "0000000000000001channelid0340000340000340000340000340000340000340000340000340000nodeid03030303030303030303030303030303030303030303030303030303030300017f000001034003400340034003400340034003400340034003400340034003400340034003400340034003400340034003400003401000", + "0000000000000002channelid0340200340200340200340200340200340200340200340200340200nodeid03030303030303030303030303030303030303030303030303030303030300017f000001034203420342034203420342034203420342034203420342034203420342034203420342034203420342034203420003401000", + "0000000000000003channelid0410000410000410000410000410000410000410000410000410000nodeid01010101010101010101010101010101010101010101010101010101010100017f000001041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100003401000", + "0000000000000004channelid0120000120000120000120000120000120000120000120000120000nodeid01010101010101010101010101010101010101010101010101010101010100017f000001012001200120012001200120012001200120012001200120012001200120012001200120012001200120012001200003401000", + "0000000000000005channelid1520015200152001520015200152001520015200152001520015200nodeid01010101010101010101010101010101010101010101010101010101010100017f000001015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520003401000", + "0000000000000006channelid1240012400124001240012400124001240012400124001240012400nodeid02020202020202020202020202020202020202020202020202020202020200017f000001012401240124012401240124012401240124012401240124012401240124012401240124012401240124012401240003401000" ] - ] + } }, "response": { "stubs": [ - "f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb", + "09eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a", "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", "222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa", + "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", "a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a", - "09eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a" + "f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb" ] } } @@ -29213,20 +27969,20 @@ "id": "example:renepay#1", "method": "renepay", "params": { - "invstring": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", + "invstring": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", "amount_msat": 400000 } }, "response": { - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", + "bolt11": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", "amount_msat": 400000, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "created_at": 1722303718.0730329, + "payment_hash": "paymenthashinvl0210021002100210021002100210021002100210021002100", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", + "created_at": 1738000000, "groupid": 1, "parts": 2, "status": "complete", - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", + "payment_preimage": "paymentpreimager010101010101010101010101010101010101010101010101", "amount_sent_msat": 400000 } }, @@ -29235,19 +27991,19 @@ "id": "example:renepay#2", "method": "renepay", "params": { - "invstring": "lnbcrt40n1pn2s3xxsp5j329vez86jvxw6543zlcla2fusm7v6h74pf7ftmmyfv6zm9uedlspp5j6xpxmq8cwd305vj2dvd6dh4mkr0s6guvehvyleymedgf4vsm3ysdqaveskjmr9vssxgetnvdexjur5d9hkuxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqk6uwy8pkv42jzhdna3z4vxpwkapdzzpn2tcpjnqj738nlpkjc583l9v72vlskt8y33rr4z3jma32xx7ve0jfy7anvn6r98cr5flhcuqqhr4shx" + "invstring": "lnbcrt100n1pnt2bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000" } }, "response": { - "bolt11": "lnbcrt40n1pn2s3xxsp5j329vez86jvxw6543zlcla2fusm7v6h74pf7ftmmyfv6zm9uedlspp5j6xpxmq8cwd305vj2dvd6dh4mkr0s6guvehvyleymedgf4vsm3ysdqaveskjmr9vssxgetnvdexjur5d9hkuxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqk6uwy8pkv42jzhdna3z4vxpwkapdzzpn2tcpjnqj738nlpkjc583l9v72vlskt8y33rr4z3jma32xx7ve0jfy7anvn6r98cr5flhcuqqhr4shx", + "bolt11": "lnbcrt100n1pnt2bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000", "amount_msat": 4000, - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "created_at": 1722303719.1643083, + "payment_hash": "paymenthashinvl0340034003400340034003400340034003400340034003400", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "created_at": 1738000000, "groupid": 1, "parts": 2, "status": "complete", - "payment_preimage": "8815ee921dba644c076f9f879abb520d8539a6913856a439752eaaadff1e21ac", + "payment_preimage": "paymentpreimager020202020202020202020202020202020202020202020202", "amount_sent_msat": 4000 } } @@ -29396,21 +28152,21 @@ "id": "example:renepaystatus#1", "method": "renepaystatus", "params": { - "invstring": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7" + "invstring": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000" } }, "response": { "paystatus": [ { - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", + "bolt11": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", "amount_msat": 400000, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "created_at": 1722303718.0730329, + "payment_hash": "paymenthashinvl0210021002100210021002100210021002100210021002100", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", + "created_at": 1738000000, "groupid": 1, "parts": 2, "status": "complete", - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", + "payment_preimage": "paymentpreimager010101010101010101010101010101010101010101010101", "amount_sent_msat": 400000 } ] @@ -29532,13 +28288,13 @@ "id": "example:reserveinputs#1", "method": "reserveinputs", "params": { - "psbt": "cHNidP8BADMCAAAAAfcJ+tPRXly5UFuX2jOOOBUcBBjfDGAC8vLWfrkJf/O2AQAAAAD9////AAAAAAAAAA==" + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100" } }, "response": { "reservations": [ { - "txid": "b6f37f09b97ed6f2f202600cdf18041c15388e33da975b50b95c5ed1d3fa09f7", + "txid": "channeltxid111200111200111200111200111200111200111200111200111200", "vout": 1, "was_reserved": false, "reserved": true, @@ -29552,14 +28308,14 @@ "id": "example:reserveinputs#2", "method": "reserveinputs", "params": { - "psbt": "cHNidP8BADMCAAAAAQmU87pv4WOONFOqae6XAQBHIi5fZ4Ztyt0vn1YASZntAAAAAAD9////AAAAAAAAAA==" + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200" } }, "response": { "reservations": [ { - "txid": "ed994900569f2fddca6d86675f2e2247000197ee69aa53348e63e16fbaf39409", - "vout": 0, + "txid": "txidocsigned1011000110001100011000110001100011000110001100011000", + "vout": 1, "was_reserved": false, "reserved": true, "reserved_to_block": 226 @@ -29635,7 +28391,7 @@ "id": "example:sendcustommsg#1", "method": "sendcustommsg", "params": { - "node_id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "node_id": "nodeid030303030303030303030303030303030303030303030303030303030303", "msg": "77770012" } }, @@ -29853,22 +28609,22 @@ "id": "example:sendinvoice#1", "method": "sendinvoice", "params": { - "invreq": "lnr1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq947t0ks7a4yejz8w79x4zj25s3pu6zrnw2e0v2ugdescpcqsq307z4p2dlxe92fv7xd43qut0pjkg4y094hupqyhsj8dlhvmmfng6sv", + "invreq": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "label": "test sendinvoice" } }, "response": { "label": "test sendinvoice", - "bolt12": "lni1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e5zvqyehytxx360zptatj4pygsv9kpal8gnkeyd0tpvd6jv5rkv2uqdgcq2s27mvxt0arlnulnmce53cuz00vzaqvgvhpphxgavl89r8zrdhaxqgzpvxkkmwsmxnuwflttmnpc8vtzwlgd3cfty3xwlnlc9r2gcjesguqqv4xey4m7l4wxem27vxyxfhwznlc62kffsd5xncx9w49m4g72u2y7lcl6a3x5cpu52j6gm8q5x0q8k7myxdzrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s38p5cq442pq5qpm4ht26v8statwxcrl65uy26c9hx4dvy66f9x665eqqy90tpz25qc0gfqtqggzvmj9nrga83q474e2sjygxzmq7ln5fmvjxh4skxafx2pmx9wqx5v0qsqfkcrpht0d3nnt8txkcgf5wr6gzrlacls2gyrvj5hhwuu98shurrn6ayruunju7k9yu9clvaj354tr064ruuht88q5dj73kzru20uzj", - "payment_hash": "a003badd6ad30f05f56e3607fd538456b05b9aad6135a494dad5320010af5844", + "bolt12": "lno1qgsq000boltsi100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100", + "payment_hash": "paymenthashsdinvsi10si10si10si10si10si10si10si10si10si10si10si10", "amount_msat": 1000000, "status": "paid", "pay_index": 1, "amount_received_msat": 1000000, - "paid_at": 1722303714, - "payment_preimage": "6f154ed7d108349cb6385eba5f160294ef83862c2c560ba6446b2a3da5c2b3b3", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagei010101010101010101010101010101010101010101010101", "description": "Simple test", - "expires_at": 1722303803, + "expires_at": 1739000000, "created_index": 3, "updated_index": 1 } @@ -30208,26 +28964,26 @@ "id": "example:sendonion#1", "method": "sendonion", "params": { - "onion": "0003ccc1f8876af4810e23bd4cccd8f2f38ee5dc117f527c783fefa4e632f857c98d588d2e3150d16b78f9458777502e4829b490e8a2d560841eb0c2368311bf9bb4e8ded0356badafd915839409ad60866c24dd7580b468c14097575565ca95425b9f44211d9ad0305ddba2391a70892ac8c9fd7c3b67d0fe22faf5a0b6905ee2e22278fe224e89ea72c3fcc598b35afaa255123e61ae7a697703e3bb8aec4d36ea487df6ec27942aadff0527d178c897e75f1ee284995196b5ead963ee9d0df798c8265c00c5c73daac917d298cc17e5d813189321d914c45ef30170c4d617dae12bb3a760d1665705e61bb6c52789e15623cefc68d96b86a6f17159c4a86bb196c9f5e40a0744d08d6da0cfd587717b6d0d074d42ac0893fa6ae1497c84824f1d27670d4e201af5e9e5a3493b603cfc209bb0ee41b573ca647c5b9882272c972cd18f19fd895e8995097d86882a473f4d26118a7ed656c5ea04c2a183b05cc0191d07fab5e78edab4ab8ec58e05e03f32d150449c0c8e3505e46ae58e77c87616144873f72f4571b00ccf8e71bcdf33a7d32345aecb660970fa73c4844ab157aa322f140f5d47b66a0590273728ddb5b8a7f3577cff5a268935b93fe598d6df4413c67c45efa9461abaf3294070a484418aa28c03ac20d08856eb0c74dfca851e8ed110bdcacb2a2fb90954b04e99986fde0678846a709120b5d1eeab9cde8d9f27d77448f4591e00bf30d7580703e6c189c658746cf7a7cc1430ce41f84244612b438c3d895333848e5f55e99b2a9d28860863c11aaa8e3ef01ead7ba1545156c356424c33aeeaa2f1e2c290d1d8dd52cd7b8116159025aba26db6fb81ad7f9cc4554c6f9f13d16defe38918b32d62a0516521934a0009a8d37c9a84689bfd8fc1f0beceb92701dca11175e0099d7541698956ba5d93efff996f538ee47717ae6c5cda98111bc28c822e99cf8957b707de270f447b6e52d30bcf9b8a9befd8663bc54612b543d0e167da67e2f295207b70857d0a7cae8932d905db2f48c873dec20aeafa07e15fa98a088e529424c8b404f03ba0ee78a6639fde5cd37dee42877ff6489ce1de5a8992cae25dd20a6521955c19129fdcc0ea157913373bf47a8018a1dd825a2f8e26194d5008161360ae9b25fc701b2accbe88eb47eee6a50b7ee6d6e169e3905e03ca72e00eb6a51b7ed3d27501715428368662b822e2262749d3e7d3243c4fd3d825b3e72bebdeebf6e035f1ad6634523ab5dc0335611c19c9936d006f2e4cd8818eb4f8b4857c8f35d18a4891e35ff91e3b54b384398574d673fcc8da50b22b8f485a41223c97e3b8ee5b8e5ff9c00a2cbfe7360509d3fee9248b5eaa81bb83da3be45dfa8cbbbf5c52ba8749c9d6261d4239feea1e7ce85ad40ad0c66bbeb1c6898626ae4e710a66f9c39a5ee94581353b46e070cfcff9a14e3f9a6108d55bb92852eb3a50e89b1e45d31b760f2a4e263a6a876ad638b123ffee7a2b0b48e16175e3eb92bfaad4dbe0af8b2bc1c15fec5a9d92d3970c2ffab2ab8fa2c9de0bd276680a4284707cd8543a97bca2394e9514236129f1c50a932f7e9bfb98c2aaa6ffc9a4a30641061246de6edf0f711a8d25d59af42ee4445b22ce2f832f3ece52c18ca62d90c590729e04c47accaec95b556ee2541c84843c54a116f5cc45bc251a8023b695f0bf79c43a97bece8a761d387a466821984fb5ec438af20d14cebb7f0026988c81b5a1b895ef94df61aa509e53083b4306c42132b5ce302fd5a2fbb1cee30a7078ccaa3bdccf781b8c9d6ae016a5f8e5cb13f7ac1f3fd0d74a182c9abea67d346f0dfcfc211aaa7ff47196465398fce3e6e0f3b73a944a7f57a90cc6a8f1bfcd385f8312e23af6f508f4f8a976d750660ac3d63630555a3a2e7fe158a982aaf0278d9f8819e5cb", + "onion": "onion10101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010", "first_hop": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "channel": "109x1x1", "direction": 1, "amount_msat": 1002, "delay": 21, "style": "tlv" }, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" + "payment_hash": "assocdata0010101010101010101010101010101010101010101010101010101" } }, "response": { "message": "Monitor status with listpays or waitsendpay", "created_index": 8, "id": 8, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", + "payment_hash": "assocdata0010101010101010101010101010101010101010101010101010101", "groupid": 1, "amount_sent_msat": 1002, - "created_at": 1722303689, + "created_at": 1738000000, "status": "pending" } } @@ -30593,7 +29349,7 @@ "params": { "route": [ { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "channel": "109x1x1", "direction": 1, "amount_msat": 10001, @@ -30601,28 +29357,28 @@ "style": "tlv" }, { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "111x1x0", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel": "111x1x1", "direction": 0, "amount_msat": 10000, "delay": 9, "style": "tlv" } ], - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", - "payment_secret": "64733783b118ff27576f72c473c0c52814f1f47c4de41492194ddd7855486024" + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", + "payment_secret": "paymentsecretinvl00310003100031000310003100031000310003100031000" } }, "response": { "message": "Monitor status with listpays or waitsendpay", "created_index": 2, "id": 2, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "groupid": 1, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303675, + "created_at": 1738000000, "status": "pending" } } @@ -30700,12 +29456,12 @@ "id": "example:sendpsbt#1", "method": "sendpsbt", "params": { - "psbt": "cHNidP8BAHsCAAAAApYPhUDCjBy/IhQro1NgHyHktDtz752euhXVr901aH1zAAAAAAD9////pVexPrCyRyESCD3U1cC5oifK1QBxTxBSKMaWE8H/R3UAAAAAAP3///8Buuz6CwAAAAAWABTJCW1D9AjqUmAgJizNrXyFFrkqgQAAAAAAAQCJAgAAAAGdA6aKwu4U7Zes8OwDJHp4bI3maidtrjOK6N85klZucAAAAAAA/f///wKBbNwLAAAAACJRIDXxGE9rRwyd80faYsSyjn7J7hCyILrDrM0iIJ3vADbqQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzWwAAAABASuBbNwLAAAAACJRIDXxGE9rRwyd80faYsSyjn7J7hCyILrDrM0iIJ3vADbqARNAslo/GrzGxD6jx0S7hhxvKR8Eus+sP130lZLzFdEP0jIHUZnjDgbwVW/xgkL6M6xdWTIft2LwO6Jg/VxrnLUVniEWn8HNAfLSdwuCgeK6vBpMJF7dN7ty0S4gcjpp309fAfYJAMEg7UIAAAAAAAEAcQIAAAAB5PVQktBZBw4nvG06jM4bpxNyROmXxJnOR8qYKNgjGfwAAAAAAP3///8CgIQeAAAAAAAWABSftnv87+5st9tMflXZxr/XSeMdHoxyG+0AAAAAFgAUQudNVnkeDGRH67h8YS0ySo/R6flrAAAAAQEfgIQeAAAAAAAWABSftnv87+5st9tMflXZxr/XSeMdHiICAyjMj8l44gnxaV+ltWVQYdsaqyMRtSQXaUW/EBXvLUuJRzBEAiA9G0zR8z6JjbBAeg4wDezU0rLQB462lpdGQJwqrUxQFwIgL70Z0p7ASr4w+lDjPk0+m6WY5PafSiEiEO4tFuoHsHMBIgYDKMyPyXjiCfFpX6W1ZVBh2xqrIxG1JBdpRb8QFe8tS4kIn7Z7/AAAAAAAAA==" + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000" } }, "response": { - "tx": "02000000000102960f8540c28c1cbf22142ba353601f21e4b43b73ef9d9eba15d5afdd35687d730000000000fdffffffa557b13eb0b2472112083dd4d5c0b9a227cad500714f105228c69613c1ff47750000000000fdffffff01baecfa0b00000000160014c9096d43f408ea526020262ccdad7c8516b92a810140b25a3f1abcc6c43ea3c744bb861c6f291f04bacfac3f5df49592f315d10fd232075199e30e06f0556ff18242fa33ac5d59321fb762f03ba260fd5c6b9cb5159e0247304402203d1b4cd1f33e898db0407a0e300decd4d2b2d0078eb6969746409c2aad4c501702202fbd19d29ec04abe30fa50e33e4d3e9ba598e4f69f4a212210ee2d16ea07b07301210328cc8fc978e209f1695fa5b5655061db1aab2311b524176945bf1015ef2d4b8900000000", - "txid": "8861058bff4b5310d587d7a8b6936886a290b0bdaf2485b53c79972a32daa758" + "tx": "02000000000155multiw61000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000", + "txid": "txid6100061000610006100061000610006100061000610006100061000" } } ] @@ -30894,8 +29650,8 @@ "response": { "channels": [ { - "peer_id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel_id": "ecabe6d86abdd57565b3fb7e7c5d724e60ca1a07633951769b5dbfa48dc884b3", + "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel_id": "channelid0230200230200230200230200230200230200230200230200230200", "short_channel_id": "123x1x1", "fee_base_msat": 1, "fee_proportional_millionths": 10, @@ -30911,7 +29667,7 @@ "id": "example:setchannel#2", "method": "setchannel", "params": { - "id": "115x1x0", + "id": "115x1x1", "feebase": 4000, "feeppm": 300, "enforcedelay": 0 @@ -30920,9 +29676,9 @@ "response": { "channels": [ { - "peer_id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", - "channel_id": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", - "short_channel_id": "115x1x0", + "peer_id": "nodeid050505050505050505050505050505050505050505050505050505050505", + "channel_id": "channelid0250000250000250000250000250000250000250000250000250000", + "short_channel_id": "115x1x1", "fee_base_msat": 4000, "fee_proportional_millionths": 300, "minimum_htlc_out_msat": 0, @@ -31174,7 +29930,7 @@ "id": "example:setpsbtversion#1", "method": "setpsbtversion", "params": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAA==", + "psbt": "cHNidP8BAgpsbt1001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "version": 0 } }, @@ -31187,12 +29943,12 @@ "id": "example:setpsbtversion#2", "method": "setpsbtversion", "params": [ - "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEDAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQABAwjV3DIAAAAAAAEEIlEgoqAceWUonu5Wtc/N25hWxw+kdsJk0h9xHGppr3dq5AMA", + "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", 2 ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEDAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQABAwjV3DIAAAAAAAEEIlEgoqAceWUonu5Wtc/N25hWxw+kdsJk0h9xHGppr3dq5AMA" + "psbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" } } ] @@ -31376,7 +30132,7 @@ "runes": [ { "rune": "zFMd1fjhrAYxUeFA54TjloZqOt8JrA_i_nYwIgXkag49MA==", - "last_used": 1722303715.068215, + "last_used": 1738000000, "unique_id": "0", "restrictions": [], "restrictions_as_english": "" @@ -31394,14 +30150,14 @@ "runes": [ { "rune": "zFMd1fjhrAYxUeFA54TjloZqOt8JrA_i_nYwIgXkag49MA==", - "last_used": 1722303715.068215, + "last_used": 1738000000, "unique_id": "0", "restrictions": [], "restrictions_as_english": "" }, { "rune": "RXgu0DD_i0wSPEZkIDyZIWL0bSAGdhvJ_GHOQdTg04A9MSZpZF4wMjY2ZTQ1OThkMWQzYzQxNWY1NyZtZXRob2Q9bGlzdHBlZXJz", - "last_used": 1722303714.9302285, + "last_used": 1738000000, "unique_id": "1", "restrictions": [ { @@ -31431,7 +30187,7 @@ }, { "rune": "QUJEYMLGgiaJvMDv_MhR2hiMKIBTbq-PrL-KxcIlirQ9MiZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", - "last_used": 1722303715.1267006, + "last_used": 1738000000, "unique_id": "2", "restrictions": [ { @@ -31467,7 +30223,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -31500,13 +30256,13 @@ "alternatives": [ { "fieldname": "pnameid", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "pnameid equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" }, { "fieldname": "parr0", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "parr0 equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -31524,7 +30280,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -31640,11 +30396,11 @@ "id": "example:signinvoice#1", "method": "signinvoice", "params": { - "invstring": "lnbcrt10n1pn2s38psp5qnpucxgdnkrqur47x6vtxdk7xpzy3lf47kjqehm6wnuadj9rt86qpp5qg2ltzlhu2yn08f99t9zz6fjzhfmajg8h4eum43zg3gr0gdeamcsdqlv3jhxcmjd9c8g6t0dcsxjmnktakrzvsxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqg2kj0ma6weclle29pwpsdvnwa4r4yhw38wvly80mtysjf463r5y428k23dkp8ty0fugtzyjpcjsy0w7hhfmyzkwrlve93cr8jnm5sdgqzv7m0x" + "invstring": "lnbcrt100n1pnt2bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000" } }, "response": { - "bolt11": "lnbcrt10n1pn2s38psp5qnpucxgdnkrqur47x6vtxdk7xpzy3lf47kjqehm6wnuadj9rt86qpp5qg2ltzlhu2yn08f99t9zz6fjzhfmajg8h4eum43zg3gr0gdeamcsdqlv3jhxcmjd9c8g6t0dcsxjmnktakrzvsxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqq757xfxhd6hpctdfsq6vr2pltjvdv06t0z200hk0qslcydpf0pthmnzhu404w4qv89d25zv3smtsnyvqsaw6tf6tcl0lles6n29qh9gpyd3ml0" + "bolt11": "lnbcrt100n1pnt2bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000" } }, { @@ -31652,11 +30408,11 @@ "id": "example:signinvoice#2", "method": "signinvoice", "params": [ - "lnbcrt1250n1pn2s38psp5u22hlvy5mk7keq57m4fatz7aqnmh4whcuk45npdexrw4m5athcvqpp5ps4h5lt8waz5pprvad3skzssnksl2wxng985rcsuedp8teh29rkqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydscqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqyljtru0gcvqh7k5l9u8ulcuxw8fwa9qycyd32hl7wwdpjtlefgrpyjch6aprcdah2pthx3pku3y7c6dzluzjjy9c32cs3m5hqq6ww3sp0j4tr8" + "lnbcrt100n1pnt2bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000" ] }, "response": { - "bolt11": "lnbcrt1250n1pn2s38psp5u22hlvy5mk7keq57m4fatz7aqnmh4whcuk45npdexrw4m5athcvqpp5ps4h5lt8waz5pprvad3skzssnksl2wxng985rcsuedp8teh29rkqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydscqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq303kchnu5dvmrjam0m2yapk4d8vyx2uud3z0cpwsxern0d6f5sxqcg4rf05qczp5ncrpq4e6fsth28fxegv5gx9y7kt9f6tfhgw9dfqqckwpfv" + "bolt11": "lnbcrt100n1pnt2bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000" } } ] @@ -31826,11 +30582,11 @@ "id": "example:signpsbt#1", "method": "signpsbt", "params": { - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIQCsNB0i02NIAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3DPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==" + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000" } }, "response": { - "signed_psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIHlCL2oKhnYn6hhaUG8+V+8D6GHFlI61OM507VB6aBwoAiACA2d5TnCdlJ1j2rF/EIHkxl3W0hBp3QqweO7hEul9aQEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOILMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCEArDQdItNjSAAEDCEFZ3AsAAAAAAQQiUSA74Tflo81LdhBFqIwHKNMkNRg28E7Vnf2jebjYRkZStyEHE0cioCqqq2UZ2npxQi9Q6DXNZheODM6F4GjHHS3XScEJAG/ctUwEAAAADPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==" + "signed_psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000" } }, { @@ -31838,11 +30594,11 @@ "id": "example:signpsbt#2", "method": "signpsbt", "params": [ - "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIwRR1uu1r8GoAAQMIgIQeAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQjdRD+FoUsRIAABAwhiDc0LAAAAAAEEIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2gM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000" ] }, "response": { - "signed_psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIA8+zCzZ59t2OEFHWefZeTypY89RRQ8dMQCjtGWw6gskAiArELH1MvjW6j1G1CKnLZdV+/oabLDU48ingGSPFDOYxwEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOILMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCMEUdbrta/BqAAEDCICEHgAAAAAAAQQiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z3wz8CWxpZ2h0bmluZwEI3UQ/haFLESAAAQMIYg3NCwAAAAABBCJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oIQeffk+gJsmVIxDZ8UKPKgJB9CLvaUr9xqOEogpzJx1hbAkAEioNzwUAAAAM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==" + "signed_psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000" } } ] @@ -31961,13 +30717,13 @@ "id": "example:splice_init#1", "method": "splice_init", "params": { - "channel_id": "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", + "channel_id": "channelid0780000780000780000780000780000780000780000780000780000", "relative_amount": 100000, - "initialpsbt": "cHNidP8BAF4CAAAAAfYhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAQAAAAD9////Ac652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGCSAAAAAAEAiQIAAAAB+fmfTbLExUIRcwBZD0qxCoNAHIDe7sEfYHguS6nfkn4AAAAAAP3///8CQEIPAAAAAAAiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJloFs3AsAAAAAIlEgW7Q7f9oXFdDdAUFoJaGFIqLX7LFkdbiHgOj6/Bxz74mNAAAAAQErgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviQAA" + "initialpsbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000" } }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEImfI55kWjFBwAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQVHUiECVw7AtutUVmMwIYOmLqx10I/e62TzE1IZIGXWAcjKUh0hAmaGfDQrglCra07axtuuL95TeCtpzRcTmUn71PIISH/yUq4BDiD2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEPBAAAAAABEAQAAAAADPwJbGlnaHRuaW5nAQijTD4R+uEvhAABAwjOudoLAAAAAAEEIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGAM/AlsaWdodG5pbmcBCI/PBFM/C09aAAEDCAAAAAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIreWkThWNrsoA" + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000" } }, { @@ -31975,13 +30731,13 @@ "id": "example:splice_init#2", "method": "splice_init", "params": [ - "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", + "channelid0780000780000780000780000780000780000780000780000780000", -105000, - "cHNidP8BAgQCAAAAAQMElAAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIoIYBAAAAAAABBCJRIMTSgkFfmoHRjgi2GaGdEWuGVssb9JPl9UC797egWEzaAA==" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000" ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBBUdSIQJXDsC261RWYzAhg6YurHXQj97rZPMTUhkgZdYByMpSHSECZoZ8NCuCUKtrTtrG264v3lN4K2nNFxOZSfvU8ghIf/JSrgEOIJW7FYF67zRaxARLQco1KmOXtFQY8yFwpGexdGngFEX4AQ8EAQAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCF4tdoSn7LwCAAEDCAAAAAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIGQ1Quuj5CvAAAQMIoIYBAAAAAAABBCJRIMTSgkFfmoHRjgi2GaGdEWuGVssb9JPl9UC797egWEzaDPwJbGlnaHRuaW5nAQi4FyJ2dePgEAA=" + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000" } } ] @@ -32117,13 +30873,13 @@ "id": "example:splice_signed#1", "method": "splice_signed", "params": { - "channel_id": "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQBAAAAARAE/f///wETQKcuGy6h+BqXM6UBaTWpiX1wgQdVDWQdu3poUITFMK4JR7Jjaqy0IsnjfOXmaFZAUIS01Heqa7RbgzHF+5qDI/AhFvTEPeeTGXjlJSGiyNDqLm+lpUC+f31Q3j7YhyeyShxZCQD2T+TUAAAAAAz8CWxpZ2h0bmluZwEImfI55kWjFBwAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIo0w+EfrhL4QAAQMIzrnaCwAAAAABBCJRII+O1EYnVX28zEKuAYqcVHSpkShXksTKiRwfWcVmXTRgIQf4l/XsahrhZhlxJbtZN6e213tQQFKbPCTiBwSf3CvcvAkA9Hbq9AUAAAAM/AlsaWdodG5pbmcBCI/PBFM/C09aAAEDCODIEAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIreWkThWNrsoA" + "channel_id": "channelid0780000780000780000780000780000780000780000780000780000", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000" } }, "response": { - "tx": "02000000000102f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c0100000000fdfffffff62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c00000000000000000002ceb9da0b000000002251208f8ed44627557dbccc42ae018a9c5474a991285792c4ca891c1f59c5665d3460e0c810000000000022002093dedd0c265bca868576d3ee2e59eebbb20ebc296e58f7edca93d5eeaec089960140a72e1b2ea1f81a9733a5016935a9897d708107550d641dbb7a685084c530ae0947b2636aacb422c9e37ce5e66856405084b4d477aa6bb45b8331c5fb9a8323f00400473044022024af89f1987cfee986aacf511ed101aa083a8300d4ae4d6b87cd68fef4f722c60220263fd2a4750c7fbb08c433cc0d14e500c714820175454d18b5bef74e01cdc2f9014730440220306e4f6a09653e44f9306c6c47afb58d756d7ba2803f61184db3730ab208a8a302207c40845740e1e791d05957c75eb1b3e62db18fb5ec75039768972dc5efb881710147522102570ec0b6eb545663302183a62eac75d08fdeeb64f31352192065d601c8ca521d210266867c342b8250ab6b4edac6dbae2fde53782b69cd17139949fbd4f208487ff252ae92000000", - "txid": "f84514e06974b167a47021f31854b497632a35ca414b04c45a34ef7a8115bb95", + "tx": "02000000000101sendpt64000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000", + "txid": "txid6400064000640006400064000640006400064000640006400064000", "outnum": 1 } }, @@ -32132,14 +30888,14 @@ "id": "example:splice_signed#2", "method": "splice_signed", "params": [ - "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBDiCVuxWBeu80WsQES0HKNSpjl7RUGPMhcKRnsXRp4BRF+AEPBAEAAAABEAQAAAAADPwJbGlnaHRuaW5nAQheLXaEp+y8AgABAwi4Lg8AAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCBkNULro+QrwAAEDCKCGAQAAAAAAAQQiUSDE0oJBX5qB0Y4IthmhnRFrhlbLG/ST5fVAu/e3oFhM2gz8CWxpZ2h0bmluZwEIuBcidnXj4BAA" + "channelid0780000780000780000780000780000780000780000780000780000", + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000" ] }, "response": { - "tx": "0200000000010195bb15817aef345ac4044b41ca352a6397b45418f32170a467b17469e01445f801000000000000000002b82e0f000000000022002093dedd0c265bca868576d3ee2e59eebbb20ebc296e58f7edca93d5eeaec08996a086010000000000225120c4d282415f9a81d18e08b619a19d116b8656cb1bf493e5f540bbf7b7a0584cda04004730440220259ff7ffc38775f34aed9be01a57b3002b2cba938e8bdf37ee0d529401ca0ae102206f77ba80e128ed5096679a304078efbff423394f2ffeb286e307fc71af06773d0147304402206e715aa27e9f192a787949dd322dd8c41d69dbf0b134099b942f40f3727ecaa80220154ab1a180d2103884ac73307f6f5faa0e384d7d40dcda44a26c17fdd83a89910147522102570ec0b6eb545663302183a62eac75d08fdeeb64f31352192065d601c8ca521d210266867c342b8250ab6b4edac6dbae2fde53782b69cd17139949fbd4f208487ff252ae94000000", - "txid": "b81ed02d0235b63cb73d1ee840345a696bc7224ba28be590165aa340bc9e37de", - "outnum": 0 + "tx": "02000000000102sendpt65000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000", + "txid": "txid6500065000650006500065000650006500065000650006500065000", + "outnum": 1 } } ] @@ -32274,12 +31030,12 @@ "id": "example:splice_update#1", "method": "splice_update", "params": { - "channel_id": "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEImfI55kWjFBwAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQVHUiECVw7AtutUVmMwIYOmLqx10I/e62TzE1IZIGXWAcjKUh0hAmaGfDQrglCra07axtuuL95TeCtpzRcTmUn71PIISH/yUq4BDiD2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEPBAAAAAABEAQAAAAADPwJbGlnaHRuaW5nAQijTD4R+uEvhAABAwjOudoLAAAAAAEEIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGAM/AlsaWdodG5pbmcBCI/PBFM/C09aAAEDCAAAAAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIreWkThWNrsoA" + "channel_id": "channelid0780000780000780000780000780000780000780000780000780000", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000" } }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEImfI55kWjFBwAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIo0w+EfrhL4QAAQMIzrnaCwAAAAABBCJRII+O1EYnVX28zEKuAYqcVHSpkShXksTKiRwfWcVmXTRgDPwJbGlnaHRuaW5nAQiPzwRTPwtPWgABAwjgyBAAAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCK3lpE4Vja7KAA==", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000", "commitments_secured": true } }, @@ -32288,12 +31044,12 @@ "id": "example:splice_update#2", "method": "splice_update", "params": [ - "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBBUdSIQJXDsC261RWYzAhg6YurHXQj97rZPMTUhkgZdYByMpSHSECZoZ8NCuCUKtrTtrG264v3lN4K2nNFxOZSfvU8ghIf/JSrgEOIJW7FYF67zRaxARLQco1KmOXtFQY8yFwpGexdGngFEX4AQ8EAQAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCF4tdoSn7LwCAAEDCAAAAAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIGQ1Quuj5CvAAAQMIoIYBAAAAAAABBCJRIMTSgkFfmoHRjgi2GaGdEWuGVssb9JPl9UC797egWEzaDPwJbGlnaHRuaW5nAQi4FyJ2dePgEAA=" + "channelid0780000780000780000780000780000780000780000780000780000", + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000" ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBDiCVuxWBeu80WsQES0HKNSpjl7RUGPMhcKRnsXRp4BRF+AEPBAEAAAABEAQAAAAADPwJbGlnaHRuaW5nAQheLXaEp+y8AgABAwi4Lg8AAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCBkNULro+QrwAAEDCKCGAQAAAAAAAQQiUSDE0oJBX5qB0Y4IthmhnRFrhlbLG/ST5fVAu/e3oFhM2gz8CWxpZ2h0bmluZwEIuBcidnXj4BAA", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000", "commitments_secured": true } } @@ -32444,7 +31200,7 @@ "response": { "rows": [ [ - "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + "nodeid020202020202020202020202020202020202020202020202020202020202" ] ] } @@ -32457,26 +31213,15 @@ "id": "example:sql#2", "method": "sql", "params": [ - "SELECT nodeid,last_timestamp FROM nodes WHERE last_timestamp>=1669578892" + "SELECT label, description, status FROM invoices WHERE label='label inv_l12'" ] }, "response": { "rows": [ [ - "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - 1722303662 - ], - [ - "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - 1722303662 - ], - [ - "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - 1722303669 - ], - [ - "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - 1722303669 + "label inv_l12", + "description inv_l12", + "unpaid" ] ] } @@ -32489,19 +31234,19 @@ "id": "example:sql#3", "method": "sql", "params": [ - "SELECT nodeid FROM nodes WHERE nodeid != x'035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d'" + "SELECT nodeid FROM nodes WHERE nodeid != x'nodeid030303030303030303030303030303030303030303030303030303030303'" ] }, "response": { "rows": [ [ - "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + "nodeid020202020202020202020202020202020202020202020202020202020202" ], [ - "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" + "nodeid010101010101010101010101010101010101010101010101010101010101" ], [ - "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199" + "nodeid040404040404040404040404040404040404040404040404040404040404" ] ] } @@ -32514,16 +31259,16 @@ "id": "example:sql#4", "method": "sql", "params": [ - "SELECT nodeid FROM nodes WHERE nodeid IN (x'0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518', x'035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d')" + "SELECT nodeid FROM nodes WHERE nodeid IN (x'nodeid010101010101010101010101010101010101010101010101010101010101', x'nodeid030303030303030303030303030303030303030303030303030303030303')" ] }, "response": { "rows": [ [ - "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" + "nodeid010101010101010101010101010101010101010101010101010101010101" ], [ - "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d" + "nodeid030303030303030303030303030303030303030303030303030303030303" ] ] } @@ -32536,14 +31281,13 @@ "id": "example:sql#5", "method": "sql", "params": [ - "SELECT peer_id, short_channel_id, to_us_msat, total_msat, peerchannels_status.status FROM peerchannels INNER JOIN peerchannels_status ON peerchannels_status.row = peerchannels.rowid" + "SELECT peer_id, to_us_msat, total_msat, peerchannels_status.status FROM peerchannels INNER JOIN peerchannels_status ON peerchannels_status.row = peerchannels.rowid" ] }, "response": { "rows": [ [ - "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "109x1x1", + "nodeid020202020202020202020202020202020202020202020202020202020202", 490503792, 1000000000, "CHANNELD_NORMAL:Channel ready for use." @@ -32581,20 +31325,20 @@ "response": { "rows": [ [ - 23, - 18, + 27, + 22, 0, "option_static_remotekey" ], [ - 24, - 18, + 28, + 22, 1, "option_anchors_zero_fee_htlc_tx" ], [ - 25, - 18, + 29, + 22, 2, "option_anchors" ] @@ -32650,12 +31394,12 @@ }, "response": { "scb": [ - "0000000000000006f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5900017f0000019b987577c455da982b1753df79c56f9d8d2b75d1401e60a5af322ab27b13b20d75970000000100000000000f42400003401000", - "000000000000000121bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610e23fcc9e6306ce636b203217b22409bf9bab2211f9f432de781dedb6377dab5a0000000100000000000f42400003401000", - "00000000000000027512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610ee1db407eb3e47be3e93e1abc05b13806ee7aef8550c517a4974c72bf91866410000000100000000000f42400003401000", - "0000000000000003222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f0000019bc5b15661ec5c17599de0858401b72d6be66c34b48a3bb6e679542809f395e6bb2000000000000000000bebb3cb0003401000", - "0000000000000004a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ac184e7462759ff83049b19582db049d40076f83a7a70181374ca0ea91644a3d9c0000000200000000000075300003401000", - "000000000000000509eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ace9067c9d125df7150261c80eec3ab9cf8731679752b84f090ab3ea6e36c93d3100000001000000000000c3500003401000" + "0000000000000001channelid0340000340000340000340000340000340000340000340000340000nodeid03030303030303030303030303030303030303030303030303030303030300017f000001034003400340034003400340034003400340034003400340034003400340034003400340034003400340034003400003401000", + "0000000000000002channelid0340200340200340200340200340200340200340200340200340200nodeid03030303030303030303030303030303030303030303030303030303030300017f000001034203420342034203420342034203420342034203420342034203420342034203420342034203420342034203420003401000", + "0000000000000003channelid0410000410000410000410000410000410000410000410000410000nodeid01010101010101010101010101010101010101010101010101010101010100017f000001041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100003401000", + "0000000000000004channelid0120000120000120000120000120000120000120000120000120000nodeid01010101010101010101010101010101010101010101010101010101010100017f000001012001200120012001200120012001200120012001200120012001200120012001200120012001200120012001200003401000", + "0000000000000005channelid1520015200152001520015200152001520015200152001520015200nodeid01010101010101010101010101010101010101010101010101010101010100017f000001015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520003401000", + "0000000000000006channelid1240012400124001240012400124001240012400124001240012400nodeid02020202020202020202020202020202020202020202020202020202020200017f000001012401240124012401240124012401240124012401240124012401240124012401240124012401240124012401240003401000" ] } } @@ -32774,12 +31518,12 @@ "id": "example:txdiscard#1", "method": "txdiscard", "params": [ - "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67" + "txidtxprep000100001000010000100001000010000100001000010000100001" ] }, "response": { - "unsigned_tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020a056363be8c7dbb511098cc50fbca24843e6ed6de03f816465f1998a9a82a09d4183980000000000225120f1393467c717cd50de2760167d4311141a8f750c89f54fd2c900601a7da8434c95000000", - "txid": "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67" + "unsigned_tx": "0200000000000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006", + "txid": "txidtxprep000100001000010000100001000010000100001000010000100001" } }, { @@ -32787,12 +31531,12 @@ "id": "example:txdiscard#2", "method": "txdiscard", "params": { - "txid": "91a189eb69a436e49735ae1e8619fd96a342a4e5c63fa2baa7e9f69ecdc7434c" + "txid": "txidtxprep000300003000030000300003000030000300003000030000300003" } }, "response": { - "unsigned_tx": "02000000010cbdd42439292d7a59620493020f2a204488bfa4d640eedb84af5d3bd6479aea0000000000fdffffff0240420f00000000002200200fefd5034808bec0c94b857b7a3ddeeece7cae1b2101b2f23f1c114b14073f31b7a1f000000000002251205c54c6ff7b25c08e66a91d4256a5ca2c374ab1faf56377e8d65466cf997614ce97000000", - "txid": "91a189eb69a436e49735ae1e8619fd96a342a4e5c63fa2baa7e9f69ecdc7434c" + "unsigned_tx": "0200000000000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008", + "txid": "txidtxprep000300003000030000300003000030000300003000030000300003" } } ] @@ -32901,15 +31645,15 @@ "params": [ [ { - "bcrt1q5ptrvwlgcldm2ygf3nzsl09zfpp7dmtduqlczer97xvc4x5z5zwsc2ulv4": 16777216 + "bcrt1p0002020202020202020202020202020202020202020202020202020202": 16777216 } ] ] }, "response": { - "unsigned_tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020a056363be8c7dbb511098cc50fbca24843e6ed6de03f816465f1998a9a82a09d4183980000000000225120f1393467c717cd50de2760167d4311141a8f750c89f54fd2c900601a7da8434c95000000", - "txid": "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67", - "psbt": "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAFpz79e9wou5mbmtaiB+6WfRTf8SpZxmrd6n+rIFcWewQAAAAAA/f///wLS79/eAAAAABYAFE35CMxYA4yQx9XLuFj0/q5uNmligJaYAQAAAAAWABT/hTPq8LE5vAc9KiJjjmygoIN81UsAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVAQ4gl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywBDwQBAAAAARAE/f///wABAwgAAAABAAAAAAEEIgAgoFY2O+jH27URCYzFD7yiSEPm7W3gP4FkZfGZipqCoJ0AAQMIQYOYAAAAAAABBCJRIPE5NGfHF81Q3idgFn1DERQaj3UMifVP0skAYBp9qENMAA==" + "unsigned_tx": "0200000000000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006", + "txid": "txidtxprep000100001000010000100001000010000100001000010000100001", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000" } }, { @@ -32919,15 +31663,15 @@ "params": { "outputs": [ { - "bcrt1q4hz6a4gtecfmy8z870cwkq2gzc0t7n9u9pu23689u55ghwewemqsv4v2zs": 16777216 + "bcrt1p0003030303030303030303030303030303030303030303030303030303": 16777216 } ] } }, "response": { - "unsigned_tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020adc5aed50bce13b21c47f3f0eb0148161ebf4cbc2878a8e8e5e5288bbb2ecec1418398000000000022512081da0d3e3051135a89e2f9d85e2eadf661f959bfb05e671097854672cfd0ac7d95000000", - "txid": "ed6c309a10273aa036d29b71cf70202291d4d4b72be353ac410e1678ecfbf74e", - "psbt": "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAFpz79e9wou5mbmtaiB+6WfRTf8SpZxmrd6n+rIFcWewQAAAAAA/f///wLS79/eAAAAABYAFE35CMxYA4yQx9XLuFj0/q5uNmligJaYAQAAAAAWABT/hTPq8LE5vAc9KiJjjmygoIN81UsAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVAQ4gl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywBDwQBAAAAARAE/f///wABAwgAAAABAAAAAAEEIgAgrcWu1QvOE7IcR/Pw6wFIFh6/TLwoeKjo5eUoi7suzsEAAQMIQYOYAAAAAAABBCJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AA==" + "unsigned_tx": "0200000000000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002", + "txid": "txidtxprep000200002000020000200002000020000200002000020000200002", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000" } } ] @@ -33002,13 +31746,13 @@ "id": "example:txsend#1", "method": "txsend", "params": [ - "ed6c309a10273aa036d29b71cf70202291d4d4b72be353ac410e1678ecfbf74e" + "txidtxprep000200002000020000200002000020000200002000020000200002" ] }, "response": { - "tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020adc5aed50bce13b21c47f3f0eb0148161ebf4cbc2878a8e8e5e5288bbb2ecec1418398000000000022512081da0d3e3051135a89e2f9d85e2eadf661f959bfb05e671097854672cfd0ac7d95000000", - "txid": "ed6c309a10273aa036d29b71cf70202291d4d4b72be353ac410e1678ecfbf74e", - "psbt": "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAFpz79e9wou5mbmtaiB+6WfRTf8SpZxmrd6n+rIFcWewQAAAAAA/f///wLS79/eAAAAABYAFE35CMxYA4yQx9XLuFj0/q5uNmligJaYAQAAAAAWABT/hTPq8LE5vAc9KiJjjmygoIN81UsAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVIgICrdS+fDe+nFDye7Mp6i6PaAV6YeEglyQM1Lypkk6qiU5HMEQCID5oPTp8udytiNikLxBRfm+iAL2LeYa9bJBKih0OcN2CAiApOyjSHogrEppHHuTPuUqEeLq/psjaa8cEKHXw6Hz7cQEiBgKt1L58N76cUPJ7synqLo9oBXph4SCXJAzUvKmSTqqJTgj/hTPqAAAAAAEOIJdLwjFzt7ypsGDawSq9G7FY6O1po+dNT2r1kZsV9XcsAQ8EAQAAAAEQBP3///8AAQMIAAAAAQAAAAABBCIAIK3FrtULzhOyHEfz8OsBSBYev0y8KHio6OXlKIu7Ls7BAAEDCEGDmAAAAAAAAQQiUSCB2g0+MFETWoni+dheLq32YflZv7BeZxCXhUZyz9CsfSEHPXxCgubxwYgC9mDabmKYMY13V5d4yQepeZJ7VCvUFqIJAEDR+iMDAAAAAA==" + "tx": "02000000000101txsend00011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011", + "txid": "txidtxprep000200002000020000200002000020000200002000020000200002", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100" } }, { @@ -33016,13 +31760,13 @@ "id": "example:txsend#2", "method": "txsend", "params": { - "txid": "e9a218878137adf2d34a8ef69151d6e288cc9b9a23f6a5e8ace1b43f03409358" + "txid": "txidtxprep000400004000040000400004000040000400004000040000400004" } }, "response": { - "tx": "02000000014ef7fbec78160e41ac53e32bb7d4d491222070cf719bd236a03a27109a306ced0100000000fdffffff0240420f0000000000220020c9ea2c65ca8cdc27bc130fe11f5e52e175475e0e31b645b1dcc3832dc4f7e78dc22d890000000000225120774b1c2a9b4b0a9dce43b46395940da2001115d400fa3667909ec86a5d36518b4e000000", - "txid": "e9a218878137adf2d34a8ef69151d6e288cc9b9a23f6a5e8ace1b43f03409358", - "psbt": "cHNidP8BAgQCAAAAAQMETgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAEAAAAA/f///wIAAAABAAAAACIAIK3FrtULzhOyHEfz8OsBSBYev0y8KHio6OXlKIu7Ls7BQYOYAAAAAAAiUSCB2g0+MFETWoni+dheLq32YflZv7BeZxCXhUZyz9CsfZUAAAABAStBg5gAAAAAACJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AQ4gTvf77HgWDkGsU+Mrt9TUkSIgcM9xm9I2oDonEJowbO0BDwQBAAAAARAE/f///wETQIRl9k9MarVBCdz+jTkHVLk/f0KpyiwelXb3+0KqyEUNKPpgLxiJskis5PEsQfEjatvrDCm8cl1CnutfbKUUTGchFj18QoLm8cGIAvZg2m5imDGNd1eXeMkHqXmSe1Qr1BaiCQBA0fojAAAAAAABAwhAQg8AAAAAAAEEIgAgyeosZcqM3Ce8Ew/hH15S4XVHXg4xtkWx3MODLcT3540AAQMIwi2JAAAAAAABBCJRIHdLHCqbSwqdzkO0Y5WUDaIAERXUAPo2Z5CeyGpdNlGLIQeEMcD3iRgEiqSnJRphfipArfPS8md+1DjVMvR3UrU8wwkA1WaCQwYAAAAA" + "tx": "02000000000101txsend00022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022", + "txid": "txidtxprep000400004000040000400004000040000400004000040000400004", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200" } } ] @@ -33155,7 +31899,7 @@ "id": "example:unreserveinputs#1", "method": "unreserveinputs", "params": { - "psbt": "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AahhAAAAAAAAIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+GZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000", "reserve": 200 } }, @@ -33168,7 +31912,7 @@ "id": "example:unreserveinputs#2", "method": "unreserveinputs", "params": [ - "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE+ZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000" ] }, "response": { @@ -33278,9 +32022,9 @@ } }, "response": { - "tx": "0200000001e3148821838724c371613dfe954620b99b689803f29b17e33b85f655afc812170000000000fdffffff0135143101000000002251206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b566000000", - "txid": "52b8957df7b017c4c187641491b80ca209c52b286eba60afac7292a868fdf9d0", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQBzAgAAAAEJawGuY9Yx4yHwOdSd9MWwVc46+mVaPVwiwqhZT0H1zQAAAAAA/f///wIALTEBAAAAABepFGVXKPNs/jbQGqUNMjZwRGn4SlVAh3HE1CgBAAAAF6kUfN+wjm5E/BFSxPQjIl0rcUgkip2HZQAAAAEBIAAtMQEAAAAAF6kUZVco82z+NtAapQ0yNnBEafhKVUCHIgICucDGhE4SpTHJaOVcVQeOwW2b92vpKQ/YfRzKcrSDmhdHMEQCIBsJrbJqp2dLLklUvvheXUy1uu4eIMkebSbbYkQHWItOAiBEuulzciFVMVB7Rkt5eOb53CX5hq7Vq2LbwBHB6ApUTwEBBBYAFNa5adNt/9rZhpGT9mPuSA39xzSIIgYCucDGhE4SpTHJaOVcVQeOwW2b92vpKQ/YfRzKcrSDmhcI1rlp0wAAAAABDiDjFIghg4ckw3FhPf6VRiC5m2iYA/KbF+M7hfZVr8gSFwEPBAAAAAABEAT9////AAEDCDUUMQEAAAAAAQQiUSBsJ+GVas+mHmgpLICQiIDoE0UPdUEy6KKsRxqGvxMmtSEHWnm7u0BtS8KN8F+mqHMoz7AqfhN0O+zc0d/P4HHC4BAJAH0I2ZcFAAAAAA==", + "tx": "02000000000101upgd20000200002000020000200002000020000200002000020000200002000020000200002000020000200002000020000200002000020000200002000020000200002000020000200002000020000200002000020000", + "txid": "txidupgrade200000200000200000200000200000200000200000200000200000", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000", "upgraded_outs": 1 } } @@ -33499,7 +32243,7 @@ "15000perkw", 214, [ - "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3:1" + "utxo010101010101010101010101010101010101010101010101010101010101:1" ], null, true, @@ -33509,14 +32253,14 @@ ] }, "response": { - "psbt": "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AUFZ3AsAAAAAIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUreYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000", "feerate_per_kw": 15000, "estimated_final_weight": 657, "excess_msat": 0, "change_outnum": 0, "reservations": [ { - "txid": "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3", + "txid": "utxo010101010101010101010101010101010101010101010101010101010101", "vout": 1, "was_reserved": true, "reserved": true, @@ -33534,21 +32278,21 @@ "feerate": "18750perkw", "startweight": 214, "utxos": [ - "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3:1" + "utxo010101010101010101010101010101010101010101010101010101010101:1" ], "reservedok": true, "excess_as_change": true } }, "response": { - "psbt": "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AWINzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000", "feerate_per_kw": 18750, "estimated_final_weight": 657, "excess_msat": 0, "change_outnum": 0, "reservations": [ { - "txid": "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3", + "txid": "utxo010101010101010101010101010101010101010101010101010101010101", "vout": 1, "was_reserved": true, "reserved": true, @@ -33903,7 +32647,7 @@ "status": "pending", "partid": 0, "groupid": 1, - "payment_hash": "4c6f04eaf19dd956b616f1ba8718df40e387c4a56be36cf4e881a009cbf66899" + "payment_hash": "paymenthashwtspct20101010101010101010101010101010101010101010101" } } }, @@ -33924,7 +32668,7 @@ "status": "complete", "partid": 0, "groupid": 1, - "payment_hash": "4c6f04eaf19dd956b616f1ba8718df40e387c4a56be36cf4e881a009cbf66899" + "payment_hash": "paymenthashwtspct20101010101010101010101010101010101010101010101" } } } @@ -34165,16 +32909,16 @@ }, "response": { "label": "lbl balance l1 to l2", - "bolt11": "lnbcrt5m1pn2s39ksp53sknyy2mxxurt4y0wqgp730z0cnm0vz3zmzth8p79xsrtmg5llxspp5dp94v59nm6c99jf7lc07zmnhqw6kyujx3mkdav7643dczgtdedfqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqdz9cftkxe6kcqfddyrvr7j57ulsfxxxkgkjyhr3k77n8v59mzs5rmuexz9lxusyhhehlemd9ujclgahln8e0n8y86stc7u8uys6mjqgqerm6q4", - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "bolt11": "lnbcrt222n1pnt3005720bolt114000101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "amount_msat": 500000000, "status": "paid", "pay_index": 1, "amount_received_msat": 500000000, - "paid_at": 1722303671, - "payment_preimage": "bed4140e1db302720d7f9547dc9127d45b115080447cce7e23cfd00b60991831", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimgdp1010101010101010101010101010101010101010101010101", "description": "description send some sats l1 to l2", - "expires_at": 1722908470, + "expires_at": 1739000000, "created_index": 1, "updated_index": 1 } @@ -34190,15 +32934,15 @@ }, "response": { "label": "lbl_l23", - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", + "bolt11": "lnbcrt100n1pnt2bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000", + "payment_hash": "paymenthashcmdpycp10cp10cp10cp10cp10cp10cp10cp10cp10cp10cp10cp10", "status": "paid", "pay_index": 2, "amount_received_msat": 9900, - "paid_at": 1722303715, - "payment_preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagec010101010101010101010101010101010101010101010101", "description": "l23 description", - "expires_at": 1722908514, + "expires_at": 1739000000, "created_index": 8, "updated_index": 2 } @@ -34267,7 +33011,7 @@ "id": "example:waitblockheight#1", "method": "waitblockheight", "params": { - "blockheight": 129, + "blockheight": 130, "timeout": 600 } }, @@ -34529,16 +33273,16 @@ }, "response": { "label": "inv2", - "bolt11": "lnbcrt20n1pn2s38fsp55xnux6tuzuutlqhekzytnexpqj6w3q00h6e7wu08ex43rdr4xqdqpp5znq67nu5secgcf79ncjtqfdpjfqh7acaxvngcqwqsvvxwnkyl35qdq8d9h8vvsxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq9ptnru6v58v8qd58xdqypr86utn6fhssx8rwegsspfp9d975h0t47xn0hea6qrmy2ucxt4l02nkxu7va7d5lqgy8nrqmhxqpm5qauegqjjqr02", - "payment_hash": "14c1af4f9486708c27c59e24b025a192417f771d33268c01c08318674ec4fc68", + "bolt11": "lnbcrt222n1pnt3005720bolt11wtinv01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "payment_hash": "paymenthashwaitinv0101010101010101010101010101010101010101010101", "amount_msat": 2000, "status": "paid", "pay_index": 4, "amount_received_msat": 2000, - "paid_at": 1722303723, - "payment_preimage": "1bda6e78384905bc476c6f50b447cf7fbba13a2644d49d85d797a826e8b9a6a0", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagewaitinv0010101010101010101010101010101010101010101", "description": "inv2", - "expires_at": 1722908521, + "expires_at": 1739000000, "created_index": 12, "updated_index": 4 } @@ -34553,16 +33297,16 @@ }, "response": { "label": "inv3", - "bolt11": "lnbcrt30n1pn2s38fsp5syqds2z0hgqgf3dcxt9kp5m2rtywxm4u4hr4xe90r885rr609vgqpp52y0xdhlzrua5clpuyw4wcfk9duxwwauzcjxrs9nj00258njmdjnsdq8d9h8vvcxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqkkeex45p62vc7nfjywwfle8yhk9wemyktw2m7924cfmlthk37q6ptjd8vxyaevtejfj44yp55xllqlljxv5vz6wc3gc9jlfkwrkngscqtl0xs8", - "payment_hash": "511e66dfe21f3b4c7c3c23aaec26c56f0ce77782c48c3816727bd543ce5b6ca7", + "bolt11": "lnbcrt222n1pnt3005720bolt11wtinv02020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", + "payment_hash": "paymenthashwaitinv0202020202020202020202020202020202020202020202", "amount_msat": 3000, "status": "paid", "pay_index": 5, "amount_received_msat": 3000, - "paid_at": 1722303725, - "payment_preimage": "86e637cb70631a0db88cc8f6ef9a21457b1b85be30236efb769a611b356225cd", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagewaitinv0020202020202020202020202020202020202020202", "description": "inv3", - "expires_at": 1722908521, + "expires_at": 1739000000, "created_index": 13, "updated_index": 5 } @@ -34805,22 +33549,22 @@ "id": "example:waitsendpay#1", "method": "waitsendpay", "params": { - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2" + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100" } }, "response": { "created_index": 2, "id": 2, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "groupid": 1, "updated_index": 2, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303675, - "completed_at": 1722303677, + "created_at": 1738000000, + "completed_at": 1739000000, "status": "complete", - "payment_preimage": "984a10782218478cd39e1f9a16795d756c337662067023a3b690bffdb1593f76" + "payment_preimage": "paymentpreimagew010101010101010101010101010101010101010101010101" } } ] @@ -34931,14 +33675,14 @@ "id": "example:withdraw#1", "method": "withdraw", "params": { - "destination": "bcrt1qcqqvkswps3e6ck3jmqf86f9tcaeke5z04d3tv4", + "destination": "bcrt1qcqqv0101010101010101010101010101010101", "satoshi": 555555 } }, "response": { - "tx": "0200000001187e8867dc9462f0acbf9b7ecad69c786bdb04bdc89eb0bea45db35f8cf7dd860000000000fdffffff02237a080000000000160014c000cb41c18473ac5a32d8127d24abc7736cd04f0636e30b0000000022512052021c61da23b2eda3d5000c6d812d0c9b088c237ed2a510abd94d8c3f7c421d20000000", - "txid": "faf2ac1e15fe8df73c411d404224cb481f01cabdde58df83c56d5d6050ec53a9", - "psbt": "cHNidP8BAgQCAAAAAQMEIAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGdA6aKwu4U7Zes8OwDJHp4bI3maidtrjOK6N85klZucAEAAAAA/f///wIAwusLAAAAABYAFCchPiIXtPVr0Ztsg5Pcn2G+aRIzQD/9EAEAAAAWABRz0UYcTRX0fJpAf766DfDa2wbGUGcAAAABAR8AwusLAAAAABYAFCchPiIXtPVr0Ztsg5Pcn2G+aRIzIgICB+wrNVNHEthq4DDdm/rsCOLd6h7Bzs/7lyXtessSq2ZHMEQCIEW+oeZvFbmuQidamye9/iuDhJ41SARdgZV8yWWjfq8vAiAS3no++NDmJjip3G/y4VTfQ/jiJv2jv9lQKqBUK9hQ0wEiBgIH7Cs1U0cS2GrgMN2b+uwI4t3qHsHOz/uXJe16yxKrZggnIT4iAAAAAAEOIBh+iGfclGLwrL+bfsrWnHhr2wS9yJ6wvqRds1+M992GAQ8EAAAAAAEQBP3///8AIgICLKJZZMteDpQ8BfcEOrSAECukrPM9dXeamXREWCtGR1AIwADLQQwAAAABAwgjeggAAAAAAAEEFgAUwADLQcGEc6xaMtgSfSSrx3Ns0E8M/AlsaWdodG5pbmcEAgABAAEDCAY24wsAAAAAAQQiUSBSAhxh2iOy7aPVAAxtgS0MmwiMI37SpRCr2U2MP3xCHSEHxKQ1JAGJOzVxgiryRaI4NGaYWWe35WSg4OUGHU+NcXEJAIvHqlwOAAAAAA==" + "tx": "020000000001wthdrw91000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000", + "txid": "txidwithdraw2191000910009100091000910009100091000910009100091000", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000" } }, { @@ -34946,19 +33690,19 @@ "id": "example:withdraw#2", "method": "withdraw", "params": { - "destination": "bcrt1phtprcvhz842sxe8qw0yryvc0g6n6dw2puweklcpnfye273kjpfhs0d6d2e", + "destination": "bcrt1phtprcvhz02020202020202020202020202020202020202020202020202", "satoshi": "all", "feerate": "20000perkb", "minconf": 0, "utxos": [ - "f2f4e67dbf2791a3b57dd986418156b116b452c5fc27b077da7c529db82f06f5:0" + "utxo020202020202020202020202020202020202020202020202020202020202:1" ] } }, "response": { - "tx": "0200000001f5062fb89d527cda77b027fcc552b416b156814186d97db5a39127bf7de6f4f20000000000fdffffff0119f70e0000000000225120bac23c32e23d550364e073c832330f46a7a6b941e3b36fe0334932af46d20a6f87000000", - "txid": "41dd478136c95acc82b7669fa4c70843da2ecd04baa7c53cbe8c73d0dd98e5c1", - "psbt": "cHNidP8BAgQCAAAAAQMEhwAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQCJAgAAAAGxWGMGDX3aCdIKW4Vrs4nxXQD8LjoWZ2z3R6yqUp0MxAEAAAAA/f///wKSAA8AAAAAACJRIP2rfAH65wwI4LH5rKzKEQpTEh513FSiXnVCQW80Kur3QEIPAAAAAAAiACCWVeKnMwzYbcafjtGEWvVYDdBrFaeUA0yVceU9Vjmzl3oAAAABASuSAA8AAAAAACJRIP2rfAH65wwI4LH5rKzKEQpTEh513FSiXnVCQW80Kur3AQ4g9QYvuJ1SfNp3sCf8xVK0FrFWgUGG2X21o5Env33m9PIBDwQAAAAAARAE/f///wETQFj1/T/JtePk1+LfX9fAK4QBBwl1Xt1YmoE2cQOo/0hAvCLgwb5zSZCrDGAhxdSujHXyVo3a19wl+ayqa0/nckAhFr2SP8yeYDMCCkVocL4aDjUqc7hPoTIp/uS7zAf7okk6CQDK3xgoAAAAAAABAwgZ9w4AAAAAAAEEIlEgusI8MuI9VQNk4HPIMjMPRqemuUHjs2/gM0kyr0bSCm8hB6Jvzf+c2c5Qrvvj78smeIzuWAjjEtHW01YDo2je0daMCQBxtd2rDQAAAAz8CWxpZ2h0bmluZwQCAAEA" + "tx": "020000000002wthdrw92000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000", + "txid": "txidwithdraw2292000920009200092000920009200092000920009200092000", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000" } } ] diff --git a/doc/schemas/lightning-addpsbtoutput.json b/doc/schemas/lightning-addpsbtoutput.json index fd8eac769a86..88dacfcc80dd 100644 --- a/doc/schemas/lightning-addpsbtoutput.json +++ b/doc/schemas/lightning-addpsbtoutput.json @@ -92,9 +92,9 @@ } }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAA==", + "psbt": "cHNidP8BAgpsbt1001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "estimated_added_weight": 172, - "outnum": 0 + "outnum": 1 } }, { @@ -103,11 +103,11 @@ "method": "addpsbtoutput", "params": [ 3333333, - "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=" + "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=", + "psbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", "estimated_added_weight": 172, "outnum": 1 } @@ -118,14 +118,14 @@ "method": "addpsbtoutput", "params": { "satoshi": 3333333, - "initialpsbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=", - "destination": "bcrt1p52spc7t99z0wu444elxahxzkcu86gakzvnfp7ugudf567am2uspsuneuq9" + "initialpsbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", + "destination": "bcrt1p5201010101010101010101010101010101010101010101010101010101" } }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEDAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQABAwjV3DIAAAAAAAEEIlEgoqAceWUonu5Wtc/N25hWxw+kdsJk0h9xHGppr3dq5AMA", + "psbt": "cHNidP8BAgpsbt300303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303", "estimated_added_weight": 172, - "outnum": 2 + "outnum": 1 } } ] diff --git a/doc/schemas/lightning-askrene-listlayers.json b/doc/schemas/lightning-askrene-listlayers.json index c206f8fe60be..a26b0fb4b851 100644 --- a/doc/schemas/lightning-askrene-listlayers.json +++ b/doc/schemas/lightning-askrene-listlayers.json @@ -187,5 +187,17 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-listlayers#1", + "method": "askrene-listlayers", + "params": {} + }, + "response": { + "layers": [] + } + } ] } diff --git a/doc/schemas/lightning-bkpr-channelsapy.json b/doc/schemas/lightning-bkpr-channelsapy.json index 9a8f90888823..b76a4a671a5a 100644 --- a/doc/schemas/lightning-bkpr-channelsapy.json +++ b/doc/schemas/lightning-bkpr-channelsapy.json @@ -214,9 +214,9 @@ "response": { "channels_apy": [ { - "account": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", + "account": "channelid0120000120000120000120000120000120000120000120000120000", "routed_out_msat": 1000000, - "routed_in_msat": 510081208, + "routed_in_msat": 510481208, "lease_fee_paid_msat": 0, "lease_fee_earned_msat": 0, "pushed_out_msat": 0, @@ -226,15 +226,15 @@ "fees_out_msat": 0, "fees_in_msat": 106, "utilization_out": "0.1000%", - "utilization_in": "51.0081%", - "utilization_in_initial": "51.0081%", + "utilization_in": "51.0481%", + "utilization_in_initial": "51.0481%", "apy_out": "0.0000%", "apy_in": "0.0252%", "apy_in_initial": "0.0252%", "apy_total": "0.0252%" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "routed_out_msat": 510181102, "routed_in_msat": 0, "lease_fee_paid_msat": 0, @@ -255,7 +255,7 @@ "apy_total_initial": "0.0505%" }, { - "account": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", + "account": "channelid0250000250000250000250000250000250000250000250000250000", "routed_out_msat": 500000000, "routed_in_msat": 0, "lease_fee_paid_msat": 0, @@ -278,7 +278,7 @@ { "account": "net", "routed_out_msat": 1011181102, - "routed_in_msat": 510081208, + "routed_in_msat": 510481208, "lease_fee_paid_msat": 0, "lease_fee_earned_msat": 0, "pushed_out_msat": 0, @@ -289,8 +289,8 @@ "fees_in_msat": 106, "utilization_out": "33.7060%", "utilization_out_initial": "50.5591%", - "utilization_in": "17.0027%", - "utilization_in_initial": "51.0081%", + "utilization_in": "17.0160%", + "utilization_in_initial": "51.0481%", "apy_out": "0.0084%", "apy_out_initial": "0.0126%", "apy_in": "0.0084%", diff --git a/doc/schemas/lightning-bkpr-inspect.json b/doc/schemas/lightning-bkpr-inspect.json index 9ad2510b264e..298fe9ccd50f 100644 --- a/doc/schemas/lightning-bkpr-inspect.json +++ b/doc/schemas/lightning-bkpr-inspect.json @@ -212,50 +212,23 @@ "id": "example:bkpr-inspect#1", "method": "bkpr-inspect", "params": { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2" + "account": "channelid0230200230200230200230200230200230200230200230200230200" } }, "response": { "txs": [ { - "txid": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483", - "blockheight": 111, - "fees_paid_msat": 4927000, + "txid": "channeltxid230200230200230200230200230200230200230200230200230200", + "blockheight": 123, + "fees_paid_msat": 5020000, "outputs": [ { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "outnum": 0, + "account": "channelid0230200230200230200230200230200230200230200230200230200", + "outnum": 1, "output_tag": "channel_open", "output_value_msat": 1000000000, "credit_msat": 1000000000, - "currency": "bcrt", - "spend_tag": "channel_close", - "spending_txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", - "debit_msat": 489818898 - } - ] - }, - { - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", - "blockheight": 121, - "fees_paid_msat": 2895898, - "outputs": [ - { - "account": "wallet", - "outnum": 0, - "output_tag": "deposit", - "output_value_msat": 486923000, - "credit_msat": 486923000, "currency": "bcrt" - }, - { - "account": "external", - "outnum": 1, - "output_tag": "to_them", - "output_value_msat": 510181000, - "credit_msat": 510181000, - "currency": "bcrt", - "originating_account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2" } ] } diff --git a/doc/schemas/lightning-bkpr-listaccountevents.json b/doc/schemas/lightning-bkpr-listaccountevents.json index ee4c45790ff5..44960b04045e 100644 --- a/doc/schemas/lightning-bkpr-listaccountevents.json +++ b/doc/schemas/lightning-bkpr-listaccountevents.json @@ -271,416 +271,22 @@ "request": { "id": "example:bkpr-listaccountevents#1", "method": "bkpr-listaccountevents", - "params": {} + "params": [ + "channelid0230200230200230200230200230200230200230200230200230200" + ] }, "response": { "events": [ { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 200000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0", - "timestamp": 1722303635, - "blockheight": 105 - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "chain", - "tag": "channel_open", - "credit_msat": 0, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483:0", - "timestamp": 1722303653, - "blockheight": 111 - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 2000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "b19a249c64f2c952b4b9a400bdec159b56af2af63939c9ecb8fd937f344a7056:0", - "timestamp": 1722303656, - "blockheight": 112 - }, - { - "account": "wallet", - "type": "chain", - "tag": "withdrawal", - "credit_msat": 0, - "debit_msat": 2000000000, - "currency": "bcrt", - "outpoint": "b19a249c64f2c952b4b9a400bdec159b56af2af63939c9ecb8fd937f344a7056:0", - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2", - "timestamp": 1722303659, - "blockheight": 113 - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 995073000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2:0", - "timestamp": 1722303659, - "blockheight": 113 - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "chain", - "tag": "channel_open", - "credit_msat": 1000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2:1", - "timestamp": 1722303659, - "blockheight": 113 - }, - { - "account": "wallet", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 1004927000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" - }, - { - "account": "wallet", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 1004927000, - "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 4927000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 500000000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670", - "part_id": 0, - "timestamp": 1722303673, - "description": "description send some sats l2 to l3", - "is_rebalance": false - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "channel", - "tag": "invoice", - "credit_msat": 0, - "debit_msat": 500000000, - "currency": "bcrt", - "payment_id": "365522e0e6c2fe84987153324cc9fac02986855d849bbd650426ba6064463166", - "part_id": 0, - "timestamp": 1722303675, - "description": "description send some sats l3 to l4", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", - "part_id": 0, - "timestamp": 1722303677, - "description": "Invoice description l31", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", - "part_id": 0, - "timestamp": 1722303679, - "description": "keysend", - "is_rebalance": false - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "channel", - "tag": "routed", - "credit_msat": 0, - "debit_msat": 10000000, - "fees_msat": 101, - "currency": "bcrt", - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", - "part_id": 0, - "timestamp": 1722303682, - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "routed", - "credit_msat": 10000101, - "debit_msat": 0, - "fees_msat": 101, - "currency": "bcrt", - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", - "part_id": 0, - "timestamp": 1722303682, - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "part_id": 0, - "timestamp": 1722303686, - "description": "keysend", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 50000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "part_id": 0, - "timestamp": 1722303688, - "description": "l32 description", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 100000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68", - "part_id": 0, - "timestamp": 1722303689, - "description": "l33 description", - "is_rebalance": false - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "channel", - "tag": "routed", - "credit_msat": 0, - "debit_msat": 1000, - "fees_msat": 1, - "currency": "bcrt", - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "part_id": 0, - "timestamp": 1722303692, - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "routed", - "credit_msat": 1001, - "debit_msat": 0, - "fees_msat": 1, - "currency": "bcrt", - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "part_id": 0, - "timestamp": 1722303692, - "is_rebalance": false - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 510181000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305:1", - "timestamp": 1722303693, - "blockheight": 121 - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "chain", - "tag": "channel_close", - "credit_msat": 0, - "debit_msat": 489999000, - "currency": "bcrt", - "outpoint": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2:1", - "txid": "2849a5c5cd182ebec02d18ba6348bb01e70a544d0ce9aa8b5533fb09d24c969e", - "timestamp": 1722303693, - "blockheight": 121 - }, - { - "account": "external", - "origin": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "chain", - "tag": "to_them", - "credit_msat": 510001000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "2849a5c5cd182ebec02d18ba6348bb01e70a544d0ce9aa8b5533fb09d24c969e:1", - "timestamp": 1722303693, - "blockheight": 121 - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "chain", - "tag": "channel_close", - "credit_msat": 0, - "debit_msat": 510181102, - "currency": "bcrt", - "outpoint": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483:0", - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", - "timestamp": 1722303693, - "blockheight": 121 - }, - { - "account": "external", - "origin": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "chain", - "tag": "to_them", - "credit_msat": 486923000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305:0", - "timestamp": 1722303693, - "blockheight": 121 - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 102, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303693, - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305" - }, - { - "account": "ecabe6d86abdd57565b3fb7e7c5d724e60ca1a07633951769b5dbfa48dc884b3", + "account": "channelid0230200230200230200230200230200230200230200230200230200", "type": "chain", "tag": "channel_open", "credit_msat": 0, "debit_msat": 0, "currency": "bcrt", - "outpoint": "f2f4e67dbf2791a3b57dd986418156b116b452c5fc27b077da7c529db82f06f5:1", - "timestamp": 1722303702, + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1", + "timestamp": 1738500000, "blockheight": 123 - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 2000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "4c4b46acfd0c9d4b8393a2c3fbc27cb70bfa9270bf47ade3348c4acd949b770b:0", - "timestamp": 1722303705, - "blockheight": 124 - }, - { - "account": "wallet", - "type": "chain", - "tag": "withdrawal", - "credit_msat": 0, - "debit_msat": 510181000, - "currency": "bcrt", - "outpoint": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305:1", - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee", - "timestamp": 1722303708, - "blockheight": 125 - }, - { - "account": "wallet", - "type": "chain", - "tag": "withdrawal", - "credit_msat": 0, - "debit_msat": 2000000000, - "currency": "bcrt", - "outpoint": "4c4b46acfd0c9d4b8393a2c3fbc27cb70bfa9270bf47ade3348c4acd949b770b:0", - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee", - "timestamp": 1722303708, - "blockheight": 125 - }, - { - "account": "wallet", - "type": "chain", - "tag": "deposit", - "credit_msat": 1503221000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee:0", - "timestamp": 1722303708, - "blockheight": 125 - }, - { - "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", - "type": "chain", - "tag": "channel_open", - "credit_msat": 1000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee:1", - "timestamp": 1722303708, - "blockheight": 125 - }, - { - "account": "wallet", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 1006960000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" - }, - { - "account": "wallet", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 1006960000, - "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" - }, - { - "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 6960000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" } ] } @@ -689,148 +295,43 @@ "request": { "id": "example:bkpr-listaccountevents#2", "method": "bkpr-listaccountevents", - "params": [ - "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2" - ] + "params": {} }, "response": { "events": [ { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "external", + "origin": "channelid0340000340000340000340000340000340000340000340000340000", "type": "chain", - "tag": "channel_open", - "credit_msat": 0, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483:0", - "timestamp": 1722303653, - "blockheight": 111 - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 500000000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670", - "part_id": 0, - "timestamp": 1722303673, - "description": "description send some sats l2 to l3", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", - "part_id": 0, - "timestamp": 1722303677, - "description": "Invoice description l31", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", - "part_id": 0, - "timestamp": 1722303679, - "description": "keysend", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "routed", - "credit_msat": 10000101, - "debit_msat": 0, - "fees_msat": 101, - "currency": "bcrt", - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", - "part_id": 0, - "timestamp": 1722303682, - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "part_id": 0, - "timestamp": 1722303686, - "description": "keysend", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 50000, - "debit_msat": 0, - "currency": "bcrt", - "payment_id": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "part_id": 0, - "timestamp": 1722303688, - "description": "l32 description", - "is_rebalance": false - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "invoice", - "credit_msat": 100000, + "tag": "to_them", + "credit_msat": 510001000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68", - "part_id": 0, - "timestamp": 1722303689, - "description": "l33 description", - "is_rebalance": false + "outpoint": "txidbk0202020202020202020202020202020202020202020202020202020202:1", + "timestamp": 1738520000, + "blockheight": 142 }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "channel", - "tag": "routed", - "credit_msat": 1001, + "account": "wallet", + "type": "chain", + "tag": "deposit", + "credit_msat": 200000000000, "debit_msat": 0, - "fees_msat": 1, "currency": "bcrt", - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "part_id": 0, - "timestamp": 1722303692, - "is_rebalance": false + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1", + "timestamp": 1738510000, + "blockheight": 141 }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "chain", - "tag": "channel_close", + "tag": "channel_open", "credit_msat": 0, - "debit_msat": 510181102, - "currency": "bcrt", - "outpoint": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483:0", - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", - "timestamp": 1722303693, - "blockheight": 121 - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "type": "onchain_fee", - "tag": "onchain_fee", - "credit_msat": 102, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303693, - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305" + "outpoint": "txidbk0303030303030303030303030303030303030303030303030303030303:1", + "timestamp": 1738530000, + "blockheight": 143 } ] } diff --git a/doc/schemas/lightning-bkpr-listbalances.json b/doc/schemas/lightning-bkpr-listbalances.json index 1f795ceffbcf..0e7c5f7c5925 100644 --- a/doc/schemas/lightning-bkpr-listbalances.json +++ b/doc/schemas/lightning-bkpr-listbalances.json @@ -148,14 +148,14 @@ "account": "wallet", "balances": [ { - "balance_msat": 202498294000, + "balance_msat": 202050000000, "coin_type": "bcrt" } ] }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "account": "channelid0230000230000230000230000230000230000230000230000230000", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "we_opened": false, "account_closed": true, "account_resolved": true, @@ -168,8 +168,8 @@ ] }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "peer_id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "account": "channelid0340000340000340000340000340000340000340000340000340000", + "peer_id": "nodeid040404040404040404040404040404040404040404040404040404040404", "we_opened": true, "account_closed": true, "account_resolved": false, @@ -181,8 +181,8 @@ ] }, { - "account": "ecabe6d86abdd57565b3fb7e7c5d724e60ca1a07633951769b5dbfa48dc884b3", - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "account": "channelid0230200230200230200230200230200230200230200230200230200", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "we_opened": false, "account_closed": false, "account_resolved": false, @@ -194,8 +194,8 @@ ] }, { - "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", - "peer_id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "account": "channelid0340200340200340200340200340200340200340200340200340200", + "peer_id": "nodeid040404040404040404040404040404040404040404040404040404040404", "we_opened": true, "account_closed": false, "account_resolved": false, diff --git a/doc/schemas/lightning-bkpr-listincome.json b/doc/schemas/lightning-bkpr-listincome.json index 4ccd146b82ea..d0c42769943f 100644 --- a/doc/schemas/lightning-bkpr-listincome.json +++ b/doc/schemas/lightning-bkpr-listincome.json @@ -134,7 +134,9 @@ "request": { "id": "example:bkpr-listincome#1", "method": "bkpr-listincome", - "params": {} + "params": { + "consolidate_fees": false + } }, "response": { "income_events": [ @@ -144,8 +146,8 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303635, - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0" + "timestamp": 1738500000, + "outpoint": "txidbk0000000000000000000000000000000000000000000000000000000000:1" }, { "account": "wallet", @@ -153,132 +155,26 @@ "credit_msat": 2000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303656, - "outpoint": "b19a249c64f2c952b4b9a400bdec159b56af2af63939c9ecb8fd937f344a7056:0" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 500000000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303673, - "description": "description send some sats l2 to l3", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "invoice", - "credit_msat": 0, - "debit_msat": 500000000, - "currency": "bcrt", - "timestamp": 1722303675, - "description": "description send some sats l3 to l4", - "payment_id": "365522e0e6c2fe84987153324cc9fac02986855d849bbd650426ba6064463166" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303677, - "description": "Invoice description l31", - "payment_id": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303679, - "description": "keysend", - "payment_id": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "routed", - "credit_msat": 101, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303682, - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303686, - "description": "keysend", - "payment_id": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 50000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303688, - "description": "l32 description", - "payment_id": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e" + "timestamp": 1738510000, + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 100000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303689, - "description": "l33 description", - "payment_id": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "routed", - "credit_msat": 1, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303692, - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 102, - "currency": "bcrt", - "timestamp": 1722303693, - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "wallet", "tag": "onchain_fee", "credit_msat": 0, - "debit_msat": 4927000, + "debit_msat": 1004927000, "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" + "timestamp": 1738520000, + "txid": "channeltxid340000340000340000340000340000340000340000340000340000" }, { "account": "wallet", - "tag": "deposit", - "credit_msat": 2000000000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303705, - "outpoint": "4c4b46acfd0c9d4b8393a2c3fbc27cb70bfa9270bf47ade3348c4acd949b770b:0" - }, - { - "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 6960000, + "credit_msat": 1004927000, + "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "timestamp": 1738530000, + "txid": "channeltxid340000340000340000340000340000340000340000340000340000" } ] } @@ -287,9 +183,7 @@ "request": { "id": "example:bkpr-listincome#2", "method": "bkpr-listincome", - "params": { - "consolidate_fees": false - } + "params": {} }, "response": { "income_events": [ @@ -299,177 +193,27 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303635, - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0" - }, - { - "account": "wallet", - "tag": "deposit", - "credit_msat": 2000000000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303656, - "outpoint": "b19a249c64f2c952b4b9a400bdec159b56af2af63939c9ecb8fd937f344a7056:0" - }, - { - "account": "wallet", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 1004927000, - "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" - }, - { - "account": "wallet", - "tag": "onchain_fee", - "credit_msat": 1004927000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 4927000, - "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" + "timestamp": 1738510000, + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 500000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303673, + "timestamp": 1738520000, "description": "description send some sats l2 to l3", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "invoice", - "credit_msat": 0, - "debit_msat": 500000000, - "currency": "bcrt", - "timestamp": 1722303675, - "description": "description send some sats l3 to l4", - "payment_id": "365522e0e6c2fe84987153324cc9fac02986855d849bbd650426ba6064463166" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303677, - "description": "Invoice description l31", - "payment_id": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303679, - "description": "keysend", - "payment_id": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "routed", - "credit_msat": 101, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303682, - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 10000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303686, - "description": "keysend", - "payment_id": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 50000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303688, - "description": "l32 description", - "payment_id": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "invoice", - "credit_msat": 100000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303689, - "description": "l33 description", - "payment_id": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68" - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "tag": "routed", - "credit_msat": 1, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303692, - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" - }, - { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 102, - "currency": "bcrt", - "timestamp": 1722303693, - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305" - }, - { - "account": "wallet", - "tag": "deposit", - "credit_msat": 2000000000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303705, - "outpoint": "4c4b46acfd0c9d4b8393a2c3fbc27cb70bfa9270bf47ade3348c4acd949b770b:0" - }, - { - "account": "wallet", - "tag": "onchain_fee", - "credit_msat": 0, - "debit_msat": 1006960000, - "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" - }, - { - "account": "wallet", - "tag": "onchain_fee", - "credit_msat": 1006960000, - "debit_msat": 0, - "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "payment_id": "paymentid0000202020202020202020202020202020202020202020202020202" }, { - "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", + "account": "channelid0340200340200340200340200340200340200340200340200340200", "tag": "onchain_fee", "credit_msat": 0, "debit_msat": 6960000, "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "timestamp": 1738530000, + "txid": "channeltxid340200340200340200340200340200340200340200340200340200" } ] } diff --git a/doc/schemas/lightning-check.json b/doc/schemas/lightning-check.json index 09ea287c7587..e1bca24665ff 100644 --- a/doc/schemas/lightning-check.json +++ b/doc/schemas/lightning-check.json @@ -53,15 +53,15 @@ "route": [ { "amount_msat": 1011, - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "delay": 20, - "channel": "111x1x0" + "channel": "123x1x1" }, { "amount_msat": 1000, - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", "delay": 10, - "channel": "113x1x1" + "channel": "130x1x1" } ], "payment_hash": "0000000000000000000000000000000000000000000000000000000000000000" diff --git a/doc/schemas/lightning-checkmessage.json b/doc/schemas/lightning-checkmessage.json index 661e86f67088..ec7ea6a3e076 100644 --- a/doc/schemas/lightning-checkmessage.json +++ b/doc/schemas/lightning-checkmessage.json @@ -99,7 +99,7 @@ } }, "response": { - "pubkey": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "pubkey": "nodeid010101010101010101010101010101010101010101010101010101010101", "verified": true } } diff --git a/doc/schemas/lightning-checkrune.json b/doc/schemas/lightning-checkrune.json index 53bbf56e2bf0..b3ad52110b99 100644 --- a/doc/schemas/lightning-checkrune.json +++ b/doc/schemas/lightning-checkrune.json @@ -89,7 +89,7 @@ "id": "example:checkrune#1", "method": "checkrune", "params": { - "nodeid": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "nodeid": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "_RWaZZRI7wAYU2hqlFBmYgC_dFczcpAdI_9O87YbDpg9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl", "method": "listpeers", "params": {} @@ -104,7 +104,7 @@ "id": "example:checkrune#2", "method": "checkrune", "params": { - "nodeid": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "nodeid": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "QUJEYMLGgiaJvMDv_MhR2hiMKIBTbq-PrL-KxcIlirQ9MiZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", "method": "pay", "params": { diff --git a/doc/schemas/lightning-close.json b/doc/schemas/lightning-close.json index 5b79881e9567..30b8b2cca957 100644 --- a/doc/schemas/lightning-close.json +++ b/doc/schemas/lightning-close.json @@ -160,13 +160,13 @@ "id": "example:close#1", "method": "close", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "unilateraltimeout": 1 } }, "response": { - "tx": "020000000001018304b0bbf2ea662c053e0377df4652059bb107eb5312989471c2ef7e51f023cd0000000000ffffffff020b6e07000000000022512085d72025e78fd08bb61119f0987ab0041f50561ada6e130c645343db8c44c2afe5c8070000000000225120a7583f0c421663b8ca76fa579018b40682ef8553d73fd061cd8f216ecdced6a304004730440220369e36994b74172c67b738891a22a8f7cf3ad3d6051a1c08b641277c2b129134022060b96175b5046a0e8814c03076da885e4546f11e72188582473f0ca901001a0b0147304402206733aaa116b30474dfcdcc2ce48fbc6f222ed0eae7ac6e4c95da6a6f2a2105a502200ab85229e9981e0364ab1bef38e9a581067a9c7d9fe30487e34fd8e13eff56320147522102d595ae92b3544c3250fb772f214ad8d4c51425033740a5bcc357190add6d7e7a2102d6063d022691b2490ab454dee73a57c6ff5d308352b461ece69f3c284f2c241252ae00000000", - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", + "tx": "02000000000101cls00101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "txid": "txid010101010101010101010101010101010101010101010101010101010101", "type": "mutual" } }, @@ -175,13 +175,13 @@ "id": "example:close#2", "method": "close", "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", "destination": "bcrt1qwvp8fktkxp07v0fp9jyqe7yl6rcgyu585a7pzr" } }, "response": { - "tx": "02000000000101e23fcc9e6306ce636b203217b22409bf9bab2211f9f432de781dedb6377dab5a0100000000ffffffff02746f070000000000160014730274d976305fe63d212c880cf89fd0f082728731c80700000000002251202bdd81f95d64ed2cc37d2eae725de428c91bff072d7503d87446970eedc63030040047304402205834de4c5c994a50f3ba5406534254b68e35836f98b4d5371b78225a79d087dd02201f54e1ae045e9a33dd3dd5a2b589903f305af5ead515a8e55feb2447b090415c0147304402202dd2efc52e5b4a78cbc1cf5664a0a3e3a5e67e16b0de37fc6818dbb838b6be17022062a071e81ecaec4808a44b049e091fa60b5fcf9e7f7bbdf85bc564a0a467e13601475221021c29746e4136ddff456483df3980c2d0d5f31c93ef5ded564f7294a10d7414aa2103c47b1b2afcfd68c7b86c0976adb9a4f0835bc78242fced745d78433497a867d652ae00000000", - "txid": "2849a5c5cd182ebec02d18ba6348bb01e70a544d0ce9aa8b5533fb09d24c969e", + "tx": "02000000000101cls10202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", + "txid": "txid020202020202020202020202020202020202020202020202020202020202", "type": "mutual" } } diff --git a/doc/schemas/lightning-commando-listrunes.json b/doc/schemas/lightning-commando-listrunes.json index 9aa4913ea625..bc48607cfc4a 100644 --- a/doc/schemas/lightning-commando-listrunes.json +++ b/doc/schemas/lightning-commando-listrunes.json @@ -293,7 +293,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -326,13 +326,13 @@ "alternatives": [ { "fieldname": "pnameid", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "pnameid equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" }, { "fieldname": "parr0", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "parr0 equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -350,7 +350,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } diff --git a/doc/schemas/lightning-commando.json b/doc/schemas/lightning-commando.json index 3db442e701b1..cab7a85d1d1f 100644 --- a/doc/schemas/lightning-commando.json +++ b/doc/schemas/lightning-commando.json @@ -89,15 +89,15 @@ "id": "example:commando#1", "method": "commando", "params": { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "_RWaZZRI7wAYU2hqlFBmYgC_dFczcpAdI_9O87YbDpg9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl", "method": "getinfo", "params": {} } }, "response": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "alias": "SILENTARTIST-190-g5fd2f9c-modded", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", + "alias": "SILENTARTIST", "color": "022d22", "num_peers": 3, "num_pending_channels": 0, @@ -108,17 +108,17 @@ { "type": "ipv4", "address": "127.0.0.1", - "port": 41219 + "port": 19735 } ], - "version": "v24.05-190-g5fd2f9c-modded", + "version": "v24.08", "blockheight": 130, "network": "regtest", "fees_collected_msat": 106, "lightning-dir": "/tmp/.lightning/regtest", "our_features": { - "init": "08a0802a8a59a1", - "node": "88a0802a8a59a1", + "init": "08a0882a8a59a1", + "node": "88a0882a8a59a1", "channel": "", "invoice": "02000002024100" } @@ -129,24 +129,24 @@ "id": "example:commando#2", "method": "commando", "params": { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "RXgu0DD_i0wSPEZkIDyZIWL0bSAGdhvJ_GHOQdTg04A9MSZpZF4wMjY2ZTQ1OThkMWQzYzQxNWY1NyZtZXRob2Q9bGlzdHBlZXJz", "method": "listpeers", "params": [ - "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d" + "nodeid030303030303030303030303030303030303030303030303030303030303" ] } }, "response": { "peers": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "connected": true, "num_channels": 2, "netaddr": [ - "127.0.0.1:34785" + "127.0.0.1:19736" ], - "features": "08a0802a8a59a1" + "features": "08a0882a8a59a1" } ] } @@ -156,23 +156,23 @@ "id": "example:commando#3", "method": "commando", "params": { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "QUJEYMLGgiaJvMDv_MhR2hiMKIBTbq-PrL-KxcIlirQ9MiZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", "method": "pay", "params": { - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", + "bolt11": "lnbcrt100n1pnt2bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000", "amount_msat": 9900 } } }, "response": { - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", - "created_at": 1722303715.008808, + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", + "payment_hash": "paymenthashcmdpycp10cp10cp10cp10cp10cp10cp10cp10cp10cp10cp10cp10", + "created_at": 1738000000, "parts": 1, "amount_msat": 9900, "amount_sent_msat": 9900, - "payment_preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", + "payment_preimage": "paymentpreimagec010101010101010101010101010101010101010101010101", "status": "complete" } } diff --git a/doc/schemas/lightning-connect.json b/doc/schemas/lightning-connect.json index 41a36c231b5e..5094f011cff3 100644 --- a/doc/schemas/lightning-connect.json +++ b/doc/schemas/lightning-connect.json @@ -189,19 +189,19 @@ "id": "example:connect#1", "method": "connect", "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "host": "localhost", - "port": 41219 + "port": 19735 } }, "response": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "features": "08a0802a8a59a1", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", + "features": "08a0882a8a59a1", "direction": "out", "address": { "type": "ipv4", "address": "127.0.0.1", - "port": 41219 + "port": 19735 } } }, @@ -210,19 +210,19 @@ "id": "example:connect#2", "method": "connect", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "host": "localhost", - "port": 34785 + "port": 19736 } }, "response": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "features": "08a0802a8a59a1", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "features": "08a0882a8a59a1", "direction": "out", "address": { "type": "ipv4", "address": "127.0.0.1", - "port": 34785 + "port": 19736 } } } diff --git a/doc/schemas/lightning-createinvoice.json b/doc/schemas/lightning-createinvoice.json index 28dbfc9cf31c..b298b37df7c7 100644 --- a/doc/schemas/lightning-createinvoice.json +++ b/doc/schemas/lightning-createinvoice.json @@ -210,19 +210,19 @@ "id": "example:createinvoice#1", "method": "createinvoice", "params": { - "invstring": "lnbcrt1u1pn2s38zsp5j9w8t9p2y6an5se63n3vkpp8c20vdsthtn78sv5t2lmt57l742wqpp5wtxkappzcsrlkmgfs6g0zyct0hkhashh7hsaxz7e65slq9fkx7fsdqcdscnxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq4sjk5smmjpgu6v8k7xc7q5evf370kdvt8s8t6x9he6jh9sgagxyqw8l7ctdldf8vgyz3pdfwr4hn9r6u5xvd48w2f2atu752zwqsulspwpxne4", + "invstring": "lnbcrt100n1pnt2bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000bolt11invl010300000000", "label": "lbl_l13", "preimage": "0101010101010101010101010101010101010101010101010101010101010101" } }, "response": { "label": "lbl_l13", - "bolt11": "lnbcrt1u1pn2s38zsp5j9w8t9p2y6an5se63n3vkpp8c20vdsthtn78sv5t2lmt57l742wqpp5wtxkappzcsrlkmgfs6g0zyct0hkhashh7hsaxz7e65slq9fkx7fsdqcdscnxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqcjq9fq26ph2skcsm65xjwnw3crgygpampszjcvqs8aw2zf3jzcxqg4dh58fm8mxul29vh5urpyjkll9m4dq3807xcmq2q9yvgd5qt7qp695qvu", - "payment_hash": "72cd6e8422c407fb6d098690f1130b7ded7ec2f7f5e1d30bd9d521f015363793", + "bolt11": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", + "payment_hash": "paymenthashinvl0210021002100210021002100210021002100210021002100", "amount_msat": 100000, "status": "unpaid", "description": "l13 description", - "expires_at": 1722908514, + "expires_at": 1739000000, "created_index": 7 } } diff --git a/doc/schemas/lightning-createonion.json b/doc/schemas/lightning-createonion.json index bcf1faa7fff4..b798e8f38e64 100644 --- a/doc/schemas/lightning-createonion.json +++ b/doc/schemas/lightning-createonion.json @@ -108,26 +108,26 @@ "hops": [ { "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payload": "11020203e9040187060800006f0000010000" + "payload": "payload010101010101010101010101010" }, { "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payload": "11020203e804018106080000710000010001" + "payload": "payload020202020202020202020202020" }, { "pubkey": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payload": "2b020203e80401810822810248b37c63b882804cf746c5b1d7595d26713d89a443ec5808a18ed2327a1903e8" + "payload": "payload030303030303030303030303030" } ], - "assocdata": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" + "assocdata": "assocdata0010101010101010101010101010101010101010101010101010101" } }, "response": { - "onion": "0003ccc1f8876af4810e23bd4cccd8f2f38ee5dc117f527c783fefa4e632f857c98d588d2e3150d16b78f9458777502e4829b490e8a2d560841eb0c2368311bf9bb4e8ded0356badafd915839409ad60866c24dd7580b468c14097575565ca95425b9f44211d9ad0305ddba2391a70892ac8c9fd7c3b67d0fe22faf5a0b6905ee2e22278fe224e89ea72c3fcc598b35afaa255123e61ae7a697703e3bb8aec4d36ea487df6ec27942aadff0527d178c897e75f1ee284995196b5ead963ee9d0df798c8265c00c5c73daac917d298cc17e5d813189321d914c45ef30170c4d617dae12bb3a760d1665705e61bb6c52789e15623cefc68d96b86a6f17159c4a86bb196c9f5e40a0744d08d6da0cfd587717b6d0d074d42ac0893fa6ae1497c84824f1d27670d4e201af5e9e5a3493b603cfc209bb0ee41b573ca647c5b9882272c972cd18f19fd895e8995097d86882a473f4d26118a7ed656c5ea04c2a183b05cc0191d07fab5e78edab4ab8ec58e05e03f32d150449c0c8e3505e46ae58e77c87616144873f72f4571b00ccf8e71bcdf33a7d32345aecb660970fa73c4844ab157aa322f140f5d47b66a0590273728ddb5b8a7f3577cff5a268935b93fe598d6df4413c67c45efa9461abaf3294070a484418aa28c03ac20d08856eb0c74dfca851e8ed110bdcacb2a2fb90954b04e99986fde0678846a709120b5d1eeab9cde8d9f27d77448f4591e00bf30d7580703e6c189c658746cf7a7cc1430ce41f84244612b438c3d895333848e5f55e99b2a9d28860863c11aaa8e3ef01ead7ba1545156c356424c33aeeaa2f1e2c290d1d8dd52cd7b8116159025aba26db6fb81ad7f9cc4554c6f9f13d16defe38918b32d62a0516521934a0009a8d37c9a84689bfd8fc1f0beceb92701dca11175e0099d7541698956ba5d93efff996f538ee47717ae6c5cda98111bc28c822e99cf8957b707de270f447b6e52d30bcf9b8a9befd8663bc54612b543d0e167da67e2f295207b70857d0a7cae8932d905db2f48c873dec20aeafa07e15fa98a088e529424c8b404f03ba0ee78a6639fde5cd37dee42877ff6489ce1de5a8992cae25dd20a6521955c19129fdcc0ea157913373bf47a8018a1dd825a2f8e26194d5008161360ae9b25fc701b2accbe88eb47eee6a50b7ee6d6e169e3905e03ca72e00eb6a51b7ed3d27501715428368662b822e2262749d3e7d3243c4fd3d825b3e72bebdeebf6e035f1ad6634523ab5dc0335611c19c9936d006f2e4cd8818eb4f8b4857c8f35d18a4891e35ff91e3b54b384398574d673fcc8da50b22b8f485a41223c97e3b8ee5b8e5ff9c00a2cbfe7360509d3fee9248b5eaa81bb83da3be45dfa8cbbbf5c52ba8749c9d6261d4239feea1e7ce85ad40ad0c66bbeb1c6898626ae4e710a66f9c39a5ee94581353b46e070cfcff9a14e3f9a6108d55bb92852eb3a50e89b1e45d31b760f2a4e263a6a876ad638b123ffee7a2b0b48e16175e3eb92bfaad4dbe0af8b2bc1c15fec5a9d92d3970c2ffab2ab8fa2c9de0bd276680a4284707cd8543a97bca2394e9514236129f1c50a932f7e9bfb98c2aaa6ffc9a4a30641061246de6edf0f711a8d25d59af42ee4445b22ce2f832f3ece52c18ca62d90c590729e04c47accaec95b556ee2541c84843c54a116f5cc45bc251a8023b695f0bf79c43a97bece8a761d387a466821984fb5ec438af20d14cebb7f0026988c81b5a1b895ef94df61aa509e53083b4306c42132b5ce302fd5a2fbb1cee30a7078ccaa3bdccf781b8c9d6ae016a5f8e5cb13f7ac1f3fd0d74a182c9abea67d346f0dfcfc211aaa7ff47196465398fce3e6e0f3b73a944a7f57a90cc6a8f1bfcd385f8312e23af6f508f4f8a976d750660ac3d63630555a3a2e7fe158a982aaf0278d9f8819e5cb", + "onion": "onion10101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010", "shared_secrets": [ - "7d856ece68ddf5a89b909f888bc0c37207800a6cdba89db12a7cf7e7c26e5209", - "d1dfacfabba80f07461b890fc660440a105460b687c21bf78f7e6050c2889a98", - "46ff1895fde58206d5b437d39bb149995456ede6b9af75c0135210efbff23333" + "sharedsecret1010101010101010101010101010101010101010101010101010", + "sharedsecret1111111111111111111111111111111111111111111111111111", + "sharedsecret1212121212121212121212121212121212121212121212121212" ] } }, @@ -135,31 +135,31 @@ "request": { "id": "example:createonion#2", "method": "createonion", - "params": [ - [ + "params": { + "hops": [ { "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payload": "11020203e9040187060800006f0000010000" + "payload": "payload010101010101010101010101010" }, { "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payload": "11020203e804018106080000710000010001" + "payload": "payload020202020202020202020202020" }, { "pubkey": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payload": "2b020203e80401810822810248b37c63b882804cf746c5b1d7595d26713d89a443ec5808a18ed2327a1903e8" + "payload": "payload030303030303030303030303030" } ], - "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "4141414141414141414141414141414141414141414141414141414141414141" - ] + "assocdata": "assocdata0010101010101010101010101010101010101010101010101010101", + "session_key": "4141414141414141414141414141414141414141414141414141414141414141" + } }, "response": { - "onion": "0002eec7245d6b7d2ccb30380bfbe2a3648cd7a942653f5aa340edcea1f2836866191c78fd992bdb6323814526c8ea3ab57e22cd7739942f3a3f117d1191ed07d90599edc15c1d83a85b3f00350f4ec0f4b78894d38499e802a15843122723857ebddb629cf308d485de6bdbef80209059e3409ee47154e1b7e8f20d7ce02826c734601240c31ea9fa2c0caea8677b0db9e98835e762cb32e42da32f60bd000fe44350e8e87b69d83363c41d8d22f1639e8701901d74b64bf51f1c21cdc785b54dc5a6ba39fc75f956b60a372f6421a84f6001b294487baf1bb049b7bd901c5854c0999a82095874b02da90021a685f7c77f4b724a3d27489c091807b32bcdfb2c68f69b50c0b43c78288c333dbb007874f36fcf224fbc2ed89690f64a62b5ecfe6275750eb1a5575f689ca6d59c9a570689372db120cf6a29177caaace5ac671a3607d37a3048af18d1d736ac8a4dde8efc4884f8eab23cdc8cb15170471ee7b416b5cf089dee8ab8ac3eea6700a6040839c1e86f6d2b5acf9c7bac856cae96e9d1b7142f91ac4818cf0007a23100ae621470ac2552116f30948f21602237d12d29f58ca73f10f05b38f7b4b728fcfd8aafc1a82502aae3081c4bc8a77771aef16247bcf26d8569140441c405a3c21a649a8439797f45e7c37a2025318f4c88e3eba454fd4cc37e9978b59fa7b1e41af450523713fdad8070c7abdeea299474c99b2bde737e8c8ad79cb9fdd70a935ad29504d185bf100a339d203cd929030454a6450132255fea11ba0c6a520fa7cc3b8638f8032a61c492f7f9d1ec591a851f25df9238945ae467126b64019f21a71a2d3ef46cdd7b61773ad632dc77e0bda7d06b493efe940d9b975ebb85c423a83d24966f5e2ae2ec9c3b2257cc21a4989dd016d688865ba5245667c302e408dc56ffdf4282ad834f0c5af1ce49b3997fe397faf6874cac24ae346b4e72e468506c0e724efe6f805e0fd115de39b6fa29d05e11bbe2ec27548517f93ebd7b977b13237ab9c40ff5766f7263ea1f2eabba460600cd7da082fcf8d0a7bd37054abfd6040f886dde48cf600612b5b73a44026e79d46336de73f2ea5fbfc9603ccd89f6954e5093b6bfe556e6f67deb0878128049186f7ac6ef461a56c2bb4f24a9679fb386e06052c3da2f367f14bc41ec191f5b0b7b3ccad1f2cc58c863c49055c889b8b04b6b6cbaec50d0d103d4ea0da75952a730b07cea0da43914b5ab3f30b5104d9a75eb003da0b5b97bf9eb9081194cc5b50362041a972841bdafde31909929237ed5b94c88dd05126cdb3fd25add0c777c2ad021e1a0e7140d6c4c2005cb353a7a6a747ee75467c052f55faa485cbcf3758eafba7a8ef00d1481cc0f05af539116f443cb02a7b30a3de899dc66cb0781ccccf5c8d93b34be0665d11cbca55cd7a424b958124edf1289c7f4fc19c1be8fc7a861ce47c43a641bafdb195e1c74a1fbf69dbd518013f3dbf2860818b5a3e6f1dd36a5546bfd416e9714dec29818ecd1aeeb29c319b407c497621248d232680417486698a3e1262f03a8bc6441d1de40ae351dae4527a8efe25fc68a3f1571aa556edd6bfb9db7caba4d2c02bab003c43055f5d3ebf961735c3b1f4cd3e0a96038697a95cceac08c0aff084450cf571f81c95d468826aa4292997ccfeba32db77c4c22a9d3caa0a37a8a961ac2f2c8a6965687143bc93c620503839fd7bd7fc2e6d9c966586b713f824b8e9d3de55cb1b81f9204b92dfaa066920c0910e62e59650e904e05b94bde3e467d45719d6a3b85a71c8ff1dcca5a5f497928db5f64c55aad93513e87f4f0c93a6fa5a9afe929cf8223ea509f584913844044aa23a4afa4bc0ad975f4904aab5d77b5e51511460a3b7a982d3b0adcf3fd2ffc2494d16add2825a929fc7c4f0c97159e6fa6aba8569433", + "onion": "onion20202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020", "shared_secrets": [ - "2d7581974cde41b42da1d0a3147704aae5a71e8987fa30dc920c8cdf784b661d", - "bb599b824ce9e123c8cb27cd50a996e5035b8ae903356dcbff224496aab3a891", - "7bc4f97c2d18d5372ef572334e31590ec36b33220d7a71fa4e0fe841174eaccb" + "sharedsecret2020202020202020202020202020202020202020202020202020", + "sharedsecret2121212121212121212121212121212121212121212121212121", + "sharedsecret2222222222222222222222222222222222222222222222222222" ] } } diff --git a/doc/schemas/lightning-datastore.json b/doc/schemas/lightning-datastore.json index 2e33fc4fe8db..a99cbe2b4980 100644 --- a/doc/schemas/lightning-datastore.json +++ b/doc/schemas/lightning-datastore.json @@ -130,51 +130,32 @@ "request": { "id": "example:datastore#1", "method": "datastore", - "params": { - "key": "somekey", - "hex": "61", - "mode": "create-or-append" - } - }, - "response": { - "key": [ - "somekey" - ], - "generation": 0, - "hex": "61", - "string": "a" - } - }, - { - "request": { - "id": "example:datastore#2", - "method": "datastore", "params": { "key": [ - "test", - "name" + "employee", + "index" ], - "string": "saving data to the store", + "string": "saving employee keys to the store", "mode": "must-create" } }, "response": { "key": [ - "test", - "name" + "employee", + "index" ], "generation": 0, - "hex": "736176696e67206461746120746f207468652073746f7265", - "string": "saving data to the store" + "hex": "736176696e6720656d706c6f796565206b65797320746f207468652073746f7265", + "string": "saving employee keys to the store" } }, { "request": { - "id": "example:datastore#3", + "id": "example:datastore#2", "method": "datastore", "params": { "key": "otherkey", - "string": "foo", + "string": "other", "mode": "must-create" } }, @@ -183,17 +164,17 @@ "otherkey" ], "generation": 0, - "hex": "666f6f", - "string": "foo" + "hex": "6f74686572", + "string": "other" } }, { "request": { - "id": "example:datastore#4", + "id": "example:datastore#3", "method": "datastore", "params": { "key": "otherkey", - "string": "bar", + "string": " key: text to be appended to the otherkey", "mode": "must-append", "generation": 0 } @@ -203,8 +184,8 @@ "otherkey" ], "generation": 1, - "hex": "666f6f626172", - "string": "foobar" + "hex": "6f74686572206b65793a207465787420746f20626520617070656e64656420746f20746865206f746865726b6579", + "string": "other key: text to be appended to the otherkey" } } ] diff --git a/doc/schemas/lightning-datastoreusage.json b/doc/schemas/lightning-datastoreusage.json index f700a4917a1f..d0b8b9ad3c19 100644 --- a/doc/schemas/lightning-datastoreusage.json +++ b/doc/schemas/lightning-datastoreusage.json @@ -83,7 +83,7 @@ "response": { "datastoreusage": { "key": "[]", - "total_bytes": 55 + "total_bytes": 142 } } }, @@ -116,7 +116,7 @@ "response": { "datastoreusage": { "key": "[otherkey]", - "total_bytes": 14 + "total_bytes": 54 } } } diff --git a/doc/schemas/lightning-decode.json b/doc/schemas/lightning-decode.json index d1eb5e79bcbe..db8f46665544 100644 --- a/doc/schemas/lightning-decode.json +++ b/doc/schemas/lightning-decode.json @@ -2368,33 +2368,33 @@ "id": "example:decode#2", "method": "decode", "params": [ - "lnbcrt2u1pn2s3xxsp5cpcdj2cy5wpd2nphp2evrp9kqymxf9434zftkmdd6dlgmy8cu78qpp58yq5qf3h0694xwymzjs5e8eejce83vjmxv6cpwqv8cs9e05dxe4qdqcdserygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq9wlpxf8ur0q798646w94tduf6wfkaw7m0ecmxepgatd4utvsyvcy0pku9t8m39rlsjzhe8x53mup5jkn0f84clfj3ctc6qj09t35wxspycpup2" + "lnbcrt100n1pnt2bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000" ] }, "response": { "type": "bolt11 invoice", "currency": "bcrt", - "created_at": 1722303686, + "created_at": 1738000000, "expiry": 604800, - "payee": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "payee": "nodeid020202020202020202020202020202020202020202020202020202020202", "amount_msat": 200000, "description": "l22 description", "min_final_cltv_expiry": 5, - "payment_secret": "c070d92b04a382d54c370ab2c184b601366496b1a892bb6dadd37e8d90f8e78e", + "payment_secret": "paymentsecretinvl00220002200022000220002200022000220002200022000", "features": "02024100", "routes": [ [ { - "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "111x1x0", + "pubkey": "nodeid030303030303030303030303030303030303030303030303030303030303", + "short_channel_id": "111x1x1", "fee_base_msat": 1, "fee_proportional_millionths": 10, "cltv_expiry_delta": 6 } ] ], - "payment_hash": "39014026377e8b53389b14a14c9f39963278b25b333580b80c3e205cbe8d366a", - "signature": "304402202bbe1324fc1bc1e29f55d38b55b789d3936ebbdb7e71b36428eadb5e2d90233002204786dc2acfb8947f84857c9cd48ef81a4ad37a4f5c7d328e178d024f2ae3471a", + "payment_hash": "paymenthashinvl0220022002200220022002200220022002200220022002200", + "signature": "dcde30c4bb50bed221009d010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "valid": true } } diff --git a/doc/schemas/lightning-decodepay.json b/doc/schemas/lightning-decodepay.json index 5a31a934b5c9..94ba88cc9b59 100644 --- a/doc/schemas/lightning-decodepay.json +++ b/doc/schemas/lightning-decodepay.json @@ -266,23 +266,23 @@ "id": "example:decodepay#1", "method": "decodepay", "params": { - "bolt11": "lnbcrt100n1pn2s3xxsp5s4wvy67lduz0tpxzmw0x0m8z5krfn6ppeu3a9t559tcdxquqwjfqpp5r0zx30ded4lpxp7vrdxqenmwr9rqftn93dcymvmuaxpu8y5zxunqdqcdscnzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqyk0lnqhsl07405jsqzyyaheu3dhxdv6s498ex97yvacs04gf6carplepnh5drlse8spy8nluz4uwj78h47ez6hak9md2s8mtg6yy5tcqt8yfsj" + "bolt11": "lnbcrt100n1pnt2bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000bolt11invl010100000000" } }, "response": { "currency": "bcrt", - "created_at": 1722303686, + "created_at": 1738000000, "expiry": 604800, - "payee": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "payee": "nodeid010101010101010101010101010101010101010101010101010101010101", "amount_msat": 10000, "description": "l11 description", "min_final_cltv_expiry": 5, - "payment_secret": "855cc26bdf6f04f584c2db9e67ece2a58699e821cf23d2ae942af0d303807492", + "payment_secret": "paymentsecretinvl00110001100011000110001100011000110001100011000", "features": "02024100", "routes": [ [ { - "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "pubkey": "nodeid020202020202020202020202020202020202020202020202020202020202", "short_channel_id": "109x1x1", "fee_base_msat": 1, "fee_proportional_millionths": 10, @@ -290,8 +290,8 @@ } ] ], - "payment_hash": "1bc468bdb96d7e1307cc1b4c0ccf6e194604ae658b704db37ce983c392823726", - "signature": "30440220259ff982f0fbfd57d25000884edf3c8b6e66b350a94f9317c4677107d509d63a022030ff219de8d1fe193c0243cffc1578e978f7afb22d5fb62edaa81f6b46884a2f" + "payment_hash": "paymenthashinvl0110011001100110011001100110011001100110011001100", + "signature": "dcdepay30c4bb50bed209d020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" } } ] diff --git a/doc/schemas/lightning-deldatastore.json b/doc/schemas/lightning-deldatastore.json index 1b15c3766069..95afd3bfe48d 100644 --- a/doc/schemas/lightning-deldatastore.json +++ b/doc/schemas/lightning-deldatastore.json @@ -126,8 +126,8 @@ "otherkey" ], "generation": 1, - "hex": "666f6f626172", - "string": "foobar" + "hex": "6f74686572206b65793a207465787420746f20626520617070656e64656420746f20746865206f746865726b6579", + "string": "other key: text to be appended to the otherkey" } } ] diff --git a/doc/schemas/lightning-delforward.json b/doc/schemas/lightning-delforward.json index 671795446a4d..7c6d1e6c1baa 100644 --- a/doc/schemas/lightning-delforward.json +++ b/doc/schemas/lightning-delforward.json @@ -76,11 +76,11 @@ "request": { "id": "example:delforward#2", "method": "delforward", - "params": [ - "109x1x1", - 19, - "failed" - ] + "params": { + "in_channel": "109x1x1", + "in_htlc_id": 19, + "status": "failed" + } }, "response": {} } diff --git a/doc/schemas/lightning-delinvoice.json b/doc/schemas/lightning-delinvoice.json index 66e492503ef5..392aa5cfad5b 100644 --- a/doc/schemas/lightning-delinvoice.json +++ b/doc/schemas/lightning-delinvoice.json @@ -301,12 +301,12 @@ }, "response": { "label": "lbl_l36", - "bolt11": "lnbcrt500u1pn2s3fwsp5e6nltgzk3yqn5033r6z2q32pzduys3zs5dtzc5cjs60ppcgytrsqpp5ykhhcxzcqeng2gfggmsdja3x8h0qmkl35lw9z7n99pfkg8w0s8asdqcdsenvgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqwn7uwmy3x8u9c4ea0ka0yp3qvs0w9m7459g65kalm553vusctq8kseaph7tav4ryjfghnhu0ggjhhkrqmafarqkdsrzsk8stcvdmpmcqwfsajc", - "payment_hash": "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "bolt11": "lnbcrt222n1pnt3005720bolt113000101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "payment_hash": "paymenthashdelinv10101010101010101010101010101010101010101010101", "amount_msat": 50000000, "status": "unpaid", "description": "l36 description", - "expires_at": 1722908590, + "expires_at": 1739000000, "created_index": 9 } }, @@ -322,15 +322,15 @@ }, "response": { "label": "lbl_l37", - "bolt11": "lnbcrt500u1pn2s3fwsp5g96a3t3kn2we3ulrepd8eg4nw900wc324r06zlpr8py7p4zyftrspp5ggs9vzev5gcgthdysjrk0pcjgl3r5fwy4zgw6m48kk9nwx4h9slqdqcdsenwgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqwkmgxwugmtjvf9cu324h87x5ux3cwa6glefyfxvergy3mw8gwtnzg05mrf69yz0dafk4n7u7asaxh2nx5jsylwvqttzxmr9krpc9rlsquhqkt4", - "payment_hash": "4220560b2ca23085dda4848767871247e23a25c4a890ed6ea7b58b371ab72c3e", + "bolt11": "lnbcrt222n1pnt3005720bolt113000101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "payment_hash": "paymenthashdelinv20202020202020202020202020202020202020202020202", "amount_msat": 50000000, "status": "paid", "pay_index": 9, "amount_received_msat": 50000000, - "paid_at": 1722303802, - "payment_preimage": "e876ca5ae4ed9897178b2b3a17997256ad669335eb9201e05e3c97ffb83c634b", - "expires_at": 1722908590, + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagedelinv01010101010101010101010101010101010101010101", + "expires_at": 1739000000, "created_index": 10, "updated_index": 9 } diff --git a/doc/schemas/lightning-delpay.json b/doc/schemas/lightning-delpay.json index 4d900f71e981..cf293669e8f4 100644 --- a/doc/schemas/lightning-delpay.json +++ b/doc/schemas/lightning-delpay.json @@ -212,7 +212,7 @@ "id": "example:delpay#1", "method": "delpay", "params": { - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "status": "complete" } }, @@ -221,17 +221,17 @@ { "created_index": 1, "id": 1, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "groupid": 1, "updated_index": 1, - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", "amount_msat": 500000000, "amount_sent_msat": 500000000, - "created_at": 1722303670, - "completed_at": 1722303671, + "created_at": 1738000000, + "completed_at": 1738500000, "status": "complete", - "payment_preimage": "bed4140e1db302720d7f9547dc9127d45b115080447cce7e23cfd00b60991831", - "bolt11": "lnbcrt5m1pn2s39ksp53sknyy2mxxurt4y0wqgp730z0cnm0vz3zmzth8p79xsrtmg5llxspp5dp94v59nm6c99jf7lc07zmnhqw6kyujx3mkdav7643dczgtdedfqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqdz9cftkxe6kcqfddyrvr7j57ulsfxxxkgkjyhr3k77n8v59mzs5rmuexz9lxusyhhehlemd9ujclgahln8e0n8y86stc7u8uys6mjqgqerm6q4" + "payment_preimage": "paymentpreimgdp1010101010101010101010101010101010101010101010101", + "bolt11": "lnbcrt222n1pnt3005720bolt114000101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" } ] } @@ -241,7 +241,7 @@ "id": "example:delpay#2", "method": "delpay", "params": [ - "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "paymenthashdelpay20202020202020202020202020202020202020202020202", "failed" ] }, @@ -250,16 +250,16 @@ { "created_index": 20, "id": 20, - "payment_hash": "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "payment_hash": "paymenthashdelinv10101010101010101010101010101010101010101010101", "groupid": 1, "updated_index": 19, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 50000000, "amount_sent_msat": 50000501, - "created_at": 1722303803, - "completed_at": 1722303806, + "created_at": 1738000000, + "completed_at": 1738500000, "status": "failed", - "bolt11": "lnbcrt500u1pn2s3fwsp5e6nltgzk3yqn5033r6z2q32pzduys3zs5dtzc5cjs60ppcgytrsqpp5ykhhcxzcqeng2gfggmsdja3x8h0qmkl35lw9z7n99pfkg8w0s8asdqcdsenvgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqwn7uwmy3x8u9c4ea0ka0yp3qvs0w9m7459g65kalm553vusctq8kseaph7tav4ryjfghnhu0ggjhhkrqmafarqkdsrzsk8stcvdmpmcqwfsajc" + "bolt11": "lnbcrt222n1pnt3005720bolt113000101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" } ] } @@ -269,7 +269,7 @@ "id": "example:delpay#3", "method": "delpay", "params": { - "payment_hash": "647252f7e45fce7bb964523206874f40f58fbb7b208bc08967caa0e2404990c9", + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", "status": "failed", "groupid": 1, "partid": 2 @@ -280,15 +280,15 @@ { "created_index": 17, "id": 17, - "payment_hash": "647252f7e45fce7bb964523206874f40f58fbb7b208bc08967caa0e2404990c9", + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", "groupid": 1, "updated_index": 16, "partid": 2, - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "destination": "nodeid040404040404040404040404040404040404040404040404040404040404", "amount_msat": 1000000, "amount_sent_msat": 1000000, - "created_at": 1722303798, - "completed_at": 1722303799, + "created_at": 1738000000, + "completed_at": 1738500000, "status": "failed" } ] diff --git a/doc/schemas/lightning-dev-forget-channel.json b/doc/schemas/lightning-dev-forget-channel.json index d25477d3dbf0..d04329553d98 100644 --- a/doc/schemas/lightning-dev-forget-channel.json +++ b/doc/schemas/lightning-dev-forget-channel.json @@ -98,13 +98,13 @@ "id": "example:dev-forget-channel#1", "method": "dev-forget-channel", "params": { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e" + "id": "nodeid050505050505050505050505050505050505050505050505050505050505" } }, "response": { "forced": false, "funding_unspent": false, - "funding_txid": "c40c9d52aaac47f76c67163a2efc005df189b36b855b0ad209da7d0d066358b1" + "funding_txid": "fundingtxid00101010101010101010101010101010101010101010101010101" } }, { @@ -115,15 +115,15 @@ "id": "example:dev-forget-channel#2", "method": "dev-forget-channel", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "111x1x0", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "short_channel_id": "111x1x1", "force": true } }, "response": { "forced": true, "funding_unspent": false, - "funding_txid": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483" + "funding_txid": "fundingtxid00202020202020202020202020202020202020202020202020202" } } ] diff --git a/doc/schemas/lightning-disableinvoicerequest.json b/doc/schemas/lightning-disableinvoicerequest.json index e0cf5f50b1bb..a5762c59c341 100644 --- a/doc/schemas/lightning-disableinvoicerequest.json +++ b/doc/schemas/lightning-disableinvoicerequest.json @@ -93,14 +93,14 @@ "id": "example:disableinvoicerequest#1", "method": "disableinvoicerequest", "params": { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9" + "invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202" } }, "response": { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202", "active": false, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", + "bolt12": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000", "used": false } } diff --git a/doc/schemas/lightning-disableoffer.json b/doc/schemas/lightning-disableoffer.json index cf918670d471..1e68f56c346c 100644 --- a/doc/schemas/lightning-disableoffer.json +++ b/doc/schemas/lightning-disableoffer.json @@ -93,14 +93,14 @@ "id": "example:disableoffer#1", "method": "disableoffer", "params": { - "offer_id": "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24" + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000" } }, "response": { - "offer_id": "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24", + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000", "active": false, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv0gfqq2zp8kven9wgs8gmeqg35hxctzd3j3vggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vs", + "bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000", "used": false } } diff --git a/doc/schemas/lightning-disconnect.json b/doc/schemas/lightning-disconnect.json index 92a2b384b901..d30fd09b2499 100644 --- a/doc/schemas/lightning-disconnect.json +++ b/doc/schemas/lightning-disconnect.json @@ -51,7 +51,7 @@ "id": "example:disconnect#1", "method": "disconnect", "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", "force": false } }, @@ -62,7 +62,7 @@ "id": "example:disconnect#2", "method": "disconnect", "params": { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", + "id": "nodeid050505050505050505050505050505050505050505050505050505050505", "force": true } }, diff --git a/doc/schemas/lightning-emergencyrecover.json b/doc/schemas/lightning-emergencyrecover.json index 4fe17dde586b..fe5018800ddb 100644 --- a/doc/schemas/lightning-emergencyrecover.json +++ b/doc/schemas/lightning-emergencyrecover.json @@ -57,9 +57,9 @@ }, "response": { "stubs": [ + "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9", "e13472d6512413eb1bf03b9a0bb391d0e4152fd337fa6d1014e3de5e131918d9", - "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", - "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9" + "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f" ] } } diff --git a/doc/schemas/lightning-enableoffer.json b/doc/schemas/lightning-enableoffer.json index 1970df3c335c..8b309810b4b4 100644 --- a/doc/schemas/lightning-enableoffer.json +++ b/doc/schemas/lightning-enableoffer.json @@ -97,14 +97,14 @@ "id": "example:enableoffer#1", "method": "enableoffer", "params": { - "offer_id": "713a16ccd4eb10438bdcfbc2c8276be301020dd9d489c530773ba64f3b33307d" + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000" } }, "response": { - "offer_id": "053a5c566fbea2681a5ff9c05a913da23e45b95d09ef5bd25d7d408f23da7084", + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqvqcdgq2z9pk7enxv4jjqen0wgs8yatnw3ujz83qkc6rvp4j28rt3dtrn32zkvdy7efhnlrpr5rp5geqxs783wtlj550qs8czzku4nk3pqp6m593qxgunzuqcwkmgqkmp6ty0wyvjcqdguv3pnpukedwn6cr87m89t74h3auyaeg89xkvgzpac70z3m9rn5xzu28c", + "bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000", "used": false } } diff --git a/doc/schemas/lightning-fetchinvoice.json b/doc/schemas/lightning-fetchinvoice.json index 078a8de402d9..69ebbbc7e4ee 100644 --- a/doc/schemas/lightning-fetchinvoice.json +++ b/doc/schemas/lightning-fetchinvoice.json @@ -190,12 +190,12 @@ "id": "example:fetchinvoice#1", "method": "fetchinvoice", "params": { - "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqgn3qzs2ge5hx6pqwdskcefpzcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "offer": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "payer_note": "Thanks for the fish!" } }, "response": { - "invoice": "lni1qqg9g04gczk9ntk4gsjg3aptwykk2q3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssq38zq9q53nfwd5zqumpd3jjz93pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84sggztuesttnr6atmya7afycpsvcg0wnzprn58n54lfhf2ragp0jq0e04j9z5dpsku6mnypnx7u3qw35x2grxd9eksgdqnqpz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336kgr6euj6p39a209zw5kpkftk7h9te69vlmjg0arceagpaajague0zsszqk96htpgqn2wsznaas0zfdtf8v97ryz29jrn7rwgs5687ghgq5jusqr99dtx4jdj9nqpep5zxmynegrg6e7rm2l53ur8043h2yqzldyl5vh08h8ssaeq5jrvw9y24kztlwvc4nwagsuqqqqqqqqqqqqqqq9qqqqqqqqqqqqq8fykt06c5sqqqqqpfqyv65yfedgyqrp2s7qpxpjse8q8796qcrr5xwgfkqjue3urd6rs2rt2f68tk0vl2szyugtqggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vlqsy2n7vmpn67ltzrj70znp70sk4m530j5vceq6jhk97h7ttzn09sh8m9gecarrt27v2tux8z6rr06sj9h60r05p4vhkhzsp0xf9ea4jgg", + "invoice": "lni1qqg0qe01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "changes": {} } }, @@ -204,13 +204,13 @@ "id": "example:fetchinvoice#2", "method": "fetchinvoice", "params": { - "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv85ysq2qepk7enxv4j3gqg2zcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "offer": "lno1qgsq000bolt220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000", "amount_msat": 2000000, "quantity": 2 } }, "response": { - "invoice": "lni1qqg86u6jfl660zfuk22sexem37r7xq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqc0gfqq5pjrdanxvet9zsqs593pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84yqc7sjq9vqgztqssxq2dwgnpqyhz3j68zx5cts28t6aqfgq937wsgvsmfncau3uhz8t05zvqytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82eq2rdjuqaychg3jndvsjrlu6y08aeuh4ytw6f6ak5n24p5n8zmsz2sqgrg3rg89hqfh6n7dfr0fugvq20ehecd3ezc438l6uh4r8epaakn4lsqv4qgr3ks4yxngyflq339lza456xt8uly085umq3gwql3qyfge0ec03dezeg8xulz33ntlj8yd7dcra9564zrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s3894qsfwwvj3szk4yplg4fkw68nwzlwyc23457qx6v7xe38znuha72km6a2qv0gfq9syypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgz2rxjcsxs6s3lnngq9xeqn9pzy53n50p4ulcdvkx8dye7h8xgxpvjyg928m2txk2knl0zzfl7j82c6lq7xqlx83ey7z4aux9pjp4sp7", + "invoice": "lni1qqg0qe02020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", "changes": {} } } diff --git a/doc/schemas/lightning-fundchannel.json b/doc/schemas/lightning-fundchannel.json index a952ebd2c446..5fef07e87d99 100644 --- a/doc/schemas/lightning-fundchannel.json +++ b/doc/schemas/lightning-fundchannel.json @@ -242,15 +242,15 @@ "id": "example:fundchannel#1", "method": "fundchannel", "params": { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", + "id": "nodeid050505050505050505050505050505050505050505050505050505050505", "amount": 1000000, "announce": true } }, "response": { - "tx": "02000000000101a4f6a433b1c2625323c18bc25f880c3e7960722d9ca353d7ff5c2a2132d56a380000000000fdffffff0240420f0000000000220020b41521751a8eb257315f73a531763071cc39b7cece470f630fd5149fe7b7057a816cdc0b00000000225120a5410daebf4fc3cba618a840af497fbec4c3a084534f2b7b6a7d30bf35f8f566024730440220700ee63053ba1fea998685e721016c15cf7809fd77698560230457e122566f220220181aaa01f472ec575edc532bc612c749e7a3829f5616fc3289fd4dc7d96e98d8012102c8a8f25ed135cd671c88bd4e407bb3746678cfacbcf65ce89f8efc2aa0abe53596000000", - "txid": "8326851788c6da23bc883c960affc6126f766348c131eda53d73bc06f0bd90ff", - "channel_id": "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9", + "tx": "020000000000305fundchanneltx350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000350003500035000", + "txid": "channeltxid350000350000350000350000350000350000350000350000350000", + "channel_id": "channelid0350000350000350000350000350000350000350000350000350000", "channel_type": { "bits": [ 12, @@ -261,30 +261,30 @@ "anchors/even" ] }, - "outnum": 0 + "outnum": 1 } }, { "description": [ - "This example shows how to to open new channel with peer 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518 from one whole utxo c8afe317789f3ecbd52893d2ac08be7499486df5a03c95ad063e395e931eb50a:1 (you can use **listfunds** command to get txid and vout):" + "This example shows how to to open new channel with peer 1 from one whole utxo (you can use **listfunds** command to get txid and vout):" ], "request": { "id": "example:fundchannel#2", "method": "fundchannel", "params": { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "id": "nodeid010101010101010101010101010101010101010101010101010101010101", "amount": "all", "feerate": "normal", "push_msat": 100000, "utxos": [ - "c8afe317789f3ecbd52893d2ac08be7499486df5a03c95ad063e395e931eb50a:1" + "channeltxid350000350000350000350000350000350000350000350000350000:1" ] } }, "response": { - "tx": "020000000001010ab51e935e393e06ad953ca0f56d489974be08acd29328d5cb3e9f7817e3afc80100000000fdffffff01cbb3eb0b00000000220020752dd5af63b98ff64fedf94683b0306c43f6eec74fbfe917639735b305e1b6d9024730440220431a00efd961f417160bd7180970a61b57c01b7c1e082d41429bb0c4e220d4180220542d0c9a1a59048751364b0ede571117fd8abdbf63d83d67a181c17ea3d3ef9e0121024740cce0e548f4ffe80c9914e43444d8e66ee8991dc9d93ec56dff4c56b933159a000000", - "txid": "20bbe695f309285479e6b63b8ab4346ce66b2db7018485e09d59175cec6156b1", - "channel_id": "222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa", + "tx": "020000000000401fundchanneltx410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000", + "txid": "channeltxid410000410000410000410000410000410000410000410000410000", + "channel_id": "channelid0410000410000410000410000410000410000410000410000410000", "channel_type": { "bits": [ 12, @@ -295,7 +295,7 @@ "anchors/even" ] }, - "outnum": 0 + "outnum": 1 } } ] diff --git a/doc/schemas/lightning-fundchannel_cancel.json b/doc/schemas/lightning-fundchannel_cancel.json index 6906172c6f27..c1fda0abe109 100644 --- a/doc/schemas/lightning-fundchannel_cancel.json +++ b/doc/schemas/lightning-fundchannel_cancel.json @@ -68,7 +68,7 @@ "id": "example:fundchannel_cancel#1", "method": "fundchannel_cancel", "params": [ - "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc" + "nodeid101010101010101010101010101010101010101010101010101010101010" ] }, "response": { @@ -80,7 +80,7 @@ "id": "example:fundchannel_cancel#2", "method": "fundchannel_cancel", "params": { - "id": "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc" + "id": "nodeid101010101010101010101010101010101010101010101010101010101010" } }, "response": { diff --git a/doc/schemas/lightning-fundchannel_complete.json b/doc/schemas/lightning-fundchannel_complete.json index 7d57d9c8f2dd..e4bbb7446a1d 100644 --- a/doc/schemas/lightning-fundchannel_complete.json +++ b/doc/schemas/lightning-fundchannel_complete.json @@ -85,12 +85,12 @@ "id": "example:fundchannel_complete#1", "method": "fundchannel_complete", "params": [ - "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc", - "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAFpz79e9wou5mbmtaiB+6WfRTf8SpZxmrd6n+rIFcWewQAAAAAA/f///wLS79/eAAAAABYAFE35CMxYA4yQx9XLuFj0/q5uNmligJaYAQAAAAAWABT/hTPq8LE5vAc9KiJjjmygoIN81UsAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVAQ4gl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywBDwQBAAAAARAE/f///wABAwgAAAABAAAAAAEEIgAgrcWu1QvOE7IcR/Pw6wFIFh6/TLwoeKjo5eUoi7suzsEAAQMIQYOYAAAAAAABBCJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AA==" + "nodeid101010101010101010101010101010101010101010101010101010101010", + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000" ] }, "response": { - "channel_id": "4ef7fbec78160e41ac53e32bb7d4d491222070cf719bd236a03a27109a306ced", + "channel_id": "channelid0910109101091010910109101091010910109101091010910109101", "commitments_secured": true } }, @@ -99,12 +99,12 @@ "id": "example:fundchannel_complete#2", "method": "fundchannel_complete", "params": { - "id": "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc", - "psbt": "cHNidP8BAgQCAAAAAQMETgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAEAAAAA/f///wIAAAABAAAAACIAIK3FrtULzhOyHEfz8OsBSBYev0y8KHio6OXlKIu7Ls7BQYOYAAAAAAAiUSCB2g0+MFETWoni+dheLq32YflZv7BeZxCXhUZyz9CsfZUAAAABAStBg5gAAAAAACJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AQ4gTvf77HgWDkGsU+Mrt9TUkSIgcM9xm9I2oDonEJowbO0BDwQBAAAAARAE/f///wABAwhAQg8AAAAAAAEEIgAgyeosZcqM3Ce8Ew/hH15S4XVHXg4xtkWx3MODLcT3540AAQMIwi2JAAAAAAABBCJRIHdLHCqbSwqdzkO0Y5WUDaIAERXUAPo2Z5CeyGpdNlGLAA==" + "id": "nodeid101010101010101010101010101010101010101010101010101010101010", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000401000" } }, "response": { - "channel_id": "589340033fb4e1ace8a5f6239a9bcc88e2d65191f68e4ad3f2ad37818718a2e9", + "channel_id": "channelid0910209102091020910209102091020910209102091020910209102", "commitments_secured": true } } diff --git a/doc/schemas/lightning-fundchannel_start.json b/doc/schemas/lightning-fundchannel_start.json index d6a2dac4fe08..aea8e9fdb3a7 100644 --- a/doc/schemas/lightning-fundchannel_start.json +++ b/doc/schemas/lightning-fundchannel_start.json @@ -211,13 +211,13 @@ "id": "example:fundchannel_start#1", "method": "fundchannel_start", "params": [ - "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc", + "nodeid101010101010101010101010101010101010101010101010101010101010", 16777216 ] }, "response": { - "funding_address": "bcrt1q5ptrvwlgcldm2ygf3nzsl09zfpp7dmtduqlczer97xvc4x5z5zwsc2ulv4", - "scriptpubkey": "0020a056363be8c7dbb511098cc50fbca24843e6ed6de03f816465f1998a9a82a09d", + "funding_address": "bcrt1p0002020202020202020202020202020202020202020202020202020202", + "scriptpubkey": "scriptpubkey01010101010101010101010101010101010101010101010101010101", "channel_type": { "bits": [ 12, @@ -236,13 +236,13 @@ "id": "example:fundchannel_start#2", "method": "fundchannel_start", "params": { - "id": "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc", + "id": "nodeid101010101010101010101010101010101010101010101010101010101010", "amount": 16777216 } }, "response": { - "funding_address": "bcrt1q4hz6a4gtecfmy8z870cwkq2gzc0t7n9u9pu23689u55ghwewemqsv4v2zs", - "scriptpubkey": "0020adc5aed50bce13b21c47f3f0eb0148161ebf4cbc2878a8e8e5e5288bbb2ecec1", + "funding_address": "bcrt1p0003030303030303030303030303030303030303030303030303030303", + "scriptpubkey": "scriptpubkey02020202020202020202020202020202020202020202020202020202", "channel_type": { "bits": [ 12, diff --git a/doc/schemas/lightning-fundpsbt.json b/doc/schemas/lightning-fundpsbt.json index 02691a13ee40..bbce2158350d 100644 --- a/doc/schemas/lightning-fundpsbt.json +++ b/doc/schemas/lightning-fundpsbt.json @@ -219,7 +219,7 @@ } }, "response": { - "psbt": "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AahhAAAAAAAAIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+GZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000", "feerate_per_kw": 253, "estimated_final_weight": 693, "excess_msat": 196962507000, @@ -240,7 +240,7 @@ } }, "response": { - "psbt": "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE+ZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000", "feerate_per_kw": 11000, "estimated_final_weight": 612, "excess_msat": 0, diff --git a/doc/schemas/lightning-getemergencyrecoverdata.json b/doc/schemas/lightning-getemergencyrecoverdata.json index 3fc4bee3de86..4988de895ce3 100644 --- a/doc/schemas/lightning-getemergencyrecoverdata.json +++ b/doc/schemas/lightning-getemergencyrecoverdata.json @@ -40,9 +40,7 @@ "method": "getemergencyrecoverdata", "params": {} }, - "response": { - "filedata": "5b3142fa0dd1115c29654b44780dcd9cf56cd53f9168061e964b39f3ce596962594b25660cba5d90ef07cfccbe1620f378ef284c7d1afed49d" - } + "response": "emergencyrecoverdata0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" } ] } diff --git a/doc/schemas/lightning-getinfo.json b/doc/schemas/lightning-getinfo.json index 39529d13e551..0893b59d97dd 100644 --- a/doc/schemas/lightning-getinfo.json +++ b/doc/schemas/lightning-getinfo.json @@ -390,9 +390,9 @@ "params": {} }, "response": { - "id": "02bf811f7571754f0b51e6d41a8885f5561041a7b14fac093e4cffb95749de1a8d", - "alias": "SLICKERGOPHER", - "color": "02bf81", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", + "alias": "SILENTARTIST", + "color": "022d22", "num_peers": 0, "num_pending_channels": 0, "num_active_channels": 0, @@ -402,18 +402,17 @@ { "type": "ipv4", "address": "127.0.0.1", - "port": 9736 + "port": 19735 } ], - "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", + "version": "v24.08", + "blockheight": 110, + "network": "regtest", + "fees_collected_msat": 0, + "lightning-dir": "/tmp/.lightning/regtest", "our_features": { - "init": "08a0802a8a59a1", - "node": "88a0802a8a59a1", + "init": "08a0882a8a59a1", + "node": "88a0882a8a59a1", "channel": "", "invoice": "02000002024100" } diff --git a/doc/schemas/lightning-getlog.json b/doc/schemas/lightning-getlog.json index 10585dab9791..40be5816aff7 100644 --- a/doc/schemas/lightning-getlog.json +++ b/doc/schemas/lightning-getlog.json @@ -240,55 +240,36 @@ } }, "response": { - "created_at": "1722303623.956237697", - "bytes_used": 1723719, + "created_at": 1738000000, + "bytes_used": 1630000, "bytes_max": 10485760, "log": [ { "type": "SKIPPED", - "num_skipped": 2927 + "num_skipped": 144 }, { "type": "UNUSUAL", - "time": "59.598510878", - "node_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "source": "chan#1", - "log": "No peer channel with scid=6250403x3681116x19863" - }, - { - "type": "SKIPPED", - "num_skipped": 1183 + "time": "71.800000000", + "source": "plugin-bookkeeper", + "log": "topic 'utxo_deposit' is not a known notification topic" }, { "type": "UNUSUAL", - "time": "71.923794351", - "node_id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "source": "chan#2", - "log": "Peer permanent failure in CLOSINGD_COMPLETE: Funding transaction spent (reason=unknown)" + "time": "72.800000000", + "source": "plugin-bookkeeper", + "log": "topic 'utxo_spend' is not a known notification topic" }, { "type": "SKIPPED", - "num_skipped": 557 - }, - { - "type": "BROKEN", - "time": "89.108598990", - "source": "plugin-topology", - "log": "DEPRECATED API USED: listchannels.include_private by \\\"-c:listchannels#114/cln:listchannels#175\\\"" - }, - { - "type": "SKIPPED", - "num_skipped": 1246 + "num_skipped": 147 }, { "type": "UNUSUAL", - "time": "95.217065000", - "source": "plugin-cln-renepay", - "log": "Failed to update hint channel 111x1x0: Failed to update scid=111x1x0 in the local_gossmods." - }, - { - "type": "SKIPPED", - "num_skipped": 1696 + "time": "74.800000000", + "node_id": "nodeid010101010101010101010101010101010101010101010101010101010101", + "source": "chan#1", + "log": "No peer channel with scid=228x1x1" } ] } diff --git a/doc/schemas/lightning-getroute.json b/doc/schemas/lightning-getroute.json index eba3009d85b4..ee861e0120e8 100644 --- a/doc/schemas/lightning-getroute.json +++ b/doc/schemas/lightning-getroute.json @@ -371,7 +371,7 @@ "id": "example:getroute#1", "method": "getroute", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "riskfactor": 1 } @@ -379,7 +379,7 @@ "response": { "route": [ { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "channel": "109x1x1", "direction": 1, "amount_msat": 10001, @@ -387,8 +387,8 @@ "style": "tlv" }, { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "111x1x0", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel": "111x1x1", "direction": 0, "amount_msat": 10000, "delay": 9, @@ -402,7 +402,7 @@ "id": "example:getroute#2", "method": "getroute", "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", "amount_msat": 500000, "riskfactor": 10, "cltv": 9 @@ -411,16 +411,16 @@ "response": { "route": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "111x1x0", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel": "111x1x1", "direction": 0, "amount_msat": 500006, "delay": 15, "style": "tlv" }, { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "channel": "113x1x1", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", + "channel": "125x1x1", "direction": 0, "amount_msat": 500000, "delay": 9, diff --git a/doc/schemas/lightning-invoice.json b/doc/schemas/lightning-invoice.json index aa8289178fc8..47cf36cc3585 100644 --- a/doc/schemas/lightning-invoice.json +++ b/doc/schemas/lightning-invoice.json @@ -211,10 +211,10 @@ } }, "response": { - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", - "expires_at": 1722908474, - "bolt11": "lnbcrt100n1pn2s396sp5v3en0qa3rrljw4m0wtz88sx99q20rarufhjpfysefhwhs42gvqjqpp56kvvl33d594nsxu0hzhesvazgqzlwv89fnpjcvtlanz3rl7x623qdp9f9h8vmmfvdjjqer9wd3hy6tsw35k7m3qdsenzxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq7za6z8kx2k5nul45zwttfz2njx3836v69mxqsl4ty9228pyjrkfnkymysy8ygsrrje9qf6j4tpalt5qkqusfp2esrsqc5ak7t4yzajgpezef54", - "payment_secret": "64733783b118ff27576f72c473c0c52814f1f47c4de41492194ddd7855486024", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", + "expires_at": 1739000000, + "bolt11": "lnbcrt100n1pnt2bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000", + "payment_secret": "paymentsecretinvl00310003100031000310003100031000310003100031000", "created_index": 2 } }, @@ -229,10 +229,10 @@ } }, "response": { - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "expires_at": 1722908474, - "bolt11": "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll", - "payment_secret": "bd162d243b8b4cc1fdd89bb6901e8cad1c99563b6ec3f0e33ab714cda5b719a8", + "payment_hash": "paymenthashinvl0320032003200320032003200320032003200320032003200", + "expires_at": 1739000000, + "bolt11": "lnbcrt100n1pnt2bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000", + "payment_secret": "paymentsecretinvl00032003200320032003200320032003200320032003200", "created_index": 3 } } diff --git a/doc/schemas/lightning-invoicerequest.json b/doc/schemas/lightning-invoicerequest.json index 6bf56281e937..f2438f9ab3de 100644 --- a/doc/schemas/lightning-invoicerequest.json +++ b/doc/schemas/lightning-invoicerequest.json @@ -133,10 +133,10 @@ } }, "response": { - "invreq_id": "93f193cd2432d292f8b64af08942989d71c0a0366fb52d57ddb688c8fb066399", + "invreq_id": "invreqid01010101010101010101010101010101010101010101010101010101", "active": true, "single_use": true, - "bolt12": "lnr1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq947t0ks7a4yejz8w79x4zj25s3pu6zrnw2e0v2ugdescpcqsq307z4p2dlxe92fv7xd43qut0pjkg4y094hupqyhsj8dlhvmmfng6sv", + "bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "used": false } }, @@ -151,10 +151,10 @@ } }, "response": { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202", "active": true, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", + "bolt12": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000", "used": false } } diff --git a/doc/schemas/lightning-keysend.json b/doc/schemas/lightning-keysend.json index 01896e75609a..0e8af5d445c3 100644 --- a/doc/schemas/lightning-keysend.json +++ b/doc/schemas/lightning-keysend.json @@ -236,18 +236,18 @@ "id": "example:keysend#1", "method": "keysend", "params": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000 } }, "response": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "bf2806c76e67fbc07bccd878a2c583664f97ba49eebb707939bacaa9d6813858", - "created_at": 1726169170.7366238, + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101", + "created_at": 1738000000, "parts": 1, "amount_msat": 10000, "amount_sent_msat": 10001, - "payment_preimage": "8e9f92f7f4928fde1469b199680aa09ca2690fa4e1c0b21ea60fd87e962ecce4", + "payment_preimage": "paymentpreimage1010101010101010101010101010101010101010101010101", "status": "complete" } }, @@ -256,7 +256,7 @@ "id": "example:keysend#2", "method": "keysend", "params": { - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "destination": "nodeid040404040404040404040404040404040404040404040404040404040404", "amount_msat": 10000000, "extratlvs": { "133773310": "68656c6c6f776f726c64", @@ -265,13 +265,13 @@ } }, "response": { - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payment_hash": "06f861fa426d342ca144785243c44093654ff8dfc7cec7db346286c20010cffc", - "created_at": 1726169172.886992, + "destination": "nodeid040404040404040404040404040404040404040404040404040404040404", + "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201", + "created_at": 1738000000, "parts": 1, "amount_msat": 10000000, "amount_sent_msat": 10000202, - "payment_preimage": "9416f0889f0dfe6316e047aee01a5451e29753a51b10ddda83fe6b8ccad2eb72", + "payment_preimage": "paymentpreimage2020202020202020202020202020202020202020202020202", "status": "complete" } }, @@ -280,13 +280,13 @@ "id": "example:keysend#3", "method": "keysend", "params": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "routehints": [ [ { - "scid": "6974878x14919575x17443", - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "scid": "111x1x1", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "feebase": "1msat", "feeprop": 10, "expirydelta": 9 @@ -296,13 +296,13 @@ } }, "response": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "c9e6b85aafb27fbaceb3f0eca6d0940d6e1d93a4be2d6da981aed9503fcec92c", - "created_at": 1726169175.977477, + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301", + "created_at": 1738000000, "parts": 2, "amount_msat": 10000, "amount_sent_msat": 10001, - "payment_preimage": "1cd3749122f3a1b8c1cbd9f4585ec820ec4e1b8f2aa3514a4dd9deda170bdf5d", + "payment_preimage": "paymentpreimage3030303030303030303030303030303030303030303030303", "status": "complete" } } diff --git a/doc/schemas/lightning-listchannels.json b/doc/schemas/lightning-listchannels.json index f53ba5a473a8..8efbbced6f02 100644 --- a/doc/schemas/lightning-listchannels.json +++ b/doc/schemas/lightning-listchannels.json @@ -196,8 +196,8 @@ "response": { "channels": [ { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "source": "nodeid020202020202020202020202020202020202020202020202020202020202", + "destination": "nodeid010101010101010101010101010101010101010101010101010101010101", "short_channel_id": "109x1x1", "direction": 0, "public": true, @@ -205,7 +205,7 @@ "message_flags": 1, "channel_flags": 0, "active": true, - "last_update": 1722303662, + "last_update": 1738500000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -214,16 +214,16 @@ "features": "" }, { - "source": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "source": "nodeid010101010101010101010101010101010101010101010101010101010101", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", "short_channel_id": "109x1x1", "direction": 1, "public": true, "amount_msat": 1000000000, "message_flags": 1, "channel_flags": 1, - "active": true, - "last_update": 1722303662, + "active": false, + "last_update": 1738510000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -243,8 +243,8 @@ "response": { "channels": [ { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "source": "nodeid020202020202020202020202020202020202020202020202020202020202", + "destination": "nodeid010101010101010101010101010101010101010101010101010101010101", "short_channel_id": "109x1x1", "direction": 0, "public": true, @@ -252,7 +252,7 @@ "message_flags": 1, "channel_flags": 0, "active": true, - "last_update": 1722303662, + "last_update": 1738500000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -261,52 +261,16 @@ "features": "" }, { - "source": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "source": "nodeid010101010101010101010101010101010101010101010101010101010101", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", "short_channel_id": "109x1x1", "direction": 1, "public": true, "amount_msat": 1000000000, "message_flags": 1, "channel_flags": 1, - "active": true, - "last_update": 1722303662, - "base_fee_millisatoshi": 1, - "fee_per_millionth": 10, - "delay": 6, - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "features": "" - }, - { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "111x1x0", - "direction": 0, - "public": true, - "amount_msat": 1000000000, - "message_flags": 1, - "channel_flags": 2, "active": false, - "last_update": 1722303692, - "base_fee_millisatoshi": 1, - "fee_per_millionth": 10, - "delay": 6, - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "features": "" - }, - { - "source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "short_channel_id": "111x1x0", - "direction": 1, - "public": true, - "amount_msat": 1000000000, - "message_flags": 1, - "channel_flags": 1, - "active": true, - "last_update": 1722303669, + "last_update": 1738510000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -315,52 +279,16 @@ "features": "" }, { - "source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "short_channel_id": "113x1x1", - "direction": 0, - "public": true, - "amount_msat": 1000000000, - "message_flags": 1, - "channel_flags": 0, - "active": true, - "last_update": 1722303669, - "base_fee_millisatoshi": 1, - "fee_per_millionth": 10, - "delay": 6, - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "features": "" - }, - { - "source": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "113x1x1", - "direction": 1, - "public": true, - "amount_msat": 1000000000, - "message_flags": 1, - "channel_flags": 1, - "active": true, - "last_update": 1722303669, - "base_fee_millisatoshi": 1, - "fee_per_millionth": 10, - "delay": 6, - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "features": "" - }, - { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "source": "nodeid020202020202020202020202020202020202020202020202020202020202", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "short_channel_id": "123x1x1", "direction": 0, "public": true, "amount_msat": 1000000000, "message_flags": 1, - "channel_flags": 0, + "channel_flags": 2, "active": true, - "last_update": 1722303711, + "last_update": 1738520000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -369,16 +297,16 @@ "features": "" }, { - "source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "source": "nodeid030303030303030303030303030303030303030303030303030303030303", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", "short_channel_id": "123x1x1", "direction": 1, "public": true, "amount_msat": 1000000000, "message_flags": 1, - "channel_flags": 1, - "active": true, - "last_update": 1722303711, + "channel_flags": 3, + "active": false, + "last_update": 1738530000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -387,34 +315,16 @@ "features": "" }, { - "source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "short_channel_id": "125x1x1", + "source": "nodeid030303030303030303030303030303030303030303030303030303030303", + "destination": "nodeid040404040404040404040404040404040404040404040404040404040404", + "short_channel_id": "130x1x1", "direction": 0, "public": true, "amount_msat": 1000000000, "message_flags": 1, - "channel_flags": 0, - "active": true, - "last_update": 1722303714, - "base_fee_millisatoshi": 1, - "fee_per_millionth": 10, - "delay": 6, - "htlc_minimum_msat": 0, - "htlc_maximum_msat": 990000000, - "features": "" - }, - { - "source": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "125x1x1", - "direction": 1, - "public": true, - "amount_msat": 1000000000, - "message_flags": 1, - "channel_flags": 1, + "channel_flags": 2, "active": true, - "last_update": 1722303714, + "last_update": 1738540000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, diff --git a/doc/schemas/lightning-listclosedchannels.json b/doc/schemas/lightning-listclosedchannels.json index 5e8365dc94d5..5e36a617f043 100644 --- a/doc/schemas/lightning-listclosedchannels.json +++ b/doc/schemas/lightning-listclosedchannels.json @@ -294,7 +294,80 @@ "params": {} }, "response": { - "closedchannels": [] + "closedchannels": [ + { + "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel_id": "channelid0230000230000230000230000230000230000230000230000230000", + "short_channel_id": "111x1x1", + "alias": { + "local": "9100000x13000000x63000", + "remote": "3500000x7300000x11000" + }, + "opener": "local", + "closer": "local", + "private": false, + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors/even" + ] + }, + "total_local_commitments": 16, + "total_remote_commitments": 16, + "total_htlcs_sent": 8, + "funding_txid": "fundingtxid00202020202020202020202020202020202020202020202020202", + "funding_outnum": 1, + "leased": false, + "total_msat": 1000000000, + "final_to_us_msat": 489818898, + "min_to_us_msat": 489818898, + "max_to_us_msat": 1000000000, + "last_commitment_txid": "txidcloselastcommitment00000100001000010000100001000010000100001", + "last_commitment_fee_msat": 2896000, + "close_cause": "user", + "last_stable_connection": 1738500000 + }, + { + "peer_id": "nodeid050505050505050505050505050505050505050505050505050505050505", + "channel_id": "channelid0250000250000250000250000250000250000250000250000250000", + "short_channel_id": "115x1x1", + "alias": { + "local": "6500000x1100000x23000", + "remote": "5300000x1300000x55000" + }, + "opener": "local", + "closer": "local", + "private": true, + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors/even" + ] + }, + "total_local_commitments": 2, + "total_remote_commitments": 2, + "total_htlcs_sent": 1, + "funding_txid": "fundingtxid00101010101010101010101010101010101010101010101010101", + "funding_outnum": 1, + "leased": false, + "total_msat": 1000000000, + "final_to_us_msat": 500000000, + "min_to_us_msat": 500000000, + "max_to_us_msat": 1000000000, + "last_commitment_txid": "txidcloselastcommitment00000200002000020000200002000020000200002", + "last_commitment_fee_msat": 2895000, + "close_cause": "user", + "last_stable_connection": 1738500000 + } + ] } } ] diff --git a/doc/schemas/lightning-listconfigs.json b/doc/schemas/lightning-listconfigs.json index a299a4556871..7d75f2500cd7 100644 --- a/doc/schemas/lightning-listconfigs.json +++ b/doc/schemas/lightning-listconfigs.json @@ -2476,7 +2476,6 @@ } }, "response": { - "network": "regtest", "configs": { "network": { "value_str": "regtest", @@ -2494,7 +2493,6 @@ } }, "response": { - "experimental-dual-fund": true, "configs": { "experimental-dual-fund": { "set": true, @@ -2510,265 +2508,95 @@ "params": {} }, "response": { - "# version": "v24.05-190-g5fd2f9c-modded", - "developer": true, - "lightning-dir": "/tmp/.lightning/", - "network": "regtest", - "rpc-file": "lightning-rpc", - "allow-deprecated-apis": true, - "plugins": [ - { - "path": "/root/lightning/plugins/cln-renepay", - "name": "cln-renepay", - "options": {} - } - ], - "important-plugins": [ - { - "path": "/root/lightning/plugins/autoclean", - "name": "autoclean", - "options": { - "autoclean-cycle": 3600, - "dev-autoclean-max-batch": 10000 - } - }, - { - "path": "/root/lightning/plugins/chanbackup", - "name": "chanbackup" - }, - { - "path": "/root/lightning/plugins/bcli", - "name": "bcli", - "options": { - "bitcoin-datadir": "/tmp/.lightning/", - "bitcoin-rpcuser": "rpcuser", - "bitcoin-rpcpassword": "rpcpass", - "bitcoin-rpcport": 51251, - "bitcoin-rpcclienttimeout": 60, - "bitcoin-retry-timeout": 60 - } - }, - { - "path": "/root/lightning/plugins/commando", - "name": "commando" - }, - { - "path": "/root/lightning/plugins/funder", - "name": "funder", - "options": { - "funder-policy": "fixed", - "funder-policy-mod": "0", - "funder-min-their-funding": "10000sat", - "funder-max-their-funding": "4294967295sat", - "funder-per-channel-min": "10000sat", - "funder-per-channel-max": "4294967295sat", - "funder-reserve-tank": "0sat", - "funder-fuzz-percent": 0, - "funder-fund-probability": 100, - "funder-lease-requests-only": true - } - }, - { - "path": "/root/lightning/plugins/topology", - "name": "topology" - }, - { - "path": "/root/lightning/plugins/keysend", - "name": "keysend" - }, - { - "path": "/root/lightning/plugins/offers", - "name": "offers", - "options": {} - }, - { - "path": "/root/lightning/plugins/pay", - "name": "pay", - "options": {} - }, - { - "path": "/root/lightning/plugins/recover", - "name": "recover" - }, - { - "path": "/root/lightning/plugins/txprepare", - "name": "txprepare" - }, - { - "path": "/root/lightning/plugins/spenderp", - "name": "spenderp" - }, - { - "path": "/root/lightning/plugins/sql", - "name": "sql", - "options": {} - }, - { - "path": "/root/lightning/plugins/bookkeeper", - "name": "bookkeeper", - "options": {} - } - ], - "disable-plugin": [], - "always-use-proxy": false, - "daemon": false, - "wallet": "sqlite3:///tmp/.lightning/regtest/lightningd.sqlite3", - "experimental-dual-fund": true, - "experimental-splicing": false, - "experimental-offers": true, - "experimental-shutdown-wrong-funding": false, - "experimental-peer-storage": false, - "experimental-quiesce": false, - "rgb": "022d22", - "alias": "SILENTARTIST-190-g5fd2f9c-modded", - "pid-file": "/tmp/.lightning/lightningd-regtest.pid", - "ignore-fee-limits": false, - "watchtime-blocks": 5, - "funding-confirms": 1, - "require-confirmed-inputs": false, - "cltv-delta": 6, - "cltv-final": 5, - "commit-time": 10, - "fee-base": 1, - "rescan": 1, - "fee-per-satoshi": 10, - "htlc-minimum-msat": 0, - "htlc-maximum-msat": 18446744073709552000, - "max-concurrent-htlcs": 483, - "max-dust-htlc-exposure-msat": 50000000, - "min-capacity-sat": 10000, - "addr": "127.0.0.1:41219", - "announce-addr-discovered": "auto", - "announce-addr-discovered-port": 19846, - "offline": false, - "autolisten": false, - "disable-dns": true, - "encrypted-hsm": false, - "rpc-file-mode": "0600", - "commit-fee": 100, - "commit-feerate-offset": 5, - "min-emergency-msat": 25000000, - "experimental-upgrade-protocol": false, - "invoices-onchain-fallback": false, - "log-level": "debug", - "log-timestamps": true, - "log-prefix": "lightningd-2 ", - "log-file": "/tmp/.lightning/log", "configs": { - "developer": { - "set": true, - "source": "cmdline" - }, - "lightning-dir": { - "value_str": "/tmp/.lightning/", - "source": "cmdline" - }, - "network": { - "value_str": "regtest", - "source": "cmdline" - }, - "testnet": { - "set": false, - "source": "default" - }, - "signet": { - "set": false, - "source": "default" - }, - "mainnet": { - "set": false, - "source": "default" + "accept-htlc-tlv-type": { + "values_int": [], + "sources": [] }, - "regtest": { - "set": false, - "source": "default" + "addr": { + "values_str": [ + "127.0.0.1:19735" + ], + "sources": [ + "cmdline" + ] }, - "rpc-file": { - "value_str": "lightning-rpc", + "alias": { + "value_str": "SILENTARTIST", "source": "default" }, "allow-deprecated-apis": { "value_bool": true, "source": "cmdline" }, - "plugin": { - "values_str": [], - "sources": [] - }, - "plugin-dir": { - "values_str": [], - "sources": [] - }, - "clear-plugins": { - "set": false, + "always-use-proxy": { + "value_bool": false, "source": "default" }, - "disable-plugin": { - "values_str": [], - "sources": [] - }, - "important-plugin": { + "announce-addr": { "values_str": [], "sources": [] }, - "always-use-proxy": { - "value_bool": false, - "source": "default" - }, - "daemon": { - "set": false, + "announce-addr-discovered": { + "value_str": "auto", "source": "default" }, - "experimental-dual-fund": { - "set": true, - "source": "cmdline" - }, - "experimental-splicing": { - "set": false, + "announce-addr-discovered-port": { + "value_int": 19846, "source": "default" }, - "experimental-offers": { - "set": true, - "source": "cmdline" + "autoclean-cycle": { + "value_int": 3600, + "source": "default", + "plugin": "/root/lightning/plugins/autoclean", + "dynamic": true }, - "experimental-shutdown-wrong-funding": { - "set": false, - "source": "default" + "autoclean-expiredinvoices-age": { + "value_int": 300, + "source": "/tmp/.lightning/regtest/config:2", + "plugin": "/root/lightning/plugins/autoclean", + "dynamic": true }, - "experimental-peer-storage": { - "set": false, + "autolisten": { + "value_bool": false, "source": "default" }, - "experimental-quiesce": { - "set": false, - "source": "default" + "bind-addr": { + "values_str": [], + "sources": [] }, - "rgb": { - "value_str": "022d22", - "source": "default" + "bitcoin-datadir": { + "value_str": "/tmp/.lightning/", + "source": "cmdline", + "plugin": "/root/lightning/plugins/bcli" }, - "alias": { - "value_str": "SILENTARTIST-190-g5fd2f9c-modded", - "source": "default" + "bitcoin-retry-timeout": { + "value_int": 60, + "source": "default", + "plugin": "/root/lightning/plugins/bcli" }, - "pid-file": { - "value_str": "/tmp/.lightning/lightningd-regtest.pid", - "source": "default" + "bitcoin-rpcclienttimeout": { + "value_int": 60, + "source": "default", + "plugin": "/root/lightning/plugins/bcli" }, - "ignore-fee-limits": { - "value_bool": false, - "source": "cmdline" + "bitcoin-rpcpassword": { + "value_str": "rpcpass", + "source": "cmdline", + "plugin": "/root/lightning/plugins/bcli" }, - "watchtime-blocks": { - "value_int": 5, - "source": "cmdline" + "bitcoin-rpcport": { + "value_int": 18332, + "source": "cmdline", + "plugin": "/root/lightning/plugins/bcli" }, - "funding-confirms": { - "value_int": 1, - "source": "default" + "bitcoin-rpcuser": { + "value_str": "rpcuser", + "source": "cmdline", + "plugin": "/root/lightning/plugins/bcli" }, - "require-confirmed-inputs": { - "value_bool": false, + "clear-plugins": { + "set": false, "source": "default" }, "cltv-delta": { @@ -2779,91 +2607,6 @@ "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:41219" - ], - "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" @@ -2872,56 +2615,28 @@ "value_int": 5, "source": "default" }, - "min-emergency-msat": { - "value_msat": 25000000, - "source": "default" - }, - "subdaemon": { - "values_str": [], - "sources": [] - }, - "experimental-upgrade-protocol": { - "set": false, + "commit-time": { + "value_int": 10, "source": "default" }, - "invoices-onchain-fallback": { + "daemon": { "set": false, "source": "default" }, - "i-promise-to-fix-broken-api-user": { - "values_str": [], - "sources": [] - }, - "log-level": { - "value_str": "debug", - "source": "cmdline" - }, - "log-timestamps": { - "value_bool": true, - "source": "default" - }, - "log-prefix": { - "value_str": "lightningd-2 ", - "source": "cmdline" - }, - "log-file": { - "values_str": [ - "-", - "/tmp/.lightning/log" - ], - "sources": [ - "cmdline", - "cmdline" - ] - }, - "dev-fail-on-subdaemon-fail": { - "set": true, - "source": "cmdline" + "dev-autoclean-max-batch": { + "value_int": 10000, + "source": "default", + "plugin": "/root/lightning/plugins/autoclean", + "dynamic": true }, "dev-bitcoind-poll": { "value_int": 3, "source": "cmdline" }, + "dev-fail-on-subdaemon-fail": { + "set": true, + "source": "cmdline" + }, "dev-fast-gossip": { "set": true, "source": "cmdline" @@ -2930,60 +2645,85 @@ "set": true, "source": "cmdline" }, - "autoclean-cycle": { - "value_int": 3600, + "dev-invoice-bpath-scid": { + "set": false, "source": "default", - "plugin": "/root/lightning/plugins/autoclean", - "dynamic": true + "plugin": "/root/lightning/plugins/offers" }, - "dev-autoclean-max-batch": { - "value_int": 10000, + "developer": { + "set": true, + "source": "cmdline" + }, + "disable-dns": { + "set": true, + "source": "cmdline" + }, + "disable-mpp": { + "set": false, "source": "default", - "plugin": "/root/lightning/plugins/autoclean", - "dynamic": true + "plugin": "/root/lightning/plugins/pay" }, - "bitcoin-datadir": { - "value_str": "/tmp/.lightning/", - "source": "cmdline", - "plugin": "/root/lightning/plugins/bcli" + "disable-plugin": { + "values_str": [], + "sources": [] }, - "bitcoin-rpcuser": { - "value_str": "rpcuser", - "source": "cmdline", - "plugin": "/root/lightning/plugins/bcli" + "encrypted-hsm": { + "set": false, + "source": "default" }, - "bitcoin-rpcpassword": { - "value_str": "rpcpass", - "source": "cmdline", - "plugin": "/root/lightning/plugins/bcli" + "experimental-dual-fund": { + "set": true, + "source": "cmdline" }, - "bitcoin-rpcport": { - "value_int": 51251, - "source": "cmdline", - "plugin": "/root/lightning/plugins/bcli" + "experimental-offers": { + "set": true, + "source": "cmdline" }, - "bitcoin-rpcclienttimeout": { - "value_int": 60, - "source": "default", - "plugin": "/root/lightning/plugins/bcli" + "experimental-peer-storage": { + "set": false, + "source": "default" }, - "bitcoin-retry-timeout": { - "value_int": 60, + "experimental-quiesce": { + "set": false, + "source": "default" + }, + "experimental-shutdown-wrong-funding": { + "set": false, + "source": "default" + }, + "experimental-splicing": { + "set": false, + "source": "default" + }, + "experimental-upgrade-protocol": { + "set": false, + "source": "default" + }, + "fee-base": { + "value_int": 1, + "source": "default" + }, + "fee-per-satoshi": { + "value_int": 10, + "source": "default" + }, + "fetchinvoice-noconnect": { + "set": false, "source": "default", - "plugin": "/root/lightning/plugins/bcli" + "plugin": "/root/lightning/plugins/offers" }, - "funder-policy": { - "value_str": "fixed", + "funder-fund-probability": { + "value_int": 100, "source": "default", "plugin": "/root/lightning/plugins/funder" }, - "funder-policy-mod": { - "value_str": "0", + "funder-fuzz-percent": { + "value_int": 0, "source": "default", "plugin": "/root/lightning/plugins/funder" }, - "funder-min-their-funding": { - "value_str": "10000sat", + "funder-lease-requests-only": { + "value_bool": true, "source": "default", "plugin": "/root/lightning/plugins/funder" }, @@ -2992,7 +2732,7 @@ "source": "default", "plugin": "/root/lightning/plugins/funder" }, - "funder-per-channel-min": { + "funder-min-their-funding": { "value_str": "10000sat", "source": "default", "plugin": "/root/lightning/plugins/funder" @@ -3002,40 +2742,124 @@ "source": "default", "plugin": "/root/lightning/plugins/funder" }, - "funder-reserve-tank": { - "value_str": "0sat", + "funder-per-channel-min": { + "value_str": "10000sat", "source": "default", "plugin": "/root/lightning/plugins/funder" }, - "funder-fuzz-percent": { - "value_int": 0, + "funder-policy": { + "value_str": "fixed", "source": "default", "plugin": "/root/lightning/plugins/funder" }, - "funder-fund-probability": { - "value_int": 100, + "funder-policy-mod": { + "value_str": "0", "source": "default", "plugin": "/root/lightning/plugins/funder" }, - "funder-lease-requests-only": { - "value_bool": true, + "funder-reserve-tank": { + "value_str": "0sat", "source": "default", "plugin": "/root/lightning/plugins/funder" }, - "fetchinvoice-noconnect": { + "funding-confirms": { + "value_int": 1, + "source": "default" + }, + "htlc-maximum-msat": { + "value_msat": 18446744073709552000, + "source": "default" + }, + "htlc-minimum-msat": { + "value_msat": 0, + "source": "default" + }, + "i-promise-to-fix-broken-api-user": { + "values_str": [], + "sources": [] + }, + "ignore-fee-limits": { + "value_bool": false, + "source": "cmdline" + }, + "important-plugin": { + "values_str": [], + "sources": [] + }, + "invoices-onchain-fallback": { "set": false, - "source": "default", - "plugin": "/root/lightning/plugins/offers" + "source": "default" }, - "dev-invoice-bpath-scid": { + "lightning-dir": { + "value_str": "/tmp/.lightning/", + "source": "cmdline" + }, + "log-file": { + "values_str": [ + "-", + "/tmp/.lightning/log" + ], + "sources": [ + "cmdline", + "cmdline" + ] + }, + "log-level": { + "value_str": "debug", + "source": "cmdline" + }, + "log-prefix": { + "value_str": "lightningd-2 ", + "source": "cmdline" + }, + "log-timestamps": { + "value_bool": true, + "source": "default" + }, + "mainnet": { "set": false, - "source": "default", - "plugin": "/root/lightning/plugins/offers" + "source": "default" }, - "disable-mpp": { + "max-concurrent-htlcs": { + "value_int": 483, + "source": "default" + }, + "max-dust-htlc-exposure-msat": { + "value_msat": 50000000, + "source": "default" + }, + "min-capacity-sat": { + "value_int": 500000, + "source": "/tmp/.lightning/regtest/config:4", + "dynamic": true + }, + "min-emergency-msat": { + "value_msat": 25000000, + "source": "default" + }, + "network": { + "value_str": "regtest", + "source": "cmdline" + }, + "offline": { "set": false, - "source": "default", - "plugin": "/root/lightning/plugins/pay" + "source": "default" + }, + "pid-file": { + "value_str": "/tmp/.lightning/lightningd-regtest.pid", + "source": "default" + }, + "plugin": { + "values_str": [], + "sources": [] + }, + "plugin-dir": { + "values_str": [], + "sources": [] + }, + "regtest": { + "set": false, + "source": "default" }, "renepay-debug-mcf": { "set": false, @@ -3046,6 +2870,42 @@ "set": false, "source": "default", "plugin": "/root/lightning/plugins/cln-renepay" + }, + "require-confirmed-inputs": { + "value_bool": false, + "source": "default" + }, + "rescan": { + "value_int": 1, + "source": "cmdline" + }, + "rgb": { + "value_str": "022d22", + "source": "default" + }, + "rpc-file": { + "value_str": "lightning-rpc", + "source": "default" + }, + "rpc-file-mode": { + "value_str": "0600", + "source": "default" + }, + "signet": { + "set": false, + "source": "default" + }, + "subdaemon": { + "values_str": [], + "sources": [] + }, + "testnet": { + "set": false, + "source": "default" + }, + "watchtime-blocks": { + "value_int": 5, + "source": "cmdline" } } } diff --git a/doc/schemas/lightning-listdatastore.json b/doc/schemas/lightning-listdatastore.json index b3db1fb48cca..3bf197efba93 100644 --- a/doc/schemas/lightning-listdatastore.json +++ b/doc/schemas/lightning-listdatastore.json @@ -99,7 +99,7 @@ "method": "listdatastore", "params": { "key": [ - "test" + "employee" ] } }, @@ -107,12 +107,12 @@ "datastore": [ { "key": [ - "test", - "name" + "employee", + "index" ], "generation": 0, - "hex": "736176696e67206461746120746f207468652073746f7265", - "string": "saving data to the store" + "hex": "736176696e6720656d706c6f796565206b65797320746f207468652073746f7265", + "string": "saving employee keys to the store" } ] } @@ -122,18 +122,18 @@ "id": "example:listdatastore#2", "method": "listdatastore", "params": { - "key": "otherkey" + "key": "somekey" } }, "response": { "datastore": [ { "key": [ - "otherkey" + "somekey" ], - "generation": 1, - "hex": "666f6f626172", - "string": "foobar" + "generation": 0, + "hex": "61", + "string": "a" } ] } diff --git a/doc/schemas/lightning-listforwards.json b/doc/schemas/lightning-listforwards.json index f1e0115c3afd..3aeaf578b316 100644 --- a/doc/schemas/lightning-listforwards.json +++ b/doc/schemas/lightning-listforwards.json @@ -382,101 +382,41 @@ "method": "listforwards", "params": { "in_channel": "109x1x1", - "out_channel": "111x1x0", + "out_channel": "123x1x1", "status": "settled" } }, "response": { "forwards": [ { - "created_index": 1, - "updated_index": 1, - "in_channel": "109x1x1", - "in_htlc_id": 1, - "out_channel": "111x1x0", - "out_htlc_id": 1, - "in_msat": 10001, - "out_msat": 10000, - "fee_msat": 1, - "status": "settled", - "style": "tlv", - "received_time": 1722303675.3853297, - "resolved_time": 1722303676.8396847 - }, - { - "created_index": 2, - "updated_index": 2, + "created_index": 11, + "updated_index": 7, "in_channel": "109x1x1", - "in_htlc_id": 2, - "out_channel": "111x1x0", + "in_htlc_id": 17, + "out_channel": "123x1x1", "out_htlc_id": 2, - "in_msat": 10001, - "out_msat": 10000, - "fee_msat": 1, + "in_msat": 50000501, + "out_msat": 50000000, + "fee_msat": 501, "status": "settled", "style": "tlv", - "received_time": 1722303677.6214294, - "resolved_time": 1722303679.0363395 + "received_time": 1738000000, + "resolved_time": 1738500000 }, { - "created_index": 3, - "updated_index": 3, + "created_index": 12, + "updated_index": 8, "in_channel": "109x1x1", - "in_htlc_id": 3, - "out_channel": "111x1x0", + "in_htlc_id": 18, + "out_channel": "123x1x1", "out_htlc_id": 3, - "in_msat": 10000202, - "out_msat": 10000101, - "fee_msat": 101, - "status": "settled", - "style": "tlv", - "received_time": 1722303679.8093705, - "resolved_time": 1722303682.2599013 - }, - { - "created_index": 5, - "updated_index": 4, - "in_channel": "109x1x1", - "in_htlc_id": 5, - "out_channel": "111x1x0", - "out_htlc_id": 4, - "in_msat": 10001, - "out_msat": 10000, - "fee_msat": 1, - "status": "settled", - "style": "tlv", - "received_time": 1722303684.4914763, - "resolved_time": 1722303685.8940926 - }, - { - "created_index": 6, - "updated_index": 5, - "in_channel": "109x1x1", - "in_htlc_id": 6, - "out_channel": "111x1x0", - "out_htlc_id": 5, - "in_msat": 50001, - "out_msat": 50000, - "fee_msat": 1, + "in_msat": 50000501, + "out_msat": 50000000, + "fee_msat": 501, "status": "settled", "style": "tlv", - "received_time": 1722303686.7160892, - "resolved_time": 1722303688.1316907 - }, - { - "created_index": 7, - "updated_index": 6, - "in_channel": "109x1x1", - "in_htlc_id": 7, - "out_channel": "111x1x0", - "out_htlc_id": 7, - "in_msat": 1002, - "out_msat": 1001, - "fee_msat": 1, - "status": "settled", - "style": "tlv", - "received_time": 1722303689.9082303, - "resolved_time": 1722303692.3156552 + "received_time": 1738010000, + "resolved_time": 1738510000 } ] } @@ -494,114 +434,75 @@ "updated_index": 1, "in_channel": "109x1x1", "in_htlc_id": 1, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 1, "in_msat": 10001, "out_msat": 10000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303675.3853297, - "resolved_time": 1722303676.8396847 + "received_time": 1738000000, + "resolved_time": 1738500000 }, { "created_index": 2, "updated_index": 2, "in_channel": "109x1x1", "in_htlc_id": 2, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 2, "in_msat": 10001, "out_msat": 10000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303677.6214294, - "resolved_time": 1722303679.0363395 + "received_time": 1738010000, + "resolved_time": 1738510000 }, { "created_index": 3, "updated_index": 3, "in_channel": "109x1x1", "in_htlc_id": 3, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 3, "in_msat": 10000202, "out_msat": 10000101, "fee_msat": 101, "status": "settled", "style": "tlv", - "received_time": 1722303679.8093705, - "resolved_time": 1722303682.2599013 - }, - { - "created_index": 4, - "in_channel": "109x1x1", - "in_htlc_id": 4, - "out_channel": "6250403x3681116x19863", - "in_msat": 10001, - "status": "local_failed", - "failcode": 16394, - "failreason": "WIRE_UNKNOWN_NEXT_PEER", - "style": "tlv", - "received_time": 1722303683.0972922 + "received_time": 1738020000, + "resolved_time": 1738520000 }, { "created_index": 5, "updated_index": 4, "in_channel": "109x1x1", "in_htlc_id": 5, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 4, "in_msat": 10001, "out_msat": 10000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303684.4914763, - "resolved_time": 1722303685.8940926 + "received_time": 1738030000, + "resolved_time": 1738530000 }, { "created_index": 6, "updated_index": 5, "in_channel": "109x1x1", "in_htlc_id": 6, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 5, "in_msat": 50001, "out_msat": 50000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303686.7160892, - "resolved_time": 1722303688.1316907 - }, - { - "created_index": 7, - "updated_index": 6, - "in_channel": "109x1x1", - "in_htlc_id": 7, - "out_channel": "111x1x0", - "out_htlc_id": 7, - "in_msat": 1002, - "out_msat": 1001, - "fee_msat": 1, - "status": "settled", - "style": "tlv", - "received_time": 1722303689.9082303, - "resolved_time": 1722303692.3156552 - }, - { - "created_index": 8, - "in_channel": "109x1x1", - "in_htlc_id": 8, - "out_channel": "111x1x0", - "in_msat": 10001, - "status": "local_failed", - "failcode": 16394, - "failreason": "WIRE_UNKNOWN_NEXT_PEER", - "style": "tlv", - "received_time": 1722303697.0961268 + "received_time": 1738040000, + "resolved_time": 1738540000 } ] } diff --git a/doc/schemas/lightning-listfunds.json b/doc/schemas/lightning-listfunds.json index 64ffea6a86e4..e3ea1f8bd6c7 100644 --- a/doc/schemas/lightning-listfunds.json +++ b/doc/schemas/lightning-listfunds.json @@ -354,47 +354,67 @@ "response": { "outputs": [ { - "txid": "9454852bb62e304ee8933662284e10bd22a7f3710c262da4c94bdcc8b05ae407", - "output": 0, - "amount_msat": 19993653000, - "scriptpubkey": "51206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b5", - "address": "bcrt1pdsn7r9t2e7npu6pf9jqfpzyqaqf52rm4gyew3g4vgudgd0cny66srft45s", + "txid": "txid000010000100001000010000100001000010000100001000010000100001", + "output": 2, + "amount_msat": 26000000, + "scriptpubkey": "scriptpubkey01010101010101010101010101010101010101010101010101010101", + "address": "bcrt1p0004040404040404040404040404040404040404040404040404040404", "status": "confirmed", - "blockheight": 103, + "blockheight": 160, "reserved": false }, { - "txid": "7547ffc11396c62852104f7100d5ca27a2b9c0d5d43d08122147b2b03eb157a5", - "output": 0, - "amount_msat": 2000000000, - "scriptpubkey": "00149fb67bfcefee6cb7db4c7e55d9c6bfd749e31d1e", - "address": "bcrt1qn7m8hl80aekt0k6v0e2an34l6ay7x8g703x07y", + "txid": "txid000020000200002000020000200002000020000200002000020000200002", + "output": 3, + "amount_msat": 27000000, + "scriptpubkey": "scriptpubkey02020202020202020202020202020202020202020202020202020202", + "address": "bcrt1p0004040404040404040404040404040404040404040404040404040404", "status": "confirmed", - "blockheight": 108, + "blockheight": 160, "reserved": false }, { - "txid": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", - "output": 0, - "amount_msat": 198995073000, - "scriptpubkey": "512035f1184f6b470c9df347da62c4b28e7ec9ee10b220bac3accd22209def0036ea", - "address": "bcrt1pxhc3snmtguxfmu68mf3vfv5w0my7uy9jyzav8txdygsfmmcqxm4q0mms62", + "txid": "txid000030000300003000030000300003000030000300003000030000300003", + "output": 4, + "amount_msat": 28000000, + "scriptpubkey": "scriptpubkey03030303030303030303030303030303030303030303030303030303", + "address": "bcrt1p0004040404040404040404040404040404040404040404040404040404", "status": "confirmed", - "blockheight": 109, + "blockheight": 160, "reserved": false } ], "channels": [ { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "connected": true, "state": "CHANNELD_NORMAL", - "channel_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", + "channel_id": "channelid0120000120000120000120000120000120000120000120000120000", "short_channel_id": "109x1x1", - "our_amount_msat": 490518792, - "amount_msat": 1000000000, - "funding_txid": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", + "our_amount_msat": 36000000, + "amount_msat": 11000000, + "funding_txid": "txid010010100101001010010100101001010010100101001010010100101001", "funding_output": 1 + }, + { + "peer_id": "nodeid050505050505050505050505050505050505050505050505050505050505", + "connected": false, + "state": "ONCHAIN", + "channel_id": "channelid1300013000130001300013000130001300013000130001300013000", + "our_amount_msat": 37000000, + "amount_msat": 12000000, + "funding_txid": "txid010020100201002010020100201002010020100201002010020100201002", + "funding_output": 2 + }, + { + "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "connected": false, + "state": "ONCHAIN", + "channel_id": "channelid1100011000110001100011000110001100011000110001100011000", + "our_amount_msat": 38000000, + "amount_msat": 13000000, + "funding_txid": "txid010030100301003010030100301003010030100301003010030100301003", + "funding_output": 3 } ] } diff --git a/doc/schemas/lightning-listhtlcs.json b/doc/schemas/lightning-listhtlcs.json index 67d0c8727bfb..ae5dbdcbf16c 100644 --- a/doc/schemas/lightning-listhtlcs.json +++ b/doc/schemas/lightning-listhtlcs.json @@ -140,7 +140,7 @@ "expiry": 126, "direction": "out", "amount_msat": 500000000, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -149,7 +149,7 @@ "expiry": 136, "direction": "out", "amount_msat": 10001, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -158,7 +158,7 @@ "expiry": 149, "direction": "out", "amount_msat": 10001, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -167,7 +167,7 @@ "expiry": 155, "direction": "out", "amount_msat": 10000202, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -176,61 +176,7 @@ "expiry": 152, "direction": "out", "amount_msat": 10001, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 5, - "expiry": 149, - "direction": "out", - "amount_msat": 10001, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 6, - "expiry": 132, - "direction": "out", - "amount_msat": 50001, - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 7, - "expiry": 142, - "direction": "out", - "amount_msat": 1002, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 8, - "expiry": 137, - "direction": "out", - "amount_msat": 10001, - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 0, - "expiry": 136, - "direction": "in", - "amount_msat": 1000000, - "payment_hash": "a003badd6ad30f05f56e3607fd538456b05b9aad6135a494dad5320010af5844", - "state": "SENT_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 9, - "expiry": 136, - "direction": "out", - "amount_msat": 400000, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301", "state": "RCVD_REMOVE_ACK_REVOCATION" } ] @@ -250,7 +196,7 @@ "expiry": 126, "direction": "out", "amount_msat": 500000000, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -259,7 +205,7 @@ "expiry": 136, "direction": "out", "amount_msat": 10001, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -268,7 +214,7 @@ "expiry": 149, "direction": "out", "amount_msat": 10001, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -277,7 +223,7 @@ "expiry": 155, "direction": "out", "amount_msat": 10000202, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -286,61 +232,7 @@ "expiry": 152, "direction": "out", "amount_msat": 10001, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 5, - "expiry": 149, - "direction": "out", - "amount_msat": 10001, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 6, - "expiry": 132, - "direction": "out", - "amount_msat": 50001, - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 7, - "expiry": 142, - "direction": "out", - "amount_msat": 1002, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 8, - "expiry": 137, - "direction": "out", - "amount_msat": 10001, - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", - "state": "RCVD_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 0, - "expiry": 136, - "direction": "in", - "amount_msat": 1000000, - "payment_hash": "a003badd6ad30f05f56e3607fd538456b05b9aad6135a494dad5320010af5844", - "state": "SENT_REMOVE_ACK_REVOCATION" - }, - { - "short_channel_id": "109x1x1", - "id": 9, - "expiry": 136, - "direction": "out", - "amount_msat": 400000, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301", "state": "RCVD_REMOVE_ACK_REVOCATION" } ] diff --git a/doc/schemas/lightning-listinvoicerequests.json b/doc/schemas/lightning-listinvoicerequests.json index e75be7c86b46..5a4599612f20 100644 --- a/doc/schemas/lightning-listinvoicerequests.json +++ b/doc/schemas/lightning-listinvoicerequests.json @@ -104,16 +104,16 @@ "id": "example:listinvoicerequests#1", "method": "listinvoicerequests", "params": [ - "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9" + "invreqid03030303030303030303030303030303030303030303030303030303" ] }, "response": { "invoicerequests": [ { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202", "active": false, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", + "bolt12": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000", "used": false } ] @@ -128,18 +128,18 @@ "response": { "invoicerequests": [ { - "invreq_id": "93f193cd2432d292f8b64af08942989d71c0a0366fb52d57ddb688c8fb066399", + "invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202", "active": false, "single_use": true, - "bolt12": "lnr1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq947t0ks7a4yejz8w79x4zj25s3pu6zrnw2e0v2ugdescpcqsq307z4p2dlxe92fv7xd43qut0pjkg4y094hupqyhsj8dlhvmmfng6sv", - "used": true + "bolt12": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000", + "used": false }, { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "invreqid01010101010101010101010101010101010101010101010101010101", "active": false, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", - "used": false + "bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", + "used": true } ] } diff --git a/doc/schemas/lightning-listinvoices.json b/doc/schemas/lightning-listinvoices.json index 775fe023f3ab..e8cc8abb8302 100644 --- a/doc/schemas/lightning-listinvoices.json +++ b/doc/schemas/lightning-listinvoices.json @@ -314,15 +314,15 @@ "invoices": [ { "label": "lbl_l21", - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "bolt11": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", + "payment_hash": "paymenthashinvl0210021002100210021002100210021002100210021002100", "status": "paid", "pay_index": 3, "amount_received_msat": 400000, - "paid_at": 1722303718, - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimager010101010101010101010101010101010101010101010101", "description": "l21 description", - "expires_at": 1722908486, + "expires_at": 1739000000, "created_index": 2, "updated_index": 3 } @@ -339,119 +339,65 @@ "invoices": [ { "label": "lbl balance l1 to l2", - "bolt11": "lnbcrt5m1pn2s39ksp53sknyy2mxxurt4y0wqgp730z0cnm0vz3zmzth8p79xsrtmg5llxspp5dp94v59nm6c99jf7lc07zmnhqw6kyujx3mkdav7643dczgtdedfqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqdz9cftkxe6kcqfddyrvr7j57ulsfxxxkgkjyhr3k77n8v59mzs5rmuexz9lxusyhhehlemd9ujclgahln8e0n8y86stc7u8uys6mjqgqerm6q4", - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "bolt11": "lnbcrt222n1pnt3005720bolt114000101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "amount_msat": 500000000, "status": "paid", "pay_index": 1, "amount_received_msat": 500000000, - "paid_at": 1722303671, - "payment_preimage": "bed4140e1db302720d7f9547dc9127d45b115080447cce7e23cfd00b60991831", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimgdp1010101010101010101010101010101010101010101010101", "description": "description send some sats l1 to l2", - "expires_at": 1722908470, + "expires_at": 1739000000, "created_index": 1, "updated_index": 1 }, { "label": "lbl_l21", - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "bolt11": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", + "payment_hash": "paymenthashinvl0210021002100210021002100210021002100210021002100", "status": "paid", "pay_index": 3, "amount_received_msat": 400000, - "paid_at": 1722303718, - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", + "paid_at": 1738510000, + "payment_preimage": "paymentpreimager010101010101010101010101010101010101010101010101", "description": "l21 description", - "expires_at": 1722908486, + "expires_at": 1739010000, "created_index": 2, "updated_index": 3 }, { "label": "lbl_l22", - "bolt11": "lnbcrt2u1pn2s3xxsp5cpcdj2cy5wpd2nphp2evrp9kqymxf9434zftkmdd6dlgmy8cu78qpp58yq5qf3h0694xwymzjs5e8eejce83vjmxv6cpwqv8cs9e05dxe4qdqcdserygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq9wlpxf8ur0q798646w94tduf6wfkaw7m0ecmxepgatd4utvsyvcy0pku9t8m39rlsjzhe8x53mup5jkn0f84clfj3ctc6qj09t35wxspycpup2", - "payment_hash": "39014026377e8b53389b14a14c9f39963278b25b333580b80c3e205cbe8d366a", + "bolt11": "lnbcrt100n1pnt2bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000bolt11invl020200000000", + "payment_hash": "paymenthashinvl0220022002200220022002200220022002200220022002200", "amount_msat": 200000, "status": "unpaid", "description": "l22 description", - "expires_at": 1722908486, - "created_index": 3 + "expires_at": 1739020000, + "created_index": 3, + "paid_at": 1738520000 }, { "label": "label inv_l24", - "bolt11": "lnbcrt1230n1pn2s38psp5jf2zk7py4wmutyq4pdr6783egft24nkyhfrxegrzzqnef2matw2qpp5rf5zgqyexdt7q5ean83cvcjuc3jafn8etm3c0za6xldwcyllvffqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydqcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq8nn5qkcp9xl5u7dlqamdys6e6yc0ngyqe676cqajnwax6657verj7at5gvdqu6nk3l0wcagq4muyhqqms4t0t9sfvyazpga5eywj6uqpyc409e", - "payment_hash": "1a682400993357e0533d99e386625cc465d4ccf95ee3878bba37daec13ff6252", + "bolt11": "lnbcrt100n1pnt2bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000", + "payment_hash": "paymenthashinvl0240024002400240024002400240024002400240024002400", "amount_msat": 123000, "status": "unpaid", "description": "description inv_l24", - "expires_at": 1722307313, - "created_index": 4 + "expires_at": 1739030000, + "created_index": 4, + "paid_at": 1738530000 }, { "label": "label inv_l25", - "bolt11": "lnbcrt1240n1pn2s38psp5ufjqj6kuxlvl65xue9p06ulyvwf9sm0utxlch59d0ynl05778vwspp5qlacxkrdmc2p50yl8lsl75pwmlhve2ret2yd2f34z7jfs7yffwvqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydgcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqkml60qaytvnd08p57w7enuna95s7cqej8cfuvsgjzpeq9u83s0hqh60667nrp40qkqxkdu36z8wqtmac5z3208rwyn0q2pv56sgz5dcp9mn5hc", - "payment_hash": "07fb83586dde141a3c9f3fe1ff502edfeecca8795a88d5263517a49878894b98", + "bolt11": "lnbcrt100n1pnt2bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000", + "payment_hash": "paymenthashinvl0250025002500250025002500250025002500250025002500", "amount_msat": 124000, "status": "unpaid", "description": "description inv_l25", - "expires_at": 1722307313, - "created_index": 5 - }, - { - "label": "label inv_l26", - "bolt11": "lnbcrt1250n1pn2s38psp5u22hlvy5mk7keq57m4fatz7aqnmh4whcuk45npdexrw4m5athcvqpp5ps4h5lt8waz5pprvad3skzssnksl2wxng985rcsuedp8teh29rkqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydscqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqyljtru0gcvqh7k5l9u8ulcuxw8fwa9qycyd32hl7wwdpjtlefgrpyjch6aprcdah2pthx3pku3y7c6dzluzjjy9c32cs3m5hqq6ww3sp0j4tr8", - "payment_hash": "0c2b7a7d67774540846ceb630b0a109da1f538d3414f41e21ccb4275e6ea28ec", - "amount_msat": 125000, - "status": "unpaid", - "description": "description inv_l26", - "expires_at": 1722307313, - "created_index": 6 - }, - { - "label": "lbl_l13", - "bolt11": "lnbcrt1u1pn2s38zsp5j9w8t9p2y6an5se63n3vkpp8c20vdsthtn78sv5t2lmt57l742wqpp5wtxkappzcsrlkmgfs6g0zyct0hkhashh7hsaxz7e65slq9fkx7fsdqcdscnxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqcjq9fq26ph2skcsm65xjwnw3crgygpampszjcvqs8aw2zf3jzcxqg4dh58fm8mxul29vh5urpyjkll9m4dq3807xcmq2q9yvgd5qt7qp695qvu", - "payment_hash": "72cd6e8422c407fb6d098690f1130b7ded7ec2f7f5e1d30bd9d521f015363793", - "amount_msat": 100000, - "status": "unpaid", - "description": "l13 description", - "expires_at": 1722908514, - "created_index": 7 - }, - { - "label": "lbl_l23", - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", - "status": "paid", - "pay_index": 2, - "amount_received_msat": 9900, - "paid_at": 1722303715, - "payment_preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", - "description": "l23 description", - "expires_at": 1722908514, - "created_index": 8, - "updated_index": 2 - }, - { - "label": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e-025f3305ae63d757b277dd49301833087ba6208e743ce95fa6e950fa80be407e5f-0", - "bolt12": "lni1qqg9g04gczk9ntk4gsjg3aptwykk2q3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssq38zq9q53nfwd5zqumpd3jjz93pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84sggztuesttnr6atmya7afycpsvcg0wnzprn58n54lfhf2ragp0jq0e04j9z5dpsku6mnypnx7u3qw35x2grxd9eksgdqnqpz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336kgr6euj6p39a209zw5kpkftk7h9te69vlmjg0arceagpaajague0zsszqk96htpgqn2wsznaas0zfdtf8v97ryz29jrn7rwgs5687ghgq5jusqr99dtx4jdj9nqpep5zxmynegrg6e7rm2l53ur8043h2yqzldyl5vh08h8ssaeq5jrvw9y24kztlwvc4nwagsuqqqqqqqqqqqqqqq9qqqqqqqqqqqqq8fykt06c5sqqqqqpfqyv65yfedgyqrp2s7qpxpjse8q8796qcrr5xwgfkqjue3urd6rs2rt2f68tk0vl2szyugtqggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vlqsy2n7vmpn67ltzrj70znp70sk4m530j5vceq6jhk97h7ttzn09sh8m9gecarrt27v2tux8z6rr06sj9h60r05p4vhkhzsp0xf9ea4jgg", - "payment_hash": "061543c009832864e03f8ba06063a19c84d812e663c1b7438286b527475d9ecf", - "amount_msat": 10000, - "status": "unpaid", - "description": "Fish sale!", - "expires_at": 1722310917, - "local_offer_id": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e", - "invreq_payer_note": "Thanks for the fish!", - "created_index": 9 - }, - { - "label": "f901018768e13ea2da95f437749e24d22d47b2a6ea3030ef66ae0281df49d94b-03014d72261012e28cb4711a985c1475eba04a0058f9d04321b4cf1de479711d6f-0", - "bolt12": "lni1qqg86u6jfl660zfuk22sexem37r7xq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqc0gfqq5pjrdanxvet9zsqs593pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84yqc7sjq9vqgztqssxq2dwgnpqyhz3j68zx5cts28t6aqfgq937wsgvsmfncau3uhz8t05zvqytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82eq2rdjuqaychg3jndvsjrlu6y08aeuh4ytw6f6ak5n24p5n8zmsz2sqgrg3rg89hqfh6n7dfr0fugvq20ehecd3ezc438l6uh4r8epaakn4lsqv4qgr3ks4yxngyflq339lza456xt8uly085umq3gwql3qyfge0ec03dezeg8xulz33ntlj8yd7dcra9564zrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s3894qsfwwvj3szk4yplg4fkw68nwzlwyc23457qx6v7xe38znuha72km6a2qv0gfq9syypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgz2rxjcsxs6s3lnngq9xeqn9pzy53n50p4ulcdvkx8dye7h8xgxpvjyg928m2txk2knl0zzfl7j82c6lq7xqlx83ey7z4aux9pjp4sp7", - "payment_hash": "9739928c056a903f45536768f370bee26151ad3c03699e3662714f97ef956deb", - "amount_msat": 2000000, - "status": "unpaid", - "description": "Coffee", - "expires_at": 1722310917, - "local_offer_id": "f901018768e13ea2da95f437749e24d22d47b2a6ea3030ef66ae0281df49d94b", - "created_index": 10 + "expires_at": 1739040000, + "created_index": 5, + "paid_at": 1738540000 } ] } diff --git a/doc/schemas/lightning-listnodes.json b/doc/schemas/lightning-listnodes.json index d4859e721064..ba90eda6f7a4 100644 --- a/doc/schemas/lightning-listnodes.json +++ b/doc/schemas/lightning-listnodes.json @@ -268,17 +268,17 @@ "id": "example:listnodes#1", "method": "listnodes", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d" + "id": "nodeid030303030303030303030303030303030303030303030303030303030303" } }, "response": { "nodes": [ { - "nodeid": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "alias": "HOPPINGFIRE--190-g5fd2f9c-modded", + "nodeid": "nodeid030303030303030303030303030303030303030303030303030303030303", + "alias": "HOPPINGFIRE", "color": "035d2b", - "last_timestamp": 1722303669, - "features": "88a0802a8a59a1", + "last_timestamp": 1738000000, + "features": "88a0882a8a59a1", "addresses": [] } ] @@ -293,35 +293,35 @@ "response": { "nodes": [ { - "nodeid": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "alias": "SILENTARTIST-190-g5fd2f9c-modded", + "nodeid": "nodeid020202020202020202020202020202020202020202020202020202020202", + "alias": "SILENTARTIST", "color": "022d22", - "last_timestamp": 1722303662, - "features": "88a0802a8a59a1", + "last_timestamp": 1738000000, + "features": "88a0882a8a59a1", "addresses": [] }, { - "nodeid": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "alias": "JUNIORBEAM-5-190-g5fd2f9c-modded", + "nodeid": "nodeid010101010101010101010101010101010101010101010101010101010101", + "alias": "JUNIORBEAM", "color": "0266e4", - "last_timestamp": 1722303662, - "features": "88a0802a8a59a1", + "last_timestamp": 1738010000, + "features": "88a0882a8a59a1", "addresses": [] }, { - "nodeid": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "alias": "HOPPINGFIRE--190-g5fd2f9c-modded", + "nodeid": "nodeid030303030303030303030303030303030303030303030303030303030303", + "alias": "HOPPINGFIRE", "color": "035d2b", - "last_timestamp": 1722303669, - "features": "88a0802a8a59a1", + "last_timestamp": 1738020000, + "features": "88a0882a8a59a1", "addresses": [] }, { - "nodeid": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "alias": "JUNIORFELONY-190-g5fd2f9c-modded", + "nodeid": "nodeid040404040404040404040404040404040404040404040404040404040404", + "alias": "JUNIORFELONY", "color": "0382ce", - "last_timestamp": 1722303669, - "features": "88a0802a8a59a1", + "last_timestamp": 1738030000, + "features": "88a0882a8a59a1", "addresses": [] } ] diff --git a/doc/schemas/lightning-listoffers.json b/doc/schemas/lightning-listoffers.json index dedca944c129..16f31992afda 100644 --- a/doc/schemas/lightning-listoffers.json +++ b/doc/schemas/lightning-listoffers.json @@ -109,17 +109,24 @@ "response": { "offers": [ { - "offer_id": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e", + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqgn3qzs2ge5hx6pqwdskcefpzcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000", "used": false }, { - "offer_id": "f901018768e13ea2da95f437749e24d22d47b2a6ea3030ef66ae0281df49d94b", + "offer_id": "offeridl21000002100000210000021000002100000210000021000002100000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv85ysq2qepk7enxv4j3gqg2zcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", + "used": false + }, + { + "offer_id": "offeridl22000002200000220000022000002200000220000022000002200000", + "active": true, + "single_use": false, + "bolt12": "lno1qgsq000bolt220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000", "used": false } ] @@ -136,10 +143,10 @@ "response": { "offers": [ { - "offer_id": "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24", - "active": false, + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000", + "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv0gfqq2zp8kven9wgs8gmeqg35hxctzd3j3vggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vs", + "bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000", "used": false } ] diff --git a/doc/schemas/lightning-listpays.json b/doc/schemas/lightning-listpays.json index a586bfc379c0..ab21c0a1310e 100644 --- a/doc/schemas/lightning-listpays.json +++ b/doc/schemas/lightning-listpays.json @@ -229,7 +229,7 @@ "id": "example:listpays#1", "method": "listpays", "params": { - "bolt11": "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll" + "bolt11": "lnbcrt100n1pnt2bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000" } }, "response": { @@ -243,74 +243,7 @@ "params": {} }, "response": { - "pays": [ - { - "bolt11": "lnbcrt5m1pn2s39hsp50pekdm9axtcfm0ttsxzg2z0738ujk5uc3n0v5rul2y2ghkeh772qpp50a60qe8lg55t0mru27xlvcnpwetu46d0ff60tuj0dr9cged3secqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcv3qw3hjqmpnxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqcjj3uz0ux4qxt4ev4patfwz44e7ns57tmvxdwzfq2pj5drm5xhk5agm8j2wha32g664a0mw6casy44vfdf76jj38n3669fsjps4jkaqpaydvjr", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670", - "status": "complete", - "created_at": 1722303671, - "completed_at": 1722303672, - "preimage": "d9893938f4464933d87f5123a8c09b4e98e106c9c34c1812340c9570d72d16a2", - "amount_msat": 500000000, - "amount_sent_msat": 500000000 - }, - { - "bolt11": "lnbcrt5m1pn2s39csp59778k5kecnjhyqu7amy99kt8nhu43ap74m8q3xryvqxrjnsrnxpqpp5s3fd8u9xnhgwtqpsq9jtcspzu4dmxvcatpvl2a3dje5055fmqrdqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcv3qw3hjqmp4xqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jx3rjwmh5d5rmgqqqqqpqqqqqzsqqc9qxpqysgqe4hfa6arms4pz6ajwhq07lhc57g60vrdqyfdsewu84q823m8zqdjtcsv7aun8zqxr86amyz0lclf8pfts0hqy60s9fcvvsjyxnnmpugpjcq9xk", - "destination": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", - "payment_hash": "8452d3f0a69dd0e580300164bc4022e55bb3331d5859f5762d9668fa513b00da", - "status": "complete", - "created_at": 1722303672, - "completed_at": 1722303673, - "preimage": "576f5426f339b3db80d1b3c3546d6832274171609f25795c64b6cc74aa158d8c", - "amount_msat": 500000000, - "amount_sent_msat": 500000000 - }, - { - "bolt11": "lnbcrt1u1pn2s3xxsp5xk8hs6zuv0yqhq7hhl0sps6mxuj78pzwryejaljh48vr4htykujqpp593ndc8wrukteld5j4nqnt6tedavh8ezv48dmrkqen3440ajnre5qdqcdsenxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq0asve9rdtfd9fe20u5vjujzmm0phpq538z8ndhn5ts62aflhktqn6338e45xcxkyf7askjjq25ksxt4eqarjjame8wfdmau7kq7m4csqs0n32n", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68", - "status": "complete", - "created_at": 1722303688, - "completed_at": 1722303689, - "preimage": "1ce8370d3a179cee3af25a5a6c7058e8e12033a842efd6d34abae53334bc94bf", - "amount_msat": 100000, - "amount_sent_msat": 100000 - }, - { - "bolt12": "lni1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e5zvqyehytxx360zptatj4pygsv9kpal8gnkeyd0tpvd6jv5rkv2uqdgcq2s27mvxt0arlnulnmce53cuz00vzaqvgvhpphxgavl89r8zrdhaxqgzpvxkkmwsmxnuwflttmnpc8vtzwlgd3cfty3xwlnlc9r2gcjesguqqv4xey4m7l4wxem27vxyxfhwznlc62kffsd5xncx9w49m4g72u2y7lcl6a3x5cpu52j6gm8q5x0q8k7myxdzrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s38p5cq442pq5qpm4ht26v8statwxcrl65uy26c9hx4dvy66f9x665eqqy90tpz25qc0gfqtqggzvmj9nrga83q474e2sjygxzmq7ln5fmvjxh4skxafx2pmx9wqx5v0qsqfkcrpht0d3nnt8txkcgf5wr6gzrlacls2gyrvj5hhwuu98shurrn6ayruunju7k9yu9clvaj354tr064ruuht88q5dj73kzru20uzj", - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "payment_hash": "a003badd6ad30f05f56e3607fd538456b05b9aad6135a494dad5320010af5844", - "status": "complete", - "created_at": 1722303713, - "completed_at": 1722303714, - "preimage": "6f154ed7d108349cb6385eba5f160294ef83862c2c560ba6446b2a3da5c2b3b3", - "amount_msat": 1000000, - "amount_sent_msat": 1000000 - }, - { - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", - "status": "complete", - "created_at": 1722303715, - "completed_at": 1722303715, - "preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", - "amount_msat": 9900, - "amount_sent_msat": 9900 - }, - { - "bolt11": "lnbcrt40n1pn2s3xxsp5j329vez86jvxw6543zlcla2fusm7v6h74pf7ftmmyfv6zm9uedlspp5j6xpxmq8cwd305vj2dvd6dh4mkr0s6guvehvyleymedgf4vsm3ysdqaveskjmr9vssxgetnvdexjur5d9hkuxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqk6uwy8pkv42jzhdna3z4vxpwkapdzzpn2tcpjnqj738nlpkjc583l9v72vlskt8y33rr4z3jma32xx7ve0jfy7anvn6r98cr5flhcuqqhr4shx", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", - "status": "complete", - "created_at": 1722303719, - "completed_at": 1722303720, - "preimage": "8815ee921dba644c076f9f879abb520d8539a6913856a439752eaaadff1e21ac", - "amount_msat": 4000, - "amount_sent_msat": 4000 - } - ] + "pays": [] } } ] diff --git a/doc/schemas/lightning-listpeerchannels.json b/doc/schemas/lightning-listpeerchannels.json index 9cd38c546809..416810bbadb1 100644 --- a/doc/schemas/lightning-listpeerchannels.json +++ b/doc/schemas/lightning-listpeerchannels.json @@ -1409,13 +1409,13 @@ "id": "example:listpeerchannels#1", "method": "listpeerchannels", "params": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + "id": "nodeid020202020202020202020202020202020202020202020202020202020202" } }, "response": { "channels": [ { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "peer_connected": true, "reestablished": true, "channel_type": { @@ -1444,10 +1444,10 @@ "fee_proportional_millionths": 10 } }, - "last_stable_connection": 1722303707, + "last_stable_connection": 1738510000, "state": "CHANNELD_NORMAL", - "scratch_txid": "80aa008578b3b6924f2362146907e46ad83351d5b9b056bd8537befc3f1d7d65", - "last_tx_fee_msat": 4221000, + "scratch_txid": "scratchid1010101010101010101010101010101010101010101010101010101", + "last_tx_fee_msat": 4867000, "lost_state": false, "feerate": { "perkw": 3755, @@ -1456,16 +1456,16 @@ "owner": "channeld", "short_channel_id": "109x1x1", "direction": 1, - "channel_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", - "funding_txid": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", + "channel_id": "channelid0120000120000120000120000120000120000120000120000120000", + "funding_txid": "channeltxid120000120000120000120000120000120000120000120000120000", "funding_outnum": 1, "close_to_addr": "bcrt1p8c0ku4mpxq3443rss8e6rjwamztvv8yxvmxtetal5d0n6v39rlwqvfqy6n", "close_to": "51203e1f6e576130235ac47081f3a1c9ddd896c61c8666ccbcafbfa35f3d32251fdc", "private": false, "opener": "local", "alias": { - "local": "2240075x4300189x56636", - "remote": "3321841x5311416x1695" + "local": "30000001x60000001x60001", + "remote": "10000001x20000001x30001" }, "features": [ "option_static_remotekey", @@ -1477,8 +1477,8 @@ "remote_funds_msat": 0, "pushed_msat": 0 }, - "to_us_msat": 490518792, - "min_to_us_msat": 489918792, + "to_us_msat": 390502790, + "min_to_us_msat": 390502790, "max_to_us_msat": 1000000000, "total_msat": 1000000000, "fee_base_msat": 1, @@ -1487,8 +1487,8 @@ "max_total_htlc_in_msat": 18446744073709552000, "their_reserve_msat": 10000000, "our_reserve_msat": 10000000, - "spendable_msat": 469223792, - "receivable_msat": 499481208, + "spendable_msat": 363961708, + "receivable_msat": 599497210, "minimum_htlc_in_msat": 0, "minimum_htlc_out_msat": 0, "maximum_htlc_out_msat": 990000000, @@ -1497,14 +1497,14 @@ "max_accepted_htlcs": 483, "state_changes": [ { - "timestamp": "2024-07-30T01:40:45.942Z", + "timestamp": "2024-10-10T00:01:00.000Z", "old_state": "DUALOPEND_OPEN_COMMITTED", "new_state": "DUALOPEND_AWAITING_LOCKIN", "cause": "user", "message": "Sigs exchanged, waiting for lock-in" }, { - "timestamp": "2024-07-30T01:40:47.619Z", + "timestamp": "2024-10-10T00:02:00.000Z", "old_state": "DUALOPEND_AWAITING_LOCKIN", "new_state": "CHANNELD_NORMAL", "cause": "user", @@ -1518,11 +1518,20 @@ "in_offered_msat": 1000000, "in_payments_fulfilled": 1, "in_fulfilled_msat": 1000000, - "out_payments_offered": 10, - "out_offered_msat": 510501210, - "out_payments_fulfilled": 8, - "out_fulfilled_msat": 510481208, - "htlcs": [] + "out_payments_offered": 20, + "out_offered_msat": 665517795, + "out_payments_fulfilled": 15, + "out_fulfilled_msat": 610497210, + "htlcs": [ + { + "direction": "out", + "id": 15, + "amount_msat": 4000082, + "expiry": 181, + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", + "state": "SENT_ADD_ACK_REVOCATION" + } + ] } ] } @@ -1536,7 +1545,7 @@ "response": { "channels": [ { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "peer_connected": true, "reestablished": true, "channel_type": { @@ -1565,10 +1574,10 @@ "fee_proportional_millionths": 10 } }, - "last_stable_connection": 1722303707, + "last_stable_connection": 1738520000, "state": "CHANNELD_NORMAL", - "scratch_txid": "80aa008578b3b6924f2362146907e46ad83351d5b9b056bd8537befc3f1d7d65", - "last_tx_fee_msat": 4221000, + "scratch_txid": "scratchid2020202020202020202020202020202020202020202020202020202", + "last_tx_fee_msat": 4867000, "lost_state": false, "feerate": { "perkw": 3755, @@ -1577,16 +1586,16 @@ "owner": "channeld", "short_channel_id": "109x1x1", "direction": 1, - "channel_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", - "funding_txid": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", + "channel_id": "channelid0120000120000120000120000120000120000120000120000120000", + "funding_txid": "channeltxid120000120000120000120000120000120000120000120000120000", "funding_outnum": 1, - "close_to_addr": "bcrt1p8c0ku4mpxq3443rss8e6rjwamztvv8yxvmxtetal5d0n6v39rlwqvfqy6n", - "close_to": "51203e1f6e576130235ac47081f3a1c9ddd896c61c8666ccbcafbfa35f3d32251fdc", + "close_to_addr": "bcrt1pcl00020002000200020002000200020002000200020002000200020002", + "close_to": "db2dec31020202020202020202020202020202020202020202020202020202020202", "private": false, "opener": "local", "alias": { - "local": "2240075x4300189x56636", - "remote": "3321841x5311416x1695" + "local": "30000002x60000002x60002", + "remote": "10000002x20000002x30002" }, "features": [ "option_static_remotekey", @@ -1598,8 +1607,8 @@ "remote_funds_msat": 0, "pushed_msat": 0 }, - "to_us_msat": 490518792, - "min_to_us_msat": 489918792, + "to_us_msat": 390502790, + "min_to_us_msat": 390502790, "max_to_us_msat": 1000000000, "total_msat": 1000000000, "fee_base_msat": 1, @@ -1608,8 +1617,8 @@ "max_total_htlc_in_msat": 18446744073709552000, "their_reserve_msat": 10000000, "our_reserve_msat": 10000000, - "spendable_msat": 469223792, - "receivable_msat": 499481208, + "spendable_msat": 363961708, + "receivable_msat": 599497210, "minimum_htlc_in_msat": 0, "minimum_htlc_out_msat": 0, "maximum_htlc_out_msat": 990000000, @@ -1618,14 +1627,14 @@ "max_accepted_htlcs": 483, "state_changes": [ { - "timestamp": "2024-07-30T01:40:45.942Z", + "timestamp": "2024-10-10T00:01:00.000Z", "old_state": "DUALOPEND_OPEN_COMMITTED", "new_state": "DUALOPEND_AWAITING_LOCKIN", "cause": "user", "message": "Sigs exchanged, waiting for lock-in" }, { - "timestamp": "2024-07-30T01:40:47.619Z", + "timestamp": "2024-10-10T00:02:00.000Z", "old_state": "DUALOPEND_AWAITING_LOCKIN", "new_state": "CHANNELD_NORMAL", "cause": "user", @@ -1639,11 +1648,165 @@ "in_offered_msat": 1000000, "in_payments_fulfilled": 1, "in_fulfilled_msat": 1000000, - "out_payments_offered": 10, - "out_offered_msat": 510501210, - "out_payments_fulfilled": 8, - "out_fulfilled_msat": 510481208, - "htlcs": [] + "out_payments_offered": 20, + "out_offered_msat": 665517795, + "out_payments_fulfilled": 15, + "out_fulfilled_msat": 610497210, + "htlcs": [ + { + "direction": "out", + "id": 15, + "amount_msat": 4000082, + "expiry": 181, + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", + "state": "SENT_ADD_ACK_REVOCATION" + } + ] + }, + { + "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "peer_connected": false, + "channel_type": { + "bits": [ + 12, + 22 + ], + "names": [ + "static_remotekey/even", + "anchors/even" + ] + }, + "updates": { + "local": { + "htlc_minimum_msat": 0, + "htlc_maximum_msat": 19454000, + "cltv_expiry_delta": 6, + "fee_base_msat": 1, + "fee_proportional_millionths": 10 + } + }, + "state": "ONCHAIN", + "scratch_txid": "scratchid2030303030303030303030303030303030303030303030303030303", + "last_tx_fee_msat": 2250000, + "lost_state": false, + "feerate": { + "perkw": 3750, + "perkb": 15000 + }, + "direction": 0, + "channel_id": "channelid1100011000110001100011000110001100011000110001100011000", + "funding_txid": "channeltxid01050000500005000050000500005000050000500005000050000", + "funding_outnum": 1, + "initial_feerate": "10000perkw", + "last_feerate": "10000perkw", + "next_feerate": "10416perkw", + "inflight": [ + { + "funding_txid": "channeltxid01050000500005000050000500005000050000500005000050000", + "funding_outnum": 1, + "feerate": "10000perkw", + "total_funding_msat": 20000000, + "our_funding_msat": 20000000, + "splice_amount": 0, + "scratch_txid": "scratchid2030303030303030303030303030303030303030303030303030303" + } + ], + "close_to_addr": "bcrt1pcl00030003000300030003000300030003000300030003000300030003", + "close_to": "db2dec31030303030303030303030303030303030303030303030303030303030303", + "private": false, + "opener": "local", + "closer": "local", + "alias": { + "local": "30000003x60000003x60003", + "remote": "10000003x20000003x30003" + }, + "features": [ + "option_static_remotekey", + "option_anchors_zero_fee_htlc_tx", + "option_anchors" + ], + "funding": { + "local_funds_msat": 20000000, + "remote_funds_msat": 0, + "pushed_msat": 0 + }, + "to_us_msat": 20000000, + "min_to_us_msat": 20000000, + "max_to_us_msat": 20000000, + "total_msat": 20000000, + "fee_base_msat": 1, + "fee_proportional_millionths": 10, + "dust_limit_msat": 546000, + "max_total_htlc_in_msat": 18446744073709552000, + "their_reserve_msat": 546000, + "our_reserve_msat": 546000, + "spendable_msat": 8172000, + "receivable_msat": 0, + "minimum_htlc_in_msat": 0, + "minimum_htlc_out_msat": 0, + "maximum_htlc_out_msat": 19454000, + "their_to_self_delay": 5, + "our_to_self_delay": 5, + "max_accepted_htlcs": 483, + "state_changes": [ + { + "timestamp": "2024-10-10T00:01:00.000Z", + "old_state": "DUALOPEND_OPEN_COMMITTED", + "new_state": "DUALOPEND_AWAITING_LOCKIN", + "cause": "user", + "message": "Sigs exchanged, waiting for lock-in" + }, + { + "timestamp": "2024-10-10T00:02:00.000Z", + "old_state": "DUALOPEND_AWAITING_LOCKIN", + "new_state": "CHANNELD_SHUTTING_DOWN", + "cause": "user", + "message": "User or plugin invoked close command" + }, + { + "timestamp": "2024-10-10T00:03:00.000Z", + "old_state": "CHANNELD_SHUTTING_DOWN", + "new_state": "CLOSINGD_SIGEXCHANGE", + "cause": "user", + "message": "Start closingd" + }, + { + "timestamp": "2024-10-10T00:04:00.000Z", + "old_state": "CLOSINGD_SIGEXCHANGE", + "new_state": "CLOSINGD_COMPLETE", + "cause": "user", + "message": "Closing complete" + }, + { + "timestamp": "2024-10-10T00:05:00.000Z", + "old_state": "CLOSINGD_COMPLETE", + "new_state": "FUNDING_SPEND_SEEN", + "cause": "user", + "message": "Onchain funding spend" + }, + { + "timestamp": "2024-10-10T00:06:00.000Z", + "old_state": "FUNDING_SPEND_SEEN", + "new_state": "ONCHAIN", + "cause": "user", + "message": "Onchain init reply" + } + ], + "status": [ + "CLOSINGD_SIGEXCHANGE:We agreed on a closing fee of 2250 satoshi for tx:scratchid2030303030303030303030303030303030303030303030303030303", + "ONCHAIN:Tracking mutual close transaction", + "ONCHAIN:All outputs resolved: waiting 99 more blocks before forgetting channel" + ], + "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": [], + "last_stable_connection": 1738530000 } ] } diff --git a/doc/schemas/lightning-listpeers.json b/doc/schemas/lightning-listpeers.json index 1aa5837e96f3..752666ff4109 100644 --- a/doc/schemas/lightning-listpeers.json +++ b/doc/schemas/lightning-listpeers.json @@ -326,19 +326,19 @@ "id": "example:listpeers#1", "method": "listpeers", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d" + "id": "nodeid030303030303030303030303030303030303030303030303030303030303" } }, "response": { "peers": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "connected": true, - "num_channels": 2, + "num_channels": 1, "netaddr": [ - "127.0.0.1:34785" + "127.0.0.1:19736" ], - "features": "08a0802a8a59a1" + "features": "08a0882a8a59a1" } ] } @@ -352,31 +352,28 @@ "response": { "peers": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid010101010101010101010101010101010101010101010101010101010101", "connected": true, - "num_channels": 2, + "num_channels": 1, "netaddr": [ - "127.0.0.1:34785" + "127.0.0.1:19734" ], - "features": "08a0802a8a59a1" + "features": "08a0882a8a59a1" }, { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "connected": true, "num_channels": 1, "netaddr": [ - "127.0.0.1:38251" + "127.0.0.1:19736" ], - "features": "08a0802a8a59a1" + "features": "08a0882a8a59a1" }, { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "connected": true, + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", + "connected": false, "num_channels": 1, - "netaddr": [ - "127.0.0.1:47032" - ], - "features": "08a0802a8a59a1" + "features": "08a0882a8a59a1" } ] } diff --git a/doc/schemas/lightning-listsendpays.json b/doc/schemas/lightning-listsendpays.json index aa2db4fc0fd1..5f15b468ee0a 100644 --- a/doc/schemas/lightning-listsendpays.json +++ b/doc/schemas/lightning-listsendpays.json @@ -342,7 +342,7 @@ "id": "example:listsendpays#1", "method": "listsendpays", "params": { - "bolt11": "lnbcrt100n1pn2s396sp5v3en0qa3rrljw4m0wtz88sx99q20rarufhjpfysefhwhs42gvqjqpp56kvvl33d594nsxu0hzhesvazgqzlwv89fnpjcvtlanz3rl7x623qdp9f9h8vmmfvdjjqer9wd3hy6tsw35k7m3qdsenzxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq7za6z8kx2k5nul45zwttfz2njx3836v69mxqsl4ty9228pyjrkfnkymysy8ygsrrje9qf6j4tpalt5qkqusfp2esrsqc5ak7t4yzajgpezef54" + "bolt11": "lnbcrt100n1pnt2bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000" } }, "response": { @@ -350,16 +350,16 @@ { "created_index": 2, "id": 2, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "groupid": 1, "updated_index": 2, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303675, - "completed_at": 1722303677, + "created_at": 1738000000, + "completed_at": 1739000000, "status": "complete", - "payment_preimage": "984a10782218478cd39e1f9a16795d756c337662067023a3b690bffdb1593f76" + "payment_preimage": "paymentpreimagew010101010101010101010101010101010101010101010101" } ] } @@ -372,146 +372,75 @@ }, "response": { "payments": [ - { - "created_index": 1, - "id": 1, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", - "groupid": 1, - "updated_index": 1, - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount_msat": 500000000, - "amount_sent_msat": 500000000, - "created_at": 1722303670, - "completed_at": 1722303671, - "status": "complete", - "payment_preimage": "bed4140e1db302720d7f9547dc9127d45b115080447cce7e23cfd00b60991831", - "bolt11": "lnbcrt5m1pn2s39ksp53sknyy2mxxurt4y0wqgp730z0cnm0vz3zmzth8p79xsrtmg5llxspp5dp94v59nm6c99jf7lc07zmnhqw6kyujx3mkdav7643dczgtdedfqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqdz9cftkxe6kcqfddyrvr7j57ulsfxxxkgkjyhr3k77n8v59mzs5rmuexz9lxusyhhehlemd9ujclgahln8e0n8y86stc7u8uys6mjqgqerm6q4" - }, { "created_index": 2, "id": 2, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "groupid": 1, "updated_index": 2, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303675, - "completed_at": 1722303677, + "created_at": 1738000000, + "completed_at": 1739000000, "status": "complete", - "payment_preimage": "984a10782218478cd39e1f9a16795d756c337662067023a3b690bffdb1593f76" + "payment_preimage": "paymentpreimagew010101010101010101010101010101010101010101010101" }, { "created_index": 3, "id": 3, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101", "groupid": 0, "updated_index": 3, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303677, - "completed_at": 1722303679, + "created_at": 1738010000, + "completed_at": 1739010000, "status": "complete", - "payment_preimage": "0d802c9c611bae611d51afa8ddf396df8ba4e0580a2eccfd1120da97e70482a0" + "payment_preimage": "paymentpreimage1010101010101010101010101010101010101010101010101" }, { "created_index": 4, "id": 4, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201", "groupid": 0, "updated_index": 4, - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "destination": "nodeid040404040404040404040404040404040404040404040404040404040404", "amount_msat": 10000000, "amount_sent_msat": 10000202, - "created_at": 1722303679, - "completed_at": 1722303682, + "created_at": 1738020000, + "completed_at": 1739020000, "status": "complete", - "payment_preimage": "f76d6b7ef362f33e25eb5571e616f6e539a2c77caf0afa4227d1351546823664" + "payment_preimage": "paymentpreimage2020202020202020202020202020202020202020202020202" }, { "created_index": 5, "id": 5, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", + "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301", "groupid": 0, "updated_index": 5, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303682, - "completed_at": 1722303684, + "created_at": 1738030000, + "completed_at": 1739030000, "status": "failed" }, { "created_index": 6, "id": 6, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", + "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301", "groupid": 0, "updated_index": 6, "partid": 1, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303684, - "completed_at": 1722303686, - "status": "complete", - "payment_preimage": "4dad6dcf625f650a35a8199fbda18ea4f6717cdfadb40e6bed2bf5f96a4742b0" - }, - { - "created_index": 7, - "id": 7, - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "groupid": 1, - "updated_index": 7, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "amount_msat": 50000, - "amount_sent_msat": 50001, - "created_at": 1722303686, - "completed_at": 1722303688, - "status": "complete", - "payment_preimage": "0e07efd883f66b6b22ec7f2e7116e203c3fecc22eb8596a73eaf06c4befb0641", - "bolt11": "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll" - }, - { - "created_index": 8, - "id": 8, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "groupid": 1, - "updated_index": 8, - "amount_sent_msat": 1002, - "created_at": 1722303689, - "completed_at": 1722303692, - "status": "complete", - "payment_preimage": "5e49b520e86aaec8d798bf8107892fb87053d4cb27342518e4588aa609cf35cf" - }, - { - "created_index": 9, - "id": 9, - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", - "groupid": 1, - "updated_index": 9, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "amount_msat": 10000, - "amount_sent_msat": 10001, - "created_at": 1722303696, - "completed_at": 1722303698, - "status": "failed" - }, - { - "created_index": 10, - "id": 10, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", - "groupid": 1, - "updated_index": 10, - "partid": 1, - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "amount_msat": 400000, - "amount_sent_msat": 400000, - "created_at": 1722303718, - "completed_at": 1722303719, + "created_at": 1738040000, + "completed_at": 1739040000, "status": "complete", - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7" + "payment_preimage": "paymentpreimage3030303030303030303030303030303030303030303030303" } ] } diff --git a/doc/schemas/lightning-listtransactions.json b/doc/schemas/lightning-listtransactions.json index 0f8d69f9c76e..c2f819cfbda4 100644 --- a/doc/schemas/lightning-listtransactions.json +++ b/doc/schemas/lightning-listtransactions.json @@ -172,132 +172,51 @@ "response": { "transactions": [ { - "hash": "1712c8af55f6853be3179bf20398689bb9204695fe3d6171c3248783218814e3", - "rawtx": "02000000000101096b01ae63d631e321f039d49df4c5b055ce3afa655a3d5c22c2a8594f41f5cd0000000000fdffffff02002d31010000000017a914655728f36cfe36d01aa50d3236704469f84a55408771c4d4280100000017a9147cdfb08e6e44fc1152c4f423225d2b7148248a9d870247304402202ff40c938d644198c10d60fe660c1380bd601b6dc4533b64c64d3809290edf4a022028206e39cc36423524816a34806a721061814478b297c2bfb2bc3c417548c466012102129f00a7502a031999fe81aa35afed6f09617a9748e5fdde0f7a0191d364f59b65000000", - "blockheight": 102, - "txindex": 1, - "locktime": 101, + "hash": "txid7000170001700017000170001700017000170001700017000170001", + "rawtx": "02000000000101lstx70001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001", + "blockheight": 0, + "txindex": 0, + "locktime": 549000100, "version": 2, "inputs": [ { - "txid": "cdf5414f59a8c2225c3d5a65fa3ace55b0c5f49dd439f021e331d663ae016b09", - "index": 0, - "sequence": 4294967293 - } - ], - "outputs": [ - { - "index": 0, - "amount_msat": 20000000000, - "scriptPubKey": "a914655728f36cfe36d01aa50d3236704469f84a554087" - }, - { - "index": 1, - "amount_msat": 4979999857000, - "scriptPubKey": "a9147cdfb08e6e44fc1152c4f423225d2b7148248a9d87" - } - ] - }, - { - "hash": "9454852bb62e304ee8933662284e10bd22a7f3710c262da4c94bdcc8b05ae407", - "rawtx": "02000000000101e3148821838724c371613dfe954620b99b689803f29b17e33b85f655afc812170000000017160014d6b969d36dffdad9869193f663ee480dfdc73488fdffffff0135143101000000002251206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b50247304402201b09adb26aa7674b2e4954bef85e5d4cb5baee1e20c91e6d26db624407588b4e022044bae97372215531507b464b7978e6f9dc25f986aed5ab62dbc011c1e80a544f012102b9c0c6844e12a531c968e55c55078ec16d9bf76be9290fd87d1cca72b4839a1766000000", - "blockheight": 103, - "txindex": 1, - "locktime": 102, - "version": 2, - "inputs": [ - { - "txid": "1712c8af55f6853be3179bf20398689bb9204695fe3d6171c3248783218814e3", - "index": 0, - "sequence": 4294967293 - } - ], - "outputs": [ - { - "index": 0, - "amount_msat": 19993653000, - "scriptPubKey": "51206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b5" - } - ] - }, - { - "hash": "706e569239dfe88a33ae6d276ae68d6c787a2403ecf0ac97ed14eec28aa6039d", - "rawtx": "02000000000101e3148821838724c371613dfe954620b99b689803f29b17e33b85f655afc8121701000000171600142577677b3b18e431cfe9ac900e842b4d0567d251fdffffff0200c2eb0b00000000160014661c23b790dd3491373af0b1d8bed0877d5cde22cd01e91c010000001600140527f5b39d5b246fc5ed823c59ccdc5cc50e70580247304402205d01bd83c715b11e29040b0e8a193629194f638b7369270d668df172616d872302205bbad12ce8fc7a4694195dc3871302e808547b24e7098ffd089d0e340ccf3b950121034bcbb11214c52ca895d87add0c0de5a1dfb429966aa50f59afe33669319ea99266000000", - "blockheight": 103, - "txindex": 2, - "locktime": 102, - "version": 2, - "inputs": [ - { - "txid": "1712c8af55f6853be3179bf20398689bb9204695fe3d6171c3248783218814e3", + "txid": "txid600116001160011600116001160011600116001160011600116001160011", "index": 1, - "sequence": 4294967293 + "sequence": 2158511000 } ], "outputs": [ - { - "index": 0, - "amount_msat": 200000000000, - "scriptPubKey": "0014661c23b790dd3491373af0b1d8bed0877d5cde22" - }, { "index": 1, - "amount_msat": 4779999693000, - "scriptPubKey": "00140527f5b39d5b246fc5ed823c59ccdc5cc50e7058" + "amount_msat": 201998901100, + "scriptPubKey": "scriptpubkey01010101010101010101010101010101010101010101010101010101" } ] }, { - "hash": "7547ffc11396c62852104f7100d5ca27a2b9c0d5d43d08122147b2b03eb157a5", - "rawtx": "02000000000101e4f55092d059070e27bc6d3a8cce1ba7137244e997c499ce47ca9828d82319fc0000000000fdffffff0280841e00000000001600149fb67bfcefee6cb7db4c7e55d9c6bfd749e31d1e8c721bed0000000016001442e74d56791e0c6447ebb87c612d324a8fd1e9f90247304402201843081a5417aec6d9e77e894ca159622d76360a16b9ee66e7d363a38ccd2a6102206b2dfb4bd0b0e8c25ed798842288c0ef3a0e328fa4f42d6fb5c479715ab2f0710121023770a6280695342030684ebaf25094a197f97acbb988e1ec8459b6228e20f8596b000000", - "blockheight": 108, - "txindex": 1, - "locktime": 107, + "hash": "txid7000270002700027000270002700027000270002700027000270002", + "rawtx": "02000000000101lstx70002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002", + "blockheight": 0, + "txindex": 0, + "locktime": 549000200, "version": 2, "inputs": [ { - "txid": "fc1923d82898ca47ce99c497e9447213a71bce8c3a6dbc270e0759d09250f5e4", - "index": 0, - "sequence": 4294967293 - } - ], - "outputs": [ - { - "index": 0, - "amount_msat": 2000000000, - "scriptPubKey": "00149fb67bfcefee6cb7db4c7e55d9c6bfd749e31d1e" - }, - { + "txid": "txid600126001260012600126001260012600126001260012600126001260012", "index": 1, - "amount_msat": 3977998988000, - "scriptPubKey": "001442e74d56791e0c6447ebb87c612d324a8fd1e9f9" - } - ] - }, - { - "hash": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", - "rawtx": "020000000001019d03a68ac2ee14ed97acf0ec03247a786c8de66a276dae338ae8df3992566e700000000000fdffffff02816cdc0b0000000022512035f1184f6b470c9df347da62c4b28e7ec9ee10b220bac3accd22209def0036ea40420f00000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd0247304402207336a772e8643be4dc672957feaa3c9d97dde0aa5d8014a35ebc4772d8dacf91022074cd9cf97077fbf2f5d380b3917565f05232cc07db22aef12f327d6603861d6f012103fa9c95085e42b1e5003cd1f418178c30c96e4ae77954ca0fc48c58826ff4eb0e6c000000", - "blockheight": 109, - "txindex": 1, - "locktime": 108, - "version": 2, - "inputs": [ - { - "txid": "706e569239dfe88a33ae6d276ae68d6c787a2403ecf0ac97ed14eec28aa6039d", - "index": 0, - "sequence": 4294967293 + "sequence": 2158512000 } ], "outputs": [ { - "index": 0, - "amount_msat": 198995073000, - "scriptPubKey": "512035f1184f6b470c9df347da62c4b28e7ec9ee10b220bac3accd22209def0036ea" + "index": 1, + "amount_msat": 201998902100, + "scriptPubKey": "scriptpubkey02010201020102010201020102010201020102010201020102010201" }, { - "index": 1, - "amount_msat": 1000000000, - "scriptPubKey": "00205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd" + "index": 2, + "amount_msat": 201998902200, + "scriptPubKey": "scriptpubkey02020202020202020202020202020202020202020202020202020202" } ] } diff --git a/doc/schemas/lightning-multifundchannel.json b/doc/schemas/lightning-multifundchannel.json index f2ad0fcb60a8..eb9b40900757 100644 --- a/doc/schemas/lightning-multifundchannel.json +++ b/doc/schemas/lightning-multifundchannel.json @@ -343,15 +343,15 @@ "params": { "destinations": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d@127.0.0.1:34785", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303@127.0.0.1:19736", "amount": "20000sat" }, { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199@127.0.0.1:46213", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404@127.0.0.1:19737", "amount": "0.0003btc" }, { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e@127.0.0.1:38251", + "id": "nodeid050505050505050505050505050505050505050505050505050505050505@127.0.0.1:19738", "amount": "all" } ], @@ -360,12 +360,12 @@ } }, "response": { - "tx": "02000000000107feed56fc07fe7a3094f5f7c104f4ac8f3c96f6bf7c44df90619307d6f75c06850200000000fdffffff72819eb0ce9892c1025fd83e5e1a39fd30f79f843b489a32c20f45e67f37c5f30100000000fdffffff187f8d1b7292d57a46e23ae746c530741b8493dff74a7f62ca7e200204f6ec800000000000fdfffffffeed56fc07fe7a3094f5f7c104f4ac8f3c96f6bf7c44df90619307d6f75c06850100000000fdffffff07e45ab0c8dc4bc9a42d260c71f3a722bd104e28623693e84e302eb62b8554940000000000fdffffff187f8d1b7292d57a46e23ae746c530741b8493dff74a7f62ca7e200204f6ec800700000000fdffffff187f8d1b7292d57a46e23ae746c530741b8493dff74a7f62ca7e200204f6ec800400000000fdffffff040a8b250700000000220020f7bbe8f915381b4b9b1ca14cccbfd156eea19888550d01a5014f977e98c7fc8c204e000000000000220020369444aad3ac8c5452be625479f761587c42fbf66fecf644447daabc73c498223075000000000000220020d90c23ede7b77f89f4cae93da9326ba176d158a0b65faeaede5684c3c0f7c839a86100000000000022512018ece00b736f9ed77ed3a87426643c242223e3d6116a4cd6d90946f73de2ce71024730440220296f0d677ae2151a2fceb00c717483488f46aff309e28f36934ec3bcf914443f02204a7a20186d9b936e029c6b55df302386ad306f6738176945cf5d8607c18d16c7012102272a9a25f1ffed52fab04a2cc88aeab135b53723856a8f1481c26417f88a922e02473044022063c77ad73bd1993abc48b04b2f7b66ab7aa34f56f55c69b1c3e1868a4580554c0220466333d7e6e9163ec6ad6ef755be6e61a79a6a50ac8ad32d071b2819f2a113a60121029da47016812598be384212ce15793496c0ec2176a87e81c6432dae964f87c9870247304402205dfb4fcf67b12cf0fc3a1f3527bc37964c1604fb7ac11df2fd80b2bde605689d02203bbd1bcf5f92a6cd31c9459c9252d84fcd102fdfc8e367360e71ef047c704015012103d034f788f410c2ec2d89d161df3c3715f965248aa53eace463d10eca443eb1f20247304402203b12894f094c85c94bf7a898ddfe8d82359486aedb56b0891e5db83fee628dff0220478b954fd0514de5ff0d3273ed93d54f87e7d90e63f2d4b478a9a7669af2e1110121028a599168d3c97debc71bc66e6270ecf054f300d888309ba05471a482175dd9300140508f9706e9d6353d0a19a9128353fc8090948de09ee79afc35ae10c17ab0f894ec04eabf9187082bd31d3b63e9e52d99cbaef4c1f79dd6121024a7d3b4d994ec014054bdc1bab81661fd3ad8c0a65402abf2c2228da8f2150b6ce0cb8fddafd4c25a0318cc16cdbf72c5142dd6bbccb606cc7c2c39f91a218309dc5dadb7a74fe56b024730440220203ba0cc960cb70555e2096ecba5a5992b6b35ff621f736625360f836d208ce202207fa53d5ac33847fc166e03d888ef27c709dc65bfb79ece85d9d93bdda62c0ca501210267f4468ffafe6f919ae871f57f09690467f494e83e0358dc64d10472f9072f4c9b000000", - "txid": "9c3d4a6491eaa04c378101a7a7836f07409d04db8295b14930f89f7562744e18", + "tx": "02000000000101multif50000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000500005000050000", + "txid": "channeltxid01050000500005000050000500005000050000500005000050000", "channel_ids": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel_id": "a9c39915cfa357205e3597ec62d92c541a2be7f44b9c6292e126aeddb11bf97e", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel_id": "channelid1100011000110001100011000110001100011000110001100011000", "channel_type": { "bits": [ 12, @@ -379,8 +379,8 @@ "outnum": 1 }, { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "channel_id": "a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", + "channel_id": "channelid1200012000120001200012000120001200012000120001200012000", "channel_type": { "bits": [ 12, @@ -391,11 +391,11 @@ "anchors/even" ] }, - "outnum": 2 + "outnum": 1 }, { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", - "channel_id": "e13472d6512413eb1bf03b9a0bb391d0e4152fd337fa6d1014e3de5e131918d9", + "id": "nodeid050505050505050505050505050505050505050505050505050505050505", + "channel_id": "channelid1300013000130001300013000130001300013000130001300013000", "channel_type": { "bits": [ 12, @@ -406,7 +406,7 @@ "anchors/even" ] }, - "outnum": 0 + "outnum": 1 } ], "failed": [] @@ -419,15 +419,15 @@ "params": { "destinations": [ { - "id": "03a389b3a2f7aa6f9f4ccc19f2bd7a2eba83596699e86b715caaaa147fc37f3144@127.0.0.1:34785", + "id": "fakenodeid03030303030303030303030303030303030303030303030303030303@127.0.0.1:19736", "amount": 50000 }, { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199@127.0.0.1:46213", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404@127.0.0.1:19737", "amount": 50000 }, { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518@127.0.0.1:39877", + "id": "nodeid010101010101010101010101010101010101010101010101010101010101@127.0.0.1:19734", "amount": 50000 } ], @@ -435,12 +435,12 @@ } }, "response": { - "tx": "0200000000010289da71f14f2e28c351f3f2cea6c9008fbf316cd353f6a084a17851afd37e5be70000000000fdffffffdcb684b96d9a2a37ef441c5eca75d15ef35ca8e16a6df21dca5fb6558400ca840000000000fdffffff022610250700000000225120def24e878a66b695c4d5b414b42b7ce94471dac985bb0afb0367e8bbb92c5a5250c30000000000002200209bd3269fda069b7ee0584622d458bb437635b3a179265dee3843ef18f42f35c601404a5e8638f6961d1c42609a5497346af9ba4cffb7f44cc8869c7e158627a8bb35884652fe1927d0b1917e9c22328339c33adedf93a7c86d90edba49eef4d949f301400373733215aeb64ca95e21b16be5772d3ad2ba7fa92faf842eeffab2c5741a66076cd1fb8af1c6c65456eeaf05f9ac80ce5502ae3ff88c40b632d8785bcd63799c000000", - "txid": "313dc9366eeab30a094fb85297673187cfb93aec0ec8610215f75d129d7c06e9", + "tx": "02000000000102multif60000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000", + "txid": "channeltxid02060000600006000060000600006000060000600006000060000", "channel_ids": [ { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "channel_id": "09eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", + "channel_id": "channelid1520015200152001520015200152001520015200152001520015200", "channel_type": { "bits": [ 12, @@ -460,11 +460,11 @@ "method": "connect", "error": { "code": 401, - "message": "All addresses failed: 127.0.0.1:34785: Cryptographic handshake: peer closed connection (wrong key?). " + "message": "All addresses failed: 127.0.0.1:19736: Cryptographic handshake: peer closed connection (wrong key?). " } }, { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "id": "nodeid010101010101010101010101010101010101010101010101010101010101", "method": "connect", "error": { "code": 402, diff --git a/doc/schemas/lightning-multiwithdraw.json b/doc/schemas/lightning-multiwithdraw.json index 1bc7a1ffb27a..ee5507f06236 100644 --- a/doc/schemas/lightning-multiwithdraw.json +++ b/doc/schemas/lightning-multiwithdraw.json @@ -103,8 +103,8 @@ } }, "response": { - "tx": "02000000000101057342aca7062873a4edd5a673980757885e5da8f68de3af254fe7c26d46e0700000000000fdffffff03df420700000000002251202b5dd0613b6e534f572dbcf4311b66e6cc8bb07e285928ddb6fa5791e4737874ae080000000000001600143d43d226bcc27019ade52d7a3dc52a7ac1be28b8050d000000000000160014d55c493983db651e10477455b1d408c31e7e9e310140beb27b31860b45464367b0f08334a0c90f3409ad176b9e21a35079495d6ce3dee0bbed786225ae56f59294466c9a14daf983375486dccaad7df3a7bc56b03faa87000000", - "txid": "85065cf7d607936190df447cbff6963c8facf404c1f7f594307afe07fc56edfe" + "tx": "02000000000155multiw55000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000", + "txid": "txid5500055000550005500055000550005500055000550005500055000" } }, { @@ -138,8 +138,8 @@ } }, "response": { - "tx": "02000000000101b621d886a10f33d5ad58c163a35cddf03bd435e3ed100f14af3fcdac1a7dff510100000000fdffffff08e803000000000000160014dfadaae18d57e4ef50e15b863d9e648bf9af67b1e8030000000000002251200978ea47f31ad6561d96ceee14e85192726536c4e1e59d09f217f3b5762b0630b53e1e000000000022512000dea9b3b059044ed411fe24d7bff4d1b3bbdd09a16034a096a4b175f7f5ac0fe80300000000000016001407905c6189c1ae8aff12566b03f35ff516d17e84e803000000000000160014a43b821a9790f880e113a395b717a0f354b9d9c6e80300000000000016001483bad0f86037b6f1194b4a6e2d813d9c1a30a730e803000000000000160014d1dc90a7bb3af91ed69e933dc38f555b580fad09e8030000000000002251202f843ba0c8de9d0c41a63a25d4cab22032be4fabf24931dab82214316be218ca0247304402203c885a48d44614905673678d31e1c6a42af612ca6cd20d65a2e81670cd11bf8a0220738dc66ca4c1c1d466d6195ddaaf7b0c98a60769b782c282ad1f9db30bb9784201210330a75acaed258be6bc02da9fab058abbe0e770caceb7c6496eaaea7014c3d39b87000000", - "txid": "80ecf60402207eca627f4af7df93841b7430c546e73ae2467ad592721b8d7f18" + "tx": "02000000000155multiw56000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000", + "txid": "txid5600056000560005600056000560005600056000560005600056000" } } ] diff --git a/doc/schemas/lightning-offer.json b/doc/schemas/lightning-offer.json index 3d2a8a731332..2921f68fdf40 100644 --- a/doc/schemas/lightning-offer.json +++ b/doc/schemas/lightning-offer.json @@ -187,10 +187,10 @@ } }, "response": { - "offer_id": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e", + "offer_id": "offeridl21000002100000210000021000002100000210000021000002100000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqgn3qzs2ge5hx6pqwdskcefpzcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "used": false, "created": true } @@ -206,10 +206,10 @@ } }, "response": { - "offer_id": "f901018768e13ea2da95f437749e24d22d47b2a6ea3030ef66ae0281df49d94b", + "offer_id": "offeridl22000002200000220000022000002200000220000022000002200000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv85ysq2qepk7enxv4j3gqg2zcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000bolt220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000", "used": false, "created": true } diff --git a/doc/schemas/lightning-openchannel_abort.json b/doc/schemas/lightning-openchannel_abort.json index 56497c824fc5..631dc28dac25 100644 --- a/doc/schemas/lightning-openchannel_abort.json +++ b/doc/schemas/lightning-openchannel_abort.json @@ -80,11 +80,11 @@ "id": "example:openchannel_abort#1", "method": "openchannel_abort", "params": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5" + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200" } }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", "channel_canceled": false, "reason": "Abort requested" } diff --git a/doc/schemas/lightning-openchannel_bump.json b/doc/schemas/lightning-openchannel_bump.json index 02ed873e79f5..a4d8402b3a97 100644 --- a/doc/schemas/lightning-openchannel_bump.json +++ b/doc/schemas/lightning-openchannel_bump.json @@ -178,13 +178,13 @@ "params": [ "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", 1000000, - "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AUFZ3AsAAAAAIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUreYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000", "15000perkw" ] }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEITP+kZdFBsOIAAQMIQEIPAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQg8VGAuu93kPAABAwhBWdwLAAAAAAEEIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUrcM/AlsaWdodG5pbmcBCJhXLSQQ2IEcAA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000810000", "channel_type": { "bits": [ 12, @@ -196,7 +196,7 @@ ] }, "commitments_secured": false, - "funding_serial": 4347205294156014600, + "funding_serial": 17725655605188030000, "requires_confirmed_inputs": false } }, @@ -205,15 +205,15 @@ "id": "example:openchannel_bump#2", "method": "openchannel_bump", "params": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", "amount": 1000000, - "initialpsbt": "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AUFZ3AsAAAAAIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUreYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "initialpsbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000", "funding_feerate": "15000perkw" } }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIQCsNB0i02NIAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3DPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000", "channel_type": { "bits": [ 12, @@ -225,7 +225,7 @@ ] }, "commitments_secured": false, - "funding_serial": 10324133783552127000, + "funding_serial": 17725655605188040000, "requires_confirmed_inputs": false } }, @@ -236,13 +236,13 @@ "params": [ "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", 2000000, - "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AWINzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000", "18750perkw" ] }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIwRR1uu1r8GoAAQMIgIQeAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQjdRD+FoUsRIAABAwhiDc0LAAAAAAEEIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2gM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000", "channel_type": { "bits": [ 12, @@ -254,7 +254,7 @@ ] }, "commitments_secured": false, - "funding_serial": 15943938423967650000, + "funding_serial": 17725655605188050000, "requires_confirmed_inputs": false } } diff --git a/doc/schemas/lightning-openchannel_init.json b/doc/schemas/lightning-openchannel_init.json index 2fcc4caf31cc..fc698f920b70 100644 --- a/doc/schemas/lightning-openchannel_init.json +++ b/doc/schemas/lightning-openchannel_init.json @@ -218,14 +218,14 @@ "id": "example:openchannel_init#1", "method": "openchannel_init", "params": { - "id": "03a00f49374e4bb876e766e9305e5fefa86e53dbc89a4f27d794b02f59ca316426", + "id": "nodeid121212121212121212121212121212121212121212121212121212121212", "amount": 1000000, - "initialpsbt": "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AahhAAAAAAAAIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+GZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" + "initialpsbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000" } }, "response": { "channel_id": "a5be438539f73c018a98a4b9dd557d62430881c56552025b5579d180cc3887ed", - "psbt": "cHNidP8BAgQCAAAAAQMEmQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAGzBTzTCENk6ggdL+V/LHCYeHlRIcHBtyNYdon39dT7vwEAAAAA/f///wKAhB4AAAAAACIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aJgAAAABAStiDc0LAAAAACJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oAQ4gmJB/+YSzg1wUV8PgrzFq46BKlvP/F562hdVYA8IjSHoBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEI/+im2BTLcnwAAQMIqGEAAAAAAAABBCJRIPt3fY6TZitIHrcoOVvjKd9QjyEQynCYP5mbP7mla0PhDPwJbGlnaHRuaW5nAQhfx1o3nKFaVgABAwhAQg8AAAAAAAEEIgAgBkixRgS2irzkjzD4bs/Wm7V/PQFNNgUvPR5aBVpSJHoM/AlsaWdodG5pbmcBCHHI3g73GwAQAA==", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000610000", "channel_type": { "bits": [ 12, @@ -237,7 +237,7 @@ ] }, "commitments_secured": false, - "funding_serial": 8199047277484638000, + "funding_serial": 17725655605188010000, "requires_confirmed_inputs": false } }, @@ -246,14 +246,14 @@ "id": "example:openchannel_init#2", "method": "openchannel_init", "params": [ - "03a00f49374e4bb876e766e9305e5fefa86e53dbc89a4f27d794b02f59ca316426", + "nodeid121212121212121212121212121212121212121212121212121212121212", 500000, - "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE+ZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000" ] }, "response": { "channel_id": "b3b2e46371876858784cd1b87ecf406e32d8f98b7a44b7f436d1dca317ce0f1b", - "psbt": "cHNidP8BAgQCAAAAAQMEmQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAGzBTzTCENk6ggdL+V/LHCYeHlRIcHBtyNYdon39dT7vwEAAAAA/f///wKAhB4AAAAAACIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aJgAAAABAStiDc0LAAAAACJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oAQ4gmJB/+YSzg1wUV8PgrzFq46BKlvP/F562hdVYA8IjSHoBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEILfzCFE4M1pQAAQMIIKEHAAAAAAABBCIAIMG0H4vceOuMkzqvG9svQmglTygLSd9kn0qrQFRmpEvIDPwJbGlnaHRuaW5nAQhU+Hu3eGH5tgABAwj2UcULAAAAAAEEIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE8M/AlsaWdodG5pbmcBCG0sGEoFgVYuAA==", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000710000", "channel_type": { "bits": [ 12, @@ -265,7 +265,7 @@ ] }, "commitments_secured": false, - "funding_serial": 6122779721339107000, + "funding_serial": 17725655605188020000, "requires_confirmed_inputs": false } } diff --git a/doc/schemas/lightning-openchannel_signed.json b/doc/schemas/lightning-openchannel_signed.json index fe11cc585b1b..826a0313d065 100644 --- a/doc/schemas/lightning-openchannel_signed.json +++ b/doc/schemas/lightning-openchannel_signed.json @@ -93,14 +93,14 @@ "id": "example:openchannel_signed#1", "method": "openchannel_signed", "params": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "signed_psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIHlCL2oKhnYn6hhaUG8+V+8D6GHFlI61OM507VB6aBwoAiACA2d5TnCdlJ1j2rF/EIHkxl3W0hBp3QqweO7hEul9aQEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOILMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCEArDQdItNjSAAEDCEFZ3AsAAAAAAQQiUSA74Tflo81LdhBFqIwHKNMkNRg28E7Vnf2jebjYRkZStyEHE0cioCqqq2UZ2npxQi9Q6DXNZheODM6F4GjHHS3XScEJAG/ctUwEAAAADPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==" + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "signed_psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000" } }, "response": { - "tx": "02000000000101b3053cd3084364ea081d2fe57f2c709878795121c1c1b723587689f7f5d4fbbf0100000000fdffffff024159dc0b000000002251203be137e5a3cd4b761045a88c0728d324351836f04ed59dfda379b8d8464652b740420f0000000000220020c9bc5c063caefbf7a6c7814407b5627b4f81a8b56ecbe932c682f9cbac0d19df02473044022079422f6a0a867627ea185a506f3e57ef03e861c5948eb538ce74ed507a681c280220020367794e709d949d63dab17f1081e4c65dd6d21069dd0ab078eee112e97d69012102473d79cf4a10e7ba834c026aac43ea18b0a7fb75ecda5184bfafa8c46615f6b798000000", - "txid": "ed994900569f2fddca6d86675f2e2247000197ee69aa53348e63e16fbaf39409", - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5" + "tx": "02000000000101sgpsbt11000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000", + "txid": "txidocsigned1011000110001100011000110001100011000110001100011000", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200" } }, { @@ -109,13 +109,13 @@ "method": "openchannel_signed", "params": [ "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIA8+zCzZ59t2OEFHWefZeTypY89RRQ8dMQCjtGWw6gskAiArELH1MvjW6j1G1CKnLZdV+/oabLDU48ingGSPFDOYxwEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOILMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCMEUdbrta/BqAAEDCICEHgAAAAAAAQQiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z3wz8CWxpZ2h0bmluZwEI3UQ/haFLESAAAQMIYg3NCwAAAAABBCJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oIQeffk+gJsmVIxDZ8UKPKgJB9CLvaUr9xqOEogpzJx1hbAkAEioNzwUAAAAM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000" ] }, "response": { - "tx": "02000000000101b3053cd3084364ea081d2fe57f2c709878795121c1c1b723587689f7f5d4fbbf0100000000fdffffff0280841e0000000000220020c9bc5c063caefbf7a6c7814407b5627b4f81a8b56ecbe932c682f9cbac0d19df620dcd0b00000000225120c9183ede9121f3c6fd1498822c47a760273227669c909508843bac5bbd813f680247304402200f3ecc2cd9e7db7638414759e7d9793ca963cf51450f1d3100a3b465b0ea0b2402202b10b1f532f8d6ea3d46d422a72d9755fbfa1a6cb0d4e3c8a780648f143398c7012102473d79cf4a10e7ba834c026aac43ea18b0a7fb75ecda5184bfafa8c46615f6b798000000", - "txid": "7a4823c20358d585b69e17fff3964aa0e36a31afe0c357145c83b384f97f9098", - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5" + "tx": "02000000000101sgpsbt12000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000120001200012000", + "txid": "txidocsigned1012000120001200012000120001200012000120001200012000", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200" } } ] diff --git a/doc/schemas/lightning-openchannel_update.json b/doc/schemas/lightning-openchannel_update.json index 0ca4e10e4c05..1a895ea32b2b 100644 --- a/doc/schemas/lightning-openchannel_update.json +++ b/doc/schemas/lightning-openchannel_update.json @@ -209,13 +209,13 @@ "id": "example:openchannel_update#1", "method": "openchannel_update", "params": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIQCsNB0i02NIAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3DPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==" + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000" } }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIQCsNB0i02NIAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3DPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000", "channel_type": { "bits": [ 12, @@ -237,12 +237,12 @@ "method": "openchannel_update", "params": [ "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIwRR1uu1r8GoAAQMIgIQeAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQjdRD+FoUsRIAABAwhiDc0LAAAAAAEEIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2gM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000" ] }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIwRR1uu1r8GoAAQMIgIQeAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQjdRD+FoUsRIAABAwhiDc0LAAAAAAEEIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2gM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000", "channel_type": { "bits": [ 12, @@ -254,7 +254,7 @@ ] }, "commitments_secured": true, - "funding_outnum": 0, + "funding_outnum": 1, "close_to": "51202321a432c9022a560c7dae78bdb72c605c373961edd29c42aa98c183782d052a" } } diff --git a/doc/schemas/lightning-pay.json b/doc/schemas/lightning-pay.json index c8e1de1aa9ee..bf47e423f4ab 100644 --- a/doc/schemas/lightning-pay.json +++ b/doc/schemas/lightning-pay.json @@ -243,17 +243,17 @@ "id": "example:pay#1", "method": "pay", "params": [ - "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll" + "lnbcrt100n1pnt2bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000" ] }, "response": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "created_at": 1722303686.2193663, + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "payment_hash": "paymenthashinvl0320032003200320032003200320032003200320032003200", + "created_at": 1738000000, "parts": 1, "amount_msat": 50000, "amount_sent_msat": 50001, - "payment_preimage": "0e07efd883f66b6b22ec7f2e7116e203c3fecc22eb8596a73eaf06c4befb0641", + "payment_preimage": "paymentpreimagep010101010101010101010101010101010101010101010101", "status": "complete" } }, @@ -262,17 +262,17 @@ "id": "example:pay#2", "method": "pay", "params": { - "bolt11": "lnbcrt1u1pn2s3xxsp5xk8hs6zuv0yqhq7hhl0sps6mxuj78pzwryejaljh48vr4htykujqpp593ndc8wrukteld5j4nqnt6tedavh8ezv48dmrkqen3440ajnre5qdqcdsenxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq0asve9rdtfd9fe20u5vjujzmm0phpq538z8ndhn5ts62aflhktqn6338e45xcxkyf7askjjq25ksxt4eqarjjame8wfdmau7kq7m4csqs0n32n" + "bolt11": "lnbcrt100n1pnt2bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000bolt11invl030300000000" } }, "response": { - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68", - "created_at": 1722303688.41859, + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "payment_hash": "paymenthashinvl0330033003300330033003300330033003300330033003300", + "created_at": 1738000000, "parts": 1, "amount_msat": 100000, "amount_sent_msat": 100000, - "payment_preimage": "1ce8370d3a179cee3af25a5a6c7058e8e12033a842efd6d34abae53334bc94bf", + "payment_preimage": "paymentpreimagep020202020202020202020202020202020202020202020202", "status": "complete" } } diff --git a/doc/schemas/lightning-ping.json b/doc/schemas/lightning-ping.json index 9c28e7578f24..c30dc96b0f5f 100644 --- a/doc/schemas/lightning-ping.json +++ b/doc/schemas/lightning-ping.json @@ -68,7 +68,7 @@ "id": "example:ping#1", "method": "ping", "params": { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "id": "nodeid010101010101010101010101010101010101010101010101010101010101", "len": 128, "pongbytes": 128 } @@ -82,7 +82,7 @@ "id": "example:ping#2", "method": "ping", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "len": 1000, "pongbytes": 65535 } diff --git a/doc/schemas/lightning-plugin.json b/doc/schemas/lightning-plugin.json index 9861f8390d57..219ec59dab3d 100644 --- a/doc/schemas/lightning-plugin.json +++ b/doc/schemas/lightning-plugin.json @@ -243,6 +243,11 @@ "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/recklessrpc", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/recover", "active": true, @@ -263,6 +268,11 @@ "active": true, "dynamic": false }, + { + "name": "/root/lightning/plugins/cln-askrene", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/sql", "active": true, @@ -351,6 +361,11 @@ "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/recklessrpc", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/recover", "active": true, @@ -371,6 +386,11 @@ "active": true, "dynamic": false }, + { + "name": "/root/lightning/plugins/cln-askrene", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/sql", "active": true, diff --git a/doc/schemas/lightning-preapproveinvoice.json b/doc/schemas/lightning-preapproveinvoice.json index fda80038ddfc..3f05c92be4f4 100644 --- a/doc/schemas/lightning-preapproveinvoice.json +++ b/doc/schemas/lightning-preapproveinvoice.json @@ -48,7 +48,7 @@ "id": "example:preapproveinvoice#1", "method": "preapproveinvoice", "params": { - "bolt11": "lnbcrt1230n1pn2s38psp5jf2zk7py4wmutyq4pdr6783egft24nkyhfrxegrzzqnef2matw2qpp5rf5zgqyexdt7q5ean83cvcjuc3jafn8etm3c0za6xldwcyllvffqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydqcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq8nn5qkcp9xl5u7dlqamdys6e6yc0ngyqe676cqajnwax6657verj7at5gvdqu6nk3l0wcagq4muyhqqms4t0t9sfvyazpga5eywj6uqpyc409e" + "bolt11": "lnbcrt100n1pnt2bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000" } }, "response": {} @@ -58,7 +58,7 @@ "id": "example:preapproveinvoice#2", "method": "preapproveinvoice", "params": [ - "lnbcrt1240n1pn2s38psp5ufjqj6kuxlvl65xue9p06ulyvwf9sm0utxlch59d0ynl05778vwspp5qlacxkrdmc2p50yl8lsl75pwmlhve2ret2yd2f34z7jfs7yffwvqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydgcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqkml60qaytvnd08p57w7enuna95s7cqej8cfuvsgjzpeq9u83s0hqh60667nrp40qkqxkdu36z8wqtmac5z3208rwyn0q2pv56sgz5dcp9mn5hc" + "lnbcrt100n1pnt2bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000" ] }, "response": {} diff --git a/doc/schemas/lightning-preapprovekeysend.json b/doc/schemas/lightning-preapprovekeysend.json index 165ba2b800ec..271d1d32c6df 100644 --- a/doc/schemas/lightning-preapprovekeysend.json +++ b/doc/schemas/lightning-preapprovekeysend.json @@ -66,7 +66,7 @@ "id": "example:preapprovekeysend#1", "method": "preapprovekeysend", "params": { - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", "payment_hash": "0000000000000000000000000000000000000000000000000000000000000000", "amount_msat": 1000 } @@ -78,7 +78,7 @@ "id": "example:preapprovekeysend#2", "method": "preapprovekeysend", "params": [ - "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", + "nodeid050505050505050505050505050505050505050505050505050505050505", "0101010101010101010101010101010101010101010101010101010101010101", 2000 ] diff --git a/doc/schemas/lightning-reckless.json b/doc/schemas/lightning-reckless.json index 51075f5ee824..78354e9b561e 100644 --- a/doc/schemas/lightning-reckless.json +++ b/doc/schemas/lightning-reckless.json @@ -101,7 +101,7 @@ "method": "reckless", "params": { "command": "search", - "target/subcommand": "backup" + "target/subcommand": "testplugpyproj" } }, "response": { @@ -110,11 +110,9 @@ ], "log": [ "DEBUG: Warning: Reckless requires write access", - "DEBUG: fetching from gh API: https://github.com/repos/lightningd/plugins/contents/", - "DEBUG: fetching from gh API: https://github.com/repos/lightningd/plugins/git/trees/294f93d7060799439c994daa84f534c4d1458325", - "INFO: found backup in source: https://github.com/lightningd/plugins", + "INFO: found testplugpass in source: https://github.com/lightningd/plugins", "DEBUG: entry: None", - "DEBUG: sub-directory: backup" + "DEBUG: sub-directory: testplugpass" ] } }, @@ -125,65 +123,64 @@ "params": { "command": "install", "target/subcommand": [ - "summars", - "currecyrate" + "testplugpass@v1", + "testplugpyproj" ] } }, "response": { "result": [ - "/tmp/l1/reckless/summars", - "/tmp/l1/reckless/currencyrate" + "/tmp/.lightning/reckless/testplugpass", + "/tmp/.lightning/reckless/testplugpyproj" ], "log": [ - "DEBUG: Searching for summars", - "DEBUG: fetching from gh API: https://github.com/repos/lightningd/plugins/contents/", - "DEBUG: fetching from gh API: https://github.com/repos/lightningd/plugins/git/trees/294f93d7060799439c994daa84f534c4d1458325", - "INFO: found summars in source: https://github.com/lightningd/plugins", + "DEBUG: testing for a commit/tag in plugin name", + "DEBUG: Searching for testplugpass", + "INFO: found testplugpass in source: https://github.com/lightningd/plugins", "DEBUG: entry: None", - "DEBUG: sub-directory: summars", - "DEBUG: Retrieving summars from https://github.com/lightningd/plugins", - "DEBUG: Install requested from InstInfo(summars, https://github.com/lightningd/plugins, None, None, None, summars).", - "INFO: cloning Source.GITHUB_REPO InstInfo(summars, https://github.com/lightningd/plugins, None, None, None, summars)", - "DEBUG: cloned_src: InstInfo(summars, /tmp/reckless-726255950dyifh_fh/clone, None, Cargo.toml, Cargo.toml, summars/summars)", - "DEBUG: using latest commit of default branch", - "DEBUG: checked out HEAD: 5e449468bd57db7d0f33178fe0dc867e0da94133", - "DEBUG: using installer rust", - "DEBUG: creating /tmp/l1/reckless/summars", - "DEBUG: creating /tmp/l1/reckless/summars/source", - "DEBUG: copying /tmp/reckless-726255950dyifh_fh/clone/summars/summars tree to /tmp/l1/reckless/summars/source/summars", - "DEBUG: linking source /tmp/l1/reckless/summars/source/summars/Cargo.toml to /tmp/l1/reckless/summars/Cargo.toml", - "DEBUG: InstInfo(summars, /tmp/l1/reckless/summars, None, Cargo.toml, Cargo.toml, source/summars)", - "DEBUG: cargo installing from /tmp/l1/reckless/summars/source/summars", - "DEBUG: rust project compiled successfully", - "INFO: plugin installed: /tmp/l1/reckless/summars", - "DEBUG: activating summars", - "INFO: summars enabled", - "DEBUG: Searching for currencyrate", - "DEBUG: fetching from gh API: https://github.com/repos/lightningd/plugins/contents/", - "DEBUG: fetching from gh API: https://github.com/repos/lightningd/plugins/git/trees/294f93d7060799439c994daa84f534c4d1458325", - "INFO: found currencyrate in source: https://github.com/lightningd/plugins", + "DEBUG: sub-directory: testplugpass", + "DEBUG: Retrieving testplugpass from https://github.com/lightningd/plugins", + "DEBUG: Install requested from InstInfo(testplugpass, https://github.com/lightningd/plugins, None, None, None, testplugpass).", + "INFO: cloning Source.GITHUB_REPO InstInfo(testplugpass, https://github.com/lightningd/plugins, None, None, None, testplugpass)", + "DEBUG: cloned_src: InstInfo(testplugpass, /tmp/reckless-0123456789abcdefg/clone, None, testplugpass.py, requirements.txt, testplugpass/testplugpass)", + "DEBUG: Checking out v1", + "DEBUG: checked out HEAD: 012abc345def678ghi901jkl234mno567pqr89st", + "DEBUG: using installer python3venv", + "DEBUG: creating /tmp/.lightning/reckless/testplugpass", + "DEBUG: creating /tmp/.lightning/reckless/testplugpass/source", + "DEBUG: copying /tmp/reckless-0123456789abcdefg/clone/testplugpass/testplugpass tree to /tmp/.lightning/reckless/testplugpass/source/testplugpass", + "DEBUG: linking source /tmp/.lightning/reckless/testplugpass/source/testplugpass/testplugpass.py to /tmp/.lightning/reckless/testplugpass/testplugpass.py", + "DEBUG: InstInfo(testplugpass, /tmp/.lightning/reckless/testplugpass, None, testplugpass.py, requirements.txt, source/testplugpass)", + "DEBUG: configuring a python virtual environment (pip) in /tmp/.lightning/reckless/testplugpass/.venv", + "DEBUG: virtual environment created in /tmp/.lightning/reckless/testplugpass/.venv.", + "INFO: dependencies installed successfully", + "DEBUG: virtual environment for cloned plugin: .venv", + "INFO: plugin installed: /tmp/.lightning/reckless/testplugpass", + "DEBUG: activating testplugpass", + "INFO: testplugpass enabled", + "DEBUG: Searching for testplugpyproj", + "INFO: found testplugpyproj in source: https://github.com/lightningd/plugins", "DEBUG: entry: None", - "DEBUG: sub-directory: currencyrate", - "DEBUG: Retrieving currencyrate from https://github.com/lightningd/plugins", - "DEBUG: Install requested from InstInfo(currencyrate, https://github.com/lightningd/plugins, None, None, None, currencyrate).", - "INFO: cloning Source.GITHUB_REPO InstInfo(currencyrate, https://github.com/lightningd/plugins, None, None, None, currencyrate)", - "DEBUG: cloned_src: InstInfo(currencyrate, /tmp/reckless-192564272t478naxn/clone, None, currencyrate.py, requirements.txt, currencyrate/currencyrate)", + "DEBUG: sub-directory: testplugpyproj", + "DEBUG: Retrieving testplugpyproj from https://github.com/lightningd/plugins", + "DEBUG: Install requested from InstInfo(testplugpyproj, https://github.com/lightningd/plugins, None, None, None, testplugpyproj).", + "INFO: cloning Source.GITHUB_REPO InstInfo(testplugpyproj, https://github.com/lightningd/plugins, None, None, None, testplugpyproj)", + "DEBUG: missing dependency for InstInfo(testplugpyproj, /tmp/reckless-0123456789abcdefg/clone, None, None, None, None)", + "DEBUG: cloned_src: InstInfo(testplugpyproj, /tmp/reckless-0123456789abcdefg/clone, None, testplugpyproj.py, pyproject.toml, testplugpyproj/testplugpyproj)", "DEBUG: using latest commit of default branch", - "DEBUG: checked out HEAD: 5e449468bd57db7d0f33178fe0dc867e0da94133", - "DEBUG: using installer python3venv", - "DEBUG: creating /tmp/l1/reckless/currencyrate", - "DEBUG: creating /tmp/l1/reckless/currencyrate/source", - "DEBUG: copying /tmp/reckless-192564272t478naxn/clone/currencyrate/currencyrate tree to /tmp/l1/reckless/currencyrate/source/currencyrate", - "DEBUG: linking source /tmp/l1/reckless/currencyrate/source/currencyrate/currencyrate.py to /tmp/l1/reckless/currencyrate/currencyrate.py", - "DEBUG: InstInfo(currencyrate, /tmp/l1/reckless/currencyrate, None, currencyrate.py, requirements.txt, source/currencyrate)", - "DEBUG: configuring a python virtual environment (pip) in /tmp/l1/reckless/currencyrate/.venv", - "DEBUG: virtual environment created in /tmp/l1/reckless/currencyrate/.venv.", + "DEBUG: checked out HEAD: 012abc345def678ghi901jkl234mno567pqr89st", + "DEBUG: using installer poetryvenv", + "DEBUG: creating /tmp/.lightning/reckless/testplugpyproj", + "DEBUG: creating /tmp/.lightning/reckless/testplugpyproj/source", + "DEBUG: copying /tmp/reckless-0123456789abcdefg/clone/testplugpyproj/testplugpyproj tree to /tmp/.lightning/reckless/testplugpyproj/source/testplugpyproj", + "DEBUG: linking source /tmp/.lightning/reckless/testplugpyproj/source/testplugpyproj/testplugpyproj.py to /tmp/.lightning/reckless/testplugpyproj/testplugpyproj.py", + "DEBUG: InstInfo(testplugpyproj, /tmp/.lightning/reckless/testplugpyproj, None, testplugpyproj.py, pyproject.toml, source/testplugpyproj)", + "DEBUG: configuring a python virtual environment (poetry) in /tmp/.lightning/reckless/testplugpyproj/.venv", "INFO: dependencies installed successfully", "DEBUG: virtual environment for cloned plugin: .venv", - "INFO: plugin installed: /tmp/l1/reckless/currencyrate", - "DEBUG: activating currencyrate", - "INFO: currencyrate enabled" + "INFO: plugin installed: /tmp/.lightning/reckless/testplugpyproj", + "DEBUG: activating testplugpyproj", + "DEBUG: testplugpyproj is already running" ] } } diff --git a/doc/schemas/lightning-recoverchannel.json b/doc/schemas/lightning-recoverchannel.json index 6ab6cf3272ac..01b120f54b94 100644 --- a/doc/schemas/lightning-recoverchannel.json +++ b/doc/schemas/lightning-recoverchannel.json @@ -55,25 +55,25 @@ "request": { "id": "example:recoverchannel#1", "method": "recoverchannel", - "params": [ - [ - "0000000000000006f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5900017f0000019b987577c455da982b1753df79c56f9d8d2b75d1401e60a5af322ab27b13b20d75970000000100000000000f42400003401000", - "000000000000000121bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610e23fcc9e6306ce636b203217b22409bf9bab2211f9f432de781dedb6377dab5a0000000100000000000f42400003401000", - "00000000000000027512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610ee1db407eb3e47be3e93e1abc05b13806ee7aef8550c517a4974c72bf91866410000000100000000000f42400003401000", - "0000000000000003222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f0000019bc5b15661ec5c17599de0858401b72d6be66c34b48a3bb6e679542809f395e6bb2000000000000000000bebb3cb0003401000", - "0000000000000004a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ac184e7462759ff83049b19582db049d40076f83a7a70181374ca0ea91644a3d9c0000000200000000000075300003401000", - "000000000000000509eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ace9067c9d125df7150261c80eec3ab9cf8731679752b84f090ab3ea6e36c93d3100000001000000000000c3500003401000" + "params": { + "scb": [ + "0000000000000001channelid0340000340000340000340000340000340000340000340000340000nodeid03030303030303030303030303030303030303030303030303030303030300017f000001034003400340034003400340034003400340034003400340034003400340034003400340034003400340034003400003401000", + "0000000000000002channelid0340200340200340200340200340200340200340200340200340200nodeid03030303030303030303030303030303030303030303030303030303030300017f000001034203420342034203420342034203420342034203420342034203420342034203420342034203420342034203420003401000", + "0000000000000003channelid0410000410000410000410000410000410000410000410000410000nodeid01010101010101010101010101010101010101010101010101010101010100017f000001041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100003401000", + "0000000000000004channelid0120000120000120000120000120000120000120000120000120000nodeid01010101010101010101010101010101010101010101010101010101010100017f000001012001200120012001200120012001200120012001200120012001200120012001200120012001200120012001200003401000", + "0000000000000005channelid1520015200152001520015200152001520015200152001520015200nodeid01010101010101010101010101010101010101010101010101010101010100017f000001015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520003401000", + "0000000000000006channelid1240012400124001240012400124001240012400124001240012400nodeid02020202020202020202020202020202020202020202020202020202020200017f000001012401240124012401240124012401240124012401240124012401240124012401240124012401240124012401240003401000" ] - ] + } }, "response": { "stubs": [ - "f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb", + "09eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a", "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", "222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa", + "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", "a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a", - "09eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a" + "f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb" ] } } diff --git a/doc/schemas/lightning-renepay.json b/doc/schemas/lightning-renepay.json index 3d4db497d0fe..0f0b1ab20f11 100644 --- a/doc/schemas/lightning-renepay.json +++ b/doc/schemas/lightning-renepay.json @@ -198,20 +198,20 @@ "id": "example:renepay#1", "method": "renepay", "params": { - "invstring": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", + "invstring": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", "amount_msat": 400000 } }, "response": { - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", + "bolt11": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", "amount_msat": 400000, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "created_at": 1722303718.0730329, + "payment_hash": "paymenthashinvl0210021002100210021002100210021002100210021002100", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", + "created_at": 1738000000, "groupid": 1, "parts": 2, "status": "complete", - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", + "payment_preimage": "paymentpreimager010101010101010101010101010101010101010101010101", "amount_sent_msat": 400000 } }, @@ -220,19 +220,19 @@ "id": "example:renepay#2", "method": "renepay", "params": { - "invstring": "lnbcrt40n1pn2s3xxsp5j329vez86jvxw6543zlcla2fusm7v6h74pf7ftmmyfv6zm9uedlspp5j6xpxmq8cwd305vj2dvd6dh4mkr0s6guvehvyleymedgf4vsm3ysdqaveskjmr9vssxgetnvdexjur5d9hkuxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqk6uwy8pkv42jzhdna3z4vxpwkapdzzpn2tcpjnqj738nlpkjc583l9v72vlskt8y33rr4z3jma32xx7ve0jfy7anvn6r98cr5flhcuqqhr4shx" + "invstring": "lnbcrt100n1pnt2bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000" } }, "response": { - "bolt11": "lnbcrt40n1pn2s3xxsp5j329vez86jvxw6543zlcla2fusm7v6h74pf7ftmmyfv6zm9uedlspp5j6xpxmq8cwd305vj2dvd6dh4mkr0s6guvehvyleymedgf4vsm3ysdqaveskjmr9vssxgetnvdexjur5d9hkuxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqk6uwy8pkv42jzhdna3z4vxpwkapdzzpn2tcpjnqj738nlpkjc583l9v72vlskt8y33rr4z3jma32xx7ve0jfy7anvn6r98cr5flhcuqqhr4shx", + "bolt11": "lnbcrt100n1pnt2bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000bolt11invl030400000000", "amount_msat": 4000, - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "created_at": 1722303719.1643083, + "payment_hash": "paymenthashinvl0340034003400340034003400340034003400340034003400", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "created_at": 1738000000, "groupid": 1, "parts": 2, "status": "complete", - "payment_preimage": "8815ee921dba644c076f9f879abb520d8539a6913856a439752eaaadff1e21ac", + "payment_preimage": "paymentpreimager020202020202020202020202020202020202020202020202", "amount_sent_msat": 4000 } } diff --git a/doc/schemas/lightning-renepaystatus.json b/doc/schemas/lightning-renepaystatus.json index e723134829ec..48aae6259794 100644 --- a/doc/schemas/lightning-renepaystatus.json +++ b/doc/schemas/lightning-renepaystatus.json @@ -141,21 +141,21 @@ "id": "example:renepaystatus#1", "method": "renepaystatus", "params": { - "invstring": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7" + "invstring": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000" } }, "response": { "paystatus": [ { - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", + "bolt11": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", "amount_msat": 400000, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "created_at": 1722303718.0730329, + "payment_hash": "paymenthashinvl0210021002100210021002100210021002100210021002100", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", + "created_at": 1738000000, "groupid": 1, "parts": 2, "status": "complete", - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", + "payment_preimage": "paymentpreimager010101010101010101010101010101010101010101010101", "amount_sent_msat": 400000 } ] diff --git a/doc/schemas/lightning-reserveinputs.json b/doc/schemas/lightning-reserveinputs.json index c7402f9fb4a1..a29b90e64f5e 100644 --- a/doc/schemas/lightning-reserveinputs.json +++ b/doc/schemas/lightning-reserveinputs.json @@ -112,13 +112,13 @@ "id": "example:reserveinputs#1", "method": "reserveinputs", "params": { - "psbt": "cHNidP8BADMCAAAAAfcJ+tPRXly5UFuX2jOOOBUcBBjfDGAC8vLWfrkJf/O2AQAAAAD9////AAAAAAAAAA==" + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100" } }, "response": { "reservations": [ { - "txid": "b6f37f09b97ed6f2f202600cdf18041c15388e33da975b50b95c5ed1d3fa09f7", + "txid": "channeltxid111200111200111200111200111200111200111200111200111200", "vout": 1, "was_reserved": false, "reserved": true, @@ -132,14 +132,14 @@ "id": "example:reserveinputs#2", "method": "reserveinputs", "params": { - "psbt": "cHNidP8BADMCAAAAAQmU87pv4WOONFOqae6XAQBHIi5fZ4Ztyt0vn1YASZntAAAAAAD9////AAAAAAAAAA==" + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200" } }, "response": { "reservations": [ { - "txid": "ed994900569f2fddca6d86675f2e2247000197ee69aa53348e63e16fbaf39409", - "vout": 0, + "txid": "txidocsigned1011000110001100011000110001100011000110001100011000", + "vout": 1, "was_reserved": false, "reserved": true, "reserved_to_block": 226 diff --git a/doc/schemas/lightning-sendcustommsg.json b/doc/schemas/lightning-sendcustommsg.json index b498cdbd30d6..771a16e75ba6 100644 --- a/doc/schemas/lightning-sendcustommsg.json +++ b/doc/schemas/lightning-sendcustommsg.json @@ -64,7 +64,7 @@ "id": "example:sendcustommsg#1", "method": "sendcustommsg", "params": { - "node_id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "node_id": "nodeid030303030303030303030303030303030303030303030303030303030303", "msg": "77770012" } }, diff --git a/doc/schemas/lightning-sendinvoice.json b/doc/schemas/lightning-sendinvoice.json index 1183aad6bc9a..6c05a4418c96 100644 --- a/doc/schemas/lightning-sendinvoice.json +++ b/doc/schemas/lightning-sendinvoice.json @@ -206,22 +206,22 @@ "id": "example:sendinvoice#1", "method": "sendinvoice", "params": { - "invreq": "lnr1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq947t0ks7a4yejz8w79x4zj25s3pu6zrnw2e0v2ugdescpcqsq307z4p2dlxe92fv7xd43qut0pjkg4y094hupqyhsj8dlhvmmfng6sv", + "invreq": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "label": "test sendinvoice" } }, "response": { "label": "test sendinvoice", - "bolt12": "lni1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e5zvqyehytxx360zptatj4pygsv9kpal8gnkeyd0tpvd6jv5rkv2uqdgcq2s27mvxt0arlnulnmce53cuz00vzaqvgvhpphxgavl89r8zrdhaxqgzpvxkkmwsmxnuwflttmnpc8vtzwlgd3cfty3xwlnlc9r2gcjesguqqv4xey4m7l4wxem27vxyxfhwznlc62kffsd5xncx9w49m4g72u2y7lcl6a3x5cpu52j6gm8q5x0q8k7myxdzrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s38p5cq442pq5qpm4ht26v8statwxcrl65uy26c9hx4dvy66f9x665eqqy90tpz25qc0gfqtqggzvmj9nrga83q474e2sjygxzmq7ln5fmvjxh4skxafx2pmx9wqx5v0qsqfkcrpht0d3nnt8txkcgf5wr6gzrlacls2gyrvj5hhwuu98shurrn6ayruunju7k9yu9clvaj354tr064ruuht88q5dj73kzru20uzj", - "payment_hash": "a003badd6ad30f05f56e3607fd538456b05b9aad6135a494dad5320010af5844", + "bolt12": "lno1qgsq000boltsi100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100si100", + "payment_hash": "paymenthashsdinvsi10si10si10si10si10si10si10si10si10si10si10si10", "amount_msat": 1000000, "status": "paid", "pay_index": 1, "amount_received_msat": 1000000, - "paid_at": 1722303714, - "payment_preimage": "6f154ed7d108349cb6385eba5f160294ef83862c2c560ba6446b2a3da5c2b3b3", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagei010101010101010101010101010101010101010101010101", "description": "Simple test", - "expires_at": 1722303803, + "expires_at": 1739000000, "created_index": 3, "updated_index": 1 } diff --git a/doc/schemas/lightning-sendonion.json b/doc/schemas/lightning-sendonion.json index 6f8d7893e19a..fdfd8287f3f1 100644 --- a/doc/schemas/lightning-sendonion.json +++ b/doc/schemas/lightning-sendonion.json @@ -331,26 +331,26 @@ "id": "example:sendonion#1", "method": "sendonion", "params": { - "onion": "0003ccc1f8876af4810e23bd4cccd8f2f38ee5dc117f527c783fefa4e632f857c98d588d2e3150d16b78f9458777502e4829b490e8a2d560841eb0c2368311bf9bb4e8ded0356badafd915839409ad60866c24dd7580b468c14097575565ca95425b9f44211d9ad0305ddba2391a70892ac8c9fd7c3b67d0fe22faf5a0b6905ee2e22278fe224e89ea72c3fcc598b35afaa255123e61ae7a697703e3bb8aec4d36ea487df6ec27942aadff0527d178c897e75f1ee284995196b5ead963ee9d0df798c8265c00c5c73daac917d298cc17e5d813189321d914c45ef30170c4d617dae12bb3a760d1665705e61bb6c52789e15623cefc68d96b86a6f17159c4a86bb196c9f5e40a0744d08d6da0cfd587717b6d0d074d42ac0893fa6ae1497c84824f1d27670d4e201af5e9e5a3493b603cfc209bb0ee41b573ca647c5b9882272c972cd18f19fd895e8995097d86882a473f4d26118a7ed656c5ea04c2a183b05cc0191d07fab5e78edab4ab8ec58e05e03f32d150449c0c8e3505e46ae58e77c87616144873f72f4571b00ccf8e71bcdf33a7d32345aecb660970fa73c4844ab157aa322f140f5d47b66a0590273728ddb5b8a7f3577cff5a268935b93fe598d6df4413c67c45efa9461abaf3294070a484418aa28c03ac20d08856eb0c74dfca851e8ed110bdcacb2a2fb90954b04e99986fde0678846a709120b5d1eeab9cde8d9f27d77448f4591e00bf30d7580703e6c189c658746cf7a7cc1430ce41f84244612b438c3d895333848e5f55e99b2a9d28860863c11aaa8e3ef01ead7ba1545156c356424c33aeeaa2f1e2c290d1d8dd52cd7b8116159025aba26db6fb81ad7f9cc4554c6f9f13d16defe38918b32d62a0516521934a0009a8d37c9a84689bfd8fc1f0beceb92701dca11175e0099d7541698956ba5d93efff996f538ee47717ae6c5cda98111bc28c822e99cf8957b707de270f447b6e52d30bcf9b8a9befd8663bc54612b543d0e167da67e2f295207b70857d0a7cae8932d905db2f48c873dec20aeafa07e15fa98a088e529424c8b404f03ba0ee78a6639fde5cd37dee42877ff6489ce1de5a8992cae25dd20a6521955c19129fdcc0ea157913373bf47a8018a1dd825a2f8e26194d5008161360ae9b25fc701b2accbe88eb47eee6a50b7ee6d6e169e3905e03ca72e00eb6a51b7ed3d27501715428368662b822e2262749d3e7d3243c4fd3d825b3e72bebdeebf6e035f1ad6634523ab5dc0335611c19c9936d006f2e4cd8818eb4f8b4857c8f35d18a4891e35ff91e3b54b384398574d673fcc8da50b22b8f485a41223c97e3b8ee5b8e5ff9c00a2cbfe7360509d3fee9248b5eaa81bb83da3be45dfa8cbbbf5c52ba8749c9d6261d4239feea1e7ce85ad40ad0c66bbeb1c6898626ae4e710a66f9c39a5ee94581353b46e070cfcff9a14e3f9a6108d55bb92852eb3a50e89b1e45d31b760f2a4e263a6a876ad638b123ffee7a2b0b48e16175e3eb92bfaad4dbe0af8b2bc1c15fec5a9d92d3970c2ffab2ab8fa2c9de0bd276680a4284707cd8543a97bca2394e9514236129f1c50a932f7e9bfb98c2aaa6ffc9a4a30641061246de6edf0f711a8d25d59af42ee4445b22ce2f832f3ece52c18ca62d90c590729e04c47accaec95b556ee2541c84843c54a116f5cc45bc251a8023b695f0bf79c43a97bece8a761d387a466821984fb5ec438af20d14cebb7f0026988c81b5a1b895ef94df61aa509e53083b4306c42132b5ce302fd5a2fbb1cee30a7078ccaa3bdccf781b8c9d6ae016a5f8e5cb13f7ac1f3fd0d74a182c9abea67d346f0dfcfc211aaa7ff47196465398fce3e6e0f3b73a944a7f57a90cc6a8f1bfcd385f8312e23af6f508f4f8a976d750660ac3d63630555a3a2e7fe158a982aaf0278d9f8819e5cb", + "onion": "onion10101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010", "first_hop": { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "channel": "109x1x1", "direction": 1, "amount_msat": 1002, "delay": 21, "style": "tlv" }, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" + "payment_hash": "assocdata0010101010101010101010101010101010101010101010101010101" } }, "response": { "message": "Monitor status with listpays or waitsendpay", "created_index": 8, "id": 8, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", + "payment_hash": "assocdata0010101010101010101010101010101010101010101010101010101", "groupid": 1, "amount_sent_msat": 1002, - "created_at": 1722303689, + "created_at": 1738000000, "status": "pending" } } diff --git a/doc/schemas/lightning-sendpay.json b/doc/schemas/lightning-sendpay.json index 5ae13007e99c..513f3f18b4d7 100644 --- a/doc/schemas/lightning-sendpay.json +++ b/doc/schemas/lightning-sendpay.json @@ -358,7 +358,7 @@ "params": { "route": [ { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "channel": "109x1x1", "direction": 1, "amount_msat": 10001, @@ -366,28 +366,28 @@ "style": "tlv" }, { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "111x1x0", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel": "111x1x1", "direction": 0, "amount_msat": 10000, "delay": 9, "style": "tlv" } ], - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", - "payment_secret": "64733783b118ff27576f72c473c0c52814f1f47c4de41492194ddd7855486024" + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", + "payment_secret": "paymentsecretinvl00310003100031000310003100031000310003100031000" } }, "response": { "message": "Monitor status with listpays or waitsendpay", "created_index": 2, "id": 2, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "groupid": 1, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303675, + "created_at": 1738000000, "status": "pending" } } diff --git a/doc/schemas/lightning-sendpsbt.json b/doc/schemas/lightning-sendpsbt.json index e5fea02ba611..7653aa47d0c6 100644 --- a/doc/schemas/lightning-sendpsbt.json +++ b/doc/schemas/lightning-sendpsbt.json @@ -70,12 +70,12 @@ "id": "example:sendpsbt#1", "method": "sendpsbt", "params": { - "psbt": "cHNidP8BAHsCAAAAApYPhUDCjBy/IhQro1NgHyHktDtz752euhXVr901aH1zAAAAAAD9////pVexPrCyRyESCD3U1cC5oifK1QBxTxBSKMaWE8H/R3UAAAAAAP3///8Buuz6CwAAAAAWABTJCW1D9AjqUmAgJizNrXyFFrkqgQAAAAAAAQCJAgAAAAGdA6aKwu4U7Zes8OwDJHp4bI3maidtrjOK6N85klZucAAAAAAA/f///wKBbNwLAAAAACJRIDXxGE9rRwyd80faYsSyjn7J7hCyILrDrM0iIJ3vADbqQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzWwAAAABASuBbNwLAAAAACJRIDXxGE9rRwyd80faYsSyjn7J7hCyILrDrM0iIJ3vADbqARNAslo/GrzGxD6jx0S7hhxvKR8Eus+sP130lZLzFdEP0jIHUZnjDgbwVW/xgkL6M6xdWTIft2LwO6Jg/VxrnLUVniEWn8HNAfLSdwuCgeK6vBpMJF7dN7ty0S4gcjpp309fAfYJAMEg7UIAAAAAAAEAcQIAAAAB5PVQktBZBw4nvG06jM4bpxNyROmXxJnOR8qYKNgjGfwAAAAAAP3///8CgIQeAAAAAAAWABSftnv87+5st9tMflXZxr/XSeMdHoxyG+0AAAAAFgAUQudNVnkeDGRH67h8YS0ySo/R6flrAAAAAQEfgIQeAAAAAAAWABSftnv87+5st9tMflXZxr/XSeMdHiICAyjMj8l44gnxaV+ltWVQYdsaqyMRtSQXaUW/EBXvLUuJRzBEAiA9G0zR8z6JjbBAeg4wDezU0rLQB462lpdGQJwqrUxQFwIgL70Z0p7ASr4w+lDjPk0+m6WY5PafSiEiEO4tFuoHsHMBIgYDKMyPyXjiCfFpX6W1ZVBh2xqrIxG1JBdpRb8QFe8tS4kIn7Z7/AAAAAAAAA==" + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000" } }, "response": { - "tx": "02000000000102960f8540c28c1cbf22142ba353601f21e4b43b73ef9d9eba15d5afdd35687d730000000000fdffffffa557b13eb0b2472112083dd4d5c0b9a227cad500714f105228c69613c1ff47750000000000fdffffff01baecfa0b00000000160014c9096d43f408ea526020262ccdad7c8516b92a810140b25a3f1abcc6c43ea3c744bb861c6f291f04bacfac3f5df49592f315d10fd232075199e30e06f0556ff18242fa33ac5d59321fb762f03ba260fd5c6b9cb5159e0247304402203d1b4cd1f33e898db0407a0e300decd4d2b2d0078eb6969746409c2aad4c501702202fbd19d29ec04abe30fa50e33e4d3e9ba598e4f69f4a212210ee2d16ea07b07301210328cc8fc978e209f1695fa5b5655061db1aab2311b524176945bf1015ef2d4b8900000000", - "txid": "8861058bff4b5310d587d7a8b6936886a290b0bdaf2485b53c79972a32daa758" + "tx": "02000000000155multiw61000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000", + "txid": "txid6100061000610006100061000610006100061000610006100061000" } } ] diff --git a/doc/schemas/lightning-setchannel.json b/doc/schemas/lightning-setchannel.json index 8f0f9948901e..091bc1c5e981 100644 --- a/doc/schemas/lightning-setchannel.json +++ b/doc/schemas/lightning-setchannel.json @@ -182,8 +182,8 @@ "response": { "channels": [ { - "peer_id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel_id": "ecabe6d86abdd57565b3fb7e7c5d724e60ca1a07633951769b5dbfa48dc884b3", + "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel_id": "channelid0230200230200230200230200230200230200230200230200230200", "short_channel_id": "123x1x1", "fee_base_msat": 1, "fee_proportional_millionths": 10, @@ -199,7 +199,7 @@ "id": "example:setchannel#2", "method": "setchannel", "params": { - "id": "115x1x0", + "id": "115x1x1", "feebase": 4000, "feeppm": 300, "enforcedelay": 0 @@ -208,9 +208,9 @@ "response": { "channels": [ { - "peer_id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", - "channel_id": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", - "short_channel_id": "115x1x0", + "peer_id": "nodeid050505050505050505050505050505050505050505050505050505050505", + "channel_id": "channelid0250000250000250000250000250000250000250000250000250000", + "short_channel_id": "115x1x1", "fee_base_msat": 4000, "fee_proportional_millionths": 300, "minimum_htlc_out_msat": 0, diff --git a/doc/schemas/lightning-setpsbtversion.json b/doc/schemas/lightning-setpsbtversion.json index 870fa0c1f7a0..a634640ca2f5 100644 --- a/doc/schemas/lightning-setpsbtversion.json +++ b/doc/schemas/lightning-setpsbtversion.json @@ -62,7 +62,7 @@ "id": "example:setpsbtversion#1", "method": "setpsbtversion", "params": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAA==", + "psbt": "cHNidP8BAgpsbt1001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "version": 0 } }, @@ -75,12 +75,12 @@ "id": "example:setpsbtversion#2", "method": "setpsbtversion", "params": [ - "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEDAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQABAwjV3DIAAAAAAAEEIlEgoqAceWUonu5Wtc/N25hWxw+kdsJk0h9xHGppr3dq5AMA", + "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", 2 ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEDAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQABAwjV3DIAAAAAAAEEIlEgoqAceWUonu5Wtc/N25hWxw+kdsJk0h9xHGppr3dq5AMA" + "psbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" } } ] diff --git a/doc/schemas/lightning-showrunes.json b/doc/schemas/lightning-showrunes.json index e20bdef77085..73b5681cbee6 100644 --- a/doc/schemas/lightning-showrunes.json +++ b/doc/schemas/lightning-showrunes.json @@ -177,7 +177,7 @@ "runes": [ { "rune": "zFMd1fjhrAYxUeFA54TjloZqOt8JrA_i_nYwIgXkag49MA==", - "last_used": 1722303715.068215, + "last_used": 1738000000, "unique_id": "0", "restrictions": [], "restrictions_as_english": "" @@ -195,14 +195,14 @@ "runes": [ { "rune": "zFMd1fjhrAYxUeFA54TjloZqOt8JrA_i_nYwIgXkag49MA==", - "last_used": 1722303715.068215, + "last_used": 1738000000, "unique_id": "0", "restrictions": [], "restrictions_as_english": "" }, { "rune": "RXgu0DD_i0wSPEZkIDyZIWL0bSAGdhvJ_GHOQdTg04A9MSZpZF4wMjY2ZTQ1OThkMWQzYzQxNWY1NyZtZXRob2Q9bGlzdHBlZXJz", - "last_used": 1722303714.9302285, + "last_used": 1738000000, "unique_id": "1", "restrictions": [ { @@ -232,7 +232,7 @@ }, { "rune": "QUJEYMLGgiaJvMDv_MhR2hiMKIBTbq-PrL-KxcIlirQ9MiZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", - "last_used": 1722303715.1267006, + "last_used": 1738000000, "unique_id": "2", "restrictions": [ { @@ -268,7 +268,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -301,13 +301,13 @@ "alternatives": [ { "fieldname": "pnameid", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "pnameid equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" }, { "fieldname": "parr0", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "parr0 equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -325,7 +325,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } diff --git a/doc/schemas/lightning-signinvoice.json b/doc/schemas/lightning-signinvoice.json index 437a20715aa6..49264e8bf1ea 100644 --- a/doc/schemas/lightning-signinvoice.json +++ b/doc/schemas/lightning-signinvoice.json @@ -60,11 +60,11 @@ "id": "example:signinvoice#1", "method": "signinvoice", "params": { - "invstring": "lnbcrt10n1pn2s38psp5qnpucxgdnkrqur47x6vtxdk7xpzy3lf47kjqehm6wnuadj9rt86qpp5qg2ltzlhu2yn08f99t9zz6fjzhfmajg8h4eum43zg3gr0gdeamcsdqlv3jhxcmjd9c8g6t0dcsxjmnktakrzvsxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqg2kj0ma6weclle29pwpsdvnwa4r4yhw38wvly80mtysjf463r5y428k23dkp8ty0fugtzyjpcjsy0w7hhfmyzkwrlve93cr8jnm5sdgqzv7m0x" + "invstring": "lnbcrt100n1pnt2bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000" } }, "response": { - "bolt11": "lnbcrt10n1pn2s38psp5qnpucxgdnkrqur47x6vtxdk7xpzy3lf47kjqehm6wnuadj9rt86qpp5qg2ltzlhu2yn08f99t9zz6fjzhfmajg8h4eum43zg3gr0gdeamcsdqlv3jhxcmjd9c8g6t0dcsxjmnktakrzvsxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqq757xfxhd6hpctdfsq6vr2pltjvdv06t0z200hk0qslcydpf0pthmnzhu404w4qv89d25zv3smtsnyvqsaw6tf6tcl0lles6n29qh9gpyd3ml0" + "bolt11": "lnbcrt100n1pnt2bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000" } }, { @@ -72,11 +72,11 @@ "id": "example:signinvoice#2", "method": "signinvoice", "params": [ - "lnbcrt1250n1pn2s38psp5u22hlvy5mk7keq57m4fatz7aqnmh4whcuk45npdexrw4m5athcvqpp5ps4h5lt8waz5pprvad3skzssnksl2wxng985rcsuedp8teh29rkqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydscqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqyljtru0gcvqh7k5l9u8ulcuxw8fwa9qycyd32hl7wwdpjtlefgrpyjch6aprcdah2pthx3pku3y7c6dzluzjjy9c32cs3m5hqq6ww3sp0j4tr8" + "lnbcrt100n1pnt2bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000" ] }, "response": { - "bolt11": "lnbcrt1250n1pn2s38psp5u22hlvy5mk7keq57m4fatz7aqnmh4whcuk45npdexrw4m5athcvqpp5ps4h5lt8waz5pprvad3skzssnksl2wxng985rcsuedp8teh29rkqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydscqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq303kchnu5dvmrjam0m2yapk4d8vyx2uud3z0cpwsxern0d6f5sxqcg4rf05qczp5ncrpq4e6fsth28fxegv5gx9y7kt9f6tfhgw9dfqqckwpfv" + "bolt11": "lnbcrt100n1pnt2bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000" } } ] diff --git a/doc/schemas/lightning-signpsbt.json b/doc/schemas/lightning-signpsbt.json index 3caf71967c35..e222fc8b349e 100644 --- a/doc/schemas/lightning-signpsbt.json +++ b/doc/schemas/lightning-signpsbt.json @@ -68,11 +68,11 @@ "id": "example:signpsbt#1", "method": "signpsbt", "params": { - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIQCsNB0i02NIAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3DPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==" + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000" } }, "response": { - "signed_psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIHlCL2oKhnYn6hhaUG8+V+8D6GHFlI61OM507VB6aBwoAiACA2d5TnCdlJ1j2rF/EIHkxl3W0hBp3QqweO7hEul9aQEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOILMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCEArDQdItNjSAAEDCEFZ3AsAAAAAAQQiUSA74Tflo81LdhBFqIwHKNMkNRg28E7Vnf2jebjYRkZStyEHE0cioCqqq2UZ2npxQi9Q6DXNZheODM6F4GjHHS3XScEJAG/ctUwEAAAADPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==" + "signed_psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000" } }, { @@ -80,11 +80,11 @@ "id": "example:signpsbt#2", "method": "signpsbt", "params": [ - "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIwRR1uu1r8GoAAQMIgIQeAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQjdRD+FoUsRIAABAwhiDc0LAAAAAAEEIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2gM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000" ] }, "response": { - "signed_psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIA8+zCzZ59t2OEFHWefZeTypY89RRQ8dMQCjtGWw6gskAiArELH1MvjW6j1G1CKnLZdV+/oabLDU48ingGSPFDOYxwEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOILMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCMEUdbrta/BqAAEDCICEHgAAAAAAAQQiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z3wz8CWxpZ2h0bmluZwEI3UQ/haFLESAAAQMIYg3NCwAAAAABBCJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oIQeffk+gJsmVIxDZ8UKPKgJB9CLvaUr9xqOEogpzJx1hbAkAEioNzwUAAAAM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==" + "signed_psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000" } } ] diff --git a/doc/schemas/lightning-splice_init.json b/doc/schemas/lightning-splice_init.json index a26ab85423f9..d735afa7423b 100644 --- a/doc/schemas/lightning-splice_init.json +++ b/doc/schemas/lightning-splice_init.json @@ -112,13 +112,13 @@ "id": "example:splice_init#1", "method": "splice_init", "params": { - "channel_id": "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", + "channel_id": "channelid0780000780000780000780000780000780000780000780000780000", "relative_amount": 100000, - "initialpsbt": "cHNidP8BAF4CAAAAAfYhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAQAAAAD9////Ac652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGCSAAAAAAEAiQIAAAAB+fmfTbLExUIRcwBZD0qxCoNAHIDe7sEfYHguS6nfkn4AAAAAAP3///8CQEIPAAAAAAAiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJloFs3AsAAAAAIlEgW7Q7f9oXFdDdAUFoJaGFIqLX7LFkdbiHgOj6/Bxz74mNAAAAAQErgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviQAA" + "initialpsbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000713000" } }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEImfI55kWjFBwAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQVHUiECVw7AtutUVmMwIYOmLqx10I/e62TzE1IZIGXWAcjKUh0hAmaGfDQrglCra07axtuuL95TeCtpzRcTmUn71PIISH/yUq4BDiD2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEPBAAAAAABEAQAAAAADPwJbGlnaHRuaW5nAQijTD4R+uEvhAABAwjOudoLAAAAAAEEIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGAM/AlsaWdodG5pbmcBCI/PBFM/C09aAAEDCAAAAAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIreWkThWNrsoA" + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000" } }, { @@ -126,13 +126,13 @@ "id": "example:splice_init#2", "method": "splice_init", "params": [ - "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", + "channelid0780000780000780000780000780000780000780000780000780000", -105000, - "cHNidP8BAgQCAAAAAQMElAAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIoIYBAAAAAAABBCJRIMTSgkFfmoHRjgi2GaGdEWuGVssb9JPl9UC797egWEzaAA==" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000714000" ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBBUdSIQJXDsC261RWYzAhg6YurHXQj97rZPMTUhkgZdYByMpSHSECZoZ8NCuCUKtrTtrG264v3lN4K2nNFxOZSfvU8ghIf/JSrgEOIJW7FYF67zRaxARLQco1KmOXtFQY8yFwpGexdGngFEX4AQ8EAQAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCF4tdoSn7LwCAAEDCAAAAAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIGQ1Quuj5CvAAAQMIoIYBAAAAAAABBCJRIMTSgkFfmoHRjgi2GaGdEWuGVssb9JPl9UC797egWEzaDPwJbGlnaHRuaW5nAQi4FyJ2dePgEAA=" + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000" } } ] diff --git a/doc/schemas/lightning-splice_signed.json b/doc/schemas/lightning-splice_signed.json index 1c800142043a..69e26dbb0df6 100644 --- a/doc/schemas/lightning-splice_signed.json +++ b/doc/schemas/lightning-splice_signed.json @@ -129,13 +129,13 @@ "id": "example:splice_signed#1", "method": "splice_signed", "params": { - "channel_id": "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQBAAAAARAE/f///wETQKcuGy6h+BqXM6UBaTWpiX1wgQdVDWQdu3poUITFMK4JR7Jjaqy0IsnjfOXmaFZAUIS01Heqa7RbgzHF+5qDI/AhFvTEPeeTGXjlJSGiyNDqLm+lpUC+f31Q3j7YhyeyShxZCQD2T+TUAAAAAAz8CWxpZ2h0bmluZwEImfI55kWjFBwAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIo0w+EfrhL4QAAQMIzrnaCwAAAAABBCJRII+O1EYnVX28zEKuAYqcVHSpkShXksTKiRwfWcVmXTRgIQf4l/XsahrhZhlxJbtZN6e213tQQFKbPCTiBwSf3CvcvAkA9Hbq9AUAAAAM/AlsaWdodG5pbmcBCI/PBFM/C09aAAEDCODIEAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIreWkThWNrsoA" + "channel_id": "channelid0780000780000780000780000780000780000780000780000780000", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000718000" } }, "response": { - "tx": "02000000000102f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c0100000000fdfffffff62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c00000000000000000002ceb9da0b000000002251208f8ed44627557dbccc42ae018a9c5474a991285792c4ca891c1f59c5665d3460e0c810000000000022002093dedd0c265bca868576d3ee2e59eebbb20ebc296e58f7edca93d5eeaec089960140a72e1b2ea1f81a9733a5016935a9897d708107550d641dbb7a685084c530ae0947b2636aacb422c9e37ce5e66856405084b4d477aa6bb45b8331c5fb9a8323f00400473044022024af89f1987cfee986aacf511ed101aa083a8300d4ae4d6b87cd68fef4f722c60220263fd2a4750c7fbb08c433cc0d14e500c714820175454d18b5bef74e01cdc2f9014730440220306e4f6a09653e44f9306c6c47afb58d756d7ba2803f61184db3730ab208a8a302207c40845740e1e791d05957c75eb1b3e62db18fb5ec75039768972dc5efb881710147522102570ec0b6eb545663302183a62eac75d08fdeeb64f31352192065d601c8ca521d210266867c342b8250ab6b4edac6dbae2fde53782b69cd17139949fbd4f208487ff252ae92000000", - "txid": "f84514e06974b167a47021f31854b497632a35ca414b04c45a34ef7a8115bb95", + "tx": "02000000000101sendpt64000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000", + "txid": "txid6400064000640006400064000640006400064000640006400064000", "outnum": 1 } }, @@ -144,14 +144,14 @@ "id": "example:splice_signed#2", "method": "splice_signed", "params": [ - "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBDiCVuxWBeu80WsQES0HKNSpjl7RUGPMhcKRnsXRp4BRF+AEPBAEAAAABEAQAAAAADPwJbGlnaHRuaW5nAQheLXaEp+y8AgABAwi4Lg8AAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCBkNULro+QrwAAEDCKCGAQAAAAAAAQQiUSDE0oJBX5qB0Y4IthmhnRFrhlbLG/ST5fVAu/e3oFhM2gz8CWxpZ2h0bmluZwEIuBcidnXj4BAA" + "channelid0780000780000780000780000780000780000780000780000780000", + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000" ] }, "response": { - "tx": "0200000000010195bb15817aef345ac4044b41ca352a6397b45418f32170a467b17469e01445f801000000000000000002b82e0f000000000022002093dedd0c265bca868576d3ee2e59eebbb20ebc296e58f7edca93d5eeaec08996a086010000000000225120c4d282415f9a81d18e08b619a19d116b8656cb1bf493e5f540bbf7b7a0584cda04004730440220259ff7ffc38775f34aed9be01a57b3002b2cba938e8bdf37ee0d529401ca0ae102206f77ba80e128ed5096679a304078efbff423394f2ffeb286e307fc71af06773d0147304402206e715aa27e9f192a787949dd322dd8c41d69dbf0b134099b942f40f3727ecaa80220154ab1a180d2103884ac73307f6f5faa0e384d7d40dcda44a26c17fdd83a89910147522102570ec0b6eb545663302183a62eac75d08fdeeb64f31352192065d601c8ca521d210266867c342b8250ab6b4edac6dbae2fde53782b69cd17139949fbd4f208487ff252ae94000000", - "txid": "b81ed02d0235b63cb73d1ee840345a696bc7224ba28be590165aa340bc9e37de", - "outnum": 0 + "tx": "02000000000102sendpt65000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000", + "txid": "txid6500065000650006500065000650006500065000650006500065000", + "outnum": 1 } } ] diff --git a/doc/schemas/lightning-splice_update.json b/doc/schemas/lightning-splice_update.json index 05e104e01905..749b1372de9a 100644 --- a/doc/schemas/lightning-splice_update.json +++ b/doc/schemas/lightning-splice_update.json @@ -128,12 +128,12 @@ "id": "example:splice_update#1", "method": "splice_update", "params": { - "channel_id": "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEImfI55kWjFBwAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQVHUiECVw7AtutUVmMwIYOmLqx10I/e62TzE1IZIGXWAcjKUh0hAmaGfDQrglCra07axtuuL95TeCtpzRcTmUn71PIISH/yUq4BDiD2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEPBAAAAAABEAQAAAAADPwJbGlnaHRuaW5nAQijTD4R+uEvhAABAwjOudoLAAAAAAEEIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGAM/AlsaWdodG5pbmcBCI/PBFM/C09aAAEDCAAAAAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIreWkThWNrsoA" + "channel_id": "channelid0780000780000780000780000780000780000780000780000780000", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000" } }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEImfI55kWjFBwAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIo0w+EfrhL4QAAQMIzrnaCwAAAAABBCJRII+O1EYnVX28zEKuAYqcVHSpkShXksTKiRwfWcVmXTRgDPwJbGlnaHRuaW5nAQiPzwRTPwtPWgABAwjgyBAAAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCK3lpE4Vja7KAA==", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000715000", "commitments_secured": true } }, @@ -142,12 +142,12 @@ "id": "example:splice_update#2", "method": "splice_update", "params": [ - "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBBUdSIQJXDsC261RWYzAhg6YurHXQj97rZPMTUhkgZdYByMpSHSECZoZ8NCuCUKtrTtrG264v3lN4K2nNFxOZSfvU8ghIf/JSrgEOIJW7FYF67zRaxARLQco1KmOXtFQY8yFwpGexdGngFEX4AQ8EAQAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCF4tdoSn7LwCAAEDCAAAAAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIGQ1Quuj5CvAAAQMIoIYBAAAAAAABBCJRIMTSgkFfmoHRjgi2GaGdEWuGVssb9JPl9UC797egWEzaDPwJbGlnaHRuaW5nAQi4FyJ2dePgEAA=" + "channelid0780000780000780000780000780000780000780000780000780000", + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000" ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBDiCVuxWBeu80WsQES0HKNSpjl7RUGPMhcKRnsXRp4BRF+AEPBAEAAAABEAQAAAAADPwJbGlnaHRuaW5nAQheLXaEp+y8AgABAwi4Lg8AAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCBkNULro+QrwAAEDCKCGAQAAAAAAAQQiUSDE0oJBX5qB0Y4IthmhnRFrhlbLG/ST5fVAu/e3oFhM2gz8CWxpZ2h0bmluZwEIuBcidnXj4BAA", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000716000", "commitments_secured": true } } diff --git a/doc/schemas/lightning-sql-template.json b/doc/schemas/lightning-sql-template.json index 517b2f7ee52d..469a1bbbf7a0 100644 --- a/doc/schemas/lightning-sql-template.json +++ b/doc/schemas/lightning-sql-template.json @@ -143,7 +143,7 @@ "response": { "rows": [ [ - "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + "nodeid020202020202020202020202020202020202020202020202020202020202" ] ] } @@ -156,26 +156,15 @@ "id": "example:sql#2", "method": "sql", "params": [ - "SELECT nodeid,last_timestamp FROM nodes WHERE last_timestamp>=1669578892" + "SELECT label, description, status FROM invoices WHERE label='label inv_l12'" ] }, "response": { "rows": [ [ - "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - 1722303662 - ], - [ - "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - 1722303662 - ], - [ - "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - 1722303669 - ], - [ - "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - 1722303669 + "label inv_l12", + "description inv_l12", + "unpaid" ] ] } @@ -188,19 +177,19 @@ "id": "example:sql#3", "method": "sql", "params": [ - "SELECT nodeid FROM nodes WHERE nodeid != x'035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d'" + "SELECT nodeid FROM nodes WHERE nodeid != x'nodeid030303030303030303030303030303030303030303030303030303030303'" ] }, "response": { "rows": [ [ - "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + "nodeid020202020202020202020202020202020202020202020202020202020202" ], [ - "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" + "nodeid010101010101010101010101010101010101010101010101010101010101" ], [ - "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199" + "nodeid040404040404040404040404040404040404040404040404040404040404" ] ] } @@ -213,16 +202,16 @@ "id": "example:sql#4", "method": "sql", "params": [ - "SELECT nodeid FROM nodes WHERE nodeid IN (x'0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518', x'035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d')" + "SELECT nodeid FROM nodes WHERE nodeid IN (x'nodeid010101010101010101010101010101010101010101010101010101010101', x'nodeid030303030303030303030303030303030303030303030303030303030303')" ] }, "response": { "rows": [ [ - "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" + "nodeid010101010101010101010101010101010101010101010101010101010101" ], [ - "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d" + "nodeid030303030303030303030303030303030303030303030303030303030303" ] ] } @@ -235,14 +224,13 @@ "id": "example:sql#5", "method": "sql", "params": [ - "SELECT peer_id, short_channel_id, to_us_msat, total_msat, peerchannels_status.status FROM peerchannels INNER JOIN peerchannels_status ON peerchannels_status.row = peerchannels.rowid" + "SELECT peer_id, to_us_msat, total_msat, peerchannels_status.status FROM peerchannels INNER JOIN peerchannels_status ON peerchannels_status.row = peerchannels.rowid" ] }, "response": { "rows": [ [ - "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "109x1x1", + "nodeid020202020202020202020202020202020202020202020202020202020202", 490503792, 1000000000, "CHANNELD_NORMAL:Channel ready for use." @@ -280,20 +268,20 @@ "response": { "rows": [ [ - 23, - 18, + 27, + 22, 0, "option_static_remotekey" ], [ - 24, - 18, + 28, + 22, 1, "option_anchors_zero_fee_htlc_tx" ], [ - 25, - 18, + 29, + 22, 2, "option_anchors" ] diff --git a/doc/schemas/lightning-staticbackup.json b/doc/schemas/lightning-staticbackup.json index c929a0099a4e..5a4b3429820e 100644 --- a/doc/schemas/lightning-staticbackup.json +++ b/doc/schemas/lightning-staticbackup.json @@ -45,12 +45,12 @@ }, "response": { "scb": [ - "0000000000000006f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5900017f0000019b987577c455da982b1753df79c56f9d8d2b75d1401e60a5af322ab27b13b20d75970000000100000000000f42400003401000", - "000000000000000121bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610e23fcc9e6306ce636b203217b22409bf9bab2211f9f432de781dedb6377dab5a0000000100000000000f42400003401000", - "00000000000000027512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610ee1db407eb3e47be3e93e1abc05b13806ee7aef8550c517a4974c72bf91866410000000100000000000f42400003401000", - "0000000000000003222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f0000019bc5b15661ec5c17599de0858401b72d6be66c34b48a3bb6e679542809f395e6bb2000000000000000000bebb3cb0003401000", - "0000000000000004a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ac184e7462759ff83049b19582db049d40076f83a7a70181374ca0ea91644a3d9c0000000200000000000075300003401000", - "000000000000000509eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ace9067c9d125df7150261c80eec3ab9cf8731679752b84f090ab3ea6e36c93d3100000001000000000000c3500003401000" + "0000000000000001channelid0340000340000340000340000340000340000340000340000340000nodeid03030303030303030303030303030303030303030303030303030303030300017f000001034003400340034003400340034003400340034003400340034003400340034003400340034003400340034003400003401000", + "0000000000000002channelid0340200340200340200340200340200340200340200340200340200nodeid03030303030303030303030303030303030303030303030303030303030300017f000001034203420342034203420342034203420342034203420342034203420342034203420342034203420342034203420003401000", + "0000000000000003channelid0410000410000410000410000410000410000410000410000410000nodeid01010101010101010101010101010101010101010101010101010101010100017f000001041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100003401000", + "0000000000000004channelid0120000120000120000120000120000120000120000120000120000nodeid01010101010101010101010101010101010101010101010101010101010100017f000001012001200120012001200120012001200120012001200120012001200120012001200120012001200120012001200003401000", + "0000000000000005channelid1520015200152001520015200152001520015200152001520015200nodeid01010101010101010101010101010101010101010101010101010101010100017f000001015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520003401000", + "0000000000000006channelid1240012400124001240012400124001240012400124001240012400nodeid02020202020202020202020202020202020202020202020202020202020200017f000001012401240124012401240124012401240124012401240124012401240124012401240124012401240124012401240003401000" ] } } diff --git a/doc/schemas/lightning-txdiscard.json b/doc/schemas/lightning-txdiscard.json index 3def4f741e74..21b0575b686d 100644 --- a/doc/schemas/lightning-txdiscard.json +++ b/doc/schemas/lightning-txdiscard.json @@ -64,12 +64,12 @@ "id": "example:txdiscard#1", "method": "txdiscard", "params": [ - "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67" + "txidtxprep000100001000010000100001000010000100001000010000100001" ] }, "response": { - "unsigned_tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020a056363be8c7dbb511098cc50fbca24843e6ed6de03f816465f1998a9a82a09d4183980000000000225120f1393467c717cd50de2760167d4311141a8f750c89f54fd2c900601a7da8434c95000000", - "txid": "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67" + "unsigned_tx": "0200000000000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006", + "txid": "txidtxprep000100001000010000100001000010000100001000010000100001" } }, { @@ -77,12 +77,12 @@ "id": "example:txdiscard#2", "method": "txdiscard", "params": { - "txid": "91a189eb69a436e49735ae1e8619fd96a342a4e5c63fa2baa7e9f69ecdc7434c" + "txid": "txidtxprep000300003000030000300003000030000300003000030000300003" } }, "response": { - "unsigned_tx": "02000000010cbdd42439292d7a59620493020f2a204488bfa4d640eedb84af5d3bd6479aea0000000000fdffffff0240420f00000000002200200fefd5034808bec0c94b857b7a3ddeeece7cae1b2101b2f23f1c114b14073f31b7a1f000000000002251205c54c6ff7b25c08e66a91d4256a5ca2c374ab1faf56377e8d65466cf997614ce97000000", - "txid": "91a189eb69a436e49735ae1e8619fd96a342a4e5c63fa2baa7e9f69ecdc7434c" + "unsigned_tx": "0200000000000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008", + "txid": "txidtxprep000300003000030000300003000030000300003000030000300003" } } ] diff --git a/doc/schemas/lightning-txprepare.json b/doc/schemas/lightning-txprepare.json index 09233e343148..0121f247a5dc 100644 --- a/doc/schemas/lightning-txprepare.json +++ b/doc/schemas/lightning-txprepare.json @@ -102,15 +102,15 @@ "params": [ [ { - "bcrt1q5ptrvwlgcldm2ygf3nzsl09zfpp7dmtduqlczer97xvc4x5z5zwsc2ulv4": 16777216 + "bcrt1p0002020202020202020202020202020202020202020202020202020202": 16777216 } ] ] }, "response": { - "unsigned_tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020a056363be8c7dbb511098cc50fbca24843e6ed6de03f816465f1998a9a82a09d4183980000000000225120f1393467c717cd50de2760167d4311141a8f750c89f54fd2c900601a7da8434c95000000", - "txid": "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67", - "psbt": "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAFpz79e9wou5mbmtaiB+6WfRTf8SpZxmrd6n+rIFcWewQAAAAAA/f///wLS79/eAAAAABYAFE35CMxYA4yQx9XLuFj0/q5uNmligJaYAQAAAAAWABT/hTPq8LE5vAc9KiJjjmygoIN81UsAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVAQ4gl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywBDwQBAAAAARAE/f///wABAwgAAAABAAAAAAEEIgAgoFY2O+jH27URCYzFD7yiSEPm7W3gP4FkZfGZipqCoJ0AAQMIQYOYAAAAAAABBCJRIPE5NGfHF81Q3idgFn1DERQaj3UMifVP0skAYBp9qENMAA==" + "unsigned_tx": "0200000000000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006", + "txid": "txidtxprep000100001000010000100001000010000100001000010000100001", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000" } }, { @@ -120,15 +120,15 @@ "params": { "outputs": [ { - "bcrt1q4hz6a4gtecfmy8z870cwkq2gzc0t7n9u9pu23689u55ghwewemqsv4v2zs": 16777216 + "bcrt1p0003030303030303030303030303030303030303030303030303030303": 16777216 } ] } }, "response": { - "unsigned_tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020adc5aed50bce13b21c47f3f0eb0148161ebf4cbc2878a8e8e5e5288bbb2ecec1418398000000000022512081da0d3e3051135a89e2f9d85e2eadf661f959bfb05e671097854672cfd0ac7d95000000", - "txid": "ed6c309a10273aa036d29b71cf70202291d4d4b72be353ac410e1678ecfbf74e", - "psbt": "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAFpz79e9wou5mbmtaiB+6WfRTf8SpZxmrd6n+rIFcWewQAAAAAA/f///wLS79/eAAAAABYAFE35CMxYA4yQx9XLuFj0/q5uNmligJaYAQAAAAAWABT/hTPq8LE5vAc9KiJjjmygoIN81UsAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVAQ4gl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywBDwQBAAAAARAE/f///wABAwgAAAABAAAAAAEEIgAgrcWu1QvOE7IcR/Pw6wFIFh6/TLwoeKjo5eUoi7suzsEAAQMIQYOYAAAAAAABBCJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AA==" + "unsigned_tx": "0200000000000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002000200020002", + "txid": "txidtxprep000200002000020000200002000020000200002000020000200002", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000201000" } } ] diff --git a/doc/schemas/lightning-txsend.json b/doc/schemas/lightning-txsend.json index 9aa113f01dc7..92b2a0dffff9 100644 --- a/doc/schemas/lightning-txsend.json +++ b/doc/schemas/lightning-txsend.json @@ -68,13 +68,13 @@ "id": "example:txsend#1", "method": "txsend", "params": [ - "ed6c309a10273aa036d29b71cf70202291d4d4b72be353ac410e1678ecfbf74e" + "txidtxprep000200002000020000200002000020000200002000020000200002" ] }, "response": { - "tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020adc5aed50bce13b21c47f3f0eb0148161ebf4cbc2878a8e8e5e5288bbb2ecec1418398000000000022512081da0d3e3051135a89e2f9d85e2eadf661f959bfb05e671097854672cfd0ac7d95000000", - "txid": "ed6c309a10273aa036d29b71cf70202291d4d4b72be353ac410e1678ecfbf74e", - "psbt": "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAFpz79e9wou5mbmtaiB+6WfRTf8SpZxmrd6n+rIFcWewQAAAAAA/f///wLS79/eAAAAABYAFE35CMxYA4yQx9XLuFj0/q5uNmligJaYAQAAAAAWABT/hTPq8LE5vAc9KiJjjmygoIN81UsAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVIgICrdS+fDe+nFDye7Mp6i6PaAV6YeEglyQM1Lypkk6qiU5HMEQCID5oPTp8udytiNikLxBRfm+iAL2LeYa9bJBKih0OcN2CAiApOyjSHogrEppHHuTPuUqEeLq/psjaa8cEKHXw6Hz7cQEiBgKt1L58N76cUPJ7synqLo9oBXph4SCXJAzUvKmSTqqJTgj/hTPqAAAAAAEOIJdLwjFzt7ypsGDawSq9G7FY6O1po+dNT2r1kZsV9XcsAQ8EAQAAAAEQBP3///8AAQMIAAAAAQAAAAABBCIAIK3FrtULzhOyHEfz8OsBSBYev0y8KHio6OXlKIu7Ls7BAAEDCEGDmAAAAAAAAQQiUSCB2g0+MFETWoni+dheLq32YflZv7BeZxCXhUZyz9CsfSEHPXxCgubxwYgC9mDabmKYMY13V5d4yQepeZJ7VCvUFqIJAEDR+iMDAAAAAA==" + "tx": "02000000000101txsend00011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011", + "txid": "txidtxprep000200002000020000200002000020000200002000020000200002", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100" } }, { @@ -82,13 +82,13 @@ "id": "example:txsend#2", "method": "txsend", "params": { - "txid": "e9a218878137adf2d34a8ef69151d6e288cc9b9a23f6a5e8ace1b43f03409358" + "txid": "txidtxprep000400004000040000400004000040000400004000040000400004" } }, "response": { - "tx": "02000000014ef7fbec78160e41ac53e32bb7d4d491222070cf719bd236a03a27109a306ced0100000000fdffffff0240420f0000000000220020c9ea2c65ca8cdc27bc130fe11f5e52e175475e0e31b645b1dcc3832dc4f7e78dc22d890000000000225120774b1c2a9b4b0a9dce43b46395940da2001115d400fa3667909ec86a5d36518b4e000000", - "txid": "e9a218878137adf2d34a8ef69151d6e288cc9b9a23f6a5e8ace1b43f03409358", - "psbt": "cHNidP8BAgQCAAAAAQMETgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAEAAAAA/f///wIAAAABAAAAACIAIK3FrtULzhOyHEfz8OsBSBYev0y8KHio6OXlKIu7Ls7BQYOYAAAAAAAiUSCB2g0+MFETWoni+dheLq32YflZv7BeZxCXhUZyz9CsfZUAAAABAStBg5gAAAAAACJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AQ4gTvf77HgWDkGsU+Mrt9TUkSIgcM9xm9I2oDonEJowbO0BDwQBAAAAARAE/f///wETQIRl9k9MarVBCdz+jTkHVLk/f0KpyiwelXb3+0KqyEUNKPpgLxiJskis5PEsQfEjatvrDCm8cl1CnutfbKUUTGchFj18QoLm8cGIAvZg2m5imDGNd1eXeMkHqXmSe1Qr1BaiCQBA0fojAAAAAAABAwhAQg8AAAAAAAEEIgAgyeosZcqM3Ce8Ew/hH15S4XVHXg4xtkWx3MODLcT3540AAQMIwi2JAAAAAAABBCJRIHdLHCqbSwqdzkO0Y5WUDaIAERXUAPo2Z5CeyGpdNlGLIQeEMcD3iRgEiqSnJRphfipArfPS8md+1DjVMvR3UrU8wwkA1WaCQwYAAAAA" + "tx": "02000000000101txsend00022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022", + "txid": "txidtxprep000400004000040000400004000040000400004000040000400004", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200" } } ] diff --git a/doc/schemas/lightning-unreserveinputs.json b/doc/schemas/lightning-unreserveinputs.json index 4aedcce8f43f..2f4f88d620d9 100644 --- a/doc/schemas/lightning-unreserveinputs.json +++ b/doc/schemas/lightning-unreserveinputs.json @@ -126,7 +126,7 @@ "id": "example:unreserveinputs#1", "method": "unreserveinputs", "params": { - "psbt": "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AahhAAAAAAAAIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+GZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000", "reserve": 200 } }, @@ -139,7 +139,7 @@ "id": "example:unreserveinputs#2", "method": "unreserveinputs", "params": [ - "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE+ZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000" ] }, "response": { diff --git a/doc/schemas/lightning-upgradewallet.json b/doc/schemas/lightning-upgradewallet.json index a7c5e1befffa..78a0e8dcea4d 100644 --- a/doc/schemas/lightning-upgradewallet.json +++ b/doc/schemas/lightning-upgradewallet.json @@ -99,9 +99,9 @@ } }, "response": { - "tx": "0200000001e3148821838724c371613dfe954620b99b689803f29b17e33b85f655afc812170000000000fdffffff0135143101000000002251206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b566000000", - "txid": "52b8957df7b017c4c187641491b80ca209c52b286eba60afac7292a868fdf9d0", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQBzAgAAAAEJawGuY9Yx4yHwOdSd9MWwVc46+mVaPVwiwqhZT0H1zQAAAAAA/f///wIALTEBAAAAABepFGVXKPNs/jbQGqUNMjZwRGn4SlVAh3HE1CgBAAAAF6kUfN+wjm5E/BFSxPQjIl0rcUgkip2HZQAAAAEBIAAtMQEAAAAAF6kUZVco82z+NtAapQ0yNnBEafhKVUCHIgICucDGhE4SpTHJaOVcVQeOwW2b92vpKQ/YfRzKcrSDmhdHMEQCIBsJrbJqp2dLLklUvvheXUy1uu4eIMkebSbbYkQHWItOAiBEuulzciFVMVB7Rkt5eOb53CX5hq7Vq2LbwBHB6ApUTwEBBBYAFNa5adNt/9rZhpGT9mPuSA39xzSIIgYCucDGhE4SpTHJaOVcVQeOwW2b92vpKQ/YfRzKcrSDmhcI1rlp0wAAAAABDiDjFIghg4ckw3FhPf6VRiC5m2iYA/KbF+M7hfZVr8gSFwEPBAAAAAABEAT9////AAEDCDUUMQEAAAAAAQQiUSBsJ+GVas+mHmgpLICQiIDoE0UPdUEy6KKsRxqGvxMmtSEHWnm7u0BtS8KN8F+mqHMoz7AqfhN0O+zc0d/P4HHC4BAJAH0I2ZcFAAAAAA==", + "tx": "02000000000101upgd20000200002000020000200002000020000200002000020000200002000020000200002000020000200002000020000200002000020000200002000020000200002000020000200002000020000200002000020000", + "txid": "txidupgrade200000200000200000200000200000200000200000200000200000", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000110000", "upgraded_outs": 1 } } diff --git a/doc/schemas/lightning-utxopsbt.json b/doc/schemas/lightning-utxopsbt.json index 2fca19e57fe4..a2b229c91cab 100644 --- a/doc/schemas/lightning-utxopsbt.json +++ b/doc/schemas/lightning-utxopsbt.json @@ -211,7 +211,7 @@ "15000perkw", 214, [ - "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3:1" + "utxo010101010101010101010101010101010101010101010101010101010101:1" ], null, true, @@ -221,14 +221,14 @@ ] }, "response": { - "psbt": "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AUFZ3AsAAAAAIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUreYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000510000", "feerate_per_kw": 15000, "estimated_final_weight": 657, "excess_msat": 0, "change_outnum": 0, "reservations": [ { - "txid": "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3", + "txid": "utxo010101010101010101010101010101010101010101010101010101010101", "vout": 1, "was_reserved": true, "reserved": true, @@ -246,21 +246,21 @@ "feerate": "18750perkw", "startweight": 214, "utxos": [ - "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3:1" + "utxo010101010101010101010101010101010101010101010101010101010101:1" ], "reservedok": true, "excess_as_change": true } }, "response": { - "psbt": "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AWINzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000520000", "feerate_per_kw": 18750, "estimated_final_weight": 657, "excess_msat": 0, "change_outnum": 0, "reservations": [ { - "txid": "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3", + "txid": "utxo010101010101010101010101010101010101010101010101010101010101", "vout": 1, "was_reserved": true, "reserved": true, diff --git a/doc/schemas/lightning-wait.json b/doc/schemas/lightning-wait.json index adca69fbb4bf..e2f99f13d0f0 100644 --- a/doc/schemas/lightning-wait.json +++ b/doc/schemas/lightning-wait.json @@ -342,7 +342,7 @@ "status": "pending", "partid": 0, "groupid": 1, - "payment_hash": "4c6f04eaf19dd956b616f1ba8718df40e387c4a56be36cf4e881a009cbf66899" + "payment_hash": "paymenthashwtspct20101010101010101010101010101010101010101010101" } } }, @@ -363,7 +363,7 @@ "status": "complete", "partid": 0, "groupid": 1, - "payment_hash": "4c6f04eaf19dd956b616f1ba8718df40e387c4a56be36cf4e881a009cbf66899" + "payment_hash": "paymenthashwtspct20101010101010101010101010101010101010101010101" } } } diff --git a/doc/schemas/lightning-waitanyinvoice.json b/doc/schemas/lightning-waitanyinvoice.json index 4134297580ab..cf295b97feee 100644 --- a/doc/schemas/lightning-waitanyinvoice.json +++ b/doc/schemas/lightning-waitanyinvoice.json @@ -233,16 +233,16 @@ }, "response": { "label": "lbl balance l1 to l2", - "bolt11": "lnbcrt5m1pn2s39ksp53sknyy2mxxurt4y0wqgp730z0cnm0vz3zmzth8p79xsrtmg5llxspp5dp94v59nm6c99jf7lc07zmnhqw6kyujx3mkdav7643dczgtdedfqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqdz9cftkxe6kcqfddyrvr7j57ulsfxxxkgkjyhr3k77n8v59mzs5rmuexz9lxusyhhehlemd9ujclgahln8e0n8y86stc7u8uys6mjqgqerm6q4", - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "bolt11": "lnbcrt222n1pnt3005720bolt114000101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "amount_msat": 500000000, "status": "paid", "pay_index": 1, "amount_received_msat": 500000000, - "paid_at": 1722303671, - "payment_preimage": "bed4140e1db302720d7f9547dc9127d45b115080447cce7e23cfd00b60991831", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimgdp1010101010101010101010101010101010101010101010101", "description": "description send some sats l1 to l2", - "expires_at": 1722908470, + "expires_at": 1739000000, "created_index": 1, "updated_index": 1 } @@ -258,15 +258,15 @@ }, "response": { "label": "lbl_l23", - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", + "bolt11": "lnbcrt100n1pnt2bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000bolt11invl020300000000", + "payment_hash": "paymenthashcmdpycp10cp10cp10cp10cp10cp10cp10cp10cp10cp10cp10cp10", "status": "paid", "pay_index": 2, "amount_received_msat": 9900, - "paid_at": 1722303715, - "payment_preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagec010101010101010101010101010101010101010101010101", "description": "l23 description", - "expires_at": 1722908514, + "expires_at": 1739000000, "created_index": 8, "updated_index": 2 } diff --git a/doc/schemas/lightning-waitblockheight.json b/doc/schemas/lightning-waitblockheight.json index c86e13a44720..cce4f2194e09 100644 --- a/doc/schemas/lightning-waitblockheight.json +++ b/doc/schemas/lightning-waitblockheight.json @@ -60,7 +60,7 @@ "id": "example:waitblockheight#1", "method": "waitblockheight", "params": { - "blockheight": 129, + "blockheight": 130, "timeout": 600 } }, diff --git a/doc/schemas/lightning-waitinvoice.json b/doc/schemas/lightning-waitinvoice.json index fb089dc298de..78b50b6a4f90 100644 --- a/doc/schemas/lightning-waitinvoice.json +++ b/doc/schemas/lightning-waitinvoice.json @@ -238,16 +238,16 @@ }, "response": { "label": "inv2", - "bolt11": "lnbcrt20n1pn2s38fsp55xnux6tuzuutlqhekzytnexpqj6w3q00h6e7wu08ex43rdr4xqdqpp5znq67nu5secgcf79ncjtqfdpjfqh7acaxvngcqwqsvvxwnkyl35qdq8d9h8vvsxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq9ptnru6v58v8qd58xdqypr86utn6fhssx8rwegsspfp9d975h0t47xn0hea6qrmy2ucxt4l02nkxu7va7d5lqgy8nrqmhxqpm5qauegqjjqr02", - "payment_hash": "14c1af4f9486708c27c59e24b025a192417f771d33268c01c08318674ec4fc68", + "bolt11": "lnbcrt222n1pnt3005720bolt11wtinv01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "payment_hash": "paymenthashwaitinv0101010101010101010101010101010101010101010101", "amount_msat": 2000, "status": "paid", "pay_index": 4, "amount_received_msat": 2000, - "paid_at": 1722303723, - "payment_preimage": "1bda6e78384905bc476c6f50b447cf7fbba13a2644d49d85d797a826e8b9a6a0", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagewaitinv0010101010101010101010101010101010101010101", "description": "inv2", - "expires_at": 1722908521, + "expires_at": 1739000000, "created_index": 12, "updated_index": 4 } @@ -262,16 +262,16 @@ }, "response": { "label": "inv3", - "bolt11": "lnbcrt30n1pn2s38fsp5syqds2z0hgqgf3dcxt9kp5m2rtywxm4u4hr4xe90r885rr609vgqpp52y0xdhlzrua5clpuyw4wcfk9duxwwauzcjxrs9nj00258njmdjnsdq8d9h8vvcxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqkkeex45p62vc7nfjywwfle8yhk9wemyktw2m7924cfmlthk37q6ptjd8vxyaevtejfj44yp55xllqlljxv5vz6wc3gc9jlfkwrkngscqtl0xs8", - "payment_hash": "511e66dfe21f3b4c7c3c23aaec26c56f0ce77782c48c3816727bd543ce5b6ca7", + "bolt11": "lnbcrt222n1pnt3005720bolt11wtinv02020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", + "payment_hash": "paymenthashwaitinv0202020202020202020202020202020202020202020202", "amount_msat": 3000, "status": "paid", "pay_index": 5, "amount_received_msat": 3000, - "paid_at": 1722303725, - "payment_preimage": "86e637cb70631a0db88cc8f6ef9a21457b1b85be30236efb769a611b356225cd", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagewaitinv0020202020202020202020202020202020202020202", "description": "inv3", - "expires_at": 1722908521, + "expires_at": 1739000000, "created_index": 13, "updated_index": 5 } diff --git a/doc/schemas/lightning-waitsendpay.json b/doc/schemas/lightning-waitsendpay.json index 05c91892e8bc..88dcd8641cc9 100644 --- a/doc/schemas/lightning-waitsendpay.json +++ b/doc/schemas/lightning-waitsendpay.json @@ -234,22 +234,22 @@ "id": "example:waitsendpay#1", "method": "waitsendpay", "params": { - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2" + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100" } }, "response": { "created_index": 2, "id": 2, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "groupid": 1, "updated_index": 2, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303675, - "completed_at": 1722303677, + "created_at": 1738000000, + "completed_at": 1739000000, "status": "complete", - "payment_preimage": "984a10782218478cd39e1f9a16795d756c337662067023a3b690bffdb1593f76" + "payment_preimage": "paymentpreimagew010101010101010101010101010101010101010101010101" } } ] diff --git a/doc/schemas/lightning-withdraw.json b/doc/schemas/lightning-withdraw.json index ea23f4fd9946..26c8641be790 100644 --- a/doc/schemas/lightning-withdraw.json +++ b/doc/schemas/lightning-withdraw.json @@ -104,14 +104,14 @@ "id": "example:withdraw#1", "method": "withdraw", "params": { - "destination": "bcrt1qcqqvkswps3e6ck3jmqf86f9tcaeke5z04d3tv4", + "destination": "bcrt1qcqqv0101010101010101010101010101010101", "satoshi": 555555 } }, "response": { - "tx": "0200000001187e8867dc9462f0acbf9b7ecad69c786bdb04bdc89eb0bea45db35f8cf7dd860000000000fdffffff02237a080000000000160014c000cb41c18473ac5a32d8127d24abc7736cd04f0636e30b0000000022512052021c61da23b2eda3d5000c6d812d0c9b088c237ed2a510abd94d8c3f7c421d20000000", - "txid": "faf2ac1e15fe8df73c411d404224cb481f01cabdde58df83c56d5d6050ec53a9", - "psbt": "cHNidP8BAgQCAAAAAQMEIAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGdA6aKwu4U7Zes8OwDJHp4bI3maidtrjOK6N85klZucAEAAAAA/f///wIAwusLAAAAABYAFCchPiIXtPVr0Ztsg5Pcn2G+aRIzQD/9EAEAAAAWABRz0UYcTRX0fJpAf766DfDa2wbGUGcAAAABAR8AwusLAAAAABYAFCchPiIXtPVr0Ztsg5Pcn2G+aRIzIgICB+wrNVNHEthq4DDdm/rsCOLd6h7Bzs/7lyXtessSq2ZHMEQCIEW+oeZvFbmuQidamye9/iuDhJ41SARdgZV8yWWjfq8vAiAS3no++NDmJjip3G/y4VTfQ/jiJv2jv9lQKqBUK9hQ0wEiBgIH7Cs1U0cS2GrgMN2b+uwI4t3qHsHOz/uXJe16yxKrZggnIT4iAAAAAAEOIBh+iGfclGLwrL+bfsrWnHhr2wS9yJ6wvqRds1+M992GAQ8EAAAAAAEQBP3///8AIgICLKJZZMteDpQ8BfcEOrSAECukrPM9dXeamXREWCtGR1AIwADLQQwAAAABAwgjeggAAAAAAAEEFgAUwADLQcGEc6xaMtgSfSSrx3Ns0E8M/AlsaWdodG5pbmcEAgABAAEDCAY24wsAAAAAAQQiUSBSAhxh2iOy7aPVAAxtgS0MmwiMI37SpRCr2U2MP3xCHSEHxKQ1JAGJOzVxgiryRaI4NGaYWWe35WSg4OUGHU+NcXEJAIvHqlwOAAAAAA==" + "tx": "020000000001wthdrw91000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000910009100091000", + "txid": "txidwithdraw2191000910009100091000910009100091000910009100091000", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000911000" } }, { @@ -119,19 +119,19 @@ "id": "example:withdraw#2", "method": "withdraw", "params": { - "destination": "bcrt1phtprcvhz842sxe8qw0yryvc0g6n6dw2puweklcpnfye273kjpfhs0d6d2e", + "destination": "bcrt1phtprcvhz02020202020202020202020202020202020202020202020202", "satoshi": "all", "feerate": "20000perkb", "minconf": 0, "utxos": [ - "f2f4e67dbf2791a3b57dd986418156b116b452c5fc27b077da7c529db82f06f5:0" + "utxo020202020202020202020202020202020202020202020202020202020202:1" ] } }, "response": { - "tx": "0200000001f5062fb89d527cda77b027fcc552b416b156814186d97db5a39127bf7de6f4f20000000000fdffffff0119f70e0000000000225120bac23c32e23d550364e073c832330f46a7a6b941e3b36fe0334932af46d20a6f87000000", - "txid": "41dd478136c95acc82b7669fa4c70843da2ecd04baa7c53cbe8c73d0dd98e5c1", - "psbt": "cHNidP8BAgQCAAAAAQMEhwAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQCJAgAAAAGxWGMGDX3aCdIKW4Vrs4nxXQD8LjoWZ2z3R6yqUp0MxAEAAAAA/f///wKSAA8AAAAAACJRIP2rfAH65wwI4LH5rKzKEQpTEh513FSiXnVCQW80Kur3QEIPAAAAAAAiACCWVeKnMwzYbcafjtGEWvVYDdBrFaeUA0yVceU9Vjmzl3oAAAABASuSAA8AAAAAACJRIP2rfAH65wwI4LH5rKzKEQpTEh513FSiXnVCQW80Kur3AQ4g9QYvuJ1SfNp3sCf8xVK0FrFWgUGG2X21o5Env33m9PIBDwQAAAAAARAE/f///wETQFj1/T/JtePk1+LfX9fAK4QBBwl1Xt1YmoE2cQOo/0hAvCLgwb5zSZCrDGAhxdSujHXyVo3a19wl+ayqa0/nckAhFr2SP8yeYDMCCkVocL4aDjUqc7hPoTIp/uS7zAf7okk6CQDK3xgoAAAAAAABAwgZ9w4AAAAAAAEEIlEgusI8MuI9VQNk4HPIMjMPRqemuUHjs2/gM0kyr0bSCm8hB6Jvzf+c2c5Qrvvj78smeIzuWAjjEtHW01YDo2je0daMCQBxtd2rDQAAAAz8CWxpZ2h0bmluZwQCAAEA" + "tx": "020000000002wthdrw92000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000920009200092000", + "txid": "txidwithdraw2292000920009200092000920009200092000920009200092000", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000922000" } } ] diff --git a/tests/autogenerate-rpc-examples.py b/tests/autogenerate-rpc-examples.py index 8317421bb82e..2b6c4c0798c6 100644 --- a/tests/autogenerate-rpc-examples.py +++ b/tests/autogenerate-rpc-examples.py @@ -22,23 +22,279 @@ import subprocess CWD = os.getcwd() +GENERATE_EXAMPLES = True +FUND_WALLET_AMOUNT_SAT = 200000000 +FUND_CHANNEL_AMOUNT_SAT = 10**6 REGENERATING_RPCS = [] ALL_METHOD_NAMES = [] RPCS_STATUS = [] ALL_RPC_EXAMPLES = {} -GENERATE_EXAMPLES = True - -FUND_WALLET_AMOUNT_SAT = 200000000 -FUND_CHANNEL_AMOUNT_SAT = 10**6 -LOG_FILE = 'autogenerate-examples-status.log' +EXAMPLES_JSON = {} +LOG_FILE = './tests/autogenerate-examples-status.log' +TEMP_EXAMPLES_FILE = './tests/autogenerate-examples.json' +IGNORE_RPCS_LIST = ['reckless'] + +# Constants for replacing values in examples +NEW_VALUES_LIST = { + 'root_dir': '/root/lightning', + 'tmp_dir': '/tmp/.lightning', + 'str_1': '1', + 'num_1': 1, + 'balance_msat_1': 202050000000, + 'fees_paid_msat_1': 5020000, + 'bytes_used': 1630000, + 'bytes_max': 10485760, + 'assocdata_1': 'assocdata0' + ('01' * 27), + 'hsm_secret_cdx_1': 'cl10leetsd35kw6r5de5kueedxyesqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqluplcg0lxenqd', + 'error_message_1': 'All addresses failed: 127.0.0.1:19736: Cryptographic handshake: peer closed connection (wrong key?). ', + 'configs_3_addr2': "127.0.0.1:19735", + 'closed_channel_alias_local_1': '9100000x13000000x63000', + 'closed_channel_alias_remote_1': '3500000x7300000x11000', + 'closed_channel_alias_local_2': '6500000x1100000x23000', + 'closed_channel_alias_remote_2': '5300000x1300000x55000', + 'bitcoin-rpcport': 18332, + 'blockheight_110': 110, + 'blockheight_129': 129, + 'blockheight_130': 130, + 'blockheight_131': 131, + 'blockheight_160': 160, + 'script_pubkey_1': 'scriptpubkey' + ('01' * 28), + 'script_pubkey_2': 'scriptpubkey' + ('02' * 28), + 'onion_1': 'onion' + ('10' * 1363), + 'onion_2': 'onion' + ('20' * 1363), + 'shared_secrets_1': ['sharedsecret' + ('10' * 26), 'sharedsecret' + ('11' * 26), 'sharedsecret' + ('12' * 26)], + 'shared_secrets_2': ['sharedsecret' + ('20' * 26), 'sharedsecret' + ('21' * 26), 'sharedsecret' + ('22' * 26)], + 'invreq_id_1': 'invreqid' + ('01' * 28), + 'invreq_id_2': 'invreqid' + ('02' * 28), + 'invreq_id_l1_l22': 'invreqid' + ('03' * 28), + 'invoice_1': 'lni1qqg0qe' + ('01' * 415), + 'invoice_2': 'lni1qqg0qe' + ('02' * 415), + 'funding_txid_1': 'fundingtxid001' + ('01' * 25), + 'funding_txid_2': 'fundingtxid002' + ('02' * 25), + 'signature_1': 'dcde30c4bb50bed221009d' + ('01' * 60), + 'signature_2': 'dcdepay30c4bb50bed209d' + ('02' * 60), + 'destination_1': 'bcrt1p52' + ('01' * 28), + 'destination_2': 'bcrt1qcqqv' + ('01' * 17), + 'destination_3': 'bcrt1phtprcvhz' + ('02' * 25), + 'destination_4': 'bcrt1p00' + ('02' * 28), + 'destination_5': 'bcrt1p00' + ('03' * 28), + 'funding_serial_1': 17725655605188010000, + 'funding_serial_2': 17725655605188020000, + 'funding_serial_3': 17725655605188030000, + 'funding_serial_4': 17725655605188040000, + 'funding_serial_5': 17725655605188050000, + 'l1_id': 'nodeid' + ('01' * 30), + 'l2_id': 'nodeid' + ('02' * 30), + 'l3_id': 'nodeid' + ('03' * 30), + 'l4_id': 'nodeid' + ('04' * 30), + 'l5_id': 'nodeid' + ('05' * 30), + 'l10_id': 'nodeid' + ('10' * 30), + 'l12_id': 'nodeid' + ('12' * 30), + 'l1_alias': 'JUNIORBEAM', + 'l2_alias': 'SILENTARTIST', + 'l3_alias': 'HOPPINGFIRE', + 'l4_alias': 'JUNIORFELONY', + 'l2_port': 19735, + 'l3_port': 19736, + 'l1_addr': '127.0.0.1:19734', + 'l2_addr': '127.0.0.1:19735', + 'l3_addr': '127.0.0.1:19736', + 'l4_addr': '127.0.0.1:19737', + 'l5_addr': '127.0.0.1:19738', + 'l6_addr': '127.0.0.1:19739', + 'c12': '109x1x1', + 'c23': '111x1x1', + 'c23_2': '123x1x1', + 'c25': '115x1x1', + 'c34': '125x1x1', + 'c34_2': '130x1x1', + 'c35_tx': '020000000000305fundchanneltx' + ('35000' * 99), + 'c41_tx': '020000000000401fundchanneltx' + ('41000' * 99), + 'upgrade_tx': '02000000000101upgd' + ('20000' * 34), + 'close1_tx': '02000000000101cls0' + ('01' * 200), + 'close2_tx': '02000000000101cls1' + ('02' * 200), + 'send_tx_1': '02000000000101sendpt' + ('64000' * 100), + 'send_tx_2': '02000000000102sendpt' + ('65000' * 100), + 'tx_55': '02000000000155multiw' + ('55000' * 100), + 'tx_56': '02000000000155multiw' + ('56000' * 100), + 'tx_61': '02000000000155multiw' + ('61000' * 100), + 'tx_91': '020000000001wthdrw' + ('91000' * 100), + 'tx_92': '020000000002wthdrw' + ('92000' * 100), + 'unsigned_tx_1': '0200000000' + ('0002' * 66), + 'unsigned_tx_3': '0200000000' + ('0006' * 66), + 'unsigned_tx_4': '0200000000' + ('0008' * 66), + 'multi_tx_1': '02000000000101multif' + ('50000' * 100), + 'multi_tx_2': '02000000000102multif' + ('60000' * 100), + 'ocs_tx_1': '02000000000101sgpsbt' + ('11000' * 100), + 'ocs_tx_2': '02000000000101sgpsbt' + ('12000' * 100), + 'txsend_tx_1': '02000000000101txsend' + ('00011' * 100), + 'txsend_tx_2': '02000000000101txsend' + ('00022' * 100), + 'c12_txid': 'channeltxid' + ('120000' * 9), + 'c23_txid': 'channeltxid' + ('230000' * 9), + 'c23_2_txid': 'channeltxid' + ('230200' * 9), + 'c34_txid': 'channeltxid' + ('340000' * 9), + 'c34_2_txid': 'channeltxid' + ('340200' * 9), + 'c35_txid': 'channeltxid' + ('350000' * 9), + 'c41_txid': 'channeltxid' + ('410000' * 9), + 'c1112_txid': 'channeltxid' + ('111200' * 9), + 'upgrade_txid': 'txidupgrade' + ('200000' * 9), + 'close1_txid': 'txid' + ('01' * 30), + 'close2_txid': 'txid' + ('02' * 30), + 'send_txid_1': 'txid' + ('64000' * 11), + 'send_txid_2': 'txid' + ('65000' * 11), + 'txid_55': 'txid' + ('55000' * 11), + 'txid_56': 'txid' + ('56000' * 11), + 'txid_61': 'txid' + ('61000' * 11), + 'withdraw_txid_l21': 'txidwithdraw21' + ('91000' * 10), + 'withdraw_txid_l22': 'txidwithdraw22' + ('92000' * 10), + 'txprep_txid_1': 'txidtxprep0001' + ('00001' * 10), + 'txprep_txid_2': 'txidtxprep0002' + ('00002' * 10), + 'txprep_txid_3': 'txidtxprep0003' + ('00003' * 10), + 'txprep_txid_4': 'txidtxprep0004' + ('00004' * 10), + 'multi_txid_1': 'channeltxid010' + ('50000' * 10), + 'multi_txid_2': 'channeltxid020' + ('60000' * 10), + 'utxo_1': 'utxo' + ('01' * 30), + 'ocs_txid_1': 'txidocsigned10' + ('11000' * 10), + 'ocs_txid_2': 'txidocsigned10' + ('12000' * 10), + 'close_lc_txid_1': 'txidcloselastcommitment0' + ('00001' * 8), + 'close_lc_txid_2': 'txidcloselastcommitment0' + ('00002' * 8), + 'c12_channel_id': 'channelid0' + ('120000' * 9), + 'c23_channel_id': 'channelid0' + ('230000' * 9), + 'c23_2_channel_id': 'channelid0' + ('230200' * 9), + 'c25_channel_id': 'channelid0' + ('250000' * 9), + 'c34_channel_id': 'channelid0' + ('340000' * 9), + 'c34_2_channel_id': 'channelid0' + ('340200' * 9), + 'c35_channel_id': 'channelid0' + ('350000' * 9), + 'c41_channel_id': 'channelid0' + ('410000' * 9), + 'c78_channel_id': 'channelid0' + ('780000' * 9), + 'c1112_channel_id': 'channelid0' + ('111200' * 9), + 'c910_channel_id_1': 'channelid' + ('09101' * 11), + 'c910_channel_id_2': 'channelid' + ('09102' * 11), + 'mf_channel_id_1': 'channelid' + ('11000' * 11), + 'mf_channel_id_2': 'channelid' + ('12000' * 11), + 'mf_channel_id_3': 'channelid' + ('13000' * 11), + 'mf_channel_id_4': 'channelid' + ('15200' * 11), + 'mf_channel_id_5': 'channelid' + ('12400' * 11), + 'time_at_800': 1738000000, + 'time_at_850': 1738500000, + 'time_at_900': 1739000000, + 'bolt11_l11': 'lnbcrt100n1pnt2' + ('bolt11invl010100000000' * 10), + 'bolt11_l12': 'lnbcrt100n1pnt2' + ('bolt11invl010200000000' * 10), + 'bolt11_l13': 'lnbcrt100n1pnt2' + ('bolt11invl010300000000' * 10), + 'bolt11_l21': 'lnbcrt100n1pnt2' + ('bolt11invl020100000000' * 10), + 'bolt11_l22': 'lnbcrt100n1pnt2' + ('bolt11invl020200000000' * 10), + 'bolt11_l23': 'lnbcrt100n1pnt2' + ('bolt11invl020300000000' * 10), + 'bolt11_l24': 'lnbcrt100n1pnt2' + ('bolt11invl020400000000' * 10), + 'bolt11_l25': 'lnbcrt100n1pnt2' + ('bolt11invl020500000000' * 10), + 'bolt11_l26': 'lnbcrt100n1pnt2' + ('bolt11invl020600000000' * 10), + 'bolt11_l31': 'lnbcrt100n1pnt2' + ('bolt11invl030100000000' * 10), + 'bolt11_l33': 'lnbcrt100n1pnt2' + ('bolt11invl030300000000' * 10), + 'bolt11_l34': 'lnbcrt100n1pnt2' + ('bolt11invl030400000000' * 10), + 'bolt11_l66': 'lnbcrt100n1pnt2' + ('bolt11invl060600000000' * 10), + 'bolt11_l67': 'lnbcrt100n1pnt2' + ('bolt11invl060700000000' * 10), + 'bolt11_wt_1': 'lnbcrt222n1pnt3005720bolt11wtinv' + ('01' * 160), + 'bolt11_wt_2': 'lnbcrt222n1pnt3005720bolt11wtinv' + ('02' * 160), + 'bolt11_di_1': 'lnbcrt222n1pnt3005720bolt11300' + ('01' * 170), + 'bolt11_di_2': 'lnbcrt222n1pnt3005720bolt11300' + ('01' * 170), + 'bolt11_dp_1': 'lnbcrt222n1pnt3005720bolt11400' + ('01' * 170), + 'bolt12_l21': 'lno1qgsq000bolt' + ('21000' * 24), + 'bolt12_l22': 'lno1qgsq000bolt' + ('22000' * 24), + 'bolt12_l23': 'lno1qgsq000bolt' + ('23000' * 24), + 'bolt12_l24': 'lno1qgsq000bolt' + ('24000' * 24), + 'bolt12_si_1': 'lno1qgsq000bolt' + ('si100' * 24), + 'offerid_l21': 'offeridl' + ('2100000' * 8), + 'offerid_l22': 'offeridl' + ('2200000' * 8), + 'offerid_l23': 'offeridl' + ('2300000' * 8), + 'payment_hash_l11': 'paymenthashinvl0' + ('1100' * 12), + 'payment_hash_l21': 'paymenthashinvl0' + ('2100' * 12), + 'payment_hash_l22': 'paymenthashinvl0' + ('2200' * 12), + 'payment_hash_l31': 'paymenthashinvl0' + ('3100' * 12), + 'payment_hash_l24': 'paymenthashinvl0' + ('2400' * 12), + 'payment_hash_l25': 'paymenthashinvl0' + ('2500' * 12), + 'payment_hash_l26': 'paymenthashinvl0' + ('2600' * 12), + 'payment_hash_l33': 'paymenthashinvl0' + ('3300' * 12), + 'payment_hash_l34': 'paymenthashinvl0' + ('3400' * 12), + 'payment_hash_key_1': 'paymenthashkey01' + ('k101' * 12), + 'payment_hash_key_2': 'paymenthashkey02' + ('k201' * 12), + 'payment_hash_key_3': 'paymenthashkey03' + ('k301' * 12), + 'payment_hash_cmd_pay_1': 'paymenthashcmdpy' + ('cp10' * 12), + 'payment_hash_si_1': 'paymenthashsdinv' + ('si10' * 12), + 'payment_hash_wspc_1': 'paymenthashwtspct2' + ('01' * 23), + 'payment_hash_winv_1': 'paymenthashwaitinv' + ('01' * 23), + 'payment_hash_winv_2': 'paymenthashwaitinv' + ('02' * 23), + 'payment_hash_di_1': 'paymenthashdelinv1' + ('01' * 23), + 'payment_hash_di_2': 'paymenthashdelinv2' + ('02' * 23), + 'payment_hash_dp_1': 'paymenthashdelpay1' + ('01' * 23), + 'payment_hash_dp_2': 'paymenthashdelpay2' + ('02' * 23), + 'payment_hash_dp_3': 'paymenthashdelpay3' + ('03' * 23), + 'payment_preimage_1': 'paymentpreimage1' + ('01' * 24), + 'payment_preimage_2': 'paymentpreimage2' + ('02' * 24), + 'payment_preimage_3': 'paymentpreimage3' + ('03' * 24), + 'payment_preimage_ep_1': 'paymentpreimagep' + ('01' * 24), + 'payment_preimage_ep_2': 'paymentpreimagep' + ('02' * 24), + 'payments_preimage_i_1': 'paymentpreimagei' + ('01' * 24), + 'payments_preimage_w_1': 'paymentpreimagew' + ('01' * 24), + 'payment_preimage_cmd_1': 'paymentpreimagec' + ('01' * 24), + 'payment_preimage_r_1': 'paymentpreimager' + ('01' * 24), + 'payment_preimage_r_2': 'paymentpreimager' + ('02' * 24), + 'payment_preimage_wi_1': 'paymentpreimagewaitinv0' + ('01' * 21), + 'payment_preimage_wi_2': 'paymentpreimagewaitinv0' + ('02' * 21), + 'payment_preimage_di_1': 'paymentpreimagedelinv01' + ('01' * 21), + 'payment_preimage_dp_1': 'paymentpreimgdp1' + ('01' * 24), + 'payment_secret_l11': 'paymentsecretinvl00' + ('11000' * 9), + 'payment_secret_l22': 'paymentsecretinvl00' + ('22000' * 9), + 'payment_secret_l31': 'paymentsecretinvl00' + ('31000' * 9), + 'init_psbt_1': 'cHNidP8BAgpsbt10' + ('01' * 52), + 'init_psbt_2': 'cHNidP8BAgpsbt20' + ('02' * 84), + 'init_psbt_3': 'cHNidP8BAgpsbt30' + ('03' * 92), + 'upgrade_psbt_1': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('110000' * 100), + 'psbt_1': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('711000' * 120), + 'psbt_2': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('712000' * 120), + 'psbt_3': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('713000' * 120), + 'psbt_4': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('714000' * 120), + 'psbt_5': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('715000' * 120), + 'psbt_6': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('716000' * 120), + 'psbt_7': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('911000' * 40), + 'psbt_8': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('922000' * 40), + 'psbt_9': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('101000' * 40), + 'psbt_10': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('201000' * 40), + 'psbt_12': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('401000' * 40), + 'psbt_13': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('310000' * 40), + 'psbt_14': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('410000' * 40), + 'psbt_15': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('510000' * 40), + 'psbt_16': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('520000' * 40), + 'psbt_17': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('610000' * 40), + 'psbt_18': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('710000' * 40), + 'psbt_19': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('810000' * 40), + 'psbt_20': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('910000' * 40), + 'psbt_21': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('101000' * 40), + 'psbt_22': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('111000' * 40), + 'psbt_23': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('121000' * 40), + 'psbt_24': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('011100' * 40), + 'psbt_25': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('011200' * 40), + 'psbt_26': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('022200' * 40), + 'signed_psbt_1': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('718000' * 120), + 'htlc_max_msat': 18446744073709552000, +} + +# Used for collecting values from responses and replace them with NEW_VALUES_LIST before updating examples in schema files +REPLACE_RESPONSE_VALUES = [ + {'data_keys': ['any'], 'original_value': re.compile(re.escape(CWD)), 'new_value': NEW_VALUES_LIST['root_dir']}, + {'data_keys': ['any'], 'original_value': re.compile(r'/tmp/ltests-[^/]+/test_generate_examples_[^/]+/lightning-[^/]+'), 'new_value': NEW_VALUES_LIST['tmp_dir']}, + {'data_keys': ['outnum', 'funding_outnum', 'vout'], 'original_value': '0', 'new_value': NEW_VALUES_LIST['str_1']}, + {'data_keys': ['outnum', 'funding_outnum', 'vout'], 'original_value': 0, 'new_value': NEW_VALUES_LIST['num_1']}, + {'data_keys': ['outnum', 'funding_outnum', 'vout'], 'original_value': 2, 'new_value': NEW_VALUES_LIST['num_1']}, + {'data_keys': ['outnum', 'funding_outnum', 'vout'], 'original_value': 3, 'new_value': NEW_VALUES_LIST['num_1']}, +] if os.path.exists(LOG_FILE): open(LOG_FILE, 'w').close() logging.basicConfig(level=logging.INFO, - format='%(levelname)s - %(message)s', + format='%(asctime)s - %(levelname)s - %(message)s', + datefmt='%H:%M:%S', handlers=[ - # logging.FileHandler(LOG_FILE), + logging.FileHandler(LOG_FILE), logging.StreamHandler() ]) @@ -51,131 +307,126 @@ def __init__(self, message): super().__init__(self.message) -def update_example(node, method, params, res=None, description=None, execute=True, filename=None): - """Update examples in JSON files with rpc calls and responses""" +def update_list_responses(data, list_key=None, slice_upto=5, update_func=None, sort=False, sort_key=None): + """Update responses received from various list rpcs to limit the number of items in the list, sort the list and update the values in the list""" + if list_key is not None: + if isinstance(data[list_key], list): + data[list_key] = data[list_key][0:slice_upto] + + if sort: + data[list_key] = sorted(data[list_key], key=lambda x: x[sort_key]) if sort_key is not None else {k: data[list_key][k] for k in sorted(data[list_key])} + + if update_func is not None and isinstance(data[list_key], list): + for i, item in enumerate(data[list_key]): + update_func(item, i) + return data + + +def replace_values_in_json(data, data_key): + """Replace values in JSON data with new values before saving them in the schema files""" + if isinstance(data, dict): + return {key: replace_values_in_json(value, key) for key, value in data.items()} + elif isinstance(data, list): + for replace_value in REPLACE_RESPONSE_VALUES: + if any(item == 'any' or item == data_key for item in replace_value['data_keys']) and data == replace_value['original_value']: + data = replace_value['new_value'] + return data + return [replace_values_in_json(item, 'listitem') for item in data] + elif isinstance(data, str): + for replace_value in REPLACE_RESPONSE_VALUES: + if any(item == data_key for item in replace_value['data_keys']) and data == replace_value['original_value']: + data = replace_value['new_value'] + break + elif any(item == 'any' for item in replace_value['data_keys']) and isinstance(replace_value['original_value'], str) and data == replace_value['original_value']: + data = data.replace(replace_value['original_value'], replace_value['new_value']) + break + elif replace_value['data_keys'] == ['any'] and isinstance(replace_value['original_value'], re.Pattern): + if re.match(replace_value['original_value'], data): + data = replace_value['original_value'].sub(replace_value['new_value'], data) + break + return data + elif isinstance(data, (int, float)): + for replace_value in REPLACE_RESPONSE_VALUES: + if any(item == 'any' or item == data_key for item in replace_value['data_keys']) and data == replace_value['original_value']: + data = replace_value['new_value'] + break + return data + else: + return data + + +def update_examples_in_schema_files(): + """Update examples in JSON schema files""" try: - def replace_local_paths(data, replacements): - """Replace local paths in JSON objects""" + # For testing + if os.path.exists(TEMP_EXAMPLES_FILE): + open(TEMP_EXAMPLES_FILE, 'w').close() + with open(TEMP_EXAMPLES_FILE, 'w+', encoding='utf-8') as file: + json.dump({'new_values_list': NEW_VALUES_LIST, 'replace_response_values': REPLACE_RESPONSE_VALUES[4:], 'examples_json': EXAMPLES_JSON}, file, indent=2, ensure_ascii=False) + + updated_examples = {} + for method, method_examples in EXAMPLES_JSON.items(): try: - # For dictionary or list, recursively replace paths - if isinstance(data, dict): - return {k: replace_local_paths(v, replacements) for k, v in data.items()} - elif isinstance(data, list): - return [replace_local_paths(v, replacements) for v in data] - # Replace when it is string - elif isinstance(data, str): - for old_path, new_path in replacements: - data = re.sub(old_path, new_path, data) - return data - # For other data types, return as is - else: - return data + global CWD + file_path = os.path.join(CWD, 'doc', 'schemas', f'lightning-{method}.json') if method != 'sql' else os.path.join(CWD, 'doc', 'schemas', f'lightning-{method}-template.json') + logger.info(f'Updating examples for {method} in file {file_path}') + with open(file_path, 'r+', encoding='utf-8') as file: + data = json.load(file) + updated_examples[method] = replace_values_in_json(method_examples, 'examples')['examples'] + data['examples'] = updated_examples[method] + file.seek(0) + json.dump(data, file, indent=2, ensure_ascii=False) + file.write('\n') + file.truncate() + except FileNotFoundError as fnf_error: + logger.error(f'File not found error {fnf_error} for {file_path}') except Exception as e: - logger.error(f'Error in replacing local paths: {e}') - - def replace_with_example_values(schema, res, idx): - """Replace the response values with the 'example_values' from the schema""" - def update_value(schema, res, idx): - if isinstance(res, dict): - for key, value in res.items(): - if key in schema.get('properties', {}): - prop_schema = schema['properties'][key] - if 'example_values' in prop_schema: - if prop_schema['example_values'][idx]: - res[key] = prop_schema['example_values'][idx] - else: - update_value(prop_schema, value, idx) - elif isinstance(res, list): - for index, item in enumerate(res): - if 'items' in schema: - update_value(schema['items'], item, idx) - - update_value(schema['response'], res, idx) - return res - - def format_json_with_jq(json_data): - """Formats the JSON data with jq to avoid check-fmt-schemas errors. - It is because check-fmt-schemas uses jq to format the JSON data and compare the difference. - For example, jq will convert 18446744073709551685 to 18446744073709552000 before comparing. - JQ behaves this way because it uses C doubles to represent numbers, and on pretty much all - modern systems that's an IEEE 754 double, which can only represent integers without loss - between -2^53..2^53. 125276004817190914 is about 14 times larger than the largest integer - that jq can represent losslessly, therefore jq can only approximate it. - Reference: https://github.com/jqlang/jq/issues/369 - """ - jq_command = 'jq .' - if not isinstance(json_data, str): - json_data = json.dumps(json_data) - - # Run the jq command and capture the output - result = subprocess.run( - jq_command, - input=json_data, - text=True, - capture_output=True, - shell=True - ) - if result.returncode != 0: - logger.error(f"Error running jq: {result.stderr}") - return json.loads(result.stdout) - - global CWD, ALL_RPC_EXAMPLES, REGENERATING_RPCS, RPCS_STATUS - # Usually file name is same as method name, but `sql` is an exception; - # For sql, the `sql-template` file should be updated with examples then this template with finally generate the sql file with tables - # See doc/Makefile `doc/schemas/lightning-sql.json` for more details - file_path = os.path.join(CWD, 'doc', 'schemas', f'lightning-{method}.json') if filename is None else os.path.join(CWD, 'doc', 'schemas', f'lightning-{filename}.json') - with open(file_path, 'r+', encoding='utf-8') as file: - schema = json.load(file) - method_id = len(schema['examples']) + 1 if 'examples' in schema else 1 - req = { - 'id': f'example:{method}#{method_id}', - 'method': method, - 'params': params - } - logger.info(f'Method \'{method}\', Params {params}') - # Execute the RPC call and get the response - if execute: - res = node.rpc.call(method, params) - logger.info(f'{method} response: {res}') - # Return response without updating the file because user doesn't want to update the example - # Executing the method and returning the response is useful for further example updates - if method not in REGENERATING_RPCS: - return res - else: - # Replace local path in the request with default path - if method == 'plugin' and 'plugin' in req['params']: - req['params']['plugin'] = req['params']['plugin'].replace(CWD, '/root/lightning') - methods_to_replace_path = ['commando', 'listconfigs', 'plugin'] - # Replace local paths in responses to ensure the example's consistency for different users - if method in methods_to_replace_path: - replacements = [ - (CWD, '/root/lightning'), - (r'/tmp/ltests-[^/]+/test_generate_examples_[^/]+/lightning-[^/]+', '/tmp/.lightning') - ] - res = replace_local_paths(res, replacements) - # Format the JSON data with jq to avoid check-fmt-schemas errors - res = format_json_with_jq(res) - res = replace_with_example_values(schema, res, method_id - 1) - # Create the example key with description, request & response - schema.setdefault('examples', []).append({'request': req, 'response': res} if description is None else {'description': description, 'request': req, 'response': res}) - # Update the file with the new example - file.seek(0) - json.dump(schema, file, indent=2, ensure_ascii=False) - file.write('\n') - file.truncate() - logger.info(f'Updated {method}#{method_id}') - for rpc in ALL_RPC_EXAMPLES: - if rpc['method'] == method: - rpc['executed'] += 1 - if rpc['executed'] == rpc['num_examples']: - RPCS_STATUS[REGENERATING_RPCS.index(method)] = True - break - # Exit if listed commands have been executed - if all(RPCS_STATUS): - raise TaskFinished('All Done!!!') - return res - except FileNotFoundError as fnf_error: - logger.error(f'File not found error {fnf_error} at: {file_path}') + logger.error(f'Error saving example in file {file_path}: {e}') + except Exception as e: + logger.error(f'Error updating examples in schema files: {e}') + + # For testing + if os.path.exists(TEMP_EXAMPLES_FILE): + open(TEMP_EXAMPLES_FILE, 'w').close() + with open(TEMP_EXAMPLES_FILE, 'w+', encoding='utf-8') as file: + json.dump({'new_values_list': NEW_VALUES_LIST, 'replace_response_values': REPLACE_RESPONSE_VALUES[4:], 'examples_json': EXAMPLES_JSON, 'updated_examples_json': updated_examples}, file, indent=2, ensure_ascii=False) + + logger.info(f'Updated All Examples in Schema Files!') + return None + + +def update_example(node, method, params, res=None, description=None, execute=True, filename=None): + """Add example request, response and other details in json array for future use""" + method_examples = EXAMPLES_JSON.get(method, {'examples': []}) + method_id = len(method_examples['examples']) + 1 + req = { + 'id': f'example:{method}#{method_id}', + 'method': method, + 'params': params + } + logger.info(f'Method \'{method}\', Params {params}') + # Execute the RPC call and get the response + if execute: + res = node.rpc.call(method, params) + logger.info(f'{method} response: {res}') + # Return response without updating the file because user doesn't want to update the example + # Executing the method and returning the response is useful for further example updates + if method not in REGENERATING_RPCS: + return res + else: + method_examples['examples'].append({'request': req, 'response': res} if description is None else {'description': description, 'request': req, 'response': res}) + EXAMPLES_JSON[method] = method_examples + logger.info(f'Updated {method}#{method_id} example json') + for rpc in ALL_RPC_EXAMPLES: + if rpc['method'] == method: + rpc['executed'] += 1 + if rpc['executed'] == rpc['num_examples']: + RPCS_STATUS[REGENERATING_RPCS.index(method)] = True + break + # Exit if listed commands have been executed + if all(RPCS_STATUS): + raise TaskFinished('All Done!!!') + return res def setup_test_nodes(node_factory, bitcoind): @@ -206,8 +457,8 @@ def setup_test_nodes(node_factory, bitcoind): 'dev-hsmd-no-preapprove-check': None, 'allow-deprecated-apis': True, 'allow_bad_gossip': True, - 'broken_log': '.*', # plugin-topology: DEPRECATED API USED: *, lightningd-3: had memleak messages, lightningd: MEMLEAK:, lightningd: init_cupdate for unknown scid etc. - 'dev-bitcoind-poll': 3, # Default 1; increased to avoid rpc failures + 'broken_log': '.*', + 'dev-bitcoind-poll': 3, # Default 1; increased to avoid rpc failures }.copy() for i in range(6) ] @@ -220,22 +471,22 @@ def setup_test_nodes(node_factory, bitcoind): bitcoind.generate_block(1) l1.daemon.wait_for_log('Owning output .* txid {} CONFIRMED'.format(txid)) # Doing it with 'reserved ok' should have 1. We use a big feerate so we can get over the RBF hump - update_example(node=l1, method='upgradewallet', params={'feerate': 'urgent', 'reservedok': True}) + upgrade_res2 = update_example(node=l1, method='upgradewallet', params={'feerate': 'urgent', 'reservedok': True}) # Fund node wallets for further transactions fund_nodes = [l1, l2, l3, l4, l5] for node in fund_nodes: node.fundwallet(FUND_WALLET_AMOUNT_SAT) # Connect nodes and fund channels - update_example(node=l2, method='getinfo', params={}) + getinfo_res2 = update_example(node=l2, method='getinfo', params={}) update_example(node=l1, method='connect', params={'id': l2.info['id'], 'host': 'localhost', 'port': l2.daemon.port}) update_example(node=l2, method='connect', params={'id': l3.info['id'], 'host': 'localhost', 'port': l3.daemon.port}) l3.rpc.connect(l4.info['id'], 'localhost', l4.port) l2.rpc.connect(l5.info['id'], 'localhost', l5.port) - c12, _ = l1.fundchannel(l2, FUND_CHANNEL_AMOUNT_SAT) + c12, c12res = l1.fundchannel(l2, FUND_CHANNEL_AMOUNT_SAT) c23, c23res = l2.fundchannel(l3, FUND_CHANNEL_AMOUNT_SAT) - c34, _ = l3.fundchannel(l4, FUND_CHANNEL_AMOUNT_SAT) - c25, _ = l2.fundchannel(l5, announce_channel=False) + c34, c34res = l3.fundchannel(l4, FUND_CHANNEL_AMOUNT_SAT) + c25, c25res = l2.fundchannel(l5, announce_channel=False) mine_funding_to_announce(bitcoind, [l1, l2, l3, l4]) l1.wait_channel_active(c12) l1.wait_channel_active(c23) @@ -245,7 +496,43 @@ def setup_test_nodes(node_factory, bitcoind): l2.rpc.pay(l3.rpc.invoice('500000sat', 'lbl balance l2 to l3', 'description send some sats l2 to l3')['bolt11']) l2.rpc.pay(l5.rpc.invoice('500000sat', 'lbl balance l2 to l5', 'description send some sats l2 to l5')['bolt11']) l3.rpc.pay(l4.rpc.invoice('500000sat', 'lbl balance l3 to l4', 'description send some sats l3 to l4')['bolt11']) - return l1, l2, l3, l4, l5, l6, c12, c23, c25, c34, c23res + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['any', 'id', 'pubkey', 'destination'], 'original_value': l1.info['id'], 'new_value': NEW_VALUES_LIST['l1_id']}, + {'data_keys': ['any', 'id', 'pubkey', 'destination'], 'original_value': l2.info['id'], 'new_value': NEW_VALUES_LIST['l2_id']}, + {'data_keys': ['any', 'id', 'pubkey', 'destination'], 'original_value': l3.info['id'], 'new_value': NEW_VALUES_LIST['l3_id']}, + {'data_keys': ['any', 'id', 'pubkey', 'destination'], 'original_value': l4.info['id'], 'new_value': NEW_VALUES_LIST['l4_id']}, + {'data_keys': ['any', 'id', 'pubkey', 'destination'], 'original_value': l5.info['id'], 'new_value': NEW_VALUES_LIST['l5_id']}, + {'data_keys': ['alias'], 'original_value': l1.info['alias'], 'new_value': NEW_VALUES_LIST['l1_alias']}, + {'data_keys': ['netaddr'], 'original_value': [f'127.0.0.1:{l1.info["binding"][0]["port"]}'], 'new_value': [NEW_VALUES_LIST['l1_addr']]}, + {'data_keys': ['alias'], 'original_value': l2.info['alias'], 'new_value': NEW_VALUES_LIST['l2_alias']}, + {'data_keys': ['port'], 'original_value': l2.info['binding'][0]['port'], 'new_value': NEW_VALUES_LIST['l2_port']}, + {'data_keys': ['netaddr'], 'original_value': [f'127.0.0.1:{l2.info["binding"][0]["port"]}'], 'new_value': [NEW_VALUES_LIST['l2_addr']]}, + {'data_keys': ['version'], 'original_value': l2.info['version'], 'new_value': l2.info['version'].split('-')[0]}, + {'data_keys': ['blockheight'], 'original_value': getinfo_res2['blockheight'], 'new_value': NEW_VALUES_LIST['blockheight_110']}, + {'data_keys': ['alias'], 'original_value': l3.info['alias'], 'new_value': NEW_VALUES_LIST['l3_alias']}, + {'data_keys': ['port'], 'original_value': l3.info['binding'][0]['port'], 'new_value': NEW_VALUES_LIST['l3_port']}, + {'data_keys': ['addr'], 'original_value': f'127.0.0.1:{l3.info["binding"][0]["port"]}', 'new_value': NEW_VALUES_LIST['l3_addr']}, + {'data_keys': ['netaddr'], 'original_value': [f'127.0.0.1:{l3.info["binding"][0]["port"]}'], 'new_value': [NEW_VALUES_LIST['l3_addr']]}, + {'data_keys': ['alias'], 'original_value': l4.info['alias'], 'new_value': NEW_VALUES_LIST['l4_alias']}, + {'data_keys': ['netaddr'], 'original_value': [f'127.0.0.1:{l4.info["binding"][0]["port"]}'], 'new_value': [NEW_VALUES_LIST['l4_addr']]}, + {'data_keys': ['any', 'scid', 'channel', 'short_channel_id', 'in_channel'], 'original_value': c12, 'new_value': NEW_VALUES_LIST['c12']}, + {'data_keys': ['netaddr'], 'original_value': [f'127.0.0.1:{l5.info["binding"][0]["port"]}'], 'new_value': [NEW_VALUES_LIST['l5_addr']]}, + {'data_keys': ['netaddr'], 'original_value': [f'127.0.0.1:{l6.info["binding"][0]["port"]}'], 'new_value': [NEW_VALUES_LIST['l6_addr']]}, + {'data_keys': ['txid', 'funding_txid'], 'original_value': c12res['txid'], 'new_value': NEW_VALUES_LIST['c12_txid']}, + {'data_keys': ['channel_id', 'account'], 'original_value': c12res['channel_id'], 'new_value': NEW_VALUES_LIST['c12_channel_id']}, + {'data_keys': ['scid', 'channel', 'short_channel_id', 'id', 'out_channel'], 'original_value': c23, 'new_value': NEW_VALUES_LIST['c23']}, + {'data_keys': ['txid'], 'original_value': c23res['txid'], 'new_value': NEW_VALUES_LIST['c23_txid']}, + {'data_keys': ['channel_id', 'account', 'origin', 'originating_account'], 'original_value': c23res['channel_id'], 'new_value': NEW_VALUES_LIST['c23_channel_id']}, + {'data_keys': ['scid', 'channel', 'short_channel_id'], 'original_value': c34, 'new_value': NEW_VALUES_LIST['c34']}, + {'data_keys': ['txid'], 'original_value': c34res['txid'], 'new_value': NEW_VALUES_LIST['c34_txid']}, + {'data_keys': ['channel_id', 'account', 'origin'], 'original_value': c34res['channel_id'], 'new_value': NEW_VALUES_LIST['c34_channel_id']}, + {'data_keys': ['scid', 'channel', 'short_channel_id', 'id'], 'original_value': c25, 'new_value': NEW_VALUES_LIST['c25']}, + {'data_keys': ['channel_id', 'account'], 'original_value': c25res['channel_id'], 'new_value': NEW_VALUES_LIST['c25_channel_id']}, + {'data_keys': ['tx'], 'original_value': upgrade_res2['tx'], 'new_value': NEW_VALUES_LIST['upgrade_tx']}, + {'data_keys': ['txid'], 'original_value': upgrade_res2['txid'], 'new_value': NEW_VALUES_LIST['upgrade_txid']}, + {'data_keys': ['initialpsbt', 'psbt', 'signed_psbt'], 'original_value': upgrade_res2['psbt'], 'new_value': NEW_VALUES_LIST['upgrade_psbt_1']}, + ]) + return l1, l2, l3, l4, l5, l6, c12, c23, c25 except TaskFinished: raise except Exception as e: @@ -261,26 +548,34 @@ def generate_transactions_examples(l1, l2, l3, l4, l5, c25, bitcoind): inv_l31 = update_example(node=l3, method='invoice', params={'amount_msat': 10**4, 'label': 'lbl_l31', 'description': 'Invoice description l31'}) route_l1_l3 = update_example(node=l1, method='getroute', params={'id': l3.info['id'], 'amount_msat': 10**4, 'riskfactor': 1})['route'] inv_l32 = update_example(node=l3, method='invoice', params={'amount_msat': '50000msat', 'label': 'lbl_l32', 'description': 'l32 description'}) - update_example(node=l2, method='getroute', params={'id': l4.info['id'], 'amount_msat': 500000, 'riskfactor': 10, 'cltv': 9}) - update_example(node=l1, method='sendpay', params={'route': route_l1_l3, 'payment_hash': inv_l31['payment_hash'], 'payment_secret': inv_l31['payment_secret']}) - update_example(node=l1, method='waitsendpay', params={'payment_hash': inv_l31['payment_hash']}) - update_example(node=l1, method='keysend', params={'destination': l3.info['id'], 'amount_msat': 10000}) - update_example(node=l1, method='keysend', params={'destination': l4.info['id'], 'amount_msat': 10000000, 'extratlvs': {'133773310': '68656c6c6f776f726c64', '133773312': '66696c7465726d65'}}) + update_example(node=l2, method='getroute', params={'id': l4.info['id'], 'amount_msat': 500000, 'riskfactor': 10, 'cltv': 9})['route'] + sendpay_res1 = update_example(node=l1, method='sendpay', params={'route': route_l1_l3, 'payment_hash': inv_l31['payment_hash'], 'payment_secret': inv_l31['payment_secret']}) + waitsendpay_res1 = update_example(node=l1, method='waitsendpay', params={'payment_hash': inv_l31['payment_hash']}) + keysend_res1 = update_example(node=l1, method='keysend', params={'destination': l3.info['id'], 'amount_msat': 10000}) + keysend_res2 = update_example(node=l1, method='keysend', params={'destination': l4.info['id'], 'amount_msat': 10000000, 'extratlvs': {'133773310': '68656c6c6f776f726c64', '133773312': '66696c7465726d65'}}) + scid = only_one([channel for channel in l2.rpc.listpeerchannels()['channels'] if channel['peer_id'] == l3.info['id']])['alias']['remote'] routehints = [[{ - 'scid': only_one([channel for channel in l2.rpc.listpeerchannels()['channels'] if channel['peer_id'] == l3.info['id']])['alias']['remote'], + 'scid': scid, 'id': l2.info['id'], 'feebase': '1msat', 'feeprop': 10, 'expirydelta': 9, }]] - update_example(node=l1, method='keysend', params={'destination': l3.info['id'], 'amount_msat': 10000, 'routehints': routehints}) + example_routehints = [[{ + 'scid': NEW_VALUES_LIST['c23'], + 'id': NEW_VALUES_LIST['l2_id'], + 'feebase': '1msat', + 'feeprop': 10, + 'expirydelta': 9, + }]] + keysend_res3 = update_example(node=l1, method='keysend', params={'destination': l3.info['id'], 'amount_msat': 10000, 'routehints': routehints}) inv_l11 = l1.rpc.invoice('10000msat', 'lbl_l11', 'l11 description') inv_l21 = l2.rpc.invoice('any', 'lbl_l21', 'l21 description') inv_l22 = l2.rpc.invoice('200000msat', 'lbl_l22', 'l22 description') inv_l33 = l3.rpc.invoice('100000msat', 'lbl_l33', 'l33 description') inv_l34 = l3.rpc.invoice(4000, 'failed', 'failed description') - update_example(node=l1, method='pay', params=[inv_l32['bolt11']]) - update_example(node=l2, method='pay', params={'bolt11': inv_l33['bolt11']}) + pay_res1 = update_example(node=l1, method='pay', params=[inv_l32['bolt11']]) + pay_res2 = update_example(node=l2, method='pay', params={'bolt11': inv_l33['bolt11']}) # Hops, create and send onion for onion routing def truncate_encode(i: int): @@ -335,17 +630,22 @@ def serialize_payload_final_tlv(n, payment_secret: str, blockheight: int = 0): inv = l4.rpc.invoice(amt, "lbl l4", "desc l4") first_hop = route[0] hops = [] + example_hops = [] + i = 1 for h, n in zip(route[:-1], route[1:]): hops.append({'pubkey': h['id'], 'payload': serialize_payload_tlv(n, blockheight)}) + example_hops.append({'pubkey': h['id'], 'payload': 'payload0' + ((str(i) + '0') * 13)}) + i += 1 hops.append({'pubkey': route[-1]['id'], 'payload': serialize_payload_final_tlv(route[-1], inv['payment_secret'], blockheight)}) - onion = update_example(node=l1, method='createonion', params={'hops': hops, 'assocdata': inv['payment_hash']}) - update_example(node=l1, method='createonion', params=[hops, inv['payment_hash'], '41' * 32]) - update_example(node=l1, method='sendonion', params={'onion': onion['onion'], 'first_hop': first_hop, 'payment_hash': inv['payment_hash']}) + example_hops.append({'pubkey': route[-1]['id'], 'payload': 'payload0' + ((str(i) + '0') * 13)}) + onion_res1 = update_example(node=l1, method='createonion', params={'hops': hops, 'assocdata': inv['payment_hash']}) + onion_res2 = update_example(node=l1, method='createonion', params={'hops': hops, 'assocdata': inv['payment_hash'], 'session_key': '41' * 32}) + sendonion_res1 = update_example(node=l1, method='sendonion', params={'onion': onion_res1['onion'], 'first_hop': first_hop, 'payment_hash': inv['payment_hash']}) l1.rpc.waitsendpay(payment_hash=inv['payment_hash']) # Close channels examples - update_example(node=l2, method='close', params={'id': l3.info['id'], 'unilateraltimeout': 1}) - update_example(node=l3, method='close', params={'id': l4.info['id'], 'destination': l4.rpc.newaddr()['bech32']}) + close_res1 = update_example(node=l2, method='close', params={'id': l3.info['id'], 'unilateraltimeout': 1}) + close_res2 = update_example(node=l3, method='close', params={'id': l4.info['id'], 'destination': l4.rpc.newaddr()['bech32']}) bitcoind.generate_block(1) sync_blockheight(bitcoind, [l1, l2, l3, l4]) @@ -355,30 +655,109 @@ def serialize_payload_final_tlv(n, payment_secret: str, blockheight: int = 0): l1.rpc.waitsendpay(inv_l34['payment_hash']) # Reopen channels for further examples - c23, _ = l2.fundchannel(l3, FUND_CHANNEL_AMOUNT_SAT) - l3.fundchannel(l4, FUND_CHANNEL_AMOUNT_SAT) + c23_2, c23res2 = l2.fundchannel(l3, FUND_CHANNEL_AMOUNT_SAT) + c34_2, c34res2 = l3.fundchannel(l4, FUND_CHANNEL_AMOUNT_SAT) mine_funding_to_announce(bitcoind, [l3, l4]) - l2.wait_channel_active(c23) - update_example(node=l2, method='setchannel', params={'id': c23, 'ignorefeelimits': True}) + l2.wait_channel_active(c23_2) + update_example(node=l2, method='setchannel', params={'id': c23_2, 'ignorefeelimits': True}) update_example(node=l2, method='setchannel', params={'id': c25, 'feebase': 4000, 'feeppm': 300, 'enforcedelay': 0}) # Some more invoices for signing and preapproving - inv_l12 = l1.rpc.invoice(1000, 'label inv_l12', 'description inv_l12')['bolt11'] - inv_l24 = l2.rpc.invoice(123000, 'label inv_l24', 'description inv_l24', 3600)['bolt11'] - inv_l25 = l2.rpc.invoice(124000, 'label inv_l25', 'description inv_l25', 3600)['bolt11'] - inv_l26 = l2.rpc.invoice(125000, 'label inv_l26', 'description inv_l26', 3600)['bolt11'] - update_example(node=l2, method='signinvoice', params={'invstring': inv_l12}) - update_example(node=l3, method='signinvoice', params=[inv_l26]) + inv_l12 = l1.rpc.invoice(1000, 'label inv_l12', 'description inv_l12') + inv_l24 = l2.rpc.invoice(123000, 'label inv_l24', 'description inv_l24', 3600) + inv_l25 = l2.rpc.invoice(124000, 'label inv_l25', 'description inv_l25', 3600) + inv_l26 = l2.rpc.invoice(125000, 'label inv_l26', 'description inv_l26', 3600) + signinv_res1 = update_example(node=l2, method='signinvoice', params={'invstring': inv_l12['bolt11']}) + signinv_res2 = update_example(node=l3, method='signinvoice', params=[inv_l26['bolt11']]) update_example(node=l1, method='preapprovekeysend', params={'destination': l2.info['id'], 'payment_hash': '00' * 32, 'amount_msat': 1000}) update_example(node=l5, method='preapprovekeysend', params=[l5.info['id'], '01' * 32, 2000]) - update_example(node=l1, method='preapproveinvoice', params={'bolt11': inv_l24}) - update_example(node=l1, method='preapproveinvoice', params=[inv_l25]) + update_example(node=l1, method='preapproveinvoice', params={'bolt11': inv_l24['bolt11']}) + update_example(node=l1, method='preapproveinvoice', params=[inv_l25['bolt11']]) inv_req = update_example(node=l2, method='invoicerequest', params={'amount': 1000000, 'description': 'Simple test'}) - update_example(node=l1, method='sendinvoice', params={'invreq': inv_req['bolt12'], 'label': 'test sendinvoice'}) + sendinvoice_res1 = update_example(node=l1, method='sendinvoice', params={'invreq': inv_req['bolt12'], 'label': 'test sendinvoice'}) inv_l13 = l1.rpc.invoice(amount_msat=100000, label='lbl_l13', description='l13 description', preimage='01' * 32) - update_example(node=l2, method='createinvoice', params={'invstring': inv_l13['bolt11'], 'label': 'lbl_l13', 'preimage': '01' * 32}) + createinv_res1 = update_example(node=l2, method='createinvoice', params={'invstring': inv_l13['bolt11'], 'label': 'lbl_l13', 'preimage': '01' * 32}) + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['tx'], 'original_value': close_res1['tx'], 'new_value': NEW_VALUES_LIST['close1_tx']}, + {'data_keys': ['txid', 'spending_txid'], 'original_value': close_res1['txid'], 'new_value': NEW_VALUES_LIST['close1_txid']}, + {'data_keys': ['tx'], 'original_value': close_res2['tx'], 'new_value': NEW_VALUES_LIST['close2_tx']}, + {'data_keys': ['txid'], 'original_value': close_res2['txid'], 'new_value': NEW_VALUES_LIST['close2_txid']}, + {'data_keys': ['any', 'bolt11'], 'original_value': createinv_res1['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l21']}, + {'data_keys': ['payment_hash'], 'original_value': createinv_res1['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_l21']}, + {'data_keys': ['expires_at'], 'original_value': createinv_res1['expires_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'data_keys': ['payment_hash'], 'original_value': inv_l31['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_l31']}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l31['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l31']}, + {'data_keys': ['payment_secret'], 'original_value': inv_l31['payment_secret'], 'new_value': NEW_VALUES_LIST['payment_secret_l31']}, + {'data_keys': ['expires_at'], 'original_value': inv_l31['expires_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'data_keys': ['payment_hash'], 'original_value': inv_l32['payment_hash'], 'new_value': 'paymenthashinvl0' + ('3200' * 12)}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l32['bolt11'], 'new_value': 'lnbcrt100n1pnt2' + ('bolt11invl032000000000' * 10)}, + {'data_keys': ['payment_secret'], 'original_value': inv_l32['payment_secret'], 'new_value': 'paymentsecretinvl000' + ('3200' * 11)}, + {'data_keys': ['expires_at'], 'original_value': inv_l32['expires_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'data_keys': ['payment_hash'], 'original_value': inv_l11['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_l11']}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l11['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l11']}, + {'data_keys': ['payment_secret'], 'original_value': inv_l11['payment_secret'], 'new_value': NEW_VALUES_LIST['payment_secret_l11']}, + {'data_keys': ['expires_at'], 'original_value': inv_l11['expires_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'data_keys': ['payment_hash'], 'original_value': inv_l21['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_l21']}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l21['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l21']}, + {'data_keys': ['payment_hash'], 'original_value': inv_l22['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_l22']}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l22['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l22']}, + {'data_keys': ['payment_secret'], 'original_value': inv_l22['payment_secret'], 'new_value': NEW_VALUES_LIST['payment_secret_l22']}, + {'data_keys': ['payment_hash'], 'original_value': inv_l33['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_l33']}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l33['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l33']}, + {'data_keys': ['payment_hash'], 'original_value': inv_l34['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_l34']}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l34['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l34']}, + {'data_keys': ['hops'], 'original_value': hops, 'new_value': example_hops}, + {'data_keys': ['any', 'assocdata'], 'original_value': inv['payment_hash'], 'new_value': NEW_VALUES_LIST['assocdata_1']}, + {'data_keys': ['onion'], 'original_value': onion_res1['onion'], 'new_value': NEW_VALUES_LIST['onion_1']}, + {'data_keys': ['shared_secrets'], 'original_value': onion_res1['shared_secrets'], 'new_value': NEW_VALUES_LIST['shared_secrets_1']}, + {'data_keys': ['onion'], 'original_value': onion_res2['onion'], 'new_value': NEW_VALUES_LIST['onion_2']}, + {'data_keys': ['shared_secrets'], 'original_value': onion_res2['shared_secrets'], 'new_value': NEW_VALUES_LIST['shared_secrets_2']}, + {'data_keys': ['id', 'scid', 'channel', 'short_channel_id', 'out_channel'], 'original_value': c23_2, 'new_value': NEW_VALUES_LIST['c23_2']}, + {'data_keys': ['txid'], 'original_value': c23res2['txid'], 'new_value': NEW_VALUES_LIST['c23_2_txid']}, + {'data_keys': ['any', 'channel_id', 'account'], 'original_value': c23res2['channel_id'], 'new_value': NEW_VALUES_LIST['c23_2_channel_id']}, + {'data_keys': ['scid', 'channel', 'short_channel_id'], 'original_value': c34_2, 'new_value': NEW_VALUES_LIST['c34_2']}, + {'data_keys': ['txid'], 'original_value': c34res2['txid'], 'new_value': NEW_VALUES_LIST['c34_2_txid']}, + {'data_keys': ['channel_id', 'account'], 'original_value': c34res2['channel_id'], 'new_value': NEW_VALUES_LIST['c34_2_channel_id']}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l12['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l12']}, + {'data_keys': ['payment_hash'], 'original_value': inv_l24['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_l24']}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l24['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l24']}, + {'data_keys': ['expires_at'], 'original_value': inv_l24['expires_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'data_keys': ['payment_hash'], 'original_value': inv_l25['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_l25']}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l25['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l25']}, + {'data_keys': ['payment_hash'], 'original_value': inv_l26['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_l26']}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l26['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l26']}, + {'data_keys': ['any', 'invstring', 'bolt11'], 'original_value': inv_l13['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l13']}, + {'data_keys': ['invreq_id'], 'original_value': inv_req['invreq_id'], 'new_value': NEW_VALUES_LIST['invreq_id_1']}, + {'data_keys': ['any', 'bolt12', 'invreq'], 'original_value': inv_req['bolt12'], 'new_value': NEW_VALUES_LIST['bolt12_l21']}, + {'data_keys': ['payment_hash'], 'original_value': keysend_res1['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_key_1']}, + {'data_keys': ['created_at'], 'original_value': keysend_res1['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['payment_preimage'], 'original_value': keysend_res1['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_1']}, + {'data_keys': ['payment_hash'], 'original_value': keysend_res2['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_key_2']}, + {'data_keys': ['created_at'], 'original_value': keysend_res2['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['payment_preimage'], 'original_value': keysend_res2['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_2']}, + {'data_keys': ['payment_hash'], 'original_value': keysend_res3['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_key_3']}, + {'data_keys': ['created_at'], 'original_value': keysend_res3['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['payment_preimage'], 'original_value': keysend_res3['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_3']}, + {'data_keys': ['routehints'], 'original_value': routehints, 'new_value': example_routehints}, + {'data_keys': ['created_at'], 'original_value': pay_res1['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['payment_preimage'], 'original_value': pay_res1['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_ep_1']}, + {'data_keys': ['created_at'], 'original_value': pay_res2['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['payment_preimage'], 'original_value': pay_res2['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_ep_2']}, + {'data_keys': ['any', 'bolt12', 'invreq'], 'original_value': sendinvoice_res1['bolt12'], 'new_value': NEW_VALUES_LIST['bolt12_si_1']}, + {'data_keys': ['payment_hash'], 'original_value': sendinvoice_res1['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_si_1']}, + {'data_keys': ['payment_preimage'], 'original_value': sendinvoice_res1['payment_preimage'], 'new_value': NEW_VALUES_LIST['payments_preimage_i_1']}, + {'data_keys': ['paid_at'], 'original_value': sendinvoice_res1['paid_at'], 'new_value': NEW_VALUES_LIST['time_at_850']}, + {'data_keys': ['expires_at'], 'original_value': sendinvoice_res1['expires_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'data_keys': ['created_at'], 'original_value': sendonion_res1['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['created_at'], 'original_value': sendpay_res1['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['any', 'bolt11'], 'original_value': signinv_res1['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l66']}, + {'data_keys': ['any', 'bolt11'], 'original_value': signinv_res2['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l67']}, + {'data_keys': ['payment_preimage'], 'original_value': waitsendpay_res1['payment_preimage'], 'new_value': NEW_VALUES_LIST['payments_preimage_w_1']}, + {'data_keys': ['created_at'], 'original_value': waitsendpay_res1['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['completed_at'], 'original_value': waitsendpay_res1['completed_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + ]) logger.info('Simple Transactions Done!') - return inv_l11, inv_l21, inv_l22, inv_l31, inv_l32, inv_l34 + return c23_2, c23res2, c34_2, inv_l11, inv_l21, inv_l22, inv_l31, inv_l32, inv_l34 except TaskFinished: raise except Exception as e: @@ -399,8 +778,7 @@ def generate_runes_examples(l1, l2, l3): '', '1: `[\'method^list\', \'method^get\', \'method=summary\']`: You may call list, get or summary.', '', - '2: `[\'method/listdatastore\']`: But not listdatastore: that contains sensitive stuff!' - ]) + '2: `[\'method/listdatastore\']`: But not listdatastore: that contains sensitive stuff!']) update_example(node=l2, method='createrune', params={'rune': rune_l21['rune'], 'restrictions': [['method^list', 'method^get', 'method=summary'], ['method/listdatastore']]}, description=['We can do the same manually (readonly), like so:']) rune_l23 = update_example(node=l2, method='createrune', params={'restrictions': [[f'id^{trimmed_id}'], ['method=listpeers']]}, description=[f'This will allow the rune to be used for id starting with {trimmed_id}, and for the method listpeers:']) rune_l24 = update_example(node=l2, method='createrune', params={'restrictions': [['method=pay'], ['pnameamountmsat<10000']]}, description=['This will allow the rune to be used for the method pay, and for the parameter amount\\_msat to be less than 10000:']) @@ -409,14 +787,14 @@ def generate_runes_examples(l1, l2, l3): update_example(node=l2, method='createrune', params=[rune_l25['rune'], [['time<"$(($(date +%s) + 24*60*60))"', 'rate=2']]], description=["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:"]) update_example(node=l2, method='commando-listrunes', params={'rune': rune_l23['rune']}) update_example(node=l2, method='commando-listrunes', params={}) - update_example(node=l1, method='commando', params={'peer_id': l2.info['id'], 'rune': rune_l22['rune'], 'method': 'getinfo', 'params': {}}) + commando_res1 = update_example(node=l1, method='commando', params={'peer_id': l2.info['id'], 'rune': rune_l22['rune'], 'method': 'getinfo', 'params': {}}) update_example(node=l1, method='commando', params={'peer_id': l2.info['id'], 'rune': rune_l23['rune'], 'method': 'listpeers', 'params': [l3.info['id']]}) inv_l23 = l2.rpc.invoice('any', 'lbl_l23', 'l23 description') - update_example(node=l1, method='commando', params={'peer_id': l2.info['id'], 'rune': rune_l24['rune'], 'method': 'pay', 'params': {'bolt11': inv_l23['bolt11'], 'amount_msat': 9900}}) + commando_res3 = update_example(node=l1, method='commando', params={'peer_id': l2.info['id'], 'rune': rune_l24['rune'], 'method': 'pay', 'params': {'bolt11': inv_l23['bolt11'], 'amount_msat': 9900}}) update_example(node=l2, method='checkrune', params={'nodeid': l2.info['id'], 'rune': rune_l22['rune'], 'method': 'listpeers', 'params': {}}) update_example(node=l2, method='checkrune', params={'nodeid': l2.info['id'], 'rune': rune_l24['rune'], 'method': 'pay', 'params': {'amount_msat': 9999}}) - update_example(node=l2, method='showrunes', params={'rune': rune_l21['rune']}) - update_example(node=l2, method='showrunes', params={}) + showrunes_res1 = update_example(node=l2, method='showrunes', params={'rune': rune_l21['rune']}) + showrunes_res2 = update_example(node=l2, method='showrunes', params={}) update_example(node=l2, method='commando-blacklist', params={'start': 1}) update_example(node=l2, method='commando-blacklist', params={'start': 2, 'end': 3}) update_example(node=l2, method='blacklistrune', params={'start': 1}) @@ -432,14 +810,23 @@ def generate_runes_examples(l1, l2, l3): '', '1: `[\'method^list\', \'method^get\', \'method=summary\']`: You may call list, get or summary.', '', - '2: `[\'method/listdatastore\']`: But not listdatastore: that contains sensitive stuff!' - ]) + '2: `[\'method/listdatastore\']`: But not listdatastore: that contains sensitive stuff!']) update_example(node=l1, method='commando-rune', params={'rune': rune_l11['rune'], 'restrictions': [['method^list', 'method^get', 'method=summary'], ['method/listdatastore']]}, description=['We can do the same manually (readonly), like so:']) update_example(node=l1, method='commando-rune', params={'restrictions': [[f'id^{trimmed_id}'], ['method=listpeers']]}, description=[f'This will allow the rune to be used for id starting with {trimmed_id}, and for the method listpeers:']) update_example(node=l1, method='commando-rune', params={'restrictions': [['method=pay'], ['pnameamountmsat<10000']]}, description=['This will allow the rune to be used for the method pay, and for the parameter amount\\_msat to be less than 10000:']) update_example(node=l1, method='commando-rune', params={'restrictions': [[f'id={l1.info["id"]}'], ['method=listpeers'], ['pnum=1'], [f'pnameid={l1.info["id"]}', f'parr0={l1.info["id"]}']]}, description=["Let's create a rune which lets a specific peer run listpeers on themselves:"]) rune_l15 = update_example(node=l1, method='commando-rune', params={'restrictions': [[f'id={l1.info["id"]}'], ['method=listpeers'], ['pnum=1'], [f'pnameid^{trimmed_id}', f'parr0^{trimmed_id}']]}, description=["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 10 bytes of the `listpeers` parameter:"]) update_example(node=l1, method='commando-rune', params=[rune_l15['rune'], [['time<"$(($(date +%s) + 24*60*60))"', 'rate=2']]], description=["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:"]) + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['last_used'], 'original_value': showrunes_res1['runes'][0]['last_used'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['last_used'], 'original_value': showrunes_res2['runes'][1]['last_used'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['last_used'], 'original_value': showrunes_res2['runes'][2]['last_used'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l23['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l23']}, + {'data_keys': ['blockheight'], 'original_value': commando_res1['blockheight'], 'new_value': NEW_VALUES_LIST['blockheight_130']}, + {'data_keys': ['created_at'], 'original_value': commando_res3['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['payment_hash'], 'original_value': commando_res3['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_cmd_pay_1']}, + {'data_keys': ['payment_preimage'], 'original_value': commando_res3['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_cmd_1']}, + ]) logger.info('Runes Done!') return rune_l21 except TaskFinished: @@ -452,15 +839,14 @@ def generate_datastore_examples(l2): """Covers all datastore related examples""" try: logger.info('Datastore Start...') - update_example(node=l2, method='datastore', params={'key': 'somekey', 'hex': '61', 'mode': 'create-or-append'}) - update_example(node=l2, method='datastore', params={'key': ['test', 'name'], 'string': 'saving data to the store', 'mode': 'must-create'}) - update_example(node=l2, method='datastore', params={'key': 'otherkey', 'string': 'foo', 'mode': 'must-create'}) - update_example(node=l2, method='datastore', params={'key': 'otherkey', 'string': 'bar', 'mode': 'must-append', 'generation': 0}) + l2.rpc.datastore(key='somekey', hex='61', mode='create-or-append') + l2.rpc.datastore(key=['test', 'name'], string='saving data to the store', mode='must-create') + update_example(node=l2, method='datastore', params={'key': ['employee', 'index'], 'string': 'saving employee keys to the store', 'mode': 'must-create'}) + update_example(node=l2, method='datastore', params={'key': 'otherkey', 'string': 'other', 'mode': 'must-create'}) + update_example(node=l2, method='datastore', params={'key': 'otherkey', 'string': ' key: text to be appended to the otherkey', 'mode': 'must-append', 'generation': 0}) update_example(node=l2, method='datastoreusage', params={}) update_example(node=l2, method='datastoreusage', params={'key': ['test', 'name']}) update_example(node=l2, method='datastoreusage', params={'key': 'otherkey'}) - update_example(node=l2, method='listdatastore', params={'key': ['test']}) - update_example(node=l2, method='listdatastore', params={'key': 'otherkey'}) update_example(node=l2, method='deldatastore', params={'key': ['test', 'name']}) update_example(node=l2, method='deldatastore', params={'key': 'otherkey', 'generation': 1}) logger.info('Datastore Done!') @@ -470,20 +856,111 @@ def generate_datastore_examples(l2): logger.error(f'Error in generating datastore examples: {e}') -def generate_bookkeeper_examples(l2, l3, c23_chan_id): +def generate_bookkeeper_examples(l2, l3, c23_2_chan_id): """Generates all bookkeeper rpc examples""" try: logger.info('Bookkeeper Start...') update_example(node=l2, method='funderupdate', params={}) update_example(node=l2, 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}) - update_example(node=l2, method='bkpr-inspect', params={'account': c23_chan_id}) + bkprinspect_res1 = update_example(node=l2, method='bkpr-inspect', params={'account': c23_2_chan_id}) update_example(node=l2, method='bkpr-dumpincomecsv', params=['koinly', 'koinly.csv']) update_example(node=l2, method='bkpr-channelsapy', params={}) - update_example(node=l3, method='bkpr-listbalances', params={}) - update_example(node=l3, method='bkpr-listaccountevents', params={}) - update_example(node=l3, method='bkpr-listaccountevents', params=[c23_chan_id]) - update_example(node=l3, method='bkpr-listincome', params={}) - update_example(node=l3, method='bkpr-listincome', params={'consolidate_fees': False}) + bkprlistbal_res1 = update_example(node=l3, method='bkpr-listbalances', params={}) + + bkprlistaccountevents_res1 = l3.rpc.bkpr_listaccountevents(c23_2_chan_id) + bkprlistaccountevents_res1['events'] = [next((event for event in bkprlistaccountevents_res1['events'] if event['tag'] == 'channel_open'), None)] + bkprlistaccountevents_res1 = update_list_responses(bkprlistaccountevents_res1, list_key='events') + update_example(node=l3, method='bkpr-listaccountevents', params=[c23_2_chan_id], res=bkprlistaccountevents_res1, execute=False) + bkprlistaccountevents_res2 = l3.rpc.bkpr_listaccountevents() + external_event = None + wallet_event = None + channel_event = None + for bkprevent in bkprlistaccountevents_res2['events']: + event_seleted = None + if wallet_event is None and bkprevent['account'] == 'wallet': + bkprevent['blockheight'] = 141 + wallet_event = bkprevent + event_seleted = '01' + elif external_event is None and bkprevent['account'] == 'external' and bkprevent['origin'] == next((value['original_value'] for value in REPLACE_RESPONSE_VALUES if value['new_value'] == NEW_VALUES_LIST['c34_channel_id']), None): + bkprevent['blockheight'] = 142 + external_event = bkprevent + event_seleted = '02' + elif channel_event is None and bkprevent['account'] not in ['external', 'wallet']: + bkprevent['blockheight'] = 143 + channel_event = bkprevent + event_seleted = '03' + if event_seleted is not None: + bkpr_new_values = [ + {'data_keys': ['timestamp'], 'original_value': bkprevent['timestamp'], 'new_value': NEW_VALUES_LIST['time_at_850'] + (int(event_seleted) * 10000)}, + ] + if 'debit_msat' in bkprevent and bkprevent['debit_msat'] > 0: + bkpr_new_values.extend([ + {'data_keys': ['debit_msat'], 'original_value': bkprevent['debit_msat'], 'new_value': 200000000000}, + ]) + if 'txid' in bkprevent: + bkpr_new_values.extend([ + {'data_keys': ['txid'], 'original_value': bkprevent['txid'], 'new_value': 'txidbk' + (event_seleted * 29)}, + ]) + if 'outpoint' in bkprevent: + bkpr_new_values.extend([ + {'data_keys': ['outpoint'], 'original_value': bkprevent['outpoint'], 'new_value': 'txidbk' + (event_seleted * 29) + ':1'}, + ]) + if 'payment_id' in bkprevent: + bkpr_new_values.extend([ + {'data_keys': ['payment_id'], 'original_value': bkprevent['payment_id'], 'new_value': 'paymentidbk0' + (event_seleted * 26)}, + ]) + REPLACE_RESPONSE_VALUES.extend(bkpr_new_values) + if wallet_event and external_event and channel_event: + break + bkprlistaccountevents_res2['events'] = [event for event in [external_event, wallet_event, channel_event] if event is not None] + update_example(node=l3, method='bkpr-listaccountevents', params={}, res=bkprlistaccountevents_res2, execute=False) + bkprlistincome_res1 = l3.rpc.bkpr_listincome(consolidate_fees=False) + bkprlistincome_res1 = update_list_responses(bkprlistincome_res1, list_key='income_events', slice_upto=4, update_func=lambda x, i: x.update({ + **({'timestamp': NEW_VALUES_LIST['time_at_850'] + (i * 10000)} if 'timestamp' in x else {}), + **({'payment_id': 'paymentid000' + (f"{i:02}" * 26)} if 'payment_id' in x else {}), + **({'outpoint': 'txidbk' + (f"{i:02}" * 29) + ':1'} if 'outpoint' in x else {})}), sort=True, sort_key='tag') + update_example(node=l3, method='bkpr-listincome', params={'consolidate_fees': False}, res=bkprlistincome_res1, execute=False) + bkprlistincome_res2 = l3.rpc.bkpr_listincome() + deposit_income = None + invoice_income = None + fee_income = None + for bkprincome in bkprlistincome_res2['income_events']: + income_seleted = None + if deposit_income is None and bkprincome['tag'] == 'deposit': + deposit_income = bkprincome + income_seleted = 1 + elif invoice_income is None and bkprincome['tag'] == 'invoice': + invoice_income = bkprincome + income_seleted = 2 + elif fee_income is None and bkprincome['tag'] == 'onchain_fee' and bkprincome['txid'] == next((value['original_value'] for value in REPLACE_RESPONSE_VALUES if value['new_value'] == NEW_VALUES_LIST['c34_2_txid']), None): + fee_income = bkprincome + income_seleted = 3 + if income_seleted is not None: + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['timestamp'], 'original_value': bkprincome['timestamp'], 'new_value': NEW_VALUES_LIST['time_at_850'] + (income_seleted * 10000)}, + ]) + if 'debit_msat' in bkprincome and bkprincome['debit_msat'] > 0: + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['debit_msat'], 'original_value': bkprincome['debit_msat'], 'new_value': 6960000}, + ]) + if 'payment_id' in bkprincome: + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['payment_id'], 'original_value': bkprincome['payment_id'], 'new_value': 'paymentid000' + (f"{income_seleted:02}" * 26)}, + ]) + if 'outpoint' in bkprincome: + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['outpoint'], 'original_value': bkprincome['outpoint'], 'new_value': 'txidbk' + (f"{income_seleted:02}" * 29) + ':1'}, + ]) + if deposit_income and invoice_income and fee_income: + break + bkprlistincome_res2['income_events'] = [income for income in [deposit_income, invoice_income, fee_income] if income is not None] + update_example(node=l3, method='bkpr-listincome', params={}, res=bkprlistincome_res2, execute=False) + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['balance_msat'], 'original_value': bkprlistbal_res1['accounts'][0]['balances'][0]['balance_msat'], 'new_value': NEW_VALUES_LIST['balance_msat_1']}, + {'data_keys': ['fees_paid_msat'], 'original_value': bkprinspect_res1['txs'][0]['fees_paid_msat'], 'new_value': NEW_VALUES_LIST['fees_paid_msat_1']}, + {'data_keys': ['timestamp'], 'original_value': bkprlistaccountevents_res1['events'][0]['timestamp'], 'new_value': NEW_VALUES_LIST['time_at_850']}, + {'data_keys': ['outpoint'], 'original_value': bkprlistaccountevents_res1['events'][0]['outpoint'], 'new_value': 'txidbk' + ('01' * 29) + ':1'}, + ]) logger.info('Bookkeeper Done!') except TaskFinished: raise @@ -500,72 +977,43 @@ def generate_offers_renepay_examples(l1, l2, inv_l21, inv_l34): offer_l21 = update_example(node=l2, method='offer', params={'amount': '10000msat', 'description': 'Fish sale!'}) offer_l22 = update_example(node=l2, method='offer', params={'amount': '1000sat', 'description': 'Coffee', 'quantity_max': 10}) offer_l23 = l2.rpc.offer('2000sat', 'Offer to Disable') - update_example(node=l1, method='fetchinvoice', params={'offer': offer_l21['bolt12'], 'payer_note': 'Thanks for the fish!'}) - update_example(node=l1, method='fetchinvoice', params={'offer': offer_l22['bolt12'], 'amount_msat': 2000000, 'quantity': 2}) + fetchinv_res1 = update_example(node=l1, method='fetchinvoice', params={'offer': offer_l21['bolt12'], 'payer_note': 'Thanks for the fish!'}) + fetchinv_res2 = update_example(node=l1, method='fetchinvoice', params={'offer': offer_l22['bolt12'], 'amount_msat': 2000000, 'quantity': 2}) update_example(node=l2, method='disableoffer', params={'offer_id': offer_l23['offer_id']}) - update_example(node=l2, method='listoffers', params={'active_only': True}) - update_example(node=l2, method='listoffers', params=[offer_l23['offer_id']]) + update_example(node=l2, method='enableoffer', params={'offer_id': offer_l23['offer_id']}) # Invoice Requests inv_req_l1_l22 = update_example(node=l2, method='invoicerequest', params={'amount': '10000sat', 'description': 'Requesting for invoice', 'issuer': 'clightning store'}) - update_example(node=l2, method='disableinvoicerequest', params={'invreq_id': inv_req_l1_l22['invreq_id']}) - update_example(node=l2, method='listinvoicerequests', params=[inv_req_l1_l22['invreq_id']]) - update_example(node=l2, method='listinvoicerequests', params={}) + disableinv_res1 = update_example(node=l2, method='disableinvoicerequest', params={'invreq_id': inv_req_l1_l22['invreq_id']}) # Renepay - update_example(node=l1, method='renepay', params={'invstring': inv_l21['bolt11'], 'amount_msat': 400000}) - update_example(node=l2, method='renepay', params={'invstring': inv_l34['bolt11']}) + renepay_res1 = update_example(node=l1, method='renepay', params={'invstring': inv_l21['bolt11'], 'amount_msat': 400000}) + renepay_res2 = update_example(node=l2, method='renepay', params={'invstring': inv_l34['bolt11']}) update_example(node=l1, method='renepaystatus', params={'invstring': inv_l21['bolt11']}) + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['offer_id'], 'original_value': offer_l21['offer_id'], 'new_value': NEW_VALUES_LIST['offerid_l21']}, + {'data_keys': ['any', 'bolt12', 'invreq'], 'original_value': offer_l21['bolt12'], 'new_value': NEW_VALUES_LIST['bolt12_l21']}, + {'data_keys': ['offer_id'], 'original_value': offer_l22['offer_id'], 'new_value': NEW_VALUES_LIST['offerid_l22']}, + {'data_keys': ['any', 'bolt12', 'invreq'], 'original_value': offer_l22['bolt12'], 'new_value': NEW_VALUES_LIST['bolt12_l22']}, + {'data_keys': ['offer_id'], 'original_value': offer_l23['offer_id'], 'new_value': NEW_VALUES_LIST['offerid_l23']}, + {'data_keys': ['any', 'bolt12', 'invreq'], 'original_value': offer_l23['bolt12'], 'new_value': NEW_VALUES_LIST['bolt12_l23']}, + {'data_keys': ['invreq_id'], 'original_value': inv_req_l1_l22['invreq_id'], 'new_value': NEW_VALUES_LIST['invreq_id_2']}, + {'data_keys': ['any', 'bolt12', 'invreq'], 'original_value': disableinv_res1['bolt12'], 'new_value': NEW_VALUES_LIST['bolt12_l24']}, + {'data_keys': ['invoice'], 'original_value': fetchinv_res1['invoice'], 'new_value': NEW_VALUES_LIST['invoice_1']}, + {'data_keys': ['invoice'], 'original_value': fetchinv_res2['invoice'], 'new_value': NEW_VALUES_LIST['invoice_2']}, + {'data_keys': ['created_at'], 'original_value': renepay_res1['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['payment_preimage'], 'original_value': renepay_res1['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_r_1']}, + {'data_keys': ['created_at'], 'original_value': renepay_res2['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['payment_preimage'], 'original_value': renepay_res2['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_r_2']}, + ]) logger.info('Offers and Renepay Done!') + return offer_l23, inv_req_l1_l22 except TaskFinished: raise except Exception as e: logger.error(f'Error in generating offers or renepay examples: {e}') -def generate_list_examples(l1, l2, l3, c12, c23, inv_l31, inv_l32): - """Generates lists rpc examples""" - try: - logger.info('Lists Start...') - - # Transactions Lists - update_example(node=l1, method='listfunds', params={}) - update_example(node=l2, method='listforwards', params={'in_channel': c12, 'out_channel': c23, 'status': 'settled'}) - update_example(node=l2, method='listforwards', params={}) - update_example(node=l2, method='listinvoices', params={'label': 'lbl_l21'}) - update_example(node=l2, method='listinvoices', params={}) - update_example(node=l1, method='listhtlcs', params=[c12]) - update_example(node=l1, method='listhtlcs', params={}) - update_example(node=l1, method='listsendpays', params={'bolt11': inv_l31['bolt11']}) - update_example(node=l1, method='listsendpays', params={}) - update_example(node=l1, method='listtransactions', params={}) - update_example(node=l2, method='listpays', params={'bolt11': inv_l32['bolt11']}) - update_example(node=l2, method='listpays', params={}) - update_example(node=l3, method='listclosedchannels', params={}) - - # Network & Nodes Lists - update_example(node=l2, method='listconfigs', params={'config': 'network'}) - update_example(node=l2, method='listconfigs', params={'config': 'experimental-dual-fund'}) - # Schema checker error: listconfigs.json: Additional properties are not allowed ('plugin' was unexpected) - l2.rpc.jsonschemas = {} - update_example(node=l2, method='listconfigs', params={}) - update_example(node=l2, method='listsqlschemas', params={'table': 'offers'}) - update_example(node=l2, method='listsqlschemas', params=['closedchannels']) - update_example(node=l1, method='listpeerchannels', params={'id': l2.info['id']}) - update_example(node=l1, method='listpeerchannels', params={}) - update_example(node=l1, method='listchannels', params={'short_channel_id': c12}) - update_example(node=l1, method='listchannels', params={}) - update_example(node=l2, method='listnodes', params={'id': l3.info['id']}) - update_example(node=l2, method='listnodes', params={}) - update_example(node=l2, method='listpeers', params={'id': l3.info['id']}) - update_example(node=l2, method='listpeers', params={}) - logger.info('Lists Done!') - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating lists examples: {e}') - - def generate_wait_examples(l1, l2, bitcoind, executor): """Generates wait examples""" try: @@ -575,7 +1023,6 @@ def generate_wait_examples(l1, l2, bitcoind, executor): inv3 = l2.rpc.invoice(3000, 'inv3', 'inv3') inv4 = l2.rpc.invoice(4000, 'inv4', 'inv4') inv5 = l2.rpc.invoice(5000, 'inv5', 'inv5') - # Wait invoice wi3 = executor.submit(l2.rpc.waitinvoice, 'inv3') time.sleep(1) @@ -628,6 +1075,26 @@ def generate_wait_examples(l1, l2, bitcoind, executor): sync_blockheight(bitcoind, [l2]) wbhres = wbh.result(5) update_example(node=l2, method='waitblockheight', params={'blockheight': curr_blockheight + 1}, res=wbhres, execute=False) + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['payment_hash'], 'original_value': wspc_res['details']['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_wspc_1']}, + {'data_keys': ['paid_at'], 'original_value': waires['paid_at'], 'new_value': NEW_VALUES_LIST['time_at_850']}, + {'data_keys': ['expires_at'], 'original_value': waires['expires_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'data_keys': ['paid_at'], 'original_value': wai_pay_index_res['paid_at'], 'new_value': NEW_VALUES_LIST['time_at_850']}, + {'data_keys': ['expires_at'], 'original_value': wai_pay_index_res['expires_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'data_keys': ['bolt11'], 'original_value': wi2res['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_wt_1']}, + {'data_keys': ['payment_hash'], 'original_value': wi2res['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_winv_1']}, + {'data_keys': ['payment_preimage'], 'original_value': wi2res['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_wi_1']}, + {'data_keys': ['paid_at'], 'original_value': wi2res['paid_at'], 'new_value': NEW_VALUES_LIST['time_at_850']}, + {'data_keys': ['expires_at'], 'original_value': wi2res['expires_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'data_keys': ['bolt11'], 'original_value': wi3res['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_wt_2']}, + {'data_keys': ['payment_hash'], 'original_value': wi3res['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_winv_2']}, + {'data_keys': ['payment_preimage'], 'original_value': wi3res['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_wi_2']}, + {'data_keys': ['paid_at'], 'original_value': wi3res['paid_at'], 'new_value': NEW_VALUES_LIST['time_at_850']}, + {'data_keys': ['expires_at'], 'original_value': wi3res['expires_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'data_keys': ['blockheight'], 'original_value': curr_blockheight - 1, 'new_value': NEW_VALUES_LIST['blockheight_129']}, + {'data_keys': ['blockheight'], 'original_value': curr_blockheight, 'new_value': NEW_VALUES_LIST['blockheight_130']}, + {'data_keys': ['blockheight'], 'original_value': curr_blockheight + 1, 'new_value': NEW_VALUES_LIST['blockheight_131']}, + ]) logger.info('Wait Done!') except TaskFinished: raise @@ -635,7 +1102,7 @@ def generate_wait_examples(l1, l2, bitcoind, executor): logger.error(f'Error in generating wait examples: {e}') -def generate_utils_examples(l1, l2, l3, l4, l5, l6, c23, c34, inv_l11, inv_l22, rune_l21, bitcoind): +def generate_utils_examples(l1, l2, l3, l4, l5, l6, c23_2, c34_2, inv_l11, inv_l22, rune_l21, bitcoind): """Generates other utilities examples""" try: logger.info('General Utils Start...') @@ -651,10 +1118,12 @@ def generate_utils_examples(l1, l2, l3, l4, l5, l6, c23, c34, inv_l11, inv_l22, update_example(node=l2, method='addgossip', params={'message': '0102420526c8eb62ec6999bbee5f1de4841cab734374ec642b7deeb0259e76220bf82e97a241c907d5ff52019655f7f9a614c285bb35690f3a1a2b928d7b2349a79e06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f000067000001000065b32a0e010100060000000000000000000000010000000a000000003b023380'}) update_example(node=l2, method='deprecations', params={'enable': True}) update_example(node=l2, method='deprecations', params={'enable': False}) - update_example(node=l2, method='getlog', params={'level': 'unusual'}) + getlog_res1 = l2.rpc.getlog(level='unusual') + getlog_res1['log'] = getlog_res1['log'][0:5] + update_example(node=l2, method='getlog', params={'level': 'unusual'}, res=getlog_res1, execute=False) update_example(node=l2, method='notifications', params={'enable': True}) update_example(node=l2, method='notifications', params={'enable': False}) - update_example(node=l2, method='check', params={'command_to_check': 'sendpay', 'route': [{'amount_msat': 1011, 'id': l3.info['id'], 'delay': 20, 'channel': c23}, {'amount_msat': 1000, 'id': l4.info['id'], 'delay': 10, 'channel': c34}], 'payment_hash': '0000000000000000000000000000000000000000000000000000000000000000'}) + update_example(node=l2, method='check', params={'command_to_check': 'sendpay', 'route': [{'amount_msat': 1011, 'id': l3.info['id'], 'delay': 20, 'channel': c23_2}, {'amount_msat': 1000, 'id': l4.info['id'], 'delay': 10, 'channel': c34_2}], 'payment_hash': '0000000000000000000000000000000000000000000000000000000000000000'}) update_example(node=l2, method='check', params={'command_to_check': 'dev', 'subcommand': 'slowcmd', 'msec': 1000}) update_example(node=l6, method='check', params={'command_to_check': 'recover', 'hsmsecret': '6c696768746e696e672d31000000000000000000000000000000000000000000'}) update_example(node=l2, method='plugin', params={'subcommand': 'start', 'plugin': os.path.join(CWD, 'tests/plugins/allow_even_msgs.py')}) @@ -671,10 +1140,12 @@ def generate_utils_examples(l1, l2, l3, l4, l5, l6, c23, c34, inv_l11, inv_l22, sync_blockheight(bitcoind, [l2]) funds_l2 = l2.rpc.listfunds() - withdraw_l22 = update_example(node=l2, method='withdraw', params={'destination': address_l22['p2tr'], 'satoshi': 'all', 'feerate': '20000perkb', 'minconf': 0, 'utxos': [f"{funds_l2['outputs'][2]['txid']}:{funds_l2['outputs'][2]['output']}"]}) + utxos = [f"{funds_l2['outputs'][2]['txid']}:{funds_l2['outputs'][2]['output']}"] + example_utxos = ['utxo' + ('02' * 30) + ':1'] + withdraw_l22 = update_example(node=l2, method='withdraw', params={'destination': address_l22['p2tr'], 'satoshi': 'all', 'feerate': '20000perkb', 'minconf': 0, 'utxos': utxos}) bitcoind.generate_block(4, wait_for_mempool=[withdraw_l22['txid']]) - update_example(node=l2, method='multiwithdraw', params={'outputs': [{l1.rpc.newaddr()['bech32']: '2222000msat'}, {l1.rpc.newaddr()['bech32']: '3333000msat'}]}) - update_example(node=l2, method='multiwithdraw', params={'outputs': [{l1.rpc.newaddr('p2tr')['p2tr']: 1000}, {l1.rpc.newaddr()['bech32']: 1000}, {l2.rpc.newaddr()['bech32']: 1000}, {l3.rpc.newaddr()['bech32']: 1000}, {l3.rpc.newaddr()['bech32']: 1000}, {l4.rpc.newaddr('p2tr')['p2tr']: 1000}, {l1.rpc.newaddr()['bech32']: 1000}]}) + multiwithdraw_res1 = update_example(node=l2, method='multiwithdraw', params={'outputs': [{l1.rpc.newaddr()['bech32']: '2222000msat'}, {l1.rpc.newaddr()['bech32']: '3333000msat'}]}) + multiwithdraw_res2 = update_example(node=l2, method='multiwithdraw', params={'outputs': [{l1.rpc.newaddr('p2tr')['p2tr']: 1000}, {l1.rpc.newaddr()['bech32']: 1000}, {l2.rpc.newaddr()['bech32']: 1000}, {l3.rpc.newaddr()['bech32']: 1000}, {l3.rpc.newaddr()['bech32']: 1000}, {l4.rpc.newaddr('p2tr')['p2tr']: 1000}, {l1.rpc.newaddr()['bech32']: 1000}]}) l2.rpc.connect(l4.info['id'], 'localhost', l4.port) l2.rpc.connect(l5.info['id'], 'localhost', l5.port) update_example(node=l2, method='disconnect', params={'id': l4.info['id'], 'force': False}) @@ -689,21 +1160,21 @@ def generate_utils_examples(l1, l2, l3, l4, l5, l6, c23, c34, inv_l11, inv_l22, update_example(node=l2, method='signmessage', params={'message': 'message for you'}) update_example(node=l2, method='checkmessage', params={'message': 'testcase to check new rpc error', 'zbase': 'd66bqz3qsku5fxtqsi37j11pci47ydxa95iusphutggz9ezaxt56neh77kxe5hyr41kwgkncgiu94p9ecxiexgpgsz8daoq4tw8kj8yx', 'pubkey': '03be3b0e9992153b1d5a6e1623670b6c3663f72ce6cf2e0dd39c0a373a7de5a3b7'}) update_example(node=l2, method='checkmessage', params={'message': 'this is a test!', 'zbase': 'd6tqaeuonjhi98mmont9m4wag7gg4krg1f4txonug3h31e9h6p6k6nbwjondnj46dkyausobstnk7fhyy998bhgc1yr98dfmhb4k54d7'}) - update_example(node=l2, method='decodepay', params={'bolt11': inv_l11['bolt11']}) + decodepay_res1 = update_example(node=l2, method='decodepay', params={'bolt11': inv_l11['bolt11']}) update_example(node=l2, method='decode', params=[rune_l21['rune']]) - update_example(node=l2, method='decode', params=[inv_l22['bolt11']]) + decode_res2 = update_example(node=l2, method='decode', params=[inv_l22['bolt11']]) # PSBT amount1 = 1000000 amount2 = 3333333 - result = update_example(node=l1, method='addpsbtoutput', params={'satoshi': amount1, 'locktime': 111}, description=[f'Here is a command to make a PSBT with a {amount1:,} sat output that leads to the on-chain wallet:']) - update_example(node=l1, method='setpsbtversion', params={'psbt': result['psbt'], 'version': 0}) - result = l1.rpc.addpsbtoutput(amount2, result['psbt']) - update_example(node=l1, method='addpsbtoutput', params=[amount2, result['psbt']], res=result, execute=False) + psbtoutput_res1 = update_example(node=l1, method='addpsbtoutput', params={'satoshi': amount1, 'locktime': 111}, description=[f'Here is a command to make a PSBT with a {amount1:,} sat output that leads to the on-chain wallet:']) + update_example(node=l1, method='setpsbtversion', params={'psbt': psbtoutput_res1['psbt'], 'version': 0}) + psbtoutput_res2 = l1.rpc.addpsbtoutput(amount2, psbtoutput_res1['psbt']) + update_example(node=l1, method='addpsbtoutput', params=[amount2, psbtoutput_res2['psbt']], res=psbtoutput_res2, execute=False) dest = l1.rpc.newaddr('p2tr')['p2tr'] - result = update_example(node=l1, method='addpsbtoutput', params={'satoshi': amount2, 'initialpsbt': result['psbt'], 'destination': dest}) - l1.rpc.addpsbtoutput(amount2, result['psbt'], None, dest) - update_example(node=l1, method='setpsbtversion', params=[result['psbt'], 2]) + psbtoutput_res3 = update_example(node=l1, method='addpsbtoutput', params={'satoshi': amount2, 'initialpsbt': psbtoutput_res2['psbt'], 'destination': dest}) + l1.rpc.addpsbtoutput(amount2, psbtoutput_res2['psbt'], None, dest) + update_example(node=l1, method='setpsbtversion', params=[psbtoutput_res2['psbt'], 2]) out_total = Millisatoshi(3000000 * 1000) funding = l1.rpc.fundpsbt(satoshi=out_total, feerate=7500, startweight=42) @@ -717,16 +1188,59 @@ def generate_utils_examples(l1, l2, l3, l4, l5, l6, c23, c34, inv_l11, inv_l22, fullpsbt = bitcoind.rpc.joinpsbts([funding['psbt'], output_psbt]) l1.rpc.reserveinputs(fullpsbt) signed_psbt = l1.rpc.signpsbt(fullpsbt)['signed_psbt'] - update_example(node=l1, method='sendpsbt', params={'psbt': signed_psbt}) + sendpsbt_res1 = update_example(node=l1, method='sendpsbt', params={'psbt': signed_psbt}) # SQL update_example(node=l1, filename='sql-template', method='sql', params={'query': 'SELECT id FROM peers'}, description=['A simple peers selection query:']) - update_example(node=l1, filename='sql-template', method='sql', params=[f'SELECT nodeid,last_timestamp FROM nodes WHERE last_timestamp>=1669578892'], description=["A statement containing `=` needs `-o` in shell:"]) - update_example(node=l1, filename='sql-template', method='sql', params=[f"SELECT nodeid FROM nodes WHERE nodeid != x'{l3.info['id']}'"], description=['If you want to get specific nodeid values from the nodes table:']) - update_example(node=l1, filename='sql-template', method='sql', params=[f"SELECT nodeid FROM nodes WHERE nodeid IN (x'{l1.info['id']}', x'{l3.info['id']}')"], description=["If you want to compare a BLOB column, `x'hex'` or `X'hex'` are needed:"]) - update_example(node=l1, filename='sql-template', method='sql', params=['SELECT peer_id, short_channel_id, to_us_msat, total_msat, peerchannels_status.status FROM peerchannels INNER JOIN peerchannels_status ON peerchannels_status.row = peerchannels.rowid'], description=['Related tables are usually referenced by JOIN:']) + update_example(node=l1, filename='sql-template', method='sql', params=[f"SELECT label, description, status FROM invoices WHERE label='label inv_l12'"], description=["A statement containing `=` needs `-o` in shell:"]) + sql_res3 = l1.rpc.sql(f"SELECT nodeid FROM nodes WHERE nodeid != x'{l3.info['id']}'") + update_example(node=l1, filename='sql-template', method='sql', params=[f"SELECT nodeid FROM nodes WHERE nodeid != x'{NEW_VALUES_LIST['l3_id']}'"], description=['If you want to get specific nodeid values from the nodes table:'], res=sql_res3, execute=False) + sql_res4 = l1.rpc.sql(f"SELECT nodeid FROM nodes WHERE nodeid IN (x'{l1.info['id']}', x'{l3.info['id']}')") + update_example(node=l1, filename='sql-template', method='sql', params=[f"SELECT nodeid FROM nodes WHERE nodeid IN (x'{NEW_VALUES_LIST['l1_id']}', x'{NEW_VALUES_LIST['l3_id']}')"], description=["If you want to compare a BLOB column, `x'hex'` or `X'hex'` are needed:"], res=sql_res4, execute=False) + update_example(node=l1, filename='sql-template', method='sql', params=['SELECT peer_id, to_us_msat, total_msat, peerchannels_status.status FROM peerchannels INNER JOIN peerchannels_status ON peerchannels_status.row = peerchannels.rowid'], description=['Related tables are usually referenced by JOIN:']) update_example(node=l2, filename='sql-template', method='sql', params=['SELECT COUNT(*) FROM forwards'], description=["Simple function usage, in this case COUNT. Strings inside arrays need \", and ' to protect them from the shell:"]) update_example(node=l1, filename='sql-template', method='sql', params=['SELECT * from peerchannels_features']) + example_log = getlog_res1['log'] + for i, log_entry in enumerate(example_log): + if 'num_skipped' in log_entry: + log_entry['num_skipped'] = 144 + i + if 'time' in log_entry: + log_entry['time'] = f"{70.8 + i}00000000" + if 'node_id' in log_entry: + log_entry['node_id'] = 'nodeid' + ('01' * 30) + if log_entry.get('log', '').startswith('No peer channel with'): + log_entry['log'] = 'No peer channel with scid=228x1x1' + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['any', 'psbt', 'initialpsbt'], 'original_value': psbtoutput_res1['psbt'], 'new_value': NEW_VALUES_LIST['init_psbt_1']}, + {'data_keys': ['any', 'psbt', 'initialpsbt'], 'original_value': psbtoutput_res2['psbt'], 'new_value': NEW_VALUES_LIST['init_psbt_2']}, + {'data_keys': ['any', 'psbt', 'initialpsbt'], 'original_value': psbtoutput_res3['psbt'], 'new_value': NEW_VALUES_LIST['init_psbt_3']}, + {'data_keys': ['destination'], 'original_value': dest, 'new_value': NEW_VALUES_LIST['destination_1']}, + {'data_keys': ['created_at'], 'original_value': decode_res2['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['signature'], 'original_value': decode_res2['signature'], 'new_value': NEW_VALUES_LIST['signature_1']}, + {'data_keys': ['short_channel_id'], 'original_value': decode_res2['routes'][0][0]['short_channel_id'], 'new_value': NEW_VALUES_LIST['c23']}, + {'data_keys': ['created_at'], 'original_value': decodepay_res1['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['signature'], 'original_value': decodepay_res1['signature'], 'new_value': NEW_VALUES_LIST['signature_2']}, + {'data_keys': ['tx'], 'original_value': multiwithdraw_res1['tx'], 'new_value': NEW_VALUES_LIST['tx_55']}, + {'data_keys': ['txid'], 'original_value': multiwithdraw_res1['txid'], 'new_value': NEW_VALUES_LIST['txid_55']}, + {'data_keys': ['tx'], 'original_value': multiwithdraw_res2['tx'], 'new_value': NEW_VALUES_LIST['tx_56']}, + {'data_keys': ['txid'], 'original_value': multiwithdraw_res2['txid'], 'new_value': NEW_VALUES_LIST['txid_56']}, + {'data_keys': ['psbt'], 'original_value': signed_psbt, 'new_value': NEW_VALUES_LIST['psbt_1']}, + {'data_keys': ['tx', 'hash'], 'original_value': sendpsbt_res1['tx'], 'new_value': NEW_VALUES_LIST['tx_61']}, + {'data_keys': ['txid'], 'original_value': sendpsbt_res1['txid'], 'new_value': NEW_VALUES_LIST['txid_61']}, + {'data_keys': ['destination'], 'original_value': address_l21['bech32'], 'new_value': NEW_VALUES_LIST['destination_2']}, + {'data_keys': ['destination'], 'original_value': address_l22['p2tr'], 'new_value': NEW_VALUES_LIST['destination_3']}, + {'data_keys': ['utxos'], 'original_value': utxos, 'new_value': example_utxos}, + {'data_keys': ['tx'], 'original_value': withdraw_l21['tx'], 'new_value': NEW_VALUES_LIST['tx_91']}, + {'data_keys': ['txid'], 'original_value': withdraw_l21['txid'], 'new_value': NEW_VALUES_LIST['withdraw_txid_l21']}, + {'data_keys': ['psbt'], 'original_value': withdraw_l21['psbt'], 'new_value': NEW_VALUES_LIST['psbt_7']}, + {'data_keys': ['tx'], 'original_value': withdraw_l22['tx'], 'new_value': NEW_VALUES_LIST['tx_92']}, + {'data_keys': ['txid'], 'original_value': withdraw_l22['txid'], 'new_value': NEW_VALUES_LIST['withdraw_txid_l22']}, + {'data_keys': ['psbt'], 'original_value': withdraw_l22['psbt'], 'new_value': NEW_VALUES_LIST['psbt_8']}, + {'data_keys': ['created_at'], 'original_value': getlog_res1['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['bytes_used'], 'original_value': getlog_res1['bytes_used'], 'new_value': NEW_VALUES_LIST['bytes_used']}, + {'data_keys': ['bytes_max'], 'original_value': getlog_res1['bytes_max'], 'new_value': NEW_VALUES_LIST['bytes_max']}, + {'data_keys': ['log'], 'original_value': getlog_res1['log'], 'new_value': example_log}, + ]) logger.info('General Utils Done!') except TaskFinished: raise @@ -753,17 +1267,16 @@ def generate_splice_examples(node_factory, bitcoind): l7, l8 = node_factory.get_nodes(2, opts=options) l7.fundwallet(FUND_WALLET_AMOUNT_SAT) l7.rpc.connect(l8.info['id'], 'localhost', l8.port) - c1112, _ = l7.fundchannel(l8, FUND_CHANNEL_AMOUNT_SAT) + c78, c78res = l7.fundchannel(l8, FUND_CHANNEL_AMOUNT_SAT) mine_funding_to_announce(bitcoind, [l7, l8]) - l7.wait_channel_active(c1112) - chan_id = l7.get_channel_id(l8) - + l7.wait_channel_active(c78) + chan_id_78 = l7.get_channel_id(l8) # Splice - funds_result = l7.rpc.fundpsbt('109000sat', 'slow', 166, excess_as_change=True) - result = update_example(node=l7, method='splice_init', params={'channel_id': chan_id, 'relative_amount': 100000, 'initialpsbt': funds_result['psbt']}) - result = update_example(node=l7, method='splice_update', params={'channel_id': chan_id, 'psbt': result['psbt']}) - result = l7.rpc.signpsbt(result['psbt']) - result = update_example(node=l7, method='splice_signed', params={'channel_id': chan_id, 'psbt': result['signed_psbt']}) + funds_result_1 = l7.rpc.fundpsbt('109000sat', 'slow', 166, excess_as_change=True) + spinit_res1 = update_example(node=l7, method='splice_init', params={'channel_id': chan_id_78, 'relative_amount': 100000, 'initialpsbt': funds_result_1['psbt']}) + spupdate_res1 = update_example(node=l7, method='splice_update', params={'channel_id': chan_id_78, 'psbt': spinit_res1['psbt']}) + signpsbt_res1 = l7.rpc.signpsbt(spupdate_res1['psbt']) + spsigned_res1 = update_example(node=l7, method='splice_signed', params={'channel_id': chan_id_78, 'psbt': signpsbt_res1['signed_psbt']}) bitcoind.generate_block(1) sync_blockheight(bitcoind, [l7]) @@ -771,13 +1284,28 @@ def generate_splice_examples(node_factory, bitcoind): time.sleep(1) # Splice out - funds_result = l7.rpc.addpsbtoutput(100000) + funds_result_2 = l7.rpc.addpsbtoutput(100000) # Pay with fee by subtracting 5000 from channel balance - result = update_example(node=l7, method='splice_init', params=[chan_id, -105000, funds_result['psbt']]) - result = update_example(node=l7, method='splice_update', params=[chan_id, result['psbt']]) - result = update_example(node=l7, method='splice_signed', params=[chan_id, result['psbt']]) + spinit_res2 = update_example(node=l7, method='splice_init', params=[chan_id_78, -105000, funds_result_2['psbt']]) + spupdate_res2 = update_example(node=l7, method='splice_update', params=[chan_id_78, spinit_res2['psbt']]) + spsigned_res2 = update_example(node=l7, method='splice_signed', params=[chan_id_78, spupdate_res2['psbt']]) update_example(node=l7, method='stop', params={}) + + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['any', 'channel_id', 'account'], 'original_value': chan_id_78, 'new_value': NEW_VALUES_LIST['c78_channel_id']}, + {'data_keys': ['any', 'psbt'], 'original_value': spinit_res1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_1']}, + {'data_keys': ['any', 'psbt'], 'original_value': spinit_res2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_2']}, + {'data_keys': ['any', 'initialpsbt', 'psbt'], 'original_value': funds_result_1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_3']}, + {'data_keys': ['any', 'initialpsbt', 'psbt'], 'original_value': funds_result_2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_4']}, + {'data_keys': ['psbt'], 'original_value': spupdate_res1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_5']}, + {'data_keys': ['any', 'psbt'], 'original_value': spupdate_res2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_6']}, + {'data_keys': ['tx'], 'original_value': spsigned_res1['tx'], 'new_value': NEW_VALUES_LIST['send_tx_1']}, + {'data_keys': ['txid'], 'original_value': spsigned_res1['txid'], 'new_value': NEW_VALUES_LIST['send_txid_1']}, + {'data_keys': ['tx'], 'original_value': spsigned_res2['tx'], 'new_value': NEW_VALUES_LIST['send_tx_2']}, + {'data_keys': ['txid'], 'original_value': spsigned_res2['txid'], 'new_value': NEW_VALUES_LIST['send_txid_2']}, + {'data_keys': ['psbt'], 'original_value': signpsbt_res1['signed_psbt'], 'new_value': NEW_VALUES_LIST['signed_psbt_1']}, + ]) logger.info('Splice Done!') except TaskFinished: raise @@ -803,34 +1331,39 @@ def generate_channels_examples(node_factory, bitcoind, l1, l3, l4, l5): for i in range(2) ] l9, l10 = node_factory.get_nodes(2, opts=options) + amount = 2 ** 24 l9.fundwallet(amount + 10000000) bitcoind.generate_block(1) wait_for(lambda: len(l9.rpc.listfunds()["outputs"]) != 0) l9.rpc.connect(l10.info['id'], 'localhost', l10.port) - fund_start = update_example(node=l9, method='fundchannel_start', params=[l10.info['id'], amount]) - tx_prep = update_example(node=l9, method='txprepare', params=[[{fund_start['funding_address']: amount}]]) + fund_start_res1 = update_example(node=l9, method='fundchannel_start', params=[l10.info['id'], amount]) + outputs_1 = [{fund_start_res1['funding_address']: amount}] + example_outputs_1 = [{'bcrt1p00' + ('02' * 28): amount}] + tx_prep_1 = update_example(node=l9, method='txprepare', params=[outputs_1]) update_example(node=l9, method='fundchannel_cancel', params=[l10.info['id']]) - update_example(node=l9, method='txdiscard', params=[tx_prep['txid']]) - fund_start = update_example(node=l9, method='fundchannel_start', params={'id': l10.info['id'], 'amount': amount}) - tx_prep = update_example(node=l9, method='txprepare', params={'outputs': [{fund_start['funding_address']: amount}]}) - update_example(node=l9, method='fundchannel_complete', params=[l10.info['id'], tx_prep['psbt']]) - update_example(node=l9, method='txsend', params=[tx_prep['txid']]) + txdiscard_res1 = update_example(node=l9, method='txdiscard', params=[tx_prep_1['txid']]) + fund_start_res2 = update_example(node=l9, method='fundchannel_start', params={'id': l10.info['id'], 'amount': amount}) + outputs_2 = [{fund_start_res2['funding_address']: amount}] + example_outputs_2 = [{'bcrt1p00' + ('03' * 28): amount}] + tx_prep_2 = update_example(node=l9, method='txprepare', params={'outputs': outputs_2}) + fcc_res1 = update_example(node=l9, method='fundchannel_complete', params=[l10.info['id'], tx_prep_2['psbt']]) + txsend_res1 = update_example(node=l9, method='txsend', params=[tx_prep_2['txid']]) l9.rpc.close(l10.info['id']) bitcoind.generate_block(1) sync_blockheight(bitcoind, [l9]) amount = 1000000 - fund_start = l9.rpc.fundchannel_start(l10.info['id'], amount) - tx_prep = l9.rpc.txprepare([{fund_start['funding_address']: amount}]) + fund_start_res3 = l9.rpc.fundchannel_start(l10.info['id'], amount) + tx_prep_3 = l9.rpc.txprepare([{fund_start_res3['funding_address']: amount}]) update_example(node=l9, method='fundchannel_cancel', params={'id': l10.info['id']}) - update_example(node=l9, method='txdiscard', params={'txid': tx_prep['txid']}) + txdiscard_res2 = update_example(node=l9, method='txdiscard', params={'txid': tx_prep_3['txid']}) funding_addr = l9.rpc.fundchannel_start(l10.info['id'], amount)['funding_address'] - tx_prep = l9.rpc.txprepare([{funding_addr: amount}]) - update_example(node=l9, method='fundchannel_complete', params={'id': l10.info['id'], 'psbt': tx_prep['psbt']}) - update_example(node=l9, method='txsend', params={'txid': tx_prep['txid']}) + tx_prep_4 = l9.rpc.txprepare([{funding_addr: amount}]) + fcc_res2 = update_example(node=l9, method='fundchannel_complete', params={'id': l10.info['id'], 'psbt': tx_prep_4['psbt']}) + txsend_res2 = update_example(node=l9, method='txsend', params={'txid': tx_prep_4['txid']}) l9.rpc.close(l10.info['id']) # Basic setup for l11->l12 for openchannel examples @@ -848,13 +1381,15 @@ def generate_channels_examples(node_factory, bitcoind, l1, l3, l4, l5): for i in range(2) ] l11, l12 = node_factory.get_nodes(2, opts=options) + l11.fundwallet(FUND_WALLET_AMOUNT_SAT) l11.rpc.connect(l12.info['id'], 'localhost', l12.port) - c78res = l11.rpc.fundchannel(l12.info['id'], FUND_CHANNEL_AMOUNT_SAT) - chan_id = c78res['channel_id'] - vins = bitcoind.rpc.decoderawtransaction(c78res['tx'])['vin'] + c1112res = l11.rpc.fundchannel(l12.info['id'], FUND_CHANNEL_AMOUNT_SAT) + chan_id = c1112res['channel_id'] + vins = bitcoind.rpc.decoderawtransaction(c1112res['tx'])['vin'] assert(only_one(vins)) prev_utxos = ["{}:{}".format(vins[0]['txid'], vins[0]['vout'])] + example_utxos = ['utxo' + ('01' * 30) + ':1'] l11.daemon.wait_for_log(' to DUALOPEND_AWAITING_LOCKIN') chan = only_one(l11.rpc.listpeerchannels(l12.info['id'])['channels']) @@ -863,14 +1398,14 @@ def generate_channels_examples(node_factory, bitcoind, l1, l3, l4, l5): # Initiate an RBF startweight = 42 + 172 - initpsbt = update_example(node=l11, method='utxopsbt', params=[FUND_CHANNEL_AMOUNT_SAT, next_feerate, startweight, prev_utxos, None, True, None, None, True]) - bump = update_example(node=l11, method='openchannel_bump', params=[chan_id, FUND_CHANNEL_AMOUNT_SAT, initpsbt['psbt'], next_feerate]) + initpsbt_1 = update_example(node=l11, method='utxopsbt', params=[FUND_CHANNEL_AMOUNT_SAT, next_feerate, startweight, prev_utxos, None, True, None, None, True]) + openchannelbump_res1 = update_example(node=l11, method='openchannel_bump', params=[chan_id, FUND_CHANNEL_AMOUNT_SAT, initpsbt_1['psbt'], next_feerate]) update_example(node=l11, method='openchannel_abort', params={'channel_id': chan_id}) - bump = update_example(node=l11, method='openchannel_bump', params={'channel_id': chan_id, 'amount': FUND_CHANNEL_AMOUNT_SAT, 'initialpsbt': initpsbt['psbt'], 'funding_feerate': next_feerate}) - update = update_example(node=l11, method='openchannel_update', params={'channel_id': chan_id, 'psbt': bump['psbt']}) - signed = update_example(node=l11, method='signpsbt', params={'psbt': update['psbt']}) - update_example(node=l11, method='openchannel_signed', params={'channel_id': chan_id, 'signed_psbt': signed['signed_psbt']}) + openchannelbump_res2 = update_example(node=l11, method='openchannel_bump', params={'channel_id': chan_id, 'amount': FUND_CHANNEL_AMOUNT_SAT, 'initialpsbt': initpsbt_1['psbt'], 'funding_feerate': next_feerate}) + openchannelupdate_res1 = update_example(node=l11, method='openchannel_update', params={'channel_id': chan_id, 'psbt': openchannelbump_res2['psbt']}) + signed_psbt_1 = update_example(node=l11, method='signpsbt', params={'psbt': openchannelupdate_res1['psbt']}) + openchannelsigned_res1 = update_example(node=l11, method='openchannel_signed', params={'channel_id': chan_id, 'signed_psbt': signed_psbt_1['signed_psbt']}) # 5x the feerate to beat the min-relay fee chan = only_one(l11.rpc.listpeerchannels(l12.info['id'])['channels']) @@ -879,26 +1414,26 @@ def generate_channels_examples(node_factory, bitcoind, l1, l3, l4, l5): # Another RBF with double the channel amount startweight = 42 + 172 - initpsbt = update_example(node=l11, method='utxopsbt', params={'satoshi': FUND_CHANNEL_AMOUNT_SAT * 2, 'feerate': next_feerate, 'startweight': startweight, 'utxos': prev_utxos, 'reservedok': True, 'excess_as_change': True}) - bump = update_example(node=l11, method='openchannel_bump', params=[chan_id, FUND_CHANNEL_AMOUNT_SAT * 2, initpsbt['psbt'], next_feerate]) - update = update_example(node=l11, method='openchannel_update', params=[chan_id, bump['psbt']]) - signed_psbt = update_example(node=l11, method='signpsbt', params=[update['psbt']])['signed_psbt'] - update_example(node=l11, method='openchannel_signed', params=[chan_id, signed_psbt]) + initpsbt_2 = update_example(node=l11, method='utxopsbt', params={'satoshi': FUND_CHANNEL_AMOUNT_SAT * 2, 'feerate': next_feerate, 'startweight': startweight, 'utxos': prev_utxos, 'reservedok': True, 'excess_as_change': True}) + openchannelbump_res3 = update_example(node=l11, method='openchannel_bump', params=[chan_id, FUND_CHANNEL_AMOUNT_SAT * 2, initpsbt_2['psbt'], next_feerate]) + openchannelupdate_res2 = update_example(node=l11, method='openchannel_update', params=[chan_id, openchannelbump_res3['psbt']]) + signed_psbt_2 = update_example(node=l11, method='signpsbt', params=[openchannelupdate_res2['psbt']]) + openchannelsigned_res2 = update_example(node=l11, method='openchannel_signed', params=[chan_id, signed_psbt_2['signed_psbt']]) bitcoind.generate_block(1) sync_blockheight(bitcoind, [l11]) l11.daemon.wait_for_log(' to CHANNELD_NORMAL') # Fundpsbt, channelopen init, abort, unreserve - psbt_init = update_example(node=l11, method='fundpsbt', params={'satoshi': FUND_CHANNEL_AMOUNT_SAT, 'feerate': '253perkw', 'startweight': 250, 'reserve': 0}) - start = update_example(node=l11, method='openchannel_init', params={'id': l12.info['id'], 'amount': FUND_CHANNEL_AMOUNT_SAT, 'initialpsbt': psbt_init['psbt']}) - l11.rpc.openchannel_abort(start['channel_id']) - update_example(node=l11, method='unreserveinputs', params={'psbt': psbt_init['psbt'], 'reserve': 200}) + psbt_init_res1 = update_example(node=l11, method='fundpsbt', params={'satoshi': FUND_CHANNEL_AMOUNT_SAT, 'feerate': '253perkw', 'startweight': 250, 'reserve': 0}) + openchannelinit_res1 = update_example(node=l11, method='openchannel_init', params={'id': l12.info['id'], 'amount': FUND_CHANNEL_AMOUNT_SAT, 'initialpsbt': psbt_init_res1['psbt']}) + l11.rpc.openchannel_abort(openchannelinit_res1['channel_id']) + update_example(node=l11, method='unreserveinputs', params={'psbt': psbt_init_res1['psbt'], 'reserve': 200}) - psbt_init = update_example(node=l11, method='fundpsbt', params={'satoshi': FUND_CHANNEL_AMOUNT_SAT // 2, 'feerate': 'urgent', 'startweight': 166, 'reserve': 0, 'excess_as_change': True, 'min_witness_weight': 110}) - start = update_example(node=l11, method='openchannel_init', params=[l12.info['id'], FUND_CHANNEL_AMOUNT_SAT // 2, psbt_init['psbt']]) - l11.rpc.openchannel_abort(start['channel_id']) - update_example(node=l11, method='unreserveinputs', params=[psbt_init['psbt']]) + psbt_init_res2 = update_example(node=l11, method='fundpsbt', params={'satoshi': FUND_CHANNEL_AMOUNT_SAT // 2, 'feerate': 'urgent', 'startweight': 166, 'reserve': 0, 'excess_as_change': True, 'min_witness_weight': 110}) + openchannelinit_res2 = update_example(node=l11, method='openchannel_init', params=[l12.info['id'], FUND_CHANNEL_AMOUNT_SAT // 2, psbt_init_res2['psbt']]) + l11.rpc.openchannel_abort(openchannelinit_res2['channel_id']) + update_example(node=l11, method='unreserveinputs', params=[psbt_init_res2['psbt']]) # Reserveinputs bitcoind.generate_block(1) @@ -919,10 +1454,9 @@ def generate_channels_examples(node_factory, bitcoind, l1, l3, l4, l5): utxo = f"{outputs[0]['txid']}:{outputs[0]['output']}" c41res = update_example(node=l4, method='fundchannel', params={'id': l1.info['id'], 'amount': 'all', 'feerate': 'normal', 'push_msat': 100000, 'utxos': [utxo]}, - description=[f'This example shows how to to open new channel with peer {l1.info["id"]} from one whole utxo {utxo} (you can use **listfunds** command to get txid and vout):']) + description=[f'This example shows how to to open new channel with peer 1 from one whole utxo (you can use **listfunds** command to get txid and vout):']) # Close newly funded channels to bring the setup back to initial state l3.rpc.close(c35res['channel_id']) - print(f'c41res: {c41res}') l4.rpc.close(c41res['channel_id']) l3.rpc.disconnect(l5.info['id'], True) l4.rpc.disconnect(l1.info['id'], True) @@ -932,22 +1466,36 @@ def generate_channels_examples(node_factory, bitcoind, l1, l3, l4, l5): l1.rpc.connect(l3.info['id'], 'localhost', l3.port) l1.rpc.connect(l4.info['id'], 'localhost', l4.port) l1.rpc.connect(l5.info['id'], 'localhost', l5.port) + destinations_1 = [ + { + 'id': f'{l3.info["id"]}@127.0.0.1:{l3.port}', + 'amount': '20000sat' + }, + { + 'id': f'{l4.info["id"]}@127.0.0.1:{l4.port}', + 'amount': '0.0003btc' + }, + { + 'id': f'{l5.info["id"]}@127.0.0.1:{l5.port}', + 'amount': 'all' + } + ] + example_destinations_1 = [ + { + 'id': 'nodeid' + ('03' * 30) + '@127.0.0.1:19736', + 'amount': '20000sat' + }, + { + 'id': 'nodeid' + ('04' * 30) + '@127.0.0.1:19737', + 'amount': '0.0003btc' + }, + { + 'id': 'nodeid' + ('05' * 30) + '@127.0.0.1:19738', + 'amount': 'all' + } + ] multifund_res1 = update_example(node=l1, method='multifundchannel', params={ - 'destinations': - [ - { - 'id': f'{l3.info["id"]}@127.0.0.1:{l3.port}', - 'amount': '20000sat' - }, - { - 'id': f'{l4.info["id"]}@127.0.0.1:{l4.port}', - 'amount': '0.0003btc' - }, - { - 'id': f'{l5.info["id"]}@127.0.0.1:{l5.port}', - 'amount': 'all' - } - ], + 'destinations': destinations_1, 'feerate': '10000perkw', 'commitment_feerate': '2000perkw' }, description=[ @@ -958,26 +1506,110 @@ def generate_channels_examples(node_factory, bitcoind, l1, l3, l4, l5): for channel in multifund_res1['channel_ids']: l1.rpc.close(channel['channel_id']) l1.fundwallet(10**8) - multifund_res2 = update_example(node=l1, method='multifundchannel', params={ - 'destinations': - [ - { - 'id': f'03a389b3a2f7aa6f9f4ccc19f2bd7a2eba83596699e86b715caaaa147fc37f3144@127.0.0.1:{l3.port}', - 'amount': 50000 - }, - { - 'id': f'{l4.info["id"]}@127.0.0.1:{l4.port}', - 'amount': 50000 - }, - { - 'id': f'{l1.info["id"]}@127.0.0.1:{l1.port}', - 'amount': 50000 - } - ], 'minchannels': 1 - }) + + destinations_2 = [ + { + 'id': f'03a389b3a2f7aa6f9f4ccc19f2bd7a2eba83596699e86b715caaaa147fc37f3144@127.0.0.1:{l3.port}', + 'amount': 50000 + }, + { + 'id': f'{l4.info["id"]}@127.0.0.1:{l4.port}', + 'amount': 50000 + }, + { + 'id': f'{l1.info["id"]}@127.0.0.1:{l1.port}', + 'amount': 50000 + } + ] + example_destinations_2 = [ + { + 'id': f'fakenodeid' + ('03' * 28) + '@127.0.0.1:19736', + 'amount': 50000 + }, + { + 'id': 'nodeid' + ('04' * 30) + '@127.0.0.1:19737', + 'amount': 50000 + }, + { + 'id': 'nodeid' + ('01' * 30) + '@127.0.0.1:19734', + 'amount': 50000 + } + ] + multifund_res2 = update_example(node=l1, method='multifundchannel', params={'destinations': destinations_2, 'minchannels': 1}) # Close newly funded channels to bring the setup back to initial state for channel in multifund_res2['channel_ids']: l1.rpc.close(channel['channel_id']) + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['any', 'id', 'pubkey', 'destination'], 'original_value': l10.info['id'], 'new_value': NEW_VALUES_LIST['l10_id']}, + {'data_keys': ['any', 'id', 'pubkey', 'destination'], 'original_value': l12.info['id'], 'new_value': NEW_VALUES_LIST['l12_id']}, + {'data_keys': ['any', 'txid'], 'original_value': tx_prep_1['txid'], 'new_value': NEW_VALUES_LIST['txprep_txid_1']}, + {'data_keys': ['initialpsbt', 'psbt', 'signed_psbt'], 'original_value': tx_prep_1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_9']}, + {'data_keys': ['unsigned_tx'], 'original_value': tx_prep_2['unsigned_tx'], 'new_value': NEW_VALUES_LIST['unsigned_tx_1']}, + {'data_keys': ['any', 'initialpsbt', 'psbt', 'signed_psbt'], 'original_value': tx_prep_2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_10']}, + {'data_keys': ['any', 'txid'], 'original_value': tx_prep_2['txid'], 'new_value': NEW_VALUES_LIST['txprep_txid_2']}, + {'data_keys': ['any', 'txid'], 'original_value': tx_prep_3['txid'], 'new_value': NEW_VALUES_LIST['txprep_txid_3']}, + {'data_keys': ['txid'], 'original_value': tx_prep_4['txid'], 'new_value': NEW_VALUES_LIST['txprep_txid_4']}, + {'data_keys': ['initialpsbt', 'psbt', 'signed_psbt'], 'original_value': tx_prep_4['psbt'], 'new_value': NEW_VALUES_LIST['psbt_12']}, + {'data_keys': ['channel_id', 'account'], 'original_value': fcc_res1['channel_id'], 'new_value': NEW_VALUES_LIST['c910_channel_id_1']}, + {'data_keys': ['channel_id', 'account'], 'original_value': fcc_res2['channel_id'], 'new_value': NEW_VALUES_LIST['c910_channel_id_2']}, + {'data_keys': ['txid'], 'original_value': c1112res['txid'], 'new_value': NEW_VALUES_LIST['c1112_txid']}, + {'data_keys': ['channel_id', 'account'], 'original_value': c1112res['channel_id'], 'new_value': NEW_VALUES_LIST['c1112_channel_id']}, + {'data_keys': ['tx'], 'original_value': c35res['tx'], 'new_value': NEW_VALUES_LIST['c35_tx']}, + {'data_keys': ['txid'], 'original_value': c35res['txid'], 'new_value': NEW_VALUES_LIST['c35_txid']}, + {'data_keys': ['channel_id', 'account'], 'original_value': c35res['channel_id'], 'new_value': NEW_VALUES_LIST['c35_channel_id']}, + {'data_keys': ['tx'], 'original_value': c41res['tx'], 'new_value': NEW_VALUES_LIST['c41_tx']}, + {'data_keys': ['txid', 'funding_txid'], 'original_value': c41res['txid'], 'new_value': NEW_VALUES_LIST['c41_txid']}, + {'data_keys': ['channel_id', 'account'], 'original_value': c41res['channel_id'], 'new_value': NEW_VALUES_LIST['c41_channel_id']}, + {'data_keys': ['destinations'], 'original_value': destinations_1, 'new_value': example_destinations_1}, + {'data_keys': ['channel_id', 'account'], 'original_value': multifund_res1['channel_ids'][0]['channel_id'], 'new_value': NEW_VALUES_LIST['mf_channel_id_1']}, + {'data_keys': ['channel_id', 'account'], 'original_value': multifund_res1['channel_ids'][1]['channel_id'], 'new_value': NEW_VALUES_LIST['mf_channel_id_2']}, + {'data_keys': ['channel_id', 'account'], 'original_value': multifund_res1['channel_ids'][2]['channel_id'], 'new_value': NEW_VALUES_LIST['mf_channel_id_3']}, + {'data_keys': ['tx'], 'original_value': multifund_res1['tx'], 'new_value': NEW_VALUES_LIST['multi_tx_1']}, + {'data_keys': ['txid', 'funding_txid'], 'original_value': multifund_res1['txid'], 'new_value': NEW_VALUES_LIST['multi_txid_1']}, + {'data_keys': ['destinations'], 'original_value': destinations_2, 'new_value': example_destinations_2}, + {'data_keys': ['channel_id', 'account'], 'original_value': multifund_res2['channel_ids'][0]['channel_id'], 'new_value': NEW_VALUES_LIST['mf_channel_id_4']}, + {'data_keys': ['tx'], 'original_value': multifund_res2['tx'], 'new_value': NEW_VALUES_LIST['multi_tx_2']}, + {'data_keys': ['txid'], 'original_value': multifund_res2['txid'], 'new_value': NEW_VALUES_LIST['multi_txid_2']}, + {'data_keys': ['message'], 'original_value': multifund_res2['failed'][0]['error']['message'], 'new_value': NEW_VALUES_LIST['error_message_1']}, + {'data_keys': ['utxos'], 'original_value': [utxo], 'new_value': [NEW_VALUES_LIST['c35_txid'] + ':1']}, + {'data_keys': ['any', 'funding_address'], 'original_value': fund_start_res1['funding_address'], 'new_value': NEW_VALUES_LIST['destination_4']}, + {'data_keys': ['any', 'outputs'], 'original_value': outputs_1, 'new_value': example_outputs_1}, + {'data_keys': ['scriptpubkey'], 'original_value': fund_start_res1['scriptpubkey'], 'new_value': NEW_VALUES_LIST['script_pubkey_1']}, + {'data_keys': ['any', 'funding_address'], 'original_value': fund_start_res2['funding_address'], 'new_value': NEW_VALUES_LIST['destination_5']}, + {'data_keys': ['any', 'outputs'], 'original_value': outputs_2, 'new_value': example_outputs_2}, + {'data_keys': ['scriptpubkey'], 'original_value': fund_start_res2['scriptpubkey'], 'new_value': NEW_VALUES_LIST['script_pubkey_2']}, + {'data_keys': ['initialpsbt', 'psbt'], 'original_value': psbt_init_res1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_13']}, + {'data_keys': ['any', 'initialpsbt', 'psbt'], 'original_value': psbt_init_res2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_14']}, + {'data_keys': ['any', 'txid'], 'original_value': initpsbt_1['reservations'][0]['txid'], 'new_value': NEW_VALUES_LIST['utxo_1']}, + {'data_keys': ['any', 'initialpsbt', 'psbt'], 'original_value': initpsbt_1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_15']}, + {'data_keys': ['any', 'initialpsbt', 'psbt'], 'original_value': initpsbt_2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_16']}, + {'data_keys': ['any', 'txid'], 'original_value': initpsbt_2['reservations'][0]['txid'], 'new_value': NEW_VALUES_LIST['utxo_1']}, + {'data_keys': ['initialpsbt', 'psbt', 'signed_psbt'], 'original_value': openchannelinit_res1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_17']}, + {'data_keys': ['funding_serial'], 'original_value': openchannelinit_res1['funding_serial'], 'new_value': NEW_VALUES_LIST['funding_serial_1']}, + {'data_keys': ['initialpsbt', 'psbt', 'signed_psbt'], 'original_value': openchannelinit_res2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_18']}, + {'data_keys': ['funding_serial'], 'original_value': openchannelinit_res2['funding_serial'], 'new_value': NEW_VALUES_LIST['funding_serial_2']}, + {'data_keys': ['initialpsbt', 'psbt', 'signed_psbt'], 'original_value': openchannelbump_res1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_19']}, + {'data_keys': ['initialpsbt', 'psbt', 'signed_psbt'], 'original_value': openchannelbump_res2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_20']}, + {'data_keys': ['any', 'initialpsbt', 'psbt', 'signed_psbt'], 'original_value': openchannelbump_res3['psbt'], 'new_value': NEW_VALUES_LIST['psbt_21']}, + {'data_keys': ['funding_serial'], 'original_value': openchannelbump_res1['funding_serial'], 'new_value': NEW_VALUES_LIST['funding_serial_3']}, + {'data_keys': ['funding_serial'], 'original_value': openchannelbump_res2['funding_serial'], 'new_value': NEW_VALUES_LIST['funding_serial_4']}, + {'data_keys': ['funding_serial'], 'original_value': openchannelbump_res3['funding_serial'], 'new_value': NEW_VALUES_LIST['funding_serial_5']}, + {'data_keys': ['signed_psbt'], 'original_value': signed_psbt_1['signed_psbt'], 'new_value': NEW_VALUES_LIST['psbt_22']}, + {'data_keys': ['tx'], 'original_value': openchannelsigned_res1['tx'], 'new_value': NEW_VALUES_LIST['ocs_tx_1']}, + {'data_keys': ['txid'], 'original_value': openchannelsigned_res1['txid'], 'new_value': NEW_VALUES_LIST['ocs_txid_1']}, + {'data_keys': ['any', 'signed_psbt'], 'original_value': signed_psbt_2['signed_psbt'], 'new_value': NEW_VALUES_LIST['psbt_23']}, + {'data_keys': ['tx'], 'original_value': openchannelsigned_res2['tx'], 'new_value': NEW_VALUES_LIST['ocs_tx_2']}, + {'data_keys': ['txid'], 'original_value': openchannelsigned_res2['txid'], 'new_value': NEW_VALUES_LIST['ocs_txid_2']}, + {'data_keys': ['psbt'], 'original_value': psbt_1, 'new_value': NEW_VALUES_LIST['psbt_24']}, + {'data_keys': ['psbt'], 'original_value': psbt_2, 'new_value': NEW_VALUES_LIST['psbt_25']}, + {'data_keys': ['any'], 'original_value': prev_utxos, 'new_value': example_utxos}, + {'data_keys': ['unsigned_tx'], 'original_value': txdiscard_res1['unsigned_tx'], 'new_value': NEW_VALUES_LIST['unsigned_tx_3']}, + {'data_keys': ['unsigned_tx'], 'original_value': txdiscard_res2['unsigned_tx'], 'new_value': NEW_VALUES_LIST['unsigned_tx_4']}, + {'data_keys': ['tx'], 'original_value': txsend_res1['tx'], 'new_value': NEW_VALUES_LIST['txsend_tx_1']}, + {'data_keys': ['psbt'], 'original_value': txsend_res1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_24']}, + {'data_keys': ['tx'], 'original_value': txsend_res2['tx'], 'new_value': NEW_VALUES_LIST['txsend_tx_2']}, + {'data_keys': ['psbt'], 'original_value': txsend_res2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_26']}, + ]) l1.rpc.disconnect(l3.info['id'], True) l1.rpc.disconnect(l4.info['id'], True) l1.rpc.disconnect(l5.info['id'], True) @@ -996,7 +1628,7 @@ def generate_autoclean_delete_examples(l1, l2, l3, l4, l5, c12, c23): logger.info('Auto-clean and Delete Start...') global FUND_CHANNEL_AMOUNT_SAT l2.rpc.close(l5.info['id']) - update_example(node=l2, method='dev-forget-channel', params={'id': l5.info['id']}, description=[f'Forget a channel by peer pubkey when only one channel exists with the peer:']) + dfc_res1 = update_example(node=l2, method='dev-forget-channel', params={'id': l5.info['id']}, description=[f'Forget a channel by peer pubkey when only one channel exists with the peer:']) # Create invoices for delpay and delinvoice examples inv_l35 = l3.rpc.invoice('50000sat', 'lbl_l35', 'l35 description') @@ -1006,7 +1638,7 @@ def generate_autoclean_delete_examples(l1, l2, l3, l4, l5, c12, c23): # For MPP payment from l1 to l4; will use for delpay groupdid and partid example inv_l41 = l4.rpc.invoice('5000sat', 'lbl_l41', 'l41 description') l2.rpc.connect(l4.info['id'], 'localhost', l4.port) - c24, _ = l2.fundchannel(l4, FUND_CHANNEL_AMOUNT_SAT) + c24, c24res = l2.fundchannel(l4, FUND_CHANNEL_AMOUNT_SAT) l2.rpc.pay(l4.rpc.invoice(500000000, 'lbl balance l2 to l4', 'description send some sats l2 to l4')['bolt11']) # Create two routes; l1->l2->l3->l4 and l1->l2->l4 route_l1_l4 = l1.rpc.getroute(l4.info['id'], '4000sat', 1)['route'] @@ -1021,7 +1653,7 @@ def generate_autoclean_delete_examples(l1, l2, l3, l4, l5, c12, c23): # Delinvoice l1.rpc.pay(inv_l35['bolt11']) l1.rpc.pay(inv_l37['bolt11']) - update_example(node=l3, method='delinvoice', params={'label': 'lbl_l36', 'status': 'unpaid'}) + delinv_res1 = update_example(node=l3, method='delinvoice', params={'label': 'lbl_l36', 'status': 'unpaid'}) # invoice already deleted, pay will fail; used for delpay failed example with pytest.raises(RpcError): @@ -1029,10 +1661,10 @@ def generate_autoclean_delete_examples(l1, l2, l3, l4, l5, c12, c23): listsendpays_l1 = l1.rpc.listsendpays()['payments'] sendpay_g1_p1 = next((x for x in listsendpays_l1 if 'groupid' in x and x['groupid'] == 1 and 'partid' in x and x['partid'] == 2), None) - update_example(node=l1, method='delpay', params={'payment_hash': listsendpays_l1[0]['payment_hash'], 'status': 'complete'}) - update_example(node=l1, method='delpay', params=[listsendpays_l1[-1]['payment_hash'], listsendpays_l1[-1]['status']]) - update_example(node=l1, method='delpay', params={'payment_hash': sendpay_g1_p1['payment_hash'], 'status': sendpay_g1_p1['status'], 'groupid': 1, 'partid': 2}) - update_example(node=l3, method='delinvoice', params={'label': 'lbl_l37', 'status': 'paid', 'desconly': True}) + delpay_res1 = update_example(node=l1, method='delpay', params={'payment_hash': listsendpays_l1[0]['payment_hash'], 'status': 'complete'}) + delpay_res2 = update_example(node=l1, method='delpay', params=[listsendpays_l1[-1]['payment_hash'], listsendpays_l1[-1]['status']]) + delpay_res3 = update_example(node=l1, method='delpay', params={'payment_hash': sendpay_g1_p1['payment_hash'], 'status': sendpay_g1_p1['status'], 'groupid': 1, 'partid': 2}) + delinv_res2 = update_example(node=l3, method='delinvoice', params={'label': 'lbl_l37', 'status': 'paid', 'desconly': True}) # Delforward failed_forwards = l2.rpc.listforwards('failed')['forwards'] @@ -1040,14 +1672,37 @@ def generate_autoclean_delete_examples(l1, l2, l3, l4, l5, c12, c23): if len(local_failed_forwards) > 0 and 'in_htlc_id' in local_failed_forwards[0]: update_example(node=l2, method='delforward', params={'in_channel': c12, 'in_htlc_id': local_failed_forwards[0]['in_htlc_id'], 'status': 'local_failed'}) if len(failed_forwards) > 0 and 'in_htlc_id' in failed_forwards[0]: - update_example(node=l2, method='delforward', params=[c12, failed_forwards[0]['in_htlc_id'], 'failed']) - update_example(node=l2, method='dev-forget-channel', params={'id': l3.info['id'], 'short_channel_id': c23, 'force': True}, description=[f'Forget a channel by short channel id when peer has multiple channels:']) + update_example(node=l2, method='delforward', params={'in_channel': c12, 'in_htlc_id': failed_forwards[0]['in_htlc_id'], 'status': 'failed'}) + dfc_res2 = update_example(node=l2, method='dev-forget-channel', params={'id': l3.info['id'], 'short_channel_id': c23, 'force': True}, description=[f'Forget a channel by short channel id when peer has multiple channels:']) # Autoclean update_example(node=l2, method='autoclean-once', params=['failedpays', 1]) update_example(node=l2, method='autoclean-once', params=['succeededpays', 1]) update_example(node=l2, method='autoclean-status', params={'subsystem': 'expiredinvoices'}) update_example(node=l2, method='autoclean-status', params={}) + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['any', 'bolt11'], 'original_value': delinv_res1['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_di_1']}, + {'data_keys': ['payment_hash'], 'original_value': delinv_res1['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_di_1']}, + {'data_keys': ['expires_at'], 'original_value': delinv_res1['expires_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'data_keys': ['any', 'bolt11'], 'original_value': delinv_res2['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_di_2']}, + {'data_keys': ['payment_hash'], 'original_value': delinv_res2['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_di_2']}, + {'data_keys': ['paid_at'], 'original_value': delinv_res2['paid_at'], 'new_value': NEW_VALUES_LIST['time_at_850']}, + {'data_keys': ['expires_at'], 'original_value': delinv_res2['expires_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'data_keys': ['payment_preimage'], 'original_value': delinv_res2['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_di_1']}, + {'data_keys': ['payment_hash'], 'original_value': delpay_res1['payments'][0]['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_dp_1']}, + {'data_keys': ['payment_preimage'], 'original_value': delpay_res1['payments'][0]['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_dp_1']}, + {'data_keys': ['any', 'bolt11'], 'original_value': delpay_res1['payments'][0]['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_dp_1']}, + {'data_keys': ['created_at'], 'original_value': delpay_res1['payments'][0]['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['completed_at'], 'original_value': delpay_res1['payments'][0]['completed_at'], 'new_value': NEW_VALUES_LIST['time_at_850']}, + {'data_keys': ['any', 'payment_hash'], 'original_value': delpay_res2['payments'][0]['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_dp_2']}, + {'data_keys': ['created_at'], 'original_value': delpay_res2['payments'][0]['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['completed_at'], 'original_value': delpay_res2['payments'][0]['completed_at'], 'new_value': NEW_VALUES_LIST['time_at_850']}, + {'data_keys': ['payment_hash'], 'original_value': delpay_res3['payments'][0]['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_dp_3']}, + {'data_keys': ['created_at'], 'original_value': delpay_res3['payments'][0]['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['completed_at'], 'original_value': delpay_res3['payments'][0]['completed_at'], 'new_value': NEW_VALUES_LIST['time_at_850']}, + {'data_keys': ['funding_txid'], 'original_value': dfc_res1['funding_txid'], 'new_value': NEW_VALUES_LIST['funding_txid_1']}, + {'data_keys': ['funding_txid'], 'original_value': dfc_res2['funding_txid'], 'new_value': NEW_VALUES_LIST['funding_txid_2']}, + ]) logger.info('Auto-clean and Delete Done!') except TaskFinished: raise @@ -1065,7 +1720,10 @@ def generate_backup_recovery_examples(node_factory, l4, l5, l6): update_example(node=l5, method='makesecret', params=['73636220736563726574']) update_example(node=l5, method='makesecret', params={'string': 'scb secret'}) - update_example(node=l4, method='emergencyrecover', params={}) + emergencyrecover_res1 = l4.rpc.emergencyrecover() + emergencyrecover_res1['stubs'].sort() + update_example(node=l4, method='emergencyrecover', params={}, res=emergencyrecover_res1, execute=False) + update_example(node=l4, method='getemergencyrecoverdata', params={}, res='emergencyrecoverdata' + ('01' * 827), execute=False) backup_l4 = update_example(node=l4, method='staticbackup', params={}) # Recover channels @@ -1073,14 +1731,25 @@ def generate_backup_recovery_examples(node_factory, l4, l5, l6): os.unlink(os.path.join(l4.daemon.lightning_dir, TEST_NETWORK, 'lightningd.sqlite3')) l4.start() time.sleep(1) - update_example(node=l4, method='recoverchannel', params=[backup_l4['scb']]) - + recoverchannel_res1 = l4.rpc.recoverchannel(backup_l4['scb']) + recoverchannel_res1['stubs'].sort() + update_example(node=l4, method='recoverchannel', params={'scb': backup_l4['scb']}, res=recoverchannel_res1, execute=False) + example_scb = [ + '0000000000000001' + NEW_VALUES_LIST['c34_channel_id'] + NEW_VALUES_LIST['l3_id'] + '00017f000001' + ('0340' * 23) + '0003401000', + '0000000000000002' + NEW_VALUES_LIST['c34_2_channel_id'] + NEW_VALUES_LIST['l3_id'] + '00017f000001' + ('0342' * 23) + '0003401000', + '0000000000000003' + NEW_VALUES_LIST['c41_channel_id'] + NEW_VALUES_LIST['l1_id'] + '00017f000001' + ('0410' * 23) + '0003401000', + '0000000000000004' + NEW_VALUES_LIST['c12_channel_id'] + NEW_VALUES_LIST['l1_id'] + '00017f000001' + ('0120' * 23) + '0003401000', + '0000000000000005' + NEW_VALUES_LIST['mf_channel_id_4'] + NEW_VALUES_LIST['l1_id'] + '00017f000001' + ('0152' * 23) + '0003401000', + '0000000000000006' + NEW_VALUES_LIST['mf_channel_id_5'] + NEW_VALUES_LIST['l2_id'] + '00017f000001' + ('0124' * 23) + '0003401000', + ] # Emergency recover l5.stop() os.unlink(os.path.join(l5.daemon.lightning_dir, TEST_NETWORK, 'lightningd.sqlite3')) l5.start() time.sleep(1) - update_example(node=l5, method='emergencyrecover', params={}) + emergencyrecover_res2 = l5.rpc.emergencyrecover() + emergencyrecover_res2['stubs'].sort() + update_example(node=l5, method='emergencyrecover', params={}, res=emergencyrecover_res2, execute=False) # Recover def get_hsm_secret(n): @@ -1098,6 +1767,11 @@ def get_hsm_secret(n): l13codex32, _ = get_hsm_secret(l13) update_example(node=l6, method='recover', params={'hsmsecret': l6hex}) update_example(node=l13, method='recover', params={'hsmsecret': l13codex32}) + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['hsmsecret'], 'original_value': l13codex32, 'new_value': NEW_VALUES_LIST['hsm_secret_cdx_1']}, + {'data_keys': ['scb'], 'original_value': backup_l4['scb'], 'new_value': example_scb}, + {'data_keys': ['channel_id', 'account'], 'original_value': backup_l4['scb'][5][16:(16 + 64)], 'new_value': NEW_VALUES_LIST['mf_channel_id_5']}, + ]) logger.info('Backup and Recovery Done!') except TaskFinished: raise @@ -1105,6 +1779,193 @@ def get_hsm_secret(n): logger.error(f'Error in generating backup and recovery examples: {e}') +def generate_list_examples(l1, l2, l3, c12, c23_2, inv_l31, inv_l32, offer_l23, inv_req_l1_l22): + """Generates lists rpc examples""" + try: + logger.info('Lists Start...') + global REPLACE_RESPONSE_VALUES + # Transactions Lists + FUNDS_LEN = 3 + listfunds_res1 = l1.rpc.listfunds() + listfunds_res1 = update_list_responses(listfunds_res1, list_key='outputs', slice_upto=FUNDS_LEN) + listfunds_res1['channels'] = [channel for channel in listfunds_res1['channels'] if channel['peer_id'] != '0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199'] + listfunds_res1['channels'] = sorted(listfunds_res1['channels'], key=lambda x: x['peer_id']) + for i in range(1, FUNDS_LEN + 1): + lfoutput = listfunds_res1['outputs'][i - 1] + lfchannel = listfunds_res1['channels'][i - 1] + lfoutput['output'] = i + 1 + lfoutput['txid'] = 'txid' + (('0000' + str(i)) * 12) + lfoutput['scriptpubkey'] = 'scriptpubkey' + (f"{i:02}" * 28) + lfoutput['address'] = 'bcrt1p00' + ('04' * 28) + lfoutput['blockheight'] = NEW_VALUES_LIST['blockheight_160'] + lfoutput['amount_msat'] = 25000000 + (i * 1000000) + lfchannel['funding_output'] = i + lfchannel['funding_txid'] = 'txid' + (('0100' + str(i)) * 12) + lfchannel['amount_msat'] = 10000000 + (i * 1000000) + lfchannel['our_amount_msat'] = 35000000 + (i * 1000000) + update_example(node=l1, method='listfunds', params={}, res=listfunds_res1, execute=False) + + listforwards_res1 = l2.rpc.listforwards(in_channel=c12, out_channel=c23_2, status='settled') + listforwards_res1 = update_list_responses(listforwards_res1, list_key='forwards', slice_upto=5, update_func=lambda x, i: x.update({'received_time': NEW_VALUES_LIST['time_at_800'] + (i * 10000), 'resolved_time': NEW_VALUES_LIST['time_at_850'] + (i * 10000)})) + update_example(node=l2, method='listforwards', params={'in_channel': c12, 'out_channel': c23_2, 'status': 'settled'}, res=listforwards_res1, execute=False) + listforwards_res2 = l2.rpc.listforwards() + listforwards_res2 = update_list_responses(listforwards_res2, list_key='forwards', slice_upto=5, update_func=lambda x, i: x.update({'received_time': NEW_VALUES_LIST['time_at_800'] + (i * 10000), 'resolved_time': NEW_VALUES_LIST['time_at_850'] + (i * 10000)})) + update_example(node=l2, method='listforwards', params={}, res=listforwards_res2, execute=False) + + listinvoices_res1 = l2.rpc.listinvoices(label='lbl_l21') + listinvoices_res1 = update_list_responses(listinvoices_res1, list_key='invoices', slice_upto=5, update_func=lambda x, i: x.update({'paid_at': NEW_VALUES_LIST['time_at_850'] + (i * 10000), 'expires_at': NEW_VALUES_LIST['time_at_900'] + (i * 10000)})) + update_example(node=l2, method='listinvoices', params={'label': 'lbl_l21'}, res=listinvoices_res1, execute=False) + listinvoices_res2 = l2.rpc.listinvoices() + listinvoices_res2 = update_list_responses(listinvoices_res2, list_key='invoices', slice_upto=5, update_func=lambda x, i: x.update({'paid_at': NEW_VALUES_LIST['time_at_850'] + (i * 10000), 'expires_at': NEW_VALUES_LIST['time_at_900'] + (i * 10000)})) + update_example(node=l2, method='listinvoices', params={}, res=listinvoices_res2, execute=False) + + listhtlcs_res1 = l1.rpc.listhtlcs(c12) + listhtlcs_res1 = update_list_responses(listhtlcs_res1, list_key='htlcs') + update_example(node=l1, method='listhtlcs', params=[c12], res=listhtlcs_res1, execute=False) + listhtlcs_res2 = l1.rpc.listhtlcs() + listhtlcs_res2 = update_list_responses(listhtlcs_res2, list_key='htlcs') + update_example(node=l1, method='listhtlcs', params={}, res=listhtlcs_res2, execute=False) + + listsendpays_res1 = l1.rpc.listsendpays(bolt11=inv_l31['bolt11']) + listsendpays_res1 = update_list_responses(listsendpays_res1, list_key='payments', slice_upto=5, update_func=lambda x, i: x.update({'created_at': NEW_VALUES_LIST['time_at_800'] + (i * 10000), 'completed_at': NEW_VALUES_LIST['time_at_900'] + (i * 10000)})) + update_example(node=l1, method='listsendpays', params={'bolt11': inv_l31['bolt11']}, res=listsendpays_res1, execute=False) + listsendpays_res2 = l1.rpc.listsendpays() + listsendpays_res2 = update_list_responses(listsendpays_res2, list_key='payments', slice_upto=5, update_func=lambda x, i: x.update({'created_at': NEW_VALUES_LIST['time_at_800'] + (i * 10000), 'completed_at': NEW_VALUES_LIST['time_at_900'] + (i * 10000)})) + update_example(node=l1, method='listsendpays', params={}, res=listsendpays_res2, execute=False) + + listpays_res1 = l2.rpc.listpays(bolt11=inv_l32['bolt11']) + listpays_res1 = update_list_responses(listpays_res1, list_key='pays') + update_example(node=l2, method='listpays', params={'bolt11': inv_l32['bolt11']}, res=listpays_res1, execute=False) + listpays_res2 = l2.rpc.listpays() + listpays_res2 = update_list_responses(listpays_res2, list_key='pays') + update_example(node=l2, method='listpays', params={}, res=listpays_res2, execute=False) + + listtransactions_res1 = l1.rpc.listtransactions() + listtransactions_res1 = update_list_responses(listtransactions_res1, list_key='transactions', slice_upto=2) + for i, transaction in enumerate(listtransactions_res1['transactions'], start=1): + transaction['hash'] = 'txid' + (('7000' + str(i)) * 11) + transaction['rawtx'] = '02000000000101lstx' + (('7000' + str(i)) * 34) + transaction['locktime'] = 549000000 + (i * 100) + transaction['inputs'] = transaction['inputs'][0:1] + transaction['inputs'][0]['txid'] = 'txid' + (('6001' + str(i)) * 12) + transaction['inputs'][0]['index'] = 1 + transaction['inputs'][0]['sequence'] = 2158510000 + (i * 1000) + for k, output in enumerate(transaction['outputs'], start=1): + output['scriptPubKey'] = 'scriptpubkey' + ((f"{i:02}" + f"{k:02}") * 14) + output['index'] = k + output['amount_msat'] = 201998900000 + (i * 1000) + (k * 100) + update_example(node=l1, method='listtransactions', params={}, res=listtransactions_res1, execute=False) + listclosedchannels_res1 = l2.rpc.listclosedchannels() + listclosedchannels_res1 = update_list_responses(listclosedchannels_res1, list_key='closedchannels') + update_example(node=l2, method='listclosedchannels', params={}, res=listclosedchannels_res1, execute=False) + + update_example(node=l2, method='listconfigs', params={'config': 'network'}) + update_example(node=l2, method='listconfigs', params={'config': 'experimental-dual-fund'}) + l2.rpc.jsonschemas = {} + listconfigs_res3 = l2.rpc.listconfigs() + listconfigs_res3['configs']['htlc-maximum-msat']['value_msat'] = NEW_VALUES_LIST['htlc_max_msat'] + listconfigs_res3 = update_list_responses(listconfigs_res3, list_key='configs', slice_upto=len(listconfigs_res3['configs']), update_func=None, sort=True) + update_example(node=l2, method='listconfigs', params={}, res=listconfigs_res3, execute=False) + + update_example(node=l2, method='listsqlschemas', params={'table': 'offers'}) + update_example(node=l2, method='listsqlschemas', params=['closedchannels']) + + listpeerchannels_res1 = l1.rpc.listpeerchannels(l2.info['id']) + listpeerchannels_res1 = update_list_responses(listpeerchannels_res1, list_key='channels', slice_upto=3) + for i, channel in enumerate(listpeerchannels_res1['channels'], start=1): + channel['last_stable_connection'] = NEW_VALUES_LIST['time_at_850'] + (i * 10000) + channel['scratch_txid'] = 'scratchid1' + (('0' + str(i)) * 27) + channel['alias']['local'] = '3000000' + str(i) + 'x6000000' + str(i) + 'x6000' + str(i) + channel['alias']['remote'] = '1000000' + str(i) + 'x2000000' + str(i) + 'x3000' + str(i) + channel['max_total_htlc_in_msat'] = NEW_VALUES_LIST['htlc_max_msat'] + for j, state in enumerate(channel['state_changes'], start=1): + state['timestamp'] = '2024-10-10T00:0' + str(j) + ':00.000Z' + update_example(node=l1, method='listpeerchannels', params={'id': l2.info['id']}, res=listpeerchannels_res1, execute=False) + listpeerchannels_res2 = l1.rpc.listpeerchannels() + listpeerchannels_2 = None + listpeerchannels_3 = None + i = 0 + for channel in listpeerchannels_res2['channels']: + if channel['peer_id'] == l2.info['id'] or channel['peer_id'] == l3.info['id']: + i = 2 if channel['peer_id'] == l2.info['id'] else 3 + scrt_id = 'scratchid2' + (('0' + str(i)) * 27) + channel['last_stable_connection'] = NEW_VALUES_LIST['time_at_850'] + (i * 10000) + channel['scratch_txid'] = scrt_id + channel['alias']['local'] = '3000000' + str(i) + 'x6000000' + str(i) + 'x6000' + str(i) + channel['alias']['remote'] = '1000000' + str(i) + 'x2000000' + str(i) + 'x3000' + str(i) + channel['close_to_addr'] = 'bcrt1pcl' + (('000' + str(i)) * 14) + channel['close_to'] = 'db2dec31' + (('0' + str(i)) * 30) + channel['status'][0] = re.sub(r'(tx:)[a-f0-9]+', r'\1' + scrt_id, channel['status'][0]) + channel['max_total_htlc_in_msat'] = NEW_VALUES_LIST['htlc_max_msat'] + if 'inflight' in channel and len(channel['inflight']) > 0: + channel['inflight'][0]['scratch_txid'] = scrt_id + for j, state in enumerate(channel['state_changes'], start=1): + state['timestamp'] = '2024-10-10T00:0' + str(j) + ':00.000Z' + if channel['peer_id'] == l2.info['id']: + listpeerchannels_2 = channel + else: + listpeerchannels_3 = channel + listpeerchannels_res2['channels'] = [channel for channel in [listpeerchannels_2, listpeerchannels_3] if channel is not None] + update_example(node=l1, method='listpeerchannels', params={}, res=listpeerchannels_res2, execute=False) + + listchannels_res1 = l1.rpc.listchannels(c12) + listchannels_res1 = update_list_responses(listchannels_res1, list_key='channels', slice_upto=5, update_func=lambda x, i: x.update({'last_update': NEW_VALUES_LIST['time_at_850'] + (i * 10000), 'channel_flags': i, 'active': i % 2 == 0})) + update_example(node=l1, method='listchannels', params={'short_channel_id': c12}, res=listchannels_res1, execute=False) + listchannels_res2 = l1.rpc.listchannels() + listchannels_res2 = update_list_responses(listchannels_res2, list_key='channels', slice_upto=5, update_func=lambda x, i: x.update({'last_update': NEW_VALUES_LIST['time_at_850'] + (i * 10000), 'channel_flags': i, 'active': i % 2 == 0})) + update_example(node=l1, method='listchannels', params={}, res=listchannels_res2, execute=False) + + listnodes_res1 = l2.rpc.listnodes(l3.info['id']) + listnodes_res1 = update_list_responses(listnodes_res1, list_key='nodes', slice_upto=5, update_func=lambda x, i: x.update({'last_timestamp': NEW_VALUES_LIST['time_at_800'] + (i * 10000)})) + update_example(node=l2, method='listnodes', params={'id': l3.info['id']}, res=listnodes_res1, execute=False) + listnodes_res2 = l2.rpc.listnodes() + listnodes_res2 = update_list_responses(listnodes_res2, list_key='nodes', slice_upto=5, update_func=lambda x, i: x.update({'last_timestamp': NEW_VALUES_LIST['time_at_800'] + (i * 10000)})) + update_example(node=l2, method='listnodes', params={}, res=listnodes_res2, execute=False) + + listpeers_res1 = l2.rpc.listpeers(l3.info['id']) + listpeers_res1 = update_list_responses(listpeers_res1, list_key='peers', slice_upto=5, update_func=None, sort=True, sort_key='id') + update_example(node=l2, method='listpeers', params={'id': l3.info['id']}, res=listpeers_res1, execute=False) + listpeers_res2 = l2.rpc.listpeers() + listpeers_res2 = update_list_responses(listpeers_res2, list_key='peers', slice_upto=5, update_func=None, sort=True, sort_key='id') + update_example(node=l2, method='listpeers', params={}, res=listpeers_res2, execute=False) + + update_example(node=l2, method='listdatastore', params={'key': ['employee']}) + update_example(node=l2, method='listdatastore', params={'key': 'somekey'}) + + listoffers_res1 = l2.rpc.listoffers(active_only=True) + listoffers_res1 = update_list_responses(listoffers_res1, list_key='offers') + update_example(node=l2, method='listoffers', params={'active_only': True}, res=listoffers_res1, execute=False) + listoffers_res2 = l2.rpc.listoffers(offer_id=offer_l23['offer_id']) + listoffers_res2 = update_list_responses(listoffers_res2, list_key='offers') + update_example(node=l2, method='listoffers', params=[offer_l23['offer_id']], res=listoffers_res2, execute=False) + + update_example(node=l2, method='listinvoicerequests', params=[inv_req_l1_l22['invreq_id']]) + listinvoicerequests_res2 = l2.rpc.listinvoicerequests() + listinvoicerequests_res2 = update_list_responses(listinvoicerequests_res2, list_key='invoicerequests', slice_upto=len(listinvoicerequests_res2['invoicerequests']), update_func=None, sort=True, sort_key='used') + update_example(node=l2, method='listinvoicerequests', params={}, res=listinvoicerequests_res2, execute=False) + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['any', 'invreq_id'], 'original_value': inv_req_l1_l22['invreq_id'], 'new_value': NEW_VALUES_LIST['invreq_id_l1_l22']}, + {'data_keys': ['netaddr'], 'original_value': listpeers_res2['peers'][0]['netaddr'], 'new_value': [NEW_VALUES_LIST['l1_addr']]}, + {'data_keys': ['local'], 'original_value': listclosedchannels_res1['closedchannels'][0]['alias']['local'], 'new_value': NEW_VALUES_LIST['closed_channel_alias_local_1']}, + {'data_keys': ['remote'], 'original_value': listclosedchannels_res1['closedchannels'][0]['alias']['remote'], 'new_value': NEW_VALUES_LIST['closed_channel_alias_remote_1']}, + {'data_keys': ['local'], 'original_value': listclosedchannels_res1['closedchannels'][1]['alias']['local'], 'new_value': NEW_VALUES_LIST['closed_channel_alias_local_2']}, + {'data_keys': ['remote'], 'original_value': listclosedchannels_res1['closedchannels'][1]['alias']['remote'], 'new_value': NEW_VALUES_LIST['closed_channel_alias_remote_2']}, + {'data_keys': ['last_commitment_txid'], 'original_value': listclosedchannels_res1['closedchannels'][0]['last_commitment_txid'], 'new_value': NEW_VALUES_LIST['close_lc_txid_1']}, + {'data_keys': ['last_stable_connection'], 'original_value': listclosedchannels_res1['closedchannels'][0]['last_stable_connection'], 'new_value': NEW_VALUES_LIST['time_at_850']}, + {'data_keys': ['last_commitment_txid'], 'original_value': listclosedchannels_res1['closedchannels'][1]['last_commitment_txid'], 'new_value': NEW_VALUES_LIST['close_lc_txid_2']}, + {'data_keys': ['last_stable_connection'], 'original_value': listclosedchannels_res1['closedchannels'][1]['last_stable_connection'], 'new_value': NEW_VALUES_LIST['time_at_850']}, + {'data_keys': ['any'], 'original_value': listconfigs_res3['configs']['addr']['values_str'][0], 'new_value': NEW_VALUES_LIST['configs_3_addr2']}, + {'data_keys': ['value_int'], 'original_value': listconfigs_res3['configs']['bitcoin-rpcport']['value_int'], 'new_value': NEW_VALUES_LIST['bitcoin-rpcport']}, + {'data_keys': ['value_str'], 'original_value': listconfigs_res3['configs']['alias']['value_str'], 'new_value': NEW_VALUES_LIST['l2_alias']}, + {'data_keys': ['channel_flags'], 'original_value': listchannels_res2['channels'][-1]['channel_flags'], 'new_value': 2}, + ]) + logger.info('Lists Done!') + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating lists examples: {e}') + + @unittest.skipIf(GENERATE_EXAMPLES is not True, 'Generates examples for doc/schema/lightning-*.json files.') def test_generate_examples(node_factory, bitcoind, executor): """Re-generates examples for doc/schema/lightning-*.json files""" @@ -1136,7 +1997,7 @@ def list_all_examples(): logger.error(f'Error in listing all examples: {e}') def list_missing_examples(): - """Checks for missing example file or example & log an error if missing.""" + """Checks for missing example & log an error if missing.""" try: global ALL_METHOD_NAMES for file_name in os.listdir('doc/schemas'): @@ -1144,61 +2005,33 @@ def list_missing_examples(): continue file_name_str = str(file_name).replace('lightning-', '').replace('.json', '') # Log an error if the method is not in the list - if file_name_str not in ALL_METHOD_NAMES: - logger.error(f'Missing File or Example {file_name_str}.') + if file_name_str not in ALL_METHOD_NAMES and file_name_str not in IGNORE_RPCS_LIST: + logger.error(f'Missing Example {file_name_str}.') except Exception as e: logger.error(f'Error in listing missing examples: {e}') - def clear_existing_examples(): - """Clear existing examples in JSON files to regenerate them later""" - global REGENERATING_RPCS - for rpc in REGENERATING_RPCS: - try: - global CWD - file_path = os.path.join(CWD, 'doc', 'schemas', f'lightning-{rpc}.json') - with open(file_path, 'r+', encoding='utf-8') as file: - data = json.load(file) - # Deletes the 'examples' key corresponding to the method's file - if 'examples' in data: - del data['examples'] - file.seek(0) - json.dump(data, file, indent=2, ensure_ascii=False) - file.write('\n') - file.truncate() - except FileNotFoundError as fnf_error: - logger.error(f'File not found error {fnf_error} for {file_path}') - except Exception as e: - logger.error(f'Error saving example in file {file_path}: {e}') - logger.info(f'Cleared Examples: {REGENERATING_RPCS}') - return None - ALL_RPC_EXAMPLES = list_all_examples() ALL_METHOD_NAMES = [example['method'] for example in ALL_RPC_EXAMPLES] logger.info(f'This test can reproduce examples for {len(ALL_RPC_EXAMPLES)} methods: {ALL_METHOD_NAMES}') - REGENERATING_RPCS = [rpc.strip() for rpc in os.getenv("REGENERATE").split(',')] if os.getenv("REGENERATE") else ALL_METHOD_NAMES - logger.info(f'Regenerating examples for: {REGENERATING_RPCS}') + REGENERATING_RPCS = [rpc.strip() for rpc in os.getenv("REGENERATE").split(', ')] if os.getenv("REGENERATE") else ALL_METHOD_NAMES RPCS_STATUS = [False] * len(REGENERATING_RPCS) list_missing_examples() - clear_existing_examples() - l1, l2, l3, l4, l5, l6, c12, c23, c25, c34, c23res = setup_test_nodes(node_factory, bitcoind) - inv_l11, inv_l21, inv_l22, inv_l31, inv_l32, inv_l34 = generate_transactions_examples(l1, l2, l3, l4, l5, c25, bitcoind) + l1, l2, l3, l4, l5, l6, c12, c23, c25 = setup_test_nodes(node_factory, bitcoind) + c23_2, c23res2, c34_2, inv_l11, inv_l21, inv_l22, inv_l31, inv_l32, inv_l34 = generate_transactions_examples(l1, l2, l3, l4, l5, c25, bitcoind) rune_l21 = generate_runes_examples(l1, l2, l3) + offer_l23, inv_req_l1_l22 = generate_offers_renepay_examples(l1, l2, inv_l21, inv_l34) generate_datastore_examples(l2) - generate_bookkeeper_examples(l2, l3, c23res['channel_id']) - generate_offers_renepay_examples(l1, l2, inv_l21, inv_l34) - generate_list_examples(l1, l2, l3, c12, c23, inv_l31, inv_l32) + generate_bookkeeper_examples(l2, l3, c23res2['channel_id']) generate_wait_examples(l1, l2, bitcoind, executor) - generate_utils_examples(l1, l2, l3, l4, l5, l6, c23, c34, inv_l11, inv_l22, rune_l21, bitcoind) + generate_utils_examples(l1, l2, l3, l4, l5, l6, c23_2, c34_2, inv_l11, inv_l22, rune_l21, bitcoind) generate_splice_examples(node_factory, bitcoind) generate_channels_examples(node_factory, bitcoind, l1, l3, l4, l5) generate_autoclean_delete_examples(l1, l2, l3, l4, l5, c12, c23) generate_backup_recovery_examples(node_factory, l4, l5, l6) + generate_list_examples(l1, l2, l3, c12, c23_2, inv_l31, inv_l32, offer_l23, inv_req_l1_l22) + update_examples_in_schema_files() logger.info('All examples generated successfully!') except TaskFinished as m: logger.info(m) except Exception as e: - # FIXME: The test passes but with flaky errors: - # 1: plugin-bcliBROKEN: bitcoin-cli -regtest -datadir=/tmp/ltests-65999628/test_generate_examples_1/lightning-6/ -rpcclienttimeout=60 -rpcport=57425 -rpcuser=... -stdinrpcpass getblockhash 159 exited 1 (after 60 other errors) - # 'Error: Specified data directory \"/tmp/ltests-65999628/test_generate_examples_1/lightning-6/\" does not exist.\n'; we have been retrying command for --bitcoin-retry-timeout=60 seconds; bitcoind setup or our --bitcoin-* configs broken? - # 2: Node /tmp/ltests-joqzs3fy/test_generate_examples_1/lightning-3/ has memory leaks: [{"subdaemon": "lightningd"}] logger.error(e)