# Deploy a smart contract on Rome

## 1. Set up Rome network in MetaMask

Before proceeding, ensure that you have completed [How to Use Rome EVM](https://docs.rome.builders/rome-evm/how-to-use).

* 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:

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

contract HelloWorld {
    string public greet = "Hello from Rome!";
}
```

3. 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 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.

***

## :white\_check\_mark: 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](https://discord.gg/vZ9rnCdNSB).
