lncli wallet bumpfeeto increase the fees of pending transactions. To see which transactions this may apply to, we can use
lncli listchaintxns. To narrow down the list of transactions to unconfirmed only you can use the flags
--start_height(and the current block height) and
--end_height -1. Take note that the transaction id and output specified in this command relate to an input used in the transaction that you want to be confirmed, not the transaction itself.
--forceflag, an input is included even if sweeping this input costs more than it is worth.
lncli listchaintxns --start_height 680802 --end_height -1
lncli wallet bumpfee --conf_target 6 --force 38a64ad629960b0100e6954801a035c484df64f6efa783c33508054d8f2cfe95:0
lncli wallet bumpfeein the same way as above to create such a CPFP transaction, specifying the unconfirmed, incoming transaction and the output belonging to our wallet. This new CPFP transaction is a regular on-chain transaction, which we can again bump by repeating the same command with a new fee.
lncli newaddress p2wkhand use the
lncli sendcoinscommand with the
--min_confs 0flag. As we cannot specify from which output we want to make our transaction, we will have to spend nearly close to our entire balance.
lncli sendcoins --addr bc1q8wymjatcv5xpfm4uav2pwtw534t4u0tfup2xgg --min_confs 0 --amt 2000000 --sat_per_byte 110
lncli wallet bumpfeecommand to increase the fee of this transaction.
lncli openchannelcommand right away together with the
--psbtflag to specify an output.
lncli wallet bumpfeecommand using the transaction id of the channel that we are waiting to be opened. This only works if the channel opening had a change output, and we will need to identify this output:
channel_pointhas the output index
0, your change value will have the output index
1. And vice versa.
lncli wallet bumpfee --sat_per_byte 160 5f97234af4df23881ca5e994bf42956c9af53bf83cb63687d1d0adfcd3ece18a:0
lncli wallet bumpfeecommand in a similar way as above. We will need to identify the output of this transaction that belongs to our wallet using a block explorer. This means the command can only be run if you had at least some balance in this channel. In the case of a force close, we can use the command
lncli wallet bumpclosefeeto create a CPFP transaction that spends the outputs of our channel closure transaction. You will only be able to make use of this command if it was created as an anchor channel. For other channels, only the counterparty of the party initiating the force close will be able to get the channel confirmed more quickly if they spend their output with a higher fee (CPFP).