Configuring Royalties for NFTs
Voucher Ledger NFTs can be configured to have royalties during the minting process. On the previous page, royalties was set as an empty set. Here, we'll explore how royalties can be added to the minting transaction.
Examples
- NO ROYALTY RECIPIENT
- ONLY ONE ROYALTY RECIPIENT
- MULTIPLE ROYALTY RECIPIENTS
royalties = [];
royalties = [
{
recipient_t1_address: "0x1a2...c3b", //Tier 1 Parachain address
rate: {
parts_per_million: 10000, // 1%
},
},
];
royalties = [
{
recipient_t1_address: "0x1a2...c3b", //Tier 1 Parachain address for the FIRST recipient
rate: {
parts_per_million: 15000, // 1.5%
},
},
{
recipient_t1_address: "0x1a2...c3b", //Tier 1 Parachain address for the SECOND recipient
rate: {
parts_per_million: 10000, // 1.0%
},
},
];
The configured royalties value can now be added to the mint transaction.