Skip to content

Indexer engine with PostgreSQL for cosmos based blockchain

License

Notifications You must be signed in to change notification settings

cosmscan/cosmscan-go

Repository files navigation

Cosmscan

What is Cosmscan?

Cosmscan is a indexer engine for cosmos based blockchain.

Builders often want to serve a indexed query such as aggregation, search, and so on. The native query on Cosmos RPC is not enough for this purpose, basically it stores all the data on the LSM tree (LevelDB) which is efficient to perform high write throughput. On the other side, it has an inefficiency to answer the following questions.

  • How many transactions are there in the last 24 hours?
  • What tokens the holder has? and How many tokens the holder has?
  • Number of active accounts in the last 24 hours?
  • Top 10 holders of the coin?
  • and so on

Cosmscan is here to solve this problem. 🚀🚀

Features

  • Store the all data from cosmos based blockchain into PostgreSQL
  • Support default useful queries with gRPC / HTTP 2.0
  • Easy installation and configuration

Test on the local machine

$ cd ./example/docker
$ docker-compose up -d

Launch API Server

$ make build
$ ./bin/server --config-file ./config-server.yml

2023-01-04T13:39:35.588+0900    INFO    api     api/server.go:41        starting api server

Docs

Contribution

If you are interested in contributing to this project, Please feel free to open issue or pull request.