@abstractooor
konradkopp.eth
9 months
Smart accounts are more expensive than EOAs - but by how much? šŸ¤· Introducing the MinimalAccount - the most gas-optimised ERC-4337 account, written in @huff_language - built to find out the answer to exactly that question
10
26
173

Replies

@abstractooor
konradkopp.eth
9 months
Firstly to caveat: the MinimalAccount is extremely minimal so I definitely don't recommend using it in production. It is meant purely as an experiment and has not been audited
1
0
6
@abstractooor
konradkopp.eth
9 months
The gas benchmarks are calculated using @zerodev_app 's , comparing a range of existing smart accounts
1
0
11
@abstractooor
konradkopp.eth
9 months
Compared to other smart accounts, the MinimalAccount reduces gas by almost 28k overall (over 20k on creation and around 3.8k each for native/erc20 transfers) However, compared to EOAs (who have no creation cost and a native transfer cost of 21k) the MinimalAccount is still
1
0
8
@abstractooor
konradkopp.eth
9 months
significantly more expensive. The main cost comes from the execution flow of ERC-4337 (divided into validation and execution phase) and by using the EntryPoint
1
0
6
@abstractooor
konradkopp.eth
9 months
The main takeaway from the MinimalAccount is finding out what the absolute lower barrier of gas cost is for functioning ERC-4337 compliant accounts. This is quite useful in benchmarking future versions of accounts and being able to answer, concretely, how much more expensive
1
0
7
@abstractooor
konradkopp.eth
9 months
smart accounts are relative to EOAs
0
0
6
@kristofgazso
Kristof Gazso | kristof.eth
9 months
1
0
4
@abstractooor
konradkopp.eth
9 months
@kristofgazso @huff_language not yet but planning to run tests to find out after how many batched txs (for different kinds of txs like native or ERC20 transfer) the account becomes cheaper than EOAs
0
0
1
@evmBrahmin
evmBrahmin
9 months
@abstractooor @huff_language the huffor in me wants to go golfing
1
0
2
@abstractooor
konradkopp.eth
9 months
@evmBrahmin @huff_language the entrypoint might need some optimization too ā€¦
1
0
4
@0xkkeon
Keon Kim
9 months
@abstractooor @huff_language oh awesome! I'm always a fan of minimal-x projects
0
0
1
@leekt216
taek.eth
9 months
0
0
8
@SimonSallstrom
Simon S
9 months
@abstractooor @huff_language @_KtorZ_ Iā€™ve heard that the Cardano design makes complex offchain computing relatively cheap still (whatā€™s onchain is only validator scripts?) Would that help reduce gas cost of using smart contract wallets on Cardano?
3
0
1
@ZeroKPunk
ZeroKPunk
9 months
@abstractooor @erc4337 @huff_language Oh we have profiled the entrypoint most of the gas cost come from some sig verification, gas refunds, nonce maintenance.. optimization at the language level may not be very productive, we have design an zero knowledge driven AA for above problems
1
0
0
@FOMOdita
FOMOdita
9 months
@abstractooor @huff_language Good morningā˜€ļø Let's connect?
0
0
0