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.
As of now, there are two main APIs exposed (check the routes file for more details):
- An endpoint that exposes the current USD price based on the info from coinmarketcap, 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).
First of all, make sure to run an Ethereum Node, check install-geth for a way to do so.
Update the application.conf to define the settings for your own environment.
https://sdkman.io 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.