The following ENVs are used for different integrations. Some work with various microservices (when the variable begins with MICROSERVICE) while others are contained within the application.More info on Blockscout Rust MicroServices is available in the blockscout-rs Github Repo.

Time format

Can be set in format 1h for 1 hour, 1m for 1 minute, 1s or 1 for 1 second, 1ms for 1 millisecond
Note : Before release 5.1.2, all environment variables of time format supported only integers in seconds (without dimensions) as values.

Smart-contract verifier / Eth Bytecode DB

Connecting to the smart contract verification service
VariableDescriptionParameters
MICROSERVICE_SC_VERIFIER_ENABLEDIf true, integration with Rust smart-contract verifier is enabled. true is the default value starting from version 6.4.0. Implemented in #5860Version: v5.1.3+
Default: true
Applications: API
MICROSERVICE_SC_VERIFIER_URLURL of Rust smart-contract verifier. Implemented in #5860Version: v5.1.3+
Default: https://eth-bytecode-db.services.blockscout.com/
Applications: API
MICROSERVICE_ETH_BYTECODE_DB_INTERVAL_BETWEEN_LOOKUPSMinimal time after unsuccessful check of smart contract’s sources in Eth Bytecode DB. Implemented in #7187.Version: v5.1.3+
Default: 10m
Applications: API
MICROSERVICE_SC_VERIFIER_TYPEType of smart contract microservice could be either eth_bytecode_db or sc_verifier. Implemented in #7187Version: v5.1.3+
Default: sc_verifier
Applications: API
MICROSERVICE_ETH_BYTECODE_DB_MAX_LOOKUPS_CONCURRENCYMaximum amount of concurrent requests for fetching smart contract’s sources in Eth Bytecode DB. Implemented in #8472Version: v5.3.0+
Default: 10
Applications: API
MICROSERVICE_SC_VERIFIER_API_KEYAPI key for verification that metadata sent to verifier microservice from a trusted source. Implemented in #8750Version: v5.3.2+
Default: (empty)
Applications: API

Sol2Uml

Sol2Uml is a visualization tool for Solidity contracts.

Scroll down on the contract page to find the View UML diagram link

Contract visualization example

VariableDescriptionParameters
MICROSERVICE_VISUALIZE_SOL2UML_ENABLEDIf true, integration with Rust sol2uml visualizer is enabled. Implemented in #6401Version: v5.1.3+
Default: (empty)
Applications: API
MICROSERVICE_VISUALIZE_SOL2UML_URLURL of Rust visualizer. Implemented in #6401Version: v5.1.3+
Default: (empty)
Applications: API

Sig-provider

The Sig-provider microservice is used by Blockscout to display decoded transaction data on transaction pages and to determine transaction actions
VariableDescriptionParameters
MICROSERVICE_SIG_PROVIDER_ENABLEDIf true, integration with Rust sig-provider service is enabled. Implemented in #6541Version: v5.1.3+
Default: (empty)
Applications: API
MICROSERVICE_SIG_PROVIDER_URLURL of Rust sig-provider service. Implemented in #6541Version: v5.1.3+
Default: (empty)
Applications: API

Blockscout ENS

Blockscout ENS provides indexed data of domain name service for blockscout instances. Learn more.
VariableDescriptionParameters
MICROSERVICE_BENS_ENABLEDIf true, integration with Blockscout ENS service is enabled. Implemented in #8972Version: v5.4.0+
Default: (empty)
Applications: API
MICROSERVICE_BENS_URLURL of Blockscout ENS service. Implemented in #8972Version: v5.4.0+
Default: (empty)
Applications: API

Blockscout Account Abstraction

Enables the User Ops Indexer, a service designed to index, decode and serve user operations as per the ERC-4337 standard
VariableDescriptionParameters
MICROSERVICE_ACCOUNT_ABSTRACTION_ENABLEDIf true, integration with Blockscout Account Abstraction service is enabled. Implemented in #9145Version: v6.1.0+
Default: (empty)
Applications: API
MICROSERVICE_ACCOUNT_ABSTRACTION_URLURL of Blockscout ENS service. Implemented in #9145Version: v6.1.0+
Default: (empty)
Applications: API

Tx Interpreter (Summary) Service

VariableDescriptionParameters
MICROSERVICE_TRANSACTION_INTERPRETATION_ENABLEDIf true, integration with Tx Interpreter Service is enabled. Implemented in #8957Version: v5.4.0+
Default: (empty)
Applications: API
MICROSERVICE_TRANSACTION_INTERPRETATION_URLURL of Tx Interpreter Service. Implemented in #8957Version: v5.4.0+
Default: (empty)
Applications: API

Metadata Service

VariableDescriptionParameters
MICROSERVICE_METADATA_ENABLEDIf true, integration with Metadata Service is enabled. Implemented in #9706Version: v6.4.0+
Default: (empty)
Applications: API
MICROSERVICE_METADATA_URLURL of Metadata Service. Implemented in #9706Version: v6.4.0+
Default: (empty)
Applications: API
MICROSERVICE_METADATA_PROXY_REQUESTS_TIMEOUTTimeout for request forwarding from /api/v2/proxy/metadata/. Implemented in #11656Version: v7.0.0+
Default: 30s
Applications: API

Multichain Search Service

Multichain Search is the single point of search of the data in the all blockchains.
VariableDescriptionParameters
MICROSERVICE_MULTICHAIN_SEARCH_URLMultichain Search Service API URL. Integration is enabled, if this variable value contains valid URL. Implemented in #11139Version: v6.10.0+
Default: (empty)
Applications: API, Indexer
MICROSERVICE_MULTICHAIN_SEARCH_API_KEYMultichain Search Service API key. Implemented in #11139Version: v6.10.0+
Default: (empty)
Applications: API, Indexer
MICROSERVICE_MULTICHAIN_SEARCH_ADDRESSES_CHUNK_SIZEChunk size of addresses while exporting to Multichain Search DB. Implemented in #12377Version: v8.1.0+
Default: 7000
Applications: API, Indexer
MICROSERVICE_MULTICHAIN_SEARCH_TOKEN_INFO_CHUNK_SIZEChunk size of token info while exporting to Multichain Search DB. Implemented in #12867Version: v9.0.0+
Default: 1000
Applications: Indexer
MIGRATION_BACKFILL_MULTICHAIN_SEARCH_BATCH_SIZEBatch size of backfilling Multichain Search Service DB. Implemented in #11139Version: v6.10.0+
Default: 10
Applications: Indexer
INDEXER_DISABLE_MULTICHAIN_SEARCH_DB_EXPORT_MAIN_QUEUE_FETCHERIf true, multichain DB main (blocks, transactions, addresses) export fetcher doesn’t run. Implemented in #12377.Version: v9.0.0+
Default: false
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_MAIN_QUEUE_BATCH_SIZEBatch size for multichain DB main (blocks, transactions, addresses) export fetcher. Implemented in #12377.Version: v9.0.0+
Default: 1000
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_MAIN_QUEUE_CONCURRENCYConcurrency for multichain DB main (blocks, transactions, addresses) export fetcher. Implemented in #12377.Version: v9.0.0+
Default: 10
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_MAIN_QUEUE_ENQUEUE_BUSY_WAITING_TIMEOUTTimeout before new attempt to append item to multichain DB main (blocks, transactions, addresses) export queue if it’s full. Time format. Implemented in #12377.Version: v9.0.0+
Default: 1s
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_MAIN_QUEUE_MAX_QUEUE_SIZEMaximum size of multichain DB main (blocks, transactions, addresses) export queue. Implemented in #12377.Version: v9.0.0+
Default: 1000
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_MAIN_QUEUE_INIT_QUERY_LIMITLimit of the init query for processing the main export queue to the Multichain DB. Implemented in #12822.Version: v9.0.0+
Default: 1000
Applications: Indexer
INDEXER_DISABLE_MULTICHAIN_SEARCH_DB_EXPORT_BALANCES_QUEUE_FETCHERIf true, multichain DB balances export fetcher doesn’t run. Implemented in #12580.Version: v9.0.0+
Default: false
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_BALANCES_QUEUE_BATCH_SIZEBatch size for multichain DB balances export fetcher. Implemented in #12580.Version: v9.0.0+
Default: 1000
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_BALANCES_QUEUE_CONCURRENCYConcurrency for multichain DB balances export fetcher. Implemented in #12580.Version: v9.0.0+
Default: 10
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_BALANCES_QUEUE_ENQUEUE_BUSY_WAITING_TIMEOUTTimeout before new attempt to append item to multichain DB balances export queue if it’s full. Time format. Implemented in #12580.Version: v9.0.0+
Default: 1s
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_BALANCES_QUEUE_MAX_QUEUE_SIZEMaximum size of multichain DB balances export queue. Implemented in #12580.Version: v9.0.0+
Default: 1000
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_BALANCES_QUEUE_INIT_QUERY_LIMITLimit of the init query for processing the balances export queue to the Multichain DB. Implemented in #12822.Version: v9.0.0+
Default: 1000
Applications: Indexer
INDEXER_DISABLE_MULTICHAIN_SEARCH_DB_EXPORT_TOKEN_INFO_QUEUE_FETCHERIf true, multichain DB token info export fetcher doesn’t run. Implemented in #12867.Version: v9.0.0+
Default: false
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_TOKEN_INFO_QUEUE_BATCH_SIZEBatch size for multichain DB token info export fetcher. Implemented in #12867.Version: v9.0.0+
Default: 1000
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_TOKEN_INFO_QUEUE_CONCURRENCYConcurrency for multichain DB token info export fetcher. Implemented in #12867.Version: v9.0.0+
Default: 10
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_TOKEN_INFO_QUEUE_ENQUEUE_BUSY_WAITING_TIMEOUTTimeout before new attempt to append item to multichain DB token info export queue if it’s full. Time format. Implemented in #12867.Version: v9.0.0+
Default: 1s
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_TOKEN_INFO_QUEUE_MAX_QUEUE_SIZEMaximum size of multichain DB token info export queue. Implemented in #12867.Version: v9.0.0+
Default: 1000
Applications: Indexer
INDEXER_MULTICHAIN_SEARCH_DB_EXPORT_TOKEN_INFO_QUEUE_INIT_QUERY_LIMITLimit of the init query for processing the token info export queue to the Multichain DB. Implemented in #12867.Version: v9.0.0+
Default: 1000
Applications: Indexer

TAC Operation Lifecycle Service

VariableDescriptionParameters
MICROSERVICE_TAC_OPERATION_LIFECYCLE_URLTAC Operation Lifecycle Service API URL. Integration is enabled, if this variable value contains valid URL. Implemented in #12367Version: v8.1.0+
Default: (empty)
Applications: API
MICROSERVICE_TAC_OPERATION_LIFECYCLE_ENABLEDIf false, TAC Operation Lifecycle Service integration is disabled despite MICROSERVICE_TAC_OPERATION_LIFECYCLE_URL. Implemented in #12367Version: v8.1.0+
Default: true
Applications: API

Sourcify

Allows for contract verification via Sourcify
VariableDescriptionParameters
SOURCIFY_INTEGRATION_ENABLEDEnables or disables verification of contracts through Sourcify.Version: v5.1.3+
Default: false
Applications: API
SOURCIFY_SERVER_URLURL to Sourcify backend.Version: v3.7.0+
Default: https://sourcify.dev/server
Applications: API
SOURCIFY_REPO_URLURL to Sourcify repository with fully verified contracts.Version: v3.7.0+
Default: https://repo.sourcify.dev/contracts/ Before v3.7.1: https://repo.sourcify.dev/contracts/full_match/
Applications: API

Tenderly

VariableDescriptionParameters
SHOW_TENDERLY_LINKif true, Open in Tenderly” button is displayed on the transaction page. Implemented in #4656Version: v4.0.0+
Default: (empty)
Applications: API
TENDERLY_CHAIN_PATHChain path to the transaction in Tenderly. For instance, for transactions in xDai, Tenderly link looks like this https://dashboard.tenderly.co/tx/xdai/0x..., then TENDERLY_CHAIN_PATH =/xdai. Implemented in #4656Version: v4.0.0+
Default: (empty)
Applications: API

Datadog

Integration with the Datadog monitoring and analytics tools
VariableDescriptionParameters
DATADOG_HOSTHost configuration setting for Datadog integration.Version: all
Default: (empty)
Applications: API
DATADOG_PORTPort configuration setting for Datadog integration.Version: all
Default: (empty)
Applications: API

Spandex

Spandex is a library for tracing Elixir applications
VariableDescriptionParameters
SPANDEX_BATCH_SIZESpandex and Datadog configuration setting.Version: all
Default: (empty)
Applications: API
SPANDEX_SYNC_THRESHOLDSpandex and Datadog configuration setting.Version: all
Default: (empty)
Applications: API

Analytics

Variables for adding Mixpanel and/or amplitude for visitor analytics.
VariableDescriptionParameters
MIXPANEL_TOKENMixpanel project token.Needs Recompile: ☑️ Version: v5.0.0+
Default: (empty)
Applications: API
MIXPANEL_URLUrl to use Mixpanel with proxy (Collection via Proxy).Needs Recompile: ☑️ Version: v5.0.0+
Default: (empty)
Applications: API
AMPLITUDE_API_KEYAmplitude API key.Needs Recompile: ☑️ Version: v5.0.0+
Default: (empty)
Applications: API
AMPLITUDE_URLUrl to use Amplitude with proxy (Use Domain Proxy to Relay Events).Needs Recompile: ☑️ Version: v5.0.0+
Default: (empty)
Applications: API

Solidityscan

Enables security scoring for smart contracts

VariableDescriptionParameters
SOLIDITYSCAN_PLATFORM_IDInternal platform id in Solidityscan. Implemented in #10473Version: v6.8.0+
Default: 16
Applications: API
SOLIDITYSCAN_CHAIN_IDInternal chain id in Solidityscan. It may not match with actual chain ID. Implemented in #8908Version: v5.3.3+
Default: (empty)
Applications: API
SOLIDITYSCAN_API_TOKENAPI token for usage of Solidityscan API.Version: v5.3.3+
Default: (empty)
Applications: API

Noves.fi

Adds additional transaction details such as summaries and asset flows. More info here.
VariableDescriptionParameters
NOVES_FI_BASE_API_URLNoves.fi API base URL. Implemented in #9056.Version: v6.1.0+
Default: https://blockscout.noves.fi
Applications: API
NOVES_FI_CHAIN_NAMENoves.fi API chain name. Implemented in #9056.Version: v6.1.0+
Default: (empty)
Applications: API
NOVES_FI_API_TOKENNoves.fi API token. Implemented in #9056.Version: v6.1.0+
Default: (empty)
Applications: API

MUD framework

The MUD framework provides standardized tools for data retrieval, libraries and more.
VariableDescriptionParameters
MUD_INDEXER_ENABLEDIf true, integration with MUD is enabled. Implemented in #9869Version: v6.6.0+
Default: (empty)
Applications: API
MUD_DATABASE_URLMUD indexer DB connection URL.Version: v6.6.0+
Default: value from DATABASE_URL
Applications: API
MUD_POOL_SIZEMUD indexer DB pool_sizeVersion: v6.6.0+
Default: 50
Applications: API

Xname app

Enables Xname app integration, which includes humanity score displayment.
VariableDescriptionParameters
XNAME_BASE_API_URLXname API base URL. Implemented in #11010.Version: v6.9.2+
Default: https://gateway.xname.app
Applications: API
XNAME_API_TOKENXname API token. Implemented in #11010.Version: v6.9.2+
Default: (empty)
Applications: API

Stylus contract verifier

Connecting to the Stylus smart contract verification service
VariableDescriptionParameters
MICROSERVICE_STYLUS_VERIFIER_URLURL of Stylus verifier. If set valid url and CHAIN_TYPE=arbitrum, integration with Stylus verifier is enabled. Implemented in #11183Version: v6.10.0+
Default: (empty)
Applications: API