autogenerate-rpc-examples.py: add examples for listchainmoves and listchannelmoves.
What changed, and why it matters
This commit only adds documentation examples for two existing RPC commands, listchainmoves and listchannelmoves. It does not change any runtime code, security logic, or behavior of the Core Lightning node. There is no security issue here.
No security action needed. This is a documentation/test-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch extends tests/autogenerate-rpc-examples.py with a new helper generate_coinmvt_examples() that calls listchainmoves and listchannelmoves against a test node and records the responses. The resulting example JSON is then embedded into doc/schemas/listchainmoves.json, doc/schemas/listchannelmoves.json, and the bundled contrib/msggen/msggen/schema.json. No C/Python source code that runs in production is modified, and no RPC behavior changes.
Changed components
tests/autogenerate-rpc-examples.pydoc/schemas/listchainmoves.jsondoc/schemas/listchannelmoves.jsoncontrib/msggen/msggen/schema.jsonInspect captured patch +1192 / −0
diff --git a/contrib/msggen/msggen/schema.json b/contrib/msggen/msggen/schema.json
index a0f42b9c..dadbb6ff 100644
--- a/contrib/msggen/msggen/schema.json
+++ b/contrib/msggen/msggen/schema.json
@@ -16812,6 +16812,359 @@
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
+ ],
+ "examples": [
+ {
+ "request": {
+ "id": "example:listchainmoves#1",
+ "method": "listchainmoves",
+ "params": {}
+ },
+ "response": {
+ "chainmoves": [
+ {
+ "created_index": 1,
+ "account_id": "wallet",
+ "credit_msat": 200000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192762,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "994185cba7723715c0aa1d1859ce2781116776cea917035c90f8f04c9f4e095e:1",
+ "output_msat": 200000000000,
+ "blockheight": 104
+ },
+ {
+ "created_index": 2,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 0,
+ "debit_msat": 0,
+ "timestamp": 1758192777,
+ "primary_tag": "channel_open",
+ "extra_tags": [],
+ "utxo": "542906c8a9d90596592459a9484f4286a3200f6540599c83b43af2ac4166c6ca:1",
+ "peer_id": "nodeid010101010101010101010101010101010101010101010101010101010101",
+ "output_msat": 1000000000,
+ "blockheight": 109
+ },
+ {
+ "created_index": 3,
+ "account_id": "wallet",
+ "credit_msat": 2000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192780,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "19e9e42f2f2097ea1dc18d7eb670bc53c90cbe31bb1daba8e94abf3c6b60d2dc:1",
+ "output_msat": 2000000000,
+ "blockheight": 110
+ },
+ {
+ "created_index": 4,
+ "account_id": "wallet",
+ "credit_msat": 0,
+ "debit_msat": 200000000000,
+ "timestamp": 1738530000,
+ "primary_tag": "withdrawal",
+ "extra_tags": [],
+ "utxo": "994185cba7723715c0aa1d1859ce2781116776cea917035c90f8f04c9f4e095e:1",
+ "spending_txid": "94418b652c9a0d79129552d317dcc37cb55afda1387257a22c7f16aa3981b7bc",
+ "output_msat": 200000000000,
+ "blockheight": 111
+ },
+ {
+ "created_index": 5,
+ "account_id": "wallet",
+ "credit_msat": 198995073000,
+ "debit_msat": 0,
+ "timestamp": 1738530000,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "94418b652c9a0d79129552d317dcc37cb55afda1387257a22c7f16aa3981b7bc:1",
+ "output_msat": 198995073000,
+ "blockheight": 111
+ },
+ {
+ "created_index": 6,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 1000000000,
+ "debit_msat": 0,
+ "timestamp": 1738530000,
+ "primary_tag": "channel_open",
+ "extra_tags": [
+ "opener"
+ ],
+ "utxo": "94418b652c9a0d79129552d317dcc37cb55afda1387257a22c7f16aa3981b7bc:0",
+ "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303",
+ "output_msat": 1000000000,
+ "blockheight": 111
+ },
+ {
+ "created_index": 7,
+ "account_id": "wallet",
+ "credit_msat": 2000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192792,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "b6d0090efbeb347fa59f90b321d6906cdf86779c15477582979fa427249f71f5:1",
+ "output_msat": 2000000000,
+ "blockheight": 114
+ },
+ {
+ "created_index": 8,
+ "account_id": "wallet",
+ "credit_msat": 0,
+ "debit_msat": 198995073000,
+ "timestamp": 1758192795,
+ "primary_tag": "withdrawal",
+ "extra_tags": [],
+ "utxo": "94418b652c9a0d79129552d317dcc37cb55afda1387257a22c7f16aa3981b7bc:1",
+ "spending_txid": "32de3d1592062670eb8630875a28705cc1988b7f83f8c712bf9d39be2152efec",
+ "output_msat": 198995073000,
+ "blockheight": 115
+ },
+ {
+ "created_index": 9,
+ "account_id": "wallet",
+ "credit_msat": 197990453000,
+ "debit_msat": 0,
+ "timestamp": 1758192795,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "32de3d1592062670eb8630875a28705cc1988b7f83f8c712bf9d39be2152efec:0",
+ "output_msat": 197990453000,
+ "blockheight": 115
+ },
+ {
+ "created_index": 10,
+ "account_id": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f",
+ "credit_msat": 1000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192795,
+ "primary_tag": "channel_open",
+ "extra_tags": [
+ "opener"
+ ],
+ "utxo": "32de3d1592062670eb8630875a28705cc1988b7f83f8c712bf9d39be2152efec:1",
+ "peer_id": "nodeid050505050505050505050505050505050505050505050505050505050505",
+ "output_msat": 1000000000,
+ "blockheight": 115
+ },
+ {
+ "created_index": 11,
+ "account_id": "wallet",
+ "credit_msat": 486914000,
+ "debit_msat": 0,
+ "timestamp": 1738520000,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "874b26d4c523a902fdc44b88ec000eb5c3fe8754c9d44190a140561e24e77781:0",
+ "output_msat": 486914000,
+ "blockheight": 121
+ },
+ {
+ "created_index": 12,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 489809898,
+ "timestamp": 1738520000,
+ "primary_tag": "channel_close",
+ "extra_tags": [],
+ "utxo": "94418b652c9a0d79129552d317dcc37cb55afda1387257a22c7f16aa3981b7bc:0",
+ "spending_txid": "txid010101010101010101010101010101010101010101010101010101010101",
+ "output_msat": 1000000000,
+ "output_count": 2,
+ "blockheight": 121
+ },
+ {
+ "created_index": 13,
+ "account_id": "external",
+ "credit_msat": 510190000,
+ "debit_msat": 0,
+ "timestamp": 1738520000,
+ "primary_tag": "to_them",
+ "extra_tags": [],
+ "utxo": "874b26d4c523a902fdc44b88ec000eb5c3fe8754c9d44190a140561e24e77781:1",
+ "originating_account": "channelid0230000230000230000230000230000230000230000230000230000",
+ "output_msat": 510190000,
+ "blockheight": 121
+ },
+ {
+ "created_index": 14,
+ "account_id": "wallet",
+ "credit_msat": 2000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192808,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "c9c9bec064382b6a6fb2a30d8923949b3c9f732465542b96e9ad1b5eebda4c7d:0",
+ "output_msat": 2000000000,
+ "blockheight": 122
+ },
+ {
+ "created_index": 15,
+ "account_id": "wallet",
+ "credit_msat": 0,
+ "debit_msat": 197990453000,
+ "timestamp": 1738500000,
+ "primary_tag": "withdrawal",
+ "extra_tags": [],
+ "utxo": "32de3d1592062670eb8630875a28705cc1988b7f83f8c712bf9d39be2152efec:0",
+ "spending_txid": "0137213d852e76d48f0270a78218d2f562ac0a8974f814cab66376537cfd1682",
+ "output_msat": 197990453000,
+ "blockheight": 123
+ },
+ {
+ "created_index": 16,
+ "account_id": "wallet",
+ "credit_msat": 196985833000,
+ "debit_msat": 0,
+ "timestamp": 1738500000,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "0137213d852e76d48f0270a78218d2f562ac0a8974f814cab66376537cfd1682:1",
+ "output_msat": 196985833000,
+ "blockheight": 123
+ },
+ {
+ "created_index": 17,
+ "account_id": "channelid0230200230200230200230200230200230200230200230200230200",
+ "credit_msat": 1000000000,
+ "debit_msat": 0,
+ "timestamp": 1738500000,
+ "primary_tag": "channel_open",
+ "extra_tags": [
+ "opener"
+ ],
+ "utxo": "0137213d852e76d48f0270a78218d2f562ac0a8974f814cab66376537cfd1682:0",
+ "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303",
+ "output_msat": 1000000000,
+ "blockheight": 123
+ }
+ ]
+ }
+ },
+ {
+ "request": {
+ "id": "example:listchainmoves#2",
+ "method": "listchainmoves",
+ "params": {
+ "index": "created",
+ "start": 10
+ }
+ },
+ "response": {
+ "chainmoves": [
+ {
+ "created_index": 10,
+ "account_id": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f",
+ "credit_msat": 1000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192795,
+ "primary_tag": "channel_open",
+ "extra_tags": [
+ "opener"
+ ],
+ "utxo": "32de3d1592062670eb8630875a28705cc1988b7f83f8c712bf9d39be2152efec:1",
+ "peer_id": "nodeid050505050505050505050505050505050505050505050505050505050505",
+ "output_msat": 1000000000,
+ "blockheight": 115
+ },
+ {
+ "created_index": 11,
+ "account_id": "wallet",
+ "credit_msat": 486914000,
+ "debit_msat": 0,
+ "timestamp": 1738520000,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "874b26d4c523a902fdc44b88ec000eb5c3fe8754c9d44190a140561e24e77781:0",
+ "output_msat": 486914000,
+ "blockheight": 121
+ },
+ {
+ "created_index": 12,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 489809898,
+ "timestamp": 1738520000,
+ "primary_tag": "channel_close",
+ "extra_tags": [],
+ "utxo": "94418b652c9a0d79129552d317dcc37cb55afda1387257a22c7f16aa3981b7bc:0",
+ "spending_txid": "txid010101010101010101010101010101010101010101010101010101010101",
+ "output_msat": 1000000000,
+ "output_count": 2,
+ "blockheight": 121
+ },
+ {
+ "created_index": 13,
+ "account_id": "external",
+ "credit_msat": 510190000,
+ "debit_msat": 0,
+ "timestamp": 1738520000,
+ "primary_tag": "to_them",
+ "extra_tags": [],
+ "utxo": "874b26d4c523a902fdc44b88ec000eb5c3fe8754c9d44190a140561e24e77781:1",
+ "originating_account": "channelid0230000230000230000230000230000230000230000230000230000",
+ "output_msat": 510190000,
+ "blockheight": 121
+ },
+ {
+ "created_index": 14,
+ "account_id": "wallet",
+ "credit_msat": 2000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192808,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "c9c9bec064382b6a6fb2a30d8923949b3c9f732465542b96e9ad1b5eebda4c7d:0",
+ "output_msat": 2000000000,
+ "blockheight": 122
+ },
+ {
+ "created_index": 15,
+ "account_id": "wallet",
+ "credit_msat": 0,
+ "debit_msat": 197990453000,
+ "timestamp": 1738500000,
+ "primary_tag": "withdrawal",
+ "extra_tags": [],
+ "utxo": "32de3d1592062670eb8630875a28705cc1988b7f83f8c712bf9d39be2152efec:0",
+ "spending_txid": "0137213d852e76d48f0270a78218d2f562ac0a8974f814cab66376537cfd1682",
+ "output_msat": 197990453000,
+ "blockheight": 123
+ },
+ {
+ "created_index": 16,
+ "account_id": "wallet",
+ "credit_msat": 196985833000,
+ "debit_msat": 0,
+ "timestamp": 1738500000,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "0137213d852e76d48f0270a78218d2f562ac0a8974f814cab66376537cfd1682:1",
+ "output_msat": 196985833000,
+ "blockheight": 123
+ },
+ {
+ "created_index": 17,
+ "account_id": "channelid0230200230200230200230200230200230200230200230200230200",
+ "credit_msat": 1000000000,
+ "debit_msat": 0,
+ "timestamp": 1738500000,
+ "primary_tag": "channel_open",
+ "extra_tags": [
+ "opener"
+ ],
+ "utxo": "0137213d852e76d48f0270a78218d2f562ac0a8974f814cab66376537cfd1682:0",
+ "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303",
+ "output_msat": 1000000000,
+ "blockheight": 123
+ }
+ ]
+ }
+ }
]
},
"listchannelmoves.json": {
@@ -16961,6 +17314,242 @@
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
+ ],
+ "examples": [
+ {
+ "request": {
+ "id": "example:listchannelmoves#1",
+ "method": "listchannelmoves",
+ "params": {}
+ },
+ "response": {
+ "channelmoves": [
+ {
+ "created_index": 1,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 500000000,
+ "debit_msat": 0,
+ "timestamp": 1738520000,
+ "primary_tag": "invoice",
+ "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101",
+ "fees_msat": 0
+ },
+ {
+ "created_index": 2,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 500000000,
+ "timestamp": 1738520000,
+ "primary_tag": "invoice",
+ "payment_hash": "8a46ab91013146df39e98ad7c89505fbb5419f110e928f7a393e8304f3057df7",
+ "part_id": 0,
+ "group_id": 1,
+ "fees_msat": 0
+ },
+ {
+ "created_index": 3,
+ "account_id": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f",
+ "credit_msat": 0,
+ "debit_msat": 500000000,
+ "timestamp": 1758192801,
+ "primary_tag": "invoice",
+ "payment_hash": "88969daaf02214a1928e6eb62a237a8ee557f3da93b2c44f3901432c88f4334b",
+ "part_id": 0,
+ "group_id": 1,
+ "fees_msat": 0
+ },
+ {
+ "created_index": 4,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 10000,
+ "timestamp": 1758192801,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 5,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 10001,
+ "debit_msat": 0,
+ "timestamp": 1758192801,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 6,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 10000,
+ "timestamp": 1758192801,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 7,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 10001,
+ "debit_msat": 0,
+ "timestamp": 1758192801,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 8,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 10000101,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201",
+ "fees_msat": 101
+ },
+ {
+ "created_index": 9,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 10000202,
+ "debit_msat": 0,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201",
+ "fees_msat": 101
+ },
+ {
+ "created_index": 10,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 10000,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 11,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 10001,
+ "debit_msat": 0,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 12,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 50000,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashinvl0320032003200320032003200320032003200320032003200",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 13,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 50001,
+ "debit_msat": 0,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashinvl0320032003200320032003200320032003200320032003200",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 14,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 100000,
+ "timestamp": 1758192803,
+ "primary_tag": "invoice",
+ "payment_hash": "paymenthashinvl0330033003300330033003300330033003300330033003300",
+ "part_id": 0,
+ "group_id": 1,
+ "fees_msat": 0
+ },
+ {
+ "created_index": 15,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 10001,
+ "timestamp": 1758192803,
+ "primary_tag": "routed",
+ "payment_hash": "61b929204f4db4f38e0412b2bd4c3c03668dad3575fb05f4e15a2214046c2bff",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 16,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 10002,
+ "debit_msat": 0,
+ "timestamp": 1758192803,
+ "primary_tag": "routed",
+ "payment_hash": "61b929204f4db4f38e0412b2bd4c3c03668dad3575fb05f4e15a2214046c2bff",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 17,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 0,
+ "debit_msat": 1000000,
+ "timestamp": 1758192821,
+ "primary_tag": "invoice",
+ "payment_hash": "paymenthashsdinvsi10si10si10si10si10si10si10si10si10si10si10si10",
+ "part_id": 0,
+ "group_id": 1,
+ "fees_msat": 0
+ },
+ {
+ "created_index": 18,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 1000,
+ "debit_msat": 0,
+ "timestamp": 1758192821,
+ "primary_tag": "invoice",
+ "payment_hash": "paymenthashinvl0270027002700270027002700270027002700270027002700",
+ "fees_msat": 0
+ }
+ ]
+ }
+ },
+ {
+ "request": {
+ "id": "example:listchannelmoves#2",
+ "method": "listchannelmoves",
+ "params": {
+ "index": "created",
+ "start": 10,
+ "limit": 2
+ }
+ },
+ "response": {
+ "channelmoves": [
+ {
+ "created_index": 10,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 10000,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 11,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 10001,
+ "debit_msat": 0,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301",
+ "fees_msat": 1
+ }
+ ]
+ }
+ }
]
},
"listchannels.json": {
diff --git a/doc/schemas/listchainmoves.json b/doc/schemas/listchainmoves.json
index 985105e9..eeec3e6b 100644
--- a/doc/schemas/listchainmoves.json
+++ b/doc/schemas/listchainmoves.json
@@ -197,5 +197,358 @@
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
+ ],
+ "examples": [
+ {
+ "request": {
+ "id": "example:listchainmoves#1",
+ "method": "listchainmoves",
+ "params": {}
+ },
+ "response": {
+ "chainmoves": [
+ {
+ "created_index": 1,
+ "account_id": "wallet",
+ "credit_msat": 200000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192762,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "994185cba7723715c0aa1d1859ce2781116776cea917035c90f8f04c9f4e095e:1",
+ "output_msat": 200000000000,
+ "blockheight": 104
+ },
+ {
+ "created_index": 2,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 0,
+ "debit_msat": 0,
+ "timestamp": 1758192777,
+ "primary_tag": "channel_open",
+ "extra_tags": [],
+ "utxo": "542906c8a9d90596592459a9484f4286a3200f6540599c83b43af2ac4166c6ca:1",
+ "peer_id": "nodeid010101010101010101010101010101010101010101010101010101010101",
+ "output_msat": 1000000000,
+ "blockheight": 109
+ },
+ {
+ "created_index": 3,
+ "account_id": "wallet",
+ "credit_msat": 2000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192780,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "19e9e42f2f2097ea1dc18d7eb670bc53c90cbe31bb1daba8e94abf3c6b60d2dc:1",
+ "output_msat": 2000000000,
+ "blockheight": 110
+ },
+ {
+ "created_index": 4,
+ "account_id": "wallet",
+ "credit_msat": 0,
+ "debit_msat": 200000000000,
+ "timestamp": 1738530000,
+ "primary_tag": "withdrawal",
+ "extra_tags": [],
+ "utxo": "994185cba7723715c0aa1d1859ce2781116776cea917035c90f8f04c9f4e095e:1",
+ "spending_txid": "94418b652c9a0d79129552d317dcc37cb55afda1387257a22c7f16aa3981b7bc",
+ "output_msat": 200000000000,
+ "blockheight": 111
+ },
+ {
+ "created_index": 5,
+ "account_id": "wallet",
+ "credit_msat": 198995073000,
+ "debit_msat": 0,
+ "timestamp": 1738530000,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "94418b652c9a0d79129552d317dcc37cb55afda1387257a22c7f16aa3981b7bc:1",
+ "output_msat": 198995073000,
+ "blockheight": 111
+ },
+ {
+ "created_index": 6,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 1000000000,
+ "debit_msat": 0,
+ "timestamp": 1738530000,
+ "primary_tag": "channel_open",
+ "extra_tags": [
+ "opener"
+ ],
+ "utxo": "94418b652c9a0d79129552d317dcc37cb55afda1387257a22c7f16aa3981b7bc:0",
+ "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303",
+ "output_msat": 1000000000,
+ "blockheight": 111
+ },
+ {
+ "created_index": 7,
+ "account_id": "wallet",
+ "credit_msat": 2000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192792,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "b6d0090efbeb347fa59f90b321d6906cdf86779c15477582979fa427249f71f5:1",
+ "output_msat": 2000000000,
+ "blockheight": 114
+ },
+ {
+ "created_index": 8,
+ "account_id": "wallet",
+ "credit_msat": 0,
+ "debit_msat": 198995073000,
+ "timestamp": 1758192795,
+ "primary_tag": "withdrawal",
+ "extra_tags": [],
+ "utxo": "94418b652c9a0d79129552d317dcc37cb55afda1387257a22c7f16aa3981b7bc:1",
+ "spending_txid": "32de3d1592062670eb8630875a28705cc1988b7f83f8c712bf9d39be2152efec",
+ "output_msat": 198995073000,
+ "blockheight": 115
+ },
+ {
+ "created_index": 9,
+ "account_id": "wallet",
+ "credit_msat": 197990453000,
+ "debit_msat": 0,
+ "timestamp": 1758192795,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "32de3d1592062670eb8630875a28705cc1988b7f83f8c712bf9d39be2152efec:0",
+ "output_msat": 197990453000,
+ "blockheight": 115
+ },
+ {
+ "created_index": 10,
+ "account_id": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f",
+ "credit_msat": 1000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192795,
+ "primary_tag": "channel_open",
+ "extra_tags": [
+ "opener"
+ ],
+ "utxo": "32de3d1592062670eb8630875a28705cc1988b7f83f8c712bf9d39be2152efec:1",
+ "peer_id": "nodeid050505050505050505050505050505050505050505050505050505050505",
+ "output_msat": 1000000000,
+ "blockheight": 115
+ },
+ {
+ "created_index": 11,
+ "account_id": "wallet",
+ "credit_msat": 486914000,
+ "debit_msat": 0,
+ "timestamp": 1738520000,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "874b26d4c523a902fdc44b88ec000eb5c3fe8754c9d44190a140561e24e77781:0",
+ "output_msat": 486914000,
+ "blockheight": 121
+ },
+ {
+ "created_index": 12,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 489809898,
+ "timestamp": 1738520000,
+ "primary_tag": "channel_close",
+ "extra_tags": [],
+ "utxo": "94418b652c9a0d79129552d317dcc37cb55afda1387257a22c7f16aa3981b7bc:0",
+ "spending_txid": "txid010101010101010101010101010101010101010101010101010101010101",
+ "output_msat": 1000000000,
+ "output_count": 2,
+ "blockheight": 121
+ },
+ {
+ "created_index": 13,
+ "account_id": "external",
+ "credit_msat": 510190000,
+ "debit_msat": 0,
+ "timestamp": 1738520000,
+ "primary_tag": "to_them",
+ "extra_tags": [],
+ "utxo": "874b26d4c523a902fdc44b88ec000eb5c3fe8754c9d44190a140561e24e77781:1",
+ "originating_account": "channelid0230000230000230000230000230000230000230000230000230000",
+ "output_msat": 510190000,
+ "blockheight": 121
+ },
+ {
+ "created_index": 14,
+ "account_id": "wallet",
+ "credit_msat": 2000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192808,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "c9c9bec064382b6a6fb2a30d8923949b3c9f732465542b96e9ad1b5eebda4c7d:0",
+ "output_msat": 2000000000,
+ "blockheight": 122
+ },
+ {
+ "created_index": 15,
+ "account_id": "wallet",
+ "credit_msat": 0,
+ "debit_msat": 197990453000,
+ "timestamp": 1738500000,
+ "primary_tag": "withdrawal",
+ "extra_tags": [],
+ "utxo": "32de3d1592062670eb8630875a28705cc1988b7f83f8c712bf9d39be2152efec:0",
+ "spending_txid": "0137213d852e76d48f0270a78218d2f562ac0a8974f814cab66376537cfd1682",
+ "output_msat": 197990453000,
+ "blockheight": 123
+ },
+ {
+ "created_index": 16,
+ "account_id": "wallet",
+ "credit_msat": 196985833000,
+ "debit_msat": 0,
+ "timestamp": 1738500000,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "0137213d852e76d48f0270a78218d2f562ac0a8974f814cab66376537cfd1682:1",
+ "output_msat": 196985833000,
+ "blockheight": 123
+ },
+ {
+ "created_index": 17,
+ "account_id": "channelid0230200230200230200230200230200230200230200230200230200",
+ "credit_msat": 1000000000,
+ "debit_msat": 0,
+ "timestamp": 1738500000,
+ "primary_tag": "channel_open",
+ "extra_tags": [
+ "opener"
+ ],
+ "utxo": "0137213d852e76d48f0270a78218d2f562ac0a8974f814cab66376537cfd1682:0",
+ "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303",
+ "output_msat": 1000000000,
+ "blockheight": 123
+ }
+ ]
+ }
+ },
+ {
+ "request": {
+ "id": "example:listchainmoves#2",
+ "method": "listchainmoves",
+ "params": {
+ "index": "created",
+ "start": 10
+ }
+ },
+ "response": {
+ "chainmoves": [
+ {
+ "created_index": 10,
+ "account_id": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f",
+ "credit_msat": 1000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192795,
+ "primary_tag": "channel_open",
+ "extra_tags": [
+ "opener"
+ ],
+ "utxo": "32de3d1592062670eb8630875a28705cc1988b7f83f8c712bf9d39be2152efec:1",
+ "peer_id": "nodeid050505050505050505050505050505050505050505050505050505050505",
+ "output_msat": 1000000000,
+ "blockheight": 115
+ },
+ {
+ "created_index": 11,
+ "account_id": "wallet",
+ "credit_msat": 486914000,
+ "debit_msat": 0,
+ "timestamp": 1738520000,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "874b26d4c523a902fdc44b88ec000eb5c3fe8754c9d44190a140561e24e77781:0",
+ "output_msat": 486914000,
+ "blockheight": 121
+ },
+ {
+ "created_index": 12,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 489809898,
+ "timestamp": 1738520000,
+ "primary_tag": "channel_close",
+ "extra_tags": [],
+ "utxo": "94418b652c9a0d79129552d317dcc37cb55afda1387257a22c7f16aa3981b7bc:0",
+ "spending_txid": "txid010101010101010101010101010101010101010101010101010101010101",
+ "output_msat": 1000000000,
+ "output_count": 2,
+ "blockheight": 121
+ },
+ {
+ "created_index": 13,
+ "account_id": "external",
+ "credit_msat": 510190000,
+ "debit_msat": 0,
+ "timestamp": 1738520000,
+ "primary_tag": "to_them",
+ "extra_tags": [],
+ "utxo": "874b26d4c523a902fdc44b88ec000eb5c3fe8754c9d44190a140561e24e77781:1",
+ "originating_account": "channelid0230000230000230000230000230000230000230000230000230000",
+ "output_msat": 510190000,
+ "blockheight": 121
+ },
+ {
+ "created_index": 14,
+ "account_id": "wallet",
+ "credit_msat": 2000000000,
+ "debit_msat": 0,
+ "timestamp": 1758192808,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "c9c9bec064382b6a6fb2a30d8923949b3c9f732465542b96e9ad1b5eebda4c7d:0",
+ "output_msat": 2000000000,
+ "blockheight": 122
+ },
+ {
+ "created_index": 15,
+ "account_id": "wallet",
+ "credit_msat": 0,
+ "debit_msat": 197990453000,
+ "timestamp": 1738500000,
+ "primary_tag": "withdrawal",
+ "extra_tags": [],
+ "utxo": "32de3d1592062670eb8630875a28705cc1988b7f83f8c712bf9d39be2152efec:0",
+ "spending_txid": "0137213d852e76d48f0270a78218d2f562ac0a8974f814cab66376537cfd1682",
+ "output_msat": 197990453000,
+ "blockheight": 123
+ },
+ {
+ "created_index": 16,
+ "account_id": "wallet",
+ "credit_msat": 196985833000,
+ "debit_msat": 0,
+ "timestamp": 1738500000,
+ "primary_tag": "deposit",
+ "extra_tags": [],
+ "utxo": "0137213d852e76d48f0270a78218d2f562ac0a8974f814cab66376537cfd1682:1",
+ "output_msat": 196985833000,
+ "blockheight": 123
+ },
+ {
+ "created_index": 17,
+ "account_id": "channelid0230200230200230200230200230200230200230200230200230200",
+ "credit_msat": 1000000000,
+ "debit_msat": 0,
+ "timestamp": 1738500000,
+ "primary_tag": "channel_open",
+ "extra_tags": [
+ "opener"
+ ],
+ "utxo": "0137213d852e76d48f0270a78218d2f562ac0a8974f814cab66376537cfd1682:0",
+ "peer_id": "nodeid030303030303030303030303030303030303030303030303030303030303",
+ "output_msat": 1000000000,
+ "blockheight": 123
+ }
+ ]
+ }
+ }
]
}
diff --git a/doc/schemas/listchannelmoves.json b/doc/schemas/listchannelmoves.json
index d98a72b7..eba0f45a 100644
--- a/doc/schemas/listchannelmoves.json
+++ b/doc/schemas/listchannelmoves.json
@@ -145,5 +145,241 @@
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
+ ],
+ "examples": [
+ {
+ "request": {
+ "id": "example:listchannelmoves#1",
+ "method": "listchannelmoves",
+ "params": {}
+ },
+ "response": {
+ "channelmoves": [
+ {
+ "created_index": 1,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 500000000,
+ "debit_msat": 0,
+ "timestamp": 1738520000,
+ "primary_tag": "invoice",
+ "payment_hash": "paymenthashdelpay10101010101010101010101010101010101010101010101",
+ "fees_msat": 0
+ },
+ {
+ "created_index": 2,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 500000000,
+ "timestamp": 1738520000,
+ "primary_tag": "invoice",
+ "payment_hash": "8a46ab91013146df39e98ad7c89505fbb5419f110e928f7a393e8304f3057df7",
+ "part_id": 0,
+ "group_id": 1,
+ "fees_msat": 0
+ },
+ {
+ "created_index": 3,
+ "account_id": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f",
+ "credit_msat": 0,
+ "debit_msat": 500000000,
+ "timestamp": 1758192801,
+ "primary_tag": "invoice",
+ "payment_hash": "88969daaf02214a1928e6eb62a237a8ee557f3da93b2c44f3901432c88f4334b",
+ "part_id": 0,
+ "group_id": 1,
+ "fees_msat": 0
+ },
+ {
+ "created_index": 4,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 10000,
+ "timestamp": 1758192801,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 5,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 10001,
+ "debit_msat": 0,
+ "timestamp": 1758192801,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashinvl0310031003100310031003100310031003100310031003100",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 6,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 10000,
+ "timestamp": 1758192801,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 7,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 10001,
+ "debit_msat": 0,
+ "timestamp": 1758192801,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey01k101k101k101k101k101k101k101k101k101k101k101k101",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 8,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 10000101,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201",
+ "fees_msat": 101
+ },
+ {
+ "created_index": 9,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 10000202,
+ "debit_msat": 0,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey02k201k201k201k201k201k201k201k201k201k201k201k201",
+ "fees_msat": 101
+ },
+ {
+ "created_index": 10,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 10000,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 11,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 10001,
+ "debit_msat": 0,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 12,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 50000,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashinvl0320032003200320032003200320032003200320032003200",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 13,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 50001,
+ "debit_msat": 0,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashinvl0320032003200320032003200320032003200320032003200",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 14,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 100000,
+ "timestamp": 1758192803,
+ "primary_tag": "invoice",
+ "payment_hash": "paymenthashinvl0330033003300330033003300330033003300330033003300",
+ "part_id": 0,
+ "group_id": 1,
+ "fees_msat": 0
+ },
+ {
+ "created_index": 15,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 10001,
+ "timestamp": 1758192803,
+ "primary_tag": "routed",
+ "payment_hash": "61b929204f4db4f38e0412b2bd4c3c03668dad3575fb05f4e15a2214046c2bff",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 16,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 10002,
+ "debit_msat": 0,
+ "timestamp": 1758192803,
+ "primary_tag": "routed",
+ "payment_hash": "61b929204f4db4f38e0412b2bd4c3c03668dad3575fb05f4e15a2214046c2bff",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 17,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 0,
+ "debit_msat": 1000000,
+ "timestamp": 1758192821,
+ "primary_tag": "invoice",
+ "payment_hash": "paymenthashsdinvsi10si10si10si10si10si10si10si10si10si10si10si10",
+ "part_id": 0,
+ "group_id": 1,
+ "fees_msat": 0
+ },
+ {
+ "created_index": 18,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 1000,
+ "debit_msat": 0,
+ "timestamp": 1758192821,
+ "primary_tag": "invoice",
+ "payment_hash": "paymenthashinvl0270027002700270027002700270027002700270027002700",
+ "fees_msat": 0
+ }
+ ]
+ }
+ },
+ {
+ "request": {
+ "id": "example:listchannelmoves#2",
+ "method": "listchannelmoves",
+ "params": {
+ "index": "created",
+ "start": 10,
+ "limit": 2
+ }
+ },
+ "response": {
+ "channelmoves": [
+ {
+ "created_index": 10,
+ "account_id": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
+ "credit_msat": 0,
+ "debit_msat": 10000,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301",
+ "fees_msat": 1
+ },
+ {
+ "created_index": 11,
+ "account_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
+ "credit_msat": 10001,
+ "debit_msat": 0,
+ "timestamp": 1758192802,
+ "primary_tag": "routed",
+ "payment_hash": "paymenthashkey03k301k301k301k301k301k301k301k301k301k301k301k301",
+ "fees_msat": 1
+ }
+ ]
+ }
+ }
]
}
diff --git a/tests/autogenerate-rpc-examples.py b/tests/autogenerate-rpc-examples.py
index bfd56428..1036adbd 100644
--- a/tests/autogenerate-rpc-examples.py
+++ b/tests/autogenerate-rpc-examples.py
@@ -972,6 +972,19 @@ def generate_bookkeeper_examples(l2, l3, c23_2_chan_id):
raise
+def generate_coinmvt_examples(l2):
+ """Generates listchannelmoves and listchainmoves rpc examples"""
+ try:
+ logger.info('listcoinmoves Start...')
+ update_example(node=l2, method='listchainmoves', params={})
+ update_example(node=l2, method='listchainmoves', params={'index': 'created', 'start': 10})
+ update_example(node=l2, method='listchannelmoves', params={})
+ update_example(node=l2, method='listchannelmoves', params={'index': 'created', 'start': 10, 'limit': 2})
+ except Exception as e:
+ logger.error(f'Error in generating coinmoves examples: {e}')
+ raise
+
+
def generate_offers_renepay_examples(l1, l2, inv_l21, inv_l34):
"""Covers all offers and renepay related examples"""
try:
@@ -2096,6 +2109,7 @@ def test_generate_examples(node_factory, bitcoind, executor):
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_coinmvt_examples(l2)
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)
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.