You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tags/value-recipient.md
+42-8Lines changed: 42 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,4 @@
1
1
# Value Recipient
2
-
3
2
`<podcast:valueRecipient>`
4
3
5
4
The `valueRecipient` tag designates various destinations for payments to be sent to during consumption of the enclosed media. Each recipient is considered to receive a "split" of the total payment according to the number of shares given in the `split` attribute.
@@ -20,13 +19,16 @@ Multiple
20
19
21
20
### Attributes
22
21
23
-
-`type`**(required)**: A slug that represents the type of receiving address that will receive the payment.
24
-
-`address`**(required)**: This denotes the receiving address of the payee.
25
-
-`split`**(required)**: The number of shares of the payment this recipient will receive.
26
-
-`name` (recommended): A free-form string that designates who or what this recipient is.
27
-
-`customKey` (optional): The name of a custom record key to send along with the payment.
28
-
-`customValue` (optional): A custom value to pass along with the payment. This is considered the value that belongs to the `customKey`.
29
-
-`fee` (optional) If this attribute is not specified, it is assumed to be false.
22
+
*`type`**(required)**: A slug that represents the type of receiving address that will receive the payment.
23
+
Known values:
24
+
-`node` — a Lightning Network node public key. The `address` attribute should contain the hex-encoded pubkey.
25
+
-`lnaddress` — a Lightning Address (e.g. `user@wallet.com`). The `address` attribute should contain the Lightning Address. Apps should resolve the pubkey and custom record data by calling `https://<domain>/.well-known/keysend/<username>` before sending payment. Results should be cached to minimize network requests.
26
+
*`address`**(required)**: This denotes the receiving address of the payee.
27
+
*`split`**(required)**: The number of shares of the payment this recipient will receive.
28
+
*`name` (recommended): A free-form string that designates who or what this recipient is.
29
+
*`customKey` (optional): The name of a custom record key to send along with the payment.
30
+
*`customValue` (optional): A custom value to pass along with the payment. This is considered the value that belongs to the `customKey`.
31
+
*`fee` (optional) If this attribute is not specified, it is assumed to be false.
30
32
31
33
### Examples
32
34
@@ -59,3 +61,35 @@ Multiple
59
61
/>
60
62
</podcast:value>
61
63
```
64
+
65
+
Lightning Address recipients can be used in place of, or mixed with, `node` recipients in the same value block:
0 commit comments