💻Deploy a contract
Last updated
Last updated
Deploying a smart contract to the RUNnodE Sepolia Testnet is an essential skill for developers looking to experiment with or launch their decentralized applications (dApps) on the RUNnodE ecosystem. Remix, an open-source web and desktop application, offers a powerful environment for writing Solidity contracts, with tools for debugging and deploying them directly to various Ethereum-based networks, including RUNnodE's Sepolia Testnet. This page guides you through the steps to deploy your first smart contract to the RUNnodE Sepolia Testnet using Remix.
Before starting, ensure you have the following:
MetaMask installed on your browser and set up with a Sepolia Testnet.
RUNodE Sepolia Testnet details:
Network Name: RUNODE
New RPC URL: https://rpc.runode.ai/
Chain ID: 1337
Symbol: rBTC
Block Explorer: https://explorer.runode.ai/
Some rBTC (Sepolia testnet) from our official faucet site for gas fees.
Open your web browser and go to Remix Ethereum IDE. Remix IDE will load, presenting you with a user-friendly interface for coding.
Navigate to the "File Explorers" section within Remix and locate the contracts folder in the default_workspace
.
Here, you're advised to work with a sample contract for a smooth start - select '1_Storage.sol'
. This approach helps you understand the workflow without immediately diving into custom code development.
Click on the "Solidity Compiler" icon on the left sidebar.
Select the compiler version 0.8.19+commit.7dd6d404
Make sure to check the Auto compile
option.
Hit the 'Compile 1_Storage.sol'
button. Make sure there are no errors or warnings post-compilation.
Click on the "Deploy & Run Transactions" icon.
In the "ENVIRONMENT" dropdown, select "Injected Provider - Metamask".
MetaMask will prompt you to connect your account. Choose the account associated with the Sepolia Testnet and click "Connect".
Ensure that the "Deploy & Run Transactions" tab is still open and 1_Storage.sol
is selected in the "CONTRACT" dropdown menu.
Enter any initial values required by your contract constructor (if applicable).
Click the "Deploy" button. MetaMask will open, asking you to confirm the transaction, showing the gas fee required.
Confirm the transaction in MetaMask. Wait for the transaction to be processed by the Sepolia Testnet. This might take a few moments.
Once deployed, your contract will appear under the "Deployed Contracts" section in Remix.
You can interact with your contract's functions directly from Remix — such as setting and retrieving a value.