2019-08-31 14:30:56 +02:00
lightning-listforwards -- Command showing all htlcs and their information
=========================================================================
2019-08-10 01:54:18 +02:00
SYNOPSIS
--------
2022-11-10 20:44:56 -05:00
**listforwards** [*status*] [*in\_channel*] [*out\_channel*]
2019-08-10 01:54:18 +02:00
DESCRIPTION
-----------
The **listforwards** RPC command displays all htlcs that have been
2022-04-06 14:39:48 +09:30
attempted to be forwarded by the Core Lightning node.
2019-08-10 01:54:18 +02:00
2021-01-26 09:27:42 +01:00
If *status* is specified, then only the forwards with the given status are returned.
2022-11-10 20:44:56 -05:00
*status* can be either *offered* or *settled* or *failed* or *local\_failed*
2021-01-26 09:27:42 +01:00
2022-11-10 20:44:56 -05:00
If *in\_channel* or *out\_channel* is specified, then only the matching forwards
2021-01-26 09:27:42 +01:00
on the given in/out channel are returned.
2019-08-10 01:54:18 +02:00
RETURN VALUE
------------
2021-06-16 10:35:17 +09:30
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object containing **forwards** is returned. It is an array of objects, where each object contains:
2022-09-06 07:03:09 +09:30
2022-09-08 10:38:00 +09:30
- **in\_channel** (short\_channel\_id): the channel that received the HTLC
2022-09-06 07:15:06 +09:30
- **in\_msat** (msat): the value of the incoming HTLC
2022-11-10 21:03:13 -05:00
- **status** (string): still ongoing, completed, failed locally, or failed after forwarding (one of "offered", "settled", "local\_failed", "failed")
2022-09-06 07:15:06 +09:30
- **received\_time** (number): the UNIX timestamp when this was received
2022-09-27 09:13:35 +09:30
- **in\_htlc\_id** (u64, optional): the unique HTLC id the sender gave this (not present if incoming channel was closed before ugprade to v22.11)
2022-09-08 10:38:00 +09:30
- **out\_channel** (short\_channel\_id, optional): the channel that the HTLC (trying to) forward to
2022-11-10 21:03:13 -05:00
- **out\_htlc\_id** (u64, optional): the unique HTLC id we gave this when sending (may be missing even if out\_channel is present, for old forwards before v22.11)
2022-03-31 13:44:27 +10:30
- **style** (string, optional): Either a legacy onion format or a modern tlv format (one of "legacy", "tlv")
2021-06-16 10:35:17 +09:30
2022-09-06 07:15:06 +09:30
If **out\_msat** is present:
2022-09-06 07:03:09 +09:30
2022-09-06 07:15:06 +09:30
- **fee\_msat** (msat): the amount this paid in fees
2022-11-10 21:03:13 -05:00
- **out\_msat** (msat): the amount we sent out the *out\_channel*
2021-06-16 10:35:17 +09:30
If **status** is "settled" or "failed":
2022-09-06 07:03:09 +09:30
2022-09-06 07:15:06 +09:30
- **resolved\_time** (number): the UNIX timestamp when this was resolved
2021-06-16 10:35:17 +09:30
2022-11-10 21:03:13 -05:00
If **status** is "local\_failed" or "failed":
2022-09-06 07:03:09 +09:30
2021-06-16 10:35:17 +09:30
- **failcode** (u32, optional): the numeric onion code returned
- **failreason** (string, optional): the name of the onion code returned
2021-09-03 19:37:59 +09:30
2021-06-16 10:35:17 +09:30
[comment]: # (GENERATE-FROM-SCHEMA-END)
2019-08-10 01:54:18 +02:00
AUTHOR
------
Rene Pickhardt < < r.pickhardt @gmail .com > > is mainly responsible.
SEE ALSO
--------
2022-09-19 10:23:00 +09:30
lightning-autoclean-status(7), lightning-getinfo(7)
2019-08-10 01:54:18 +02:00
RESOURCES
---------
Main web site: < https: / / github . com / ElementsProject / lightning >
2020-08-25 11:03:16 +09:30
2023-01-30 16:54:18 +10:30
[comment]: # ( SHA256STAMP:fb6b59740d52aee780678850445bdd58803b33c1df02c5794473ee87c23da35b)