1

I'm currently working on an NFT marketplace, and I would like for creators to be able to add a certain percentage as royalties for future sales like rarible does. So what I wanna know is do I add this feature in the NFT smart contract i.e when the user mints an item, royalties information is added before calling the _mint() function

or in the Market smart contract i.e when the user list the item on the marketplace the royalties information is added to the item struct and then the market contract is responsible for making the royalties transfer when the sale is initiated.

1 Answer 1

0

There's the EIP-2981 NFT Royalty Standard.

A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal support for royalty payments across all NFT marketplaces and ecosystem participants.

2
  • That doesn't explain how exactly it should be applied in a solidity project though. Jul 11, 2022 at 3:43
  • @TerryWindwalker The standard explain how a contract should provide royalty info, then it is up to the markets how to use it. The specs explain some use cases that it covers.
    – Ismael
    Jul 11, 2022 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.