-
Clone the Repository:
-
Clone the repository locally.
git clone [repository_url] cd [repository_directory]
-
-
Install Dependencies:
-
Run the following command to install project dependencies using pnpm.
pnpm i
-
-
Create Smart Wallet Session:
- Open the smart wallet application.
- Sign in and create a session.
- Sign the first popup to set up a JWT token on the gas tank server.
- Sign the second popup for session setup.
-
Retrieve Public Session Data:
-
In the browser console, execute the following command:
localStorage.getItem("YOUR_SMART_WALLET_ADDRESS".toLowerCase() + "_sessions")
-
Copy the output (public session data) and save it in a file named
data.txt
.
-
-
Get Gas Tank Transaction Details:
- Go to the gas tank history and find the URLs for the latest two debit transactions.
- Open each transaction on the network explorer.
- Click "click to see more" and then "decode input data."
- Retrieve the values for
callGasLimit
,verificationGasLimit
,maxFeePerGas
,maxPriorityFeePerGas
, andpaymasterAndData
.
-
Update Index.ts:
- Open the
index.ts
file. - Locate lines 127 to 152 and replace the values with the ones you obtained in the previous step.
- Open the
-
Run the Script:
-
Execute the following command in the terminal:
ts-node -r node-localstorage/register index.ts 'YOUR_EOA_ADDRESS' && rm -rf scratch
Replace
'YOUR_EOA_ADDRESS'
with your Ethereum address. -