GSN is a distributed network of transaction relayers that allows decentralized applications (daps) to abstract away the process of paying the transaction gas fees to minimize friction during new user onboarding and to improve the user experience. With GSN, gasless clients can interact with Ethereum contracts without users needing to own or spend ETH for transaction fees.
git clone https://github.com/opengsn/gsn-web-tool
- clone this repoyarn
- install dependencies
For working locally you'll need to run a local blockchain, run a local GSN network and a local relay-server Lucky - this project include yarn scripts which makes it easy. they should be run in the following order:
yarn run local-hardhat-node
- run Hardhat locally. Hardhat is an Ethereum development environment for professionals.yarn run local-gsn
: run a local GSN- on windows -
yarn run local-remove-cache
- remove local cache yarn run local-relay-server
: run a local relay serveryarn start
- react dev server
Meta mask is a digital crypto wallet with support for local blockchain development environment
Steps:
- install from https://metamask.io/download/
- click on select network dropdown
- enable "show test network"
- select local network (localhost:8545), change chain id from 1337 to 31337
- add test ether - take private key from
local-hardhat-node
terminal
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.