Introduction

Environment variables

Blobscan Web

VariableDescriptionRequiredDefault value
DATABASE_URLPostgresql database URIYes(empty)
FEEDBACK_WEBHOOK_URLDiscord webhook URL for feedbackNo(empty)
NEXT_PUBLIC_NETWORK_NAMENetwork nameNomainnet
NEXT_PUBLIC_EXPLORER_BASE_URLBlock explorer URLNohttps://etherscan.io
NEXT_PUBLIC_BEACON_BASE_URLBeacon explorer URLNohttps://beaconcha.in/
NEXT_PUBLIC_BLOBSCAN_RELEASEBlobscan versionNo(empty)
NEXT_PUBLIC_SUPPORTED_NETWORKSLink to other pages from the Network menuNo[{"label":"Ethereum Mainnet","href":"https://blobscan.com/"},{"label":"Gnosis","href":"https://gnosis.blobscan.com/"},{"label":"Holesky Testnet","href":"https://holesky.blobscan.com/"},{"label":"Sepolia Testnet","href":"https://sepolia.blobscan.com/"}]
NEXT_PUBLIC_VERCEL_ANALYTICS_ENABLEDEnable Vercel analyticsNofalse
NEXT_PUBLIC_SENTRY_DSN_WEBSentry DSNNo(empty)
NODE_ENVUsed in Node.js applications to specify the environment in which the application is runningNo(empty)
SENTRY_PROJECTSentry project nameNo(empty)
SENTRY_ORGSentry organizationNo(empty)
METRICS_ENABLEDExpose the /metrics endpointNofalse
TRACES_ENABLEDEnable instrumentation of functions and sending traces to a collectorNofalse
NEXT_PUBLIC_POSTHOG_IDPostHog project API key used for tracking events and analyticsNo(empty)
NEXT_PUBLIC_POSTHOG_HOSTHost URL for the PostHog instance used for analytics trackingNohttps://us.i.posthog.com

Blobscan API

VariableDescriptionRequiredDefault value
CHAIN_IDEVM chain idYes1
DATABASE_URLPostgresql database URIYes(empty)
REDIS_URIRedis hostYesredis://localhost:6379/1
SECRET_KEYShared key used for JWT authentication with the indexerYes(empty)
NETWORK_NAMENetwork's name (valid values are: mainnet, holesky, sepolia, gnosis, chiado, devnet)Nomainnet
BLOBSCAN_API_BASE_URLAPI domainNohttp://localhost:3001
BLOBSCAN_API_PORTAPI portNo3001
DENCUN_FORK_SLOTCustom slot when blobs are activated (use when NETWORK_NAME=devnet)No(empty)
METRICS_ENABLEDExpose the /metrics endpointNofalse
TRACES_ENABLEDEnable instrumentation of functions and sending traces to a collectorNofalse
NODE_ENVUsed in Node.js applications to specify the environment in which the application is runningNo(empty)
SENTRY_DSN_APISentry DSNNo(empty)
GOOGLE_SERVICE_KEYGoogle Cloud service keyNo(empty)
GOOGLE_STORAGE_ENABLEDStore blobs in Google Cloud StorageNofalse
GOOGLE_STORAGE_API_ENDPOINTGoogle Cloud API endpoint (for development)No(empty)
GOOGLE_STORAGE_BUCKET_NAMEGoogle Cloud Storage bucket nameNo(empty)
GOOGLE_STORAGE_PROJECT_IDGoogle Cloud project IDNo(empty)
POSTGRES_STORAGE_ENABLEDStore blobs in postgres database (default storage)Nofalse
SWARM_DEFERRED_UPLOADDetermines if the uploaded data should be sent to the network immediately or in a deferred fashionNotrue
SWARM_STORAGE_ENABLEDStore blobs in Ethereum SwarmNofalse
SWARM_BATCH_IDBatch ID of the Ethereum Swarm stampIf SWARM_STORAGE_ENABLED=true(empty)
BEE_ENDPOINTBee endpointNo(empty)
FILE_SYSTEM_STORAGE_ENABLEDStore blobs in filesystemNofalse
FILE_SYSTEM_STORAGE_PATHStore blobs in this pathNo/tmp/blobscan-blobs
STATS_SYNCER_DAILY_CRON_PATTERNCron pattern for the daily stats jobNo30 0 * * * *
STATS_SYNCER_OVERALL_CRON_PATTERNCron pattern for the overall stats jobNo*/15 * * * *
SWARM_STAMP_CRON_PATTERNCron pattern for swarm jobNo*/15 * * * *
BLOB_PROPAGATOR_COMPLETED_JOBS_AGERemove completed jobs after the specified number of seconds (default: 1 day)No86400
BLOB_PROPAGATOR_FAILED_JOBS_AGERemove completed jobs after the specified number of seconds (default: 7 days)No604800
POSTHOG_IDPostHog project API key used for tracking events and analyticsNo(empty)
POSTHOG_HOSTHost URL for the PostHog instance used for analytics trackingNohttps://us.i.posthog.com

Blobscan indexer

VariableDescriptionRequiredDefault value
BEACON_NODE_ENDPOINTBeacon node RPC endpointYes(empty)
BLOBSCAN_API_ENDPOINTBlobscan API endpointYes(empty)
EXECUTION_NODE_ENDPOINTExecution node RPC endpointYes(empty)
SECRET_KEYShared key used for JWT authentication with APIYes(empty)
NETWORK_NAMEAutomatically start from the slot when blobs were activated (valid values are: mainnet, holesky, sepolia, gnosis, chiado, devnet)Nomainnet
DENCUN_FORK_SLOTCustom slot when blobs are activated (use when NETWORK_NAME=devnet)No(empty)
RUST_LOGConfigure loggerNoblob-indexer=INFO
SENTRY_DSNSentry DSNNo(empty)

Docker

These variables are used in the docker compose files we provide.

VariableDescriptionRequiredDefault value
EXTERNAL_API_PORTBlobscan API will be exposed on this portYes(empty)
EXTERNAL_WEB_PORTBlobscan website will be exposed on this portYes(empty)
BLOBSCAN_TAGBlobscan docker image tagYes(empty)
INDEXER_TAGBlobscan-indexer docker image tagYes(empty)
Previous
Installation