# 2. Transaction

### 2.1 Connecting your wallet

When accessing the official website [https://mining-squad.app/](https://test.mining-squad.app/#presale), you will need to connect your wallet.

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

If the extension has been configured correctly, you should see the following image. Always check the URL of the website to connect, select only the wallet you want to use for the purchase, and click Next.

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

After that, simply Connect the wallet and Subscribe to the message confirming that you are connecting to the Mining Squad website.

<div><figure><img src="/files/omNKqQFtkmUZ8T8WakVU" alt=""><figcaption></figcaption></figure> <figure><img src="/files/5jRx715r3aWz3QtjvxSZ" alt=""><figcaption></figcaption></figure></div>

### 2.2 Choose Item

With your wallet connected, navigate to the pre-sale session by scrolling the page or accessing the menu. You can choose between purchasing a chest or a container (you can only purchase one at a time). By clicking on the exclamation icon for each type, you can check the chances of each rarity to decide which item to buy.

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

<div><figure><img src="/files/L7Wr8XsDGeL0emU7TSjt" alt=""><figcaption><p>Chest Odds</p></figcaption></figure> <figure><img src="/files/pZVbipRsQYRaEZdYIQ3j" alt=""><figcaption><p>Container Odds</p></figcaption></figure></div>

### 2.3 Approving the use of USDT

After choosing the item to be purchased, you must allow the pre-sale smart contract to spend the USDT in your account. You should see the following popup asking for permission to use your balance. By default, the site recommends authorizing a value above the selected item, solely for the purpose of saving the player's gas if they want to buy more than one item, as this generates a transaction and consumes Gas.

The player also has the possibility in the popup to define how much of his balance he intends to give permission to the contract, remembering that if the permission is lower than the value of the item he intends to purchase, it may be necessary to send a new transaction allowing a new value, spending unnecessarily more gas.

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

### 2.4 Authorizing the purchase

After confirming the authorization transaction to use the USDT balance, the application requests approval to send the purchase transaction. The USDT transfer is carried out by the contract itself, so in the confirmation window, you will only see the Network Gas cost. If an error message appears on Metamask at this point, check if there is still stock of the desired item, check if you have sufficient balance for the item, check if the site has been authorized to consume USDT for the total value of the desired item, refresh the page and try again.

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

### 2.5 Purchase completed

If you've made it this far, then **Congratulations**, you've managed to acquire an NFT from the most anticipated project of the year!

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

Now, just wait until the chests and containers open, but until then, you can view your inventory in the pre-sale session and follow the project's progress and launch of the next phases on the project's channels and social networks.

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

While you wait, you can also check your asset on the main NFT trading sites, such as [opensea](https://opensea.io/).

<div><figure><img src="/files/lN9Lq784MMo4naR9yosH" alt=""><figcaption></figcaption></figure> <figure><img src="/files/u9YH6rGnIwel4D5wTU3N" alt=""><figcaption></figcaption></figure></div>


---

# 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.mining-squad.app/en/readme/extras/manuais/metamask/2.-transaction.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.
