Currently, calling POST /melt is blocking until either the Lightning invoice succeeds or fails. This is not necessary anymore because we now have a new pending state in the POST /check response (see here: https://github.com/cashubtc/nuts/pull/21).
POST /melt should have an option to immediately return. I'm unsure what the best way would be to spec this out.
Input is very much appreciated.
Options:
POST /melt?blocking=false with a URL param
PostMeltRequest with optional blocking: false field in json
Currently, calling
POST /melt
is blocking until either the Lightning invoice succeeds or fails. This is not necessary anymore because we now have a newpending
state in thePOST /check
response (see here: https://github.com/cashubtc/nuts/pull/21).POST /melt
should have an option to immediately return. I'm unsure what the best way would be to spec this out.Input is very much appreciated.
Options:
POST /melt?blocking=false
with a URL paramPostMeltRequest
with optionalblocking: false
field in jsonPOST /melt/async
respond-async