Make sure your system meets the minimum requirements before installing RSK nodes on it.
You also need to install Java 8 JDK.
The Fat JAR or Uber JAR can be downloaded or compiled (in a reproducible way or not).
To run the node:
$ java -cp <PATH-TO-THE-RSKJ-JAR> co.rsk.Start
Replace <PATH-TO-THE-RSKJ-JAR>
with your path to the JAR file. As an example: C:/RskjCode/rskj-core-1.1.0-WASABI-all.jar
If you see no output, it means that the node is running. To check, you can open a new console tab (it is important you do not close this one or interrupt the process) and issue a request to the node’s RPC HTTP server. This is an example using cURL:
$ curl localhost:4444/1.1.0/ -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
The response should look similar to {"jsonrpc":"2.0","id":1,"result":"0xfc0"}
, where the result
property is the number of the latest block that has been synced (in hexadecimal).
If you want to change the network use these commands:
java -cp <PATH-TO-THE-RSKJ-FATJAR> co.rsk.Start
java -cp <PATH-TO-THE-RSKJ-FATJAR> co.rsk.Start --testnet
java -cp <PATH-TO-THE-RSKJ-FATJAR> co.rsk.Start --regtest
Replace <PATH-TO-THE-RSKJ-FATJAR>
with your path to the jar file. As an example: C:/RskjCode/rskj-core-1.0.2-WASABI-all.jar