# 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).&#x20;

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

## Methods

## <mark style="color:blue;">`safeMint`</mark>

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.            |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.volary.io/template-library/smart-contracts/erc2981.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
