Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/02-guides/02-blockchain/03-running-enjin-indexer.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ REDIS_URL=redis://indexer_redis:6379/1
```dotenv
# .env (for Canary Relaychain)

ARCHIVE_ENDPOINT=https://v2.archive.subsquid.io/network/canary-relay
ARCHIVE_ENDPOINT=# no archive endpoint available for Canary Relaychain
CHAIN_ENDPOINT=wss://archive.relay.canary.enjin.io
CHAIN_PREFIX=69
DB_HOST=indexer_db
Expand All @@ -158,7 +158,7 @@ REDIS_URL=redis://indexer_redis:6379/2
```dotenv
# .env (for Canary Matrixchain)

ARCHIVE_ENDPOINT=https://v2.archive.subsquid.io/network/canary-matrix
ARCHIVE_ENDPOINT=https://v2.archive.subsquid.io/network/enjin-canary-matrix
CHAIN_ENDPOINT=wss://archive.matrix.canary.enjin.io
CHAIN_PREFIX=9030
DB_HOST=indexer_db
Expand All @@ -184,15 +184,15 @@ You can read the [GraphQL Documentation](https://graphql.org/learn/) for more in
cd indexer
```
2. Configure Environment Variables
In the repository, you will find a `.env.example` file that outlines the necessary environment variables for running the Enjin Matrixchain Indexer. Copy this file to create your own `.env` file: `cp .env.example .env`
In the repository, you will find a `.env.example` file that outlines the necessary environment variables for running the Enjin Indexer. Copy this file to create your own `.env` file: `cp .env.example .env`
Then, open the .env file in a text editor and fill in the missing values. Below is an example of the environment variables and their purpose:

```text
NODE_ENV: Node.js environment (supported values: development, production)

CHAIN_ENDPOINT: [Required] WebSocket endpoint to connect to. It is recommended to be set to your own Enjin archive node.
CHAIN_PREFIX: [Required] The chain prefix (SS58) of the chain you are connecting to.
ARCHIVE_ENDPOINT: [Required] Subsquid archive endpoint for historical blockchain data.
ARCHIVE_ENDPOINT: [Optional] Subsquid archive endpoint for historical blockchain data. See: https://docs.sqd.ai/subsquid-network/reference/networks/https://docs.sqd.ai/subsquid-network/reference/networks/

DB_NAME: [Required] Postgres database name.
DB_HOST: [Required] Postgres host.
Expand Down