Getting Started with Hardhat
If you're new to Web3 and Smart Contract Development, begin by exploring the Rootstock network. Then progress step by step to the quick start Guide with Hardhat for a comprehensive understanding of the network and getting started with writing, testing, and deploying smart contracts on Rootstock.
For your convenience, we've established a GitHub repository dedicated to this guide. The master branch contains the initial project state, while the feat/complete branch features the complete project, equipped with all the necessary installations for your reference.
Note: This guide is optimized for Node.js version 18 or earlier. If you're using a later version, consider using a version manager like NVM to switch to a compatible version.
Need to ramp up fast and get started with Hardhat? Use the Hardhat Starter Kit or use the Wagmi Starter Kit
Navigating the Guide​
Resource | Description |
---|---|
Prerequisites | Learn about the tools you need to have in place to follow along with this guide. |
Create a Hardhat Project | Learn how to set up your environment for development using Hardhat. |
Configure Hardhat for Rootstock | Learn how to configure your Hardhat project for development on Rootstock testnet and mainnet. |
Write Smart Contracts | Learn how to write a smart contracts. |
Test Smart Contracts | Learn how to test your smart contract to ensure it's working as expected. |
Deploy Smart Contracts | Learn how to deploy your smart contract to your local environment and the Rootstock network. |
Interact with the Frontend | Learn how to interact with the smart contract from the front-end application. |
Debugging and Troubleshooting Tips | Learn about the common issues you can come across while building following this guide and how you can solve them. |