# Referrals

The Dragobits referral system is a unique, fully on-chain feature that lets players earn rewards by inviting others to join the game. Here’s how it works:

1. **Usernames as Referral Codes**\
   Usernames are resolved to the token ID of the user's profile Dragobit through frontend or off-chain logic, and this token ID is used as the referrer in the contract. Consequently, any existing Dragobit's token ID can be used as a referral code.
2. **Setting Your Username**\
   There is a one-time protocol [fee](/getting-started/quickstart/protocol-fees.md) required to set your username. Setting a username is optional, but it is essential if you wish to participate in the referral system and start earning from your invites.
3. **Referral Rewards**\
   When you refer new players to Dragobits, and they use your username as their referral code, you earn a share of their mint, [reroll](/getting-started/rerolls.md) and [training](/game/training.md) fees. This reward is automatically sent to your Dragobits [vault](/getting-started/quickstart/publish-your-docs.md) on-chain.
4. **Self-Referral**\
   Players may wonder if they can refer themselves by creating a second account. The answer is yes—you are free to set up multiple accounts and refer yourself if you choose to do so. However, there’s an advantage to using the referral code of a more active player.
5. **Referree Rewards**\
   By using the referral code of an active player, the referred Dragobit has a chance to gain additional strength during training sessions. If the referrer's Dragobit is in the arena while the referred Dragobit is sent to training, the referred Dragobit will have a chance to gain a percentage of the referrer's strength.


---

# 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.dragobits.com/getting-started/referrals.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.
