Files
palladum-lightning/doc/schemas/listchannelmoves.json
Rusty Russell ebc9a8b28e lightningd: fix name of chainmoves journal entry.
```
lightningd: FATAL SIGNAL 6 (version v25.09rc1-1-ga00ed81)
0x5c9e848ca050 send_backtrace
	common/daemon.c:33
0x5c9e848ca249 crashdump
	common/daemon.c:78
0x7f451664532f ???
	./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7f451669eb2c __pthread_kill_implementation
	./nptl/pthread_kill.c:44
0x7f451669eb2c __pthread_kill_internal
	./nptl/pthread_kill.c:78
0x7f451669eb2c __GI___pthread_kill
	./nptl/pthread_kill.c:89
0x7f451664527d __GI_raise
	../sysdeps/posix/raise.c:26
0x7f45166288fe __GI_abort
	./stdlib/abort.c:79
0x5c9e84893ac3 migrate_from_account_db
	wallet/account_migration.c:500
0x5c9e848943f7 db_migrate
	wallet/db.c:1139
...
#5  0x0000555555615ac4 in migrate_from_account_db (ld=0x555555999238, db=0x55555599b158) at wallet/account_migration.c:500
500				abort();
(gdb) p ev->tag
$1 = 0x555555a4fbb8 "journal_entry"
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-08-21 13:21:17 +09:30

150 lines
4.1 KiB
JSON

{
"$schema": "../rpc-schema-draft.json",
"type": "object",
"rpc": "listchannelmoves",
"title": "Command to get the audit list of all channel coin movements.",
"added": "v25.09",
"description": [
"The **listchannelmoves** command returns the confirmed balance changes within lightning channels over time."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"additionalProperties": false,
"properties": {
"index": {
"type": "string",
"enum": [
"created"
],
"description": [
"How to interpret `start` and `limit`"
]
},
"start": {
"type": "u64",
"description": [
"If `index` is specified, `start` may be specified to start from that value, which is generally returned from lightning-wait(7)."
]
},
"limit": {
"type": "u32",
"description": [
"If `index` is specified, `limit` can be used to specify the maximum number of entries to return."
]
}
},
"dependentUpon": {
"index": [
"start",
"limit"
]
}
},
"response": {
"required": [
"channelmoves"
],
"additionalProperties": false,
"properties": {
"channelmoves": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"created_index",
"account_id",
"primary_tag",
"credit_msat",
"debit_msat",
"timestamp",
"fees_msat"
],
"properties": {
"created_index": {
"type": "u64",
"description": [
"1-based index indicating order this move was created in."
]
},
"account_id": {
"type": "string",
"description": [
"The channel_id corresponding to the channel involved."
]
},
"credit_msat": {
"type": "msat",
"description": [
"Amount credited (one of this or debit_msat is zero)"
]
},
"debit_msat": {
"type": "msat",
"description": [
"Amount debited (one of this or credit_msat is zero)"
]
},
"timestamp": {
"type": "u64",
"description": [
"Time of this event in seconds since January 1 1970 UTC"
]
},
"primary_tag": {
"type": "string",
"enum": [
"invoice",
"routed",
"pushed",
"lease_fee",
"channel_proposed",
"penalty_adj",
"journal_entry"
],
"description": [
"A set of one or more tags defining the nature of the change"
]
},
"payment_hash": {
"type": "hash",
"description": [
"The hash associated with this payment (not present for leases or push funding)"
]
},
"part_id": {
"type": "u64",
"description": [
"The part_id for the payment (the `payment_hash`, `group_id`, `part_id` tuple will be unique)"
]
},
"group_id": {
"type": "u64",
"description": [
"The group_id for the payment (the `payment_hash`, `group_id`, `part_id` tuple will be unique)"
]
},
"fees_msat": {
"type": "msat",
"description": [
"The fees paid for this payment"
]
}
}
}
}
}
},
"errors": [
"On failure, one of the following error codes may be returned:",
"",
"- -32602: Error in given parameters."
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
]
}