4337 Gas Metering Analysis
Rename the .env.example
to .env
.
Fill the required values of .env
.
Based on which paymaster to run, check the package.json
file to see the script
. Furthermore, you can check the README.md
files in the corresponding paymaster folders to see the individual command and their possible results.
NOTE: If you run a paymaster analysis twice or more without changing the salt for Safe Creation, then only the operation will execute through paymaster (if any), rather than Safe Creation and Operation.
With 4337?
Account Creation
Account Creation + Native Transfer
Native Transfer
Account Creation + ERC20 Transfer
ERC20 Transfer
Account Creation + ERC721 Minting
ERC721 Minting
Without Paymaster
Yes
415213
447632
182081
426139
160575
467926
202374
Gelato (4337 Compatible - 1Balance)
No
302679 (TX ) (Gas )
313228 (TX ) (Gas )
83930 (TX ) (Gas )
315961 (TX ) (Gas )
86852 (TX ) (Gas )
345284 (TX ) (Gas )
116159 (TX ) (Gas )
Pimlico - EntryPoint v0.7 (Base Sepolia - ERC20 Paymaster)
Yes
487605 (TX ) (Gas )
494988 (TX ) (Gas )
182388 (TX ) (Gas )
514156 (TX ) (Gas )
185479 (TX ) (Gas )
527408 (TX ) (Gas )
214759 (TX ) (Gas )
Pimlico - EntryPoint v0.7 (Sepolia - Verifying Paymaster)
Yes
396009 (TX ) (Gas
403404 (TX ) (Gas )
120355 (TX ) (Gas )
423670 (TX ) (Gas )
123494 (TX ) (Gas )
452929 (TX ) (Gas )
152766 (TX ) (Gas )
Alchemy - EntryPoint v0.6 (ETH from Safe)
Yes
417074 (TX ) (Gas )
424505 (TX ) (Gas )
107057 (TX ) (Gas )
427599 (TX ) (Gas )
110174 (TX ) (Gas )
456870 (TX ) (Gas )
139420 (TX ) (Gas )
Alchemy - EntryPoint v0.6 (ETH - Gas Policy)
Yes
411372 (TX ) (Gas )
418779 (TX ) (Gas )
130202 (TX ) (Gas )
421926 (TX ) (Gas )
133394 (TX ) (Gas )
451200 (TX ) (Gas )
162654 (TX ) (Gas )
Detailed Individual Gas Usage Results
Pimlico - EntryPoint v0.7 (Base Sepolia ERC20 Paymaster)
Type
Actual Gas
handleOps
_createSenderIfNeeded
Safe Proxy Factory
ValidateUserOp (Safe)
_executeUserOp
executeUserOp (Safe)
execTransactionFromModule
Account Creation
487605
456569
Wasn't included in the trace
295395
11856
24381
6424
4411
Account Creation + Native Transfer
494988
463940
Wasn't included in the trace
295395
11856
31752
13795
11782
Native Transfer
182388
158296
NA
NA
15536
33798
15795
13782
Account Creation + ERC20 Transfer
498115
471111
Wasn't included in the trace
295395
11883
38804
20784
18528
ERC20 Transfer
185479
165467
NA
NA
15536
40850
22784
20528
Account Creation + ERC721 Minting
527408
495792
Wasn't included in the trace
295395
11874
63524
45525
43351
ERC721 Minting
214759
190147
NA
NA
15554
65570
47525
45351
Pimlico - EntryPoint v0.7 (Sepolia - Verifying Paymaster)
Type
Actual Gas
handleOps
_createSenderIfNeeded
Safe Proxy Factory
ValidateUserOp (Safe)
_executeUserOp
executeUserOp (Safe)
execTransactionFromModule
Account Creation
414071
366053
Wasn't included in the trace
264042
11771
14542
6424
4411
Account Creation + Native Transfer
421350
373424
Wasn't included in the trace
264042
11771
21913
13795
11782
Native Transfer
137723
94935
NA
NA
15572
23930
15795
13782
Account Creation + ERC20 Transfer
446477
397746
Wasn't included in the trace
264042
11798
46088
37906
35650
ERC20 Transfer
145721
102154
NA
NA
15599
31004
22806
20550
Account Creation + ERC721 Minting
470905
422417
Wasn't included in the trace
264042
11789
70808
62647
60473
ERC721 Minting
170150
126826
NA
NA
15590
55724
47547
45373
Alchemy - EntryPoint v0.6 (ETH from Safe)
Type
Actual Gas
handleOps
_createSenderIfNeeded
Safe Proxy Factory
ValidateUserOp (Safe)
_executeUserOp
executeUserOp (Safe)
execTransactionFromModule
Account Creation
417074
407850
283735
267761
47159
34826
7015
4411
Account Creation + Native Transfer
424505
415221
283735
267761
47159
42197
14386
13795
Native Transfer
107057
83301
NA
NA
20512
24297
16386
15795
Account Creation + ERC20 Transfer
427599
422407
283754
267761
47205
49272
21415
20806
ERC20 Transfer
110174
90486
NA
NA
20558
31372
23415
20550
Account Creation + ERC721 Minting
456870
447090
283748
267761
47190
73991
46150
43373
ERC721 Minting
139420
115168
NA
NA
20542
56091
48150
45373
Alchemy - EntryPoint v0.6 (ETH - Gas Policy)
Type
Actual Gas
handleOps
_createSenderIfNeeded
Safe Proxy Factory
ValidateUserOp (Safe)
_executeUserOp
executeUserOp (Safe)
execTransactionFromModule
Account Creation
411372
380632
281451
267761
14992
14932
7015
4411
Account Creation + Native Transfer
418779
388003
281451
14992
22303
14386
11782
Native Transfer
130202
104878
NA
NA
15320
24310
16386
15795
Account Creation + ERC20 Transfer
421926
395254
281471
15038
29378
21415
20806
18550
ERC20 Transfer
133394
112126
NA
NA
20618
31385
23415
20550
Account Creation + ERC721 Minting
451200
419916
281464
15023
54097
46150
43373
ERC721 Minting
162654
136786
NA
NA
20603
56103
48150
45373