Hardhat Sample Project (Web3)
This page is dedicated to help developers in getting started with our sample hardhat project which utilizes our web3 hardhat plugin to connect hardhat with Thor. This enables developers to be able to deploy and test smart contracts on Thor in a seamless manner using all the known tools provided by hardhat.
First, clone the sample project from our repository
git clone [email protected]:vechainfoundation/hardhat-plugin-sample-web3.git
Then install the required node modules by running
npm i @vechain/web3-providers-connex
npm i @vechain/hardhat-vechain
npm i @vechain/hardhat-web3
To be able to run the tests on Vechain you need Thor installed, which is Vechain's node implementation. We have a detailed guide on how to do that here.
npx hardhat test --network vechain
Last modified 2mo ago