Difference between revisions of "Channel graph"

From lightningwiki.net
Jump to navigation Jump to search
 
Line 1: Line 1:
Overview of the channels, which lightning nodes use to find [[Route|routes]] for [[Payments]].
Overview of the [[channels]], which [[Node|lightning nodes]] use to find [[Route|routes]] for [[Payments]].


You can use an [[Lightning Network explorers|explorer]] to view the graph, or pull it from your node.
You can use an [[Lightning Network explorers|explorer]] to view the graph, or pull it from your node.

Latest revision as of 08:34, 27 February 2019

Overview of the channels, which lightning nodes use to find routes for Payments.

You can use an explorer to view the graph, or pull it from your node.

Getting the graph from your lnd node

Use describegraph.

# lncli help describegraph
NAME:
   lncli describegraph - Describe the network graph.

USAGE:
   lncli describegraph [command options] [arguments...]

CATEGORY:
   Peers

DESCRIPTION:
   Prints a human readable version of the known channel graph from the PoV of the node

OPTIONS:
   --include_unannounced  If set, unannounced channels will be included in the graph. Unannounced channels are both private channels, and public channels that are not yet announced to the network.
   

Example output (part):

{
            "channel_id": "618156432400515072",
            "chan_point": "fc9c6ab9df989dac952d5fdb316e745721994782bf41ea7e94014722ab4d8a94:0",
            "last_update": 1551179789,
            "node1_pub": "0213028043ba544713750c363067b6b13fcd3a6eeb68d60ce84aec1827e5b284cf",
            "node2_pub": "031ce29116eab7edd66148f5169f1fb658fad62bdc5091221ab895fe5d36db00b2",
            "capacity": "2000000",
            "node1_policy": {
                "time_lock_delta": 144,
                "min_htlc": "10",
                "fee_base_msat": "1000",
                "fee_rate_milli_msat": "1",
                "disabled": false
            },
            "node2_policy": {
                "time_lock_delta": 120,
                "min_htlc": "1000",
                "fee_base_msat": "0",
                "fee_rate_milli_msat": "900",
                "disabled": false
            }
        },