How to Become an Indexer
Introduction
Welcome to this guide of how to become an indexer. Let's take an overview of the basic steps involved in the process:
Summary of Steps
Steps | Process Flow | Additional References |
---|---|---|
1 | Set Up & Start Indexing (3 Methods): |
- Locally
- Or On Linux
- Or On AWS | How to SSH on AWS | | 2 | Connect to MetaMask | - | | 3 | Obtain Kepler Tokens | - | | 4 | How to index a project | - | | 5 | Troubleshooting | - | | 6 | FAQs | - |
1. Select an environment
For those who are new to SubQuery, it is recommended to try running the Indexing Service on your local machine first. For intermediate to advanced users, it is recommended to set up a VM on AWS (or similar) to host your indexing service.
Select the appropriate link in step 1 above.
Docker
Note that you may or may not need to install Docker. If you use the SubQuery community image in AWS, it comes with everything you need to set up and run quickly. If you have your own customised VM, you will need to install Docker and some command tools, and then obtain the docker-compose.yml file.
Indexer version
Important:
After installing your Indexer, you must SSH to your EC2 instance and download the lastest docker-compose.yml file. Visit How to SSH into your AWS instance if required.
- Run cd subquery-indexer
- Run the follow cmd to download the latest
docker-compose.yml
:
curl https://raw.githubusercontent.com/subquery/indexer-services/develop/docker-compose.yml -o docker-compose.yml
This will overwrite the existing docker-compose.yml file.
Make sure the indexer service versions are correct:
Service | Version |
---|---|
onfinality/subql-coordinator | v0.4.1-11 |
onfinality/subql-indexer-proxy | latest |
Important
Please change the default PostgreSQL password in the POSTGRES_PASSWORD
field and in the coordinator-service's postgres-password
field. Replace it with your own one.
2. Connect to MetaMask
Once your Indexing Service is all set and running successfully, connect to your MetaMask wallet
3. Obtain kSQT tokens
TBA
4. How to index a project
To index a project, please follow the instructions here.
Additional Notes
- Visit Troubleshooting or FAQs if you run into technical issues.