# Referral

### **How It Works**

#### **1. Generate Your Referral Link**

* Create your Townies Smart Account
* Go to the **Referral** section.
* Click **“Generate Link”** — your unique on-chain referral URL is created instantly.
* Example:\
  `https://app.townies.games/?ref=0xYourWalletAddress`

#### **2. Share & Invite**

* Share your link with friends, communities, or guilds.
* Anyone who joins through your link becomes your **referred Townie**.

#### **3. Earn Rewards**

Every referred player strengthens your economy:

* You earn 5% of their **in-game spending**, paid out in **$GOLD**.
* Referred players receive a **+5% permanent Wood production bonus**, helping them progress faster from day one.

A win-win system designed to reward both you **and** the builders you bring into Townies.

#### Reward Distribution

| Action by Referral | Your Reward                               | Type     | Notes                            |
| ------------------ | ----------------------------------------- | -------- | -------------------------------- |
| Earn $**GOLD**     | 5% of all $**GOLD** used by your referred | On-chain | Sent directly to referrer wallet |

<figure><img src="/files/sAODaM6kPs8xmf9742i5" alt=""><figcaption></figcaption></figure>


---

# 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.townies.games/townies/referral.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.
