Integrate Gasless SDK (EOA)
Integrate Gasless SDK (EOA) on our client side to enable gasless transactions
Gasless SDK (EOA) can be installed either via npm repository or using standalone javascript file using html <script/> tag
Install Gasless SDK (EOA) via npm
Import and Initialize Gasless SDK (EOA)
Initialize DApp after Gasless SDK (EOA) initialization
Congratulations π
You have now enabled meta transactions in your DApp. Interact with web3 the way you have been doing it.
Now whenever there is a write transaction action(registered in Gasless SDK (EOA) dashboard also) initiated from the user , Gasless SDK (EOA) will ask for userβs signature in an EIP-712 format and handle the transaction rather than sending signed transaction directly to blockchain from userβs wallet.
Check out the full code here https://github.com/bcnmy/dapp-demo
Last updated