nutshell icon indicating copy to clipboard operation
nutshell copied to clipboard

melt returns empty preimage for quotes that can be settled internally

Open elnosh opened this issue 1 year ago • 3 comments

created a mint and melt quote pair with the same invoice and when tried melting in /v1/melt/bolt11, it returned the state as paid but the preimage field was empty.

elnosh avatar Sep 24 '24 18:09 elnosh

Preimage can't be returned internally (not available)

callebtc avatar Sep 25 '24 07:09 callebtc

Is it possible after all?

callebtc avatar Sep 26 '24 08:09 callebtc

not sure for all backends but with LND you could get the preimage from the invoice created in the mint quote request from LookupInvoice call https://lightning.engineering/api-docs/api/lnd/lightning/lookup-invoice/index.html

elnosh avatar Sep 26 '24 14:09 elnosh