Skip to content

A repository to test a web3 validation with ReactJS + Node Relayer + JWT SC based

License

Notifications You must be signed in to change notification settings

ivanmmurciaua/web3-jwt-tx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web3-jwt-tx

This is a repository to implements a complete solution based on ReactJS frontend + NodeJS relayer + Solidity Smart Contract to interact with blockchain with gasless policy.

Usage

Before all, install node_modules dependencies in every component that is: root, hardhat folder and frontend folder

  • Create .env file and write 2 variables: PROVIDER_URL y ADMIN_PRIVATE_KEY. The first one typically is http://localhost:8545 and the second one is the private key of the relayer account (Account 0 in Hardhat).
  • Start NodeJS server in root with npm run server
  • Run Hardhat node in ./hardhat with npm run node
  • Deploy PointsCounter SC in ./hardhat with npm run deploy
  • And finally, in ./frontend start your ReactJS app with npm start

Enjoy!

About

A repository to test a web3 validation with ReactJS + Node Relayer + JWT SC based

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published