![]() |
![]()
| ![]() |
![]()
NAMElightning-ping -- Command to check if a node is up. SYNOPSISping id [len] [pongbytes] DESCRIPTIONThe ping command checks if the node with id is ready to talk. It currently only works for peers we have a channel with.
RETURN VALUEOn success, an object is returned, containing:
ERRORSOn failure, one of the following error codes may be returned:
AUTHORVincenzo Palazzo <vincenzo.palazzo@protonmail.com> wrote the initial version of this man page, but many others did the hard work of actually implementing this rpc command. SEE ALSOlightning-connect(7) RESOURCESMain web site: https://github.com/ElementsProject/lightning EXAMPLESExample 1: Request: $ lightning-cli ping -k "id"="nodeid010101010101010101010101010101010101010101010101010101010101" "len"=128 "pongbytes"=128 { Response: { Example 2: Request: $ lightning-cli ping -k "id"="nodeid030303030303030303030303030303030303030303030303030303030303" "len"=1000 "pongbytes"=65535 { Response: {
|