- Linux environment or WSL2
- Install Java JDK
- Download the Besu packaged binaries
- Install Node.js
- Install Truffle:
npm install -g truffle
- Install Ganache:
npm install -g ganache-cli
Execute these commands to run the network and deploy the smart contract:
truffle develop
migrate --reset
Then run the tx.js script:
node scripts/tx.js
Follow the steps to run the Hyperledger Besu network:
https://besu.hyperledger.org/en/stable/private-networks/tutorials/ibft/#3-generate-node-keys-and-a-genesis-file
Deploying a smart contract to a private network:
truffle migrate --reset --network besu
Then run the tx.js script:
node scripts/tx.js