Add Nano to V4V specification

pull/303/head
Karl Oczadly 2021-10-11 19:51:13 +01:00 zatwierdzone przez GitHub
rodzic 24e447a16a
commit 8fd0def332
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 34 dodań i 0 usunięć

Wyświetl plik

@ -423,3 +423,37 @@ and guest.
...
</channel>
```
#### [Nano](https://nano.org)
For the `<podcast:value>` tag, the following attributes MUST be used:
- `type` (*required*): "nano"
- `method` (*required*): "sendblock"
- `suggested` (*optional*): A float representing the amount in nano (eg. 0.025)
For the `<podcast:valueRecipient>` tag, the following attributes MUST be used:
- `type`: "account"
- `address`: \<*destination nano_xxx address*\>
- `split`: \<*the number of shares*\>
#### Example
<details><summary>Click to expand example</summary>
***Note:** The following is a made up example, and the example accounts shown are for demonstration purposes only.*
```xml
<podcast:value type="nano" method="sendblock" suggested="0.0000001">
<podcast:valueRecipient
name="John Vallis (Host)"
type="account"
address="nano_3fegpdys1a3ncscmhagn3yxdrf5s9kb8drorsi75399omnwjbcp87cyibzyx"
split="50"
/>
<podcast:valueRecipient
name="Paul Itoi (Guest)"
type="account"
address="nano_1ero6egquwf3bkh4h5ksf7ghumehn3c131opqe65bsi5q17huwjsnhcp8kxd"
split="50"
/>
</podcast:value>
```
</details>