ChannelGraph Class

class ChannelGraph.ChannelGraph(lightning_cli_listchannels_json_file: str)

Bases: object

Represents the public information about the Lightning Network that we see from Gossip and the Bitcoin Blockchain.

The channels of the Channel Graph are directed and identified uniquely by a triple consisting of (source_node_id, destination_node_id, short_channel_id). This allows the ChannelGraph to also contain parallel channels.

get_channel(src: str, dest: str, short_channel_id: str)

returns a specific channel object identified by source, destination and short_channel_id from the ChannelGraph

property network