<titledata-rh="true">Using Remix with Status Network | Status Network Documentation</title><metadata-rh="true"name="viewport"content="width=device-width,initial-scale=1"><metadata-rh="true"property="og:locale"content="en_US"><metadata-rh="true"property="og:locale:alternate"content="zh_CN"><metadata-rh="true"property="og:locale:alternate"content="ko_KR"><metadata-rh="true"property="og:locale:alternate"content="ja_JP"><metadata-rh="true"name="docusaurus_locale"content="en"><metadata-rh="true"name="docsearch:language"content="en"><metadata-rh="true"name="author"content="Status Network"><metadata-rh="true"property="og:image"content="https://docs.status.network/img/sn-social-card.png"><metadata-rh="true"property="og:url"content="https://docs.status.network"><metadata-rh="true"property="og:type"content="website"><metadata-rh="true"property="og:site_name"content="Status Network Documentation"><metadata-rh="true"name="twitter:card"content="summary_large_image"><metadata-rh="true"name="twitter:site"content="@statusL2"><metadata-rh="true"name="twitter:title"content="Status Network Documentation"><metadata-rh="true"name="twitter:description"content="Documentation for Status Network - The gasless network with sustainable funding for app builders. Launch and scale your social apps and games with truly free transactions."><metadata-rh="true"name="twitter:image"content="https://docs.status.network/img/sn-social-card.png"><metadata-rh="true"name="docusaurus_version"content="current"><metadata-rh="true"name="docusaurus_tag"content="docs-default-current"><metadata-rh="true"name="docsearch:version"content="current"><metadata-rh="true"name="docsearch:docusaurus_tag"content="docs-default-current"><metadata-rh="true"property="og:title"content="Using Remix with Status Network | Status Network Documentation"><metadata-rh="true"name="description"content="Learn how to deploy smart contracts on Status Network using Remix IDE. Beginner-friendly guide with step-by-step instructions for contract deployment and interaction."><metadata-rh="true"property="og:description"content="Learn how to deploy smart contracts on Status Network using Remix IDE. Beginner-friendly guide with step-by-step instructions for contract deployment and interaction."><metadata-rh="true"name="keywords"content="Remix IDE,smart contract deployment,Status Network development,blockchain tutorial,web3 development,solidity"><linkdata-rh="true"rel="icon"href="/img/favicon.ico"><linkdata-rh="true"rel="canonical"href="https://docs.status.network/tutorials/deploying-contracts/using-remix"><linkdata-rh="true"rel="alternate"href="https://docs.status.network/tutorials/deploying-contracts/using-remix"hreflang="en-US"><linkdata-rh="true"rel="alternate"href="https://docs.status.network/zh/tutorials/deploying-contracts/using-remix"hreflang="zh-CN"><linkdata-rh="true"rel="alternate"href="https://docs.status.network/ko/tutorials/deploying-contracts/using-remix"hreflang="ko-KR"><linkdata-rh="true"rel="alternate"href="https://docs.status.network/ja/tutorials/deploying-contracts/using-remix"hreflang="ja-JP"><linkdata-rh="true"rel="alternate"href="https://docs.status.network/tutorials/deploying-contracts/using-remix"hreflang="x-default"><linkdata-rh="true"rel="preconnect"href="https://M7J93TRPJ9-dsn.algolia.net"crossorigin="anonymous"><linkrel="search"type="application/opensearchdescription+xml"title="Status Network Documentation"href="/opensearch.xml"><linkrel="stylesheet"href="/assets/css/styles.bb00a9fe.css">
<p>This tutorial will guide you through deploying a smart contract on Status Network testnet using the Remix IDE. Remix is a browser-based IDE that's perfect for quick development and testing.</p>
<h2 class="anchoranchorWithStickyNavbar_LWe7"id="prerequisites">Prerequisites<ahref="#prerequisites"class="hash-link"aria-label="Direct link to Prerequisites"title="Direct link to Prerequisites"></a></h2>
<p>Before you begin, ensure you have:</p>
<ul>
<li><strong>Web Browser</strong>: A modern web browser like Chrome or Firefox</li>
<li><strong>MetaMask</strong>: Install the <ahref="https://metamask.io"target="_blank"rel="noopener noreferrer">MetaMask</a> browser extension</li>
<li><strong>Testnet ETH</strong>: You'll need Status Network testnet ETH<!-- -->
<ul>
<li>Get Status Network testnet ETH from our <ahref="/tools/testnet-faucets">Faucet</a></li>
</ul>
</li>
<li><strong>Network Configuration</strong>: Add Status Network testnet to MetaMask following our <ahref="/general-info/add-status-network">Add Network guide</a></li>
</ul>
<h2class="anchor anchorWithStickyNavbar_LWe7"id="steps">Steps<ahref="#steps"class="hash-link"aria-label="Direct link to Steps"title="Direct link to Steps"></a></h2>
<h3class="anchor anchorWithStickyNavbar_LWe7"id="1-open-remix-ide">1. Open Remix IDE<ahref="#1-open-remix-ide"class="hash-link"aria-label="Direct link to 1. Open Remix IDE"title="Direct link to 1. Open Remix IDE"></a></h3>
<p>Visit <ahref="https://remix.ethereum.org"target="_blank"rel="noopener noreferrer">remix.ethereum.org</a> in your browser.</p>
<h3class="anchor anchorWithStickyNavbar_LWe7"id="2-create-a-new-file">2. Create a New File<ahref="#2-create-a-new-file"class="hash-link"aria-label="Direct link to 2. Create a New File"title="Direct link to 2. Create a New File"></a></h3>
<ol>
<li>Click the "File Explorer" icon (first icon on the left sidebar)</li>
<li>Click the "+" button to create a new file</li>
<li>Name it <code>HelloWorld.sol</code></li>
</ol>
<h3class="anchor anchorWithStickyNavbar_LWe7"id="3-write-the-smart-contract">3. Write the Smart Contract<ahref="#3-write-the-smart-contract"class="hash-link"aria-label="Direct link to 3. Write the Smart Contract"title="Direct link to 3. Write the Smart Contract"></a></h3>
<p>Copy and paste the following code into <code>HelloWorld.sol</code>:</p>
<h3class="anchor anchorWithStickyNavbar_LWe7"id="4-compile-the-contract">4. Compile the Contract<ahref="#4-compile-the-contract"class="hash-link"aria-label="Direct link to 4. Compile the Contract"title="Direct link to 4. Compile the Contract"></a></h3>
<ol>
<li>Click the "Solidity Compiler" icon (second icon on the left sidebar)</li>
<li>Select compiler version "0.8.24"</li>
<li>Click "Compile HelloWorld.sol"</li>
<li>Ensure compilation succeeds (you'll see a green checkmark)</li>
</ol>
<h3class="anchor anchorWithStickyNavbar_LWe7"id="5-deploy-the-contract">5. Deploy the Contract<ahref="#5-deploy-the-contract"class="hash-link"aria-label="Direct link to 5. Deploy the Contract"title="Direct link to 5. Deploy the Contract"></a></h3>
<ol>
<li>Click the "Deploy & Run Transactions" icon (fourth icon on the left sidebar)</li>
<li>In the "Environment" dropdown, select "Injected Provider - MetaMask"</li>
<li>MetaMask will prompt you to connect - ensure Status Network testnet is selected</li>
<li>Click "Deploy"</li>
<li>Confirm the transaction in MetaMask</li>
<li>Wait for the transaction to be confirmed</li>
</ol>
<h3class="anchor anchorWithStickyNavbar_LWe7"id="6-interact-with-your-contract">6. Interact with Your Contract<ahref="#6-interact-with-your-contract"class="hash-link"aria-label="Direct link to 6. Interact with Your Contract"title="Direct link to 6. Interact with Your Contract"></a></h3>
<p>Once deployed, you'll see your contract under "Deployed Contracts":</p>
<ol>
<li>Expand the contract interface</li>
<li>You can:<!-- -->
<ul>
<li>Click "greet" to read the current greeting</li>
<li>Enter a new greeting in the "setGreet" field and click the button to update it</li>
<li>Click "getGreet" to read the greeting again</li>
</ul>
</li>
</ol>
<h2class="anchor anchorWithStickyNavbar_LWe7"id="troubleshooting">Troubleshooting<ahref="#troubleshooting"class="hash-link"aria-label="Direct link to Troubleshooting"title="Direct link to Troubleshooting"></a></h2>
<h3class="anchor anchorWithStickyNavbar_LWe7"id="common-issues">Common Issues<ahref="#common-issues"class="hash-link"aria-label="Direct link to Common Issues"title="Direct link to Common Issues"></a></h3>
<ol>
<li>
<p><strong>Transaction Failed</strong></p>
<ul>
<li>Check that you're connected to Status Network testnet</li>
</ul>
</li>
<li>
<p><strong>Contract Not Found</strong></p>
<ul>
<li>Wait a few minutes for the explorer to index your contract</li>
<li>Double-check the contract address</li>
</ul>
</li>
<li>
<p><strong>Compilation Errors</strong></p>
<ul>
<li>Verify the compiler version matches the pragma statement</li>
<li>Check for any syntax errors highlighted in Remix</li>
</ul>
</li>
</ol>
<h2class="anchor anchorWithStickyNavbar_LWe7"id="support">Support<ahref="#support"class="hash-link"aria-label="Direct link to Support"title="Direct link to Support"></a></h2>
<h2class="anchor anchorWithStickyNavbar_LWe7"id="additional-resources">Additional Resources<ahref="#additional-resources"class="hash-link"aria-label="Direct link to Additional Resources"title="Direct link to Additional Resources"></a></h2>