Tutorial to deploy a smart contract on Rome EVM
This guide provides step-by-step instructions for deploying a smart contract on the Rome EVM network using MetaMask and Remix IDE.
Prerequisites
MetaMask: Ensure the MetaMask browser extension is installed and configured.
Remix IDE: We'll be utilizing Remix for deploying the smart contract directly.
Foundational Knowledge: A basic understanding of smart contracts and Ethereum-compatible networks will be helpful to follow along.
Set-up Rome Network in Metamask
Open MetaMask and click on the network dropdown at the top.
Select "Add Network" and then "Add Network Manually".
Fill in the Rome network details:
Network Name: Rome Network
New RPC URL: https://romeevm.devnet.romeprotocol.xyz
Chain ID: 815817419
Currency Symbol: ROME
Block Explorer URL: https://romeevm.devnet.romeprotocol.xyz:1000
Click "Save" and switch to the Rome network.
Obtain Rome Tokens for Gas Fees
Visit the Rome network faucet: https://romeevm.devnet.romeprotocol.xyz/request_airdrop
Request devnet tokens for your MetaMask address.
Wait for the tokens to appear in your MetaMask wallet.
Write your Smart Contract
Open Remix IDE in your browser.
Create a new file or open an existing one with your smart contract code.
For this example, we'll use a simple "Hello World" contract using Solidity
Compile the smart contract.
In Remix IDE, go to the "Deploy & Run Transactions" tab.
In the "Environment" dropdown, select "Injected Provider - MetaMask". Ensure MetaMask
is connected to the Rome network.
Click Deploy.
MetaMask will prompt you to confirm the transaction. Review the details and approve it. Wait for the transaction to be confirmed on the Rome network.
Once the transaction is confirmed, Remix will display the deployed contract address, somewhat like this.
Voila🎉! You have successfully deployed your first smart contract on the Rome EVM network.
To view the transaction details, visit the Rome network block explorer https://romeevm.devnet.romeprotocol.xyz:1000 and search for your contract address or transaction hash.
Here's a video to guide you in deploying a smart contract on Rome EVM
Last updated