Environment Setup
Last updated
Last updated
Before we begin, make sure you have the following:
Basic understanding of Solidity, Hardhat, and JavaScript/TypeScript.
Node.js and npm installed on your machine.
or another wallet configured for the Hedera network.
Hedera testnet account credentials.
First, clone the repository containing the smart contract and script:
Install the required npm packages (you may need to use the --legacy-peer-deps
flag due to older versions of dependencies):
Create a .env
file in the root directory and add your Hedera account details and other configurations:
Replace your-private-key
and your-account-id
with your actual Hedera testnet account credentials.
Replace 0x...
with the actual contract addresses. You can find the mainnet contract addresses .