# Deploy with Remix IDE

[Remix IDE](https://remix-project.org/) is a no-setup tool with a GUI for developing smart contracts. Used by experts and beginners alike, Remix will get you going in no time.

Remix is available as web-based environment, a desktop program, a VS Code extension and even a CLI tool. Here, we will use the web-based version

{% hint style="info" %}
You can also use the [official Remix IDE documentation for creating and deploying a contract](https://remix-ide.readthedocs.io/en/latest/create_deploy.html).
{% endhint %}

### Deploy a smart contract using Remix IDE <a href="#deploy-a-smart-contract-using-remix-ide" id="deploy-a-smart-contract-using-remix-ide"></a>

1. Go to [https://remix.ethereum.org](https://remix.ethereum.org/).

The Remix IDE opens in your browser.

<figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2F8C4OYONMLw4bWcQnMcd5%2FEkran%20g%C3%B6r%C3%BCnt%C3%BCs%C3%BC%202024-04-14%20203751.png?alt=media&#x26;token=5bc77a11-8dde-4f78-b2d8-92049af73259" alt=""><figcaption></figcaption></figure>

2. Click **Start Coding**.

<figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2F2ioiptXkiBw1dVBoogep%2F55.png?alt=media&#x26;token=ce4ac19a-ebdd-4d3e-8440-2eb79dd4841e" alt="" width="563"><figcaption></figcaption></figure>

The editor opens with a simple template.

<figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2FudFmSFUkVUCyHEPrEAHK%2F66.png?alt=media&#x26;token=bb373555-3fcd-4bfd-b301-fded6199e4e9" alt="" width="563"><figcaption></figcaption></figure>

3. Open the [ERC-20 Smart Contract](https://docs.parex.network/welcome/quick-start/deploy-and-verify-a-contract/deploy-with-remix-ide/erc-20-smart-contract) page and copy the sample contract to your clipboard.
4. Paste the copied smart contract into the Remix editor. You can rename the file from the left sidebar, for instance `token.sol` :

<figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2F4MOXsjhHbh8VHIMhGncP%2F77.png?alt=media&#x26;token=294995e9-5a18-4fef-bc1b-3f877ca6e896" alt="" width="464"><figcaption></figcaption></figure>

You can also customise values for `symbol`, `name`, `decimals`, and `_totalSupply`

<figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2FXVkHguJaDmolujxVtOBR%2F88.png?alt=media&#x26;token=c52b7147-ba2f-4097-8de2-03df57e287ec" alt="" width="563"><figcaption></figcaption></figure>

5\. Click **Compile**

<figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2F8IkPNVe7qkk7VR9ZZWZl%2F99.png?alt=media&#x26;token=5b887c82-1f50-4e0d-bf22-6e901e921fbf" alt="" width="563"><figcaption></figcaption></figure>

6. Open the **Deploy & run transactions** section.

<figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2FN0i83CSg8W9dAeav7OkV%2F44.png?alt=media&#x26;token=010c00b3-cdb4-4ec3-a703-51f008f38cfe" alt="" width="563"><figcaption></figcaption></figure>

* Make sure that your contract is selected
* Click **Deploy**.

7. Select "Injected Provider - MetaMask" in the environment in order to link your MetaMask account. Your MetaMask wallet should open automatically. Select the checkbox to connect the deployed contract with MetaMask. Click **Next**.

<figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2FB6PAoKZ819URpMHmHUAO%2Fimagex.png?alt=media&#x26;token=b863cff3-9b2b-4bb7-9b80-d1ac0ceec8d9" alt="" width="354"><figcaption></figcaption></figure>

8\. Select **Connect** to link your MetaMask Wallet with your smart contract.

<figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2FEMwxE1Yl36XocvZXAfEn%2Fimage%20(1)%20x.png?alt=media&#x26;token=099ba9ab-63a3-4c9a-86b4-ab77ef914e77" alt="" width="343"><figcaption></figcaption></figure>

9\. Return to Remix IDE and select **Send Transaction** when the following pop-up window appears.

<div align="left"><figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2FNGG0082s8xkEpQ9sj1np%2Fimage%20(2)%20x.png?alt=media&#x26;token=a1e6ad9d-413a-468c-b240-adad78db6c99" alt=""><figcaption></figcaption></figure></div>

10\. On your MetaMask Wallet, under the *DETAILS* tab, you will see Contract Deployment information. Select **Confirm** if you approve the transaction fees.

<figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2F95i27fkKwfXmJlxTEbd5%2Fimage%20(3)%20x.png?alt=media&#x26;token=eaae8d4f-c82b-4c0e-b864-8f8d61d29dd4" alt="" width="359"><figcaption></figcaption></figure>

Your contract is deployed on the Parex Blockchain.

<figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2FoG276EoK8s5DLlLrytYF%2Fimage%20(4)%20x.png?alt=media&#x26;token=1e3059d7-ab9a-4aec-893b-2c8bfadbbd65" alt=""><figcaption></figcaption></figure>

Optionally, you can view the deployed contract on the Block Explorer.

<figure><img src="https://1378802755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnL6cmoaNZKRXQ84jDmVz%2Fuploads%2Fxbr4HjIASnKg4jeXmpJj%2Fwwwww.png?alt=media&#x26;token=396be279-1099-41b7-afd8-ef06c2390962" alt=""><figcaption></figcaption></figure>
