---
description: >-
  This section provides a detailed explanation of the environment configuration
  for XDC IDE, which is essential for developing and deploying dApps on the XDC
  blockchain.
---

# 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="https://3745657014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FzmH38NkUG9VlFPeaJwBY%2Fimage.png?alt=media&#x26;token=3ea19c31-676f-43eb-bc9b-6f2c7f32f477" 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%2FpFQbMwPVYvbkZNHtxEri%2Fimage.png?alt=media&#x26;token=3d1c9d3b-a317-4e88-87bc-a95e6da1b335" 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="https://3745657014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FV9MThiEIKo2WtBqMJzkB%2Fimage.png?alt=media&#x26;token=d93659fe-c34a-449b-9336-f90a6e6aadab" 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="https://3745657014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2F5WGNlFMcf32q0ZEO1cMu%2Fimage.png?alt=media&#x26;token=0a63e8fd-220e-4397-a0d6-e96e5f35872e" 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](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="https://3745657014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2F91CU3hRo8lbzvJo6Feim%2Fimage.png?alt=media&#x26;token=04e251db-17de-49ba-aed5-6f2f7434d29d" 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="https://3745657014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FVF3Bq8M1R0nllQK0sDNf%2Fimage.png?alt=media&#x26;token=7bebee9d-8a63-4362-9175-75a0841de431" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3745657014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2FK3vJFbp0dkCNQLJLHgcd%2Fimage.png?alt=media&#x26;token=3e4610e7-876e-4261-87b6-800ae8314905" alt="" width="225"><figcaption></figcaption></figure>

Users can visit [https://faucet.apothem.network/](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="https://3745657014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYy-lqJKjq1m0yBAX4r%2Fuploads%2Fb7fk4BeD493hQIec41Ha%2Fimage.png?alt=media&#x26;token=f6628935-ff78-4cf8-bf93-ff280f162638" alt=""><figcaption></figcaption></figure>
