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

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

Open https://remix.ethereum.org


3. Write your smart contract

  1. Create a new file (e.g., HelloWorld.sol)

  2. Paste the following code:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

contract HelloWorld {
    string public greet = "Hello from Rome!";
}
  1. Save the file and compile using the Solidity compiler.


4. Deploy via MetaMask

  1. Go to the Deploy & Run Transactions tab.

  2. Set Environment to: Injected Provider – MetaMask

  3. Ensure you are connected to the Rome Devnet or Testnet RPC

  4. Select the compiled contract and click Deploy

  5. Confirm the transaction in MetaMask


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

You can now:

  • Interact with your smart contract using Remix

  • Build EVM dApps

  • Access both Solana and Ethereum networks using Rome


🤝 Need Help?

Join Rome's developer community on Discord.

Last updated

Was this helpful?