mirror of
https://github.com/guggero/chantools
synced 2024-11-07 03:20:43 +00:00
2.3 KiB
2.3 KiB
chantools closepoolaccount
Tries to close a Pool account that has expired
Synopsis
In case a Pool account cannot be closed normally with the poold daemon it can be closed with this command. The account MUST have expired already, otherwise this command doesn't work since a signature from the auctioneer is necessary.
You need to know the account's last unspent outpoint. That can either be obtained by running 'pool accounts list'
chantools closepoolaccount [flags]
Examples
chantools closepoolaccount \
--outpoint xxxxxxxxx:y \
--sweepaddr bc1q..... \
--feerate 10 \
--publish
Options
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
--auctioneerkey string the auctioneer's static public key (default "028e87bdd134238f8347f845d9ecc827b843d0d1e27cdcb46da704d916613f4fce")
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
--feerate uint16 fee rate to use for the sweep transaction in sat/vByte (default 30)
-h, --help help for closepoolaccount
--maxnumaccounts uint32 the number of account indices to try at most (default 20)
--maxnumbatchkeys uint32 the number of batch keys to try at most (default 500)
--maxnumblocks uint32 the maximum number of blocks to try when brute forcing the expiry (default 200000)
--minexpiry uint32 the block to start brute forcing the expiry from (default 648168)
--outpoint string last account outpoint of the account to close (<txid>:<txindex>)
--publish publish sweep TX to the chain API instead of just printing the TX
--rootkey string BIP32 HD root key of the wallet to use for deriving keys; leave empty to prompt for lnd 24 word aezeed
--sweepaddr string address to sweep the funds to
Options inherited from parent commands
-r, --regtest Indicates if regtest parameters should be used
-t, --testnet Indicates if testnet parameters should be used
SEE ALSO
- chantools - Chantools helps recover funds from lightning channels