This is a simple indexer for initia.
$ git clone https://github.com/initia-labs/simple-indexer.git
npm install
Simple-indexer requires PostgreSQL as a backend database and TypeORM as an ORM.
Name | Description | Default |
---|---|---|
SERVER_PORT | Server port | 3000 |
START_HEIGHT | Indexing start height | 1 |
LOG_LEVEL | Log level | |
RPC_URL | RPC URL | 'http://localhost:26657' |
THROTTLE_TTL | api throttle ttl | |
THROTTLE_LIMIT | api throttle limit |
We use dotenv for managing environment variable for development. See sample of .env
npm run dev
npm run start
- Access UI from:
http://localhost:3000/swagger/