<p>Answer by Oliver Gugger (guggero):</p>
<blockquote>
<p>You can use the <code>dumpchannels</code> command of <code>chantools</code>:
<a href="https://github.com/guggero/chantools#dumpchannels" rel="nofollow noreferrer">https://github.com/guggero/chantools#dumpchannels</a> That will show you
the commitment transaction inputs and outputs for both parties.
Remember to shut down lnd first, otherwise chantools will block on
trying to open the channel DB.</p>
</blockquote>

CC BY-SA 4.0
2020-11-16T20:43:04.320Z
2020-11-16T20:43:04.320Z
Tony Sanak
<p>I would like to see how a commitment transaction for a given payment channel looks like (without actually closing the channels and transmitting the transaction to the network :)</p>
<p>I assume that all of the building blocks (such as balances) are somewhere in <code>channel.db</code>. Is there a way to quickly get this information out and construct the commitment transaction out of it without much coding?</p>

<lightning-network-daemon>
How do I explore the current commitment transaction for a channel?
Dmitry Laptev
# How do I explore the current commitment transaction for a channel?

(Asked by: username_0 on 2020-11-16)

I would like to see how a commitment transaction for a given payment channel looks like (without actually closing the channels and transmitting the transaction to the network :)

I assume that all of the building blocks (such as balances) are somewhere in `channel.db`. Is there a way to quickly get this information out and construct the commitment transaction out of it without much coding?

**Tags:** lightning-network-daemon


---

## 1 answers

### Answer by username_1 on 2020-11-16. Score: 3 | Accepted answer

Answer by Oliver Gugger (guggero):

> You can use the `dumpchannels` command of `chantools`:
> <https://github.com/guggero/chantools#dumpchannels> That will show you
> the commitment transaction inputs and outputs for both parties.
> Remember to shut down lnd first, otherwise chantools will block on
> trying to open the channel DB.


---

