diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5ac66ae23526..c55922f0037a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,6 +24,8 @@ jobs: timeout-minutes: 30 env: BOLTDIR: bolts + VALGRIND: 0 + PYTEST_OPTS: --timeout=1200 strategy: fail-fast: true steps: diff --git a/.gitignore b/.gitignore index dcc908b1d194..954a83f50c1a 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/Makefile b/Makefile index 14bd27456b7c..74d0453dd348 100644 --- a/Makefile +++ b/Makefile @@ -577,8 +577,13 @@ check-amount-access: @! (git grep -nE "(->|\.)(milli)?satoshis" -- "*.c" "*.h" ":(exclude)common/amount.*" ":(exclude)*/test/*" | grep -v '/* Raw:') @! git grep -nE "\\(struct amount_(m)?sat\\)" -- "*.c" "*.h" ":(exclude)common/amount.*" ":(exclude)*/test/*" | grep -vE "sizeof.struct amount_(m)?sat." +check-doc-examples: + $(PYTEST) $(PYTEST_OPTS) tests/autogenerate-rpc-examples.py + git diff --exit-code HEAD + + # For those without working cppcheck -check-source-no-cppcheck: check-makefile check-source-bolt check-whitespace check-spelling check-python check-includes check-shellcheck check-setup_locale check-tmpctx check-discouraged-functions check-amount-access +check-source-no-cppcheck: check-makefile check-source-bolt check-whitespace check-spelling check-python check-includes check-shellcheck check-setup_locale check-tmpctx check-discouraged-functions check-amount-access check-doc-examples check-source: check-source-no-cppcheck diff --git a/contrib/msggen/msggen/schema.json b/contrib/msggen/msggen/schema.json index 01b53fbfd891..46656268a952 100644 --- a/contrib/msggen/msggen/schema.json +++ b/contrib/msggen/msggen/schema.json @@ -157,9 +157,9 @@ } }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAA==", + "psbt": "cHNidP8BAgpsbt1001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "estimated_added_weight": 172, - "outnum": 0 + "outnum": 1 } }, { @@ -168,11 +168,11 @@ "method": "addpsbtoutput", "params": [ 3333333, - "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=" + "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=", + "psbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", "estimated_added_weight": 172, "outnum": 1 } @@ -183,14 +183,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 } } ] @@ -256,6 +256,22 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-age#1", + "method": "askrene-age", + "params": { + "layer": "test_layers", + "cutoff": 1738000000 + } + }, + "response": { + "layer": "test_layers", + "num_removed": 1 + } + } ] }, "lightning-askrene-bias-channel.json": { @@ -359,6 +375,50 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-bias-channel#1", + "method": "askrene-bias-channel", + "params": { + "layer": "test_layers", + "short_channel_id_dir": "109x1x1/1", + "bias": 1 + } + }, + "response": { + "biases": [ + { + "layer": "test_layers", + "short_channel_id_dir": "109x1x1/1", + "bias": 1 + } + ] + } + }, + { + "request": { + "id": "example:askrene-bias-channel#2", + "method": "askrene-bias-channel", + "params": [ + "test_layers", + "109x1x1/1", + -5, + "bigger bias" + ] + }, + "response": { + "biases": [ + { + "layer": "test_layers", + "short_channel_id_dir": "109x1x1/1", + "description": "bigger bias", + "bias": -5 + } + ] + } + } ] }, "lightning-askrene-create-channel.json": { @@ -431,6 +491,22 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-create-channel#1", + "method": "askrene-create-channel", + "params": { + "layer": "test_layers", + "source": "nodeid030303030303030303030303030303030303030303030303030303030303", + "destination": "nodeid010101010101010101010101010101010101010101010101010101010101", + "short_channel_id": "0x0x1", + "capacity_msat": "1000000sat" + } + }, + "response": {} + } ] }, "lightning-askrene-create-layer.json": { @@ -680,6 +756,30 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-create-layer#1", + "method": "askrene-create-layer", + "params": { + "layer": "test_layers" + } + }, + "response": { + "layers": [ + { + "layer": "test_layers", + "persistent": false, + "disabled_nodes": [], + "created_channels": [], + "channel_updates": [], + "constraints": [], + "biases": [] + } + ] + } + } ] }, "lightning-askrene-disable-node.json": { @@ -729,6 +829,19 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-disable-node#1", + "method": "askrene-disable-node", + "params": { + "layer": "test_layers", + "node": "nodeid010101010101010101010101010101010101010101010101010101010101" + } + }, + "response": {} + } ] }, "lightning-askrene-inform-channel.json": { @@ -844,6 +957,30 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-inform-channel#1", + "method": "askrene-inform-channel", + "params": { + "layer": "test_layers", + "short_channel_id_dir": "0x0x1/1", + "amount_msat": 100000, + "inform": "unconstrained" + } + }, + "response": { + "constraints": [ + { + "layer": "test_layers", + "short_channel_id_dir": "0x0x1/1", + "timestamp": 1738000000, + "minimum_msat": 100000 + } + ] + } + } ] }, "lightning-askrene-listlayers.json": { @@ -1095,6 +1232,119 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-listlayers#1", + "method": "askrene-listlayers", + "params": [ + "test_layers" + ] + }, + "response": { + "layers": [ + { + "layer": "test_layers", + "persistent": false, + "disabled_nodes": [ + "nodeid010101010101010101010101010101010101010101010101010101010101" + ], + "created_channels": [ + { + "source": "nodeid010101010101010101010101010101010101010101010101010101010101", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "short_channel_id": "0x0x1", + "capacity_msat": 1000000000 + } + ], + "channel_updates": [ + { + "short_channel_id_dir": "0x0x1/0", + "htlc_minimum_msat": 100, + "htlc_maximum_msat": 900000000, + "fee_base_msat": 1, + "fee_proportional_millionths": 2, + "cltv_expiry_delta": 18 + } + ], + "constraints": [ + { + "short_channel_id_dir": "0x0x1/1", + "timestamp": 1738000000, + "minimum_msat": 100000 + } + ], + "biases": [ + { + "short_channel_id_dir": "109x1x1/1", + "description": "bigger bias", + "bias": -5 + } + ] + } + ] + } + }, + { + "request": { + "id": "example:askrene-listlayers#2", + "method": "askrene-listlayers", + "params": {} + }, + "response": { + "layers": [ + { + "layer": "test_layers", + "persistent": false, + "disabled_nodes": [ + "nodeid010101010101010101010101010101010101010101010101010101010101" + ], + "created_channels": [ + { + "source": "nodeid010101010101010101010101010101010101010101010101010101010101", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "short_channel_id": "0x0x1", + "capacity_msat": 1000000000 + } + ], + "channel_updates": [ + { + "short_channel_id_dir": "0x0x1/0", + "htlc_minimum_msat": 100, + "htlc_maximum_msat": 900000000, + "fee_base_msat": 1, + "fee_proportional_millionths": 2, + "cltv_expiry_delta": 18 + } + ], + "constraints": [ + { + "short_channel_id_dir": "0x0x1/1", + "timestamp": 1738000000, + "minimum_msat": 100000 + } + ], + "biases": [ + { + "short_channel_id_dir": "109x1x1/1", + "description": "bigger bias", + "bias": -5 + } + ] + }, + { + "layer": "xpay", + "persistent": true, + "disabled_nodes": [], + "created_channels": [], + "channel_updates": [], + "constraints": [], + "biases": [] + } + ] + } + } ] }, "lightning-askrene-listreservations.json": { @@ -1167,6 +1417,43 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-listreservations#1", + "method": "askrene-listreservations", + "params": {} + }, + "response": { + "reservations": [ + { + "short_channel_id_dir": "109x1x1/1", + "amount_msat": 1250000, + "age_in_seconds": 2, + "command_id": "\"-c:askrene-reserve#62/cln:askrene-reserve#122\"" + }, + { + "short_channel_id_dir": "123x1x1/0", + "amount_msat": 1250001, + "age_in_seconds": 2, + "command_id": "\"-c:askrene-reserve#62/cln:askrene-reserve#122\"" + }, + { + "short_channel_id_dir": "109x1x1/1", + "amount_msat": 1250000000000, + "age_in_seconds": 2, + "command_id": "\"-c:askrene-reserve#66/cln:askrene-reserve#126\"" + }, + { + "short_channel_id_dir": "123x1x1/0", + "amount_msat": 1250000000000, + "age_in_seconds": 2, + "command_id": "\"-c:askrene-reserve#66/cln:askrene-reserve#126\"" + } + ] + } + } ] }, "lightning-askrene-remove-layer.json": { @@ -1206,6 +1493,18 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-remove-layer#1", + "method": "askrene-remove-layer", + "params": { + "layer": "test_layers" + } + }, + "response": {} + } ] }, "lightning-askrene-reserve.json": { @@ -1267,6 +1566,46 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-reserve#1", + "method": "askrene-reserve", + "params": { + "path": [ + { + "short_channel_id_dir": "109x1x1/1", + "amount_msat": 1250000 + }, + { + "short_channel_id_dir": "123x1x1/0", + "amount_msat": 1250001 + } + ] + } + }, + "response": {} + }, + { + "request": { + "id": "example:askrene-reserve#2", + "method": "askrene-reserve", + "params": { + "path": [ + { + "short_channel_id_dir": "109x1x1/1", + "amount_msat": 1250000000000 + }, + { + "short_channel_id_dir": "123x1x1/0", + "amount_msat": 1250000000000 + } + ] + } + }, + "response": {} + } ] }, "lightning-askrene-unreserve.json": { @@ -1328,6 +1667,46 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-unreserve#1", + "method": "askrene-unreserve", + "params": { + "path": [ + { + "short_channel_id_dir": "109x1x1/1", + "amount_msat": 1250000 + }, + { + "short_channel_id_dir": "123x1x1/0", + "amount_msat": 1250001 + } + ] + } + }, + "response": {} + }, + { + "request": { + "id": "example:askrene-unreserve#2", + "method": "askrene-unreserve", + "params": { + "path": [ + { + "short_channel_id_dir": "109x1x1/1", + "amount_msat": 1250000000000 + }, + { + "short_channel_id_dir": "123x1x1/0", + "amount_msat": 1250000000000 + } + ] + } + }, + "response": {} + } ] }, "lightning-askrene-update-channel.json": { @@ -1410,6 +1789,35 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-update-channel#1", + "method": "askrene-update-channel", + "params": [ + "test_layers", + "0x0x1/0" + ] + }, + "response": {} + }, + { + "request": { + "id": "example:askrene-update-channel#2", + "method": "askrene-update-channel", + "params": { + "layer": "test_layers", + "short_channel_id_dir": "0x0x1/0", + "htlc_minimum_msat": 100, + "htlc_maximum_msat": 900000000, + "fee_base_msat": 1, + "fee_proportional_millionths": 2, + "cltv_expiry_delta": 18 + } + }, + "response": {} + } ] }, "lightning-autoclean-once.json": { @@ -2410,9 +2818,9 @@ "response": { "channels_apy": [ { - "account": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", + "account": "channelid0120000120000120000120000120000120000120000120000120000", "routed_out_msat": 1000000, - "routed_in_msat": 510081208, + "routed_in_msat": 510091208, "lease_fee_paid_msat": 0, "lease_fee_earned_msat": 0, "pushed_out_msat": 0, @@ -2421,17 +2829,17 @@ "channel_start_balance_msat": 1000000000, "fees_out_msat": 0, "fees_in_msat": 106, - "utilization_out": "0.1000%", - "utilization_in": "51.0081%", - "utilization_in_initial": "51.0081%", - "apy_out": "0.0000%", - "apy_in": "0.0252%", - "apy_in_initial": "0.0252%", - "apy_total": "0.0252%" + "utilization_out": "30.7060%", + "utilization_in": "10.0027%", + "utilization_in_initial": "50.0081%", + "apy_out": "0.0080%", + "apy_in": "0.0080%", + "apy_in_initial": "0.0250%", + "apy_total": "0.0160%" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "routed_out_msat": 510181102, + "account": "channelid0230000230000230000230000230000230000230000230000230000", + "routed_out_msat": 510190102, "routed_in_msat": 0, "lease_fee_paid_msat": 0, "lease_fee_earned_msat": 0, @@ -2441,17 +2849,17 @@ "channel_start_balance_msat": 1000000000, "fees_out_msat": 106, "fees_in_msat": 0, - "utilization_out": "51.0181%", - "utilization_out_initial": "51.0181%", - "utilization_in": "0.0000%", - "apy_out": "0.0505%", - "apy_out_initial": "0.0505%", - "apy_in": "0.0000%", - "apy_total": "0.0505%", - "apy_total_initial": "0.0505%" + "utilization_out": "31.7060%", + "utilization_out_initial": "51.5591%", + "utilization_in": "11.0027%", + "apy_out": "0.0081%", + "apy_out_initial": "0.0121%", + "apy_in": "0.0081%", + "apy_total": "0.0161%", + "apy_total_initial": "0.0161%" }, { - "account": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", + "account": "channelid0250000250000250000250000250000250000250000250000250000", "routed_out_msat": 500000000, "routed_in_msat": 0, "lease_fee_paid_msat": 0, @@ -2462,19 +2870,19 @@ "channel_start_balance_msat": 1000000000, "fees_out_msat": 0, "fees_in_msat": 0, - "utilization_out": "50.0000%", - "utilization_out_initial": "50.0000%", - "utilization_in": "0.0000%", - "apy_out": "0.0000%", - "apy_out_initial": "0.0000%", - "apy_in": "0.0000%", - "apy_total": "0.0000%", - "apy_total_initial": "0.0000%" + "utilization_out": "32.7060%", + "utilization_out_initial": "52.5591%", + "utilization_in": "12.0027%", + "apy_out": "0.0082%", + "apy_out_initial": "0.0122%", + "apy_in": "0.0082%", + "apy_total": "0.0162%", + "apy_total_initial": "0.0162%" }, { "account": "net", - "routed_out_msat": 1011181102, - "routed_in_msat": 510081208, + "routed_out_msat": 1011190102, + "routed_in_msat": 510091208, "lease_fee_paid_msat": 0, "lease_fee_earned_msat": 0, "pushed_out_msat": 0, @@ -2484,15 +2892,15 @@ "fees_out_msat": 106, "fees_in_msat": 106, "utilization_out": "33.7060%", - "utilization_out_initial": "50.5591%", - "utilization_in": "17.0027%", - "utilization_in_initial": "51.0081%", - "apy_out": "0.0084%", - "apy_out_initial": "0.0126%", - "apy_in": "0.0084%", - "apy_in_initial": "0.0252%", - "apy_total": "0.0168%", - "apy_total_initial": "0.0168%" + "utilization_out_initial": "53.5591%", + "utilization_in": "13.0027%", + "utilization_in_initial": "53.0081%", + "apy_out": "0.0083%", + "apy_out_initial": "0.0123%", + "apy_in": "0.0083%", + "apy_in_initial": "0.0253%", + "apy_total": "0.0163%", + "apy_total_initial": "0.0163%" } ] } @@ -2878,7 +3286,7 @@ "id": "example:bkpr-editdescriptionbyoutpoint#1", "method": "bkpr-editdescriptionbyoutpoint", "params": { - "outpoint": "55edd73a01f08057e1f5f61788477c0d7551d5d1aa2f2907bf9d03b6370bbacf:1", + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1", "description": "edited utxo description" } }, @@ -2891,8 +3299,8 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "outpoint": "55edd73a01f08057e1f5f61788477c0d7551d5d1aa2f2907bf9d03b6370bbacf:1", - "timestamp": 1724554221, + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1", + "timestamp": 1738510000, "blockheight": 105, "description": "edited utxo description" } @@ -2904,8 +3312,8 @@ "id": "example:bkpr-editdescriptionbyoutpoint#2", "method": "bkpr-editdescriptionbyoutpoint", "params": { - "outpoint": "6472b4c9d39d8478ed9c848df7a62a512d953a4b2e6e7b09902d76a7bbb761ca:1", - "description": "edited utxo description" + "outpoint": "abcd020202020202020202020202020202020202020202020202020202020202:1", + "description": "edited utxo description for non existing outpoint" } }, "response": { @@ -3181,23 +3589,23 @@ "id": "example:bkpr-editdescriptionbypaymentid#1", "method": "bkpr-editdescriptionbypaymentid", "params": { - "payment_id": "6ff673c6ae3527726cf200274426db79f93054a3cbbc4b3787d1afc2d65565a7", - "description": "edited invoice description" + "payment_id": "paymentid0000202020202020202020202020202020202020202020202020202", + "description": "edited invoice description from description send some sats l2 to l3" } }, "response": { "updated": [ { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 500000000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "6ff673c6ae3527726cf200274426db79f93054a3cbbc4b3787d1afc2d65565a7", + "payment_id": "paymentid0000202020202020202020202020202020202020202020202020202", "part_id": 0, - "timestamp": 1724554257, - "description": "edited invoice description", + "timestamp": 1738520000, + "description": "edited invoice description from description send some sats l2 to l3", "is_rebalance": false } ] @@ -3208,8 +3616,8 @@ "id": "example:bkpr-editdescriptionbypaymentid#2", "method": "bkpr-editdescriptionbypaymentid", "params": { - "payment_id": "c97b61113636256111835c0204d70111c42f19069cefdc659849a6afc6b595a4", - "description": "edited invoice description" + "payment_id": "c000010101010101010101010101010101010101010101010101010101010101", + "description": "edited invoice description for non existing payment id" } }, "response": { @@ -3433,50 +3841,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" } ] } @@ -3762,416 +4143,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", + "account": "channelid0230200230200230200230200230200230200230200230200230200", "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", - "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" } ] } @@ -4180,148 +4167,44 @@ "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": 510010000, "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, + "description": "edited utxo description" }, { - "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 } ] } @@ -4479,14 +4362,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, @@ -4499,8 +4382,8 @@ ] }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "peer_id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "account": "channelid0340000340000340000340000340000340000340000340000340000", + "peer_id": "nodeid040404040404040404040404040404040404040404040404040404040404", "we_opened": true, "account_closed": true, "account_resolved": false, @@ -4512,8 +4395,8 @@ ] }, { - "account": "ecabe6d86abdd57565b3fb7e7c5d724e60ca1a07633951769b5dbfa48dc884b3", - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "account": "channelid0230200230200230200230200230200230200230200230200230200", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "we_opened": false, "account_closed": false, "account_resolved": false, @@ -4525,8 +4408,8 @@ ] }, { - "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", - "peer_id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "account": "channelid0340200340200340200340200340200340200340200340200340200", + "peer_id": "nodeid040404040404040404040404040404040404040404040404040404040404", "we_opened": true, "account_closed": false, "account_resolved": false, @@ -4679,7 +4562,9 @@ "request": { "id": "example:bkpr-listincome#1", "method": "bkpr-listincome", - "params": {} + "params": { + "consolidate_fees": false + } }, "response": { "income_events": [ @@ -4689,8 +4574,9 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303635, - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0" + "timestamp": 1738500000, + "description": "edited utxo description", + "outpoint": "txidbk0000000000000000000000000000000000000000000000000000000000:1" }, { "account": "wallet", @@ -4698,132 +4584,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" } ] } @@ -4832,9 +4612,7 @@ "request": { "id": "example:bkpr-listincome#2", "method": "bkpr-listincome", - "params": { - "consolidate_fees": false - } + "params": {} }, "response": { "income_events": [ @@ -4844,177 +4622,28 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303635, - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0" + "timestamp": 1738510000, + "description": "edited utxo description", + "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, - "description": "description send some sats l2 to l3", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670" + "timestamp": 1738520000, + "description": "edited invoice description from description send some sats l2 to l3", + "payment_id": "paymentid0000202020202020202020202020202020202020202020202020202" }, { - "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" - }, - { - "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", + "account": "channelid0340200340200340200340200340200340200340200340200340200", "tag": "onchain_fee", "credit_msat": 0, "debit_msat": 6960000, "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "timestamp": 1738530000, + "txid": "channeltxid340200340200340200340200340200340200340200340200340200" } ] } @@ -5215,15 +4844,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" @@ -5364,7 +4993,7 @@ } }, "response": { - "pubkey": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "pubkey": "nodeid010101010101010101010101010101010101010101010101010101010101", "verified": true } } @@ -5462,7 +5091,7 @@ "id": "example:checkrune#1", "method": "checkrune", "params": { - "nodeid": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "nodeid": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "_RWaZZRI7wAYU2hqlFBmYgC_dFczcpAdI_9O87YbDpg9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl", "method": "listpeers", "params": {} @@ -5477,7 +5106,7 @@ "id": "example:checkrune#2", "method": "checkrune", "params": { - "nodeid": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "nodeid": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "QUJEYMLGgiaJvMDv_MhR2hiMKIBTbq-PrL-KxcIlirQ9MiZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", "method": "pay", "params": { @@ -5683,13 +5312,19 @@ "id": "example:close#1", "method": "close", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "unilateraltimeout": 1 } }, "response": { - "tx": "020000000001018304b0bbf2ea662c053e0377df4652059bb107eb5312989471c2ef7e51f023cd0000000000ffffffff020b6e07000000000022512085d72025e78fd08bb61119f0987ab0041f50561ada6e130c645343db8c44c2afe5c8070000000000225120a7583f0c421663b8ca76fa579018b40682ef8553d73fd061cd8f216ecdced6a304004730440220369e36994b74172c67b738891a22a8f7cf3ad3d6051a1c08b641277c2b129134022060b96175b5046a0e8814c03076da885e4546f11e72188582473f0ca901001a0b0147304402206733aaa116b30474dfcdcc2ce48fbc6f222ed0eae7ac6e4c95da6a6f2a2105a502200ab85229e9981e0364ab1bef38e9a581067a9c7d9fe30487e34fd8e13eff56320147522102d595ae92b3544c3250fb772f214ad8d4c51425033740a5bcc357190add6d7e7a2102d6063d022691b2490ab454dee73a57c6ff5d308352b461ece69f3c284f2c241252ae00000000", - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", + "tx": "02000000000101cls00101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "txid": "txid010101010101010101010101010101010101010101010101010101010101", + "txs": [ + "02000000000101cls00101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" + ], + "txids": [ + "txid010101010101010101010101010101010101010101010101010101010101" + ], "type": "mutual" } }, @@ -5698,13 +5333,19 @@ "id": "example:close#2", "method": "close", "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "destination": "bcrt1qwvp8fktkxp07v0fp9jyqe7yl6rcgyu585a7pzr" + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", + "destination": "bcrt1p0004040404040404040404040404040404040404040404040404040404" } }, "response": { - "tx": "02000000000101e23fcc9e6306ce636b203217b22409bf9bab2211f9f432de781dedb6377dab5a0100000000ffffffff02746f070000000000160014730274d976305fe63d212c880cf89fd0f082728731c80700000000002251202bdd81f95d64ed2cc37d2eae725de428c91bff072d7503d87446970eedc63030040047304402205834de4c5c994a50f3ba5406534254b68e35836f98b4d5371b78225a79d087dd02201f54e1ae045e9a33dd3dd5a2b589903f305af5ead515a8e55feb2447b090415c0147304402202dd2efc52e5b4a78cbc1cf5664a0a3e3a5e67e16b0de37fc6818dbb838b6be17022062a071e81ecaec4808a44b049e091fa60b5fcf9e7f7bbdf85bc564a0a467e13601475221021c29746e4136ddff456483df3980c2d0d5f31c93ef5ded564f7294a10d7414aa2103c47b1b2afcfd68c7b86c0976adb9a4f0835bc78242fced745d78433497a867d652ae00000000", - "txid": "2849a5c5cd182ebec02d18ba6348bb01e70a544d0ce9aa8b5533fb09d24c969e", + "tx": "02000000000101cls10202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", + "txid": "txid020202020202020202020202020202020202020202020202020202020202", + "txs": [ + "02000000000101cls10202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" + ], + "txids": [ + "txid020202020202020202020202020202020202020202020202020202020202" + ], "type": "mutual" } } @@ -6127,7 +5768,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -6160,13 +5801,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" } @@ -6184,7 +5825,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -6701,15 +6342,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, @@ -6720,17 +6361,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" } @@ -6741,24 +6382,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" } ] } @@ -6768,23 +6409,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" } } @@ -6984,19 +6625,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 } } }, @@ -7005,19 +6646,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 } } } @@ -7236,19 +6877,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 } } @@ -7364,27 +7005,27 @@ "params": { "hops": [ { - "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payload": "11020203e9040187060800006f0000010000" + "pubkey": "nodeid020202020202020202020202020202020202020202020202020202020202", + "payload": "payload010101010101010101010101010" }, { - "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payload": "11020203e804018106080000710000010001" + "pubkey": "nodeid030303030303030303030303030303030303030303030303030303030303", + "payload": "payload020202020202020202020202020" }, { - "pubkey": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payload": "2b020203e80401810822810248b37c63b882804cf746c5b1d7595d26713d89a443ec5808a18ed2327a1903e8" + "pubkey": "nodeid040404040404040404040404040404040404040404040404040404040404", + "payload": "payload030303030303030303030303030" } ], - "assocdata": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" + "assocdata": "assocdata0010101010101010101010101010101010101010101010101010101" } }, "response": { - "onion": "0003ccc1f8876af4810e23bd4cccd8f2f38ee5dc117f527c783fefa4e632f857c98d588d2e3150d16b78f9458777502e4829b490e8a2d560841eb0c2368311bf9bb4e8ded0356badafd915839409ad60866c24dd7580b468c14097575565ca95425b9f44211d9ad0305ddba2391a70892ac8c9fd7c3b67d0fe22faf5a0b6905ee2e22278fe224e89ea72c3fcc598b35afaa255123e61ae7a697703e3bb8aec4d36ea487df6ec27942aadff0527d178c897e75f1ee284995196b5ead963ee9d0df798c8265c00c5c73daac917d298cc17e5d813189321d914c45ef30170c4d617dae12bb3a760d1665705e61bb6c52789e15623cefc68d96b86a6f17159c4a86bb196c9f5e40a0744d08d6da0cfd587717b6d0d074d42ac0893fa6ae1497c84824f1d27670d4e201af5e9e5a3493b603cfc209bb0ee41b573ca647c5b9882272c972cd18f19fd895e8995097d86882a473f4d26118a7ed656c5ea04c2a183b05cc0191d07fab5e78edab4ab8ec58e05e03f32d150449c0c8e3505e46ae58e77c87616144873f72f4571b00ccf8e71bcdf33a7d32345aecb660970fa73c4844ab157aa322f140f5d47b66a0590273728ddb5b8a7f3577cff5a268935b93fe598d6df4413c67c45efa9461abaf3294070a484418aa28c03ac20d08856eb0c74dfca851e8ed110bdcacb2a2fb90954b04e99986fde0678846a709120b5d1eeab9cde8d9f27d77448f4591e00bf30d7580703e6c189c658746cf7a7cc1430ce41f84244612b438c3d895333848e5f55e99b2a9d28860863c11aaa8e3ef01ead7ba1545156c356424c33aeeaa2f1e2c290d1d8dd52cd7b8116159025aba26db6fb81ad7f9cc4554c6f9f13d16defe38918b32d62a0516521934a0009a8d37c9a84689bfd8fc1f0beceb92701dca11175e0099d7541698956ba5d93efff996f538ee47717ae6c5cda98111bc28c822e99cf8957b707de270f447b6e52d30bcf9b8a9befd8663bc54612b543d0e167da67e2f295207b70857d0a7cae8932d905db2f48c873dec20aeafa07e15fa98a088e529424c8b404f03ba0ee78a6639fde5cd37dee42877ff6489ce1de5a8992cae25dd20a6521955c19129fdcc0ea157913373bf47a8018a1dd825a2f8e26194d5008161360ae9b25fc701b2accbe88eb47eee6a50b7ee6d6e169e3905e03ca72e00eb6a51b7ed3d27501715428368662b822e2262749d3e7d3243c4fd3d825b3e72bebdeebf6e035f1ad6634523ab5dc0335611c19c9936d006f2e4cd8818eb4f8b4857c8f35d18a4891e35ff91e3b54b384398574d673fcc8da50b22b8f485a41223c97e3b8ee5b8e5ff9c00a2cbfe7360509d3fee9248b5eaa81bb83da3be45dfa8cbbbf5c52ba8749c9d6261d4239feea1e7ce85ad40ad0c66bbeb1c6898626ae4e710a66f9c39a5ee94581353b46e070cfcff9a14e3f9a6108d55bb92852eb3a50e89b1e45d31b760f2a4e263a6a876ad638b123ffee7a2b0b48e16175e3eb92bfaad4dbe0af8b2bc1c15fec5a9d92d3970c2ffab2ab8fa2c9de0bd276680a4284707cd8543a97bca2394e9514236129f1c50a932f7e9bfb98c2aaa6ffc9a4a30641061246de6edf0f711a8d25d59af42ee4445b22ce2f832f3ece52c18ca62d90c590729e04c47accaec95b556ee2541c84843c54a116f5cc45bc251a8023b695f0bf79c43a97bece8a761d387a466821984fb5ec438af20d14cebb7f0026988c81b5a1b895ef94df61aa509e53083b4306c42132b5ce302fd5a2fbb1cee30a7078ccaa3bdccf781b8c9d6ae016a5f8e5cb13f7ac1f3fd0d74a182c9abea67d346f0dfcfc211aaa7ff47196465398fce3e6e0f3b73a944a7f57a90cc6a8f1bfcd385f8312e23af6f508f4f8a976d750660ac3d63630555a3a2e7fe158a982aaf0278d9f8819e5cb", + "onion": "onion10101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010", "shared_secrets": [ - "7d856ece68ddf5a89b909f888bc0c37207800a6cdba89db12a7cf7e7c26e5209", - "d1dfacfabba80f07461b890fc660440a105460b687c21bf78f7e6050c2889a98", - "46ff1895fde58206d5b437d39bb149995456ede6b9af75c0135210efbff23333" + "sharedsecret1010101010101010101010101010101010101010101010101010", + "sharedsecret1111111111111111111111111111111111111111111111111111", + "sharedsecret1212121212121212121212121212121212121212121212121212" ] } }, @@ -7392,31 +7033,31 @@ "request": { "id": "example:createonion#2", "method": "createonion", - "params": [ - [ + "params": { + "hops": [ { - "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payload": "11020203e9040187060800006f0000010000" + "pubkey": "nodeid020202020202020202020202020202020202020202020202020202020202", + "payload": "payload010101010101010101010101010" }, { - "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payload": "11020203e804018106080000710000010001" + "pubkey": "nodeid030303030303030303030303030303030303030303030303030303030303", + "payload": "payload020202020202020202020202020" }, { - "pubkey": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payload": "2b020203e80401810822810248b37c63b882804cf746c5b1d7595d26713d89a443ec5808a18ed2327a1903e8" + "pubkey": "nodeid040404040404040404040404040404040404040404040404040404040404", + "payload": "payload030303030303030303030303030" } ], - "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", - "4141414141414141414141414141414141414141414141414141414141414141" - ] + "assocdata": "assocdata0010101010101010101010101010101010101010101010101010101", + "session_key": "4141414141414141414141414141414141414141414141414141414141414141" + } }, "response": { - "onion": "0002eec7245d6b7d2ccb30380bfbe2a3648cd7a942653f5aa340edcea1f2836866191c78fd992bdb6323814526c8ea3ab57e22cd7739942f3a3f117d1191ed07d90599edc15c1d83a85b3f00350f4ec0f4b78894d38499e802a15843122723857ebddb629cf308d485de6bdbef80209059e3409ee47154e1b7e8f20d7ce02826c734601240c31ea9fa2c0caea8677b0db9e98835e762cb32e42da32f60bd000fe44350e8e87b69d83363c41d8d22f1639e8701901d74b64bf51f1c21cdc785b54dc5a6ba39fc75f956b60a372f6421a84f6001b294487baf1bb049b7bd901c5854c0999a82095874b02da90021a685f7c77f4b724a3d27489c091807b32bcdfb2c68f69b50c0b43c78288c333dbb007874f36fcf224fbc2ed89690f64a62b5ecfe6275750eb1a5575f689ca6d59c9a570689372db120cf6a29177caaace5ac671a3607d37a3048af18d1d736ac8a4dde8efc4884f8eab23cdc8cb15170471ee7b416b5cf089dee8ab8ac3eea6700a6040839c1e86f6d2b5acf9c7bac856cae96e9d1b7142f91ac4818cf0007a23100ae621470ac2552116f30948f21602237d12d29f58ca73f10f05b38f7b4b728fcfd8aafc1a82502aae3081c4bc8a77771aef16247bcf26d8569140441c405a3c21a649a8439797f45e7c37a2025318f4c88e3eba454fd4cc37e9978b59fa7b1e41af450523713fdad8070c7abdeea299474c99b2bde737e8c8ad79cb9fdd70a935ad29504d185bf100a339d203cd929030454a6450132255fea11ba0c6a520fa7cc3b8638f8032a61c492f7f9d1ec591a851f25df9238945ae467126b64019f21a71a2d3ef46cdd7b61773ad632dc77e0bda7d06b493efe940d9b975ebb85c423a83d24966f5e2ae2ec9c3b2257cc21a4989dd016d688865ba5245667c302e408dc56ffdf4282ad834f0c5af1ce49b3997fe397faf6874cac24ae346b4e72e468506c0e724efe6f805e0fd115de39b6fa29d05e11bbe2ec27548517f93ebd7b977b13237ab9c40ff5766f7263ea1f2eabba460600cd7da082fcf8d0a7bd37054abfd6040f886dde48cf600612b5b73a44026e79d46336de73f2ea5fbfc9603ccd89f6954e5093b6bfe556e6f67deb0878128049186f7ac6ef461a56c2bb4f24a9679fb386e06052c3da2f367f14bc41ec191f5b0b7b3ccad1f2cc58c863c49055c889b8b04b6b6cbaec50d0d103d4ea0da75952a730b07cea0da43914b5ab3f30b5104d9a75eb003da0b5b97bf9eb9081194cc5b50362041a972841bdafde31909929237ed5b94c88dd05126cdb3fd25add0c777c2ad021e1a0e7140d6c4c2005cb353a7a6a747ee75467c052f55faa485cbcf3758eafba7a8ef00d1481cc0f05af539116f443cb02a7b30a3de899dc66cb0781ccccf5c8d93b34be0665d11cbca55cd7a424b958124edf1289c7f4fc19c1be8fc7a861ce47c43a641bafdb195e1c74a1fbf69dbd518013f3dbf2860818b5a3e6f1dd36a5546bfd416e9714dec29818ecd1aeeb29c319b407c497621248d232680417486698a3e1262f03a8bc6441d1de40ae351dae4527a8efe25fc68a3f1571aa556edd6bfb9db7caba4d2c02bab003c43055f5d3ebf961735c3b1f4cd3e0a96038697a95cceac08c0aff084450cf571f81c95d468826aa4292997ccfeba32db77c4c22a9d3caa0a37a8a961ac2f2c8a6965687143bc93c620503839fd7bd7fc2e6d9c966586b713f824b8e9d3de55cb1b81f9204b92dfaa066920c0910e62e59650e904e05b94bde3e467d45719d6a3b85a71c8ff1dcca5a5f497928db5f64c55aad93513e87f4f0c93a6fa5a9afe929cf8223ea509f584913844044aa23a4afa4bc0ad975f4904aab5d77b5e51511460a3b7a982d3b0adcf3fd2ffc2494d16add2825a929fc7c4f0c97159e6fa6aba8569433", + "onion": "onion20202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020", "shared_secrets": [ - "2d7581974cde41b42da1d0a3147704aae5a71e8987fa30dc920c8cdf784b661d", - "bb599b824ce9e123c8cb27cd50a996e5035b8ae903356dcbff224496aab3a891", - "7bc4f97c2d18d5372ef572334e31590ec36b33220d7a71fa4e0fe841174eaccb" + "sharedsecret2020202020202020202020202020202020202020202020202020", + "sharedsecret2121212121212121212121212121212121212121212121212121", + "sharedsecret2222222222222222222222222222222222222222222222222222" ] } } @@ -7929,51 +7570,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" } }, @@ -7982,17 +7604,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 } @@ -8002,8 +7624,8 @@ "otherkey" ], "generation": 1, - "hex": "666f6f626172", - "string": "foobar" + "hex": "6f74686572206b65793a207465787420746f20626520617070656e64656420746f20746865206f746865726b6579", + "string": "other key: text to be appended to the otherkey" } } ] @@ -8094,7 +7716,7 @@ "response": { "datastoreusage": { "key": "[]", - "total_bytes": 55 + "total_bytes": 161 } } }, @@ -8127,7 +7749,7 @@ "response": { "datastoreusage": { "key": "[otherkey]", - "total_bytes": 14 + "total_bytes": 54 } } } @@ -10515,33 +10137,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 } } @@ -10822,23 +10444,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, @@ -10846,8 +10468,8 @@ } ] ], - "payment_hash": "1bc468bdb96d7e1307cc1b4c0ccf6e194604ae658b704db37ce983c392823726", - "signature": "30440220259ff982f0fbfd57d25000884edf3c8b6e66b350a94f9317c4677107d509d63a022030ff219de8d1fe193c0243cffc1578e978f7afb22d5fb62edaa81f6b46884a2f" + "payment_hash": "paymenthashinvl0110011001100110011001100110011001100110011001100", + "signature": "dcdepay30c4bb50bed209d020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" } } ] @@ -10981,8 +10603,8 @@ "otherkey" ], "generation": 1, - "hex": "666f6f626172", - "string": "foobar" + "hex": "6f74686572206b65793a207465787420746f20626520617070656e64656420746f20746865206f746865726b6579", + "string": "other key: text to be appended to the otherkey" } } ] @@ -11066,11 +10688,11 @@ "request": { "id": "example:delforward#2", "method": "delforward", - "params": [ - "109x1x1", - 19, - "failed" - ] + "params": { + "in_channel": "109x1x1", + "in_htlc_id": 21, + "status": "failed" + } }, "response": {} } @@ -11381,12 +11003,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 } }, @@ -11402,15 +11024,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 } @@ -11632,7 +11254,7 @@ "id": "example:delpay#1", "method": "delpay", "params": { - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "status": "complete" } }, @@ -11641,17 +11263,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" } ] } @@ -11661,25 +11283,25 @@ "id": "example:delpay#2", "method": "delpay", "params": [ - "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "paymenthashdelpay20202020202020202020202020202020202020202020202", "failed" ] }, "response": { "payments": [ { - "created_index": 20, - "id": 20, - "payment_hash": "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "created_index": 23, + "id": 23, + "payment_hash": "paymenthashdelinv10101010101010101010101010101010101010101010101", "groupid": 1, - "updated_index": 19, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "updated_index": 22, + "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" } ] } @@ -11689,7 +11311,7 @@ "id": "example:delpay#3", "method": "delpay", "params": { - "payment_hash": "647252f7e45fce7bb964523206874f40f58fbb7b208bc08967caa0e2404990c9", + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", "status": "failed", "groupid": 1, "partid": 2 @@ -11698,17 +11320,17 @@ "response": { "payments": [ { - "created_index": 17, - "id": 17, - "payment_hash": "647252f7e45fce7bb964523206874f40f58fbb7b208bc08967caa0e2404990c9", + "created_index": 20, + "id": 20, + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", "groupid": 1, - "updated_index": 16, + "updated_index": 19, "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" } ] @@ -11882,13 +11504,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" } }, { @@ -11899,15 +11521,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" } } ] @@ -12439,14 +12061,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 } } @@ -12547,14 +12169,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 } } @@ -12614,7 +12236,7 @@ "id": "example:disconnect#1", "method": "disconnect", "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", "force": false } }, @@ -12625,7 +12247,7 @@ "id": "example:disconnect#2", "method": "disconnect", "params": { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", + "id": "nodeid050505050505050505050505050505050505050505050505050505050505", "force": true } }, @@ -12693,9 +12315,9 @@ }, "response": { "stubs": [ + "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9", "e13472d6512413eb1bf03b9a0bb391d0e4152fd337fa6d1014e3de5e131918d9", - "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", - "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9" + "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f" ] } } @@ -12800,14 +12422,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 } } @@ -12869,6 +12491,35 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:exposesecret#1", + "method": "exposesecret", + "params": { + "passphrase": "test_exposesecret" + } + }, + "response": { + "identifier": "luea", + "codex32": "cl10lueasd35kw6r5de5kueedxyesqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqanvrktzhlhusz" + } + }, + { + "request": { + "id": "example:exposesecret#2", + "method": "exposesecret", + "params": [ + "test_exposesecret", + "cln2" + ] + }, + "response": { + "identifier": "cln2", + "codex32": "cl10cln2sd35kw6r5de5kueedxyesqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqn9lcvcu7cez4s" + } + } ] }, "lightning-feerates.json": { @@ -13566,12 +13217,12 @@ "id": "example:fetchinvoice#1", "method": "fetchinvoice", "params": { - "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqgn3qzs2ge5hx6pqwdskcefpzcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "offer": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "payer_note": "Thanks for the fish!" } }, "response": { - "invoice": "lni1qqg9g04gczk9ntk4gsjg3aptwykk2q3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssq38zq9q53nfwd5zqumpd3jjz93pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84sggztuesttnr6atmya7afycpsvcg0wnzprn58n54lfhf2ragp0jq0e04j9z5dpsku6mnypnx7u3qw35x2grxd9eksgdqnqpz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336kgr6euj6p39a209zw5kpkftk7h9te69vlmjg0arceagpaajague0zsszqk96htpgqn2wsznaas0zfdtf8v97ryz29jrn7rwgs5687ghgq5jusqr99dtx4jdj9nqpep5zxmynegrg6e7rm2l53ur8043h2yqzldyl5vh08h8ssaeq5jrvw9y24kztlwvc4nwagsuqqqqqqqqqqqqqqq9qqqqqqqqqqqqq8fykt06c5sqqqqqpfqyv65yfedgyqrp2s7qpxpjse8q8796qcrr5xwgfkqjue3urd6rs2rt2f68tk0vl2szyugtqggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vlqsy2n7vmpn67ltzrj70znp70sk4m530j5vceq6jhk97h7ttzn09sh8m9gecarrt27v2tux8z6rr06sj9h60r05p4vhkhzsp0xf9ea4jgg", + "invoice": "lni1qqg0qe01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "changes": {} } }, @@ -13580,13 +13231,13 @@ "id": "example:fetchinvoice#2", "method": "fetchinvoice", "params": { - "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv85ysq2qepk7enxv4j3gqg2zcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "offer": "lno1qgsq000bolt220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000", "amount_msat": 2000000, "quantity": 2 } }, "response": { - "invoice": "lni1qqg86u6jfl660zfuk22sexem37r7xq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqc0gfqq5pjrdanxvet9zsqs593pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84yqc7sjq9vqgztqssxq2dwgnpqyhz3j68zx5cts28t6aqfgq937wsgvsmfncau3uhz8t05zvqytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82eq2rdjuqaychg3jndvsjrlu6y08aeuh4ytw6f6ak5n24p5n8zmsz2sqgrg3rg89hqfh6n7dfr0fugvq20ehecd3ezc438l6uh4r8epaakn4lsqv4qgr3ks4yxngyflq339lza456xt8uly085umq3gwql3qyfge0ec03dezeg8xulz33ntlj8yd7dcra9564zrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s3894qsfwwvj3szk4yplg4fkw68nwzlwyc23457qx6v7xe38znuha72km6a2qv0gfq9syypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgz2rxjcsxs6s3lnngq9xeqn9pzy53n50p4ulcdvkx8dye7h8xgxpvjyg928m2txk2knl0zzfl7j82c6lq7xqlx83ey7z4aux9pjp4sp7", + "invoice": "lni1qqg0qe02020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", "changes": {} } } @@ -13837,15 +13488,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, @@ -13856,30 +13507,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, @@ -13890,7 +13541,7 @@ "anchors/even" ] }, - "outnum": 0 + "outnum": 1 } } ] @@ -13966,7 +13617,7 @@ "id": "example:fundchannel_cancel#1", "method": "fundchannel_cancel", "params": [ - "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc" + "nodeid101010101010101010101010101010101010101010101010101010101010" ] }, "response": { @@ -13978,7 +13629,7 @@ "id": "example:fundchannel_cancel#2", "method": "fundchannel_cancel", "params": { - "id": "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc" + "id": "nodeid101010101010101010101010101010101010101010101010101010101010" } }, "response": { @@ -14075,12 +13726,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 } }, @@ -14089,12 +13740,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 } } @@ -14314,13 +13965,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, @@ -14339,13 +13990,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, @@ -14915,7 +14566,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, @@ -14936,7 +14587,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, @@ -14988,9 +14639,7 @@ "method": "getemergencyrecoverdata", "params": {} }, - "response": { - "filedata": "5b3142fa0dd1115c29654b44780dcd9cf56cd53f9168061e964b39f3ce596962594b25660cba5d90ef07cfccbe1620f378ef284c7d1afed49d" - } + "response": "emergencyrecoverdata0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" } ] }, @@ -15391,9 +15040,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, @@ -15403,18 +15052,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" } @@ -15665,55 +15313,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)" - }, - { - "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\\\"" + "time": "72.800000000", + "source": "plugin-bookkeeper", + "log": "topic 'utxo_spend' is not a known notification topic" }, { "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" } ] } @@ -16094,7 +15723,7 @@ "id": "example:getroute#1", "method": "getroute", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "riskfactor": 1 } @@ -16102,7 +15731,7 @@ "response": { "route": [ { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "channel": "109x1x1", "direction": 1, "amount_msat": 10001, @@ -16110,8 +15739,8 @@ "style": "tlv" }, { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "111x1x0", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel": "111x1x1", "direction": 0, "amount_msat": 10000, "delay": 9, @@ -16125,7 +15754,7 @@ "id": "example:getroute#2", "method": "getroute", "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", "amount_msat": 500000, "riskfactor": 10, "cltv": 9 @@ -16134,16 +15763,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, @@ -16328,6 +15957,46 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:getroutes#1", + "method": "getroutes", + "params": { + "source": "nodeid010101010101010101010101010101010101010101010101010101010101", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "amount_msat": 1250000, + "layers": [], + "maxfee_msat": 125000, + "final_cltv": 0 + } + }, + "response": { + "probability_ppm": 997501, + "routes": [ + { + "probability_ppm": 997501, + "amount_msat": 1250000, + "final_cltv": 0, + "path": [ + { + "short_channel_id_dir": "109x1x1/1", + "next_node_id": "nodeid020202020202020202020202020202020202020202020202020202020202", + "amount_msat": 1250026, + "delay": 12 + }, + { + "short_channel_id_dir": "123x1x1/0", + "next_node_id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "amount_msat": 1250013, + "delay": 6 + } + ] + } + ] + } + } ] }, "lightning-help.json": { @@ -16563,6 +16232,28 @@ "Main web site: ", "", "[bolt04]: https://github.com/lightning/bolts/blob/master/04-onion-routing.md" + ], + "examples": [ + { + "request": { + "id": "example:injectpaymentonion#1", + "method": "injectpaymentonion", + "params": { + "onion": "onion30303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030", + "payment_hash": "paymenthashinvl0270027002700270027002700270027002700270027002700", + "amount_msat": 1000, + "cltv_expiry": 144, + "partid": 1, + "groupid": 0 + } + }, + "response": { + "created_index": 12, + "created_at": 1738000000, + "completed_at": 1739000000, + "payment_preimage": "paymentpreimgio1030303030303030303030303030303030303030303030303" + } + } ] }, "lightning-invoice.json": { @@ -16779,10 +16470,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 } }, @@ -16797,10 +16488,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 } } @@ -16941,10 +16632,10 @@ } }, "response": { - "invreq_id": "93f193cd2432d292f8b64af08942989d71c0a0366fb52d57ddb688c8fb066399", + "invreq_id": "invreqid01010101010101010101010101010101010101010101010101010101", "active": true, "single_use": true, - "bolt12": "lnr1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq947t0ks7a4yejz8w79x4zj25s3pu6zrnw2e0v2ugdescpcqsq307z4p2dlxe92fv7xd43qut0pjkg4y094hupqyhsj8dlhvmmfng6sv", + "bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "used": false } }, @@ -16959,10 +16650,10 @@ } }, "response": { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202", "active": true, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", + "bolt12": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000", "used": false } } @@ -17207,18 +16898,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" } }, @@ -17227,7 +16918,7 @@ "id": "example:keysend#2", "method": "keysend", "params": { - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "destination": "nodeid040404040404040404040404040404040404040404040404040404040404", "amount_msat": 10000000, "extratlvs": { "133773310": "68656c6c6f776f726c64", @@ -17236,13 +16927,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" } }, @@ -17251,13 +16942,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 @@ -17267,13 +16958,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" } } @@ -17404,6 +17095,97 @@ } ] } + }, + { + "request": { + "id": "example:listaddresses#3", + "method": "listaddresses", + "params": {} + }, + "response": { + "addresses": [ + { + "keyidx": 1, + "bech32": "bcrt1qyusnugshkn6kh5vmdjpe8hylvxlxjy3ns0hmrs" + }, + { + "keyidx": 2, + "p2tr": "bcrt1pmeuewfgl24n06v9868kts5v92494zexrvg0hc0sdmgwwnxm6t9sqdwfqjx" + }, + { + "keyidx": 3, + "bech32": "bcrt1qv8ksdsrr9tegfmy7ryhfwav0cprf9jpfqdfr4m" + }, + { + "keyidx": 4, + "p2tr": "bcrt1p3femk2q5x0ettk65v8r80z4z4lfguqgau67sg7v6txgkvtrp675qyc4gu2" + }, + { + "keyidx": 5, + "p2tr": "bcrt1pshtjqf083lgghds3r8cfs74sqs04q4s6mfhpxrry2dpahrzyc2hslyvm7n" + }, + { + "keyidx": 6, + "bech32": "bcrt1qkpw662yvzdy5ttdg8nw4eh4el0uc7m2ythw0h3" + }, + { + "keyidx": 7, + "p2tr": "bcrt1pn45xgkyj54usdu98plm4zgcp4c5jvvfxmyexwcm5kc3gyfsrjmasd6ctsf" + }, + { + "keyidx": 8, + "p2tr": "bcrt1pxu96ugcrazch0y4rfmsy4k5x56etsn7hdgq3gwatmzvu0mv7sdeql5x9qe" + }, + { + "keyidx": 9, + "bech32": "bcrt1q5czetq5cqrxsnxqx0wkm85v8eup7yvjy3vlnr7" + }, + { + "keyidx": 10, + "p2tr": "bcrt1plk4hcq06uuxq3c93lxk2ejs3pff3y8n4m322yhn4gfqk7dp2atmsj2vr99" + }, + { + "keyidx": 11, + "p2tr": "bcrt1pvn0zt2s8cv6shrtx8yd0zh90hwx4wpuqjrplfzpucnmde7kr4q3qx3fjfh" + }, + { + "keyidx": 12, + "bech32": "bcrt1qcqqvkswps3e6ck3jmqf86f9tcaeke5z04d3tv4" + }, + { + "keyidx": 13, + "p2tr": "bcrt1phtprcvhz842sxe8qw0yryvc0g6n6dw2puweklcpnfye273kjpfhs0d6d2e" + }, + { + "keyidx": 14, + "p2tr": "bcrt1p2gppccw6ywewmg74qqxxmqfdpjds3rpr0mf22y9tm9xcc0muggwsea9nkf" + }, + { + "keyidx": 15, + "p2tr": "bcrt1p9dwaqcfmdef574edhn6rzxmxumxghvr79pvj3hdklfterern0p6qx77a44" + }, + { + "keyidx": 16, + "bech32": "bcrt1qswadp7rqx7m0zx2tffhzmqfansdrpfesr2la7k" + }, + { + "keyidx": 17, + "p2tr": "bcrt1pqr02nvastyzya4q3lcjd00l56xemhhgf59srfgyk5jchtal44s8sjt683e" + }, + { + "keyidx": 18, + "bech32": "bcrt1qnk3lx7dch2ygmd8447wr7rj2yu0y92zl9wqf60" + }, + { + "keyidx": 19, + "p2tr": "bcrt1pnsdhwv72k277x6uzajv6ld84tmfu6env4ajy8amprpk8pjfn9n9s3fjvxv" + }, + { + "keyidx": 20, + "p2tr": "bcrt1p9n7h55ahdhmhlakvusfh8xlq98j9780punc9dx84xafcr8xulxmqwn4aa9" + } + ] + } } ] }, @@ -17606,8 +17388,8 @@ "response": { "channels": [ { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "source": "nodeid020202020202020202020202020202020202020202020202020202020202", + "destination": "nodeid010101010101010101010101010101010101010101010101010101010101", "short_channel_id": "109x1x1", "direction": 0, "public": true, @@ -17615,7 +17397,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, @@ -17624,16 +17406,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, @@ -17653,8 +17435,8 @@ "response": { "channels": [ { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "source": "nodeid020202020202020202020202020202020202020202020202020202020202", + "destination": "nodeid010101010101010101010101010101010101010101010101010101010101", "short_channel_id": "109x1x1", "direction": 0, "public": true, @@ -17662,7 +17444,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, @@ -17671,70 +17453,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, - "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, + "last_update": 1738510000, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -17743,34 +17471,16 @@ "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, @@ -17779,16 +17489,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, @@ -17797,34 +17507,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, @@ -18135,7 +17827,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": 489809898, + "min_to_us_msat": 489809898, + "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 + } + ] } } ] @@ -20659,7 +20424,6 @@ } }, "response": { - "network": "regtest", "configs": { "network": { "value_str": "regtest", @@ -20677,7 +20441,6 @@ } }, "response": { - "experimental-dual-fund": true, "configs": { "experimental-dual-fund": { "set": true, @@ -20693,265 +20456,99 @@ "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, + "announce-addr-discovered": { + "value_str": "auto", "source": "default" }, - "daemon": { - "set": false, + "announce-addr-discovered-port": { + "value_int": 19846, "source": "default" }, - "experimental-dual-fund": { - "set": true, - "source": "cmdline" + "autoclean-cycle": { + "value_int": 3600, + "source": "default", + "plugin": "/root/lightning/plugins/autoclean", + "dynamic": true }, - "experimental-splicing": { - "set": false, - "source": "default" + "autoclean-expiredinvoices-age": { + "value_int": 300, + "source": "/tmp/.lightning/regtest/config:2", + "plugin": "/root/lightning/plugins/autoclean", + "dynamic": true }, - "experimental-offers": { - "set": true, + "autoconnect-seeker-peers": { + "value_int": 0, "source": "cmdline" }, - "experimental-shutdown-wrong-funding": { - "set": false, - "source": "default" - }, - "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": { @@ -20962,149 +20559,36 @@ "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" }, "commit-feerate-offset": { "value_int": 5, - "source": "default" - }, - "min-emergency-msat": { - "value_msat": 25000000, - "source": "default" - }, - "subdaemon": { - "values_str": [], - "sources": [] + "source": "default" }, - "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" + "dev-autoclean-max-batch": { + "value_int": 100, + "source": "default", + "plugin": "/root/lightning/plugins/autoclean", + "dynamic": true }, - "log-prefix": { - "value_str": "lightningd-2 ", + "dev-bitcoind-poll": { + "value_int": 3, "source": "cmdline" }, - "log-file": { - "values_str": [ - "-", - "/tmp/.lightning/log" - ], - "sources": [ - "cmdline", - "cmdline" - ] - }, "dev-fail-on-subdaemon-fail": { "set": true, "source": "cmdline" }, - "dev-bitcoind-poll": { - "value_int": 3, - "source": "cmdline" - }, "dev-fast-gossip": { "set": true, "source": "cmdline" @@ -21113,60 +20597,86 @@ "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-peer-storage": { + "set": false, + "source": "default" }, - "bitcoin-rpcclienttimeout": { - "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" + }, + "exposesecret-passphrase": { + "value_str": "...", "source": "default", - "plugin": "/root/lightning/plugins/bcli" + "plugin": "/root/lightning/plugins/exposesecret" }, - "bitcoin-retry-timeout": { - "value_int": 60, + "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" }, @@ -21175,7 +20685,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" @@ -21185,40 +20695,139 @@ "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": { - "set": false, + "funding-confirms": { + "value_int": 1, + "source": "default" + }, + "grpc-host": { + "value_str": "127.0.0.1", "source": "default", - "plugin": "/root/lightning/plugins/offers" + "plugin": "/root/lightning/plugins/cln-grpc" }, - "dev-invoice-bpath-scid": { - "set": false, + "grpc-msg-buffer-size": { + "value_int": 1024, "source": "default", - "plugin": "/root/lightning/plugins/offers" + "plugin": "/root/lightning/plugins/cln-grpc" }, - "disable-mpp": { + "grpc-port": { + "value_int": 9736, + "source": "cmdline", + "plugin": "/root/lightning/plugins/cln-grpc" + }, + "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/pay" + "source": "default" + }, + "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" + }, + "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" + }, + "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, @@ -21229,6 +20838,48 @@ "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" + }, + "xpay-handle-pay": { + "value_bool": false, + "source": "default", + "plugin": "/root/lightning/plugins/cln-xpay", + "dynamic": true } } } @@ -21337,7 +20988,7 @@ "method": "listdatastore", "params": { "key": [ - "test" + "employee" ] } }, @@ -21345,12 +20996,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" } ] } @@ -21360,18 +21011,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" } ] } @@ -21765,101 +21416,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": 12, + "updated_index": 7, "in_channel": "109x1x1", - "in_htlc_id": 2, - "out_channel": "111x1x0", + "in_htlc_id": 19, + "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": 13, + "updated_index": 8, "in_channel": "109x1x1", - "in_htlc_id": 3, - "out_channel": "111x1x0", + "in_htlc_id": 20, + "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 } ] } @@ -21877,114 +21468,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 } ] } @@ -22352,47 +21904,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 } ] } @@ -22542,7 +22114,7 @@ "expiry": 126, "direction": "out", "amount_msat": 500000000, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -22551,7 +22123,7 @@ "expiry": 136, "direction": "out", "amount_msat": 10001, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -22560,7 +22132,7 @@ "expiry": 149, "direction": "out", "amount_msat": 10001, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -22569,7 +22141,7 @@ "expiry": 155, "direction": "out", "amount_msat": 10000202, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -22578,61 +22150,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" } ] @@ -22652,7 +22170,7 @@ "expiry": 126, "direction": "out", "amount_msat": 500000000, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -22661,7 +22179,7 @@ "expiry": 136, "direction": "out", "amount_msat": 10001, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -22670,7 +22188,7 @@ "expiry": 149, "direction": "out", "amount_msat": 10001, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -22679,7 +22197,7 @@ "expiry": 155, "direction": "out", "amount_msat": 10000202, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -22688,61 +22206,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" } ] @@ -22857,16 +22321,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 } ] @@ -22881,18 +22345,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 } ] } @@ -23217,17 +22681,17 @@ "invoices": [ { "label": "lbl_l21", - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "bolt11": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", + "payment_hash": "paymenthashinvl0210021002100210021002100210021002100210021002100", "status": "paid", - "pay_index": 3, + "pay_index": 4, "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 + "updated_index": 4 } ] } @@ -23242,119 +22706,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, + "pay_index": 4, "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 + "updated_index": 4 }, { "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 } ] } @@ -23633,17 +23043,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": [] } ] @@ -23658,35 +23068,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": [] } ] @@ -23805,17 +23215,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 } ] @@ -23832,10 +23249,10 @@ "response": { "offers": [ { - "offer_id": "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24", - "active": false, + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000", + "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv0gfqq2zp8kven9wgs8gmeqg35hxctzd3j3vggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vs", + "bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000", "used": false } ] @@ -24124,7 +23541,7 @@ "id": "example:listpays#1", "method": "listpays", "params": { - "bolt11": "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll" + "bolt11": "lnbcrt100n1pnt2bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000" } }, "response": { @@ -24138,74 +23555,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": [] } } ] @@ -25627,13 +24977,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": { @@ -25662,10 +25012,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, @@ -25674,16 +25024,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", @@ -25695,8 +25045,8 @@ "remote_funds_msat": 0, "pushed_msat": 0 }, - "to_us_msat": 490518792, - "min_to_us_msat": 489918792, + "to_us_msat": 390492790, + "min_to_us_msat": 390492790, "max_to_us_msat": 1000000000, "total_msat": 1000000000, "fee_base_msat": 1, @@ -25705,8 +25055,8 @@ "max_total_htlc_in_msat": 18446744073709552000, "their_reserve_msat": 10000000, "our_reserve_msat": 10000000, - "spendable_msat": 469223792, - "receivable_msat": 499481208, + "spendable_msat": 363951708, + "receivable_msat": 599507210, "minimum_htlc_in_msat": 0, "minimum_htlc_out_msat": 0, "maximum_htlc_out_msat": 990000000, @@ -25715,14 +25065,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", @@ -25736,11 +25086,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": 22, + "out_offered_msat": 665528797, + "out_payments_fulfilled": 16, + "out_fulfilled_msat": 610507210, + "htlcs": [ + { + "direction": "out", + "id": 17, + "amount_msat": 4000082, + "expiry": 181, + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", + "state": "SENT_ADD_ACK_REVOCATION" + } + ] } ] } @@ -25754,7 +25113,7 @@ "response": { "channels": [ { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "peer_connected": true, "reestablished": true, "channel_type": { @@ -25783,10 +25142,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, @@ -25795,16 +25154,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", @@ -25816,8 +25175,8 @@ "remote_funds_msat": 0, "pushed_msat": 0 }, - "to_us_msat": 490518792, - "min_to_us_msat": 489918792, + "to_us_msat": 390492790, + "min_to_us_msat": 390492790, "max_to_us_msat": 1000000000, "total_msat": 1000000000, "fee_base_msat": 1, @@ -25826,8 +25185,8 @@ "max_total_htlc_in_msat": 18446744073709552000, "their_reserve_msat": 10000000, "our_reserve_msat": 10000000, - "spendable_msat": 469223792, - "receivable_msat": 499481208, + "spendable_msat": 363951708, + "receivable_msat": 599507210, "minimum_htlc_in_msat": 0, "minimum_htlc_out_msat": 0, "maximum_htlc_out_msat": 990000000, @@ -25836,14 +25195,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", @@ -25857,11 +25216,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": 22, + "out_offered_msat": 665528797, + "out_payments_fulfilled": 16, + "out_fulfilled_msat": 610507210, + "htlcs": [ + { + "direction": "out", + "id": 17, + "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 } ] } @@ -26200,19 +25713,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" } ] } @@ -26226,31 +25739,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" } ] } @@ -26605,7 +26115,7 @@ "id": "example:listsendpays#1", "method": "listsendpays", "params": { - "bolt11": "lnbcrt100n1pn2s396sp5v3en0qa3rrljw4m0wtz88sx99q20rarufhjpfysefhwhs42gvqjqpp56kvvl33d594nsxu0hzhesvazgqzlwv89fnpjcvtlanz3rl7x623qdp9f9h8vmmfvdjjqer9wd3hy6tsw35k7m3qdsenzxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq7za6z8kx2k5nul45zwttfz2njx3836v69mxqsl4ty9228pyjrkfnkymysy8ygsrrje9qf6j4tpalt5qkqusfp2esrsqc5ak7t4yzajgpezef54" + "bolt11": "lnbcrt100n1pnt2bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000" } }, "response": { @@ -26613,16 +26123,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" } ] } @@ -26635,146 +26145,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", - "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", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", "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" } ] } @@ -27243,132 +26682,51 @@ "response": { "transactions": [ { - "hash": "1712c8af55f6853be3179bf20398689bb9204695fe3d6171c3248783218814e3", - "rawtx": "02000000000101096b01ae63d631e321f039d49df4c5b055ce3afa655a3d5c22c2a8594f41f5cd0000000000fdffffff02002d31010000000017a914655728f36cfe36d01aa50d3236704469f84a55408771c4d4280100000017a9147cdfb08e6e44fc1152c4f423225d2b7148248a9d870247304402202ff40c938d644198c10d60fe660c1380bd601b6dc4533b64c64d3809290edf4a022028206e39cc36423524816a34806a721061814478b297c2bfb2bc3c417548c466012102129f00a7502a031999fe81aa35afed6f09617a9748e5fdde0f7a0191d364f59b65000000", - "blockheight": 102, - "txindex": 1, - "locktime": 101, - "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, + "hash": "txid7000170001700017000170001700017000170001700017000170001", + "rawtx": "02000000000101lstx70001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001700017000170001", + "blockheight": 0, + "txindex": 0, + "locktime": 549000100, "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, + "hash": "txid7000270002700027000270002700027000270002700027000270002", + "rawtx": "02000000000101lstx70002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002", + "blockheight": 102, "txindex": 1, - "locktime": 107, + "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" } ] } @@ -27801,15 +27159,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" } ], @@ -27818,12 +27176,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, @@ -27837,8 +27195,8 @@ "outnum": 1 }, { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "channel_id": "a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", + "channel_id": "channelid1200012000120001200012000120001200012000120001200012000", "channel_type": { "bits": [ 12, @@ -27849,11 +27207,11 @@ "anchors/even" ] }, - "outnum": 2 + "outnum": 1 }, { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", - "channel_id": "e13472d6512413eb1bf03b9a0bb391d0e4152fd337fa6d1014e3de5e131918d9", + "id": "nodeid050505050505050505050505050505050505050505050505050505050505", + "channel_id": "channelid1300013000130001300013000130001300013000130001300013000", "channel_type": { "bits": [ 12, @@ -27864,7 +27222,7 @@ "anchors/even" ] }, - "outnum": 0 + "outnum": 1 } ], "failed": [] @@ -27877,15 +27235,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 } ], @@ -27893,12 +27251,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, @@ -27918,11 +27276,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, @@ -28040,8 +27398,8 @@ } }, "response": { - "tx": "02000000000101057342aca7062873a4edd5a673980757885e5da8f68de3af254fe7c26d46e0700000000000fdffffff03df420700000000002251202b5dd0613b6e534f572dbcf4311b66e6cc8bb07e285928ddb6fa5791e4737874ae080000000000001600143d43d226bcc27019ade52d7a3dc52a7ac1be28b8050d000000000000160014d55c493983db651e10477455b1d408c31e7e9e310140beb27b31860b45464367b0f08334a0c90f3409ad176b9e21a35079495d6ce3dee0bbed786225ae56f59294466c9a14daf983375486dccaad7df3a7bc56b03faa87000000", - "txid": "85065cf7d607936190df447cbff6963c8facf404c1f7f594307afe07fc56edfe" + "tx": "02000000000155multiw55000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000", + "txid": "txid5500055000550005500055000550005500055000550005500055000" } }, { @@ -28075,8 +27433,8 @@ } }, "response": { - "tx": "02000000000101b621d886a10f33d5ad58c163a35cddf03bd435e3ed100f14af3fcdac1a7dff510100000000fdffffff08e803000000000000160014dfadaae18d57e4ef50e15b863d9e648bf9af67b1e8030000000000002251200978ea47f31ad6561d96ceee14e85192726536c4e1e59d09f217f3b5762b0630b53e1e000000000022512000dea9b3b059044ed411fe24d7bff4d1b3bbdd09a16034a096a4b175f7f5ac0fe80300000000000016001407905c6189c1ae8aff12566b03f35ff516d17e84e803000000000000160014a43b821a9790f880e113a395b717a0f354b9d9c6e80300000000000016001483bad0f86037b6f1194b4a6e2d813d9c1a30a730e803000000000000160014d1dc90a7bb3af91ed69e933dc38f555b580fad09e8030000000000002251202f843ba0c8de9d0c41a63a25d4cab22032be4fabf24931dab82214316be218ca0247304402203c885a48d44614905673678d31e1c6a42af612ca6cd20d65a2e81670cd11bf8a0220738dc66ca4c1c1d466d6195ddaaf7b0c98a60769b782c282ad1f9db30bb9784201210330a75acaed258be6bc02da9fab058abbe0e770caceb7c6496eaaea7014c3d39b87000000", - "txid": "80ecf60402207eca627f4af7df93841b7430c546e73ae2467ad592721b8d7f18" + "tx": "02000000000155multiw56000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000", + "txid": "txid5600056000560005600056000560005600056000560005600056000" } } ] @@ -28458,10 +27816,10 @@ } }, "response": { - "offer_id": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e", + "offer_id": "offeridl21000002100000210000021000002100000210000021000002100000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqgn3qzs2ge5hx6pqwdskcefpzcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "used": false, "created": true } @@ -28477,10 +27835,10 @@ } }, "response": { - "offer_id": "f901018768e13ea2da95f437749e24d22d47b2a6ea3030ef66ae0281df49d94b", + "offer_id": "offeridl22000002200000220000022000002200000220000022000002200000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv85ysq2qepk7enxv4j3gqg2zcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000bolt220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000", "used": false, "created": true } @@ -28570,11 +27928,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" } @@ -28762,13 +28120,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, @@ -28780,7 +28138,7 @@ ] }, "commitments_secured": false, - "funding_serial": 4347205294156014600, + "funding_serial": 17725655605188030000, "requires_confirmed_inputs": false } }, @@ -28789,15 +28147,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, @@ -28809,7 +28167,7 @@ ] }, "commitments_secured": false, - "funding_serial": 10324133783552127000, + "funding_serial": 17725655605188040000, "requires_confirmed_inputs": false } }, @@ -28820,13 +28178,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, @@ -28838,7 +28196,7 @@ ] }, "commitments_secured": false, - "funding_serial": 15943938423967650000, + "funding_serial": 17725655605188050000, "requires_confirmed_inputs": false } } @@ -29065,14 +28423,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, @@ -29084,7 +28442,7 @@ ] }, "commitments_secured": false, - "funding_serial": 8199047277484638000, + "funding_serial": 17725655605188010000, "requires_confirmed_inputs": false } }, @@ -29093,14 +28451,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, @@ -29112,7 +28470,7 @@ ] }, "commitments_secured": false, - "funding_serial": 6122779721339107000, + "funding_serial": 17725655605188020000, "requires_confirmed_inputs": false } } @@ -29214,14 +28572,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" } }, { @@ -29230,13 +28588,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" } } ] @@ -29454,13 +28812,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, @@ -29482,12 +28840,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, @@ -29499,7 +28857,7 @@ ] }, "commitments_secured": true, - "funding_outnum": 0, + "funding_outnum": 1, "close_to": "51202321a432c9022a560c7dae78bdb72c605c373961edd29c42aa98c183782d052a" } } @@ -29848,17 +29206,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" } }, @@ -29867,17 +29225,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" } } @@ -29954,7 +29312,7 @@ "id": "example:ping#1", "method": "ping", "params": { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "id": "nodeid010101010101010101010101010101010101010101010101010101010101", "len": 128, "pongbytes": 128 } @@ -29968,7 +29326,7 @@ "id": "example:ping#2", "method": "ping", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "len": 1000, "pongbytes": 65535 } @@ -30213,6 +29571,11 @@ "active": true, "dynamic": false }, + { + "name": "/root/lightning/plugins/exposesecret", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/keysend", "active": true, @@ -30228,6 +29591,11 @@ "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/recklessrpc", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/recover", "active": true, @@ -30243,16 +29611,31 @@ "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/cln-xpay", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/spenderp", "active": true, "dynamic": false }, + { + "name": "/root/lightning/plugins/cln-askrene", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/sql", "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/cln-grpc", + "active": true, + "dynamic": false + }, { "name": "/root/lightning/plugins/bookkeeper", "active": true, @@ -30321,6 +29704,11 @@ "active": true, "dynamic": false }, + { + "name": "/root/lightning/plugins/exposesecret", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/keysend", "active": true, @@ -30336,6 +29724,11 @@ "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/recklessrpc", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/recover", "active": true, @@ -30351,16 +29744,31 @@ "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/cln-xpay", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/spenderp", "active": true, "dynamic": false }, + { + "name": "/root/lightning/plugins/cln-askrene", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/sql", "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/cln-grpc", + "active": true, + "dynamic": false + }, { "name": "/root/lightning/plugins/bookkeeper", "active": true, @@ -30422,7 +29830,7 @@ "id": "example:preapproveinvoice#1", "method": "preapproveinvoice", "params": { - "bolt11": "lnbcrt1230n1pn2s38psp5jf2zk7py4wmutyq4pdr6783egft24nkyhfrxegrzzqnef2matw2qpp5rf5zgqyexdt7q5ean83cvcjuc3jafn8etm3c0za6xldwcyllvffqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydqcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq8nn5qkcp9xl5u7dlqamdys6e6yc0ngyqe676cqajnwax6657verj7at5gvdqu6nk3l0wcagq4muyhqqms4t0t9sfvyazpga5eywj6uqpyc409e" + "bolt11": "lnbcrt100n1pnt2bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000" } }, "response": {} @@ -30432,7 +29840,7 @@ "id": "example:preapproveinvoice#2", "method": "preapproveinvoice", "params": [ - "lnbcrt1240n1pn2s38psp5ufjqj6kuxlvl65xue9p06ulyvwf9sm0utxlch59d0ynl05778vwspp5qlacxkrdmc2p50yl8lsl75pwmlhve2ret2yd2f34z7jfs7yffwvqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydgcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqkml60qaytvnd08p57w7enuna95s7cqej8cfuvsgjzpeq9u83s0hqh60667nrp40qkqxkdu36z8wqtmac5z3208rwyn0q2pv56sgz5dcp9mn5hc" + "lnbcrt100n1pnt2bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000" ] }, "response": {} @@ -30508,7 +29916,7 @@ "id": "example:preapprovekeysend#1", "method": "preapprovekeysend", "params": { - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", "payment_hash": "0000000000000000000000000000000000000000000000000000000000000000", "amount_msat": 1000 } @@ -30520,7 +29928,7 @@ "id": "example:preapprovekeysend#2", "method": "preapprovekeysend", "params": [ - "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", + "nodeid050505050505050505050505050505050505050505050505050505050505", "0101010101010101010101010101010101010101010101010101010101010101", 2000 ] @@ -30856,25 +30264,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" ] } } @@ -31102,20 +30510,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 } }, @@ -31124,19 +30532,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 } } @@ -31286,21 +30694,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 } ] @@ -31423,13 +30831,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, @@ -31443,14 +30851,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 @@ -31527,7 +30935,7 @@ "id": "example:sendcustommsg#1", "method": "sendcustommsg", "params": { - "node_id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "node_id": "nodeid030303030303030303030303030303030303030303030303030303030303", "msg": "77770012" } }, @@ -31750,24 +31158,24 @@ "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, + "pay_index": 2, "amount_received_msat": 1000000, - "paid_at": 1722303714, - "payment_preimage": "6f154ed7d108349cb6385eba5f160294ef83862c2c560ba6446b2a3da5c2b3b3", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagei010101010101010101010101010101010101010101010101", "description": "Simple test", - "expires_at": 1722303803, - "created_index": 3, - "updated_index": 1 + "expires_at": 1739000000, + "created_index": 4, + "updated_index": 2 } } ] @@ -32109,26 +31517,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", + "created_index": 10, + "id": 10, + "payment_hash": "assocdata0010101010101010101010101010101010101010101010101010101", "groupid": 1, "amount_sent_msat": 1002, - "created_at": 1722303689, + "created_at": 1738000000, "status": "pending" } } @@ -32503,7 +31911,7 @@ "params": { "route": [ { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "channel": "109x1x1", "direction": 1, "amount_msat": 10001, @@ -32511,28 +31919,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" } } @@ -32611,12 +32019,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" } } ] @@ -32806,8 +32214,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, @@ -32823,7 +32231,7 @@ "id": "example:setchannel#2", "method": "setchannel", "params": { - "id": "115x1x0", + "id": "115x1x1", "feebase": 4000, "feeppm": 300, "enforcedelay": 0 @@ -32832,9 +32240,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, @@ -33088,7 +32496,7 @@ "id": "example:setpsbtversion#1", "method": "setpsbtversion", "params": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAA==", + "psbt": "cHNidP8BAgpsbt1001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "version": 0 } }, @@ -33101,12 +32509,12 @@ "id": "example:setpsbtversion#2", "method": "setpsbtversion", "params": [ - "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEDAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQABAwjV3DIAAAAAAAEEIlEgoqAceWUonu5Wtc/N25hWxw+kdsJk0h9xHGppr3dq5AMA", + "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", 2 ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEDAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQABAwjV3DIAAAAAAAEEIlEgoqAceWUonu5Wtc/N25hWxw+kdsJk0h9xHGppr3dq5AMA" + "psbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" } } ] @@ -33291,7 +32699,7 @@ "runes": [ { "rune": "zFMd1fjhrAYxUeFA54TjloZqOt8JrA_i_nYwIgXkag49MA==", - "last_used": 1722303715.068215, + "last_used": 1738000000, "unique_id": "0", "restrictions": [], "restrictions_as_english": "" @@ -33309,14 +32717,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": [ { @@ -33346,7 +32754,7 @@ }, { "rune": "QUJEYMLGgiaJvMDv_MhR2hiMKIBTbq-PrL-KxcIlirQ9MiZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", - "last_used": 1722303715.1267006, + "last_used": 1738000000, "unique_id": "2", "restrictions": [ { @@ -33382,7 +32790,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -33415,13 +32823,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" } @@ -33439,7 +32847,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -33556,11 +32964,11 @@ "id": "example:signinvoice#1", "method": "signinvoice", "params": { - "invstring": "lnbcrt10n1pn2s38psp5qnpucxgdnkrqur47x6vtxdk7xpzy3lf47kjqehm6wnuadj9rt86qpp5qg2ltzlhu2yn08f99t9zz6fjzhfmajg8h4eum43zg3gr0gdeamcsdqlv3jhxcmjd9c8g6t0dcsxjmnktakrzvsxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqg2kj0ma6weclle29pwpsdvnwa4r4yhw38wvly80mtysjf463r5y428k23dkp8ty0fugtzyjpcjsy0w7hhfmyzkwrlve93cr8jnm5sdgqzv7m0x" + "invstring": "lnbcrt100n1pnt2bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000" } }, "response": { - "bolt11": "lnbcrt10n1pn2s38psp5qnpucxgdnkrqur47x6vtxdk7xpzy3lf47kjqehm6wnuadj9rt86qpp5qg2ltzlhu2yn08f99t9zz6fjzhfmajg8h4eum43zg3gr0gdeamcsdqlv3jhxcmjd9c8g6t0dcsxjmnktakrzvsxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqq757xfxhd6hpctdfsq6vr2pltjvdv06t0z200hk0qslcydpf0pthmnzhu404w4qv89d25zv3smtsnyvqsaw6tf6tcl0lles6n29qh9gpyd3ml0" + "bolt11": "lnbcrt100n1pnt2bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000" } }, { @@ -33568,11 +32976,11 @@ "id": "example:signinvoice#2", "method": "signinvoice", "params": [ - "lnbcrt1250n1pn2s38psp5u22hlvy5mk7keq57m4fatz7aqnmh4whcuk45npdexrw4m5athcvqpp5ps4h5lt8waz5pprvad3skzssnksl2wxng985rcsuedp8teh29rkqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydscqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqyljtru0gcvqh7k5l9u8ulcuxw8fwa9qycyd32hl7wwdpjtlefgrpyjch6aprcdah2pthx3pku3y7c6dzluzjjy9c32cs3m5hqq6ww3sp0j4tr8" + "lnbcrt100n1pnt2bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000" ] }, "response": { - "bolt11": "lnbcrt1250n1pn2s38psp5u22hlvy5mk7keq57m4fatz7aqnmh4whcuk45npdexrw4m5athcvqpp5ps4h5lt8waz5pprvad3skzssnksl2wxng985rcsuedp8teh29rkqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydscqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq303kchnu5dvmrjam0m2yapk4d8vyx2uud3z0cpwsxern0d6f5sxqcg4rf05qczp5ncrpq4e6fsth28fxegv5gx9y7kt9f6tfhgw9dfqqckwpfv" + "bolt11": "lnbcrt100n1pnt2bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000" } } ] @@ -33744,11 +33152,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" } }, { @@ -33756,11 +33164,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" } } ] @@ -33880,13 +33288,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" } }, { @@ -33894,13 +33302,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" } } ] @@ -34044,29 +33452,31 @@ "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", - "outnum": 1 + "tx": "02000000000101sendpt64000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000", + "txid": "txid6400064000640006400064000640006400064000640006400064000", + "outnum": 1, + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000" } }, { "request": { "id": "example:splice_signed#2", "method": "splice_signed", - "params": [ - "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBDiCVuxWBeu80WsQES0HKNSpjl7RUGPMhcKRnsXRp4BRF+AEPBAEAAAABEAQAAAAADPwJbGlnaHRuaW5nAQheLXaEp+y8AgABAwi4Lg8AAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCBkNULro+QrwAAEDCKCGAQAAAAAAAQQiUSDE0oJBX5qB0Y4IthmhnRFrhlbLG/ST5fVAu/e3oFhM2gz8CWxpZ2h0bmluZwEIuBcidnXj4BAA" - ] + "params": { + "channel_id": "channelid0780000780000780000780000780000780000780000780000780000", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000" + } }, "response": { - "tx": "0200000000010195bb15817aef345ac4044b41ca352a6397b45418f32170a467b17469e01445f801000000000000000002b82e0f000000000022002093dedd0c265bca868576d3ee2e59eebbb20ebc296e58f7edca93d5eeaec08996a086010000000000225120c4d282415f9a81d18e08b619a19d116b8656cb1bf493e5f540bbf7b7a0584cda04004730440220259ff7ffc38775f34aed9be01a57b3002b2cba938e8bdf37ee0d529401ca0ae102206f77ba80e128ed5096679a304078efbff423394f2ffeb286e307fc71af06773d0147304402206e715aa27e9f192a787949dd322dd8c41d69dbf0b134099b942f40f3727ecaa80220154ab1a180d2103884ac73307f6f5faa0e384d7d40dcda44a26c17fdd83a89910147522102570ec0b6eb545663302183a62eac75d08fdeeb64f31352192065d601c8ca521d210266867c342b8250ab6b4edac6dbae2fde53782b69cd17139949fbd4f208487ff252ae94000000", - "txid": "b81ed02d0235b63cb73d1ee840345a696bc7224ba28be590165aa340bc9e37de", - "outnum": 0 + "tx": "02000000000102sendpt65000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000", + "txid": "txid6500065000650006500065000650006500065000650006500065000", + "outnum": 1, + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000" } } ] @@ -34210,12 +33620,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": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200", "commitments_secured": true, "signatures_secured": true } @@ -34225,12 +33635,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": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000", "commitments_secured": true, "signatures_secured": true } @@ -34383,7 +33793,7 @@ "response": { "rows": [ [ - "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + "nodeid020202020202020202020202020202020202020202020202020202020202" ] ] } @@ -34396,26 +33806,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" ] ] } @@ -34428,19 +33827,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" ] ] } @@ -34453,16 +33852,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" ] ] } @@ -34475,15 +33874,14 @@ "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", - 490503792, + "nodeid020202020202020202020202020202020202020202020202020202020202", + 490493792, 1000000000, "CHANNELD_NORMAL:Channel ready for use." ] @@ -34504,7 +33902,7 @@ "response": { "rows": [ [ - 8 + 9 ] ] } @@ -34520,20 +33918,20 @@ "response": { "rows": [ [ + 28, 23, - 18, 0, "option_static_remotekey" ], [ - 24, - 18, + 29, + 23, 1, "option_anchors_zero_fee_htlc_tx" ], [ - 25, - 18, + 30, + 23, 2, "option_anchors" ] @@ -34590,12 +33988,12 @@ }, "response": { "scb": [ - "0000000000000006f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5900017f0000019b987577c455da982b1753df79c56f9d8d2b75d1401e60a5af322ab27b13b20d75970000000100000000000f42400003401000", - "000000000000000121bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610e23fcc9e6306ce636b203217b22409bf9bab2211f9f432de781dedb6377dab5a0000000100000000000f42400003401000", - "00000000000000027512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610ee1db407eb3e47be3e93e1abc05b13806ee7aef8550c517a4974c72bf91866410000000100000000000f42400003401000", - "0000000000000003222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f0000019bc5b15661ec5c17599de0858401b72d6be66c34b48a3bb6e679542809f395e6bb2000000000000000000bebb3cb0003401000", - "0000000000000004a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ac184e7462759ff83049b19582db049d40076f83a7a70181374ca0ea91644a3d9c0000000200000000000075300003401000", - "000000000000000509eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ace9067c9d125df7150261c80eec3ab9cf8731679752b84f090ab3ea6e36c93d3100000001000000000000c3500003401000" + "0000000000000001channelid0340000340000340000340000340000340000340000340000340000nodeid03030303030303030303030303030303030303030303030303030303030300017f000001034003400340034003400340034003400340034003400340034003400340034003400340034003400340034003400003401000", + "0000000000000002channelid0340200340200340200340200340200340200340200340200340200nodeid03030303030303030303030303030303030303030303030303030303030300017f000001034203420342034203420342034203420342034203420342034203420342034203420342034203420342034203420003401000", + "0000000000000003channelid0410000410000410000410000410000410000410000410000410000nodeid01010101010101010101010101010101010101010101010101010101010100017f000001041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100003401000", + "0000000000000004channelid0120000120000120000120000120000120000120000120000120000nodeid01010101010101010101010101010101010101010101010101010101010100017f000001012001200120012001200120012001200120012001200120012001200120012001200120012001200120012001200003401000", + "0000000000000005channelid1520015200152001520015200152001520015200152001520015200nodeid01010101010101010101010101010101010101010101010101010101010100017f000001015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520003401000", + "0000000000000006channelid1240012400124001240012400124001240012400124001240012400nodeid02020202020202020202020202020202020202020202020202020202020200017f000001012401240124012401240124012401240124012401240124012401240124012401240124012401240124012401240003401000" ] } } @@ -34716,12 +34114,12 @@ "id": "example:txdiscard#1", "method": "txdiscard", "params": [ - "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67" + "txidtxprep000100001000010000100001000010000100001000010000100001" ] }, "response": { - "unsigned_tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020a056363be8c7dbb511098cc50fbca24843e6ed6de03f816465f1998a9a82a09d4183980000000000225120f1393467c717cd50de2760167d4311141a8f750c89f54fd2c900601a7da8434c95000000", - "txid": "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67" + "unsigned_tx": "0200000000000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006", + "txid": "txidtxprep000100001000010000100001000010000100001000010000100001" } }, { @@ -34729,12 +34127,12 @@ "id": "example:txdiscard#2", "method": "txdiscard", "params": { - "txid": "91a189eb69a436e49735ae1e8619fd96a342a4e5c63fa2baa7e9f69ecdc7434c" + "txid": "txidtxprep000300003000030000300003000030000300003000030000300003" } }, "response": { - "unsigned_tx": "02000000010cbdd42439292d7a59620493020f2a204488bfa4d640eedb84af5d3bd6479aea0000000000fdffffff0240420f00000000002200200fefd5034808bec0c94b857b7a3ddeeece7cae1b2101b2f23f1c114b14073f31b7a1f000000000002251205c54c6ff7b25c08e66a91d4256a5ca2c374ab1faf56377e8d65466cf997614ce97000000", - "txid": "91a189eb69a436e49735ae1e8619fd96a342a4e5c63fa2baa7e9f69ecdc7434c" + "unsigned_tx": "0200000000000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008000800080008", + "txid": "txidtxprep000300003000030000300003000030000300003000030000300003" } } ] @@ -34844,15 +34242,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" } }, { @@ -34862,15 +34260,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" } } ] @@ -34946,13 +34344,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" } }, { @@ -34960,13 +34358,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" } } ] @@ -35101,7 +34499,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 } }, @@ -35114,7 +34512,7 @@ "id": "example:unreserveinputs#2", "method": "unreserveinputs", "params": [ - "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE+ZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" + "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000" ] }, "response": { @@ -35225,9 +34623,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 } } @@ -35447,7 +34845,7 @@ "15000perkw", 214, [ - "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3:1" + "utxo010101010101010101010101010101010101010101010101010101010101:1" ], null, true, @@ -35457,14 +34855,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, @@ -35482,21 +34880,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, @@ -35832,7 +35230,7 @@ }, "response": { "subsystem": "invoices", - "created": 15 + "created": 16 } }, { @@ -35842,17 +35240,17 @@ "params": { "subsystem": "sendpays", "indexname": "created", - "nextvalue": 15 + "nextvalue": 18 } }, "response": { "subsystem": "sendpays", - "created": 15, + "created": 18, "details": { "status": "pending", "partid": 0, "groupid": 1, - "payment_hash": "4c6f04eaf19dd956b616f1ba8718df40e387c4a56be36cf4e881a009cbf66899" + "payment_hash": "paymenthashwtspct20101010101010101010101010101010101010101010101" } } }, @@ -35863,17 +35261,17 @@ "params": [ "sendpays", "updated", - 15 + 18 ] }, "response": { "subsystem": "sendpays", - "updated": 15, + "updated": 18, "details": { "status": "complete", "partid": 0, "groupid": 1, - "payment_hash": "4c6f04eaf19dd956b616f1ba8718df40e387c4a56be36cf4e881a009cbf66899" + "payment_hash": "paymenthashwtspct20101010101010101010101010101010101010101010101" } } } @@ -36116,16 +35514,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 } @@ -36140,16 +35538,17 @@ } }, "response": { - "label": "lbl_l23", - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", + "label": "test_injectpaymentonion1", + "bolt11": "lnbcrt100n1pnt2bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000", + "payment_hash": "paymenthashinvl0270027002700270027002700270027002700270027002700", + "amount_msat": 1000, "status": "paid", "pay_index": 2, - "amount_received_msat": 9900, - "paid_at": 1722303715, - "payment_preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", - "description": "l23 description", - "expires_at": 1722908514, + "amount_received_msat": 1000, + "paid_at": 1738500000, + "payment_preimage": "paymentpreimgio1030303030303030303030303030303030303030303030303", + "description": "test injectpaymentonion1 description", + "expires_at": 1739000000, "created_index": 8, "updated_index": 2 } @@ -36215,12 +35614,14 @@ ], "examples": [ { + "description": [ + "This will return immediately since the current blockheight exceeds the requested waitblockheight." + ], "request": { "id": "example:waitblockheight#1", "method": "waitblockheight", "params": { - "blockheight": 129, - "timeout": 600 + "blockheight": 126 } }, "response": { @@ -36228,11 +35629,15 @@ } }, { + "description": [ + "This will return after the next block is mined because requested waitblockheight is one block higher than the current blockheight." + ], "request": { "id": "example:waitblockheight#2", "method": "waitblockheight", "params": { - "blockheight": 131 + "blockheight": 131, + "timeout": 600 } }, "response": { @@ -36483,18 +35888,18 @@ }, "response": { "label": "inv2", - "bolt11": "lnbcrt20n1pn2s38fsp55xnux6tuzuutlqhekzytnexpqj6w3q00h6e7wu08ex43rdr4xqdqpp5znq67nu5secgcf79ncjtqfdpjfqh7acaxvngcqwqsvvxwnkyl35qdq8d9h8vvsxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq9ptnru6v58v8qd58xdqypr86utn6fhssx8rwegsspfp9d975h0t47xn0hea6qrmy2ucxt4l02nkxu7va7d5lqgy8nrqmhxqpm5qauegqjjqr02", - "payment_hash": "14c1af4f9486708c27c59e24b025a192417f771d33268c01c08318674ec4fc68", + "bolt11": "lnbcrt222n1pnt3005720bolt11wtinv01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "payment_hash": "paymenthashwaitinv0101010101010101010101010101010101010101010101", "amount_msat": 2000, "status": "paid", - "pay_index": 4, + "pay_index": 5, "amount_received_msat": 2000, - "paid_at": 1722303723, - "payment_preimage": "1bda6e78384905bc476c6f50b447cf7fbba13a2644d49d85d797a826e8b9a6a0", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagewaitinv0010101010101010101010101010101010101010101", "description": "inv2", - "expires_at": 1722908521, - "created_index": 12, - "updated_index": 4 + "expires_at": 1739000000, + "created_index": 13, + "updated_index": 5 } }, { @@ -36507,18 +35912,18 @@ }, "response": { "label": "inv3", - "bolt11": "lnbcrt30n1pn2s38fsp5syqds2z0hgqgf3dcxt9kp5m2rtywxm4u4hr4xe90r885rr609vgqpp52y0xdhlzrua5clpuyw4wcfk9duxwwauzcjxrs9nj00258njmdjnsdq8d9h8vvcxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqkkeex45p62vc7nfjywwfle8yhk9wemyktw2m7924cfmlthk37q6ptjd8vxyaevtejfj44yp55xllqlljxv5vz6wc3gc9jlfkwrkngscqtl0xs8", - "payment_hash": "511e66dfe21f3b4c7c3c23aaec26c56f0ce77782c48c3816727bd543ce5b6ca7", + "bolt11": "lnbcrt222n1pnt3005720bolt11wtinv02020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", + "payment_hash": "paymenthashwaitinv0202020202020202020202020202020202020202020202", "amount_msat": 3000, "status": "paid", - "pay_index": 5, + "pay_index": 6, "amount_received_msat": 3000, - "paid_at": 1722303725, - "payment_preimage": "86e637cb70631a0db88cc8f6ef9a21457b1b85be30236efb769a611b356225cd", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagewaitinv0020202020202020202020202020202020202020202", "description": "inv3", - "expires_at": 1722908521, - "created_index": 13, - "updated_index": 5 + "expires_at": 1739000000, + "created_index": 14, + "updated_index": 6 } } ] @@ -36763,22 +36168,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" } } ] @@ -36890,14 +36295,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" } }, { @@ -36905,19 +36310,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" } } ] @@ -37043,6 +36448,40 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:xpay#1", + "method": "xpay", + "params": [ + "lnbcrt100n1pnt2bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000" + ] + }, + "response": { + "payment_preimage": "paymentpreimgxp1010101010101010101010101010101010101010101010101", + "failed_parts": 0, + "successful_parts": 1, + "amount_msat": 10000, + "amount_sent_msat": 10002 + } + }, + { + "request": { + "id": "example:xpay#2", + "method": "xpay", + "params": { + "invstring": "lni1qqg0qe03030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303" + } + }, + "response": { + "payment_preimage": "paymentpreimgxp2020202020202020202020202020202020202020202020202", + "failed_parts": 0, + "successful_parts": 1, + "amount_msat": 1000, + "amount_sent_msat": 1000 + } + } ] } }, diff --git a/doc/contribute-to-core-lightning/coding-style-guidelines/writing-json-schemas.md b/doc/contribute-to-core-lightning/coding-style-guidelines/writing-json-schemas.md index 322e27e636ee..d895e92e116f 100644 --- a/doc/contribute-to-core-lightning/coding-style-guidelines/writing-json-schemas.md +++ b/doc/contribute-to-core-lightning/coding-style-guidelines/writing-json-schemas.md @@ -62,22 +62,59 @@ To add conditional fields: it can be defined as `"dependentUpon": { "index": ["start", "limit"] }` in the json and it will generate the Markdown syntax as `[*index* [*start*] [*limit*]]`. -### Re-generate examples listed in rpc schemas (doc/schemas/lightning-*.json) - -1. The `autogenerate-rpc-examples.py` script regenerates RPC examples for methods listed in `doc/schemas/lightning-*.json` files. -2. It uses our pre-existing pytest suite to perform this task. -3. The script runs a test named `test_generate_examples`, which sets up test nodes, records RPC requests, and captures responses. If you have added an RPC, make sure to add its use to the scripts here. -4. To prevent accidental overwriting of examples with other tests, set the environment variable `GENERATE_EXAMPLES=True` before running the script. -5. By default, all methods are regenerated. To specify which methods to regenerate, set the `REGENERATE` environment variable with a comma-separated list of method names. Eg. `REGENERATE='getinfo,connect'` will only regenerate examples for the getinfo and connect RPCs. -6. The dev-bitcoind-poll is set to 3 seconds. Ensure the `TIMEOUT` environment variable is set to more than 3 seconds to avoid test failures due to a short waiting time for bitcoind responses. -7. To run the script using Poetry, use the following command: +## Generating Examples in Schema +The `tests/autogenerate-rpc-examples.py` test script regenerates RPC examples for methods defined +in `doc/schemas/lightning-*.json`. These examples are located at the end of each schema page, +detailing `shell` and `json` request formats along with their corresponding `json` responses. +The script utilizes the pytest suite to automate this task by running a test, `test_generate_examples`, +that sets up test nodes, records RPC requests, and captures responses. Any new RPC command's examples +should also be included in this scripts. This test only executes example generation if `GENERATE_EXAMPLES=True` +is set, preventing accidental overwrites from unrelated tests. + +### Adding New Examples +1. Define a New Function (if needed): + - If adding multiple examples for the same feature (e.g., `askrene`), create a new function. Otherwise, use an existing relevant function. +2. Add the update_example Method: + - Define examples using `update_example` with parameters: `node method params [res] [description]`. + `node`: Specifies the node to execute the RPC. + `method`: The RPC method name. + `params`: RPC parameters in JSON or list format. + `response (optional)`: Specify for wait commands or pre-recorded responses. + `description (optional)`: Brief explanation of the example. +3. Update the Ignore List: + - Remove the RPC method name from `IGNORE_RPCS_LIST` to include it in the example generation. +4. Run and Refine: + - Run the test multiple times to detect variable values in responses: + ```bash + rm -rf /tmp/ltests* && make -s && VALGRIND=0 TIMEOUT=40 TEST_DEBUG=1 pytest -vvv -n 6 tests/autogenerate-rpc-examples.py + ``` + - Identify changing values, and add them to `REPLACE_RESPONSE_VALUES`: + ```bash + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['xyz'], 'original_value': l1.info['xyz'], 'new_value': NEW_VALUES_LIST['xyz_value_1']} + ]) + ``` + - If `xyz_value_1` already does not exist in the list, add it to `NEW_VALUES_LIST`. +4. Run `make` after the script completes to ensure schema updates are applied in other places too, such as `...msggen/schema.json`. + + +### Avoiding Missing Example Errors (MissingExampleError) + - If an RPC is in progress and lacks examples, add it to `IGNORE_RPCS_LIST` to bypass the auto-generation requirement. + + +### Manually Regenerating Specific Examples +1. By default, all methods are regenerated. To specify which methods to regenerate, set the `REGENERATE` +environment variable with a comma-separated list of method names. Eg. `REGENERATE='getinfo,connect'` will +only regenerate examples for the `getinfo` and `connect` RPCs. +2. To regenerate specific examples, set the REGENERATE environment variable: +```bash +REGENERATE='getinfo,connect' VALGRIND=0 TIMEOUT=10 TEST_DEBUG=1 pytest -vvv -n 6 tests/autogenerate-rpc-examples.py ``` -rm -rf /tmp/ltests* && REGENERATE='getinfo,connect' VALGRIND=0 TIMEOUT=10 TEST_DEBUG=1 pytest -vvv -s -p no:logging -n 6 tests/autogenerate-rpc-examples.py -``` -8. The script saves logs in a file named `autogenerate-examples-status.log`, located in the root directory. -9. After running the script, execute `make` to ensure that the schema has been updated in all relevant locations, such as `...msggen/schema.json`. +3. Logs are saved in `tests/autogenerate-examples-status.log`, and JSON data is in `tests/autogenerate-examples.json`. +4. Run `make` after the script completes to ensure schema updates are applied in other places too, such as `...msggen/schema.json`. + -### JSON Drinking Game! +## JSON Drinking Game! 1. Sip whenever you have an additional comma at the end of a sequence. 2. Sip whenever you omit a comma in a sequence because you cut & paste. diff --git a/doc/schemas/lightning-addpsbtoutput.json b/doc/schemas/lightning-addpsbtoutput.json index dd56156fbd2d..27117b05c259 100644 --- a/doc/schemas/lightning-addpsbtoutput.json +++ b/doc/schemas/lightning-addpsbtoutput.json @@ -93,9 +93,9 @@ } }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAA==", + "psbt": "cHNidP8BAgpsbt1001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "estimated_added_weight": 172, - "outnum": 0 + "outnum": 1 } }, { @@ -104,11 +104,11 @@ "method": "addpsbtoutput", "params": [ 3333333, - "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=" + "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=", + "psbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", "estimated_added_weight": 172, "outnum": 1 } @@ -119,14 +119,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-age.json b/doc/schemas/lightning-askrene-age.json index dec6074d847e..a274673c40fa 100644 --- a/doc/schemas/lightning-askrene-age.json +++ b/doc/schemas/lightning-askrene-age.json @@ -59,5 +59,21 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-age#1", + "method": "askrene-age", + "params": { + "layer": "test_layers", + "cutoff": 1738000000 + } + }, + "response": { + "layer": "test_layers", + "num_removed": 1 + } + } ] } diff --git a/doc/schemas/lightning-askrene-bias-channel.json b/doc/schemas/lightning-askrene-bias-channel.json index 448251bc3e86..2389d026c0da 100644 --- a/doc/schemas/lightning-askrene-bias-channel.json +++ b/doc/schemas/lightning-askrene-bias-channel.json @@ -99,5 +99,49 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-bias-channel#1", + "method": "askrene-bias-channel", + "params": { + "layer": "test_layers", + "short_channel_id_dir": "109x1x1/1", + "bias": 1 + } + }, + "response": { + "biases": [ + { + "layer": "test_layers", + "short_channel_id_dir": "109x1x1/1", + "bias": 1 + } + ] + } + }, + { + "request": { + "id": "example:askrene-bias-channel#2", + "method": "askrene-bias-channel", + "params": [ + "test_layers", + "109x1x1/1", + -5, + "bigger bias" + ] + }, + "response": { + "biases": [ + { + "layer": "test_layers", + "short_channel_id_dir": "109x1x1/1", + "description": "bigger bias", + "bias": -5 + } + ] + } + } ] } diff --git a/doc/schemas/lightning-askrene-create-channel.json b/doc/schemas/lightning-askrene-create-channel.json index 7843b197df03..deb1376361a1 100644 --- a/doc/schemas/lightning-askrene-create-channel.json +++ b/doc/schemas/lightning-askrene-create-channel.json @@ -68,5 +68,21 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-create-channel#1", + "method": "askrene-create-channel", + "params": { + "layer": "test_layers", + "source": "nodeid030303030303030303030303030303030303030303030303030303030303", + "destination": "nodeid010101010101010101010101010101010101010101010101010101010101", + "short_channel_id": "0x0x1", + "capacity_msat": "1000000sat" + } + }, + "response": {} + } ] } diff --git a/doc/schemas/lightning-askrene-create-layer.json b/doc/schemas/lightning-askrene-create-layer.json index ec1099887cf5..d0b650d5fddb 100644 --- a/doc/schemas/lightning-askrene-create-layer.json +++ b/doc/schemas/lightning-askrene-create-layer.json @@ -245,5 +245,29 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-create-layer#1", + "method": "askrene-create-layer", + "params": { + "layer": "test_layers" + } + }, + "response": { + "layers": [ + { + "layer": "test_layers", + "persistent": false, + "disabled_nodes": [], + "created_channels": [], + "channel_updates": [], + "constraints": [], + "biases": [] + } + ] + } + } ] } diff --git a/doc/schemas/lightning-askrene-disable-node.json b/doc/schemas/lightning-askrene-disable-node.json index 479109ea9eab..2dc13f06a9e6 100644 --- a/doc/schemas/lightning-askrene-disable-node.json +++ b/doc/schemas/lightning-askrene-disable-node.json @@ -45,5 +45,18 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-disable-node#1", + "method": "askrene-disable-node", + "params": { + "layer": "test_layers", + "node": "nodeid010101010101010101010101010101010101010101010101010101010101" + } + }, + "response": {} + } ] } diff --git a/doc/schemas/lightning-askrene-inform-channel.json b/doc/schemas/lightning-askrene-inform-channel.json index 6ebc0122f71e..41ac17a07b51 100644 --- a/doc/schemas/lightning-askrene-inform-channel.json +++ b/doc/schemas/lightning-askrene-inform-channel.json @@ -111,5 +111,29 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-inform-channel#1", + "method": "askrene-inform-channel", + "params": { + "layer": "test_layers", + "short_channel_id_dir": "0x0x1/1", + "amount_msat": 100000, + "inform": "unconstrained" + } + }, + "response": { + "constraints": [ + { + "layer": "test_layers", + "short_channel_id_dir": "0x0x1/1", + "timestamp": 1738000000, + "minimum_msat": 100000 + } + ] + } + } ] } diff --git a/doc/schemas/lightning-askrene-listlayers.json b/doc/schemas/lightning-askrene-listlayers.json index 4bc796e3eef2..98d3ee39b5ad 100644 --- a/doc/schemas/lightning-askrene-listlayers.json +++ b/doc/schemas/lightning-askrene-listlayers.json @@ -247,5 +247,118 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-listlayers#1", + "method": "askrene-listlayers", + "params": [ + "test_layers" + ] + }, + "response": { + "layers": [ + { + "layer": "test_layers", + "persistent": false, + "disabled_nodes": [ + "nodeid010101010101010101010101010101010101010101010101010101010101" + ], + "created_channels": [ + { + "source": "nodeid010101010101010101010101010101010101010101010101010101010101", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "short_channel_id": "0x0x1", + "capacity_msat": 1000000000 + } + ], + "channel_updates": [ + { + "short_channel_id_dir": "0x0x1/0", + "htlc_minimum_msat": 100, + "htlc_maximum_msat": 900000000, + "fee_base_msat": 1, + "fee_proportional_millionths": 2, + "cltv_expiry_delta": 18 + } + ], + "constraints": [ + { + "short_channel_id_dir": "0x0x1/1", + "timestamp": 1738000000, + "minimum_msat": 100000 + } + ], + "biases": [ + { + "short_channel_id_dir": "109x1x1/1", + "description": "bigger bias", + "bias": -5 + } + ] + } + ] + } + }, + { + "request": { + "id": "example:askrene-listlayers#2", + "method": "askrene-listlayers", + "params": {} + }, + "response": { + "layers": [ + { + "layer": "test_layers", + "persistent": false, + "disabled_nodes": [ + "nodeid010101010101010101010101010101010101010101010101010101010101" + ], + "created_channels": [ + { + "source": "nodeid010101010101010101010101010101010101010101010101010101010101", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "short_channel_id": "0x0x1", + "capacity_msat": 1000000000 + } + ], + "channel_updates": [ + { + "short_channel_id_dir": "0x0x1/0", + "htlc_minimum_msat": 100, + "htlc_maximum_msat": 900000000, + "fee_base_msat": 1, + "fee_proportional_millionths": 2, + "cltv_expiry_delta": 18 + } + ], + "constraints": [ + { + "short_channel_id_dir": "0x0x1/1", + "timestamp": 1738000000, + "minimum_msat": 100000 + } + ], + "biases": [ + { + "short_channel_id_dir": "109x1x1/1", + "description": "bigger bias", + "bias": -5 + } + ] + }, + { + "layer": "xpay", + "persistent": true, + "disabled_nodes": [], + "created_channels": [], + "channel_updates": [], + "constraints": [], + "biases": [] + } + ] + } + } ] } diff --git a/doc/schemas/lightning-askrene-listreservations.json b/doc/schemas/lightning-askrene-listreservations.json index 38153aece16f..f72a1ee8e620 100644 --- a/doc/schemas/lightning-askrene-listreservations.json +++ b/doc/schemas/lightning-askrene-listreservations.json @@ -68,5 +68,42 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-listreservations#1", + "method": "askrene-listreservations", + "params": {} + }, + "response": { + "reservations": [ + { + "short_channel_id_dir": "109x1x1/1", + "amount_msat": 1250000, + "age_in_seconds": 2, + "command_id": "\"-c:askrene-reserve#62/cln:askrene-reserve#122\"" + }, + { + "short_channel_id_dir": "123x1x1/0", + "amount_msat": 1250001, + "age_in_seconds": 2, + "command_id": "\"-c:askrene-reserve#62/cln:askrene-reserve#122\"" + }, + { + "short_channel_id_dir": "109x1x1/1", + "amount_msat": 1250000000000, + "age_in_seconds": 2, + "command_id": "\"-c:askrene-reserve#66/cln:askrene-reserve#126\"" + }, + { + "short_channel_id_dir": "123x1x1/0", + "amount_msat": 1250000000000, + "age_in_seconds": 2, + "command_id": "\"-c:askrene-reserve#66/cln:askrene-reserve#126\"" + } + ] + } + } ] } diff --git a/doc/schemas/lightning-askrene-remove-layer.json b/doc/schemas/lightning-askrene-remove-layer.json index 6f6a02225d17..aa7ae1f736bc 100644 --- a/doc/schemas/lightning-askrene-remove-layer.json +++ b/doc/schemas/lightning-askrene-remove-layer.json @@ -35,5 +35,17 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-remove-layer#1", + "method": "askrene-remove-layer", + "params": { + "layer": "test_layers" + } + }, + "response": {} + } ] } diff --git a/doc/schemas/lightning-askrene-reserve.json b/doc/schemas/lightning-askrene-reserve.json index 92c9cbf02946..f73e41867561 100644 --- a/doc/schemas/lightning-askrene-reserve.json +++ b/doc/schemas/lightning-askrene-reserve.json @@ -57,5 +57,45 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-reserve#1", + "method": "askrene-reserve", + "params": { + "path": [ + { + "short_channel_id_dir": "109x1x1/1", + "amount_msat": 1250000 + }, + { + "short_channel_id_dir": "123x1x1/0", + "amount_msat": 1250001 + } + ] + } + }, + "response": {} + }, + { + "request": { + "id": "example:askrene-reserve#2", + "method": "askrene-reserve", + "params": { + "path": [ + { + "short_channel_id_dir": "109x1x1/1", + "amount_msat": 1250000000000 + }, + { + "short_channel_id_dir": "123x1x1/0", + "amount_msat": 1250000000000 + } + ] + } + }, + "response": {} + } ] } diff --git a/doc/schemas/lightning-askrene-unreserve.json b/doc/schemas/lightning-askrene-unreserve.json index c99495376183..982db753f871 100644 --- a/doc/schemas/lightning-askrene-unreserve.json +++ b/doc/schemas/lightning-askrene-unreserve.json @@ -57,5 +57,45 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-unreserve#1", + "method": "askrene-unreserve", + "params": { + "path": [ + { + "short_channel_id_dir": "109x1x1/1", + "amount_msat": 1250000 + }, + { + "short_channel_id_dir": "123x1x1/0", + "amount_msat": 1250001 + } + ] + } + }, + "response": {} + }, + { + "request": { + "id": "example:askrene-unreserve#2", + "method": "askrene-unreserve", + "params": { + "path": [ + { + "short_channel_id_dir": "109x1x1/1", + "amount_msat": 1250000000000 + }, + { + "short_channel_id_dir": "123x1x1/0", + "amount_msat": 1250000000000 + } + ] + } + }, + "response": {} + } ] } diff --git a/doc/schemas/lightning-askrene-update-channel.json b/doc/schemas/lightning-askrene-update-channel.json index 8088d59db343..edc05bccb862 100644 --- a/doc/schemas/lightning-askrene-update-channel.json +++ b/doc/schemas/lightning-askrene-update-channel.json @@ -78,5 +78,34 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:askrene-update-channel#1", + "method": "askrene-update-channel", + "params": [ + "test_layers", + "0x0x1/0" + ] + }, + "response": {} + }, + { + "request": { + "id": "example:askrene-update-channel#2", + "method": "askrene-update-channel", + "params": { + "layer": "test_layers", + "short_channel_id_dir": "0x0x1/0", + "htlc_minimum_msat": 100, + "htlc_maximum_msat": 900000000, + "fee_base_msat": 1, + "fee_proportional_millionths": 2, + "cltv_expiry_delta": 18 + } + }, + "response": {} + } ] } diff --git a/doc/schemas/lightning-bkpr-channelsapy.json b/doc/schemas/lightning-bkpr-channelsapy.json index b2b4b1a9fa34..a1644ebee518 100644 --- a/doc/schemas/lightning-bkpr-channelsapy.json +++ b/doc/schemas/lightning-bkpr-channelsapy.json @@ -215,9 +215,9 @@ "response": { "channels_apy": [ { - "account": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", + "account": "channelid0120000120000120000120000120000120000120000120000120000", "routed_out_msat": 1000000, - "routed_in_msat": 510081208, + "routed_in_msat": 510091208, "lease_fee_paid_msat": 0, "lease_fee_earned_msat": 0, "pushed_out_msat": 0, @@ -226,17 +226,17 @@ "channel_start_balance_msat": 1000000000, "fees_out_msat": 0, "fees_in_msat": 106, - "utilization_out": "0.1000%", - "utilization_in": "51.0081%", - "utilization_in_initial": "51.0081%", - "apy_out": "0.0000%", - "apy_in": "0.0252%", - "apy_in_initial": "0.0252%", - "apy_total": "0.0252%" + "utilization_out": "30.7060%", + "utilization_in": "10.0027%", + "utilization_in_initial": "50.0081%", + "apy_out": "0.0080%", + "apy_in": "0.0080%", + "apy_in_initial": "0.0250%", + "apy_total": "0.0160%" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "routed_out_msat": 510181102, + "account": "channelid0230000230000230000230000230000230000230000230000230000", + "routed_out_msat": 510190102, "routed_in_msat": 0, "lease_fee_paid_msat": 0, "lease_fee_earned_msat": 0, @@ -246,17 +246,17 @@ "channel_start_balance_msat": 1000000000, "fees_out_msat": 106, "fees_in_msat": 0, - "utilization_out": "51.0181%", - "utilization_out_initial": "51.0181%", - "utilization_in": "0.0000%", - "apy_out": "0.0505%", - "apy_out_initial": "0.0505%", - "apy_in": "0.0000%", - "apy_total": "0.0505%", - "apy_total_initial": "0.0505%" + "utilization_out": "31.7060%", + "utilization_out_initial": "51.5591%", + "utilization_in": "11.0027%", + "apy_out": "0.0081%", + "apy_out_initial": "0.0121%", + "apy_in": "0.0081%", + "apy_total": "0.0161%", + "apy_total_initial": "0.0161%" }, { - "account": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", + "account": "channelid0250000250000250000250000250000250000250000250000250000", "routed_out_msat": 500000000, "routed_in_msat": 0, "lease_fee_paid_msat": 0, @@ -267,19 +267,19 @@ "channel_start_balance_msat": 1000000000, "fees_out_msat": 0, "fees_in_msat": 0, - "utilization_out": "50.0000%", - "utilization_out_initial": "50.0000%", - "utilization_in": "0.0000%", - "apy_out": "0.0000%", - "apy_out_initial": "0.0000%", - "apy_in": "0.0000%", - "apy_total": "0.0000%", - "apy_total_initial": "0.0000%" + "utilization_out": "32.7060%", + "utilization_out_initial": "52.5591%", + "utilization_in": "12.0027%", + "apy_out": "0.0082%", + "apy_out_initial": "0.0122%", + "apy_in": "0.0082%", + "apy_total": "0.0162%", + "apy_total_initial": "0.0162%" }, { "account": "net", - "routed_out_msat": 1011181102, - "routed_in_msat": 510081208, + "routed_out_msat": 1011190102, + "routed_in_msat": 510091208, "lease_fee_paid_msat": 0, "lease_fee_earned_msat": 0, "pushed_out_msat": 0, @@ -289,15 +289,15 @@ "fees_out_msat": 106, "fees_in_msat": 106, "utilization_out": "33.7060%", - "utilization_out_initial": "50.5591%", - "utilization_in": "17.0027%", - "utilization_in_initial": "51.0081%", - "apy_out": "0.0084%", - "apy_out_initial": "0.0126%", - "apy_in": "0.0084%", - "apy_in_initial": "0.0252%", - "apy_total": "0.0168%", - "apy_total_initial": "0.0168%" + "utilization_out_initial": "53.5591%", + "utilization_in": "13.0027%", + "utilization_in_initial": "53.0081%", + "apy_out": "0.0083%", + "apy_out_initial": "0.0123%", + "apy_in": "0.0083%", + "apy_in_initial": "0.0253%", + "apy_total": "0.0163%", + "apy_total_initial": "0.0163%" } ] } diff --git a/doc/schemas/lightning-bkpr-editdescriptionbyoutpoint.json b/doc/schemas/lightning-bkpr-editdescriptionbyoutpoint.json index 5c43dba547e0..60b10f2cb449 100644 --- a/doc/schemas/lightning-bkpr-editdescriptionbyoutpoint.json +++ b/doc/schemas/lightning-bkpr-editdescriptionbyoutpoint.json @@ -271,7 +271,7 @@ "id": "example:bkpr-editdescriptionbyoutpoint#1", "method": "bkpr-editdescriptionbyoutpoint", "params": { - "outpoint": "55edd73a01f08057e1f5f61788477c0d7551d5d1aa2f2907bf9d03b6370bbacf:1", + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1", "description": "edited utxo description" } }, @@ -284,8 +284,8 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "outpoint": "55edd73a01f08057e1f5f61788477c0d7551d5d1aa2f2907bf9d03b6370bbacf:1", - "timestamp": 1724554221, + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1", + "timestamp": 1738510000, "blockheight": 105, "description": "edited utxo description" } @@ -297,8 +297,8 @@ "id": "example:bkpr-editdescriptionbyoutpoint#2", "method": "bkpr-editdescriptionbyoutpoint", "params": { - "outpoint": "6472b4c9d39d8478ed9c848df7a62a512d953a4b2e6e7b09902d76a7bbb761ca:1", - "description": "edited utxo description" + "outpoint": "abcd020202020202020202020202020202020202020202020202020202020202:1", + "description": "edited utxo description for non existing outpoint" } }, "response": { diff --git a/doc/schemas/lightning-bkpr-editdescriptionbypaymentid.json b/doc/schemas/lightning-bkpr-editdescriptionbypaymentid.json index 500dee8d4dad..4578c0b40fe2 100644 --- a/doc/schemas/lightning-bkpr-editdescriptionbypaymentid.json +++ b/doc/schemas/lightning-bkpr-editdescriptionbypaymentid.json @@ -265,23 +265,23 @@ "id": "example:bkpr-editdescriptionbypaymentid#1", "method": "bkpr-editdescriptionbypaymentid", "params": { - "payment_id": "6ff673c6ae3527726cf200274426db79f93054a3cbbc4b3787d1afc2d65565a7", - "description": "edited invoice description" + "payment_id": "paymentid0000202020202020202020202020202020202020202020202020202", + "description": "edited invoice description from description send some sats l2 to l3" } }, "response": { "updated": [ { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 500000000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "6ff673c6ae3527726cf200274426db79f93054a3cbbc4b3787d1afc2d65565a7", + "payment_id": "paymentid0000202020202020202020202020202020202020202020202020202", "part_id": 0, - "timestamp": 1724554257, - "description": "edited invoice description", + "timestamp": 1738520000, + "description": "edited invoice description from description send some sats l2 to l3", "is_rebalance": false } ] @@ -292,8 +292,8 @@ "id": "example:bkpr-editdescriptionbypaymentid#2", "method": "bkpr-editdescriptionbypaymentid", "params": { - "payment_id": "c97b61113636256111835c0204d70111c42f19069cefdc659849a6afc6b595a4", - "description": "edited invoice description" + "payment_id": "c000010101010101010101010101010101010101010101010101010101010101", + "description": "edited invoice description for non existing payment id" } }, "response": { diff --git a/doc/schemas/lightning-bkpr-inspect.json b/doc/schemas/lightning-bkpr-inspect.json index 6a633815e351..dc731b389f80 100644 --- a/doc/schemas/lightning-bkpr-inspect.json +++ b/doc/schemas/lightning-bkpr-inspect.json @@ -213,50 +213,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 6c762ce8e682..d66499437171 100644 --- a/doc/schemas/lightning-bkpr-listaccountevents.json +++ b/doc/schemas/lightning-bkpr-listaccountevents.json @@ -275,416 +275,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" } ] } @@ -693,148 +299,44 @@ "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": 510010000, "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, + "description": "edited utxo description" }, { - "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 225d63e66d4f..ee81c2f5f1e6 100644 --- a/doc/schemas/lightning-bkpr-listbalances.json +++ b/doc/schemas/lightning-bkpr-listbalances.json @@ -149,14 +149,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, @@ -169,8 +169,8 @@ ] }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "peer_id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "account": "channelid0340000340000340000340000340000340000340000340000340000", + "peer_id": "nodeid040404040404040404040404040404040404040404040404040404040404", "we_opened": true, "account_closed": true, "account_resolved": false, @@ -182,8 +182,8 @@ ] }, { - "account": "ecabe6d86abdd57565b3fb7e7c5d724e60ca1a07633951769b5dbfa48dc884b3", - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "account": "channelid0230200230200230200230200230200230200230200230200230200", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "we_opened": false, "account_closed": false, "account_resolved": false, @@ -195,8 +195,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 213f7352d158..180a210a509d 100644 --- a/doc/schemas/lightning-bkpr-listincome.json +++ b/doc/schemas/lightning-bkpr-listincome.json @@ -135,7 +135,9 @@ "request": { "id": "example:bkpr-listincome#1", "method": "bkpr-listincome", - "params": {} + "params": { + "consolidate_fees": false + } }, "response": { "income_events": [ @@ -145,8 +147,9 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303635, - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0" + "timestamp": 1738500000, + "description": "edited utxo description", + "outpoint": "txidbk0000000000000000000000000000000000000000000000000000000000:1" }, { "account": "wallet", @@ -154,132 +157,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" + "timestamp": 1738510000, + "outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1" }, { - "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": "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" } ] } @@ -288,9 +185,7 @@ "request": { "id": "example:bkpr-listincome#2", "method": "bkpr-listincome", - "params": { - "consolidate_fees": false - } + "params": {} }, "response": { "income_events": [ @@ -300,177 +195,28 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303635, - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0" + "timestamp": 1738510000, + "description": "edited utxo description", + "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, - "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" + "timestamp": 1738520000, + "description": "edited invoice description from description send some sats l2 to l3", + "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 79c92bf8b0cf..cb787b6cf0f7 100644 --- a/doc/schemas/lightning-check.json +++ b/doc/schemas/lightning-check.json @@ -54,15 +54,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 1c583d2eb56a..fb744735d6cd 100644 --- a/doc/schemas/lightning-checkmessage.json +++ b/doc/schemas/lightning-checkmessage.json @@ -100,7 +100,7 @@ } }, "response": { - "pubkey": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "pubkey": "nodeid010101010101010101010101010101010101010101010101010101010101", "verified": true } } diff --git a/doc/schemas/lightning-checkrune.json b/doc/schemas/lightning-checkrune.json index 973b72b78078..643e29826948 100644 --- a/doc/schemas/lightning-checkrune.json +++ b/doc/schemas/lightning-checkrune.json @@ -90,7 +90,7 @@ "id": "example:checkrune#1", "method": "checkrune", "params": { - "nodeid": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "nodeid": "nodeid020202020202020202020202020202020202020202020202020202020202", "rune": "_RWaZZRI7wAYU2hqlFBmYgC_dFczcpAdI_9O87YbDpg9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl", "method": "listpeers", "params": {} @@ -105,7 +105,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 a440546cdc19..ed07ae0c9402 100644 --- a/doc/schemas/lightning-close.json +++ b/doc/schemas/lightning-close.json @@ -190,13 +190,19 @@ "id": "example:close#1", "method": "close", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "unilateraltimeout": 1 } }, "response": { - "tx": "020000000001018304b0bbf2ea662c053e0377df4652059bb107eb5312989471c2ef7e51f023cd0000000000ffffffff020b6e07000000000022512085d72025e78fd08bb61119f0987ab0041f50561ada6e130c645343db8c44c2afe5c8070000000000225120a7583f0c421663b8ca76fa579018b40682ef8553d73fd061cd8f216ecdced6a304004730440220369e36994b74172c67b738891a22a8f7cf3ad3d6051a1c08b641277c2b129134022060b96175b5046a0e8814c03076da885e4546f11e72188582473f0ca901001a0b0147304402206733aaa116b30474dfcdcc2ce48fbc6f222ed0eae7ac6e4c95da6a6f2a2105a502200ab85229e9981e0364ab1bef38e9a581067a9c7d9fe30487e34fd8e13eff56320147522102d595ae92b3544c3250fb772f214ad8d4c51425033740a5bcc357190add6d7e7a2102d6063d022691b2490ab454dee73a57c6ff5d308352b461ece69f3c284f2c241252ae00000000", - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", + "tx": "02000000000101cls00101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "txid": "txid010101010101010101010101010101010101010101010101010101010101", + "txs": [ + "02000000000101cls00101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" + ], + "txids": [ + "txid010101010101010101010101010101010101010101010101010101010101" + ], "type": "mutual" } }, @@ -205,13 +211,19 @@ "id": "example:close#2", "method": "close", "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "destination": "bcrt1qwvp8fktkxp07v0fp9jyqe7yl6rcgyu585a7pzr" + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", + "destination": "bcrt1p0004040404040404040404040404040404040404040404040404040404" } }, "response": { - "tx": "02000000000101e23fcc9e6306ce636b203217b22409bf9bab2211f9f432de781dedb6377dab5a0100000000ffffffff02746f070000000000160014730274d976305fe63d212c880cf89fd0f082728731c80700000000002251202bdd81f95d64ed2cc37d2eae725de428c91bff072d7503d87446970eedc63030040047304402205834de4c5c994a50f3ba5406534254b68e35836f98b4d5371b78225a79d087dd02201f54e1ae045e9a33dd3dd5a2b589903f305af5ead515a8e55feb2447b090415c0147304402202dd2efc52e5b4a78cbc1cf5664a0a3e3a5e67e16b0de37fc6818dbb838b6be17022062a071e81ecaec4808a44b049e091fa60b5fcf9e7f7bbdf85bc564a0a467e13601475221021c29746e4136ddff456483df3980c2d0d5f31c93ef5ded564f7294a10d7414aa2103c47b1b2afcfd68c7b86c0976adb9a4f0835bc78242fced745d78433497a867d652ae00000000", - "txid": "2849a5c5cd182ebec02d18ba6348bb01e70a544d0ce9aa8b5533fb09d24c969e", + "tx": "02000000000101cls10202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", + "txid": "txid020202020202020202020202020202020202020202020202020202020202", + "txs": [ + "02000000000101cls10202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" + ], + "txids": [ + "txid020202020202020202020202020202020202020202020202020202020202" + ], "type": "mutual" } } diff --git a/doc/schemas/lightning-commando-listrunes.json b/doc/schemas/lightning-commando-listrunes.json index d41e54ea68e2..803ec41a6eec 100644 --- a/doc/schemas/lightning-commando-listrunes.json +++ b/doc/schemas/lightning-commando-listrunes.json @@ -294,7 +294,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -327,13 +327,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" } @@ -351,7 +351,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 7ab46fd4c135..9f712bd435ad 100644 --- a/doc/schemas/lightning-commando.json +++ b/doc/schemas/lightning-commando.json @@ -90,15 +90,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, @@ -109,17 +109,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" } @@ -130,24 +130,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" } ] } @@ -157,23 +157,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 0fb8a06e1a8b..cc2f8adee1c1 100644 --- a/doc/schemas/lightning-connect.json +++ b/doc/schemas/lightning-connect.json @@ -192,19 +192,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 } } }, @@ -213,19 +213,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 67a554de254f..3ca4e9ec545a 100644 --- a/doc/schemas/lightning-createinvoice.json +++ b/doc/schemas/lightning-createinvoice.json @@ -211,19 +211,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 074825725d9a..d6c2d22ce941 100644 --- a/doc/schemas/lightning-createonion.json +++ b/doc/schemas/lightning-createonion.json @@ -108,27 +108,27 @@ "params": { "hops": [ { - "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payload": "11020203e9040187060800006f0000010000" + "pubkey": "nodeid020202020202020202020202020202020202020202020202020202020202", + "payload": "payload010101010101010101010101010" }, { - "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payload": "11020203e804018106080000710000010001" + "pubkey": "nodeid030303030303030303030303030303030303030303030303030303030303", + "payload": "payload020202020202020202020202020" }, { - "pubkey": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payload": "2b020203e80401810822810248b37c63b882804cf746c5b1d7595d26713d89a443ec5808a18ed2327a1903e8" + "pubkey": "nodeid040404040404040404040404040404040404040404040404040404040404", + "payload": "payload030303030303030303030303030" } ], - "assocdata": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" + "assocdata": "assocdata0010101010101010101010101010101010101010101010101010101" } }, "response": { - "onion": "0003ccc1f8876af4810e23bd4cccd8f2f38ee5dc117f527c783fefa4e632f857c98d588d2e3150d16b78f9458777502e4829b490e8a2d560841eb0c2368311bf9bb4e8ded0356badafd915839409ad60866c24dd7580b468c14097575565ca95425b9f44211d9ad0305ddba2391a70892ac8c9fd7c3b67d0fe22faf5a0b6905ee2e22278fe224e89ea72c3fcc598b35afaa255123e61ae7a697703e3bb8aec4d36ea487df6ec27942aadff0527d178c897e75f1ee284995196b5ead963ee9d0df798c8265c00c5c73daac917d298cc17e5d813189321d914c45ef30170c4d617dae12bb3a760d1665705e61bb6c52789e15623cefc68d96b86a6f17159c4a86bb196c9f5e40a0744d08d6da0cfd587717b6d0d074d42ac0893fa6ae1497c84824f1d27670d4e201af5e9e5a3493b603cfc209bb0ee41b573ca647c5b9882272c972cd18f19fd895e8995097d86882a473f4d26118a7ed656c5ea04c2a183b05cc0191d07fab5e78edab4ab8ec58e05e03f32d150449c0c8e3505e46ae58e77c87616144873f72f4571b00ccf8e71bcdf33a7d32345aecb660970fa73c4844ab157aa322f140f5d47b66a0590273728ddb5b8a7f3577cff5a268935b93fe598d6df4413c67c45efa9461abaf3294070a484418aa28c03ac20d08856eb0c74dfca851e8ed110bdcacb2a2fb90954b04e99986fde0678846a709120b5d1eeab9cde8d9f27d77448f4591e00bf30d7580703e6c189c658746cf7a7cc1430ce41f84244612b438c3d895333848e5f55e99b2a9d28860863c11aaa8e3ef01ead7ba1545156c356424c33aeeaa2f1e2c290d1d8dd52cd7b8116159025aba26db6fb81ad7f9cc4554c6f9f13d16defe38918b32d62a0516521934a0009a8d37c9a84689bfd8fc1f0beceb92701dca11175e0099d7541698956ba5d93efff996f538ee47717ae6c5cda98111bc28c822e99cf8957b707de270f447b6e52d30bcf9b8a9befd8663bc54612b543d0e167da67e2f295207b70857d0a7cae8932d905db2f48c873dec20aeafa07e15fa98a088e529424c8b404f03ba0ee78a6639fde5cd37dee42877ff6489ce1de5a8992cae25dd20a6521955c19129fdcc0ea157913373bf47a8018a1dd825a2f8e26194d5008161360ae9b25fc701b2accbe88eb47eee6a50b7ee6d6e169e3905e03ca72e00eb6a51b7ed3d27501715428368662b822e2262749d3e7d3243c4fd3d825b3e72bebdeebf6e035f1ad6634523ab5dc0335611c19c9936d006f2e4cd8818eb4f8b4857c8f35d18a4891e35ff91e3b54b384398574d673fcc8da50b22b8f485a41223c97e3b8ee5b8e5ff9c00a2cbfe7360509d3fee9248b5eaa81bb83da3be45dfa8cbbbf5c52ba8749c9d6261d4239feea1e7ce85ad40ad0c66bbeb1c6898626ae4e710a66f9c39a5ee94581353b46e070cfcff9a14e3f9a6108d55bb92852eb3a50e89b1e45d31b760f2a4e263a6a876ad638b123ffee7a2b0b48e16175e3eb92bfaad4dbe0af8b2bc1c15fec5a9d92d3970c2ffab2ab8fa2c9de0bd276680a4284707cd8543a97bca2394e9514236129f1c50a932f7e9bfb98c2aaa6ffc9a4a30641061246de6edf0f711a8d25d59af42ee4445b22ce2f832f3ece52c18ca62d90c590729e04c47accaec95b556ee2541c84843c54a116f5cc45bc251a8023b695f0bf79c43a97bece8a761d387a466821984fb5ec438af20d14cebb7f0026988c81b5a1b895ef94df61aa509e53083b4306c42132b5ce302fd5a2fbb1cee30a7078ccaa3bdccf781b8c9d6ae016a5f8e5cb13f7ac1f3fd0d74a182c9abea67d346f0dfcfc211aaa7ff47196465398fce3e6e0f3b73a944a7f57a90cc6a8f1bfcd385f8312e23af6f508f4f8a976d750660ac3d63630555a3a2e7fe158a982aaf0278d9f8819e5cb", + "onion": "onion10101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010", "shared_secrets": [ - "7d856ece68ddf5a89b909f888bc0c37207800a6cdba89db12a7cf7e7c26e5209", - "d1dfacfabba80f07461b890fc660440a105460b687c21bf78f7e6050c2889a98", - "46ff1895fde58206d5b437d39bb149995456ede6b9af75c0135210efbff23333" + "sharedsecret1010101010101010101010101010101010101010101010101010", + "sharedsecret1111111111111111111111111111111111111111111111111111", + "sharedsecret1212121212121212121212121212121212121212121212121212" ] } }, @@ -136,31 +136,31 @@ "request": { "id": "example:createonion#2", "method": "createonion", - "params": [ - [ + "params": { + "hops": [ { - "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payload": "11020203e9040187060800006f0000010000" + "pubkey": "nodeid020202020202020202020202020202020202020202020202020202020202", + "payload": "payload010101010101010101010101010" }, { - "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payload": "11020203e804018106080000710000010001" + "pubkey": "nodeid030303030303030303030303030303030303030303030303030303030303", + "payload": "payload020202020202020202020202020" }, { - "pubkey": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payload": "2b020203e80401810822810248b37c63b882804cf746c5b1d7595d26713d89a443ec5808a18ed2327a1903e8" + "pubkey": "nodeid040404040404040404040404040404040404040404040404040404040404", + "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 c5429c6bd24f..df661e041d3c 100644 --- a/doc/schemas/lightning-datastore.json +++ b/doc/schemas/lightning-datastore.json @@ -131,51 +131,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" } }, @@ -184,17 +165,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 } @@ -204,8 +185,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 66db95eabbd4..cb3f6ac49f07 100644 --- a/doc/schemas/lightning-datastoreusage.json +++ b/doc/schemas/lightning-datastoreusage.json @@ -84,7 +84,7 @@ "response": { "datastoreusage": { "key": "[]", - "total_bytes": 55 + "total_bytes": 161 } } }, @@ -117,7 +117,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 abe5c4da64e7..4a8af763530b 100644 --- a/doc/schemas/lightning-decode.json +++ b/doc/schemas/lightning-decode.json @@ -2380,33 +2380,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 07dd9599f977..c82236c9b214 100644 --- a/doc/schemas/lightning-decodepay.json +++ b/doc/schemas/lightning-decodepay.json @@ -273,23 +273,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, @@ -297,8 +297,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 b62e714684d6..95e1b522d0f3 100644 --- a/doc/schemas/lightning-deldatastore.json +++ b/doc/schemas/lightning-deldatastore.json @@ -127,8 +127,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 5d0e4b764cc9..9f9b24169922 100644 --- a/doc/schemas/lightning-delforward.json +++ b/doc/schemas/lightning-delforward.json @@ -77,11 +77,11 @@ "request": { "id": "example:delforward#2", "method": "delforward", - "params": [ - "109x1x1", - 19, - "failed" - ] + "params": { + "in_channel": "109x1x1", + "in_htlc_id": 21, + "status": "failed" + } }, "response": {} } diff --git a/doc/schemas/lightning-delinvoice.json b/doc/schemas/lightning-delinvoice.json index c6848c9f5550..f564d4890851 100644 --- a/doc/schemas/lightning-delinvoice.json +++ b/doc/schemas/lightning-delinvoice.json @@ -303,12 +303,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 } }, @@ -324,15 +324,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 b0ed259074d1..4966a9190edd 100644 --- a/doc/schemas/lightning-delpay.json +++ b/doc/schemas/lightning-delpay.json @@ -213,7 +213,7 @@ "id": "example:delpay#1", "method": "delpay", "params": { - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "status": "complete" } }, @@ -222,17 +222,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" } ] } @@ -242,25 +242,25 @@ "id": "example:delpay#2", "method": "delpay", "params": [ - "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "paymenthashdelpay20202020202020202020202020202020202020202020202", "failed" ] }, "response": { "payments": [ { - "created_index": 20, - "id": 20, - "payment_hash": "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "created_index": 23, + "id": 23, + "payment_hash": "paymenthashdelinv10101010101010101010101010101010101010101010101", "groupid": 1, - "updated_index": 19, - "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "updated_index": 22, + "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" } ] } @@ -270,7 +270,7 @@ "id": "example:delpay#3", "method": "delpay", "params": { - "payment_hash": "647252f7e45fce7bb964523206874f40f58fbb7b208bc08967caa0e2404990c9", + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", "status": "failed", "groupid": 1, "partid": 2 @@ -279,17 +279,17 @@ "response": { "payments": [ { - "created_index": 17, - "id": 17, - "payment_hash": "647252f7e45fce7bb964523206874f40f58fbb7b208bc08967caa0e2404990c9", + "created_index": 20, + "id": 20, + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", "groupid": 1, - "updated_index": 16, + "updated_index": 19, "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 32dfd1a53aad..3421e79b59a9 100644 --- a/doc/schemas/lightning-dev-forget-channel.json +++ b/doc/schemas/lightning-dev-forget-channel.json @@ -99,13 +99,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" } }, { @@ -116,15 +116,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 d3cbb7ecfe3b..3ff2bda21548 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 78168474b153..8274e097ffcf 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 e2f7e10844e8..3331d599978b 100644 --- a/doc/schemas/lightning-disconnect.json +++ b/doc/schemas/lightning-disconnect.json @@ -52,7 +52,7 @@ "id": "example:disconnect#1", "method": "disconnect", "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", "force": false } }, @@ -63,7 +63,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 46090ab0f606..5aa96c3bd848 100644 --- a/doc/schemas/lightning-emergencyrecover.json +++ b/doc/schemas/lightning-emergencyrecover.json @@ -58,9 +58,9 @@ }, "response": { "stubs": [ + "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9", "e13472d6512413eb1bf03b9a0bb391d0e4152fd337fa6d1014e3de5e131918d9", - "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", - "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9" + "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f" ] } } diff --git a/doc/schemas/lightning-enableoffer.json b/doc/schemas/lightning-enableoffer.json index 476c1612b6a7..85862c8d7f17 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-exposesecret.json b/doc/schemas/lightning-exposesecret.json index 47c718cef928..fa69a1586036 100644 --- a/doc/schemas/lightning-exposesecret.json +++ b/doc/schemas/lightning-exposesecret.json @@ -54,5 +54,34 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:exposesecret#1", + "method": "exposesecret", + "params": { + "passphrase": "test_exposesecret" + } + }, + "response": { + "identifier": "luea", + "codex32": "cl10lueasd35kw6r5de5kueedxyesqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqanvrktzhlhusz" + } + }, + { + "request": { + "id": "example:exposesecret#2", + "method": "exposesecret", + "params": [ + "test_exposesecret", + "cln2" + ] + }, + "response": { + "identifier": "cln2", + "codex32": "cl10cln2sd35kw6r5de5kueedxyesqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqn9lcvcu7cez4s" + } + } ] } diff --git a/doc/schemas/lightning-fetchinvoice.json b/doc/schemas/lightning-fetchinvoice.json index 050b3c8ce34a..1829e5b95c25 100644 --- a/doc/schemas/lightning-fetchinvoice.json +++ b/doc/schemas/lightning-fetchinvoice.json @@ -203,12 +203,12 @@ "id": "example:fetchinvoice#1", "method": "fetchinvoice", "params": { - "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqgn3qzs2ge5hx6pqwdskcefpzcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "offer": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "payer_note": "Thanks for the fish!" } }, "response": { - "invoice": "lni1qqg9g04gczk9ntk4gsjg3aptwykk2q3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssq38zq9q53nfwd5zqumpd3jjz93pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84sggztuesttnr6atmya7afycpsvcg0wnzprn58n54lfhf2ragp0jq0e04j9z5dpsku6mnypnx7u3qw35x2grxd9eksgdqnqpz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336kgr6euj6p39a209zw5kpkftk7h9te69vlmjg0arceagpaajague0zsszqk96htpgqn2wsznaas0zfdtf8v97ryz29jrn7rwgs5687ghgq5jusqr99dtx4jdj9nqpep5zxmynegrg6e7rm2l53ur8043h2yqzldyl5vh08h8ssaeq5jrvw9y24kztlwvc4nwagsuqqqqqqqqqqqqqqq9qqqqqqqqqqqqq8fykt06c5sqqqqqpfqyv65yfedgyqrp2s7qpxpjse8q8796qcrr5xwgfkqjue3urd6rs2rt2f68tk0vl2szyugtqggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vlqsy2n7vmpn67ltzrj70znp70sk4m530j5vceq6jhk97h7ttzn09sh8m9gecarrt27v2tux8z6rr06sj9h60r05p4vhkhzsp0xf9ea4jgg", + "invoice": "lni1qqg0qe01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "changes": {} } }, @@ -217,13 +217,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 8bf5fbb65c02..2efd8a754ad1 100644 --- a/doc/schemas/lightning-fundchannel.json +++ b/doc/schemas/lightning-fundchannel.json @@ -243,15 +243,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, @@ -262,30 +262,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, @@ -296,7 +296,7 @@ "anchors/even" ] }, - "outnum": 0 + "outnum": 1 } } ] diff --git a/doc/schemas/lightning-fundchannel_cancel.json b/doc/schemas/lightning-fundchannel_cancel.json index 1e8c7eb7e54c..fd18ad11e7e7 100644 --- a/doc/schemas/lightning-fundchannel_cancel.json +++ b/doc/schemas/lightning-fundchannel_cancel.json @@ -69,7 +69,7 @@ "id": "example:fundchannel_cancel#1", "method": "fundchannel_cancel", "params": [ - "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc" + "nodeid101010101010101010101010101010101010101010101010101010101010" ] }, "response": { @@ -81,7 +81,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 12b16c562f56..d064026b1d6c 100644 --- a/doc/schemas/lightning-fundchannel_complete.json +++ b/doc/schemas/lightning-fundchannel_complete.json @@ -86,12 +86,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 } }, @@ -100,12 +100,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 1fa8e8a73ec9..3dde937df0b3 100644 --- a/doc/schemas/lightning-fundchannel_start.json +++ b/doc/schemas/lightning-fundchannel_start.json @@ -212,13 +212,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, @@ -237,13 +237,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 528eeb457437..2771efb170f2 100644 --- a/doc/schemas/lightning-fundpsbt.json +++ b/doc/schemas/lightning-fundpsbt.json @@ -220,7 +220,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, @@ -241,7 +241,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 da0464eef282..d9b48e679906 100644 --- a/doc/schemas/lightning-getemergencyrecoverdata.json +++ b/doc/schemas/lightning-getemergencyrecoverdata.json @@ -41,9 +41,7 @@ "method": "getemergencyrecoverdata", "params": {} }, - "response": { - "filedata": "5b3142fa0dd1115c29654b44780dcd9cf56cd53f9168061e964b39f3ce596962594b25660cba5d90ef07cfccbe1620f378ef284c7d1afed49d" - } + "response": "emergencyrecoverdata0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" } ] } diff --git a/doc/schemas/lightning-getinfo.json b/doc/schemas/lightning-getinfo.json index 7863923f4b8a..a3fc05d71ed0 100644 --- a/doc/schemas/lightning-getinfo.json +++ b/doc/schemas/lightning-getinfo.json @@ -395,9 +395,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, @@ -407,18 +407,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 1d230e43f7e7..7a81024091ce 100644 --- a/doc/schemas/lightning-getlog.json +++ b/doc/schemas/lightning-getlog.json @@ -241,55 +241,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 e64feecc80f7..abf28601b9ca 100644 --- a/doc/schemas/lightning-getroute.json +++ b/doc/schemas/lightning-getroute.json @@ -372,7 +372,7 @@ "id": "example:getroute#1", "method": "getroute", "params": { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", "amount_msat": 10000, "riskfactor": 1 } @@ -380,7 +380,7 @@ "response": { "route": [ { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "channel": "109x1x1", "direction": 1, "amount_msat": 10001, @@ -388,8 +388,8 @@ "style": "tlv" }, { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "111x1x0", + "id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "channel": "111x1x1", "direction": 0, "amount_msat": 10000, "delay": 9, @@ -403,7 +403,7 @@ "id": "example:getroute#2", "method": "getroute", "params": { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", "amount_msat": 500000, "riskfactor": 10, "cltv": 9 @@ -412,16 +412,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-getroutes.json b/doc/schemas/lightning-getroutes.json index 8911b3e4a947..be0b85b0193e 100644 --- a/doc/schemas/lightning-getroutes.json +++ b/doc/schemas/lightning-getroutes.json @@ -172,5 +172,45 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:getroutes#1", + "method": "getroutes", + "params": { + "source": "nodeid010101010101010101010101010101010101010101010101010101010101", + "destination": "nodeid030303030303030303030303030303030303030303030303030303030303", + "amount_msat": 1250000, + "layers": [], + "maxfee_msat": 125000, + "final_cltv": 0 + } + }, + "response": { + "probability_ppm": 997501, + "routes": [ + { + "probability_ppm": 997501, + "amount_msat": 1250000, + "final_cltv": 0, + "path": [ + { + "short_channel_id_dir": "109x1x1/1", + "next_node_id": "nodeid020202020202020202020202020202020202020202020202020202020202", + "amount_msat": 1250026, + "delay": 12 + }, + { + "short_channel_id_dir": "123x1x1/0", + "next_node_id": "nodeid030303030303030303030303030303030303030303030303030303030303", + "amount_msat": 1250013, + "delay": 6 + } + ] + } + ] + } + } ] } diff --git a/doc/schemas/lightning-injectpaymentonion.json b/doc/schemas/lightning-injectpaymentonion.json index f5b23b316011..1ac2408378a8 100644 --- a/doc/schemas/lightning-injectpaymentonion.json +++ b/doc/schemas/lightning-injectpaymentonion.json @@ -125,5 +125,27 @@ "Main web site: ", "", "[bolt04]: https://github.com/lightning/bolts/blob/master/04-onion-routing.md" + ], + "examples": [ + { + "request": { + "id": "example:injectpaymentonion#1", + "method": "injectpaymentonion", + "params": { + "onion": "onion30303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030", + "payment_hash": "paymenthashinvl0270027002700270027002700270027002700270027002700", + "amount_msat": 1000, + "cltv_expiry": 144, + "partid": 1, + "groupid": 0 + } + }, + "response": { + "created_index": 12, + "created_at": 1738000000, + "completed_at": 1739000000, + "payment_preimage": "paymentpreimgio1030303030303030303030303030303030303030303030303" + } + } ] } diff --git a/doc/schemas/lightning-invoice.json b/doc/schemas/lightning-invoice.json index 2efda2c507c9..3aa08c139b9a 100644 --- a/doc/schemas/lightning-invoice.json +++ b/doc/schemas/lightning-invoice.json @@ -212,10 +212,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 } }, @@ -230,10 +230,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 519cb8365b1f..f4d57b139fbf 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 b945bd8856f3..a5c92b8b2289 100644 --- a/doc/schemas/lightning-keysend.json +++ b/doc/schemas/lightning-keysend.json @@ -237,18 +237,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" } }, @@ -257,7 +257,7 @@ "id": "example:keysend#2", "method": "keysend", "params": { - "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", + "destination": "nodeid040404040404040404040404040404040404040404040404040404040404", "amount_msat": 10000000, "extratlvs": { "133773310": "68656c6c6f776f726c64", @@ -266,13 +266,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" } }, @@ -281,13 +281,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 @@ -297,13 +297,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-listaddresses.json b/doc/schemas/lightning-listaddresses.json index 1f5a485ec44a..5ab3a1bc59b1 100644 --- a/doc/schemas/lightning-listaddresses.json +++ b/doc/schemas/lightning-listaddresses.json @@ -123,6 +123,97 @@ } ] } + }, + { + "request": { + "id": "example:listaddresses#3", + "method": "listaddresses", + "params": {} + }, + "response": { + "addresses": [ + { + "keyidx": 1, + "bech32": "bcrt1qyusnugshkn6kh5vmdjpe8hylvxlxjy3ns0hmrs" + }, + { + "keyidx": 2, + "p2tr": "bcrt1pmeuewfgl24n06v9868kts5v92494zexrvg0hc0sdmgwwnxm6t9sqdwfqjx" + }, + { + "keyidx": 3, + "bech32": "bcrt1qv8ksdsrr9tegfmy7ryhfwav0cprf9jpfqdfr4m" + }, + { + "keyidx": 4, + "p2tr": "bcrt1p3femk2q5x0ettk65v8r80z4z4lfguqgau67sg7v6txgkvtrp675qyc4gu2" + }, + { + "keyidx": 5, + "p2tr": "bcrt1pshtjqf083lgghds3r8cfs74sqs04q4s6mfhpxrry2dpahrzyc2hslyvm7n" + }, + { + "keyidx": 6, + "bech32": "bcrt1qkpw662yvzdy5ttdg8nw4eh4el0uc7m2ythw0h3" + }, + { + "keyidx": 7, + "p2tr": "bcrt1pn45xgkyj54usdu98plm4zgcp4c5jvvfxmyexwcm5kc3gyfsrjmasd6ctsf" + }, + { + "keyidx": 8, + "p2tr": "bcrt1pxu96ugcrazch0y4rfmsy4k5x56etsn7hdgq3gwatmzvu0mv7sdeql5x9qe" + }, + { + "keyidx": 9, + "bech32": "bcrt1q5czetq5cqrxsnxqx0wkm85v8eup7yvjy3vlnr7" + }, + { + "keyidx": 10, + "p2tr": "bcrt1plk4hcq06uuxq3c93lxk2ejs3pff3y8n4m322yhn4gfqk7dp2atmsj2vr99" + }, + { + "keyidx": 11, + "p2tr": "bcrt1pvn0zt2s8cv6shrtx8yd0zh90hwx4wpuqjrplfzpucnmde7kr4q3qx3fjfh" + }, + { + "keyidx": 12, + "bech32": "bcrt1qcqqvkswps3e6ck3jmqf86f9tcaeke5z04d3tv4" + }, + { + "keyidx": 13, + "p2tr": "bcrt1phtprcvhz842sxe8qw0yryvc0g6n6dw2puweklcpnfye273kjpfhs0d6d2e" + }, + { + "keyidx": 14, + "p2tr": "bcrt1p2gppccw6ywewmg74qqxxmqfdpjds3rpr0mf22y9tm9xcc0muggwsea9nkf" + }, + { + "keyidx": 15, + "p2tr": "bcrt1p9dwaqcfmdef574edhn6rzxmxumxghvr79pvj3hdklfterern0p6qx77a44" + }, + { + "keyidx": 16, + "bech32": "bcrt1qswadp7rqx7m0zx2tffhzmqfansdrpfesr2la7k" + }, + { + "keyidx": 17, + "p2tr": "bcrt1pqr02nvastyzya4q3lcjd00l56xemhhgf59srfgyk5jchtal44s8sjt683e" + }, + { + "keyidx": 18, + "bech32": "bcrt1qnk3lx7dch2ygmd8447wr7rj2yu0y92zl9wqf60" + }, + { + "keyidx": 19, + "p2tr": "bcrt1pnsdhwv72k277x6uzajv6ld84tmfu6env4ajy8amprpk8pjfn9n9s3fjvxv" + }, + { + "keyidx": 20, + "p2tr": "bcrt1p9n7h55ahdhmhlakvusfh8xlq98j9780punc9dx84xafcr8xulxmqwn4aa9" + } + ] + } } ] } diff --git a/doc/schemas/lightning-listchannels.json b/doc/schemas/lightning-listchannels.json index 209da1c1087b..f21e1f80f4af 100644 --- a/doc/schemas/lightning-listchannels.json +++ b/doc/schemas/lightning-listchannels.json @@ -197,8 +197,8 @@ "response": { "channels": [ { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "source": "nodeid020202020202020202020202020202020202020202020202020202020202", + "destination": "nodeid010101010101010101010101010101010101010101010101010101010101", "short_channel_id": "109x1x1", "direction": 0, "public": true, @@ -206,7 +206,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, @@ -215,16 +215,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, @@ -244,8 +244,8 @@ "response": { "channels": [ { - "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "source": "nodeid020202020202020202020202020202020202020202020202020202020202", + "destination": "nodeid010101010101010101010101010101010101010101010101010101010101", "short_channel_id": "109x1x1", "direction": 0, "public": true, @@ -253,7 +253,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, @@ -262,52 +262,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, @@ -316,52 +280,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, @@ -370,16 +298,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, @@ -388,34 +316,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 e5216248498c..41a4f777ce6a 100644 --- a/doc/schemas/lightning-listclosedchannels.json +++ b/doc/schemas/lightning-listclosedchannels.json @@ -296,7 +296,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": 489809898, + "min_to_us_msat": 489809898, + "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 9fe027f4ce74..bac8d7f466fa 100644 --- a/doc/schemas/lightning-listconfigs.json +++ b/doc/schemas/lightning-listconfigs.json @@ -2517,7 +2517,6 @@ } }, "response": { - "network": "regtest", "configs": { "network": { "value_str": "regtest", @@ -2535,7 +2534,6 @@ } }, "response": { - "experimental-dual-fund": true, "configs": { "experimental-dual-fund": { "set": true, @@ -2551,265 +2549,99 @@ "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, + "announce-addr-discovered": { + "value_str": "auto", "source": "default" }, - "daemon": { - "set": false, + "announce-addr-discovered-port": { + "value_int": 19846, "source": "default" }, - "experimental-dual-fund": { - "set": true, - "source": "cmdline" + "autoclean-cycle": { + "value_int": 3600, + "source": "default", + "plugin": "/root/lightning/plugins/autoclean", + "dynamic": true }, - "experimental-splicing": { - "set": false, - "source": "default" + "autoclean-expiredinvoices-age": { + "value_int": 300, + "source": "/tmp/.lightning/regtest/config:2", + "plugin": "/root/lightning/plugins/autoclean", + "dynamic": true }, - "experimental-offers": { - "set": true, + "autoconnect-seeker-peers": { + "value_int": 0, "source": "cmdline" }, - "experimental-shutdown-wrong-funding": { - "set": false, - "source": "default" - }, - "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": { @@ -2820,206 +2652,129 @@ "value_int": 5, "source": "cmdline" }, - "commit-time": { - "value_int": 10, + "commit-fee": { + "value_int": 100, "source": "default" }, - "fee-base": { - "value_int": 1, + "commit-feerate-offset": { + "value_int": 5, "source": "default" }, - "rescan": { - "value_int": 1, - "source": "cmdline" - }, - "fee-per-satoshi": { + "commit-time": { "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, + "daemon": { + "set": false, "source": "default" }, - "min-capacity-sat": { - "value_int": 10000, + "dev-autoclean-max-batch": { + "value_int": 100, "source": "default", + "plugin": "/root/lightning/plugins/autoclean", "dynamic": true }, - "addr": { - "values_str": [ - "127.0.0.1:41219" - ], - "sources": [ - "cmdline" - ] - }, - "bind-addr": { - "values_str": [], - "sources": [] + "dev-bitcoind-poll": { + "value_int": 3, + "source": "cmdline" }, - "announce-addr": { - "values_str": [], - "sources": [] + "dev-fail-on-subdaemon-fail": { + "set": true, + "source": "cmdline" }, - "announce-addr-discovered": { - "value_str": "auto", - "source": "default" + "dev-fast-gossip": { + "set": true, + "source": "cmdline" }, - "announce-addr-discovered-port": { - "value_int": 19846, - "source": "default" + "dev-hsmd-no-preapprove-check": { + "set": true, + "source": "cmdline" }, - "offline": { + "dev-invoice-bpath-scid": { "set": false, - "source": "default" - }, - "autolisten": { - "value_bool": false, - "source": "default" + "source": "default", + "plugin": "/root/lightning/plugins/offers" }, - "accept-htlc-tlv-type": { - "values_int": [], - "sources": [] + "developer": { + "set": true, + "source": "cmdline" }, "disable-dns": { "set": true, "source": "cmdline" }, + "disable-mpp": { + "set": false, + "source": "default", + "plugin": "/root/lightning/plugins/pay" + }, + "disable-plugin": { + "values_str": [], + "sources": [] + }, "encrypted-hsm": { "set": false, "source": "default" }, - "rpc-file-mode": { - "value_str": "0600", - "source": "default" + "experimental-dual-fund": { + "set": true, + "source": "cmdline" }, - "commit-fee": { - "value_int": 100, + "experimental-peer-storage": { + "set": false, "source": "default" }, - "commit-feerate-offset": { - "value_int": 5, + "experimental-quiesce": { + "set": false, "source": "default" }, - "min-emergency-msat": { - "value_msat": 25000000, + "experimental-shutdown-wrong-funding": { + "set": false, "source": "default" }, - "subdaemon": { - "values_str": [], - "sources": [] - }, - "experimental-upgrade-protocol": { + "experimental-splicing": { "set": false, "source": "default" }, - "invoices-onchain-fallback": { + "experimental-upgrade-protocol": { "set": false, "source": "default" }, - "i-promise-to-fix-broken-api-user": { - "values_str": [], - "sources": [] - }, - "log-level": { - "value_str": "debug", - "source": "cmdline" + "exposesecret-passphrase": { + "value_str": "...", + "source": "default", + "plugin": "/root/lightning/plugins/exposesecret" }, - "log-timestamps": { - "value_bool": true, + "fee-base": { + "value_int": 1, "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-bitcoind-poll": { - "value_int": 3, - "source": "cmdline" - }, - "dev-fast-gossip": { - "set": true, - "source": "cmdline" - }, - "dev-hsmd-no-preapprove-check": { - "set": true, - "source": "cmdline" - }, - "autoclean-cycle": { - "value_int": 3600, - "source": "default", - "plugin": "/root/lightning/plugins/autoclean", - "dynamic": true + "fee-per-satoshi": { + "value_int": 10, + "source": "default" }, - "dev-autoclean-max-batch": { - "value_int": 10000, + "fetchinvoice-noconnect": { + "set": false, "source": "default", - "plugin": "/root/lightning/plugins/autoclean", - "dynamic": true - }, - "bitcoin-datadir": { - "value_str": "/tmp/.lightning/", - "source": "cmdline", - "plugin": "/root/lightning/plugins/bcli" - }, - "bitcoin-rpcuser": { - "value_str": "rpcuser", - "source": "cmdline", - "plugin": "/root/lightning/plugins/bcli" - }, - "bitcoin-rpcpassword": { - "value_str": "rpcpass", - "source": "cmdline", - "plugin": "/root/lightning/plugins/bcli" - }, - "bitcoin-rpcport": { - "value_int": 51251, - "source": "cmdline", - "plugin": "/root/lightning/plugins/bcli" + "plugin": "/root/lightning/plugins/offers" }, - "bitcoin-rpcclienttimeout": { - "value_int": 60, + "funder-fund-probability": { + "value_int": 100, "source": "default", - "plugin": "/root/lightning/plugins/bcli" + "plugin": "/root/lightning/plugins/funder" }, - "bitcoin-retry-timeout": { - "value_int": 60, + "funder-fuzz-percent": { + "value_int": 0, "source": "default", - "plugin": "/root/lightning/plugins/bcli" + "plugin": "/root/lightning/plugins/funder" }, - "funder-policy": { - "value_str": "fixed", + "funder-lease-requests-only": { + "value_bool": true, "source": "default", "plugin": "/root/lightning/plugins/funder" }, - "funder-policy-mod": { - "value_str": "0", + "funder-max-their-funding": { + "value_str": "4294967295sat", "source": "default", "plugin": "/root/lightning/plugins/funder" }, @@ -3028,7 +2783,7 @@ "source": "default", "plugin": "/root/lightning/plugins/funder" }, - "funder-max-their-funding": { + "funder-per-channel-max": { "value_str": "4294967295sat", "source": "default", "plugin": "/root/lightning/plugins/funder" @@ -3038,8 +2793,13 @@ "source": "default", "plugin": "/root/lightning/plugins/funder" }, - "funder-per-channel-max": { - "value_str": "4294967295sat", + "funder-policy": { + "value_str": "fixed", + "source": "default", + "plugin": "/root/lightning/plugins/funder" + }, + "funder-policy-mod": { + "value_str": "0", "source": "default", "plugin": "/root/lightning/plugins/funder" }, @@ -3048,35 +2808,119 @@ "source": "default", "plugin": "/root/lightning/plugins/funder" }, - "funder-fuzz-percent": { - "value_int": 0, + "funding-confirms": { + "value_int": 1, + "source": "default" + }, + "grpc-host": { + "value_str": "127.0.0.1", "source": "default", - "plugin": "/root/lightning/plugins/funder" + "plugin": "/root/lightning/plugins/cln-grpc" }, - "funder-fund-probability": { - "value_int": 100, + "grpc-msg-buffer-size": { + "value_int": 1024, "source": "default", - "plugin": "/root/lightning/plugins/funder" + "plugin": "/root/lightning/plugins/cln-grpc" }, - "funder-lease-requests-only": { + "grpc-port": { + "value_int": 9736, + "source": "cmdline", + "plugin": "/root/lightning/plugins/cln-grpc" + }, + "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" + }, + "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", - "plugin": "/root/lightning/plugins/funder" + "source": "default" }, - "fetchinvoice-noconnect": { + "mainnet": { "set": false, - "source": "default", - "plugin": "/root/lightning/plugins/offers" + "source": "default" }, - "dev-invoice-bpath-scid": { + "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/offers" + "source": "default" }, - "disable-mpp": { + "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", - "plugin": "/root/lightning/plugins/pay" + "source": "default" }, "renepay-debug-mcf": { "set": false, @@ -3087,6 +2931,48 @@ "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" + }, + "xpay-handle-pay": { + "value_bool": false, + "source": "default", + "plugin": "/root/lightning/plugins/cln-xpay", + "dynamic": true } } } diff --git a/doc/schemas/lightning-listdatastore.json b/doc/schemas/lightning-listdatastore.json index 53911c20ac2f..dc0864f3cd74 100644 --- a/doc/schemas/lightning-listdatastore.json +++ b/doc/schemas/lightning-listdatastore.json @@ -100,7 +100,7 @@ "method": "listdatastore", "params": { "key": [ - "test" + "employee" ] } }, @@ -108,12 +108,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" } ] } @@ -123,18 +123,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 ad0113b26215..337cbe86f822 100644 --- a/doc/schemas/lightning-listforwards.json +++ b/doc/schemas/lightning-listforwards.json @@ -385,101 +385,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": 12, + "updated_index": 7, "in_channel": "109x1x1", - "in_htlc_id": 2, - "out_channel": "111x1x0", + "in_htlc_id": 19, + "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": 13, + "updated_index": 8, "in_channel": "109x1x1", - "in_htlc_id": 3, - "out_channel": "111x1x0", + "in_htlc_id": 20, + "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 } ] } @@ -497,114 +437,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 3db9c116a0d9..4134e71a4770 100644 --- a/doc/schemas/lightning-listfunds.json +++ b/doc/schemas/lightning-listfunds.json @@ -359,47 +359,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 5d9ef1c4ebea..42854469ce08 100644 --- a/doc/schemas/lightning-listhtlcs.json +++ b/doc/schemas/lightning-listhtlcs.json @@ -141,7 +141,7 @@ "expiry": 126, "direction": "out", "amount_msat": 500000000, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -150,7 +150,7 @@ "expiry": 136, "direction": "out", "amount_msat": 10001, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -159,7 +159,7 @@ "expiry": 149, "direction": "out", "amount_msat": 10001, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -168,7 +168,7 @@ "expiry": 155, "direction": "out", "amount_msat": 10000202, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -177,61 +177,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" } ] @@ -251,7 +197,7 @@ "expiry": 126, "direction": "out", "amount_msat": 500000000, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -260,7 +206,7 @@ "expiry": 136, "direction": "out", "amount_msat": 10001, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -269,7 +215,7 @@ "expiry": 149, "direction": "out", "amount_msat": 10001, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -278,7 +224,7 @@ "expiry": 155, "direction": "out", "amount_msat": 10000202, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { @@ -287,61 +233,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 c34f51f857f8..f3bdaf9dde4d 100644 --- a/doc/schemas/lightning-listinvoicerequests.json +++ b/doc/schemas/lightning-listinvoicerequests.json @@ -105,16 +105,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 } ] @@ -129,18 +129,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 296a480e4049..c90a72ce79c3 100644 --- a/doc/schemas/lightning-listinvoices.json +++ b/doc/schemas/lightning-listinvoices.json @@ -316,17 +316,17 @@ "invoices": [ { "label": "lbl_l21", - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "bolt11": "lnbcrt100n1pnt2bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000bolt11invl020100000000", + "payment_hash": "paymenthashinvl0210021002100210021002100210021002100210021002100", "status": "paid", - "pay_index": 3, + "pay_index": 4, "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 + "updated_index": 4 } ] } @@ -341,119 +341,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, + "pay_index": 4, "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 + "updated_index": 4 }, { "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 ce105a7669f2..606495ebec67 100644 --- a/doc/schemas/lightning-listnodes.json +++ b/doc/schemas/lightning-listnodes.json @@ -270,17 +270,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": [] } ] @@ -295,35 +295,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 5f92217afe10..0a222057027f 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 c239a77b39ac..806e732981dc 100644 --- a/doc/schemas/lightning-listpays.json +++ b/doc/schemas/lightning-listpays.json @@ -279,7 +279,7 @@ "id": "example:listpays#1", "method": "listpays", "params": { - "bolt11": "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll" + "bolt11": "lnbcrt100n1pnt2bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000" } }, "response": { @@ -293,74 +293,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 65dca837e6ce..001589c4d09f 100644 --- a/doc/schemas/lightning-listpeerchannels.json +++ b/doc/schemas/lightning-listpeerchannels.json @@ -1415,13 +1415,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": { @@ -1450,10 +1450,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, @@ -1462,16 +1462,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", @@ -1483,8 +1483,8 @@ "remote_funds_msat": 0, "pushed_msat": 0 }, - "to_us_msat": 490518792, - "min_to_us_msat": 489918792, + "to_us_msat": 390492790, + "min_to_us_msat": 390492790, "max_to_us_msat": 1000000000, "total_msat": 1000000000, "fee_base_msat": 1, @@ -1493,8 +1493,8 @@ "max_total_htlc_in_msat": 18446744073709552000, "their_reserve_msat": 10000000, "our_reserve_msat": 10000000, - "spendable_msat": 469223792, - "receivable_msat": 499481208, + "spendable_msat": 363951708, + "receivable_msat": 599507210, "minimum_htlc_in_msat": 0, "minimum_htlc_out_msat": 0, "maximum_htlc_out_msat": 990000000, @@ -1503,14 +1503,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", @@ -1524,11 +1524,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": 22, + "out_offered_msat": 665528797, + "out_payments_fulfilled": 16, + "out_fulfilled_msat": 610507210, + "htlcs": [ + { + "direction": "out", + "id": 17, + "amount_msat": 4000082, + "expiry": 181, + "payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303", + "state": "SENT_ADD_ACK_REVOCATION" + } + ] } ] } @@ -1542,7 +1551,7 @@ "response": { "channels": [ { - "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "peer_id": "nodeid020202020202020202020202020202020202020202020202020202020202", "peer_connected": true, "reestablished": true, "channel_type": { @@ -1571,10 +1580,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, @@ -1583,16 +1592,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", @@ -1604,8 +1613,8 @@ "remote_funds_msat": 0, "pushed_msat": 0 }, - "to_us_msat": 490518792, - "min_to_us_msat": 489918792, + "to_us_msat": 390492790, + "min_to_us_msat": 390492790, "max_to_us_msat": 1000000000, "total_msat": 1000000000, "fee_base_msat": 1, @@ -1614,8 +1623,8 @@ "max_total_htlc_in_msat": 18446744073709552000, "their_reserve_msat": 10000000, "our_reserve_msat": 10000000, - "spendable_msat": 469223792, - "receivable_msat": 499481208, + "spendable_msat": 363951708, + "receivable_msat": 599507210, "minimum_htlc_in_msat": 0, "minimum_htlc_out_msat": 0, "maximum_htlc_out_msat": 990000000, @@ -1624,14 +1633,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", @@ -1645,11 +1654,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": 22, + "out_offered_msat": 665528797, + "out_payments_fulfilled": 16, + "out_fulfilled_msat": 610507210, + "htlcs": [ + { + "direction": "out", + "id": 17, + "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 c7396ec15932..05c2c7559acc 100644 --- a/doc/schemas/lightning-listpeers.json +++ b/doc/schemas/lightning-listpeers.json @@ -330,19 +330,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" } ] } @@ -356,31 +356,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 c525c31ff5dc..b40dbba5e23e 100644 --- a/doc/schemas/lightning-listsendpays.json +++ b/doc/schemas/lightning-listsendpays.json @@ -346,7 +346,7 @@ "id": "example:listsendpays#1", "method": "listsendpays", "params": { - "bolt11": "lnbcrt100n1pn2s396sp5v3en0qa3rrljw4m0wtz88sx99q20rarufhjpfysefhwhs42gvqjqpp56kvvl33d594nsxu0hzhesvazgqzlwv89fnpjcvtlanz3rl7x623qdp9f9h8vmmfvdjjqer9wd3hy6tsw35k7m3qdsenzxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq7za6z8kx2k5nul45zwttfz2njx3836v69mxqsl4ty9228pyjrkfnkymysy8ygsrrje9qf6j4tpalt5qkqusfp2esrsqc5ak7t4yzajgpezef54" + "bolt11": "lnbcrt100n1pnt2bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000bolt11invl030100000000" } }, "response": { @@ -354,16 +354,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" } ] } @@ -376,146 +376,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 0a095fdcf3ae..89eb7d038c73 100644 --- a/doc/schemas/lightning-listtransactions.json +++ b/doc/schemas/lightning-listtransactions.json @@ -173,132 +173,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, + "hash": "txid7000270002700027000270002700027000270002700027000270002", + "rawtx": "02000000000101lstx70002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002700027000270002", + "blockheight": 102, "txindex": 1, - "locktime": 107, + "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 fa5e8f42a78b..21df27d15ae5 100644 --- a/doc/schemas/lightning-multifundchannel.json +++ b/doc/schemas/lightning-multifundchannel.json @@ -344,15 +344,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" } ], @@ -361,12 +361,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, @@ -380,8 +380,8 @@ "outnum": 1 }, { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "channel_id": "a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a", + "id": "nodeid040404040404040404040404040404040404040404040404040404040404", + "channel_id": "channelid1200012000120001200012000120001200012000120001200012000", "channel_type": { "bits": [ 12, @@ -392,11 +392,11 @@ "anchors/even" ] }, - "outnum": 2 + "outnum": 1 }, { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", - "channel_id": "e13472d6512413eb1bf03b9a0bb391d0e4152fd337fa6d1014e3de5e131918d9", + "id": "nodeid050505050505050505050505050505050505050505050505050505050505", + "channel_id": "channelid1300013000130001300013000130001300013000130001300013000", "channel_type": { "bits": [ 12, @@ -407,7 +407,7 @@ "anchors/even" ] }, - "outnum": 0 + "outnum": 1 } ], "failed": [] @@ -420,15 +420,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 } ], @@ -436,12 +436,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, @@ -461,11 +461,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 f6d79bb18cf0..f99a0074416e 100644 --- a/doc/schemas/lightning-multiwithdraw.json +++ b/doc/schemas/lightning-multiwithdraw.json @@ -104,8 +104,8 @@ } }, "response": { - "tx": "02000000000101057342aca7062873a4edd5a673980757885e5da8f68de3af254fe7c26d46e0700000000000fdffffff03df420700000000002251202b5dd0613b6e534f572dbcf4311b66e6cc8bb07e285928ddb6fa5791e4737874ae080000000000001600143d43d226bcc27019ade52d7a3dc52a7ac1be28b8050d000000000000160014d55c493983db651e10477455b1d408c31e7e9e310140beb27b31860b45464367b0f08334a0c90f3409ad176b9e21a35079495d6ce3dee0bbed786225ae56f59294466c9a14daf983375486dccaad7df3a7bc56b03faa87000000", - "txid": "85065cf7d607936190df447cbff6963c8facf404c1f7f594307afe07fc56edfe" + "tx": "02000000000155multiw55000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000", + "txid": "txid5500055000550005500055000550005500055000550005500055000" } }, { @@ -139,8 +139,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 1c82a316f21d..30ca24476cbe 100644 --- a/doc/schemas/lightning-offer.json +++ b/doc/schemas/lightning-offer.json @@ -190,10 +190,10 @@ } }, "response": { - "offer_id": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e", + "offer_id": "offeridl21000002100000210000021000002100000210000021000002100000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqgn3qzs2ge5hx6pqwdskcefpzcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000", "used": false, "created": true } @@ -209,10 +209,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 b9c261246dc1..3af44d85ebc2 100644 --- a/doc/schemas/lightning-openchannel_abort.json +++ b/doc/schemas/lightning-openchannel_abort.json @@ -81,11 +81,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 7a173f63fa36..6b93147a772f 100644 --- a/doc/schemas/lightning-openchannel_bump.json +++ b/doc/schemas/lightning-openchannel_bump.json @@ -179,13 +179,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, @@ -197,7 +197,7 @@ ] }, "commitments_secured": false, - "funding_serial": 4347205294156014600, + "funding_serial": 17725655605188030000, "requires_confirmed_inputs": false } }, @@ -206,15 +206,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, @@ -226,7 +226,7 @@ ] }, "commitments_secured": false, - "funding_serial": 10324133783552127000, + "funding_serial": 17725655605188040000, "requires_confirmed_inputs": false } }, @@ -237,13 +237,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, @@ -255,7 +255,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 63c230c9d183..f15857d130ed 100644 --- a/doc/schemas/lightning-openchannel_init.json +++ b/doc/schemas/lightning-openchannel_init.json @@ -219,14 +219,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, @@ -238,7 +238,7 @@ ] }, "commitments_secured": false, - "funding_serial": 8199047277484638000, + "funding_serial": 17725655605188010000, "requires_confirmed_inputs": false } }, @@ -247,14 +247,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, @@ -266,7 +266,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 d8baa28f29fa..6d8ed6e7f4f4 100644 --- a/doc/schemas/lightning-openchannel_signed.json +++ b/doc/schemas/lightning-openchannel_signed.json @@ -94,14 +94,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" } }, { @@ -110,13 +110,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 f44ede659ae5..da85795244be 100644 --- a/doc/schemas/lightning-openchannel_update.json +++ b/doc/schemas/lightning-openchannel_update.json @@ -211,13 +211,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, @@ -239,12 +239,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, @@ -256,7 +256,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 895028964d0c..9561aac0a59a 100644 --- a/doc/schemas/lightning-pay.json +++ b/doc/schemas/lightning-pay.json @@ -244,17 +244,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" } }, @@ -263,17 +263,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 d08e50a8cbc7..741ad6bf6dac 100644 --- a/doc/schemas/lightning-ping.json +++ b/doc/schemas/lightning-ping.json @@ -69,7 +69,7 @@ "id": "example:ping#1", "method": "ping", "params": { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "id": "nodeid010101010101010101010101010101010101010101010101010101010101", "len": 128, "pongbytes": 128 } @@ -83,7 +83,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 48a6956d8402..f9db5792c683 100644 --- a/doc/schemas/lightning-plugin.json +++ b/doc/schemas/lightning-plugin.json @@ -232,6 +232,11 @@ "active": true, "dynamic": false }, + { + "name": "/root/lightning/plugins/exposesecret", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/keysend", "active": true, @@ -247,6 +252,11 @@ "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/recklessrpc", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/recover", "active": true, @@ -262,16 +272,31 @@ "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/cln-xpay", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/spenderp", "active": true, "dynamic": false }, + { + "name": "/root/lightning/plugins/cln-askrene", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/sql", "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/cln-grpc", + "active": true, + "dynamic": false + }, { "name": "/root/lightning/plugins/bookkeeper", "active": true, @@ -340,6 +365,11 @@ "active": true, "dynamic": false }, + { + "name": "/root/lightning/plugins/exposesecret", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/keysend", "active": true, @@ -355,6 +385,11 @@ "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/recklessrpc", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/recover", "active": true, @@ -370,16 +405,31 @@ "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/cln-xpay", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/spenderp", "active": true, "dynamic": false }, + { + "name": "/root/lightning/plugins/cln-askrene", + "active": true, + "dynamic": true + }, { "name": "/root/lightning/plugins/sql", "active": true, "dynamic": true }, + { + "name": "/root/lightning/plugins/cln-grpc", + "active": true, + "dynamic": false + }, { "name": "/root/lightning/plugins/bookkeeper", "active": true, diff --git a/doc/schemas/lightning-preapproveinvoice.json b/doc/schemas/lightning-preapproveinvoice.json index e99a85d7da21..d79c726204be 100644 --- a/doc/schemas/lightning-preapproveinvoice.json +++ b/doc/schemas/lightning-preapproveinvoice.json @@ -49,7 +49,7 @@ "id": "example:preapproveinvoice#1", "method": "preapproveinvoice", "params": { - "bolt11": "lnbcrt1230n1pn2s38psp5jf2zk7py4wmutyq4pdr6783egft24nkyhfrxegrzzqnef2matw2qpp5rf5zgqyexdt7q5ean83cvcjuc3jafn8etm3c0za6xldwcyllvffqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydqcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq8nn5qkcp9xl5u7dlqamdys6e6yc0ngyqe676cqajnwax6657verj7at5gvdqu6nk3l0wcagq4muyhqqms4t0t9sfvyazpga5eywj6uqpyc409e" + "bolt11": "lnbcrt100n1pnt2bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000" } }, "response": {} @@ -59,7 +59,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 84d471ed6853..348cad2411e3 100644 --- a/doc/schemas/lightning-preapprovekeysend.json +++ b/doc/schemas/lightning-preapprovekeysend.json @@ -67,7 +67,7 @@ "id": "example:preapprovekeysend#1", "method": "preapprovekeysend", "params": { - "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "destination": "nodeid020202020202020202020202020202020202020202020202020202020202", "payment_hash": "0000000000000000000000000000000000000000000000000000000000000000", "amount_msat": 1000 } @@ -79,7 +79,7 @@ "id": "example:preapprovekeysend#2", "method": "preapprovekeysend", "params": [ - "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", + "nodeid050505050505050505050505050505050505050505050505050505050505", "0101010101010101010101010101010101010101010101010101010101010101", 2000 ] diff --git a/doc/schemas/lightning-recoverchannel.json b/doc/schemas/lightning-recoverchannel.json index b1b256d366d3..5029d7388c65 100644 --- a/doc/schemas/lightning-recoverchannel.json +++ b/doc/schemas/lightning-recoverchannel.json @@ -56,25 +56,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 905ccbe0fd1e..ae7e41449d3c 100644 --- a/doc/schemas/lightning-renepay.json +++ b/doc/schemas/lightning-renepay.json @@ -220,20 +220,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 } }, @@ -242,19 +242,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 d03e8bd930a6..3721ee93c610 100644 --- a/doc/schemas/lightning-renepaystatus.json +++ b/doc/schemas/lightning-renepaystatus.json @@ -142,21 +142,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 9b49ff778150..65789efec50e 100644 --- a/doc/schemas/lightning-reserveinputs.json +++ b/doc/schemas/lightning-reserveinputs.json @@ -113,13 +113,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, @@ -133,14 +133,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 de1f667e2851..a9cb0602b2c2 100644 --- a/doc/schemas/lightning-sendcustommsg.json +++ b/doc/schemas/lightning-sendcustommsg.json @@ -65,7 +65,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 94731cbe7a81..798e2b8d0693 100644 --- a/doc/schemas/lightning-sendinvoice.json +++ b/doc/schemas/lightning-sendinvoice.json @@ -211,24 +211,24 @@ "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, + "pay_index": 2, "amount_received_msat": 1000000, - "paid_at": 1722303714, - "payment_preimage": "6f154ed7d108349cb6385eba5f160294ef83862c2c560ba6446b2a3da5c2b3b3", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagei010101010101010101010101010101010101010101010101", "description": "Simple test", - "expires_at": 1722303803, - "created_index": 3, - "updated_index": 1 + "expires_at": 1739000000, + "created_index": 4, + "updated_index": 2 } } ] diff --git a/doc/schemas/lightning-sendonion.json b/doc/schemas/lightning-sendonion.json index 1fb4458a2685..39f51f644ac2 100644 --- a/doc/schemas/lightning-sendonion.json +++ b/doc/schemas/lightning-sendonion.json @@ -335,26 +335,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", + "created_index": 10, + "id": 10, + "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 c49025c9e9f7..4e88c1a65dd1 100644 --- a/doc/schemas/lightning-sendpay.json +++ b/doc/schemas/lightning-sendpay.json @@ -367,7 +367,7 @@ "params": { "route": [ { - "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "id": "nodeid020202020202020202020202020202020202020202020202020202020202", "channel": "109x1x1", "direction": 1, "amount_msat": 10001, @@ -375,28 +375,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 9a6e12ca9611..fa1c07d77351 100644 --- a/doc/schemas/lightning-sendpsbt.json +++ b/doc/schemas/lightning-sendpsbt.json @@ -71,12 +71,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 b4ad09755650..cec8252a3c4e 100644 --- a/doc/schemas/lightning-setchannel.json +++ b/doc/schemas/lightning-setchannel.json @@ -183,8 +183,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, @@ -200,7 +200,7 @@ "id": "example:setchannel#2", "method": "setchannel", "params": { - "id": "115x1x0", + "id": "115x1x1", "feebase": 4000, "feeppm": 300, "enforcedelay": 0 @@ -209,9 +209,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 9b8275ddbf2f..bcffb3a39a7a 100644 --- a/doc/schemas/lightning-setpsbtversion.json +++ b/doc/schemas/lightning-setpsbtversion.json @@ -63,7 +63,7 @@ "id": "example:setpsbtversion#1", "method": "setpsbtversion", "params": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAA==", + "psbt": "cHNidP8BAgpsbt1001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", "version": 0 } }, @@ -76,12 +76,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 856f39b93942..52996b194d6a 100644 --- a/doc/schemas/lightning-showrunes.json +++ b/doc/schemas/lightning-showrunes.json @@ -178,7 +178,7 @@ "runes": [ { "rune": "zFMd1fjhrAYxUeFA54TjloZqOt8JrA_i_nYwIgXkag49MA==", - "last_used": 1722303715.068215, + "last_used": 1738000000, "unique_id": "0", "restrictions": [], "restrictions_as_english": "" @@ -196,14 +196,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": [ { @@ -233,7 +233,7 @@ }, { "rune": "QUJEYMLGgiaJvMDv_MhR2hiMKIBTbq-PrL-KxcIlirQ9MiZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", - "last_used": 1722303715.1267006, + "last_used": 1738000000, "unique_id": "2", "restrictions": [ { @@ -269,7 +269,7 @@ "alternatives": [ { "fieldname": "id", - "value": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "value": "nodeid010101010101010101010101010101010101010101010101010101010101", "condition": "=", "english": "id equal to 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518" } @@ -302,13 +302,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" } @@ -326,7 +326,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 bdad12198bae..cb5552bbd83c 100644 --- a/doc/schemas/lightning-signinvoice.json +++ b/doc/schemas/lightning-signinvoice.json @@ -61,11 +61,11 @@ "id": "example:signinvoice#1", "method": "signinvoice", "params": { - "invstring": "lnbcrt10n1pn2s38psp5qnpucxgdnkrqur47x6vtxdk7xpzy3lf47kjqehm6wnuadj9rt86qpp5qg2ltzlhu2yn08f99t9zz6fjzhfmajg8h4eum43zg3gr0gdeamcsdqlv3jhxcmjd9c8g6t0dcsxjmnktakrzvsxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqg2kj0ma6weclle29pwpsdvnwa4r4yhw38wvly80mtysjf463r5y428k23dkp8ty0fugtzyjpcjsy0w7hhfmyzkwrlve93cr8jnm5sdgqzv7m0x" + "invstring": "lnbcrt100n1pnt2bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000" } }, "response": { - "bolt11": "lnbcrt10n1pn2s38psp5qnpucxgdnkrqur47x6vtxdk7xpzy3lf47kjqehm6wnuadj9rt86qpp5qg2ltzlhu2yn08f99t9zz6fjzhfmajg8h4eum43zg3gr0gdeamcsdqlv3jhxcmjd9c8g6t0dcsxjmnktakrzvsxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqq757xfxhd6hpctdfsq6vr2pltjvdv06t0z200hk0qslcydpf0pthmnzhu404w4qv89d25zv3smtsnyvqsaw6tf6tcl0lles6n29qh9gpyd3ml0" + "bolt11": "lnbcrt100n1pnt2bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000" } }, { @@ -73,11 +73,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 c7cc03a0843c..7a87ee78ec03 100644 --- a/doc/schemas/lightning-signpsbt.json +++ b/doc/schemas/lightning-signpsbt.json @@ -69,11 +69,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" } }, { @@ -81,11 +81,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 a2aba24a3d5d..2e59acbeffef 100644 --- a/doc/schemas/lightning-splice_init.json +++ b/doc/schemas/lightning-splice_init.json @@ -113,13 +113,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" } }, { @@ -127,13 +127,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 9981f221a127..6d644f4b3159 100644 --- a/doc/schemas/lightning-splice_signed.json +++ b/doc/schemas/lightning-splice_signed.json @@ -137,29 +137,31 @@ "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", - "outnum": 1 + "tx": "02000000000101sendpt64000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000640006400064000", + "txid": "txid6400064000640006400064000640006400064000640006400064000", + "outnum": 1, + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000" } }, { "request": { "id": "example:splice_signed#2", "method": "splice_signed", - "params": [ - "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBDiCVuxWBeu80WsQES0HKNSpjl7RUGPMhcKRnsXRp4BRF+AEPBAEAAAABEAQAAAAADPwJbGlnaHRuaW5nAQheLXaEp+y8AgABAwi4Lg8AAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCBkNULro+QrwAAEDCKCGAQAAAAAAAQQiUSDE0oJBX5qB0Y4IthmhnRFrhlbLG/ST5fVAu/e3oFhM2gz8CWxpZ2h0bmluZwEIuBcidnXj4BAA" - ] + "params": { + "channel_id": "channelid0780000780000780000780000780000780000780000780000780000", + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000" + } }, "response": { - "tx": "0200000000010195bb15817aef345ac4044b41ca352a6397b45418f32170a467b17469e01445f801000000000000000002b82e0f000000000022002093dedd0c265bca868576d3ee2e59eebbb20ebc296e58f7edca93d5eeaec08996a086010000000000225120c4d282415f9a81d18e08b619a19d116b8656cb1bf493e5f540bbf7b7a0584cda04004730440220259ff7ffc38775f34aed9be01a57b3002b2cba938e8bdf37ee0d529401ca0ae102206f77ba80e128ed5096679a304078efbff423394f2ffeb286e307fc71af06773d0147304402206e715aa27e9f192a787949dd322dd8c41d69dbf0b134099b942f40f3727ecaa80220154ab1a180d2103884ac73307f6f5faa0e384d7d40dcda44a26c17fdd83a89910147522102570ec0b6eb545663302183a62eac75d08fdeeb64f31352192065d601c8ca521d210266867c342b8250ab6b4edac6dbae2fde53782b69cd17139949fbd4f208487ff252ae94000000", - "txid": "b81ed02d0235b63cb73d1ee840345a696bc7224ba28be590165aa340bc9e37de", - "outnum": 0 + "tx": "02000000000102sendpt65000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000650006500065000", + "txid": "txid6500065000650006500065000650006500065000650006500065000", + "outnum": 1, + "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000" } } ] diff --git a/doc/schemas/lightning-splice_update.json b/doc/schemas/lightning-splice_update.json index 6a91b7307539..10b45ae9cd43 100644 --- a/doc/schemas/lightning-splice_update.json +++ b/doc/schemas/lightning-splice_update.json @@ -137,12 +137,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": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200715200", "commitments_secured": true, "signatures_secured": true } @@ -152,12 +152,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": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000712000", "commitments_secured": true, "signatures_secured": true } diff --git a/doc/schemas/lightning-sql-template.json b/doc/schemas/lightning-sql-template.json index 806399d457be..eee7f8db06a3 100644 --- a/doc/schemas/lightning-sql-template.json +++ b/doc/schemas/lightning-sql-template.json @@ -144,7 +144,7 @@ "response": { "rows": [ [ - "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59" + "nodeid020202020202020202020202020202020202020202020202020202020202" ] ] } @@ -157,26 +157,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" ] ] } @@ -189,19 +178,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" ] ] } @@ -214,16 +203,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" ] ] } @@ -236,15 +225,14 @@ "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", - 490503792, + "nodeid020202020202020202020202020202020202020202020202020202020202", + 490493792, 1000000000, "CHANNELD_NORMAL:Channel ready for use." ] @@ -265,7 +253,7 @@ "response": { "rows": [ [ - 8 + 9 ] ] } @@ -281,20 +269,20 @@ "response": { "rows": [ [ + 28, 23, - 18, 0, "option_static_remotekey" ], [ - 24, - 18, + 29, + 23, 1, "option_anchors_zero_fee_htlc_tx" ], [ - 25, - 18, + 30, + 23, 2, "option_anchors" ] diff --git a/doc/schemas/lightning-staticbackup.json b/doc/schemas/lightning-staticbackup.json index 2955e91a3de6..f41c973397ea 100644 --- a/doc/schemas/lightning-staticbackup.json +++ b/doc/schemas/lightning-staticbackup.json @@ -46,12 +46,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 6d63ebc67a70..2aecc24e47da 100644 --- a/doc/schemas/lightning-txdiscard.json +++ b/doc/schemas/lightning-txdiscard.json @@ -65,12 +65,12 @@ "id": "example:txdiscard#1", "method": "txdiscard", "params": [ - "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67" + "txidtxprep000100001000010000100001000010000100001000010000100001" ] }, "response": { - "unsigned_tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020a056363be8c7dbb511098cc50fbca24843e6ed6de03f816465f1998a9a82a09d4183980000000000225120f1393467c717cd50de2760167d4311141a8f750c89f54fd2c900601a7da8434c95000000", - "txid": "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67" + "unsigned_tx": "0200000000000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006000600060006", + "txid": "txidtxprep000100001000010000100001000010000100001000010000100001" } }, { @@ -78,12 +78,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 158aaa33a757..56751a119914 100644 --- a/doc/schemas/lightning-txprepare.json +++ b/doc/schemas/lightning-txprepare.json @@ -103,15 +103,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" } }, { @@ -121,15 +121,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 6a9091fa0a28..cf84e53065ce 100644 --- a/doc/schemas/lightning-txsend.json +++ b/doc/schemas/lightning-txsend.json @@ -69,13 +69,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" } }, { @@ -83,13 +83,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 1dc0b01c9b2f..c3e59df8ca98 100644 --- a/doc/schemas/lightning-unreserveinputs.json +++ b/doc/schemas/lightning-unreserveinputs.json @@ -128,7 +128,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 } }, @@ -141,7 +141,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 5f7672d09714..3f503257a810 100644 --- a/doc/schemas/lightning-upgradewallet.json +++ b/doc/schemas/lightning-upgradewallet.json @@ -100,9 +100,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 dcb614b5fa12..18695177c9ac 100644 --- a/doc/schemas/lightning-utxopsbt.json +++ b/doc/schemas/lightning-utxopsbt.json @@ -212,7 +212,7 @@ "15000perkw", 214, [ - "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3:1" + "utxo010101010101010101010101010101010101010101010101010101010101:1" ], null, true, @@ -222,14 +222,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, @@ -247,21 +247,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 a3d298ea3d99..96dc093634e5 100644 --- a/doc/schemas/lightning-wait.json +++ b/doc/schemas/lightning-wait.json @@ -323,7 +323,7 @@ }, "response": { "subsystem": "invoices", - "created": 15 + "created": 16 } }, { @@ -333,17 +333,17 @@ "params": { "subsystem": "sendpays", "indexname": "created", - "nextvalue": 15 + "nextvalue": 18 } }, "response": { "subsystem": "sendpays", - "created": 15, + "created": 18, "details": { "status": "pending", "partid": 0, "groupid": 1, - "payment_hash": "4c6f04eaf19dd956b616f1ba8718df40e387c4a56be36cf4e881a009cbf66899" + "payment_hash": "paymenthashwtspct20101010101010101010101010101010101010101010101" } } }, @@ -354,17 +354,17 @@ "params": [ "sendpays", "updated", - 15 + 18 ] }, "response": { "subsystem": "sendpays", - "updated": 15, + "updated": 18, "details": { "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 632babf01bb9..84455aa0793e 100644 --- a/doc/schemas/lightning-waitanyinvoice.json +++ b/doc/schemas/lightning-waitanyinvoice.json @@ -235,16 +235,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 } @@ -259,16 +259,17 @@ } }, "response": { - "label": "lbl_l23", - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", + "label": "test_injectpaymentonion1", + "bolt11": "lnbcrt100n1pnt2bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000bolt11invl020700000000", + "payment_hash": "paymenthashinvl0270027002700270027002700270027002700270027002700", + "amount_msat": 1000, "status": "paid", "pay_index": 2, - "amount_received_msat": 9900, - "paid_at": 1722303715, - "payment_preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", - "description": "l23 description", - "expires_at": 1722908514, + "amount_received_msat": 1000, + "paid_at": 1738500000, + "payment_preimage": "paymentpreimgio1030303030303030303030303030303030303030303030303", + "description": "test injectpaymentonion1 description", + "expires_at": 1739000000, "created_index": 8, "updated_index": 2 } diff --git a/doc/schemas/lightning-waitblockheight.json b/doc/schemas/lightning-waitblockheight.json index 5c84425aef7c..e978dcaba53e 100644 --- a/doc/schemas/lightning-waitblockheight.json +++ b/doc/schemas/lightning-waitblockheight.json @@ -57,12 +57,14 @@ ], "examples": [ { + "description": [ + "This will return immediately since the current blockheight exceeds the requested waitblockheight." + ], "request": { "id": "example:waitblockheight#1", "method": "waitblockheight", "params": { - "blockheight": 129, - "timeout": 600 + "blockheight": 126 } }, "response": { @@ -70,11 +72,15 @@ } }, { + "description": [ + "This will return after the next block is mined because requested waitblockheight is one block higher than the current blockheight." + ], "request": { "id": "example:waitblockheight#2", "method": "waitblockheight", "params": { - "blockheight": 131 + "blockheight": 131, + "timeout": 600 } }, "response": { diff --git a/doc/schemas/lightning-waitinvoice.json b/doc/schemas/lightning-waitinvoice.json index ca83174eb798..6cc373e818e4 100644 --- a/doc/schemas/lightning-waitinvoice.json +++ b/doc/schemas/lightning-waitinvoice.json @@ -240,18 +240,18 @@ }, "response": { "label": "inv2", - "bolt11": "lnbcrt20n1pn2s38fsp55xnux6tuzuutlqhekzytnexpqj6w3q00h6e7wu08ex43rdr4xqdqpp5znq67nu5secgcf79ncjtqfdpjfqh7acaxvngcqwqsvvxwnkyl35qdq8d9h8vvsxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq9ptnru6v58v8qd58xdqypr86utn6fhssx8rwegsspfp9d975h0t47xn0hea6qrmy2ucxt4l02nkxu7va7d5lqgy8nrqmhxqpm5qauegqjjqr02", - "payment_hash": "14c1af4f9486708c27c59e24b025a192417f771d33268c01c08318674ec4fc68", + "bolt11": "lnbcrt222n1pnt3005720bolt11wtinv01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101", + "payment_hash": "paymenthashwaitinv0101010101010101010101010101010101010101010101", "amount_msat": 2000, "status": "paid", - "pay_index": 4, + "pay_index": 5, "amount_received_msat": 2000, - "paid_at": 1722303723, - "payment_preimage": "1bda6e78384905bc476c6f50b447cf7fbba13a2644d49d85d797a826e8b9a6a0", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagewaitinv0010101010101010101010101010101010101010101", "description": "inv2", - "expires_at": 1722908521, - "created_index": 12, - "updated_index": 4 + "expires_at": 1739000000, + "created_index": 13, + "updated_index": 5 } }, { @@ -264,18 +264,18 @@ }, "response": { "label": "inv3", - "bolt11": "lnbcrt30n1pn2s38fsp5syqds2z0hgqgf3dcxt9kp5m2rtywxm4u4hr4xe90r885rr609vgqpp52y0xdhlzrua5clpuyw4wcfk9duxwwauzcjxrs9nj00258njmdjnsdq8d9h8vvcxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqkkeex45p62vc7nfjywwfle8yhk9wemyktw2m7924cfmlthk37q6ptjd8vxyaevtejfj44yp55xllqlljxv5vz6wc3gc9jlfkwrkngscqtl0xs8", - "payment_hash": "511e66dfe21f3b4c7c3c23aaec26c56f0ce77782c48c3816727bd543ce5b6ca7", + "bolt11": "lnbcrt222n1pnt3005720bolt11wtinv02020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202", + "payment_hash": "paymenthashwaitinv0202020202020202020202020202020202020202020202", "amount_msat": 3000, "status": "paid", - "pay_index": 5, + "pay_index": 6, "amount_received_msat": 3000, - "paid_at": 1722303725, - "payment_preimage": "86e637cb70631a0db88cc8f6ef9a21457b1b85be30236efb769a611b356225cd", + "paid_at": 1738500000, + "payment_preimage": "paymentpreimagewaitinv0020202020202020202020202020202020202020202", "description": "inv3", - "expires_at": 1722908521, - "created_index": 13, - "updated_index": 5 + "expires_at": 1739000000, + "created_index": 14, + "updated_index": 6 } } ] diff --git a/doc/schemas/lightning-waitsendpay.json b/doc/schemas/lightning-waitsendpay.json index f17ef84f33aa..8186c9bf0997 100644 --- a/doc/schemas/lightning-waitsendpay.json +++ b/doc/schemas/lightning-waitsendpay.json @@ -238,22 +238,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 59ab07fe2775..180162d04216 100644 --- a/doc/schemas/lightning-withdraw.json +++ b/doc/schemas/lightning-withdraw.json @@ -105,14 +105,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" } }, { @@ -120,19 +120,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-xpay.json b/doc/schemas/lightning-xpay.json index b9084b0a7892..c46c6e373aa6 100644 --- a/doc/schemas/lightning-xpay.json +++ b/doc/schemas/lightning-xpay.json @@ -119,5 +119,39 @@ ], "resources": [ "Main web site: " + ], + "examples": [ + { + "request": { + "id": "example:xpay#1", + "method": "xpay", + "params": [ + "lnbcrt100n1pnt2bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000bolt11invl040100000000" + ] + }, + "response": { + "payment_preimage": "paymentpreimgxp1010101010101010101010101010101010101010101010101", + "failed_parts": 0, + "successful_parts": 1, + "amount_msat": 10000, + "amount_sent_msat": 10002 + } + }, + { + "request": { + "id": "example:xpay#2", + "method": "xpay", + "params": { + "invstring": "lni1qqg0qe03030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303" + } + }, + "response": { + "payment_preimage": "paymentpreimgxp2020202020202020202020202020202020202020202020202", + "failed_parts": 0, + "successful_parts": 1, + "amount_msat": 1000, + "amount_sent_msat": 1000 + } + } ] } diff --git a/plugins/.gitignore b/plugins/.gitignore index e38988d7d817..ae3fd1fb98c6 100644 --- a/plugins/.gitignore +++ b/plugins/.gitignore @@ -19,3 +19,4 @@ recover cln-askrene recklessrpc exposesecret +cln-xpay diff --git a/tests/autogenerate-rpc-examples.py b/tests/autogenerate-rpc-examples.py index 5f0c8813dd9a..314402e3f190 100644 --- a/tests/autogenerate-rpc-examples.py +++ b/tests/autogenerate-rpc-examples.py @@ -1,15 +1,15 @@ -# This script is used to re-generate all RPC examples for methods listed in doc/schemas/lightning-*.json schema files. -# It uses the pre existing test setup to start nodes, fund channels and execute other RPC calls to generate these examples. -# This test will only run with GENERATE_EXAMPLES=True setup to avoid accidental overwriting of examples with other test executions. -# Set the test TIMEOUT to more than 3 seconds to avoid failures while waiting for the bitcoind response. The `dev-bitcoind-poll` is set to 3 seconds, so a shorter timeout may lead to test failures. -# Note: Different nodes are used to record examples depending upon the availability, quality and volume of the data. For example: Node l1 has been used to listsendpays and l2 for listforwards. +# NOTE: For detailed documentation, refer to https://docs.corelightning.org/docs/writing-json-schemas. +# NOTE: Set the test `TIMEOUT` to greater than 3 seconds to prevent failures caused by waiting on the bitcoind response. +# The `dev-bitcoind-poll` interval is 3 seconds, so a shorter timeout may result in test failures. +# NOTE: Different nodes are selected to record examples based on data availability, quality, and volume. +# For example, node `l1` is used to capture examples for `listsendpays`, whereas node `l2` is utilized for `listforwards`. + from fixtures import * # noqa: F401,F403 from fixtures import TEST_NETWORK -from io import BytesIO -from pyln.client import RpcError, Millisatoshi -from pyln.proto.onion import TlvPayload -from utils import only_one, mine_funding_to_announce, sync_blockheight, wait_for, first_scid +from pyln.client import RpcError, Millisatoshi # type: ignore +from utils import only_one, mine_funding_to_announce, sync_blockheight, wait_for, first_scid, serialize_payload_tlv, serialize_payload_final_tlv +import sys import os import re import time @@ -18,164 +18,415 @@ import json import logging import ast -import struct import subprocess CWD = os.getcwd() -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' +REGENERATING_RPCS = [] +ALL_RPC_EXAMPLES = {} +EXAMPLES_JSON = {} +LOG_FILE = './tests/autogenerate-examples-status.log' +TEMP_EXAMPLES_FILE = './tests/autogenerate-examples.json' +IGNORE_RPCS_LIST = ['dev-splice', 'reckless', 'sql-template'] + +# 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, + 'grpc-port': 9736, + 'blockheight_110': 110, + 'blockheight_130': 130, + '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), + 'onion_3': 'onion' + ('30' * 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), + 'invoice_3': 'lni1qqg0qe' + ('03' * 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), + 'destination_6': 'bcrt1p00' + ('04' * 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_l14': 'lnbcrt100n1pnt2' + ('bolt11invl010400000000' * 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_l27': 'lnbcrt100n1pnt2' + ('bolt11invl020700000000' * 10), + 'bolt11_l31': 'lnbcrt100n1pnt2' + ('bolt11invl030100000000' * 10), + 'bolt11_l33': 'lnbcrt100n1pnt2' + ('bolt11invl030300000000' * 10), + 'bolt11_l34': 'lnbcrt100n1pnt2' + ('bolt11invl030400000000' * 10), + 'bolt11_l41': 'lnbcrt100n1pnt2' + ('bolt11invl040100000000' * 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_l27': 'paymenthashinvl0' + ('2700' * 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_preimage_xp_1': 'paymentpreimgxp1' + ('01' * 24), + 'payment_preimage_xp_2': 'paymentpreimgxp2' + ('02' * 24), + 'payment_preimage_io_1': 'paymentpreimgio1' + ('03' * 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_1': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('715100' * 120), + 'psbt_5_2': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('715200' * 120), + 'psbt_6_1': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('716100' * 120), + 'psbt_6_2': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('716200' * 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() ]) logger = logging.getLogger(__name__) -class TaskFinished(Exception): - def __init__(self, message): - self.message = 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""" +class MissingExampleError(Exception): + pass + + +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}') + raise 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}') + raise + except Exception as e: + logger.error(f'Error updating examples in schema files: {e}') + raise + + # 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, response=None, description=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 response is None: + response = node.rpc.call(method, params) + logger.info(f'{method} response: {response}') + # 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 response + else: + method_examples['examples'].append({'request': req, 'response': response} if description is None else {'description': description, 'request': req, 'response': response}) + EXAMPLES_JSON[method] = method_examples + logger.info(f'Updated {method}#{method_id} example json') + return response def setup_test_nodes(node_factory, bitcoind): @@ -205,8 +456,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) ] @@ -219,22 +470,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) @@ -244,11 +495,46 @@ 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 - except TaskFinished: - raise + 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 Exception as e: logger.error(f'Error in setting up nodes: {e}') + raise def generate_transactions_examples(l1, l2, l3, l4, l5, c25, bitcoind): @@ -260,91 +546,63 @@ 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): - """Encode a tu64 (or tu32 etc) value""" - try: - ret = struct.pack("!Q", i) - while ret.startswith(b'\0'): - ret = ret[1:] - return ret - except Exception as e: - logger.error(f'Error in encoding: {e}') - - def serialize_payload_tlv(n, blockheight: int = 0): - """Serialize payload according to BOLT #4: Onion Routing Protocol""" - try: - block, tx, out = n['channel'].split('x') - payload = TlvPayload() - b = BytesIO() - b.write(truncate_encode(int(n['amount_msat']))) - payload.add_field(2, b.getvalue()) - b = BytesIO() - b.write(truncate_encode(blockheight + n['delay'])) - payload.add_field(4, b.getvalue()) - b = BytesIO() - b.write(struct.pack("!Q", int(block) << 40 | int(tx) << 16 | int(out))) - payload.add_field(6, b.getvalue()) - return payload.to_bytes().hex() - except Exception as e: - logger.error(f'Error in serializing payload: {e}') - - def serialize_payload_final_tlv(n, payment_secret: str, blockheight: int = 0): - """Serialize the last payload according to BOLT #4: Onion Routing Protocol""" - try: - payload = TlvPayload() - b = BytesIO() - b.write(truncate_encode(int(n['amount_msat']))) - payload.add_field(2, b.getvalue()) - b = BytesIO() - b.write(truncate_encode(blockheight + n['delay'])) - payload.add_field(4, b.getvalue()) - b = BytesIO() - b.write(bytes.fromhex(payment_secret)) - b.write(truncate_encode(int(n['amount_msat']))) - payload.add_field(8, b.getvalue()) - return payload.to_bytes().hex() - except Exception as e: - logger.error(f'Error in serializing final payload: {e}') + inv_l41 = l4.rpc.invoice('10000msat', 'test_xpay_simple', 'test_xpay_simple bolt11') + xpay_res1 = update_example(node=l1, method='xpay', params=[inv_l41['bolt11']]) + offer_l11 = l1.rpc.offer('any') + inv_l14 = l1.rpc.fetchinvoice(offer_l11['bolt12'], '1000msat') + xpay_res2 = update_example(node=l1, method='xpay', params={'invstring': inv_l14['invoice']}) blockheight = l1.rpc.getinfo()['blockheight'] amt = 10**3 route = l1.rpc.getroute(l4.info['id'], amt, 10)['route'] inv = l4.rpc.invoice(amt, "lbl l4", "desc l4") first_hop = route[0] - hops = [] + sendonion_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)}) - 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']}) - l1.rpc.waitsendpay(payment_hash=inv['payment_hash']) + sendonion_hops.append({'pubkey': h['id'], 'payload': serialize_payload_tlv(amt, 18 + 6, n['channel'], blockheight).hex()}) + example_hops.append({'pubkey': NEW_VALUES_LIST['l2_id'] if i == 1 else NEW_VALUES_LIST['l3_id'], 'payload': 'payload0' + ((str(i) + '0') * 13)}) + i += 1 + sendonion_hops.append({'pubkey': route[-1]['id'], 'payload': serialize_payload_final_tlv(amt, 18, amt, blockheight, inv['payment_secret']).hex()}) + example_hops.append({'pubkey': NEW_VALUES_LIST['l4_id'], 'payload': 'payload0' + ((str(i) + '0') * 13)}) + onion_res1 = update_example(node=l1, method='createonion', params={'hops': sendonion_hops, 'assocdata': inv['payment_hash']}) + onion_res2 = update_example(node=l1, method='createonion', params={'hops': sendonion_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']}) # 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}) + address_l41 = l4.rpc.newaddr() + close_res2 = update_example(node=l3, method='close', params={'id': l4.info['id'], 'destination': address_l41['bech32']}) bitcoind.generate_block(1) sync_blockheight(bitcoind, [l1, l2, l3, l4]) @@ -354,34 +612,141 @@ 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}) + inv_l27 = l2.rpc.invoice(amt, 'test_injectpaymentonion1', 'test injectpaymentonion1 description') + injectpaymentonion_hops = [ + {'pubkey': l1.info['id'], + 'payload': serialize_payload_tlv(1000, 18 + 6, first_scid(l1, l2), blockheight).hex()}, + {'pubkey': l2.info['id'], + 'payload': serialize_payload_final_tlv(1000, 18, 1000, blockheight, inv_l27['payment_secret']).hex()}] + onion_res3 = l1.rpc.createonion(hops=injectpaymentonion_hops, assocdata=inv_l27['payment_hash']) + injectpaymentonion_res1 = update_example(node=l1, method='injectpaymentonion', params={ + 'onion': onion_res3['onion'], + 'payment_hash': inv_l27['payment_hash'], + 'amount_msat': 1000, + 'cltv_expiry': blockheight + 18 + 6, + 'partid': 1, + 'groupid': 0}) + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['destination'], 'original_value': address_l41['bech32'], 'new_value': NEW_VALUES_LIST['destination_6']}, + {'data_keys': ['tx'], 'original_value': close_res1['tx'], 'new_value': NEW_VALUES_LIST['close1_tx']}, + {'data_keys': ['txs'], 'original_value': close_res1['txs'], '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': ['txids'], 'original_value': close_res1['txids'], 'new_value': [NEW_VALUES_LIST['close1_txid']]}, + {'data_keys': ['tx'], 'original_value': close_res2['tx'], 'new_value': NEW_VALUES_LIST['close2_tx']}, + {'data_keys': ['txs'], 'original_value': close_res2['txs'], 'new_value': [NEW_VALUES_LIST['close2_tx']]}, + {'data_keys': ['txid'], 'original_value': close_res2['txid'], 'new_value': NEW_VALUES_LIST['close2_txid']}, + {'data_keys': ['txids'], 'original_value': close_res2['txids'], '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': ['any', 'bolt11'], 'original_value': inv_l41['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l41']}, + {'data_keys': ['invstring'], 'original_value': inv_l14['invoice'], 'new_value': NEW_VALUES_LIST['invoice_3']}, + {'data_keys': ['hops'], 'original_value': sendonion_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': ['any', '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': ['onion'], 'original_value': onion_res3['onion'], 'new_value': NEW_VALUES_LIST['onion_3']}, + {'data_keys': ['any', 'bolt11'], 'original_value': inv_l27['bolt11'], 'new_value': NEW_VALUES_LIST['bolt11_l27']}, + {'data_keys': ['payment_hash'], 'original_value': inv_l27['payment_hash'], 'new_value': NEW_VALUES_LIST['payment_hash_l27']}, + {'data_keys': ['payment_preimage'], 'original_value': injectpaymentonion_res1['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_io_1']}, + {'data_keys': ['created_at'], 'original_value': injectpaymentonion_res1['created_at'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['completed_at'], 'original_value': injectpaymentonion_res1['completed_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, + {'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']}, + {'data_keys': ['payment_preimage'], 'original_value': xpay_res1['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_xp_1']}, + {'data_keys': ['payment_preimage'], 'original_value': xpay_res2['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_xp_2']}, + ]) logger.info('Simple Transactions Done!') - return inv_l11, inv_l21, inv_l22, inv_l31, inv_l32, inv_l34 - except TaskFinished: - raise + return c23_2, c23res2, c34_2, inv_l11, inv_l21, inv_l22, inv_l31, inv_l32, inv_l34 except Exception as e: logger.error(f'Error in generating transactions examples: {e}') + raise def generate_runes_examples(l1, l2, l3): @@ -398,8 +763,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:']) @@ -408,14 +772,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}) @@ -431,74 +795,188 @@ 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: - raise except Exception as e: logger.error(f'Error in generating runes examples: {e}') + raise 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!') - except TaskFinished: - raise except Exception as e: logger.error(f'Error in generating datastore examples: {e}') + raise -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={}) + bkpr_channelsapy_res1 = l2.rpc.bkpr_channelsapy() + fields = [ + ('utilization_out', '3{}.7060%'), + ('utilization_out_initial', '5{}.5591%'), + ('utilization_in', '1{}.0027%'), + ('utilization_in_initial', '5{}.0081%'), + ('apy_out', '0.008{}%'), + ('apy_out_initial', '0.012{}%'), + ('apy_in', '0.008{}%'), + ('apy_in_initial', '0.025{}%'), + ('apy_total', '0.016{}%'), + ('apy_total_initial', '0.016{}%'), + ] + for i, channel in enumerate(bkpr_channelsapy_res1['channels_apy']): + for key, pattern in fields: + if key in channel: + channel[key] = pattern.format(i) + update_example(node=l2, method='bkpr-channelsapy', params={}, response=bkpr_channelsapy_res1) # listincome and editing descriptions - listincome_result = update_example(node=l3, method='bkpr-listincome', params={'consolidate_fees': False}) + listincome_result = l3.rpc.bkpr_listincome(consolidate_fees=False) invoice = next((event for event in listincome_result['income_events'] if 'payment_id' in event), None) utxo_event = next((event for event in listincome_result['income_events'] if 'outpoint' in event), None) - update_example(node=l3, method='bkpr-editdescriptionbypaymentid', params={'payment_id': invoice['payment_id'], 'description': 'edited invoice description'}) + update_example(node=l3, method='bkpr-editdescriptionbypaymentid', params={'payment_id': invoice['payment_id'], 'description': 'edited invoice description from description send some sats l2 to l3'}) # Try to edit a payment_id that does not exist - update_example(node=l3, method='bkpr-editdescriptionbypaymentid', params={'payment_id': 'c97b61113636256111835c0204d70111c42f19069cefdc659849a6afc6b595a4', 'description': 'edited invoice description'}) + update_example(node=l3, method='bkpr-editdescriptionbypaymentid', params={'payment_id': 'c000' + ('01' * 30), 'description': 'edited invoice description for non existing payment id'}) update_example(node=l3, method='bkpr-editdescriptionbyoutpoint', params={'outpoint': utxo_event['outpoint'], 'description': 'edited utxo description'}) # Try to edit an outpoint that does not exist - update_example(node=l3, method='bkpr-editdescriptionbyoutpoint', params={'outpoint': '6472b4c9d39d8478ed9c848df7a62a512d953a4b2e6e7b09902d76a7bbb761ca:1', 'description': 'edited utxo description'}) - + update_example(node=l3, method='bkpr-editdescriptionbyoutpoint', params={'outpoint': 'abcd' + ('02' * 30) + ':1', 'description': 'edited utxo description for non existing outpoint'}) + + 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], response=bkprlistaccountevents_res1) + 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={}, response=bkprlistaccountevents_res2) + 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}, response=bkprlistincome_res1) + 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={}, response=bkprlistincome_res2) + 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 except Exception as e: logger.error(f'Error in generating bookkeeper examples: {e}') + raise def generate_offers_renepay_examples(l1, l2, inv_l21, inv_l34): @@ -510,70 +988,88 @@ 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!') - except TaskFinished: - raise + return offer_l23, inv_req_l1_l22 except Exception as e: logger.error(f'Error in generating offers or renepay examples: {e}') + raise -def generate_list_examples(l1, l2, l3, c12, c23, inv_l31, inv_l32): - """Generates lists rpc examples""" +def generate_askrene_examples(l1, l2, l3, c12, c23_2): + """Generates askrene related 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 + logger.info('Askrene Start...') + + def direction(src, dst): + if src < dst: + return 0 + return 1 + + direction12 = direction(l1.info['id'], l2.info['id']) + direction23 = direction(l2.info['id'], l3.info['id']) + scid12dir = f'{c12}/{direction12}' + scid23dir = f'{c23_2}/{direction23}' + update_example(node=l2, method='askrene-create-layer', params={'layer': 'test_layers'}) + update_example(node=l2, method='askrene-disable-node', params={'layer': 'test_layers', 'node': l1.info['id']}) + update_example(node=l2, method='askrene-update-channel', params=['test_layers', '0x0x1/0']) + update_example(node=l2, method='askrene-create-channel', params={'layer': 'test_layers', 'source': l3.info['id'], 'destination': l1.info['id'], 'short_channel_id': '0x0x1', 'capacity_msat': '1000000sat'}) + update_example(node=l2, method='askrene-update-channel', params={'layer': 'test_layers', 'short_channel_id_dir': '0x0x1/0', 'htlc_minimum_msat': 100, 'htlc_maximum_msat': 900000000, 'fee_base_msat': 1, 'fee_proportional_millionths': 2, 'cltv_expiry_delta': 18}) + askrene_inform_channel_res1 = update_example(node=l2, method='askrene-inform-channel', params={'layer': 'test_layers', 'short_channel_id_dir': '0x0x1/1', 'amount_msat': 100000, 'inform': 'unconstrained'}) + update_example(node=l2, method='askrene-bias-channel', params={'layer': 'test_layers', 'short_channel_id_dir': scid12dir, 'bias': 1}) + update_example(node=l2, method='askrene-bias-channel', params=['test_layers', scid12dir, -5, 'bigger bias']) + askrene_listlayers_res1 = update_example(node=l2, method='askrene-listlayers', params=['test_layers']) + update_example(node=l2, method='askrene-listlayers', params={}) + ts1 = only_one(only_one(askrene_listlayers_res1['layers'])['constraints'])['timestamp'] + update_example(node=l2, method='askrene-age', params={'layer': 'test_layers', 'cutoff': ts1 + 1}) + update_example(node=l2, method='askrene-remove-layer', params={'layer': 'test_layers'}) + update_example(node=l1, method='getroutes', params={'source': l1.info['id'], 'destination': l3.info['id'], 'amount_msat': 1250000, 'layers': [], 'maxfee_msat': 125000, 'final_cltv': 0}) + update_example(node=l1, method='askrene-reserve', params={'path': [{'short_channel_id_dir': scid12dir, 'amount_msat': 1250_000}, {'short_channel_id_dir': scid23dir, 'amount_msat': 1250_001}]}) + update_example(node=l1, method='askrene-reserve', params={'path': [{'short_channel_id_dir': scid12dir, 'amount_msat': 1250_000_000_000}, {'short_channel_id_dir': scid23dir, 'amount_msat': 1250_000_000_000}]}) + time.sleep(2) + askrene_listreservations_res1 = l1.rpc.askrene_listreservations() + askrene_listreservations_res1 = update_list_responses(askrene_listreservations_res1, list_key='reservations', slice_upto=5, update_func=lambda x, i: REPLACE_RESPONSE_VALUES.extend([{'data_keys': ['command_id'], 'original_value': x['command_id'], 'new_value': f'\"-c:askrene-reserve#6{(i + 1) * 2}/cln:askrene-reserve#12{(i + 1) * 2}\"'}]), sort=True, sort_key='amount_msat') + update_example(node=l1, method='askrene-listreservations', params={}, response=askrene_listreservations_res1) + update_example(node=l1, method='askrene-unreserve', params={'path': [{'short_channel_id_dir': scid12dir, 'amount_msat': 1250_000}, {'short_channel_id_dir': scid23dir, 'amount_msat': 1250_001}]}) + update_example(node=l1, method='askrene-unreserve', params={'path': [{'short_channel_id_dir': scid12dir, 'amount_msat': 1250_000_000_000}, {'short_channel_id_dir': scid23dir, 'amount_msat': 1250_000_000_000}]}) + REPLACE_RESPONSE_VALUES.extend([ + {'data_keys': ['any', 'short_channel_id_dir'], 'original_value': scid12dir, 'new_value': f"{NEW_VALUES_LIST['c12']}/{direction12}"}, + {'data_keys': ['short_channel_id_dir'], 'original_value': scid23dir, 'new_value': f"{NEW_VALUES_LIST['c23_2']}/{direction23}"}, + {'data_keys': ['cutoff'], 'original_value': ts1 + 1, 'new_value': NEW_VALUES_LIST['time_at_800']}, + {'data_keys': ['timestamp'], 'original_value': askrene_inform_channel_res1['constraints'][0]['timestamp'], 'new_value': NEW_VALUES_LIST['time_at_800']}, + ]) + logger.info('Askrene Done!') except Exception as e: - logger.error(f'Error in generating lists examples: {e}') + logger.error(f'Error in generating askrene examples: {e}') + raise def generate_wait_examples(l1, l2, bitcoind, executor): @@ -585,18 +1081,17 @@ 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) l1.rpc.pay(inv2['bolt11']) time.sleep(1) wi2res = executor.submit(l2.rpc.waitinvoice, 'inv2').result(timeout=5) - update_example(node=l2, method='waitinvoice', params={'label': 'inv2'}, res=wi2res, execute=False) + update_example(node=l2, method='waitinvoice', params={'label': 'inv2'}, response=wi2res) l1.rpc.pay(inv3['bolt11']) wi3res = wi3.result(timeout=5) - update_example(node=l2, method='waitinvoice', params=['inv3'], res=wi3res, execute=False) + update_example(node=l2, method='waitinvoice', params=['inv3'], response=wi3res) # Wait any invoice wai = executor.submit(l2.rpc.waitanyinvoice) @@ -604,10 +1099,10 @@ def generate_wait_examples(l1, l2, bitcoind, executor): l1.rpc.pay(inv5['bolt11']) l1.rpc.pay(inv4['bolt11']) waires = wai.result(timeout=5) - update_example(node=l2, method='waitanyinvoice', params={}, res=waires, execute=False) + update_example(node=l2, method='waitanyinvoice', params={}, response=waires) pay_index = waires['pay_index'] wai_pay_index_res = executor.submit(l2.rpc.waitanyinvoice, pay_index, 0).result(timeout=5) - update_example(node=l2, method='waitanyinvoice', params={'lastpay_index': pay_index, 'timeout': 0}, res=wai_pay_index_res, execute=False) + update_example(node=l2, method='waitanyinvoice', params={'lastpay_index': pay_index, 'timeout': 0}, response=wai_pay_index_res) # Wait with subsystem examples update_example(node=l2, method='wait', params={'subsystem': 'invoices', 'indexname': 'created', 'nextvalue': 0}) @@ -626,26 +1121,44 @@ def generate_wait_examples(l1, l2, bitcoind, executor): l1.rpc.sendpay([routestep], inv1['payment_hash'], payment_secret=inv1['payment_secret']) wspc_res = wsp_created_l1.result(5) wspu_res = wsp_updated_l1.result(5) - update_example(node=l1, method='wait', params={'subsystem': 'sendpays', 'indexname': 'created', 'nextvalue': nextvalue}, res=wspc_res, execute=False) - update_example(node=l1, method='wait', params=['sendpays', 'updated', nextvalue], res=wspu_res, execute=False) + update_example(node=l1, method='wait', params={'subsystem': 'sendpays', 'indexname': 'created', 'nextvalue': nextvalue}, response=wspc_res) + update_example(node=l1, method='wait', params=['sendpays', 'updated', nextvalue], response=wspu_res) # Wait blockheight curr_blockheight = l2.rpc.getinfo()['blockheight'] - update_example(node=l2, method='waitblockheight', params={'blockheight': curr_blockheight - 1, 'timeout': 600}) - wait_time = 60 - wbh = executor.submit(l2.rpc.waitblockheight, curr_blockheight + 1, wait_time) + if curr_blockheight < 130: + bitcoind.generate_block(130 - curr_blockheight) + sync_blockheight(bitcoind, [l2]) + update_example(node=l2, method='waitblockheight', params={'blockheight': 126}, description=[f'This will return immediately since the current blockheight exceeds the requested waitblockheight.']) + wbh = executor.submit(l2.rpc.waitblockheight, curr_blockheight + 1, 600) bitcoind.generate_block(1) sync_blockheight(bitcoind, [l2]) wbhres = wbh.result(5) - update_example(node=l2, method='waitblockheight', params={'blockheight': curr_blockheight + 1}, res=wbhres, execute=False) + update_example(node=l2, method='waitblockheight', params={'blockheight': curr_blockheight + 1, 'timeout': 600}, response=wbhres, description=[f'This will return after the next block is mined because requested waitblockheight is one block higher than the current blockheight.']) + 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']}, + ]) logger.info('Wait Done!') - except TaskFinished: - raise except Exception as e: logger.error(f'Error in generating wait examples: {e}') + raise -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...') @@ -661,10 +1174,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'}, response=getlog_res1) 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')}) @@ -681,10 +1196,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}) @@ -699,20 +1216,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'}) + 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']], response=psbtoutput_res2) 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) @@ -726,21 +1244,64 @@ 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=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']) + update_example(node=l1, method='sql', params={'query': 'SELECT id FROM peers'}, description=['A simple peers selection query:']) + update_example(node=l1, 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, 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:'], response=sql_res3) + 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, 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:"], response=sql_res4) + update_example(node=l1, 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, 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, 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 + return address_l22 except Exception as e: logger.error(f'Error in generating utils examples: {e}') + raise def generate_splice_examples(node_factory, bitcoind): @@ -762,17 +1323,19 @@ 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']}) + spupdate1_res1 = l7.rpc.splice_update(chan_id_78, spinit_res1['psbt']) + assert(spupdate1_res1['commitments_secured'] is False) + spupdate2_res1 = update_example(node=l7, method='splice_update', params={'channel_id': chan_id_78, 'psbt': spupdate1_res1['psbt']}) + assert(spupdate2_res1['commitments_secured'] is True) + signpsbt_res1 = l7.rpc.signpsbt(spupdate2_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]) @@ -780,18 +1343,38 @@ 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']]) + spupdate1_res2 = l7.rpc.splice_update(chan_id_78, spinit_res2['psbt']) + assert(spupdate1_res2['commitments_secured'] is False) + spupdate2_res2 = update_example(node=l7, method='splice_update', params=[chan_id_78, spupdate1_res2['psbt']]) + assert(spupdate2_res2['commitments_secured'] is True) + spsigned_res2 = update_example(node=l7, method='splice_signed', params={'channel_id': chan_id_78, 'psbt': spupdate2_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': spupdate2_res1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_5_2']}, + {'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': ['psbt'], 'original_value': spsigned_res1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_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': spsigned_res2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_2']}, + {'data_keys': ['psbt'], 'original_value': signpsbt_res1['signed_psbt'], 'new_value': NEW_VALUES_LIST['signed_psbt_1']}, + {'data_keys': ['psbt'], 'original_value': spupdate1_res1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_1']}, + {'data_keys': ['any', 'psbt'], 'original_value': spupdate1_res2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_2']}, + ]) logger.info('Splice Done!') - except TaskFinished: - raise except Exception as e: logger.error(f'Error in generating splicing examples: {e}') + raise def generate_channels_examples(node_factory, bitcoind, l1, l3, l4, l5): @@ -812,34 +1395,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 @@ -857,13 +1445,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']) @@ -872,14 +1462,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']) @@ -888,26 +1478,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) @@ -928,10 +1518,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) @@ -941,22 +1530,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=[ @@ -967,36 +1570,119 @@ 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) bitcoind.generate_block(1) sync_blockheight(bitcoind, [l1, l3, l4, l5]) logger.info('Channels Done!') - except TaskFinished: - raise except Exception as e: logger.error(f'Error in generating fundchannel and openchannel examples: {e}') + raise def generate_autoclean_delete_examples(l1, l2, l3, l4, l5, c12, c23): @@ -1005,7 +1691,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') @@ -1015,7 +1701,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'] @@ -1030,7 +1716,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): @@ -1038,10 +1724,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'] @@ -1049,19 +1735,41 @@ 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 except Exception as e: logger.error(f'Error in generating autoclean and delete examples: {e}') + raise def generate_backup_recovery_examples(node_factory, l4, l5, l6): @@ -1069,12 +1777,17 @@ def generate_backup_recovery_examples(node_factory, l4, l5, l6): try: logger.info('Backup and Recovery Start...') - # New node l13 used for recover example - l13 = node_factory.get_node() + # New node l13 used for recover and exposesecret examples + l13 = node_factory.get_node(options={'exposesecret-passphrase': "test_exposesecret"}) + update_example(node=l13, method='exposesecret', params={'passphrase': 'test_exposesecret'}) + update_example(node=l13, method='exposesecret', params=['test_exposesecret', 'cln2']) 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={}, response=emergencyrecover_res1) + update_example(node=l4, method='getemergencyrecoverdata', params={}, response='emergencyrecoverdata' + ('01' * 827)) backup_l4 = update_example(node=l4, method='staticbackup', params={}) # Recover channels @@ -1082,14 +1795,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']}, response=recoverchannel_res1) + 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={}, response=emergencyrecover_res2) # Recover def get_hsm_secret(n): @@ -1102,29 +1826,223 @@ def get_hsm_secret(n): return codex32, hexhsm except Exception as e: logger.error(f'Error in getting hsm secret: {e}') + raise _, l6hex = get_hsm_secret(l6) 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 except Exception as e: logger.error(f'Error in generating backup and recovery examples: {e}') + raise + + +def generate_list_examples(l1, l2, l3, c12, c23_2, inv_l31, inv_l32, offer_l23, inv_req_l1_l22, address_l22): + """Generates lists rpc examples""" + try: + logger.info('Lists Start...') + # 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={}, response=listfunds_res1) + + 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'}, response=listforwards_res1) + 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={}, response=listforwards_res2) + + 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'}, response=listinvoices_res1) + 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={}, response=listinvoices_res2) + + listhtlcs_res1 = l1.rpc.listhtlcs(c12) + listhtlcs_res1 = update_list_responses(listhtlcs_res1, list_key='htlcs') + update_example(node=l1, method='listhtlcs', params=[c12], response=listhtlcs_res1) + listhtlcs_res2 = l1.rpc.listhtlcs() + listhtlcs_res2 = update_list_responses(listhtlcs_res2, list_key='htlcs') + update_example(node=l1, method='listhtlcs', params={}, response=listhtlcs_res2) + + 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']}, response=listsendpays_res1) + 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={}, response=listsendpays_res2) + + 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']}, response=listpays_res1) + listpays_res2 = l2.rpc.listpays() + listpays_res2 = update_list_responses(listpays_res2, list_key='pays') + update_example(node=l2, method='listpays', params={}, response=listpays_res2) + + 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={}, response=listtransactions_res1) + listclosedchannels_res1 = l2.rpc.listclosedchannels() + listclosedchannels_res1 = update_list_responses(listclosedchannels_res1, list_key='closedchannels') + update_example(node=l2, method='listclosedchannels', params={}, response=listclosedchannels_res1) + + 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={}, response=listconfigs_res3) + + 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']}, response=listpeerchannels_res1) + 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={}, response=listpeerchannels_res2) + + 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}, response=listchannels_res1) + 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={}, response=listchannels_res2) + + 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']}, response=listnodes_res1) + 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={}, response=listnodes_res2) + + 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']}, response=listpeers_res1) + 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={}, response=listpeers_res2) + + 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}, response=listoffers_res1) + 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']], response=listoffers_res2) + + 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={}, response=listinvoicerequests_res2) + update_example(node=l2, method='listaddresses', params=[address_l22['p2tr']]) + update_example(node=l2, method='listaddresses', params={'start': 6, 'limit': 2}) + update_example(node=l2, method='listaddresses', params={}) + 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_int'], 'original_value': listconfigs_res3['configs']['grpc-port']['value_int'], 'new_value': NEW_VALUES_LIST['grpc-port']}, + {'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 Exception as e: + logger.error(f'Error in generating lists examples: {e}') + raise @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""" try: - global ALL_METHOD_NAMES, ALL_RPC_EXAMPLES, REGENERATING_RPCS, RPCS_STATUS + global ALL_RPC_EXAMPLES, REGENERATING_RPCS def list_all_examples(): """list all methods used in 'update_example' calls to ensure that all methods are covered""" try: global REGENERATING_RPCS - methods = {} + methods = [] file_path = os.path.abspath(__file__) # Parse and traverse this file's content to list all methods & file names @@ -1134,80 +2052,55 @@ def list_all_examples(): for node in ast.walk(tree): if isinstance(node, ast.Call) and isinstance(node.func, ast.Name) and node.func.id == 'update_example': for keyword in node.keywords: - if (keyword.arg == 'method' and isinstance(keyword.value, ast.Str)) or (keyword.arg == 'filename' and isinstance(keyword.value, ast.Str)): - method_name = keyword.value.s - if method_name not in methods: - methods[method_name] = {'method': method_name, 'num_examples': 1, 'executed': 0} - else: - methods[method_name]['num_examples'] += 1 - return list(methods.values()) + if (keyword.arg == 'method' and isinstance(keyword.value, ast.Str)): + if keyword.value.s not in methods: + methods.append(keyword.value.s) + return methods except Exception as e: logger.error(f'Error in listing all examples: {e}') + raise 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 + global ALL_RPC_EXAMPLES + missing_examples = '' for file_name in os.listdir('doc/schemas'): if not file_name.endswith('.json'): 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_RPC_EXAMPLES and file_name_str not in IGNORE_RPCS_LIST: + missing_examples = missing_examples + f"'{file_name_str}', " + if missing_examples != '': + raise MissingExampleError(f"Missing {missing_examples.count(', ')} Examples For: [{missing_examples.rstrip(', ')}]") + except MissingExampleError: + raise 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 + raise 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}') - RPCS_STATUS = [False] * len(REGENERATING_RPCS) + logger.info(f'This test can reproduce examples for {len(ALL_RPC_EXAMPLES)} methods: {ALL_RPC_EXAMPLES}') + logger.warning(f'This test ignores {len(IGNORE_RPCS_LIST)} rpc methods: {IGNORE_RPCS_LIST}') + REGENERATING_RPCS = [rpc.strip() for rpc in os.getenv("REGENERATE").split(', ')] if os.getenv("REGENERATE") else ALL_RPC_EXAMPLES 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) 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']) + offer_l23, inv_req_l1_l22 = generate_offers_renepay_examples(l1, l2, inv_l21, inv_l34) + generate_askrene_examples(l1, l2, l3, c12, c23_2) 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) + address_l22 = 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) - logger.info('All examples generated successfully!') - except TaskFinished as m: - logger.info(m) + generate_list_examples(l1, l2, l3, c12, c23_2, inv_l31, inv_l32, offer_l23, inv_req_l1_l22, address_l22) + update_examples_in_schema_files() + logger.info('All Done!!!') 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) + sys.exit(1)