Rootstock Hardhat Starter Kit
Whether you’re a seasoned developer or just starting your journey into smart contract development, the hardhat starter kit provides a solid foundation for building decentralized applications (dApps) on the Rootstock network.
Rootstock is fully EVM (Ethereum Virtual Machine) compatible. It brings the power of smart contracts to Bitcoin, allowing developers to leverage Bitcoin’s security while benefiting from Ethereum’s ecosystem.
Prerequisites
Before starting the dApp, make sure to have the following prerequisites:
-
Familiarity with Smart Contracts:
- If you’re new to smart contracts, consider learning the basics. Understanding how smart contracts work will enhance your experience with Rootstock development.
-
Node.js and Hardhat Installed:
- Ensure you have Node.js installed on your system. See the prerequisites section.
-
Install Hardhat Shorthand:
-
We recommend installing
hhautocomplete to usehhshorthand globally.npm i -g hardhat-shorthand -
For more details, refer to their official guide.
- Metamask Setup with Rootstock:
- Install the Metamask browser extension if you haven’t already.
- Configure Metamask to connect to the Rootstock network. Visit the MetaMask Integration on the Rootstock Dev Portal.
- Basic Knowledge of Hardhat:
- Familiarity with Hardhat's core concepts and functionalities is recommended. If you're new to Hardhat, refer to the Rootstock Hardhat Guide.
Learn how to write, test, secure, deploy and verify smart contracts on the Rootstock blockchain network. Enroll for the Rootstock Blockchain Developer Course.
Setting Up the Sample dApp
Clone the Repository
Open your terminal or command prompt and run the following command to clone the repository from GitHub:
git clone https://github.com/rsksmart/rootstock-hardhat-starterkit.git