Repository navigation
Value for value
This article explains part of Radio 2.0 in plain words. It is not normative: where it differs from the specification, the specification is right.
Value for value is the Radio 2.0 way for listeners to support a station directly: the manifest lists wallet addresses and splits, and the listener's own wallet pays each recipient. The value block copies the shape of the Podcasting 2.0 <podcast:value> tags, in JSON, so apps that already pay podcasts can pay stations.
| Defined in | Specification section 8 |
| Manifest member |
value (also value inside events) |
| Based on | Podcasting 2.0 podcast:value and podcast:valueRecipient
|
| Payment type | lightning |
| Methods |
keysend, lnaddress
|
| Status | Draft |
value has type (lightning), method (keysend or lnaddress), an optional suggested amount per payment, and recipients: 1 to 50 objects. A recipient has type (node for a node public key, lnaddress for a Lightning Address), address and split (an integer share), and optional name, fee, customKey and customValue. role (station, host, artist, producer, app or other) is a display hint added by this standard, and wallets must not send it.
The sum of split over all recipients must be greater than 0. A recipient receives the amount times its split divided by the sum of splits. A recipient with fee: true is an intermediary and must be shown as one.
{
"type": "lightning",
"method": "lnaddress",
"recipients": [
{ "name": "Dune FM", "type": "lnaddress", "address": "station@wallet.example.com", "split": 90, "role": "station" },
{ "name": "Player app", "type": "lnaddress", "address": "app@wallet.example.net", "split": 10, "fee": true, "role": "app" }
]
}Here the station receives 90 shares in 100 and the app, marked as a fee, 10.
An item-level value replaces the manifest's value, as an item's value replaces a channel's in Podcasting 2.0. It arrives in now_playing.value, or in a value_change event after it, and applies until the next now_playing. A now_playing without value restores the manifest's value. A value_change with value: null does so at once. A publisher that wants an override to last a whole show repeats it with each now_playing. The override replaces the whole block; there is no partial merging. See Event types.
Payments go from the listener's wallet straight to each recipient. The standard defines no payment flow through a publisher, a directory or a player, and none of them may receive, hold or forward a payment for someone else under it. An intermediary that takes a share must appear as its own recipient with fee: true. A publisher must list only addresses their owners gave for this purpose.
How to combine an artist's own value block (for example a Podcasting 2.0 music feed) with a station's splits during a song is not decided. See Open questions.
- A split sum of zero (
manifest--split-sum-zero.jsonandevent--value-split-sum-zero.jsonfail). - Sending
roleto a wallet. - Leaving an override in place after the next item starts.
Radio 2.0 is an open standard, MIT licensed. Documentation: radio2.org. Questions: Discussions.
Overview
The manifest
Discovery and identity
Live data
Money
Implementations and tools
- Implementations
- Reference implementation
- radio2 command line tool
- Create a manifest
- Conformance
- Stations
- Brand and badges
Project
Documentation
Community