'\" t
. \" Title: lightning-listforwards
. \" Author: [see the "AUTHOR" section]
. \" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
. \" Date: 08/15/2019
. \" Manual: \ \&
. \" Source: \ \&
. \" Language: English
. \"
.TH "LIGHTNING\-LISTFORWA" "7" "08/15/2019" "\ \&" "\ \&"
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
lightning-listforwards \- Command showing all htlcs and their information\& .
.SH "SYNOPSIS"
.sp
\fB listforwards\fR
.SH "DESCRIPTION"
.sp
The \fB listforwards\fR RPC command displays all htlcs that have been attempted to be forwarded by the c\- lightning node\& .
.SH "RETURN VALUE"
.sp
On success one array will be returned: \fI forwards\fR with htlcs that have been processed
.sp
Each entry in \fI forwards\fR will include:
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fI in_channel\fR
\- the short_channel_id of the channel that recieved the incoming htlc\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fI in_msatoshi\fR ,
\fI in_msat\fR
\- amount of msatoshis that are forwarded to this node\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fI status\fR
\- status can be either
\fI offered\fR
if the routing process is still ongoing,
\fI settled\fR
if the routing process is completed,
\fI failed\fR
if the routing process could not be completed, or
\fI local_failed\fR
if the node failed the forward itself\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fI received_time\fR
\- timestamp when incoming htlc was received\& .
.RE
.sp
The following additional fields are usually present, but will not be for some variants of status \fI local_failed\fR (if it failed before we determined these):
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fI fee\fR ,
\fI fee_msat\fR
\- fee offered for forwarding the htlc in msatoshi\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fI out_channel\fR
\- the short_channel_id of to which the outgoing htlc is supposed to be forwarded\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fI out_msatoshi\fR ,
\fI out_msat\fR
\- amount of msatoshis to be forwarded\& .
.RE
.sp
The following fields may be offered, but for old forgotten HTLCs they will be omitted:
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fI payment_hash\fR
\- the payment_hash belonging to the HTLC\& .
.RE
.sp
If the status is not \fI offered\fR , the following additional fields are present:
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fI resolved_time\fR
\- timestamp when htlc was resolved (settled or failed)\& .
.RE
.SH "AUTHOR"
.sp
Rene Pickhardt <r\& .pickhardt@gmail\& .com> is mainly responsible\& .
.SH "SEE ALSO"
.sp
lightning\- getinfo(7)
.SH "RESOURCES"
.sp
Main web site: https://github\& .com/ElementsProject/lightning