# Royalties

The one piece of WNS that is unique is the implementation of royalties. There are two key components to royalties on WNS.

1. **Storing creators** - Creators and their ownership are stored in the extra\_metadata field of the NFT metadata account. The amount of royalties for the NFT are stored as the first field with ROYALTY\_BASIS\_POINTS as the key and the basis points value of royalties for the NFT as the value. The following metadata fields are the creator address as the key and their share as a percent as the value.<br>
2. **Distributing royalties** - Royalties are sent via a pre-transfer instruction that also marks the transfer as completed in a way that can be read from the transfer hook. Royalty funds are placed in a separate account and are split up based on the creator shares in the Metadata of the NFT that was transferred. Creators can claim their share of royalties by calling the claim function and withdrawing the assets.


---

# 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.wenwencoin.com/wns-program/royalties.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.
