# 1. XDC IDE Environment Configuration

## 1. Create a new XDC 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="/files/YL4e67bmjDs7kN17q6PD" 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="/files/mq1opRFyK21SDbjvsxsb" alt=""><figcaption></figcaption></figure>

After successfully logging in, you will be able to view all files and have the option to create new XDC chain projects.

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

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

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

## 2. Configure Wallet

The XDC IDE provides support for two wallets: Metamask and XDCPay 2.0. However, please note that Metamask and XDCPay 2.0 are not compatible. If both wallets are present, only Metamask will be activated.

If you do not have either Metamask or XDCPay 2.0 installed, the download links for each are provided below. Please install one of the wallets before continuing.

### I. Metamask

> The official download website for Metamask is: [https://metamask.io](https://metamask.io/)

### II. XDCPay 2.0

> The official Chrome Web Store address for XDCPay 2.0 is: <https://chrome.google.com/webstore/detail/xdcpay-20/iidmfamdbddcbjmemafekkohbnfiblhp>

After installing a wallet, please refresh the page.

Click on the "Connect Wallet" button in the top right corner of the screen and select "Injected Web3 Provider" to choose the wallet you would like to connect.

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

After connecting the wallet, Metamask users can follow the prompt in the bottom right corner of the screen to switch their wallet to the XDC Mainnet or Testnet networks.

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

XDCPay users must switch networks within their wallet to connect to their desired network.

<figure><img src="/files/l3igkcMuZOWC97oxAuas" alt="" width="225"><figcaption></figcaption></figure>

Users can visit <https://faucet.apothem.network/> and enter their wallet address to claim test tokens. If you are using Metamask, you must replace the "0x" at the start of your address with "xdc". For example, if your address was 0x82825C3fa24116F6ED719dd1e820DBD952c4D237, you would enter xdc82825C3fa24116F6ED719dd1e820DBD952c4D237 in the "Enter your XDC address" field.

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


---

# 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/11.-xdc-ide/untitled-1-1.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.
