<p>Yes, it can be done. Just create a smart validator that makes sure, that when the UTXO containing the asset is spend to a new address, it also requires an additional input for the royalty address.</p>
<p>I believe you are correct in your second question.</p>

CC BY-SA 4.0
2021-11-19T20:01:53.977Z
sorry I just rewrote my question with more details ^^
lt512
CC BY-SA 4.0
2021-11-19T19:51:26.433Z
2021-11-19T19:51:26.433Z
Marek Mahut - StakeNuts
<p>You can wrap a native asset into a tailored smart contract, but I think this only makes sense if you also provide the platform to interact with these smart contracts. It is not a sell-and-forget transaction where the buyer can do whatever he wants including using DEXs to trade his asset.</p>

CC BY-SA 4.0
2021-11-20T14:17:57.923Z
2021-11-20T14:17:57.923Z
Jey
<p>I am attempting to create a NFT with % royalties when NFT is re-sold.</p>
<p>My idea would be the following :</p>
<ul>
<li>The <em>symbolic</em> owner of the NFT is defined in the datum of the script e.g. datum = { owner : [ownerwallet] , ... }</li>
<li>The following end points are available in the smart contract :</li>
</ul>
<p><code>A) purchase : if someone want to purchase the NFT (i.e. rename the owner par of the datum) B) define_selling_price : to define at which selling price the purchase operation will work  C) define_who_can_purchase: to ensure that if you want to sell it to someone, nobody else can purchase it (i.e. allowed purchased wallet) </code></p>
<ul>
<li>To ensure that the royalties are paid, the validation script verifies that there are only two resulting UTXO of the &quot;purchase&quot; endpoint, the first UTXO contains x% of ADA to hardwritten address (i.e. royalty ) , the second UTXO is copy of the exact same script (for future selling)</li>
</ul>
<p>Could that be done in the described way above ?
What is the exhaustive list of the parameters available for a smart validator to work?</p>
<p>Thank you in advance</p>

CC BY-SA 4.0
2022-04-28T05:30:18.230Z
Should one of the answers be marked as accepted?
gRebel
<nft>
NFT royalties Cardano
# NFT royalties Cardano

(Asked by: username_0 on 2021-11-19)

I am attempting to create a NFT with % royalties when NFT is re-sold.

My idea would be the following :

* The *symbolic* owner of the NFT is defined in the datum of the script e.g. datum = { owner : [ownerwallet] , ... }
* The following end points are available in the smart contract :

`A) purchase : if someone want to purchase the NFT (i.e. rename the owner par of the datum) B) define_selling_price : to define at which selling price the purchase operation will work C) define_who_can_purchase: to ensure that if you want to sell it to someone, nobody else can purchase it (i.e. allowed purchased wallet)`

* To ensure that the royalties are paid, the validation script verifies that there are only two resulting UTXO of the "purchase" endpoint, the first UTXO contains x% of ADA to hardwritten address (i.e. royalty ) , the second UTXO is copy of the exact same script (for future selling)

Could that be done in the described way above ?
What is the exhaustive list of the parameters available for a smart validator to work?

Thank you in advance

**Tags:** nft
> **Comments:**
> **username_1**: Should one of the answers be marked as accepted?  

---

## 2 answers

### Answer by username_2 on 2021-11-19. Score: 1

Yes, it can be done. Just create a smart validator that makes sure, that when the UTXO containing the asset is spend to a new address, it also requires an additional input for the royalty address.

I believe you are correct in your second question.

> **Comments:**
> **username_0**: sorry I just rewrote my question with more details ^^  

---

### Answer by username_3 on 2021-11-20. Score: 0

You can wrap a native asset into a tailored smart contract, but I think this only makes sense if you also provide the platform to interact with these smart contracts. It is not a sell-and-forget transaction where the buyer can do whatever he wants including using DEXs to trade his asset.


---

