This is a rest api to expose the data of the scavenger hunt sidechain from ETHDenver2020.
First you must set up the ebcli following the tutorial above and make sure its accessible on your machine's PATH.
The run the api:
npm install
to install dependenciesnpm run dev
runs the api, watches files, lints and restarts on changesIt's exposed on http://localhost:4444 There are 4 endpoints
http://localhost:4444/scavenges
- lists all riddleshttp://localhost:4444/scavenges/:id
- lists info about a specific riddle, with the id being the solution hashhttp://localhost:4444/scavengers
- lists all scavengers, sorted by total rewards wonhttp://localhost:4444/scavengers/:id
- lists same info about a single scavengerboth list endpoints accept limit
and offset
params