A set of services used by Blockscout blockchain explorer, written in Rust.
-
blockscout-ens - indexed data of domain name service for blockscout instances.
-
da-indexer - collects blobs from different DA solutions (e.g, Celestia)
-
eth-bytecode-db - Ethereum Bytecode Database. Cross-chain smart-contracts database used for automatic contracts verification
-
proxy-verifier - backend for the standalone multi-chain verification service
-
sig-provider - aggregator of ethereum signatures for transactions and events
-
smart-contract-verifier - smart-contracts verification
-
stats - service designed to calculate and present statistical information from a Blockscout instance
-
user-ops-indexer - service designed to index, decode and serve user operations as per the ERC-4337 standard
-
visualizer - service for evm visualization such as:
- Solidity contract visualization using sol2uml
Services are distributed as docker images. For each service you can find information about packages and their recent releases inside service directories.
You can configure your app by passing necessary environment variables when starting the container. Configuration variables common for all services can be found here. See full list of ENVs and their description inside service directories.
docker run -p 8050:8050 --env-file <path-to-your-env-file> ghcr.io/blockscout/{service-name}:latest
Alternatively, you can build your own docker images or compile them directly from sources. Some of such options are described in build.
Most of the projects consist of 3 main parts:
-
{service-name}-proto
- defines the gRPC proto file with all API related data. Defines mapping HTTP/JSON requests and their parameters to those gRPC methods. -
{service-name}-logic
- the crate with the implementation of the main business logic.Note: previously the logic crate was named as
{service-name}
; some services still use that convention -
{service-name}-server
- initialize the server using the defined API. Using the methods from “{service-name}-logic” to handle incoming requests.
The separation on "logic" and "server" crates is designed to separate functional and transport layers. For now, "server" crates contain gRPC and HTTP as the transport layer. It was assumed, that users may want to implement their own APIs, for which the library with functional logic might be used.
Crates that require database connection may also have additional sea-orm defined crates:
{service-name}-migration
- contains migrations for the database{service-name}-entity
- contains the entity files generated from the schema
We appreciate your support. Before writing code and submitting pull request, please read contributing instructions.
This project is primarily distributed under the terms of the MIT license. See LICENSE-MIT for details.