From 3dae999510a23c00a4e233309a1486b353a4d2e3 Mon Sep 17 00:00:00 2001 From: Kay Date: Thu, 28 Nov 2024 12:32:06 +0000 Subject: [PATCH] update. --- 11.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/11.md b/11.md index 1eb0096..aee1bba 100644 --- a/11.md +++ b/11.md @@ -266,10 +266,10 @@ Relays that require payments may want to expose their fee schedules. { "payments_url":"https://example.com/payments", "fees":{ - "admission":{ + "admission":[{ "amount":1000000, "unit":"msats" - }, + }], "subscription":[ { "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. - `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.