lightning-ping - Command to check if a node is up\.
.SHSYNOPSIS
\fBping\fR\fIid\fR [len] [pongbytes]
.SHDESCRIPTION
The \fBping\fR command check if the node with id is ready to talk\. It accept the following parameter:
.RS
.IP\[bu]
\fIid\fR: A string that rappresent the node id;
.IP\[bu]
\fIlen\fR: A integer that rappresent the lenght of {\.\.\.}, by default is 128;
.IP\[bu]
\fIpongbytes\fR: An integer that rappresent the lenght of {}, by default is 128\.
.RE
.SHEXAMPLEJSONREQUEST
.nf
.RS
{
"id": 82,
"method": "ping",
"params": {
"len": 128,
"pongbytes": 128
}
}
.RE
.fi
.SHRETURNVALUE
On success, the command will return an object with a single string\.
.RS
.IP\[bu]
\fItotlen\fR: A string that rappresent the answer lenght of {}\.
.RE
On failure, one of the following error codes may be returned:
.RS
.IP\[bu]
-32602: Error in given parameters or unknow peer\.
.RE
.SHEXAMPLEJSONRESPONSE
.nf
.RS
{
"totlen": 132
}
.RE
.fi
.SHAUTHOR
Vincenzo Palazzo \fI<vincenzo.palazzo@protonmail.com\fR> wrote the initial version of this man page, but many others did the hard work of actually implementing this rpc command\.
.SHSEEALSO
\fBlightning-connect\fR(7)
.SHRESOURCES
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR