Rootstock Hackathon Dev Starter

The hackathon dev starter guide details the necessary tools and resources for developing on the Rootstock blockchain. It includes setup instructions for essential Dev tools such as Hardhat, and RSKj, wallets, ensuring developers have a clear path to prepare their environment for developing on Rootstock, whether for local development, testing, or for deployment.

Quick start setup

This section includes setup instructions for the Quick Start Guide on Rootstock using Hardhat.

  • A. Installing Node.js and NPM
    • Using Node Version Manager (recommended)
    • For Windows
        1. Download the Node.js Installer from Node.js Downloads.
        2. Run the installer and follow the on-screen instructions.
        3. Open Command Prompt or PowerShell and check versions with node -v and npm -v.
    • For MacOS
      1. Install Homebrew (if not installed):
        /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)``` 
      2. Install Node.js and npm with brew install node
      3. Check versions in Terminal with node -v and npm -v
    • For Linux
      1. Open a terminal.
      2. Update package manager with sudo apt update
      3. Install Node.js and npm with sudo apt install nodejs npm
      4. Check versions in the terminal with node -v and npm -v
  • B. OpenZeppellin
    • To install OpenZeppelin:
      npm install @openzeppelin/cli
  • C. RSKj

Make sure to adapt the commands based on your system and preferences. Always refer to the official documentation for the latest and most accurate information: Node.js Downloads and npm documentation.

RSKj Node Setup

  • Ensure your system meets the following minimum specifications:
    • Node requirements
    • Operating Systems
    • Installing RSKj
      • RSKj allows you to run a Rootstock node, crucial for local development and testing. It supports connections to Regtest (local), Testnet (testing), and Mainnet (production).
      • Downloading RSKj:
      • Running RSKj:
        • For local testing with Regtest, use the command:
        java -jar rskj-core-<version>.jar --regtest
        Replace <version> with the actual version number of your RSKj jar file. This command starts a local Rootstock node for development and testing.
        • Note: Ensure your development environment has sufficient storage and memory, as connecting to Testnet or Mainnet requires downloading the blockchain.
    • RPC

      Note that Rootstock public nodes do not expose WebSockets, they are HTTP only. To work around this, you may either run your own Rootstock node, or use a third-party node provider, such as Getblock or NowNodes.

Command Line Tools

POSIX Compliant Shell

  • macOS/Linux
    • Standard terminal.
  • Windows
    • Standard terminals like cmd or PowerShell may not support some commands. We recommended installing Git for Windows for Git Bash, which provides a more UNIX-like experience. Here's a tutorial on Git Bash.

Dev Tools

Useful Links

Receive updates

Get the latest updates from the Rootstock ecosystem

Loading...