rosetta-komodo provides an implementation of the Rosetta API for the Komodo network in Golang.
366
rosetta-komodo provides an implementation of the Rosetta API for the
Komodo network in Golang. If you haven't heard of the Rosetta API, you can find more
information here.
Running the following commands will start a Docker container in
detached mode with
a data directory at <working directory>/komodo-data and the Rosetta API accessible
at port 8080. Please make sure that <working directory>/komodo-data has nobody:nogroup ownership.
You can also use a named volume which will be created with the correct ownership using: -v "komodo-data:/data".
# create <working directory>/komodo-data with correct ownership
docker run --rm -v "$(pwd)/komodo-data:/data" ubuntu:18.04 bash -c 'chown -R nobody:nogroup /data'
# start rosetta-komodo
docker run -d --rm --ulimit "nofile=100000:100000" -v "$(pwd)/komodo-data:/data" -e "MODE=ONLINE" -e "NETWORK=MAINNET" -e "PORT=8080" -p 8080:8080 -p 7771:7771 rosetta-komodo:latest
The komodod configuration file can be extended by setting the docker command to /app/rosetta-komodo and using the optional -extend-kmd-conf="" switch. The value of -extend-kmd-conf="" will be appended to /app/komodo-${NETWORK}.conf, newlines can be set as "\n".
docker run -d --rm --ulimit "nofile=100000:100000" -v "$(pwd)/komodo-data:/data" -e "MODE=ONLINE" -e "NETWORK=MAINNET" -e "PORT=8080" -p 8080:8080 -p 7771:7771 rosetta-komodo:latest /app/rosetta-komodo -extend-kmd-conf="reindexfast=1\ndebug=rpc\ndebug=net"
# this command line would append the following to /app/komodo-mainnet.conf
reindexfast=1
debug=rpc
debug=net
docker run -d --rm -e "MODE=OFFLINE" -e "NETWORK=MAINNET" -e "PORT=8081" -p 8081:8081 rosetta-komodo:latest
Content type
Image
Digest
sha256:9342c8eb0…
Size
72.5 MB
Last updated
about 2 years ago
docker pull deckersu/rosetta-komodo