Kind 23199 is not stored and not broadcast. The relay reads it, answers the signer, and forgets it.
topic (t tag) | who may send | what happens |
|---|---|---|
subscription | a gateway the policy authorises (kind 30333/23197 authors), or an admin | answers {gateway, paid, remaining_seconds, paid_until, rate_sats_per_day, blocked?} |
config | TORLY_ADMINS (comma-separated hex) | applies rate_sats_per_day, block, unblock to the ledger and answers with what changed |
The answer is a normal event from the relay's key, tagged t = the topic, p = the asker and
e = the request id, so a gateway that subscribed for it receives it and nothing else does.
A relay charges only when its ledger has a rate: TORLY_LEDGER_FILE (default
DATA_DIR/subscriptions.json) holding rate_sats_per_day and the paid subscriptions. With no rate,
every authorised gateway is admitted and no payment is implied. The ledger's blocked map is the
operator's own decision and outranks payment: a blocked gateway is refused even while paid.