https://github.com/spesmilo/eclair-tools
Eclair management tools
https://github.com/spesmilo/eclair-tools
Last synced: 5 months ago
JSON representation
Eclair management tools
- Host: GitHub
- URL: https://github.com/spesmilo/eclair-tools
- Owner: spesmilo
- Created: 2022-07-03T12:16:33.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-15T13:04:02.000Z (over 3 years ago)
- Last Synced: 2025-06-19T16:46:20.128Z (about 1 year ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 9
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Eclair management tools
## Getting started
The following environment variables need to be defined:
```
MAINNET_ECLAIR
MAINNET_BITCOINCLI
```
Note that amount are in mBTC.
## Examples:
```
$ ./listchannels --public --sortby nodeId | ./format
$ ./listchannels --private --sortby toLocal | ./format
$ ./listchannels | ./sum_balances
$ eclair peers | ./connected | jq -s 'length'
```
Some commands require a database initialization:
```
$ ./init_db
$ ./last_active 718327x534x2
$ ./relayed_by_channel 718327x534x2
```