- Create a .env file
- Use the provided
.env.example
file as a reference. - Example configuration:
POSTGRES_USER="postgres"
POSTGRES_PASSWORD="postgres"
POSTGRES_DB="core_indexer"
CHAIN="initiation-2"
ENVIRONMENT="local"
- Update the
block_height
value
- Modify
init/init.sql
to change thestarting block_height
. - Default:
2797040
To start the indexer using Docker Compose, run:
docker compose -f dockerfiles/docker-compose-informative.yml up --build
We are using fake-gcs-server to enable the storage feature.
You can view your fake GCS information at: http://localhost:9184/storage/v1/b/{bucket_name}
{
"kind": "storage#bucket",
"id": "initiation-2-local-informative-indexer-large-block-results",
"defaultEventBasedHold": false,
"name": "initiation-2-local-informative-indexer-large-block-results",
"versioning": {
"enabled": false
},
"timeCreated": "2025-01-23T06:11:01.205566Z",
"updated": "2025-01-23T06:11:01.205566Z",
"location": "US-CENTRAL1",
"storageClass": "STANDARD",
"projectNumber": "0",
"metageneration": "1",
"etag": "RVRhZw==",
"locationType": "region"
}
We use Hasura for GraphQL. Run the following to update the metadata.
curl -X POST -H 'Content-Type: application/json' \
--data '{
"type": "bulk",
"source": "default",
"resource_version": 1,
"args": [
{
"type": "postgres_track_tables",
"args": {
"allow_warnings": true,
"tables": [
{"table": {"name": "finalize_block_events", "schema": "public"}, "source": "default"},
{"table": {"name": "move_events", "schema": "public"}, "source": "default"},
{"table": {"name": "transaction_events", "schema": "public"}, "source": "default"}
]
}
}
]
}' \
http://localhost:8080/v1/metadata