Skip to content

Commit 776ea6b

Browse files
authored
Merge pull request #165 from lightninglabs/apiurl
root+doc: change default API server to api.node-recovery.com
2 parents 6a79fde + 5c15eae commit 776ea6b

15 files changed

+17
-17
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Example (make sure you always use the latest version!):
3030

3131
```shell
3232
$ cd /tmp
33-
$ wget -O chantools.tar.gz https://github.com/lightninglabs/chantools/releases/download/v0.12.2/chantools-linux-amd64-v0.12.2.tar.gz
33+
$ wget -O chantools.tar.gz https://github.com/lightninglabs/chantools/releases/download/v0.13.4/chantools-linux-amd64-v0.13.4.tar.gz
3434
$ tar -zxvf chantools.tar.gz
3535
$ sudo mv chantools-*/chantools /usr/local/bin/
3636
```
@@ -236,7 +236,7 @@ compacting the DB).
236236

237237
6. **chantools summary**: First, `chantools` needs to find out the state of each
238238
channel on chain. For this, a blockchain API (by
239-
default [blockstream.info](https://blockstream.info))
239+
default [node-recovery.com](https://api.node-recovery.com))
240240
is queried. The result will be written to a file called
241241
`./results/summary-yyyy-mm-dd.json`. This result file will be needed for the
242242
next command.

cmd/chantools/root.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ import (
2424
)
2525

2626
const (
27-
defaultAPIURL = "https://blockstream.info/api"
27+
defaultAPIURL = "https://api.node-recovery.com"
2828
defaultTestnetAPIURL = "https://blockstream.info/testnet/api"
2929
defaultRegtestAPIURL = "http://localhost:3004"
3030

3131
// version is the current version of the tool. It is set during build.
3232
// NOTE: When changing this, please also update the version in the
3333
// download link shown in the README.
34-
version = "0.13.3"
34+
version = "0.13.4"
3535
na = "n/a"
3636

3737
// lndVersion is the current version of lnd that we support. This is

doc/chantools_closepoolaccount.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ chantools closepoolaccount \
2929
### Options
3030

3131
```
32-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
32+
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
3333
--auctioneerkey string the auctioneer's static public key (default "028e87bdd134238f8347f845d9ecc827b843d0d1e27cdcb46da704d916613f4fce")
3434
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
3535
--feerate uint32 fee rate to use for the sweep transaction in sat/vByte (default 30)

doc/chantools_doublespendinputs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ chantools doublespendinputs \
2525
### Options
2626

2727
```
28-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
28+
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
2929
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
3030
--feerate uint32 fee rate to use for the sweep transaction in sat/vByte (default 30)
3131
-h, --help help for doublespendinputs

doc/chantools_fakechanbackup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ chantools fakechanbackup --from_channel_graph lncli_describegraph.json \
6161
--channelpoint string funding transaction outpoint of the channel to rescue (<txid>:<txindex>) as it is displayed on 1ml.com
6262
--from_channel_graph string the full LN channel graph in the JSON format that the 'lncli describegraph' returns
6363
-h, --help help for fakechanbackup
64-
--multi_file string the fake channel backup file to create (default "results/fake-2024-09-20-09-53-53.backup")
64+
--multi_file string the fake channel backup file to create (default "results/fake-2024-10-28-13-17-27.backup")
6565
--remote_node_addr string the remote node connection information in the format pubkey@host:port
6666
--rootkey string BIP32 HD root key of the wallet to use for encrypting the backup; leave empty to prompt for lnd 24 word aezeed
6767
--short_channel_id string the short channel ID in the format <blockheight>x<transactionindex>x<outputindex>

doc/chantools_forceclose.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ chantools forceclose \
3333
### Options
3434

3535
```
36-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
36+
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
3737
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
3838
--channeldb string lnd channel.db file to use for force-closing channels
3939
--fromchanneldb string channel input is in the format of an lnd channel.db file

doc/chantools_pullanchor.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ chantools pullanchor \
2626

2727
```
2828
--anchoraddr stringArray the address of the anchor output (p2wsh or p2tr output with 330 satoshis) that should be pulled; can be specified multiple times per command to pull multiple anchors with a single transaction
29-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
29+
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
3030
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
3131
--changeaddr string the change address to send the remaining funds back to; specify 'fromseed' to derive a new address from the seed automatically
3232
--feerate uint32 fee rate to use for the sweep transaction in sat/vByte (default 30)

doc/chantools_recoverloopin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ chantools recoverloopin \
2121
### Options
2222

2323
```
24-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
24+
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
2525
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
2626
--feerate uint32 fee rate to use for the sweep transaction in sat/vByte
2727
-h, --help help for recoverloopin

doc/chantools_rescuefunding.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ chantools rescuefunding \
3939
### Options
4040

4141
```
42-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
42+
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
4343
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
4444
--channeldb string lnd channel.db file to rescue a channel from; must contain the pending channel specified with --channelpoint
4545
--confirmedchannelpoint string channel outpoint that got confirmed on chain (<txid>:<txindex>); normally this is the same as the --dbchannelpoint so it will be set to that value ifthis is left empty

doc/chantools_summary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ chantools summary --fromchanneldb ~/.lnd/data/graph/mainnet/channel.db
2222
### Options
2323

2424
```
25-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
25+
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
2626
--fromchanneldb string channel input is in the format of an lnd channel.db file
2727
--fromsummary string channel input is in the format of chantool's channel summary; specify '-' to read from stdin
2828
-h, --help help for summary

doc/chantools_sweepremoteclosed.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ chantools sweepremoteclosed \
3333
### Options
3434

3535
```
36-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
36+
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
3737
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
3838
--feerate uint32 fee rate to use for the sweep transaction in sat/vByte (default 30)
3939
-h, --help help for sweepremoteclosed

doc/chantools_sweeptimelock.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ chantools sweeptimelock \
2929
### Options
3030

3131
```
32-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
32+
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
3333
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
3434
--feerate uint32 fee rate to use for the sweep transaction in sat/vByte (default 30)
3535
--fromchanneldb string channel input is in the format of an lnd channel.db file

doc/chantools_sweeptimelockmanual.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ chantools sweeptimelockmanual \
4545
### Options
4646

4747
```
48-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
48+
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
4949
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
5050
--channelpoint string channel point to use for locating the channel in the channel backup file specified in the --frombackup flag, format: txid:index
5151
--feerate uint32 fee rate to use for the sweep transaction in sat/vByte (default 30)

doc/chantools_triggerforceclose.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ chantools triggerforceclose \
2424
### Options
2525

2626
```
27-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
27+
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
2828
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
2929
--channel_point string funding transaction outpoint of the channel to trigger the force close of (<txid>:<txindex>)
3030
-h, --help help for triggerforceclose

doc/chantools_zombierecovery_findmatches.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ chantools zombierecovery findmatches \
2828
```
2929
--ambossdelay duration the delay between each query to the Amboss GraphQL API (default 4s)
3030
--ambosskey string the API key for the Amboss GraphQL API
31-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
31+
--apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com")
3232
-h, --help help for findmatches
3333
--registrations string the raw data.txt where the registrations are stored in
3434
```

0 commit comments

Comments
 (0)