Install Abstract Global Wallet
Install Abstract Global Wallet if the desired component you wish to use requires account abstraction
Install web3 dependencies
Abstract provider setup
Create a new file for your Abstract context provider, since we are going to be calling provider functions on the client it cannot live on the server side so we have to declare file with the 'use client' directive.
For this example we will create a file named
context/AbstractProvider.tsx
outside our app directory.Layout setup
Next in our
app/layout.tsx
file, we will import our AbstractProvider
context provider and wrap the children with it.