> 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/start-here.md).

# Start Here

Megapot is a fully on-chain daily $1 jackpot on Base. This section is for everyone who wants to refer, reward, embed, build on, or read data from it. Pick the lane that fits and go.

## Set up once

Three steps. Most people only need the first two.

**1. Create your account.** Sign in at [megapot.io](https://megapot.io) with email, or an existing wallet. If you don't have a wallet, one is created for you automatically. This is the prerequisite for everything below.

**2. Get your referral link.** Generated automatically when you sign up. Your link is `https://megapot.io/r/{CODE}`. Find and copy it at [megapot.io/invite](https://megapot.io/invite). Sharing it earns you **8% of ticket fees + 8% of winnings** from people you refer.

**3. Do you need an API key?** Only if you plan to call the [Data API](/build-on-megapot/pull-data.md) (and optionally for a higher-tier starter-kit deploy). Mint one at [megapot.io/dashboard](https://megapot.io/dashboard) under Profile → API keys.

| What you want to do           | What you need                             |
| ----------------------------- | ----------------------------------------- |
| Share a link and earn         | Your account (and its referral code)      |
| Gift tickets, embed, or build | A referrer **wallet** address, no API key |
| Read the Data API             | An API key                                |

{% hint style="info" %}
**Building with an AI assistant?** Point it at [llms.megapot.io](https://llms.megapot.io). It loads an entry-point skill and routes itself to the right addresses, ABIs, and patterns.
{% endhint %}

## Which describes you?

Pick your **primary** goal. The lanes link sideways where they meet, so you won't get stuck if your project spans two of them.

* **Share a link & earn.** Drop your referral link anywhere and earn a cut, no code required. → [Share a link & earn](/build-on-megapot/share-and-earn.md)
* **Gift tickets & run giveaways.** Buy tickets for someone else's wallet and pay the USDC yourself. → [Gift tickets & run giveaways](/build-on-megapot/gift-tickets.md)
* **Add the jackpot to your site.** Embed buy, claim, and history flows into your existing app. → [Add the jackpot to your site](/build-on-megapot/add-to-your-site.md)
* **Build something custom.** Call the contracts directly for bespoke purchase, subscription, or compounding flows. → [Build on the protocol](/build-on-megapot/build.md)
* **Pull data.** Read round history, wallet stats, and per-round wins over a REST API. → [Pull data](/build-on-megapot/pull-data.md)

{% hint style="warning" %}
**Not self-serve today:** free-ticket giveaway campaigns and white-label funding/partner pages are team-provisioned. [Contact the team](https://megapot.io) to set one up.
{% endhint %}

***

## Built on Megapot

A sample of what builders have shipped on the protocol:

* [**Blink.cash**](https://blink.cash) - gives new users 3 free tickets just to try
* [**Lotpot**](https://lotpot.fun) - third-party UI with a fun twist
* [**Tator**](https://tator.quickintel.io/) - buy Megapot tickets by just asking
* [**Potwars**](https://potwars.fun) - completely custom, ERC-20 based, purchases tickets from fees
* [**BasedMining**](https://basedmining.xyz) - BTC mining lottery pool that rewards you tickets with every purchase
* [**PennyPot**](https://pennypot.xyz/) - fractional tickets, play for just $0.01
* [**Balkan Lotto**](https://www.balkanlotto.com/) - third-party UI made for the Balkans
* **Peoples Pot** - third-party UI with a clean dark-mode feel
* [**Megapot.Build**](https://megapot.build) - Instant marketing site or ticket sales app deployed to Vercel free
  * [**Megapot Templates**](https://github.com/BuiltByGoat/megapot-templates) - Fully built HTML templates. Edit, publish & earn

{% hint style="info" %}
Megapot has been audited 3 times by top security firms and has run [$200M+ in drawings since July 2024](https://stats.megapot.io/).
{% endhint %}
