> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# ERC2981 on Solana: NFT Royalties

> Map ERC2981 royalty info to Solana NFT metadata, and see which Solana NFT standards restrict transfers to programs that pay royalties.

ERC2981 lets an NFT contract report a royalty amount, and marketplaces decide
whether to pay it. Solana NFTs store the royalty rate and recipients in
metadata, and some NFT standards restrict transfers to programs that pay it.

## What ERC2981 defines

ERC2981 adds one function, `royaltyInfo(tokenId, salePrice)`, which returns a
receiver and an amount. The standard only reports the royalty. Nothing in the
token contract forces a marketplace to pay it, so enforcement depends on each
marketplace.

## Where royalty data lives on Solana

With [Metaplex Token Metadata](/developers/docs/tokens/metaplex), the royalty
settings are fields of the NFT's metadata account. Any marketplace reads them
from the same place for every NFT.

| ERC2981 | Metaplex metadata | Notes |
| --- | --- | --- |
| Royalty amount from `royaltyInfo()` | `sellerFeeBasisPoints` | A rate in basis points. 500 means 5% of the sale price. |
| Royalty receiver | `creators` | A list of addresses, each with a share of the royalty. |
| Per-token override | Per-NFT metadata | Each NFT has its own metadata account, so rates can differ within a collection. |

## Choose how royalties are protected

The metadata fields alone work like ERC2981: marketplaces can ignore them. No
Solana standard charges a royalty on a plain wallet-to-wallet transfer. To make
royalties hard to bypass, pick a standard that limits which programs can move
the NFT, so sales go through programs that pay.

<Columns cols={2}>
<Card title="Token Metadata NFTs" href="/developers/docs/tokens/metaplex" arrow>

The seller fee is advisory. Marketplaces choose whether to honor it.

</Card>
<Card title="Programmable NFTs" href="https://www.metaplex.com/docs/smart-contracts/token-metadata/pnfts">

Transfers go through the Token Metadata program, which applies the creator's
rule set, a list of programs allowed to move the NFT.

</Card>
<Card title="Metaplex Core" href="https://www.metaplex.com/docs/smart-contracts/core">

A royalties plugin on the asset or the collection stores the rate, the creators,
and a rule set of allowed programs.

</Card>
<Card title="Transfer hook" href="/developers/docs/tokens/extensions/transfer-hook" arrow>

For a Token Extensions mint, your own program runs on each transfer and can
reject it.

</Card>
</Columns>

<Warning>

**Transfer fees are not royalties**

The [transfer fee extension](/developers/docs/tokens/extensions/transfer-fees)
withholds a percentage of the tokens moved. An NFT transfer moves one unit, so
it cannot charge a share of a sale price paid in another token.

</Warning>

## How a royalty is paid

A sale on a Solana marketplace is one transaction that pays the seller, pays the
creators, and moves the NFT.

<Steps>
<Step title="Buyer signs">

The transaction calls the marketplace program with the price.

</Step>
<Step title="Program reads metadata">

It loads the seller fee and the creator shares.

</Step>
<Step title="Payments split">

The program pays each creator their share and the seller the rest.

</Step>
<Step title="NFT moves">

The transfer runs in the same transaction, so payment and delivery succeed or
fail together.

</Step>
</Steps>

## Side by side

| Question | ERC2981 | Solana |
| --- | --- | --- |
| Where is the rate stored? | In each NFT contract | In each NFT's metadata account or Core plugin |
| Who can receive royalties? | One receiver per token | Several creators with shares |
| Is payment enforced? | No. Marketplaces opt in. | Only with programmable NFTs, Core plugins, or a transfer hook, which limit transfers to programs that pay the royalty |
| Who can change it? | The contract's owner logic | The metadata update authority, while the metadata is mutable |

## Next steps

<Columns cols={3}>
<Card title="ERC721 on Solana" href="/developers/docs/migrate-to-solana/ethereum/standards/erc721">

Compare the NFT standards available on Solana.

</Card>
<Card title="Metaplex metadata" href="/developers/docs/tokens/metaplex" arrow>

Create and update a metadata account.

</Card>
<Card title="ERC Standards" href="/developers/docs/migrate-to-solana/ethereum/standards">

Find the Solana equivalent of another standard.

</Card>
</Columns>
