Royalty
Royalty
implements EIP-2981 NFT royalty standard for royalty
support on NFT marketplaces, allowing you to take a percentage fee of secondary sales of your NFTs.
View on GitHub
Usage
The Royalty
extension is an abstract contract, and expects you to implement the following functions by yourself:
This is an example smart contract demonstrating how to inherit from this extension and override the functions to add (optional) custom functionality.
Base Contracts Implementing This Extension
All NFT contracts (ERC721
or ERC1155
) implement this extension.