Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wiringbits/eth-indexer
Indexes the Ethereum blockchain in order to provide the API necessary to build a Light Wallet
https://github.com/wiringbits/eth-indexer
ethereum playframework postgresql scala
Last synced: 2 months ago
JSON representation
Indexes the Ethereum blockchain in order to provide the API necessary to build a Light Wallet
- Host: GitHub
- URL: https://github.com/wiringbits/eth-indexer
- Owner: wiringbits
- License: mit
- Created: 2021-12-15T02:12:25.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T03:14:01.000Z (over 2 years ago)
- Last Synced: 2023-03-03T01:10:18.643Z (almost 2 years ago)
- Topics: ethereum, playframework, postgresql, scala
- Language: Scala
- Homepage:
- Size: 83 KB
- Stars: 2
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ethereum Indexer
This app is used to index the Ethereum blockchain in a postgresql database, exposing a REST API with the necessary data to build a light wallet.As of now, this powers the Ethereum Wallet used by the [Stakenet DEX](https://stakenet.io/dex/).
## Goal
As of now, there are two main APIs exposed (check the [routes](./src/main/resources/routes) file for more details):
- An endpoint that exposes the current USD price based on the info from [coinmarketcap](https://coinmarketcap.com), which syncs the price in the background making sure to not consume all the credits.
- An endpoint to list all the transactions by a given address (including token transfers).## Usage
First of all, make sure to run an Ethereum Node, check [install-geth](./docs/install-geth.md) for a way to do so.Update the [application.conf](./src/main/resources/application.conf) to define the settings for your own environment.
[https://sdkman.io](sdkman) is the suggested way to pick the correct Java version to run the project, then:
- `sbt compile` compiles the app.
- `sbt test` runs the tests.
- `sbt run` runs the app.