> For the complete documentation index, see [llms.txt](https://docs.megapot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.megapot.io/build-on-megapot/share-and-earn.md).

# Share a Link & Earn

The fastest way to earn with Megapot needs zero code. Sign in, copy your link, share it. When the people you refer buy tickets, you earn a cut of the fees, plus a cut of their winnings.

## Your link, in 60 seconds

1. **Sign in** at [megapot.io](https://megapot.io). Use your email or a wallet you already have. If you don't have a wallet, one is created for you automatically, with nothing to install.
2. **Grab your link.** A unique 6-character referral code is generated for you the moment you sign up. Your link is:

   ```
   https://megapot.io/r/{YOUR_CODE}
   ```

   Find and copy your exact link, plus ready-made share images, at [megapot.io/invite](https://megapot.io/invite).
3. **Share it anywhere:** your bio, a post, a newsletter, a group chat, a video description.
4. **Earn.** When someone opens your link and buys tickets, you earn **8% of their ticket fees** and **8% of their winnings**.

{% hint style="info" %}
Your `/r/` link drops a **30-day first-touch attribution cookie**. If someone clicks today and buys within 30 days, you still get credit. You claim your earnings right inside the app.
{% endhint %}

Want the exact earnings math, including how second-level referrals work? See [Referral economics](/getting-started/how-to-refer/referral-economics-v2.md).

***

## Want a landing page?

A link alone works. A simple page of your own, with your name, your pitch, and one big button, converts better.

{% hint style="info" %}
**One-click and one-prompt launch tooling is coming very soon.** We are building a way to spin up a branded referral site in a couple of clicks. For now, the fastest path is to hand an AI agent one of the starter prompts below.
{% endhint %}

### Build it with your AI agent

Paste any of these into your AI assistant (Claude, ChatGPT, Cursor, and others). Each one points the agent at [llms.megapot.io](https://llms.megapot.io), where it reads the live Megapot recipes and does the work. Swap in your own referral link and wallet where noted.

**A marketing page for your referral link:**

```
Using llms.megapot.io, how can I build a marketing page for my Megapot
referral link (https://megapot.io/r/{YOUR_CODE}) and help me deploy it to
Vercel for free?
```

**A site that sells quick-pick tickets:**

```
Using llms.megapot.io, how can I build a website that sells quick-pick
Megapot tickets, using my wallet address (from megapot.io/dashboard) as the
referrer and my referral link from megapot.io/invite?
```

**Reward your own users with tickets:**

```
Using llms.megapot.io, how can I gift Megapot tickets to my app's users as a
reward, paying for them from my own wallet and earning referral fees?
```

**A live jackpot dashboard or leaderboard:**

```
Using llms.megapot.io and the Megapot Data API, how can I build a leaderboard
that shows recent winners and the current jackpot size?
```

**Understand the protocol contracts:**

```
Using llms.megapot.io, tell me about the different Megapot protocol contracts
and their uses for developers. Include the mainnet address and a link to the
contract code on Basescan for each.
```

{% hint style="info" %}
Once your agent has something running, keep prompting it for changes: your colors, your copy, your logo, extra sections. It already has the Megapot recipes loaded.
{% endhint %}

***

## For causes / 100% to you

Running a fundraiser, a community pool, or a campaign where you want **all** the fees routed to one wallet? Megapot offers white-label **funding pages** at `megapot.io/fund/{slug}` that send fees straight to a partner wallet.

These are **team-provisioned**, not self-serve, so [contact the team](https://megapot.io/support) to set one up. See [Funding pages](/getting-started/how-to-refer/funding-pages.md) for what they do and who they are for.

***

**Building this into your own app?** See [Referrals & attribution](/build-on-megapot/build/referrals-and-attribution.md) for the on-chain referrer model.
