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
44
83.md
44
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:
|
`service client` sends `create_invoice` event:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{ "create_invoice": {
|
{
|
||||||
"amount": int,
|
"create_invoice":{
|
||||||
"memo": "<Optional[str]>",
|
"amount":"int",
|
||||||
"description_hash": "<Optional[bytes]>"
|
"memo":"<Optional[str]>",
|
||||||
}
|
"description_hash":"<Optional[bytes]>"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
`funding source client` checks the pubkey has permission and sends `generated_invoice` event:
|
`funding source client` checks the pubkey has permission and sends `generated_invoice` event:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{ "generated_invoice": {
|
{
|
||||||
"payment_hash": "<string>",
|
"generated_invoice":{
|
||||||
"payment_request": "<string>"
|
"payment_hash":"<string>",
|
||||||
}
|
"payment_request":"<string>"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -50,10 +52,11 @@ There are two simple clients sending json over [NIP04](https://github.com/nostr-
|
||||||
`service client` sends `pay_invoice` event:
|
`service client` sends `pay_invoice` event:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{ "pay_invoice": {
|
{
|
||||||
"invoice": "<string>",
|
"pay_invoice":{
|
||||||
"note": "<Optional[str]>"
|
"invoice":"<string>",
|
||||||
}
|
"note":"<Optional[str]>"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -62,18 +65,19 @@ There are two simple clients sending json over [NIP04](https://github.com/nostr-
|
||||||
`service client` sends `check_payment` event:
|
`service client` sends `check_payment` event:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{ "check_payment": {
|
{
|
||||||
"payment_hash": "<string>"
|
"check_payment":{
|
||||||
}
|
"payment_hash":"<string>"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
`funding source client` checks the pubkey has permission, checks the payment status and sends `payment_status` event:
|
`funding source client` checks the pubkey has permission, checks the payment status and sends `payment_status` event:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{ "payment_status": {
|
{
|
||||||
"paid": "<bool>"
|
"payment_status":{
|
||||||
}
|
"paid":"<bool>"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user