Module 1 - Setup your Metamask and Fund your wallet
Add your L2 network to MetaMask
Section titled “Add your L2 network to MetaMask”Add network to MetaMask
- Network Name: Caesar
- Chain ID: 98989897
- Currency symbol: RSOL
RPC URL
http://localhost:8545
Block explorer URL
http://localhost:1000
Fund your Wallet
Section titled “Fund your Wallet”Testing transactions on your new L2 requires the gas token (RSOL).
Rome L2s use RSOL as the gas token so you need to fund your wallet with RSOL.
You can obtain RSOL by depositing SOL as described below.
How to obtain RSOL
Section titled “How to obtain RSOL”Using Docker command
Section titled “Using Docker command”Configure environment
export CHAIN_ID=98989897export SOLANA_RPC=https://node3.devnet-us-sol-api.devnet.romeprotocol.xyzexport ETH_DEPOSIT_ADDRESS=0xf0e0CA2704D047A7Af27AafAc6D70e995520C2B2export ETH_DEPOSIT_GWEI=100000000000000000export PROGRAM_ID=RPDLj7hwcWEpQ4S3fExgsxMruc4BfuUUts69i9BdhKq
Generate Solana keypair
cd rome-setup/dockersolana-keygen new -o keys/source-account-keypair.json --no-bip39-passphrase --force
Fund Solana wallet
solana -ud airdrop 1 keys/source-account-keypair.json
Run Deposit command
docker-compose up -d depositdocker logs deposit -f
Using Rome UI
Section titled “Using Rome UI”-
Airdrop SOLs to your Solana wallet using solana -ud airdrop 1 YOUR_SOLANA_WALLET.
-
Obtain RSOL by depositing SOLs using https://deposit.devnet.romeprotocol.xyz
a. Add your L2 to the dropdown
b. Connect your Solana wallet to deposit SOLs
c. Connect your Metamask wallet to view RSOL balance
How to withdraw SOL
Section titled “How to withdraw SOL”To convert RSOL back to SOL, deposit RSOLs using https://deposit.devnet.romeprotocol.xyz
-
Add your L2 to the dropdown
-
Connect your Metamask wallet to deposit RSOLs
-
Connect your Solana wallet to view SOL balance