Fury Rosetta API
Fury implementation of the Coinbase Rosetta API.
Written in Golang with the Rosetta Go SDK.
Features
- Tracking of all native token balance changes for all transaction types
- Stateless, offline transaction construction
- Historical balance lookup and reconciliation
Prerequisites
To run rosetta-fury
, docker is required.
System Requirements
rosetta-fury
has been tested on an AWS c5.2xlarge instance. We recommend 8 vCPU, 16GB of RAM, and at least 2TB of storage for running a dockerized rosetta-fury
node.
Usage
As specified in the Rosetta API, the rosetta-fury
implementation is deployable via Docker and supports running via either an online
or offline
mode.
Install
Mainnet
The following commands will build a docker container named rosetta-fury
and configure the container for running on the highbury
network.
docker build . -f Dockerfile.mainnet -t rosetta-highbury
docker run -it -e "MODE=online" -e "NETWORK=highbury" -e "PORT=8000" -v "$PWD/fury-data:/data" -p 8000:8000 -p 26656:26656 rosetta-highbury
To run in offline mode:
docker run -it -e "MODE=offline" -e "NETWORK=highbury" -e "PORT=8000" -p 8000:8000 rosetta-highbury
Testnet
The following commands will build a docker container named rosetta-fury
and configure the container for running on the fury-testnet
network.
docker build . -f Dockerfile.testnet -t rosetta-fury-testnet
docker run -it -e "MODE=online" -e "NETWORK=fury-testnet" -e "PORT=8000" -v "$PWD/fury-data:/data" -p 8000:8000 -p 26656:26656 rosetta-fury-testnet
To run in offline mode:
docker run -it -e "MODE=offline" -e "NETWORK=fury-testnet" -e "PORT=8000" -p 8000:8000 rosetta-fury-testnet
Swagger
Swagger requires a running rosetta-fury service on port 8000.
make run-swagger
Navigate to http://localhost:8080.