mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
Cleaned json
This commit is contained in:
parent
5d4d79228a
commit
3a1393a861
18
83.md
18
83.md
|
@ -27,8 +27,9 @@ There are two simple clients sending json over [NIP04](https://github.com/nostr-
|
|||
`service client` sends `create_invoice` event:
|
||||
|
||||
```json
|
||||
{ "create_invoice": {
|
||||
"amount": int,
|
||||
{
|
||||
"create_invoice":{
|
||||
"amount":"int",
|
||||
"memo":"<Optional[str]>",
|
||||
"description_hash":"<Optional[bytes]>"
|
||||
}
|
||||
|
@ -38,7 +39,8 @@ There are two simple clients sending json over [NIP04](https://github.com/nostr-
|
|||
`funding source client` checks the pubkey has permission and sends `generated_invoice` event:
|
||||
|
||||
```json
|
||||
{ "generated_invoice": {
|
||||
{
|
||||
"generated_invoice":{
|
||||
"payment_hash":"<string>",
|
||||
"payment_request":"<string>"
|
||||
}
|
||||
|
@ -50,7 +52,8 @@ There are two simple clients sending json over [NIP04](https://github.com/nostr-
|
|||
`service client` sends `pay_invoice` event:
|
||||
|
||||
```json
|
||||
{ "pay_invoice": {
|
||||
{
|
||||
"pay_invoice":{
|
||||
"invoice":"<string>",
|
||||
"note":"<Optional[str]>"
|
||||
}
|
||||
|
@ -62,17 +65,18 @@ There are two simple clients sending json over [NIP04](https://github.com/nostr-
|
|||
`service client` sends `check_payment` event:
|
||||
|
||||
```json
|
||||
{ "check_payment": {
|
||||
{
|
||||
"check_payment":{
|
||||
"payment_hash":"<string>"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
`funding source client` checks the pubkey has permission, checks the payment status and sends `payment_status` event:
|
||||
|
||||
```json
|
||||
{ "payment_status": {
|
||||
{
|
||||
"payment_status":{
|
||||
"paid":"<bool>"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user