From 3a1393a8613df26c1cebb9fd221e58f2f24f2d40 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 12 Apr 2023 13:27:24 +0100 Subject: [PATCH] Cleaned json --- 83.md | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/83.md b/83.md index f8ce804..8048451 100644 --- a/83.md +++ b/83.md @@ -27,21 +27,23 @@ There are two simple clients sending json over [NIP04](https://github.com/nostr- `service client` sends `create_invoice` event: ```json -{ "create_invoice": { - "amount": int, - "memo": "", - "description_hash": "" -} +{ + "create_invoice":{ + "amount":"int", + "memo":"", + "description_hash":"" + } } ``` `funding source client` checks the pubkey has permission and sends `generated_invoice` event: ```json -{ "generated_invoice": { - "payment_hash": "", - "payment_request": "" - } +{ + "generated_invoice":{ + "payment_hash":"", + "payment_request":"" + } } ``` @@ -50,10 +52,11 @@ There are two simple clients sending json over [NIP04](https://github.com/nostr- `service client` sends `pay_invoice` event: ```json -{ "pay_invoice": { - "invoice": "", - "note": "" -} +{ + "pay_invoice":{ + "invoice":"", + "note":"" + } } ``` @@ -62,18 +65,19 @@ There are two simple clients sending json over [NIP04](https://github.com/nostr- `service client` sends `check_payment` event: ```json -{ "check_payment": { - "payment_hash": "" - } +{ + "check_payment":{ + "payment_hash":"" + } } - ``` `funding source client` checks the pubkey has permission, checks the payment status and sends `payment_status` event: ```json -{ "payment_status": { - "paid": "" - } +{ + "payment_status":{ + "paid":"" + } } ```