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

Cryptocurrency News and Public Mining Pools

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

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!

submitted by /u/Creme-Exciting
[link] [comments]