> For the complete documentation index, see [llms.txt](https://docs.lycanchain.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lycanchain.com/developers-integration/smart-contracts/develop-and-deploy/remix-ide.md).

# Remix IDE

**Prerequisites**

1. **Remix IDE**: You can access Remix IDE through your browser at remix.ethereum.org.
2. **MetaMask**: A browser extension wallet for managing your accounts and transactions. Make sure it is connected to the Lycan Chain.

### **Step-by-Step Guide**

**Step 1: Open Remix IDE**

1. Navigate to Remix IDE in your web browser.
2. Create a new file in the `contracts` directory. Name it `MyContract.sol`.

**Step 2: Write Your Smart Contract**

Write your smart contract in Solidity. Here is a simple example of a Solidity contract:

```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract MyContract {
    string public message;

    constructor(string memory _message) {
        message = _message;
    }

    function setMessage(string memory _message) public {
        message = _message;
    }
}
```

**Step 3: Compile Your Contract**

1. Click on the `Solidity Compiler` tab on the left sidebar.
2. Select the appropriate compiler version (matching your Solidity code).
3. Click on the `Compile MyContract.sol` button.

**Step 4: Configure MetaMask for Lycan Chain**

1. Open MetaMask and click on the network dropdown.
2. Select `Custom RPC` and enter the following details:
   * **Network Name**: Lycan Mainnet
   * **New RPC URL**: `https://rpc.lycanchain.com`
   * **Chain ID**: `721`
   * **Symbol**: `LYC`
3. Save and switch to the Lycan Mainnet network.

**Step 5: Deploy Your Contract**

1. Go back to Remix IDE and click on the `Deploy & Run Transactions` tab.
2. In the `Environment` dropdown, select `Injected Web3`. This will connect Remix to MetaMask.
3. Ensure that the `Contract` dropdown is set to `MyContract`.
4. Click on the `Deploy` button. MetaMask will prompt you to confirm the transaction.
5. Confirm the transaction in MetaMask.

**Step 6: Interact with Your Deployed Contract**

1. Once the contract is deployed, it will appear in the `Deployed Contracts` section in Remix.
2. You can interact with your contract functions directly from Remix by expanding the deployed contract interface.

#### Conclusion

By following these steps, you can easily deploy and manage your smart contracts on the Lycan Chain using Remix IDE. This setup ensures a smooth development experience and leverages the power of both Remix IDE and Lycan Chain.
