draft mandatory kind=10021 kind=21000 kind=1022
A TollGate that accepts Cashu tokens as payment may advertise its pricing using the following tags.
{
"kind": 10021,
// ...
"tags": [
// <TIP-01 tags>
["price_per_step", "<bearer_asset_type>", "<price>", "<unit>", "<mint_url>", "<min_steps>"],
["price_per_step", "...", "...", "...", "...", "..."],
]
}
Tags:
price_per_step: (one or more)
<bearer_asset_type> Always cashu.<price> price for purchasing 1 time the step_size.<unit> unit or currency.<mint_url> Accepted mint. Example: 210 sats per minute (60000ms)<min_steps> Minimum amount of steps to purchase using this mint. Positive whole number, default 0 ⚠️ TENTATIVE: Strucuture of incorporation of fees/min purchases is not final<price> MUST be the same across all occurrences of the same <unit> value.{
"kind": 10021,
// ...
"tags": [
// <TIP-01 tags>
["price_per_step", "cashu", "210", "sat", "https://mint.domain.net", 1],
["price_per_step", "cashu", "210", "sat", "https://other.mint.net", 1],
["price_per_step", "cashu", "500", "eur", "https://mint.thirddomain.eu", 3],
]
}
When the customer pays an exact multiple of <price_per_step> and adds <mint_fee>. The TolGate MUST allot at least that amount of steps to the customer.
{
"kind": 21000,
// ...
"tags": [
// <TIP-01 tags>
["payment", "cashuB..."]
]
}
Tags:
payment: Cashu Token