📌ERC2981

Overview

The Royalties contract is an extension of the OpenZeppelin ERC721Royalty standard. It's designed to manage and automate royalty payments for NFTs (Non-Fungible Tokens).

This contract provides a way to mint NFTs with royalty information, ensuring that the original creators receive compensation whenever their NFTs are traded.

Methods

safeMint

Mints an NFT and sets specific royalty information for it.

Parameters

Parameter

Type

Description

to

address

Address of the person who will receive the NFT.

tokenId

uint256

ID of the NFT to be minted.

receiver

address

Address of the person who will receive the royalties.

feeNumerator

uint96

Numerator for calculating the royalty fee.

Last updated