Indexer Installation
Last updated
Last updated
This guide will walk you through setting up a self-hosted indexer API. before indexer service setup, user should have setup Endless fullnode and already connected to Endless network.
Please refer
To run the indexer service we need to build configuration: config.toml
. the content below for your reference:
Letβs go through some of these fields.
stream_url
indexer service depends transaction sent by GRPC service.
stream_url should points to endless-node
GRPC endpoint, please refer
server
This is the URL service of endless-indexer. By default the value is 127.0.0.1:3000
.
db_dir
db_dir
points to the directory where index service store db data. By default the value is endless_indexer_data
Make sure the config.toml
is located in the same directory as endless-index
.
All indexed data are saved under endless_indexer_data
.
Prune endless_indexer_data
and restart endless-index
if user want to clear and rebuild the index from the scratch.
docker run command:
Here is a sample docker-compose.yaml
to orchestrate endless-node
and endless-indexer
:
After ensure endless-index
service is started, accessing http://localhost:3000/api/v2/spec
will display the schema that conforms to the OpenAPI specification.