This project demonstrates single transaction and batch transaction use case. It comes with a transaction and batch transaction solidity contract, a reactjs front-end to interact with transaction contract, a backend server to subscribe event and continue listen using ether.js websocket api
Try running some of the following tasks:
Please run client and backend server first to launch the app
yarn start : front-end
node backend/server.js : back-end
npx hardhat node : solidity
npx hardhat run --network localhost contract-scripts/deploy.js : solidity
Native Token to sent : ETH
REACT_APP_INFURA_KEY=""
REACT_APP_ENV="MAINNET"
yarn
npx typechain --target ethers-v5 --out-dir typechain {YOUR_PATH}/abi.json
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node contract-scripts/deploy.js
npx hardhat help
npx hardhat run --network localhost contract-scripts/deploy.js
api 1: lastEvent API
api 2: allEvent API
api 3: blockEvent API
node backend/server.js
After event listener init, will receive any transaction that related to the events, including batch transaction and single transaction event.
Subscribe event listener screenshot ( terminal )
yarn dev ( vite )
Front-end : React.js, Typescript, Redux, Redux-thunk, vite, rollup, ether.js, web3.js, scss,
Back-end : Express, Node.js
Smart-contract: Solidity, ethers, hardhat
- Custom token transcation
- Solidity test coverage
- Typescript version of Express
- Web3React: https://hackmd.io/Ykpp1MWLTjixIZG2ZJEShA