2

Is there a way send the change output from an input to fundchannel to a taproot address instead of to a SegWit v.0 address?

I have only one large utxo in onchain funds of my Core Lightning node. Its address is a SegWit v.0 address, that starts with bc1q. I want to open a channel with lightning-cli fundchannel. Is there a way to send the change from this input (not needed for the opening of the channel) to a taproot address (i.e. a SegWit v.1 address that starts with bc1p) instead of to a SegWit v.0 address? I am worried because my experience with lightning-cli newaddr is that by default it generates a SegWit v.0 address.

2
  • 2
    So, your question is "How can I send the change output from a channel funding transaction to a taproot address?"
    – Murch
    Commented Mar 12 at 13:57
  • @Murch Yes, this is exactly what I mean. I already modified my question in response to your worthy comment.
    – John Smith
    Commented Mar 12 at 13:59

1 Answer 1

2

The documentation of the fundchannel command does not appear to make any references to parameters for setting the addresstype for the change output of a funding transaction.

However, according to the announcement of Core Lightning 23.08

We also added Taproot address support, thanks to Greg Sanders: you can issue Taproot addresses for people to send you on-chain funds, and we will immediately use them for our own change outputs. Taproot addresses (i.e., P2TR) start with bc1p instead of bc1q, just so you know!

and the Core Lightning 23.08 Changelog, Core Lightning should generally be creating P2TR change outputs since version 23.08 after pull request #6035 added Taproot wallet support.

If you are running an older version, you should hopefully see the desired behavior after upgrading. If you are running version 23.08 or later and your funding transactions do not have P2TR change outputs, you might want to report a bug to the Core Lightning developers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.