# Using Remix IDE

### What is Remix IDE ?

Remix IDE is an open-source web and desktop application that aids in smart contract development, written in Solidity language for the Ethereum blockchain. It provides a range of tools that help developers write, test, debug, and deploy smart contracts with ease. Some notable features of Remix IDE include.

### Prerequisites

1. Add Deelance Testnet in your MetaMask, to add refer to our guide [add-deelance-to-metamask](https://docs.deelance.com/getting-started/add-deelance-to-metamask "mention")
2. Get Deelance Testnet coins from the [Deelance Faucet](https://faucet.deelance.com/).

### Creating and Deploying DRC20 Token on Remix IDE

* Visit <https://remix.ethereum.org/>&#x20;

you'll be greeted with the following screen.

<figure><img src="https://2982634488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm7YO0HP55CEFSllnD5RW%2Fuploads%2FwNbMNMtNoY7sGhUDkqUi%2Fimage.png?alt=media&#x26;token=71b3b460-44f9-4ef6-9653-b2ae97161d8a" alt=""><figcaption></figcaption></figure>

* Click on the icon mentioned below to generate a new file called `PepeDeelance.sol`.

<figure><img src="https://2982634488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm7YO0HP55CEFSllnD5RW%2Fuploads%2F3rS2HqYrQVYdf9gwebFY%2Fimage.png?alt=media&#x26;token=697c45c7-62e9-46d9-96e5-a9b2e6496414" alt=""><figcaption></figcaption></figure>

An empty file will appear as shown below.

<figure><img src="https://2982634488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm7YO0HP55CEFSllnD5RW%2Fuploads%2FQZFT3iXmunTKH2pcM7zK%2Fimage.png?alt=media&#x26;token=edd56ba8-6e57-4980-b2c3-3be7ca93b63b" alt=""><figcaption></figcaption></figure>

* Copy the following code and insert it into `PepeDeelance.sol`.

```solidity
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract PepeDeelance is ERC20, Ownable {
    constructor() ERC20("PepeDeelance", "PEPEDLANCE") {
        _mint(msg.sender, 1000000000 * 10 ** decimals());
    }

    function mint(address to, uint256 amount) public onlyOwner {
        _mint(to, amount);
    }
}
```

* Now, click on the specified icon to compile your contract.

<figure><img src="https://2982634488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm7YO0HP55CEFSllnD5RW%2Fuploads%2FqNcH8bSXrS7inlD885Ql%2Fimage.png?alt=media&#x26;token=720dd2eb-091f-45cd-ba26-4152bad8adc9" alt=""><figcaption></figcaption></figure>

* Next, press the "Compile" button to compile your contract, ensuring you select the checkbox highlighted within the blue circle.

<figure><img src="https://2982634488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm7YO0HP55CEFSllnD5RW%2Fuploads%2Fs916Ekwzhvec8NhkWzaG%2Fimage.png?alt=media&#x26;token=81cd294b-d9e4-4ec7-86b3-f43a20fa1041" alt=""><figcaption></figcaption></figure>

* To deploy your contract, click on the indicated button below.

<figure><img src="https://2982634488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm7YO0HP55CEFSllnD5RW%2Fuploads%2FLuV9gTHNgpeAaV8cF92J%2Fimage.png?alt=media&#x26;token=e5d1c6b8-9f20-4b1e-bcef-a867faa8ec8b" alt=""><figcaption></figcaption></figure>

* Now, select the "Remix VM...." dropdown, and then choose the "Injected Provider" highlighted in orange.

<figure><img src="https://2982634488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm7YO0HP55CEFSllnD5RW%2Fuploads%2FQzshuzbQvAsBUGgvQRCW%2Fimage.png?alt=media&#x26;token=17ba7570-152b-48bd-9cc5-bc7bae947879" alt=""><figcaption></figcaption></figure>

After making that selection, MetaMask will prompt you to unlock your wallet. If you're already logged into MetaMask, you'll see a display similar to the one below.&#x20;

<figure><img src="https://2982634488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm7YO0HP55CEFSllnD5RW%2Fuploads%2F48f1V1bvVsnrbWLLa9Zz%2Fimage.png?alt=media&#x26;token=3acc472b-f7fc-48e7-81bb-314f4cc04e5d" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Ensure that you're connected to the DLANCE TESTNET, which carries a chain ID of 455214.
{% endhint %}

* To finalize the deployment of your DRC20 Smart Contract on the Deelance Testnet, press the "Deploy" button highlighted in orange, as shown below.

<figure><img src="https://2982634488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm7YO0HP55CEFSllnD5RW%2Fuploads%2FeUJA90E0yyg68J4jVeb1%2Fimage.png?alt=media&#x26;token=b055d8ac-d77c-446e-811b-5fae0e0c1abc" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Ensure you have enough Deelance Testnet Tokens to cover the gas fees for the transaction. If you need Testnet Deelance tokens, visit the [Deelance Faucet](https://faucet.deelance.com/).
{% endhint %}

{% hint style="info" %}
If you haven't added the Deelance Testnet in your MetaMask, refer to our guide [add-deelance-to-metamask](https://docs.deelance.com/getting-started/add-deelance-to-metamask "mention")
{% endhint %}

After clicking the "Deploy" button, MetaMask will pop up prompting you to approve the transaction. Once you confirm, your contract will deploy within a few seconds, and you'll be able to view your deployed contract here.&#x20;

<figure><img src="https://2982634488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm7YO0HP55CEFSllnD5RW%2Fuploads%2FWBeCotNe0Mttv3TFFOCk%2Fimage.png?alt=media&#x26;token=55cccc35-f062-40dc-98f1-c9d7cf6608c0" alt=""><figcaption></figcaption></figure>

**Well done!** You've successfully created and launched the DRC20 token on the Deelance Testnet.
