This Hardhat project demonstrates the signing and broadcasting of raw ethereum transactions using newly generated wallets (public and private key pair). It comes with a sample ERC20 token standard smart contract, unit tests for two raw transaction types:
- simple ether transfer
- smart contract transaction
No environment variables are required.
Install the project dependencies:
npm i
Run the unit tests:
npx hardhat test
Hardhat docs can be accessed here.