HTTP APIs to serve data about Bitcoin Cash nodes.
GET /snapshots
Returns a list of available snapshots. This API is paginated and you can specify
the page to be returned via the page
parameter.
GET /snapshot/:timestamp
Return data for nodes in the given snapshot.
Install ruby 2.5.0 and bundler
bin/setup
ruby cashnodes_api.rb
SNAPSHOTS_BASE_DIR=./tests/fixtures rake test
-
SNAPSHOTS_BASE_DIR: the base dir where snapshots will be found
-
Redis configuration: use either one of the two possible env vars
-
REDIS_URL
-
REDIS_SOCKET and REDIS_PASSWORD
-