Time to read: 1 min
Shared Setup
This setup guide is shared by multiple Rootstock use-case tutorials. Complete it once, then return to the tutorial you’re following.
Prerequisites
- Node.js 18+
- A wallet (e.g., MetaMask) configured for Rootstock testnet
Project initialization
mkdir rootstock-use-cases
cd rootstock-use-cases
npm init -y
npm install --save-dev hardhat
Install dependencies
npm install --save-dev @nomicfoundation/hardhat-toolbox
npm install @openzeppelin/contracts
npm install dotenv
Hardhat initialization
npx hardhat
If you already have a Hardhat project, you can skip initialization and only install the dependencies you need.
Recommended quickstarts (official)
If you prefer to follow the official Rootstock walkthroughs for Hardhat setup: