Skip to content

Instantly share code, notes, and snippets.

@vincenzopalazzo
Created February 5, 2025 15:22
Show Gist options
  • Save vincenzopalazzo/69256d1c727c6c606c5706e39e89b672 to your computer and use it in GitHub Desktop.
Save vincenzopalazzo/69256d1c727c6c606c5706e39e89b672 to your computer and use it in GitHub Desktop.
➜ ~ lightning-cli listpeerchannels 027cb24c3c92387cba9a35ea145e2c41ab1849b4601b94b3fa27b2ffb429ebaf98
{
"channels": [
{
"peer_id": "027cb24c3c92387cba9a35ea145e2c41ab1849b4601b94b3fa27b2ffb429ebaf98",
"peer_connected": true,
"reestablished": true,
"channel_type": {
"bits": [
12,
22
],
"names": [
"static_remotekey/even",
"anchors/even"
]
},
"updates": {
"local": {
"htlc_minimum_msat": 0,
"htlc_maximum_msat": 182223000,
"cltv_expiry_delta": 34,
"fee_base_msat": 0,
"fee_proportional_millionths": 4000
},
"remote": {
"htlc_minimum_msat": 0,
"htlc_maximum_msat": 182223000,
"cltv_expiry_delta": 34,
"fee_base_msat": 1000,
"fee_proportional_millionths": 10
}
},
"last_stable_connection": 1738768366,
"state": "CHANNELD_NORMAL",
"scratch_txid": "94bef05862a6f616faee357024f5faa18c43e6f3ff61625cc79d49577cc6da03",
"last_tx_fee_msat": 1411000,
"lost_state": false,
"feerate": {
"perkw": 1255,
"perkb": 5020
},
"owner": "channeld",
"short_channel_id": "867366x369x0",
"direction": 1,
"channel_id": "b35e77548b2ff382d677cdacf2e69b810cfdf84451dd7bb43e1f17eebd36c502",
"funding_txid": "29469b76f2e8bf27e6b91ba6de46d23db2a06408bde13f203a98a2510012f575",
"funding_outnum": 0,
"close_to_addr": "bc1pmdx0xzytn4uq5luk3876j6y690ng6rxyy5c95lhuxfzeveh38jnssd603q",
"close_to": "5120db4cf3088b9d780a7f9689fda9689a2be68d0cc425305a7efc32459666f13ca7",
"private": false,
"opener": "remote",
"alias": {
"local": "2368063x5012237x25944",
"remote": "10071110x15146139x46818"
},
"features": [
"option_static_remotekey",
"option_anchors_zero_fee_htlc_tx",
"option_anchors"
],
"funding": {
"remote_funds_msat": 94063000,
"local_funds_msat": 90000000,
"fee_rcvd_msat": 4063000
},
"to_us_msat": 97110908,
"min_to_us_msat": 94060000,
"max_to_us_msat": 97110908,
"total_msat": 184063000,
"fee_base_msat": 0,
"fee_proportional_millionths": 4000,
"dust_limit_msat": 546000,
"max_total_htlc_in_msat": 18446744073709551615,
"their_reserve_msat": 1840000,
"our_reserve_msat": 1840000,
"spendable_msat": 95270908,
"receivable_msat": 80806092,
"minimum_htlc_in_msat": 0,
"minimum_htlc_out_msat": 0,
"maximum_htlc_out_msat": 182223000,
"their_to_self_delay": 144,
"our_to_self_delay": 144,
"max_accepted_htlcs": 30,
"state_changes": [
{
"timestamp": "2024-10-25T23:34:38.092Z",
"old_state": "DUALOPEND_OPEN_COMMITTED",
"new_state": "DUALOPEND_AWAITING_LOCKIN",
"cause": "remote",
"message": "Sigs exchanged, waiting for lock-in"
},
{
"timestamp": "2024-10-26T00:02:15.947Z",
"old_state": "DUALOPEND_AWAITING_LOCKIN",
"new_state": "CHANNELD_NORMAL",
"cause": "remote",
"message": "Lockin complete"
}
],
"status": [
"CHANNELD_NORMAL:Reconnected, and reestablished.",
"CHANNELD_NORMAL:Channel ready for use."
],
"in_payments_offered": 25,
"in_offered_msat": 3052909,
"in_payments_fulfilled": 24,
"in_fulfilled_msat": 3050908,
"out_payments_offered": 4,
"out_offered_msat": 7888830,
"out_payments_fulfilled": 3,
"out_fulfilled_msat": 3000,
"htlcs": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment