Separate Indexer, Web App, and API
Last updated
Was this helpful?
Last updated
Was this helpful?
Blockscout supports several modes which run in a single all-in-one application by default.
Modes
All-in-one (default)
It is possible to run modes separately or in different combinations. For example, you may want to run the indexer mode + API
to create an indexed db with programmatic access and no UI, or indexer mode + UI
to leverage Blockscout as a read-only explorer.
Note that the application is limited to 1 running indexer per 1 Blockscout instance. However, the indexer automatically reruns child processes within the Elixir architecture, making it quite fault-tolerant.
To run these modes separately, adjust ENV variables as follows:
To run Blockscout in indexer mode, disable the web application and API:
To run Blockscout in web application mode only, disable the indexer and API read methods (API write functionality is not disabled to support smart contracts verification in the UI).
To run in API mode, disable the indexer and webapp.