Module 4 - Run Block Explorer
Checkout the Repository
Section titled “Checkout the Repository”Start block explorers to view Geth state and Solana state
git clone --branch v1.0.0 git@github.com:rome-labs/romescout.git
Navigate to docker-compose directory
Section titled “Navigate to docker-compose directory”cd romescout/docker-compose
Set environment variables
Section titled “Set environment variables”export FRONTEND_DOCKER_TAG=v1.36.2export DOCKER_TAG=6.9.2export STATS_DOCKER_TAG=v2.2.3export VISUALIZER_DOCKER_TAG=v0.2.1export SIG_PROVIDER_DOCKER_TAG=v1.1.1export SMART_CONTRACT_VERIFIER_DOCKER_TAG=v1.9.2export USER_OPS_INDEXER_DOCKER_TAG=v1.3.0
Update configuration to use your domain
Section titled “Update configuration to use your domain”If you are running your L2 on a remote server, replace *.devnet.romeprotocol.xyz domain with your domain in the following two files. If you are running locally, you can skip modifying these files.
-
romescout/docker-compose/services/nginx1.yml
-
romescout/docker-compose/envs/common-frontend1.env
Update configuration to use your naming and branding
Section titled “Update configuration to use your naming and branding”Update romescout/docker-compose/envs/common-frontend1.env
to use your L2 details
NEXT_PUBLIC_NETWORK_NAME=RomeNEXT_PUBLIC_NETWORK_SHORT_NAME=RomeNEXT_PUBLIC_NETWORK_ID=98989897NEXT_PUBLIC_NETWORK_CURRENCY_NAME=RSOLNEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=RSOL
NEXT_PUBLIC_NETWORK_LOGO=http://rome-public-assets.s3.us-east-1.amazonaws.com/rome-banner.pngNEXT_PUBLIC_NETWORK_ICON=http://rome-public-assets.s3.us-east-1.amazonaws.com/rome-logo.pngNEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLOR=whiteNEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND=#5E0A60
Run the docker containers
Section titled “Run the docker containers”Remove old data, skip if running for the first time.
sudo rm -rf services/blockscout-db-datasudo rm -rf services/stats-db-data
Build and run docker container locally.
docker-compose up -d
Access Rome Scout Explorer at:
https://caesar.devnet.romeprotocol.xyz:1000 (replace with your domain)