Quick Start
In this section, we'll get you deploying a sample contract on Status Network Testnet in less than 10 minutes.
Let's see how to deploy a smart contract on Status Network using the Remix IDE for simplicity.
Get Everything Ready
Before getting started:
-
Add Status Network Testnet to MetaMask:
Follow the Add Status Network guide for step-by-step instructions on how to add the Status Network testnet to MetaMask.
-
Get Test ETH:
You'll need both Sepolia ETH and Status Network ETH:
- First get Sepolia ETH from Sepolia Faucet
- Then bridge some ETH to Status Network using the Status Bridge
- Alternatively, get Status Network ETH directly from our Testnet Faucet
We are ready to get started!
Remix & Sample Code
Remix is a no-setup tool for developing smart contracts. It's easy to get started, allowing a simple deployment process, debugging, interacting with smart contracts, and more.
For this tutorial, we will deploy a simple SimpleStorage.sol
contract:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract SimpleStorage {
uint256 number;
function store(uint256 num) public {
number = num;
}
function retrieve() public view returns (uint256) {
return number;
}
}
Note: This contract lets you store a number and then read what that number is.
Steps to Deploy
-
Copy the Sample Code:
- Copy the sample code and paste it into a new file named
SimpleStorage.sol
in Remix.
- Copy the sample code and paste it into a new file named
-
Compile the Smart Contract:
- Go to the Solidity Compiler tab (on the left sidebar).
- Ensure the compiler version is 0.8.0 or higher.
- Click "Compile SimpleStorage.sol".
- You can enable "Auto compile" for automatic compilation whenever you change the contract code.
-
Deploy the Smart Contract:
- Switch to the Deploy & Run Transactions tab.
- In the "Environment" dropdown menu, select "Injected Provider - MetaMask".
- MetaMask may prompt you to connect to Remix. Confirm the connection.
- Ensure that Status Network Testnet is selected in MetaMask.
- Under "Contract", make sure
SimpleStorage
is selected. - Click "Deploy".
- MetaMask will pop up, asking you to confirm the transaction. Gas fees will be paid in ETH.
- Review the transaction details and click "Confirm".
- Wait for the transaction to be mined.
-
Verify Deployment:
- Once deployed, copy your contract's address from Remix
- View it on Status Network Explorer
CONGRATULATIONS! You just deployed your first smart contract on Status Network.
Interact with Your Deployed Smart Contract
-
Access Deployed Contract:
- In Remix, under the "Deployed Contracts" section, you'll see your deployed
SimpleStorage
contract.
- In Remix, under the "Deployed Contracts" section, you'll see your deployed
-
Store a Number:
- Expand the deployed contract to view its functions.
- In the "store" function input field, enter a number (e.g.,
42
). - Click "transact".
- MetaMask will prompt you to confirm the transaction. Gas fees will be paid in ETH.
- Wait for the transaction to be confirmed.
-
Retrieve the Number:
- Click on the "retrieve" function.
- The stored number will display below the button.
- This is a view function, so no gas fees are required.
Next Steps
- Get Support:
- Join our Telegram Community for assistance
- Check our Network Details for more information
- Learn about bridging tokens to Status Network
Summary
You've successfully:
- Set up your environment to interact with Status Network Testnet
- Obtained testnet ETH through bridging or faucet
- Deployed a smart contract using Remix IDE and MetaMask
- Interacted with your deployed contract by storing and retrieving a number
For more advanced development, check out our guides for deploying with: