bitcoincoderbob on Nostr: lnrpc.ChannelCloseSummary does not give remote channel balance on close. We can ...
lnrpc.ChannelCloseSummary does not give remote channel balance on close. We can derive it.
remote balance = channel capacity - local balance - sum(pending htlcs) - commit fee(miner fee) - any anchors
the pending htlcs, commit fee, and anchors are inside the resolutions field
Published at
2023-07-19 03:34:13Event JSON
{
"id": "47a76d57481e02db58ee2a6df0eead106480fcbaa903c409bd7dcfd287d5664f",
"pubkey": "cbab39ae16bbce9159d2e40782f29a5791a8971416b8dc5411ec43f19670acfa",
"created_at": 1689737653,
"kind": 1,
"tags": [],
"content": "lnrpc.ChannelCloseSummary does not give remote channel balance on close. We can derive it.\n\nremote balance = channel capacity - local balance - sum(pending htlcs) - commit fee(miner fee) - any anchors\n\nthe pending htlcs, commit fee, and anchors are inside the resolutions field",
"sig": "1962069185f09944595b7ae2c15cd876682ba7953186d09670f4204f438dcfeebba70048e0e9ac9c66393b4da0b871bfd74d5bde6fe6f4de19f2dc5ced70007e"
}