πEnvironment Variables
Environment Variables for Guru Network Indexer
OUTPUT
Ethereum ETL supports a variety of item exporters, which are classes that write items to specified destinations. To configure an item exporter, set the OUTPUT
environment variable. You can specify multiple outputs at once using the format:
OUTPUT=exporter_name://path,second_exporter://path_to_second_destination
.
Here are the item exporters available out of the box and how to set them up:
DATABASE
Optional, is used when Clickhouse is in OUTPUT. Specifies the name of the ClickHouse database. You can choose any name.
PROVIDER_URL
The URL of your RPC provider (public node, Infura, local node, etc.). PROVIDER_URL=https://ethereum-rpc.publicnode.com
LAST_SYNCED_BLOCK_PROVIDER
Optional, if not set, a local file will be used. The provider used to sync the last indexed block (local file, Redis, SQL database).
LAST_SYNCED_BLOCK_PROVIDER=redis://redis:6379
LAST_SYNCED_BLOCK_PROVIDER=clickhouse+http://clickouse:8123/database_name
EXPORT_FROM_CLICKHOUSE
Optional. If set, the indexer will export entities from ClickHouse first and fallback to the node if necessary. Useful for indexed tokens and pools or multiple indexers.
EXPORT_FROM_CLICKHOUSE=clickhouse+http://clickhouse-2:8123/db_same_blockchain
START_BLOCK
The block number to start indexing from. It can be set as the latest block. If the block number from the LAST_SYNCED_BLOCK_PROVIDER
is greater than START_BLOCK
, then the last synced block will be used. Examples:
START_BLOCK='latest' or START_BLOCK=1337
END_BLOCK
(Optional) The block number to stop indexing. If not set, indexing continues indefinitely.
ENTITY_TYPES
A comma-separated list of entities to export
ENTITY_TYPES=block,transaction,token_transfer
Last updated