> For the complete documentation index, see [llms.txt](https://docs.tan.live/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tan.live/getting-started/developer-guide/deploy-smart-contracts/tep-721/using-remix-ide.md).

# Using Remix ide

Here is a detailed explanation of what Remix IDE is and a step-by-step guide on how to deploy a TEP721 contract using Remix IDE:

## What is Remix IDE ?

***Remix IDE*** is an open-source, web-based integrated development environment (IDE) for writing, compiling, and deploying smart contracts. It is widely used for Ethereum and Ethereum-compatible blockchains such as TAN-chain. Remix IDE offers a user-friendly interface, powerful debugging features, and a variety of plugins to streamline the smart contract development process.

## Step-by-Step Guide to Deploy

Follow these steps to deploy a TEP721 contract using Remix IDE:

## 1.Open Remix IDE

Navigate to [***Remix IDE*** ](https://remix.ethereum.org/#lang=en\&optimize=false\&runs=200\&evmVersion=null)in your web browser. You will see the main interface, which consists of several panels, including the file explorer, the editor, and the terminal.<br>

## 2.Create a New File

In the file explorer on the left side of the screen:

* To create a new file, select the “File Explorer” icon from the menu, then click the “Create New File” icon.
* Type in the name of the file. It is our first program so let’s go with “TEP721NFT`.sol`” .

<figure><img src="https://591160239-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMQYfACyWKWFvsl6LV4r%2Fuploads%2Fd7IKxR4CwBgUIC9CHVjv%2Fremix721_1.png?alt=media&amp;token=fac07dc3-0639-4483-a3ef-bd2bb057f46a" alt=""><figcaption></figcaption></figure>

## 3.Write the Contract

Once the file is named we can begin writing Solidity code in the code editor. Paste or type the code below into Remix.<br>

<figure><img src="https://591160239-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMQYfACyWKWFvsl6LV4r%2Fuploads%2Fncl3EgpEjwsh1tsXjM4u%2Fremix721_2.avif?alt=media&amp;token=060e1453-e580-4fbb-ade2-67efa102374c" alt=""><figcaption></figcaption></figure>

## 4.Compile the Contract

* **Select the Compiler**: Click on the `Solidity Compiler` tab on the left sidebar.
* **Choose Compiler Version**: Select the appropriate compiler version (e.g., `0.8.20+commit.c7dfd78e`).
* **Compile the Code**: Click the `Compile` TEP721NFT`.sol` button.

<figure><img src="https://591160239-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMQYfACyWKWFvsl6LV4r%2Fuploads%2FfGIK3e2UMCSe31FscJm3%2Fremix_3.avif?alt=media&amp;token=06579459-e11d-4dc4-96ed-a329a1865950" alt=""><figcaption></figcaption></figure>

## 5.Deploy the Contract

* **Select the Deployment Environment**: Click on the `Deploy & Run Transactions` tab.
* **Configure the Environment**:

  Select `Injected Web3` if you are using a Web3 wallet like MetaMask connected to the TAN-chain network.
* **Deploy the Contract**:
  * Ensure TEP721NFT is selected in the contract dropdown.
  * Click the `Deploy` button.

<figure><img src="https://591160239-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMQYfACyWKWFvsl6LV4r%2Fuploads%2FZ9XbD1aFcl6gHLEDztMJ%2Fremix721_4.avif?alt=media&amp;token=930d8408-ee67-44f6-995e-106beaa2d17e" alt=""><figcaption></figcaption></figure>

***Congratulations!!*** You have successfully deployed your TEP721 token contract on the TAN-chain network using Remix IDE.
