This can dump an xpub from cln:

https://docs.corelightning.org/reference/lightning-hsmtool

Reply to this note

Please Login to reply.

Discussion

Thanks, it outputs descriptors for wpkh, sh and tr. I want to import this to Sparrow but it requires to import a file (or scan qr) so I tried to just copy/paste the descriptors into a file and import that but then I get an error that it's not valid. Any ideas what I'm doing wrong here? What is the descriptors file supposed to look like?

Counterintuitively, in Sparrow you need to create a new wallet first, before you can import an xpub 😉. Just create a new wallet and then choose "xpub / watch only wallet"