ENVs

The app instance can be customized by passing variables to the Node.js environment at runtime.

Read before you run the app

Variables compulsoriness

Please note that in the tables below, the “Compulsoriness” column indicates whether the variable is required for starting up the application, except for the “App Features” section. All features are optional by definition; therefore, the “Compulsoriness” column indicates whether a certain variable is required or optional only within the context of that feature, not for the entire application.

Disclaimer about using variables

Please be aware that all environment variables prefixed with NEXT_PUBLIC_ will be exposed to the browser. So any user can obtain its values. Make sure that for all 3rd-party services keys (e.g., Auth0, WalletConnect, etc.) in the services administration panel you have created a whitelist of allowed origins and have added your app domain into it. That will help you prevent using your key by unauthorized app, if someone gets its value.

Note about escaping variables values

All json-like values should be single-quoted. If it contains a hash (#) or a dollar-sign ($) the whole value should be wrapped in single quotes as well (see dotenv readme for the reference)
Scroll horizontally to see all values in the variables tables.

Table of contents

App configuration

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_APP_PROTOCOLhttp | httpsApp url schema-httpshttpv1.0.x+
NEXT_PUBLIC_APP_HOSTstringApp hostRequired-blockscout.comv1.0.x+
NEXT_PUBLIC_APP_PORTnumberPort where app is running-30003001v1.0.x+
NEXT_PUBLIC_APP_ENVstringApp env (e.g development, staging, production, etc.).-productionstagingv1.0.x+
NEXT_PUBLIC_APP_INSTANCEstringName of app instance. Used for app monitoring purposes. If not provided, it will be constructed from NEXT_PUBLIC_APP_HOST--wonderful_keplerv1.0.x+
NEXT_PUBLIC_USE_NEXT_JS_PROXYbooleanTells the app to proxy all APIs request through the NextJS app. We strongly advise not to use it in the production environment, since it can lead to performance issues of the NodeJS server-falsetruev1.8.0+

Blockchain parameters

Note! The NEXT_PUBLIC_NETWORK_CURRENCY variables represent the blockchain’s native token used for paying transaction fees. NEXT_PUBLIC_NETWORK_SECONDARY_COIN variables refer to tokens like protocol-specific tokens (e.g., OP token on Optimism chain) or governance tokens (e.g., GNO on Gnosis chain).
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_NETWORK_NAMEstringDisplayed name of the networkRequired-Gnosis Chainv1.0.x+
NEXT_PUBLIC_NETWORK_SHORT_NAMEstringUsed for SEO attributes (e.g, page description)--OoGv1.0.x+
NEXT_PUBLIC_NETWORK_IDnumberChain id, see https://chainlist.org for the referenceRequired-99v1.0.x+
NEXT_PUBLIC_NETWORK_RPC_URLstring | Array<string>Chain public RPC server url, see https://chainlist.org for the reference. Can contain a single string value, or an array of urls.--https://core.poa.networkv1.0.x+
NEXT_PUBLIC_NETWORK_CURRENCY_NAMEstringNetwork currency name--Etherv1.0.x+
NEXT_PUBLIC_NETWORK_CURRENCY_WEI_NAMEstringName of network currency subdenomination-weiduckv1.23.0+
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOLstringNetwork currency symbol--ETHv1.0.x+
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALSstringNetwork currency decimals-186v1.0.x+
NEXT_PUBLIC_NETWORK_SECONDARY_COIN_SYMBOLstringNetwork secondary coin symbol.--GNOv1.29.0+
NEXT_PUBLIC_NETWORK_MULTIPLE_GAS_CURRENCIESbooleanSet to true for networks where users can pay transaction fees in either the native coin or ERC-20 tokens.-falsetruev1.33.0+
NEXT_PUBLIC_NETWORK_VERIFICATION_TYPEvalidation | miningVerification type in the network. Irrelevant for Arbitrum (verification type is always posting) and ZkEvm (verification type is always sequencing) L2s-miningvalidationv1.0.x+
NEXT_PUBLIC_NETWORK_TOKEN_STANDARD_NAMEstringName of the standard for creating tokens-ERCBEPv1.31.0+
NEXT_PUBLIC_IS_TESTNETbooleanSet to true if network is testnet-falsetruev1.0.x+

API configuration

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_API_PROTOCOLhttp | httpsMain API protocol-httpshttpv1.0.x+
NEXT_PUBLIC_API_HOSTstringMain API hostRequired-blockscout.comv1.0.x+
NEXT_PUBLIC_API_PORTnumberPort where API is running on the host--3001v1.0.x+
NEXT_PUBLIC_API_BASE_PATHstringBase path for Main API endpoint url--/poa/corev1.0.x+
NEXT_PUBLIC_API_WEBSOCKET_PROTOCOLws | wssMain API websocket protocol-wsswsv1.0.x+

UI configuration

Homepage

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_HOMEPAGE_CHARTSArray<daily_txs | daily_operational_txs | coin_price | secondary_coin_price | market_cap | tvl>List of charts displayed on the home page--["daily_txs","coin_price","market_cap"]v1.0.x+
NEXT_PUBLIC_HOMEPAGE_STATSArray<latest_batch | total_blocks | average_block_time | total_txs | total_operational_txs | latest_l1_state_batch | wallet_addresses | gas_tracker | btc_locked | current_epoch>List of stats widgets displayed on the home page-For zkSync, zkEvm and Arbitrum rollups: ["latest_batch","average_block_time","total_txs","wallet_addresses","gas_tracker"], for other cases: ["total_blocks","average_block_time","total_txs","wallet_addresses","gas_tracker"]["total_blocks","total_txs","wallet_addresses"]v1.35.x+
NEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLORstringText color of the hero plate on the homepage (escape ”#” symbol if you use HEX color codes or use rgba-value instead). DEPRECATED Use NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIG instead-white\\#DCFE76v1.0.x+
NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUNDstringBackground css value for hero plate on the homepage (escape ”#” symbol if you use HEX color codes or use rgba-value instead). DEPRECATED Use NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIG instead-radial-gradient(103.03% 103.03% at 0% 0%, rgba(183, 148, 244, 0.8) 0%, rgba(0, 163, 196, 0.8) 100%), var(--chakra-colors-blue-400)radial-gradient(at 15% 86%, hsla(350,65%,70%,1) 0px, transparent 50%) | no-repeat bottom 20% right 0px/100% url(https://placekitten/1400/200)v1.1.0+
NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIGHeroBannerConfig, see details belowConfiguration of hero banner appearance.--See belowv1.35.0+

Hero banner configuration properties

Note Here, all values are arrays of up to two strings. The first string represents the value for the light color mode, and the second string represents the value for the dark color mode. If the array contains only one string, it will be used for both color modes.
VariableTypeDescriptionCompulsorinessDefault valueExample value
background[string, string]Banner background (could be a solid color, gradient or picture). The string should be a valid background CSS property value.-[radial-gradient(103.03% 103.03% at 0% 0%, rgba(183, 148, 244, 0.8) 0%, rgba(0, 163, 196, 0.8) 100%), var(--chakra-colors-blue-400)][lightpink,no-repeat bottom 20% right 0px/100% url(https://placekitten/1400/200)]
text_color[string, string]Banner text background. The string should be a valid color CSS property value.-[white][lightpink,\\#DCFE76]
border[string, string]Banner border. The string should be a valid border CSS property value.--[1px solid yellow,4px dashed \\#DCFE76]
buttonPartial<Record<_default | _hover | _selected, {background?: [string, string]; text_color?:[string, string]}>>The button on the banner. It has three possible states: _default, _hover, and _selected. The _selected state reflects when the user is logged in or their wallet is connected to the app.--{_default:{background:[deeppink],text_color:[white]}}
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_NETWORK_LOGOstringNetwork logo; if not provided, placeholder will be shown; Note the logo height should be 24px and width less than 120px--https://placekitten.com/240/40v1.0.x+
NEXT_PUBLIC_NETWORK_LOGO_DARKstringNetwork logo for dark color mode; if not provided, inverted regular logo will be used instead--https://placekitten.com/240/40v1.0.x+
NEXT_PUBLIC_NETWORK_ICONstringNetwork icon; used as a replacement for regular network logo when nav bar is collapsed; if not provided, placeholder will be shown; Note the icon size should be at least 60px by 60px--https://placekitten.com/60/60v1.0.x+
NEXT_PUBLIC_NETWORK_ICON_DARKstringNetwork icon for dark color mode; if not provided, inverted regular icon will be used instead--https://placekitten.com/60/60v1.0.x+
NEXT_PUBLIC_FEATURED_NETWORKSstringURL of configuration file (.json format only) or file content string representation. It contains list of featured networks that will be shown in the network menu. See below list of available properties for particular network--https://example.com/featured_networks_config.json | [{"title":"Astar(EVM)","url":"https://astar.blockscout.com/","group":"Mainnets","icon":"https://example.com/astar.svg"}]v1.0.x+
NEXT_PUBLIC_OTHER_LINKSArray<{url: string; text: string}>List of links for the “Other” navigation menu--[{"url":"https://blockscout.com","text":"Blockscout"}]v1.0.x+
NEXT_PUBLIC_NAVIGATION_HIDDEN_LINKSArray<LinkId>List of external links hidden in the navigation. Supported ids are eth_rpc_api, rpc_api--["eth_rpc_api"]v1.16.0+
NEXT_PUBLIC_NAVIGATION_HIGHLIGHTED_ROUTESArray<string>List of menu item routes that should have a lightning label--["/accounts"]v1.31.0+
NEXT_PUBLIC_NAVIGATION_LAYOUTvertical | horizontalNavigation menu layout type-verticalhorizontalv1.32.0+
VariableTypeDescriptionCompulsorinessDefault valueExample value
titlestringDisplayed name of the networkRequired-Gnosis Chain
urlstringNetwork explorer main page urlRequired-https://blockscout.com/xdai/mainnet
groupMainnets | Testnets | OtherIndicates in which tab network appears in the menuRequired-Mainnets
iconstringNetwork icon; if not provided, the common placeholder will be shown; Note that icon size should be at least 60px by 60px--https://placekitten.com/60/60
isActivebooleanPass true if item should be shown as active in the menu--true
invertIconInDarkModebooleanPass true if icon colors should be inverted in dark mode--true
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_FOOTER_LINKSstringURL of configuration file (.json format only) or file content string representation. It contains list of link groups to be displayed in the footer. See below list of available properties for particular group--https://example.com/footer_links_config.json | [{"title":"My chain","links":[{"text":"About","url":"https://example.com/about"},{"text":"Contacts","url":"https://example.com/contacts"}]}]v1.1.1+
The app version shown in the footer is derived from build-time ENV variables NEXT_PUBLIC_GIT_TAG and NEXT_PUBLIC_GIT_COMMIT_SHA and cannot be overwritten at run-time.
VariableTypeDescriptionCompulsorinessDefault valueExample value
titlestringTitle of link groupRequired-Company
linksArray<{"text":string;"url":string;}>list of linksRequired-[{"text":"Homepage","url":"https://www.blockscout.com"}]

Favicon

By default, the app has generic favicon. You can override this behavior by providing the following variable. Hence, the favicon assets bundle will be generated at the container start time and will be used instead of default one.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
FAVICON_MASTER_URLstring--NEXT_PUBLIC_NETWORK_ICONhttps://placekitten.com/180/180v1.11.0+

Meta

Settings for meta tags, OG tags and SEO
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLEbooleanSet to true to promote Blockscout in meta and OG titles-truetruev1.12.0+
NEXT_PUBLIC_OG_DESCRIPTIONstringCustom OG description--Open-source block explorer by Blockscout. Search transactions, verify smart contracts, analyze addresses, and track network activity. Complete blockchain data and APIs for the %network_title% network.v1.12.0+
NEXT_PUBLIC_OG_IMAGE_URLstringOG image url. Minimum image size is 200 x 20 pixels (recommended: 1200 x 600); maximum supported file size is 8 MB; 2:1 aspect ratio; supported formats: image/jpeg, image/gif, image/png-static/og_placeholder.pnghttps://placekitten.com/1200/600v1.12.0+
NEXT_PUBLIC_OG_ENHANCED_DATA_ENABLEDbooleanSet to true to populate OG tags (title, description) with API data for social preview robot requests-falsetruev1.29.0+
NEXT_PUBLIC_SEO_ENHANCED_DATA_ENABLEDbooleanSet to true to pre-render page titles (e.g Token page) on the server side and inject page h1-tag to the markup before it is sent to the browser.-falsetruev1.30.0+

Views

Block views

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_VIEWS_BLOCK_HIDDEN_FIELDSArray<BlockFieldId>Array of the block fields ids that should be hidden. See below the list of the possible id values.--["burnt_fees","total_reward"]v1.10.0+
Block fields list
IdDescription
base_feeBase fee
burnt_feesBurnt fees
total_rewardTotal block reward
nonceBlock nonce
minerAddress of block’s miner or validator
L1_statusShort interpretation of the batch lifecycle (applicable for Rollup chains)
batchBatch index (applicable for Rollup chains)

Address views

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_VIEWS_ADDRESS_IDENTICON_TYPEgithub | jazzicon | gradient_avatar | blockie | nounsDefault style of address identicon appearance. Choose between GitHub, Metamask Jazzicon, Gradient Avatar, Ethereum Blocky and Nouns-jazzicongradient_avatarv1.12.0+
NEXT_PUBLIC_VIEWS_ADDRESS_FORMATArray<"base16" | "bech32">Displayed address format, could be either base16 standard or bech32 standard. If the array contains multiple values, the address format toggle will appear in the UI, allowing the user to switch between formats. The first item in the array will be the default format.-["base16"]["bech32", "base16"]v1.36.0+
NEXT_PUBLIC_VIEWS_ADDRESS_BECH_32_PREFIXstringHuman-readable prefix of bech32 address format.Required, if NEXT_PUBLIC_VIEWS_ADDRESS_FORMAT contains “bech32” value-duckv1.36.0+
NEXT_PUBLIC_VIEWS_ADDRESS_HIDDEN_VIEWSArray<AddressViewId>Address views that should not be displayed. See below the list of the possible id values.--["top_accounts"]v1.15.0+
NEXT_PUBLIC_VIEWS_CONTRACT_SOLIDITYSCAN_ENABLEDbooleanSet to true if SolidityScan reports are supported--truev1.19.0+
NEXT_PUBLIC_VIEWS_CONTRACT_EXTRA_VERIFICATION_METHODSArray<"solidity-hardhat" | "solidity-foundry">Pass an array of additional methods from which users can choose while verifying a smart contract. Both methods are available by default, pass none string to disable them all.--["solidity-hardhat"]v1.33.0+
NEXT_PUBLIC_VIEWS_CONTRACT_LANGUAGE_FILTERSArray<"solidity" | "vyper" | "yul" | "scilla">Pass an array of contract languages that will be displayed as options in the filter on the verified contract page.-["solidity","vyper","yul"]["solidity","vyper","yul","scilla"]v1.37.0+
Address views list
IdDescription
top_accountsTop accounts

Transaction views

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_VIEWS_TX_HIDDEN_FIELDSArray<TxFieldsId>Array of the transaction fields ids that should be hidden. See below the list of the possible id values.--["value","tx_fee"]v1.15.0+
NEXT_PUBLIC_VIEWS_TX_ADDITIONAL_FIELDSArray<TxAdditionalFieldsId>Array of the additional fields ids that should be added to the transaction details. See below the list of the possible id values.--["fee_per_gas"]v1.15.0+
Transaction fields list
IdDescription
valueSent value
fee_currencyFee currency
gas_pricePrice per unit of gas
tx_feeTotal transaction fee
gas_feesGas fees breakdown
burnt_feesAmount of native coin burnt for transaction
L1_statusShort interpretation of the batch lifecycle (applicable for Rollup chains)
batchBatch index (applicable for Rollup chains)
Transaction additional fields list
IdDescription
fee_per_gasAmount of total fee divided by total amount of gas used by transaction

Token views

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_VIEWS_TOKEN_SCAM_TOGGLE_ENABLEDbooleanShow the “Hide scam tokens” toggle in the site settings dropdown. This option controls the visibility of tokens with a poor reputation in the search results.-falsetruev1.38.0+

NFT views

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_VIEWS_NFT_MARKETPLACESArray<NftMarketplace> where NftMarketplace can have following propertiesUsed to build up links to NFT collections and NFT instances in external marketplaces.--[{"name":"OpenSea","collection_url":"https://opensea.io/assets/ethereum/{hash}","instance_url":"https://opensea.io/assets/ethereum/{hash}/{id}","logo_url":"https://opensea.io/static/images/logos/opensea-logo.svg"}]v1.15.0+
NEXT_PUBLIC_HELIA_VERIFIED_FETCH_ENABLEDbooleanIndicates that the Helia verified fetch should be used for retrieving content of NFT assets (currently limited to images) directly from IPFS network using trustless gateways.-truefalsev1.37.0+
NFT marketplace properties
VariableTypeDescriptionCompulsorinessDefault valueExample value
namestringDisplayed name of the marketplaceRequired-OpenSea
collection_urlstringURL template for NFT collectionRequired-https://opensea.io/assets/ethereum/{hash}
instance_urlstringURL template for NFT instanceRequired-https://opensea.io/assets/ethereum/{hash}/{id}
logo_urlstringURL of marketplace logoRequired-https://opensea.io/static/images/logos/opensea-logo.svg
Note URL templates should contain placeholders of NFT hash ({hash}) and NFT id ({id}). This placeholders will be substituted with particular values for every collection or instance.

Misc

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_NETWORK_EXPLORERSArray<NetworkExplorer> where NetworkExplorer can have following propertiesUsed to build up links to transactions, blocks, addresses in other chain explorers.--[{"title":"Anyblock","baseUrl":"https://explorer.anyblock.tools","paths":{"tx":"/ethereum/poa/core/tx"}}]v1.0.x+
NEXT_PUBLIC_CONTRACT_CODE_IDESArray<ContractCodeIde> where ContractCodeIde can have following propertiesUsed to build up links to IDEs with contract source code.--[{"title":"Remix IDE","url":"https://remix.blockscout.com/?address={hash}&blockscout={domain}","icon_url":"https://example.com/icon.svg"}]v1.23.0+
NEXT_PUBLIC_HAS_CONTRACT_AUDIT_REPORTSbooleanSet to true to enable Submit Audit form on the contract page-falsetruev1.25.0+
NEXT_PUBLIC_HIDE_INDEXING_ALERT_BLOCKSbooleanSet to true to hide indexing alert in the page header about indexing chain’s blocks-falsetruev1.17.0+
NEXT_PUBLIC_HIDE_INDEXING_ALERT_INT_TXSbooleanSet to true to hide indexing alert in the page footer about indexing block’s internal transactions-falsetruev1.17.0+
NEXT_PUBLIC_MAINTENANCE_ALERT_MESSAGEstringUsed for displaying custom announcements or alerts in the header of the site. Could be a regular string or a HTML code.--Hello world! 🤪v1.13.0+
NEXT_PUBLIC_COLOR_THEME_DEFAULTlight | dim | midnight | darkPreferred color theme of the app--midnightv1.30.0+
NEXT_PUBLIC_FONT_FAMILY_HEADINGFontFamily, see full description belowSpecial typeface to use in page headings (<h1>, <h2>, etc.)--{"name":"Montserrat","url":"https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap"}v1.35.0+
NEXT_PUBLIC_FONT_FAMILY_BODYFontFamily, see full description belowMain typeface to use in page content elements.--{"name":"Raleway","url":"https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap"}v1.35.0+
NEXT_PUBLIC_MAX_CONTENT_WIDTH_ENABLEDbooleanSet to true to restrict the page content width on extra-large screens.-truefalsev1.34.1+

Network explorer configuration properties

VariableTypeDescriptionCompulsorinessDefault valueExample value
logostringURL to explorer logo file. Should be at least 40x40.--https://foo.app/icon.png
titlestringDisplayed name of the explorerRequired-Anyblock
baseUrlstringBase url of the explorerRequired-https://explorer.anyblock.tools
pathsRecord<"tx" | "block" | "address" | "token", string>Map of explorer entities and their paths. Path can be a template with :id or :id_lowercase param, or a string (see note below)Required-{"tx":"/ethereum/poa/core/tx"}
Note If a path template contains :id or :id_lowercase, it will be replaced with the entity-id in its original case or lowercased respectively. If neither parameter is present, the entity-id will be appended to the end of the path in lowercase. For example, with baseUrl https://explorer.anyblock.tools:
  • Path {"tx":"/ethereum/poa/core/tx/:id/details"} and entity-id 0x123...AbC results in https://explorer.anyblock.tools/ethereum/poa/core/tx/0x123...AbC/details
  • Path {"tx":"/ethereum/poa/core/tx/:id_lowercase/details"} and entity-id 0x123...AbC results in https://explorer.anyblock.tools/ethereum/poa/core/tx/0x123...abc/details
  • Path {"tx":"/ethereum/poa/core/tx"} and entity-id 0x123...AbC results in https://explorer.anyblock.tools/ethereum/poa/core/tx/0x123...abc

Contract code IDE configuration properties

VariableTypeDescriptionCompulsorinessDefault valueExample value
titlestringDisplayed name of the IDERequired-Remix IDE
urlstringURL of the IDE with placeholders for contract hash ({hash}) and current domain ({domain})Required-https://remix.blockscout.com/?address={hash}&blockscout={domain}
icon_urlstringURL of the IDE iconRequired-https://example.com/icon.svg

Font family configuration properties

VariableTypeDescriptionCompulsorinessDefault valueExample value
namestringFont family name; used to define the font-family CSS property.Required-Montserrat
urlstringURL for external font. Ensure the font supports the following weights: 400, 500, 600, and 700.Required-https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap

App features

Note The variables which are marked as required should be passed as described in order to enable the particular feature, but they are not required in the entire app context.

My account

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_IS_ACCOUNT_SUPPORTEDbooleanSet to true if network has account featureRequired-truev1.0.x+
NEXT_PUBLIC_RE_CAPTCHA_APP_SITE_KEYbooleanSee belowRequired-<your-secret>v1.0.x+
NEXT_PUBLIC_AUTH0_CLIENT_IDstringDEPRECATED Client id for Auth0 provider--<your-secret>v1.0.x+
NEXT_PUBLIC_AUTH_URLstringDEPRECATED Account auth base url; it is used for building login URL (${ NEXT_PUBLIC_AUTH_URL }/auth/auth0) and logout return URL (${ NEXT_PUBLIC_AUTH_URL }/auth/logout); if not provided the base app URL will be used instead--https://blockscout.comv1.0.x+
NEXT_PUBLIC_LOGOUT_URLstringDEPRECATED Account logout url. Required if account is supported for the app instance.--https://blockscoutcom.us.auth0.com/v2/logoutv1.0.x+

Gas tracker

This feature is enabled by default. To switch it off pass NEXT_PUBLIC_GAS_TRACKER_ENABLED=false.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_GAS_TRACKER_ENABLEDbooleanSet to true to enable “Gas tracker” in the appRequiredtruefalsev1.25.0+
NEXT_PUBLIC_GAS_TRACKER_UNITSArray<"usd" | "gwei">Array of units for displaying gas prices on the Gas Tracker page, in the stats snippet on the Home page, and in the top bar. The first value in the array will take priority over the second one in all mentioned views. If only one value is provided, gas prices will be displayed only in that unit.-[ "usd", "gwei" ][ "gwei" ]v1.25.0+

Advanced filter

This feature is enabled by default. To switch it off pass NEXT_PUBLIC_ADVANCED_FILTER_ENABLED=false.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_ADVANCED_FILTER_ENABLEDbooleanSet to true to enable “Advanced filter” page in the appRequiredtruefalsev1.37.0+

Address verification in “My account”

Note all ENV variables required for My account feature should be passed alongside the following ones:
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_CONTRACT_INFO_API_HOSTstringContract Info API endpoint urlRequired-https://contracts-info.services.blockscout.comv1.1.0+
NEXT_PUBLIC_ADMIN_SERVICE_API_HOSTstringAdmin Service API endpoint urlRequired-https://admin-rs.services.blockscout.comv1.1.0+

Blockchain interaction (writing to contract, etc.)

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_IDstringProject id for WalletConnect integrationRequired-<your-secret>v1.0.x+
NEXT_PUBLIC_NETWORK_RPC_URLstringSee in Blockchain parameters sectionRequired-https://core.poa.networkv1.0.x+
NEXT_PUBLIC_NETWORK_NAMEstringSee in Blockchain parameters sectionRequired-Gnosis Chainv1.0.x+
NEXT_PUBLIC_NETWORK_IDnumberSee in Blockchain parameters sectionRequired-99v1.0.x+
NEXT_PUBLIC_NETWORK_CURRENCY_NAMEstringSee in Blockchain parameters sectionRequired-Etherv1.0.x+
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOLstringSee in Blockchain parameters sectionRequired-ETHv1.0.x+
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALSstringSee in Blockchain parameters section-186v1.0.x+
This feature is enabled by default with the slise ads provider. To switch it off pass NEXT_PUBLIC_AD_BANNER_PROVIDER=none.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_AD_BANNER_PROVIDER"slise" | "adbutler" | "coinzilla" | "hype" | "none"Ads provider-slisecoinzillav1.0.x+
NEXT_PUBLIC_AD_BANNER_ADDITIONAL_PROVIDERadbutlerAdditional ads provider to mix with the main one--adbutlerv1.28.0+
NEXT_PUBLIC_AD_ADBUTLER_CONFIG_DESKTOP{ id: string; width: string; height: string }Placement config for desktop Adbutler banner--{"id":"123456","width":"728","height":"90"}v1.3.0+
NEXT_PUBLIC_AD_ADBUTLER_CONFIG_MOBILE{ id: string; width: number; height: number }Placement config for mobile Adbutler banner--{"id":"654321","width":"300","height":"100"}v1.3.0+

Text ads

This feature is enabled by default with the coinzilla ads provider. To switch it off pass NEXT_PUBLIC_AD_TEXT_PROVIDER=none.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_AD_TEXT_PROVIDER"coinzilla" | "none"Ads provider-coinzillanonev1.0.x+

Beacon chain

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_HAS_BEACON_CHAINbooleanSet to true for networks with the beacon chainRequired-truev1.0.x+
NEXT_PUBLIC_BEACON_CHAIN_CURRENCY_SYMBOLstringBeacon network currency symbol-NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOLETHv1.0.x+

User operations (ERC-4337)

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_HAS_USER_OPSbooleanSet to true to show user operations related data and pages--truev1.23.0+

Rollup chain

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_ROLLUP_TYPE"optimistic" | "arbitrum" | "shibarium" | "zkEvm" | "zkSync" | "scroll"Rollup chain typeRequired-"optimistic"v1.24.0+
NEXT_PUBLIC_ROLLUP_L1_BASE_URLstringBlockscout base URL for L1 network. DEPRECATED Use NEXT_PUBLIC_ROLLUP_PARENT_CHAIN insteadRequired-http://eth-goerli.blockscout.comv1.24.0+
NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URLstringURL for L2 -> L1 withdrawals (Optimistic stack only)Required for optimistic rollups-https://app.optimism.io/bridge/withdrawv1.24.0+
NEXT_PUBLIC_ROLLUP_STAGE_INDEX"1" | "2"Reflects the maturity and decentralization level of the chain based on L2BEAT’s framework. The label will be added to the sidebar according to the provided stage index. Not applicable for testnets.--"1"v2.1.0+
NEXT_PUBLIC_FAULT_PROOF_ENABLEDbooleanSet to true for chains with fault proof system enabled (Optimistic stack only)--truev1.31.0+
NEXT_PUBLIC_HAS_MUD_FRAMEWORKbooleanSet to true for instances that use MUD framework (Optimistic stack only)--truev1.33.0+
NEXT_PUBLIC_INTEROP_ENABLEDbooleanEnables “Interop messages” page (Optimistic stack only)-falsetruev1.39.0+
NEXT_PUBLIC_ROLLUP_HOMEPAGE_SHOW_LATEST_BLOCKSbooleanSet to true to display “Latest blocks” widget instead of “Latest batches” on the home page--truev1.36.0+
NEXT_PUBLIC_ROLLUP_OUTPUT_ROOTS_ENABLEDbooleanEnables “Output roots” page (Optimistic stack only)-falsetruev1.37.0+
NEXT_PUBLIC_ROLLUP_PARENT_CHAIN_NAMEstringSet to customize L1 transaction status labels in the UI (e.g., “Sent to ”). This setting is applicable only for Arbitrum-based chains. DEPRECATED Use NEXT_PUBLIC_ROLLUP_PARENT_CHAIN instead--DuckChainv1.37.0+
NEXT_PUBLIC_ROLLUP_PARENT_CHAINParentChain, see details belowConfiguration parameters for the parent chain.--{"baseUrl":"https://explorer.duckchain.io"}v1.38.0+
NEXT_PUBLIC_ROLLUP_DA_CELESTIA_NAMESPACEstringHex-string for creating a link to the transaction batch on the Seleneium explorer. “0x”-format and 60 symbol length. Available only for Arbitrum roll-ups.--0x00000000000000000000000000000000000000ca1de12a9905be97beafv1.38.0+
NEXT_PUBLIC_ROLLUP_DA_CELESTIA_CELENIUM_URLstringURL for the Selenium explorer. It is used to create links to the Data Availability Blobs page. The URL should contain the full path without any search parameters related to the blob, as these will be constructed at runtime for each blob separately. Available only for Optimistic or Arbitrum roll-ups.--https://mocha.celenium.io/blobv2.0.2+

Parent chain configuration properties

VariableTypeDescriptionCompulsorinessDefault valueExample value
idnumberChain id, see https://chainlist.org for the reference.--42
namestringDisplayed name of the chain. Set to customize L1 transaction status labels in the UI (e.g., “Sent to ”). Currently, this setting is applicable only for Arbitrum-based chains.--DuckChain
baseUrlstringBase url of the chain explorer.Required-https://explorer.duckchain.io
rpcUrlsArray<string>Chain public RPC server urls, see https://chainlist.org for the reference.--["https://rpc.duckchain.io"]
currency{ name: string; symbol: string; decimals: number; }Chain currency config.--{ name: Quack, symbol: QUA, decimals: 18 }
isTestnetbooleanSet to true if network is testnet.--true

Export data to CSV file

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_RE_CAPTCHA_APP_SITE_KEYstringSee belowtrue-<your-secret>v1.0.x+

Google analytics

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_GOOGLE_ANALYTICS_PROPERTY_IDstringProperty ID for Google Analytics servicetrue-UA-XXXXXX-Xv1.0.x+

Mixpanel analytics

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_MIXPANEL_PROJECT_TOKENstringProject token for Mixpanel analytics servicetrue-<your-secret>v1.1.0+

GrowthBook feature flagging and A/B testing

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_GROWTH_BOOK_CLIENT_KEYstringClient SDK key for GrowthBook servicetrue-<your-secret>v1.22.0+

GraphQL API documentation

This feature is always enabled, but you can disable it by passing none value to NEXT_PUBLIC_GRAPHIQL_TRANSACTION variable.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_GRAPHIQL_TRANSACTIONstringTxn hash for default query at GraphQl playground page. Pass none to disable the feature.--0x4a0ed8ddf751a7cb5297f827699117b0f6d21a0b2907594d300dc9fed75c7e62v1.0.x+

REST API documentation

This feature is always enabled, but you can disable it by passing none value to NEXT_PUBLIC_API_SPEC_URL variable.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_API_SPEC_URLstringSpec to be displayed on /api-docs page. Pass none to disable the feature.-https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yamlhttps://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yamlv1.0.x+

Marketplace

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_MARKETPLACE_ENABLEDbooleantrue means that the marketplace page will be enabledRequired-truev1.24.1+
NEXT_PUBLIC_MARKETPLACE_CONFIG_URLstringURL of configuration file (.json format only) which contains list of apps that will be shown on the marketplace page. See below list of available properties for an app. Can be replaced with NEXT_PUBLIC_ADMIN_SERVICE_API_HOSTRequired-https://example.com/marketplace_config.jsonv1.0.x+
NEXT_PUBLIC_ADMIN_SERVICE_API_HOSTstringAdmin Service API endpoint url. Can be used instead of NEXT_PUBLIC_MARKETPLACE_CONFIG_URL--https://admin-rs.services.blockscout.comv1.1.0+
NEXT_PUBLIC_MARKETPLACE_SUBMIT_FORMstringLink to form where authors can submit their dapps to the marketplaceRequired-https://airtable.com/shrqUAcjgGJ4jU88Cv1.0.x+
NEXT_PUBLIC_MARKETPLACE_SUGGEST_IDEAS_FORMstringLink to form where users can suggest ideas for the marketplace--https://airtable.com/appiy5yijZpMMSKjT/pag3t82DUCyhGRZZO/formv1.24.0+
NEXT_PUBLIC_NETWORK_RPC_URLstringSee in Blockchain parameters sectionRequired-https://core.poa.networkv1.0.x+
NEXT_PUBLIC_MARKETPLACE_CATEGORIES_URLstringURL of configuration file (.json format only) which contains the list of categories to be displayed on the marketplace page in the specified order. If no URL is provided, then the list of categories will be compiled based on the categories fields from the marketplace (apps) configuration file--https://example.com/marketplace_categories.jsonv1.23.0+
NEXT_PUBLIC_MARKETPLACE_SECURITY_REPORTS_URLstringURL of configuration file (.json format only) which contains app security reports for displaying security scores on the Marketplace page--https://example.com/marketplace_security_reports.jsonv1.28.0+
NEXT_PUBLIC_MARKETPLACE_FEATURED_APPstringID of the featured application to be displayed on the banner on the Marketplace page--uniswapv1.29.0+
NEXT_PUBLIC_MARKETPLACE_BANNER_CONTENT_URLstringURL of the banner HTML content--https://example.com/bannerv1.29.0+
NEXT_PUBLIC_MARKETPLACE_BANNER_LINK_URLstringURL of the page the banner leads to--https://example.comv1.29.0+
NEXT_PUBLIC_MARKETPLACE_RATING_AIRTABLE_API_KEYstringAirtable API key---v1.33.0+
NEXT_PUBLIC_MARKETPLACE_RATING_AIRTABLE_BASE_IDstringAirtable base ID with dapp ratings---v1.33.0+
NEXT_PUBLIC_MARKETPLACE_GRAPH_LINKS_URLstringURL of the file (.json format only) which contains the list of The Graph links to be displayed on the Marketplace page--https://example.com/graph_links.jsonv1.36.0+

Marketplace app configuration properties

PropertyTypeDescriptionCompulsorinessExample value
idstringUsed as slug for the app. Must be unique in the app list.Requiredapp
externalbooleantrue means that the application opens in a new window, but not in an iframe.-true
titlestringDisplayed title of the app.RequiredThe App
logostringURL to logo file. Should be at least 288x288.Requiredhttps://foo.app/icon.png
shortDescriptionstringDisplayed only in the app list.RequiredAwesome app
categoriesArray<string>Displayed category.Required[Security, Tools]
authorstringDisplayed author of the appRequiredBob
urlstringURL of the app which will be launched in the iframe.Requiredhttps://foo.app/launch
descriptionstringDisplayed only in the modal dialog with additional info about the app.RequiredThe best app
sitestringDisplayed site link-https://blockscout.com
twitterstringDisplayed twitter link-https://twitter.com/blockscoutcom
telegramstringDisplayed telegram link-https://t.me/poa_network
githubstringDisplayed github link-https://github.com/blockscout
internalWalletbooleantrue means that the application can automatically connect to the Blockscout wallet.-true
prioritynumberThe higher the priority, the higher the app will appear in the list on the Marketplace page.-7

Solidity to UML diagrams

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_VISUALIZE_API_HOSTstringVisualize API endpoint urlRequired-https://visualizer.services.blockscout.comv1.0.x+
NEXT_PUBLIC_VISUALIZE_API_BASE_PATHstringBase path for Visualize API endpoint url--/poa/corev1.29.0+

Blockchain statistics

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_STATS_API_HOSTstringStats API endpoint urlRequired-https://stats.services.blockscout.comv1.0.x+
NEXT_PUBLIC_STATS_API_BASE_PATHstringBase path for Stats API endpoint url--/poa/corev1.29.0+

Web3 wallet integration (add token or network to the wallet)

This feature is enabled by default with the [metamask] value. To switch it off pass NEXT_PUBLIC_WEB3_WALLETS=none.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_WEB3_WALLETSArray<"metamask" | "coinbase" | "token_pocket">Array of Web3 wallets which will be used to add tokens or chain to. The first wallet which is enabled in user’s browser will be shown.-[ "metamask" ][ "coinbase" ]v1.10.0+
NEXT_PUBLIC_WEB3_DISABLE_ADD_TOKEN_TO_WALLETbooleanSet to true to hide icon “Add to your wallet” next to token addresses--truev1.0.x+

Transaction interpretation

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_TRANSACTION_INTERPRETATION_PROVIDER"blockscout" | "noves" | "none"Transaction interpretation provider that displays human readable transaction description-noneblockscoutv1.21.0+

External transactions

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_TX_EXTERNAL_TRANSACTIONS_CONFIG{ chain_name: string; chain_logo_url: string; explorer_url_template: string; }Configuration of the external transactions links that should be added to the transaction details.--{ "chain_name": "ethereum", "chain_logo_url": "https://example.com/logo.png", "explorer_url_template": "https://explorer.com/tx/{hash}" }v1.38.0+

Verified tokens info

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_CONTRACT_INFO_API_HOSTstringContract Info API endpoint urlRequired-https://contracts-info.services.blockscout.comv1.0.x+

Name service integration

This feature allows resolving blockchain addresses using human-readable domain names.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_NAME_SERVICE_API_HOSTstringName Service API endpoint urlRequired-https://bens.services.blockscout.comv1.22.0+

Metadata service integration

This feature allows name tags and other public tags for addresses.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_METADATA_SERVICE_API_HOSTstringMetadata Service API endpoint urlRequired-https://metadata.services.blockscout.comv1.30.0+

Public tag submission

This feature allows you to submit an application with a public address tag.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_METADATA_SERVICE_API_HOSTstringMetadata Service API endpoint urlRequired-https://metadata.services.blockscout.comv1.30.0+
NEXT_PUBLIC_ADMIN_SERVICE_API_HOSTstringAdmin Service API endpoint urlRequired-https://admin-rs.services.blockscout.comv1.1.0+
NEXT_PUBLIC_RE_CAPTCHA_APP_SITE_KEYstringSee belowtrue-<your-secret>v1.0.x+

Data Availability

This feature enables views related to blob transactions (EIP-4844), such as the Blob Txns tab on the Transactions page and the Blob details page.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_DATA_AVAILABILITY_ENABLEDbooleanSet to true to enable blob transactions views.Required-truev1.28.0+

Bridged tokens

This feature allows users to view tokens that have been bridged from other EVM chains. Additional tab “Bridged” will be added to the tokens page and the link to original token will be displayed on the token page.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_BRIDGED_TOKENS_CHAINSArray<BridgedTokenChain> where BridgedTokenChain can have following propertiesUsed for displaying filter by the chain from which token where bridged. Also, used for creating links to original tokens in other explorers.Required-[{"id":"1","title":"Ethereum","short_title":"ETH","base_url":"https://eth.blockscout.com/token"}]v1.14.0+
NEXT_PUBLIC_BRIDGED_TOKENS_BRIDGESArray<TokenBridge> where TokenBridge can have following propertiesUsed for displaying text about bridges types on the tokens page.Required-[{"type":"omni","title":"OmniBridge","short_title":"OMNI"}]v1.14.0+

Bridged token chain configuration properties

VariableTypeDescriptionCompulsorinessDefault valueExample value
idstringBase chain id, see https://chainlist.org for the referenceRequired-1
titlestringDisplayed name of the chainRequired-Ethereum
short_titlestringUsed for displaying chain name in the list view as tagRequired-ETH
base_urlstringBase url to original token in base chain explorerRequired-https://eth.blockscout.com/token
Note The url to original token will be constructed as <base_url>/<token_hash>, e.g https://eth.blockscout.com/token/<token_hash>

Token bridge configuration properties

VariableTypeDescriptionCompulsorinessDefault valueExample value
typestringBridge type; should be matched to bridge_type field in API responseRequired-omni
titlestringBridge titleRequired-OmniBridge
short_titlestringBridge short title for displaying in the tagsRequired-OMNI

Safe address tags

For the smart contract addresses which are Safe accounts public tag “Multisig: Safe” will be displayed in the address page header alongside to Safe logo.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_SAFE_TX_SERVICE_URLstringThe Safe transaction service URL. See full list of supported networks here.--uniswapv1.26.0+

Address profile API

This feature allows the integration of an external API to fetch user info for addresses or contracts. When configured, if the API returns a username, a public tag with a custom link will be displayed in the address page header.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_ADDRESS_USERNAME_TAG{api_url: string; tag_link_template: string; tag_icon: string; tag_bg_color: string; tag_text_color: string}Address profile API tag configuration properties. See below.--uniswapv1.35.0+

Address profile API configuration properties

VariableTypeDescriptionCompulsorinessDefault valueExample value
api_url_templatestringUser profile API URL. Should be a template with {address} variableRequired-https://example-api.com/{address}
tag_link_templatestringExternal link to the profile. Should be a template with {username} variable--https://example.com/{address}
tag_iconstringPublic tag icon (.svg) url--https://example.com/icon.svg
tag_bg_colorstringPublic tag background color (escape ”#” symbol if you use HEX color codes or use rgba-value instead)--\\#000000
tag_text_colorstringPublic tag text color (escape ”#” symbol if you use HEX color codes or use rgba-value instead)--\\#FFFFFF

Address XStar XHS score

This feature allows the integration of an XStar API to fetch XHS score for addresses. When configured, if the API returns a score, a public tag with that score will be displayed in the address page header.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_XSTAR_SCORE_URLstringXStar XHS score documentation URL for the address tag. Enables the XStar score feature.--https://docs.xname.app/the-solution-adaptive-proof-of-humanity-on-blockchain/xhs-scoring-algorithmv1.36.0+

SUAVE chain

For blockchains that implement SUAVE architecture additional fields will be shown on the transaction page (“Allowed peekers”, “Kettle”). Users also will be able to see the list of all transactions for a particular Kettle in the separate view.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_IS_SUAVE_CHAINbooleanSet to true for blockchains with SUAVE architectureRequired-truev1.14.0+

Celo chain

For blockchains that use the Celo platform. Note, that once the Celo mainnet becomes an L2 chain, these variables will be migrated to the Rollup configuration section.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_CELO_ENABLEDbooleanIndicates that it is a Celo-based chain.--truev1.37.0+
NEXT_PUBLIC_CELO_L2_UPGRADE_BLOCKnumberIndicates the block number when the Celo-type chain transitioned to L2. This is used to display links to the Epoch block page from a regular block page.--26369280v1.37.0+

Ton Application Chain (TAC)

For Ton Application Chains, this feature enables additional views, such as a list of cross-chain operations and a detailed page for a specific cross-chain operation, as well as extra fields on the transaction page.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_TAC_OPERATION_LIFECYCLE_API_HOSTstringURL for the TAC Operation Lifecycle service.Required-https://tac-operation-lifecycle.blockscout.comv2.1.0+
NEXT_PUBLIC_TAC_TON_EXPLORER_URLstringURL of the Ton chain explorer. This is used to build links to transactions and addresses on the Ton chain.Required-https://tonscan.orgv2.1.0+

MetaSuites extension

Enables MetaSuites browser extension to integrate with the app views.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_METASUITES_ENABLEDbooleanSet to true to enable integrationRequired-truev1.26.0+

Validators list

The feature enables the Validators page which provides detailed information about the validators of the PoS chains.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_VALIDATORS_CHAIN_TYPE"stability" | "blackfort" | "zilliqa"Chain typeRequired-"stability"v1.25.0+

Sentry error monitoring

Note This feature is deprecated. All ENV variables will be removed in the future releases.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_SENTRY_DSNstringClient key for your Sentry.io appRequired-<your-secret>v1.0.x+
SENTRY_CSP_REPORT_URIstringURL for sending CSP-reports to your Sentry.io app--<your-secret>v1.0.x+
NEXT_PUBLIC_SENTRY_ENABLE_TRACINGbooleanEnables tracing and performance monitoring in Sentry.io-falsetruev1.17.0+

Rollbar error monitoring

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_ROLLBAR_CLIENT_TOKENstringClient token for your Rollbar projectRequired-<your-secret>v1.37.x+

OpenTelemetry

OpenTelemetry SDK for Node.js app could be enabled by passing OTEL_SDK_ENABLED=true variable. Configure the OpenTelemetry Protocol Exporter by using the generic environment variables described in the OT docs. Note that this Next.js feature is currently experimental. The Docker image should be built with the NEXT_OPEN_TELEMETRY_ENABLED=true argument to enable it.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
OTEL_SDK_ENABLEDbooleanRun-time flag to enable the featureRequiredfalsetruev1.18.0+

DeFi dropdown

If the feature is enabled, a single button or a dropdown (if more than 1 item is provided) will be displayed at the top of the explorer page, which will take a user to the specified application in the marketplace or to an external site.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_DEFI_DROPDOWN_ITEMS[{ text: string; icon: string; dappId?: string, url?: string }]An array of dropdown items containing the button text, icon name and dappId in DAppscout or an external url--[{"text":"Swap","icon":"swap","dappId":"uniswap"},{"text":"Payment link","icon":"payment_link","dappId":"peanut-protocol"}]v1.31.0+

Multichain balance button

If the feature is enabled, a Multichain balance button will be displayed on the address page, which will take you to the portfolio application in the marketplace or to an external site.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_MULTICHAIN_BALANCE_PROVIDER_CONFIG[{ name: string; url_template: string; dapp_id?: string; logo: string }]Multichain portfolio application config See below--[{ "name": "zerion", "url_template": "https://app.zerion.io/{address}/overview", "logo": "https://example.com/icon.svg"}]v1.31.0+

Multichain button configuration properties

VariableTypeDescriptionCompulsorinessDefault valueExample value
namestringMultichain portfolio application nameRequired-zerion
url_templatestringUrl template to the portfolio. Should be a template with {address} variableRequired-https://app.zerion.io/{address}/overview
dapp_idstringSet for open a Blockscout dapp page with the portfolio instead of opening external app page--zerion
logostringMultichain portfolio application logo (.svg) url--https://example.com/icon.svg

Get gas button

If the feature is enabled, a Get gas button will be displayed in the top bar, which will take you to the gas refuel application in the marketplace or to an external site.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_GAS_REFUEL_PROVIDER_CONFIG{ name: string; url_template: string; dapp_id?: string; logo?: string }Get gas button config. See below--{ "name": "Need gas?", "dapp_id": "smol-refuel", "url_template": "https://smolrefuel.com/?outboundChain={chainId}", "logo": "https://example.com/icon.png" }v1.33.0+

Get gas button configuration properties

VariableTypeDescriptionCompulsorinessDefault valueExample value
namestringText on the buttonRequired-Need gas?
url_templatestringUrl template, may contain {chainId} variableRequired-https://smolrefuel.com/?outboundChain={chainId}
dapp_idstringSet for open a Blockscout dapp page instead of opening external app page--smol-refuel
logostringGas refuel application logo url--https://example.com/icon.png

Save on gas with GasHawk

The feature enables a “Save with GasHawk” button next to the “Gas used” value on the address page.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_SAVE_ON_GAS_ENABLEDbooleanSet to “true” to enable the feature--truev1.35.0+

Rewards service API

This feature enables Blockscout Merits program. It requires that the My account and Blockchain interaction features are also enabled.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_REWARDS_SERVICE_API_HOSTstringAPI URL--https://example.comv1.36.0+

DEX pools

VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_DEX_POOLS_ENABLEDbooleanSet to true to enable the featureRequired-truev1.37.0+
NEXT_PUBLIC_CONTRACT_INFO_API_HOSTstringContract Info API endpoint urlRequired-https://contracts-info.services.blockscout.comv1.0.x+
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_GAME_BADGE_CLAIM_LINKstringProvide to enable the easter egg badge feature--https://example.comv1.37.0+

External services configuration

Google ReCaptcha

To obtain the variable values, please refer to the reCAPTCHA documentation and check the Blockscout reCAPTCHA config docs. Please note that we currently support only reCAPTCHA v2 in invisible mode, read more here.
VariableTypeDescriptionCompulsorinessDefault valueExample valueVersion
NEXT_PUBLIC_RE_CAPTCHA_V3_APP_SITE_KEYstringDEPRECATED Google reCAPTCHA v3 site key--<your-secret>v1.36.x
NEXT_PUBLIC_RE_CAPTCHA_APP_SITE_KEYstringGoogle reCAPTCHA v2 site key--<your-site-key>v1.0.x+