diff --git a/api.ts b/api.ts index 02ecc2b..94b2c36 100644 --- a/api.ts +++ b/api.ts @@ -44,7 +44,7 @@ router.get("/blocks", (context) => { context.response.body = blocks; }); -const responseMetadata = JSON.stringify([["text/plain", "Donation on taproot.watch"]]); +const responseMetadata = JSON.stringify([["text/plain", "Donation to taproot.watch"]]); router.get("/invoice", (context) => { if (!config.donation) { context.response.status = 400; @@ -89,8 +89,8 @@ router.get("/invoice/callback", async (context) => { await Deno.writeTextFile( "./addinvoice_payload.json", JSON.stringify({ - memo: "Donation", value_msat: amount, + memo: "Donation to taproot.watch", description_hash: sha256(responseMetadata, "utf8", "base64"), }) );