Skip to content

Instantly share code, notes, and snippets.

@grubles
Created July 1, 2019 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grubles/d74609409023087a1db67e31d6d3f018 to your computer and use it in GitHub Desktop.
Save grubles/d74609409023087a1db67e31d6d3f018 to your computer and use it in GitHub Desktop.
$ ./cli/lightning-cli listpeers
{
"peers" : [
{ [35/1969]
"id" : "0322d8d3fb7e77a88f373fa369a3e91cb63a24f1313c480ae09c5ffc56dbef7ead",
"connected" : true,
"netaddr" : [
"192.168.1.230:9735"
],
"globalfeatures" : "",
"localfeatures" : "aa",
"channels" : [
{
"state" : "CHANNELD_AWAITING_LOCKIN",
"scratch_txid" : "1668cfe52945cef47f9310c07292b773f4a1c2c113d0a84fd905f01409931948",
"owner" : "lightning_channeld",
"channel_id" : "41cfc0d25a958036b3b3a1674666f83c2b028d922212ae2b10a7fcc330a9dde6",
"funding_txid" : "e6dda930c3fca7102bae1222928d022b3cf8664667a1b3b33680955ad2c0cf41",
"private" : false,
"funding_allocation_msat" : {
"0322d8d3fb7e77a88f373fa369a3e91cb63a24f1313c480ae09c5ffc56dbef7ead" : 0,
"0298f02eaad77c7c8c3d64bd5f8604c80593dc454918b28353d1ea814e541111f0" : 100000000
},
"funding_msat" : {
"0322d8d3fb7e77a88f373fa369a3e91cb63a24f1313c480ae09c5ffc56dbef7ead" : "0msat",
"0298f02eaad77c7c8c3d64bd5f8604c80593dc454918b28353d1ea814e541111f0" : "100000000msat"
},
"msatoshi_to_us" : 100000000,
"to_us_msat" : "100000000msat",
"msatoshi_to_us_min" : 100000000,
"min_to_us_msat" : "100000000msat",
"msatoshi_to_us_max" : 100000000,
"max_to_us_msat" : "100000000msat",
"msatoshi_total" : 100000000,
"total_msat" : "100000000msat",
"dust_limit_satoshis" : 546,
"dust_limit_msat" : "546000msat",
"max_total_htlc_in_msat" : "18446744073709551615msat",
"their_channel_reserve_satoshis" : 1000,
"their_reserve_msat" : "1000000msat",
"our_channel_reserve_satoshis" : 1000,
"our_reserve_msat" : "1000000msat",
"spendable_msatoshi" : 98774000,
"spendable_msat" : "98774000msat",
"htlc_minimum_msat" : 0,
"minimum_htlc_in_msat" : "0msat",
"their_to_self_delay" : 144,
"our_to_self_delay" : 144,
"max_accepted_htlcs" : 483,
"status" : [
"CHANNELD_AWAITING_LOCKIN:Funding needs 2 more confirmations for lockin."
],
"in_payments_offered" : 0,
"in_msatoshi_offered" : 0,
"in_offered_msat" : "0msat",
"in_payments_fulfilled" : 0,
"in_msatoshi_fulfilled" : 0,
"in_fulfilled_msat" : "0msat",
"out_payments_offered" : 0,
"out_msatoshi_offered" : 0,
"out_offered_msat" : "0msat",
"out_payments_fulfilled" : 0,
"out_msatoshi_fulfilled" : 0,
"out_fulfilled_msat" : "0msat",
"htlcs" : []
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment