.TH "LIGHTNING-GETINFO" "7" "" "" "lightning-getinfo" .SH NAME lightning-getinfo - Command to receive all information about the c-lightning node\. .SH SYNOPSIS \fBgetinfo\fR .SH DESCRIPTION The \fBgetinfo\fR gives a summary of the current running node\. .SH EXAMPLE JSON REQUEST .nf .RS { "id": 82, "method": "getinfo", "params": {} } .RE .fi .SH RETURN VALUE On success, an object is returned, containing: .RS .IP \[bu] \fBid\fR (pubkey): The public key unique to this node .IP \[bu] \fBalias\fR (string): The fun alias this node will advertize (up to 32 characters) .IP \[bu] \fBcolor\fR (hex): The favorite RGB color this node will advertize (always 6 characters) .IP \[bu] \fBnum_peers\fR (u32): The total count of peers, connected or with channels .IP \[bu] \fBnum_pending_channels\fR (u32): The total count of channels being opened .IP \[bu] \fBnum_active_channels\fR (u32): The total count of channels in normal state .IP \[bu] \fBnum_inactive_channels\fR (u32): The total count of channels waiting for opening or closing transactions to be mined .IP \[bu] \fBversion\fR (string): Identifies what bugs you are running into .IP \[bu] \fBlightning-dir\fR (string): Identifies where you can find the configuration and other related files .IP \[bu] \fBblockheight\fR (u32): The highest block height we've learned .IP \[bu] \fBnetwork\fR (string): represents the type of network on the node are working (e\.g: \fBbitcoin\fR, \fBtestnet\fR, or \fBregtest\fR) .IP \[bu] \fBfees_collected_msat\fR (msat): Total routing fees collected by this node .IP \[bu] \fBaddress\fR (array of objects, optional): The addresses we announce to the world: .RS .IP \[bu] \fBtype\fR (string): Type of connection (one of "ipv4", "ipv6", "torv2", "torv3") .IP \[bu] \fBaddress\fR (string): address in expected format for \fBtype\fR .IP \[bu] \fBport\fR (u16): port number .RE .IP \[bu] \fBbinding\fR (array of objects, optional): The addresses we are listening on: .RS .IP \[bu] \fBtype\fR (string): Type of connection (one of "local socket", "ipv4", "ipv6", "torv2", "torv3") .IP \[bu] \fBaddress\fR (string, optional): address in expected format for \fBtype\fR .IP \[bu] \fBport\fR (u16, optional): port number .IP \[bu] \fBsocket\fR (string, optional): socket filename (only if \fBtype\fR is "local socket") .RE .RE The following warnings may also be returned: .RS .IP \[bu] \fBwarning_bitcoind_sync\fR: Bitcoind is not up-to-date with network\. .IP \[bu] \fBwarning_lightningd_sync\fR: Lightningd is still loading latest blocks from bitcoind\. .RE On failure, one of the following error codes may be returned: .RS .IP \[bu] -32602: Error in given parameters or some error happened during the command process\. .RE .SH EXAMPLE JSON RESPONSE .nf .RS { "id": "02bf811f7571754f0b51e6d41a8885f5561041a7b14fac093e4cffb95749de1a8d", "alias": "SLICKERGOPHER", "color": "02bf81", "num_peers": 0, "num_pending_channels": 0, "num_active_channels": 0, "num_inactive_channels": 0, "address": [ { "type": "torv3", "address": "fp463inc4w3lamhhduytrwdwq6q6uzugtaeapylqfc43agrdnnqsheyd.onion", "port": 9736 }, { "type": "torv3", "address": "ifnntp5ak4homxrti2fp6ckyllaqcike447ilqfrgdw64ayrmkyashid.onion", "port": 9736 } ], "binding": [ { "type": "ipv4", "address": "127.0.0.1", "port": 9736 } ], "version": "0.9.0", "blockheight": 644297, "network": "bitcoin", "msatoshi_fees_collected": 0, "fees_collected_msat": "0msat", "lightning-dir": "/media/vincent/Maxtor/C-lightning/node/bitcoin" } .RE .fi .SH AUTHOR Vincenzo Palazzo \fI wrote the initial version of this man page, but many others did the hard work of actually implementing this rpc command\. .SH SEE ALSO \fBlightning-connect\fR(7), \fBlightning-fundchannel\fR(7), \fBlightning-listconfigs\fR(7)\. .SH RESOURCES Main web site: \fIhttps://github.com/ElementsProject/lightning\fR \" SHA256STAMP:3e1c0f27024c64e02c2a84c093f9de3dbec882c4dacb3fd45b7bc3f4eb98fc5e