user62620: I've created a brand new lightning channel with two nodes.
I loaded the channel with "capacity": "1000000", but "local_balance": "999056". I know that "commit_fee": "614" accounts for some reserved sats for channel closing. But that still leaves about 330 sats unaccounted for. Where are these sats visible? Thanks
"channels": [
        {
            "active": true,
            "remote_pubkey": "0340b6591708a3bc385aef0c69e6e618e5e3de0f66d923607f55ea035b71dedd47",
            "channel_point": "6ac2d8f922b0d1f2d5de39d2819777cb8bc40b6d8f6226211bbba34eada55965:1",
            "chan_id": "2582377880184815617",
            "capacity": "1000000",
            "local_balance": "999056",
            "remote_balance": "0",
            "commit_fee": "614",
            "commit_weight": "772",
            "fee_per_kw": "253",
            "unsettled_balance": "0",
            "total_satoshis_sent": "0",
            "total_satoshis_received": "0",
            "num_updates": "0",
            "pending_htlcs": [
            ],
            "csv_delay": 144,
            "private": false,
            "initiator": true,
            "chan_status_flags": "ChanStatusDefault",
            "local_chan_reserve_sat": "10000",
            "remote_chan_reserve_sat": "10000",
            "static_remote_key": false,
            "commitment_type": "ANCHORS",
            "lifetime": "24",
            "uptime": "24",
            "close_address": "",
            "push_amount_sat": "0",
            "thaw_height": 0,
            "local_constraints": {
                "csv_delay": 144,
                "chan_reserve_sat": "10000",
                "dust_limit_sat": "573",
                "max_pending_amt_msat": "990000000",
                "min_htlc_msat": "1",
                "max_accepted_htlcs": 483
            },
            "remote_constraints": {
                "csv_delay": 144,
                "chan_reserve_sat": "10000",
                "dust_limit_sat": "573",
                "max_pending_amt_msat": "990000000",
                "min_htlc_msat": "1",
                "max_accepted_htlcs": 483
            }
        }
    ]


user101498: 
But that still leaves about 330 sats unaccounted for

You are probably missing the anchor output contained in the commitment transaction in your calculation. Its value is exactly 330 sats.

Note: this answer previously incorrectly assumed it was due to the reserve not being part of the balance. It was entirely re-written.

62620: <p>I've created a brand new lightning channel with two nodes.</p>
<p>I loaded the channel with <code>&quot;capacity&quot;: &quot;1000000&quot;</code>, but <code>&quot;local_balance&quot;: &quot;999056&quot;</code>. I know that <code>&quot;commit_fee&quot;: &quot;614&quot;</code> accounts for some reserved sats for channel closing. But that still leaves about 330 sats unaccounted for. Where are these sats visible? Thanks</p>
<pre><code>&quot;channels&quot;: [
        {
            &quot;active&quot;: true,
            &quot;remote_pubkey&quot;: &quot;0340b6591708a3bc385aef0c69e6e618e5e3de0f66d923607f55ea035b71dedd47&quot;,
            &quot;channel_point&quot;: &quot;6ac2d8f922b0d1f2d5de39d2819777cb8bc40b6d8f6226211bbba34eada55965:1&quot;,
            &quot;chan_id&quot;: &quot;2582377880184815617&quot;,
            &quot;capacity&quot;: &quot;1000000&quot;,
            &quot;local_balance&quot;: &quot;999056&quot;,
            &quot;remote_balance&quot;: &quot;0&quot;,
            &quot;commit_fee&quot;: &quot;614&quot;,
            &quot;commit_weight&quot;: &quot;772&quot;,
            &quot;fee_per_kw&quot;: &quot;253&quot;,
            &quot;unsettled_balance&quot;: &quot;0&quot;,
            &quot;total_satoshis_sent&quot;: &quot;0&quot;,
            &quot;total_satoshis_received&quot;: &quot;0&quot;,
            &quot;num_updates&quot;: &quot;0&quot;,
            &quot;pending_htlcs&quot;: [
            ],
            &quot;csv_delay&quot;: 144,
            &quot;private&quot;: false,
            &quot;initiator&quot;: true,
            &quot;chan_status_flags&quot;: &quot;ChanStatusDefault&quot;,
            &quot;local_chan_reserve_sat&quot;: &quot;10000&quot;,
            &quot;remote_chan_reserve_sat&quot;: &quot;10000&quot;,
            &quot;static_remote_key&quot;: false,
            &quot;commitment_type&quot;: &quot;ANCHORS&quot;,
            &quot;lifetime&quot;: &quot;24&quot;,
            &quot;uptime&quot;: &quot;24&quot;,
            &quot;close_address&quot;: &quot;&quot;,
            &quot;push_amount_sat&quot;: &quot;0&quot;,
            &quot;thaw_height&quot;: 0,
            &quot;local_constraints&quot;: {
                &quot;csv_delay&quot;: 144,
                &quot;chan_reserve_sat&quot;: &quot;10000&quot;,
                &quot;dust_limit_sat&quot;: &quot;573&quot;,
                &quot;max_pending_amt_msat&quot;: &quot;990000000&quot;,
                &quot;min_htlc_msat&quot;: &quot;1&quot;,
                &quot;max_accepted_htlcs&quot;: 483
            },
            &quot;remote_constraints&quot;: {
                &quot;csv_delay&quot;: 144,
                &quot;chan_reserve_sat&quot;: &quot;10000&quot;,
                &quot;dust_limit_sat&quot;: &quot;573&quot;,
                &quot;max_pending_amt_msat&quot;: &quot;990000000&quot;,
                &quot;min_htlc_msat&quot;: &quot;1&quot;,
                &quot;max_accepted_htlcs&quot;: 483
            }
        }
    ]
</code></pre>
 101498: <blockquote>
<p>But that still leaves about 330 sats unaccounted for</p>
</blockquote>
<p>You are probably missing the <a href="https://github.com/lightning/bolts/blob/master/03-transactions.md#to_local_anchor-and-to_remote_anchor-output-option_anchors" rel="nofollow noreferrer">anchor output</a> contained in the commitment transaction in your calculation. Its value is exactly 330 sats.</p>
<hr />
<p><em>Note: this answer previously incorrectly assumed it was due to the reserve not being part of the balance. It was entirely re-written.</em></p>
