2020-12-27 01:10:02 +01:00
|
|
|
## chantools summary
|
|
|
|
|
|
|
|
|
|
Compile a summary about the current state of channels
|
|
|
|
|
|
2020-12-27 01:40:51 +01:00
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
|
|
From a list of channels, find out what their state is by
|
|
|
|
|
querying the funding transaction on a block explorer API.
|
|
|
|
|
|
2020-12-27 01:10:02 +01:00
|
|
|
```
|
|
|
|
|
chantools summary [flags]
|
|
|
|
|
```
|
|
|
|
|
|
2020-12-27 01:40:51 +01:00
|
|
|
### Examples
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
lncli listchannels | chantools summary --listchannels -
|
|
|
|
|
|
|
|
|
|
chantools summary --fromchanneldb ~/.lnd/data/graph/mainnet/channel.db
|
|
|
|
|
```
|
|
|
|
|
|
2020-12-27 01:10:02 +01:00
|
|
|
### Options
|
|
|
|
|
|
|
|
|
|
```
|
2025-02-10 10:14:44 +01:00
|
|
|
--ancient Create summary of ancient channel closes with un-swept outputs
|
|
|
|
|
--ancientstats string Create summary of ancient channel closes with un-swept outputs and print stats for the given list of channels
|
2024-10-28 13:18:05 +01:00
|
|
|
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
|
2020-12-27 01:10:02 +01:00
|
|
|
--fromchanneldb string channel input is in the format of an lnd channel.db file
|
2025-02-10 10:14:44 +01:00
|
|
|
--fromchanneldump string channel input is in the format of a channel dump file
|
2020-12-27 01:10:02 +01:00
|
|
|
--fromsummary string channel input is in the format of chantool's channel summary; specify '-' to read from stdin
|
|
|
|
|
-h, --help help for summary
|
|
|
|
|
--listchannels string channel input is in the format of lncli's listchannels format; specify '-' to read from stdin
|
|
|
|
|
--pendingchannels string channel input is in the format of lncli's pendingchannels format; specify '-' to read from stdin
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Options inherited from parent commands
|
|
|
|
|
|
|
|
|
|
```
|
2025-10-21 21:27:30 +02:00
|
|
|
--nologfile If set, no log file will be created. This is useful for testing purposes where we don't want to create a log file.
|
|
|
|
|
-r, --regtest Indicates if regtest parameters should be used
|
|
|
|
|
--resultsdir string Directory where results should be stored (default "./results")
|
|
|
|
|
-s, --signet Indicates if the public signet parameters should be used
|
|
|
|
|
-t, --testnet Indicates if testnet parameters should be used
|
2026-03-04 07:01:23 +01:00
|
|
|
--testnet4 Indicates if testnet4 parameters should be used
|
2020-12-27 01:10:02 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### SEE ALSO
|
|
|
|
|
|
|
|
|
|
* [chantools](chantools.md) - Chantools helps recover funds from lightning channels
|
|
|
|
|
|