Skip to main content

NFT Royalty Enforcement (ERC-2981)

Implement ERC-2981 royalty standard to inform marketplaces of creator royalties. Implement ERC-2981 royalty standard to inform marketplaces of creator royalties.

Explanation

ERC-2981 is the standard for NFT royalties. Marketplaces query royaltyInfo to determine how much to pay the creator on secondary sales. Bps (basis points) — 250 = 2.5%. supportsInterface must declare ERC-2981 support.

Code


Canonical knowledge ID: code-example:nft-royalty-erc-2981