# 1. BNB Chain IDE Environment Configuration

### 1. Create a new BNB Chain Project&#x20;

Visit [ChainIDE](https://chainide.com/) and click the "Code Smarter" button on the front page as shown in the figure below.

<figure><img src="https://3745657014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2Frx1oys6leojujopf5yFU%2Fimage.png?alt=media&#x26;token=b275f382-0e3d-4cec-b52d-e4743a7b7dac" alt=""><figcaption></figcaption></figure>

Here, you will choose your login method, which includes two options: GitHub and Guest. For this tutorial, select GitHub login, as later on, the use of the Sandbox requires users to log in with GitHub.

<figure><img src="https://3745657014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FqVbVVO9cFCdeZoEiR2Wy%2Fimage.png?alt=media&#x26;token=b8fbd0a7-a0f0-4e13-ba69-929216eb154a" alt=""><figcaption></figcaption></figure>

Click the "New Project" button.

<figure><img src="https://3745657014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FpK9dhtZsG8zbUBQlfy3T%2Fimage.png?alt=media&#x26;token=2ac1f72b-95d1-4bfd-851f-070185be9188" alt=""><figcaption></figcaption></figure>

A pop-up window will appear. On the left side of the pop-up, select "BNB Chain". Then, select a temple to create a new project.

<figure><img src="https://3745657014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FyrfwZFo9zpqHnG5Z3tOV%2Fimage.png?alt=media&#x26;token=2487abd3-2bd7-475e-9659-4fa455fecc4a" alt=""><figcaption></figcaption></figure>

### 2. Configure Wallet

Connecting to BNB Chain is made easy through MetaMask. Below is a tutorial on how to configure MetaMask.

**Setting Up MetaMask Tutorial**

**Step 1: Install MetaMask Extension**

1. Open your browser (preferably Google Chrome or Mozilla Firefox).
2. Visit the <https://metamask.io/>.
3. Click on "Download" and choose the version suitable for your browser.
4. Install the MetaMask extension and set up a password as prompted.

**Step 2: Create or Restore an Account**

1. After installing MetaMask, click on the MetaMask icon in the top right corner of your browser.
2. If you don't have a MetaMask account, choose "Create a Wallet." If you already have an account, select "Import Account" (if importing from a mnemonic phrase or private key) or "Connect a Wallet" (if importing from another wallet).
3. If you're a new user, follow the steps to create an account and securely back up your mnemonic phrase.

**Step 3: Explore the MetaMask Interface**

1. Once your account is created, you'll see the main MetaMask interface. Here, you can view your balance, add assets, check transaction history, and more.

**Step 4: Connect to BNB Chain Network**

1. In the next section, will be told how to connect to the mainnet and testnet.

**Step 5: Obtain test tokens**

1. A faucet is the site/place where you can get test tokens.  Use them to make sure your wallet has enough assets to cover the cost of deployment and pay transaction gas.

You can claim test tokens at the following link.

<table><thead><tr><th width="231">Network</th><th width="486">LINK</th><th data-hidden>AMOUNT</th><th data-hidden></th></tr></thead><tbody><tr><td>BNB Chain Testnet</td><td><a href="https://testnet.bnbchain.org/faucet-smart">https://testnet.bnbchain.org/faucet-smart</a></td><td></td><td></td></tr></tbody></table>


---

# 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://chainide.gitbook.io/chainide-english-1/ethereum-ide-1/2.-bsc-ide/untitled.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.
