Skip to main content
Time to read: 1 min

Prerequisites

This guide provides clear instructions for developers on the supported Solidity versions and the necessary configurations needed to ensure your smart contracts are deployed on the Rootstock network. See the developer tools section for a list of tools to build on Rootstock.

Hackathon Info

Participating in a Rootstock hackathon or Workshop? View the Hackathon Resources section.

Solidity Version

  • Supported solc version: 0.8.19

Node RPC

  • Interact with Rootstock using the RPC API
Get an API Key

See how to setup the RPC API and get an API Key.

Connecting to a Wallet

Fill these values to connect to the Rootstock Mainnet or Testnet in MetaMask.

Contract Addresses

Derivation path

When using BIP-44-compatible wallet software, you will need to specify a derivation path.

Mainnet: m/44'/137'/0'/0/N
Testnet: m/44'/37310'/0'/0/N
Info

See Account based addresses section for more information or how to verify address ownership.

Install Hardhat

npm install --save-dev hardhat
Recommended
  • Install hh autocomplete to use hh shorthand globally.
npm i -g hardhat-shorthand

Install Foundry

Development Environments

You don't need to use both development environments (Hardhat and Foundry) together, you can use your favorite one.

To install Foundry in your system, run the following command:

curl -L https://foundry.paradigm.xyz | bash

This will install Foundryup. Simply follow the on-screen instructions, and the foundryup command will become available in your CLI.

Running foundryup will automatically install the latest (nightly) versions of the precompiled binaries: forge, cast, anvil, and chisel. For additional options, such as installing a specific version or commit, run foundryup --help.

Windows Users

If you’re using Windows, you’ll need to install and use Git BASH or WSL as your terminal, since Foundryup currently doesn’t support Powershell or Command Prompt (Cmd).

Command Line Tools

POSIX Compliant Shell

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.

Installing Node.js and NPM

Optional Setup

Last updated on by Owanate Amachree