Skip to content

Implement non-blocking melt that makes use of new pending state #281

@callebtc

Description

@callebtc

In #277 (see NUT-07 update) we implemented a new pending state that is returned as a response to POST /check. With this, it is possible to implement a non-blocking Wallet.melt() method that does not need to keep the connection open until the Lightning invoice is paid (or fails). Instead, we could fire it off and recheck periodically using POST /check whether the invoice is still pending, succeeded, or failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions