pay lightning works

This commit is contained in:
callebtc
2022-09-17 01:14:57 +03:00
parent 184b0cebbb
commit c3ae92edd1
10 changed files with 293 additions and 65 deletions

View File

@@ -142,6 +142,8 @@ async def melt(payload: MeltPayload):
"""
Requests tokens to be destroyed and sent out via Lightning.
"""
ok, preimage = await ledger.melt(payload.proofs, payload.amount, payload.invoice)
return {"paid": ok, "preimage": preimage}
@app.post("/check")