When fees are expensive it may be more economical to open multiple channels with one transaction. Also to avoid extra transaction for transferring funds to lightning node I want to open the channels directly from the hardware wallet.
This is currently possible using PSBT and HWW supporting it, like Coldcard. You can use LND directly or with a wrapper which makes it easier, for example bos
or maybe own simple script to handle funding automatically.
Directly in LND, use --psbt
flag to start funding transaction or channel opening, for example: lncli openchannel --psbt --node-key <id> --local_amt <sats>
. Output of this gives you PSBT which you have to feed to another round of command as --base_psbt
parameter.
So next command would look like lncli openchannel --psbt --node-key <id> --local_amt <sats> --base_psbt <previous_psbt>
. Repeat for how many channels you want. It always gives you PSBT (with multiple addresses) you need to fund with externally. Prepare transaction with correct outputs in external wallet like Electrum, sign it with Coldcard and past PSBT from Coldcard to terminal, lnd is asking for it.
That's the short version for how to do it with lnd. For more docs, check for example https://github.com/guggero/lnd/blob/84dfed3fe2d28ceda343944874ab47fb57b73515/docs/psbt.md and https://blog.lightningconductors.net/channels/2020/12/10/opening-psbt.html. With Balance of Satoshi, it might be even easier but I didn't test personally. http://satbase.org/bos-open/
Is this considered as resolved? Could I get the bounty? I wasn't able to sign all of the comments because of some issue with website, I managed to sign only second comment.
Add your answer
Note:
- Answers should ONLY be used to respond to the original question at the top of this page! Use the ADD COMMENT or ADD REPLY buttons above to respond to someone, ask for clarifications, request more details, etc.
- Maximum answer length is 500 characters due to limits on Lightning invoice size. After posting you can use comments to expand.
- Incentive is awarded to signed answers only