Module 3 - Deploy a smart contract on Rome
Walkthrough to deploy a “Hello World” Solidity contract on Rome using MetaMask and Remix.
1. Set up Rome network in MetaMask
Section titled “1. Set up Rome network in MetaMask”Before proceeding, ensure that you have completed How to Use Rome EVM.
-
Rome RPC added to MetaMask
-
Phantom wallet funded with SOL
-
rSOL received via Deposit UI
2. Open Remix IDE
Section titled “2. Open Remix IDE”Open https://remix.ethereum.org
3. Write your smart contract
Section titled “3. Write your smart contract”-
Create a new file (e.g., HelloWorld.sol)
-
Paste the following code:
// SPDX-License-Identifier: MITpragma solidity ^0.8.20;
contract HelloWorld { string public greet = "Hello from Rome!";}
- Save the file and compile using the Solidity compiler.
4. Deploy via MetaMask
Section titled “4. Deploy via MetaMask”-
Go to the Deploy & Run Transactions tab.
-
Set Environment to: Injected Provider – MetaMask
-
Ensure you are connected to the Rome Devnet or Testnet RPC
-
Select the compiled contract and click Deploy
-
Confirm the transaction in MetaMask
5. Verify Deployment
Section titled “5. Verify Deployment”Use the appropriate Rome block explorer to view your deployed contract.
Paste your deployed contract address to view on-chain data.
✅ Your smart contract is now deployed on Rome
Section titled “✅ Your smart contract is now deployed on Rome”You can now:
-
Interact with your smart contract using Remix
-
Build EVM dApps
-
Access both Solana and Ethereum networks using Rome
🤝 Need Help?
Section titled “🤝 Need Help?”Join Rome’s developer community on Discord.