|
NAMElightning-listnodes - Command to get the list of nodes in the known network.SYNOPSISlistnodes [id]DESCRIPTIONThe listnodes command returns nodes the node has learned about via gossip messages, or a single one if the node id was specified.EXAMPLE JSON REQUEST{ "id": 82, "method": "listnodes", "params": { "id": "02e29856dab8ddd9044c18486e4cab79ec717b490447af2d4831e290e48d57638a" } } RETURN VALUEOn success, an object containing nodes is returned. It is an array of objects, where each object contains:
If last_timestamp is present:
If type is "ipv4", "ipv6", "torv2" or "torv3":
If option_will_fund is present:
On failure, one of the following error codes may be returned:
EXAMPLE JSON RESPONSE{ "nodes": [ { "nodeid": "02e29856dab8ddd9044c14586e4cab79ec717b490447af2d4831e290e48d58638a", "alias": "some_alias", "color": "68f442", "last_timestamp": 1597213741, "features": "02a2a1", "addresses": [ { "type": "ipv4", "address": "zzz.yy.xx.xx", "port": 9735 } ] } ] } 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 ALSOFIXME:RESOURCESMain web site: https://github.com/ElementsProject/lightning Visit the GSP FreeBSD Man Page Interface. |