Skip to content
Coin Ceylon Forum

What is the best example one can learn how to charge royalties every time a NFT is re-sold?

Asked · 2K views · in Community Technical Support

0

I want to create some cool NFTs art, which I want to distribute for free and then get a small royalty (5%) every time the current owner sells a token.

I saw ERC721 and ERC1155 but they don't cover royalties in any way. I learned from the OpenZeppelin examples.

I don't want to reinvent the wheel, this is people's money I am handling here, so I am looking for a solid solidity example that I can learn from.

What should I do?

Thanks!

Geek LK· 946 rep
asked
Log in to comment
0

The problem is that any NFT you create could be sent to a contract and that contract ownership could be sold instead of the NFT. That would skip any logic you built to provide royalties. You’d have to disallow transferring the NFT to a contract.

Randula JLK· 1.3K rep
answered
Log in to comment
0

Don't. What you're trying to do here is trying to copy a dysfunctional technical system, while you could do something way better that actually achieves your goals.

answered
Log in to comment

Your answer

Log in or join the community to answer this question.