/ethereum-signer-demo

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Ethereum raw transaction signing and broadcasting

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

Setup

No environment variables are required.

Install the project dependencies:

npm i

Usage

Run the unit tests:

npx hardhat test

Hardhat docs can be accessed here.