lightninglabs / chantools

A loose collection of tools all somehow related to lnd and Lightning Network channels.
MIT License
222 stars 32 forks source link

could not query API for addresses with funds #87

Closed BoyvdR closed 12 months ago

BoyvdR commented 12 months ago

I tried to sweep some stuck funds from a forced close channel. The command I used was:

chantools sweepremoteclosed \
    --feerate 10 \
    --sweepaddr bc1q.... \
    --publish

After inserting the seedphrase it gave me a hit for a channel with funds but after a little while it comes up with the error:

could not query API for addresses with funds: could not query unspent: invalid character '<' looking for beginning of value

I used chantools (v12) from another computer than the node itself and the node doesn't have any open channels and (maybe to) little onchain funds.

Is there something I can/must to overcome the error?

Edit: Turns out it was a rate limit at the standard API url wich will runout with the standard recoverywindow settings.

guggero commented 12 months ago

Nothing I can do here, unfortunately, as chantools is using the Blockstream server. You can choose another "electrs" compatible server that does not rate limit you. And I'll improve the error message so it's clear the server is the issue.