Deploying a block explorer
Blockscout is an open source block explorer that supports OP Stack chains. Keep reading for a quick overview on how to deploy Blockscout for your OP Stack chain.Check out the Blockscout documentation for up-to-date information on how to deploy and maintain a Blockscout instance.
Dependencies
Create an archive node
Blockscout needs access to an archive node for your OP Stack chain to properly index transactions, blocks, and internal interactions. If usingop-geth
, you can run a node in archive mode with the --gcmode=archive
flag.
Archive nodes take up significantly more disk space than full nodes.
You may need to have 2-4 terabytes of disk space available (ideally SSD) if you intend to run an archive node for a production OP Stack chain.
1-200 gigabytes of disk space may be sufficient for a development chain.
Installation
Blockscout can be started from its source code on GitHub.Configuration
Review the configuration files within theenvs
directory and make any necessary changes.
In particular, make sure to review envs/common-blockscout.env
and envs/common-frontend.env
.