Fund your Wallet

Explains how to acquire RSOL via deposit script or UI and how to withdraw SOL later.

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

Using Docker command

Configure environment

export CHAIN_ID=98989897
export SOLANA_RPC=https://node3.devnet-us-sol-api.devnet.romeprotocol.xyz
export ETH_DEPOSIT_ADDRESS=0xf0e0CA2704D047A7Af27AafAc6D70e995520C2B2
export ETH_DEPOSIT_GWEI=100000000000000000
export PROGRAM_ID=RPDLj7hwcWEpQ4S3fExgsxMruc4BfuUUts69i9BdhKq

Generate Solana keypair

cd rome-setup/docker
solana-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 deposit
docker logs deposit -f

Using Rome UI

  1. Airdrop SOLs to your Solana wallet using solana -ud airdrop 1 YOUR_SOLANA_WALLET.

  2. Obtain RSOL by depositing SOLs using https://deposit.devnet.romeprotocol.xyz

    1. Add your L2 to the dropdown

    2. Connect your Solana wallet to deposit SOLs

    3. Connect your Metamask wallet to view RSOL balance

How to withdraw SOL

To convert RSOL back to SOL, deposit RSOLs using https://deposit.devnet.romeprotocol.xyz

  1. Add your L2 to the dropdown

  2. Connect your Metamask wallet to deposit RSOLs

  3. Connect your Solana wallet to view SOL balance

Troubleshooting

If you are having problems with deposits or withdrawals, contact us on Discord.

Last updated

Was this helpful?