draft
mandatory
kind=21021
kind=21000
Tollgate details are expressed through the following Nostr event
{
kind: 21021,
pubkey: "24d6...3662", // TollGate identity
content: "",
created_at: UNIX_TIMESTAMP,
tags: [
["metric", "milliseconds"],
["step_size", "60000"],
["price_per_step", "210", "sat"],
["mint", "https://mint.domain.net"],
["mint", "https://mint.anotherdomain.net"],
["tips", "1", "2", "5", "..."]
]
}
Tags:
metric
: milliseconds
or bytes
step_size
: positive whole number. Example: 1 minute step sizeprice_per_step
: price for purchasing 1 time the step_size
, third argument is the price unit. Example: 210 sats per minute (60000ms)mint
: (one or more) Accepted Cashu mintstips
: List of implemented TollGate TIP’s represented as numbers{
kind: 21000,
pubkey: "63gy...9xvq", // Can be randomly generated
content: "",
created_at: UNIX_TIMESTAMP,
tags: [
["p", "24d6...3662"], // TollGate identity (pubkey)
["device-identifier", "mac", "00:1A:2B:3C:4D:5E"],
["payment", "cashuB..."]
]
}
Tags:
p
: pubkey of the TollGate (from the TollGate Details event) who takes the paymentdevice-identifier
: (hardware) identifier of the customer’s device. Second argument specifies kind of identifier, third argument is the identifier value.payment
: Cashu token