> For the complete documentation index, see [llms.txt](https://lottery-pig.gitbook.io/welcome-to-gitbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lottery-pig.gitbook.io/welcome-to-gitbook/ecosystem/how-to-invest.md).

# How to Invest

Lottery Pig Miner is a fixed smart contract - the website allows you to connect your wallet to the platform and execute functions **quickly and easily**.&#x20;

Once you wallet has been set up for BSC, you **just need to click a few buttons** **to invest**!

### How To Set Up Your Metamask Wallet for Binance Smart Chain

If you are familiar with DeFi miner projects in BNB, then you should already have your wallet chain set to BNB.

If this is your first time, follow the guide below (published by Binance) to get your MetaMask wallet ready:

{% embed url="<https://academy.binance.com/en/articles/connecting-metamask-to-binance-smart-chain>" %}

### How to Buy BNB

Binance offers several easy methods on how to buy crypto using bank transfer, credit card or third-party payment systems - all of these available on their site through these options:

<figure><img src="/files/4Ux1vvUqfVfYlOmpQQ8F" alt=""><figcaption></figcaption></figure>

### Send BNB to Metamask

Once you have your BNB bought and your Metamask set to Binance Smart Chain (BSC), send your funds from the exchange (binance) to your Metamask Wallet using the following steps:

Open **Spot holdings**:

![](/files/ByvsLS7fPN6OsJxeFAUA)

Select **WITHDRAW**:

![](/files/9ND81VvNs4YrkpfcoGpN)

**Copy** the address of your Metamask wallet:

![](/files/HRb40yY2UiaqGiciiNmg)

**Enter your Metamask address** in Binance and select the **BSC (BEP20)** network, then follow the withdraw process:

![](/files/eRbli2VPM8yiMYq1JZ9N)

The amount sent to the wallet will appear in your Metamask quickly!

### How to use Lottery Pig

Once your wallet is set up and funded, investing in Lottery Pig couldn't be easier!

First, connect you wallet to the dApp using the **CONNECT WALLET** button:

![](/files/31FEDz1KKFAN49R55IcZ)

Then, enter the amount (in BNB) of Pigs you want to buy, then hit "**Buy Pigs**":

![](/files/RI93WEWDVnVbzS7c581W)

Lastly, accept the transaction in Metamask, and you should be good to go!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://lottery-pig.gitbook.io/welcome-to-gitbook/ecosystem/how-to-invest.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.
