Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

melt returns empty preimage for quotes that can be settled internally #625

Open
elnosh opened this issue Sep 24, 2024 · 3 comments
Open

Comments

@elnosh
Copy link
Contributor

elnosh commented Sep 24, 2024

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.

@callebtc
Copy link
Collaborator

Preimage can't be returned internally (not available)

@callebtc callebtc closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2024
@callebtc
Copy link
Collaborator

Is it possible after all?

@callebtc callebtc reopened this Sep 26, 2024
@elnosh
Copy link
Contributor Author

elnosh commented Sep 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants