GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIGHTNING-PING(7) LIGHTNING-PING(7)

lightning-ping -- Command to check if a node is up.

ping id [len] [pongbytes]

The ping command checks if the node with id is ready to talk. It currently only works for peers we have a channel with.

  • id (pubkey): The pubkey of the node to ping.

  • len (u16, optional): The length of the ping. The default is 128.

  • pongbytes (u16, optional): The length of the reply. A value of 65532 to 65535 means don't reply. The default is 128.

On success, an object is returned, containing:

totlen (u16): The answer length of the reply message (including header: 0 means no reply expected).

On failure, one of the following error codes may be returned:

-32602: Error in given parameters or we're already waiting for a ping response from peer.

Vincenzo 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.

lightning-connect(7)

Main web site: https://github.com/ElementsProject/lightning

Example 1:

Request:

$ lightning-cli ping -k "id"="nodeid010101010101010101010101010101010101010101010101010101010101" "len"=128 "pongbytes"=128

{

"id": "example:ping#1",
"method": "ping",
"params": {
"id": "nodeid010101010101010101010101010101010101010101010101010101010101",
"len": 128,
"pongbytes": 128
} }

Response:

{

"totlen": 132 }

Example 2:

Request:

$ lightning-cli ping -k "id"="nodeid030303030303030303030303030303030303030303030303030303030303" "len"=1000 "pongbytes"=65535

{

"id": "example:ping#2",
"method": "ping",
"params": {
"id": "nodeid030303030303030303030303030303030303030303030303030303030303",
"len": 1000,
"pongbytes": 65535
} }

Response:

{

"totlen": 0 }
Core Lightning v25.02.2

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.