Configuring Royalties for NFTs
Aventus 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.
This page is kept simple to show the function signature and how it can be used. To understand the various variable names and their constraints, HERE is an explainer. For a further deep-dive into how the Aventus Network supports NFTs, check this out.
Examples
- NO ROYALTY RECIPIENT
- ONLY ONE ROYALTY RECIPIENT
- MULTIPLE ROYALTY RECIPIENTS
royalties = [];
royalties = [
{
recipient_t1_address: "0x1a2...c3b", //Tier 1 Blockchain address
rate: {
parts_per_million: 10000, // 1%
}
}
];
royalties = [
{
recipient_t1_address: "0x1a2...c3b", //Tier 1 Blockchain address for the FIRST recipient
rate: {
parts_per_million: 15000, // 1.5%
},
},
{
recipient_t1_address: "0x1a2...c3b", //Tier 1 Blockchain address for the SECOND recipient
rate: {
parts_per_million: 10000, // 1.0%
},
}
];
The configured royalties
value can now be added to the mint transaction.