mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 08:25:53 -05:00
update.
This commit is contained in:
parent
77425aca40
commit
3dae999510
10
11.md
10
11.md
|
@ -266,10 +266,10 @@ Relays that require payments may want to expose their fee schedules.
|
||||||
{
|
{
|
||||||
"payments_url":"https://example.com/payments",
|
"payments_url":"https://example.com/payments",
|
||||||
"fees":{
|
"fees":{
|
||||||
"admission":{
|
"admission":[{
|
||||||
"amount":1000000,
|
"amount":1000000,
|
||||||
"unit":"msats"
|
"unit":"msats"
|
||||||
},
|
}],
|
||||||
"subscription":[
|
"subscription":[
|
||||||
{
|
{
|
||||||
"amount":5000000,
|
"amount":5000000,
|
||||||
|
@ -299,17 +299,17 @@ Relays that require payments may want to expose their fee schedules.
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
// ...
|
// other fields...
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The `subscription` and `publication` are fee models, their object value and `admission` are fee rules.
|
The `subscription`, `admission` and `publication` are fee models, their object value are fee rules.
|
||||||
|
|
||||||
- `payments_url` is a link to a human-readable page which user can use to see and/or pay for fees on this relay.
|
- `payments_url` is a link to a human-readable page which user can use to see and/or pay for fees on this relay.
|
||||||
|
|
||||||
- `fees` includes the list of different fees required for each mode on this relay:
|
- `fees` includes the list of different fees required for each mode on this relay:
|
||||||
|
|
||||||
- `admission` is the fee that user need to pay to access to relay, if only `admission` is presented that means only admission fee is required to get access to relay.
|
- `admission` is the fee that user need to pay to access to relay, if only `admission` is presented that means only admission fee is required to get access to relay. multiple admissions MAY mean different type of admissions with different access levels.
|
||||||
|
|
||||||
- `subscription` is the fee that user have to pay to access the relay for a fixed amount of time. The `period` field is the access time in seconds. If subscription and admission present at the same time, admission fee MUST get paid as well before subscribing. Otherwise only subscription need to get paid.
|
- `subscription` is the fee that user have to pay to access the relay for a fixed amount of time. The `period` field is the access time in seconds. If subscription and admission present at the same time, admission fee MUST get paid as well before subscribing. Otherwise only subscription need to get paid.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user