Blockchain Explorer for inspecting and analyzing EVM Chains.
BlockScout provides a comprehensive, easy-to-use interface for users to view, confirm, and inspect transactions on EVM (Ethereum Virtual Machine) blockchains. This includes the POA Network, xDai Chain, Ethereum Classic and other Ethereum testnets, private networks and sidechains.
See our project documentation for detailed information and setup instructions.
Visit the POA BlockScout forum for FAQs, troubleshooting, and other BlockScout related items. You can also post and answer questions here.
You can also access the dev chatroom on our Gitter Channel.
BlockScout is an Elixir application that allows users to search transactions, view accounts and balances, and verify smart contracts on the Ethereum network including all forks and sidechains.
Currently available full-featured block explorers (Etherscan, Etherchain, Blockchair) are closed systems which are not independently verifiable. As Ethereum sidechains continue to proliferate in both private and public settings, transparent, open-source tools are needed to analyze and validate transactions.
Matic uses Blockscout explorer for its test networks: Testnetv2, Testnetv3, Alpha and BetaV2.
-
Clone the repository
-
cd blockscout
-
Install Mix dependencies, compile them and compile the application:
mix do deps.get, local.rebar --force, deps.compile, compile
-
Generate db secret
mix phx.gen.secret
-
Update
config.env
(add secret key and network specific details) -
Export variables
source config.env
-
Create and migrate database
mix do ecto.create, ecto.migrate
-
Install Node.js dependencies
cd apps/block_scout_web/assets; npm install && node_modules/webpack/bin/webpack.js --mode production; cd -
cd apps/explorer && npm install; cd -
-
(Make relevant directories if not already present)
-
$ mkdir apps/block_scout_web/priv/static $ mkdir apps/ethereum_jsonrpc/priv/static $ mkdir apps/explorer/priv/static $ mkdir apps/indexer/priv $ mkdir apps/indexer/priv/static
-
-
Build static assets for deployment
mix phx.digest
-
Enable HTTPS:
cd apps/block_scout_web; mix phx.gen.cert blockscout blockscout.local; cd -
-
Return to the root directory and start the Phoenix Server.
mix phx.server