Sign inSign up

deckersu/rosetta-komodo

By deckersu

Updated about 2 years ago

rosetta-komodo provides an implementation of the Rosetta API for the Komodo network in Golang.

Image
Networking
Databases & storage
0

366

deckersu/rosetta-komodo repository overview

Rosetta Komodo

Overview

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.

Run

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".

Mainnet:Online
# 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
Adding options to the komodod conf file

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
Mainnet:Offline
docker run -d --rm -e "MODE=OFFLINE" -e "NETWORK=MAINNET" -e "PORT=8081" -p 8081:8081 rosetta-komodo:latest

Tag summary

Content type

Image

Digest

sha256:9342c8eb0

Size

72.5 MB

Last updated

about 2 years ago

docker pull deckersu/rosetta-komodo