# Application vs Protocol

Megapot consists of two distinct components: the **Megapot Protocol** and the **Megapot Application**. Understanding the difference helps clarify how the system works and what options you have for participating.

## The Megapot Protocol

The Megapot Protocol is a set of smart contracts deployed on Base (an Ethereum Layer 2 network). These contracts handle all lottery operations—ticket sales, prize distribution, backer management, and referral tracking.

The protocol is **fully on-chain and permissionless**. This means:

* **Anyone can interact with it directly** through the [smart contracts](/learn/using-smart-contracts.md)
* **All transactions are publicly verifiable** on the [blockchain](https://basescan.org/address/0x3bAe643002069dBCbcd62B1A4eb4C4A397d042a2)
* **The rules are encoded in** [**code**](https://github.com/coordinationlabs/megapot-v2-public), not controlled by any single entity

### Interact Directly With the Protocol

You can interact with the Megapot Protocol directly through Basescan without using any application. This allows you to buy tickets, claim prizes, manage Backer positions, and more—all by calling the smart contracts yourself.

[**Learn how to use the smart contracts directly on Basescan**](/learn/using-smart-contracts.md)

## The Megapot Application

The Megapot Application is the web interface at [megapot.io](https://megapot.io). It provides a user-friendly way to interact with the Megapot Protocol, including:

* Buying tickets with an easy-to-use interface
* Viewing drawings and checking results
* Managing Backer positions
* Tracking referral earnings

The application is **one way to access the protocol**, but not the only way.

### Licensed Gaming Operator

The Megapot Application is a [licensed gaming operator](/appendix/gaming-license.md) that must adhere to gaming regulations. This includes requirements such as:

* Know Your Customer (KYC) verification for certain activities
* Responsible gaming protections
* Geographic restrictions based on regulatory requirements
* Compliance with applicable gaming laws

These requirements apply to the Megapot Application **only**. The underlying protocol remains permissionless, but applications built on top of it may have their own compliance obligations.

## Key Differences

|                  | Megapot Protocol                  | Megapot Application                                   |
| ---------------- | --------------------------------- | ----------------------------------------------------- |
| **What it is**   | Smart contracts on Base           | Web interface at megapot.io                           |
| **Access**       | Permissionless, open to anyone    | Publicly accessible website                           |
| **Regulation**   | Code-based rules only             | Licensed gaming operator with compliance requirements |
| **Alternatives** | None                              | One of many possible interfaces                       |
| **Data**         | All on-chain, publicly verifiable | Displays on-chain data                                |


---

# 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.megapot.io/learn/application-vs-protocol.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.
