Skip to content

RSK node from command line

Meri Herrera edited this page May 24, 2018 · 9 revisions

After fulfilling the steps Pre-requisites, Get the source code, Ensure the security chain and Get external dependencies according to your operating system (Windows, Linux, Mac), you can compile and run an RSK node from command line following this steps.

Compiling and running the node

From the root directory where the code was downloaded execute:

./gradlew build -x test

and after building run:

java -Drsk.conf.file=[conf] -cp [jar] co.rsk.Start

Replace:

  • [jar]: the path to the fatjar generated by the gradle shadow command. It can be found on rskj-core/build/libs/rskj-core-{version}-all.jar.
  • [conf]: the path to the configuration file for the node. A sample configuration file can be found here. Some settings need to be initialized and you can learn to do that here.

It's ready!

Clone this wiki locally