Home

Awesome

<img align="right" width="150" height="150" top="100" src="./assets/blueprint.png">

MinimalAccount

The most gas optimized ERC-4337 account - written in Huff

Note

These contracts are unaudited and are not recommended for use in production.

The main usage of these contracts is to benchmark other ERC-4337 accounts against the lowest possible gas cost for an account.

Gas calculations (as of Sep 21, 2023)

CreationNative transferERC20 transferTotal
MinimalAccount2229029325481883398039
SimpleAccount4100619769086754594505
Biconomy29689210078089577487249
Etherspot30576910009189172495032
Kernel v2.036666210680095877569339
Kernel v2.129141310324092289486942
Kernel v2.1-lite2569659733186121440417

Gas difference between MinimalAccount and cheapest account in each category:

CreationNative transferERC20 transferTotal
MA cheaper by340634077423842378

Calculations are based on ZeroDev's AA Benchmark

Using this repo

  1. Clone this repo
git clone https://github.com/kopy-kat/MinimalAccount.git
cd MinimalAccount
  1. Install dependencies

Once you've cloned and entered into your repository, you need to install the necessary dependencies. In order to do so, simply run:

forge install
  1. Build & Test

To build and test your contracts, you can run:

forge build
forge test

For more information on how to use Foundry, check out the Foundry Github Repository and the foundry-huff library repository.

Todo

License

The Unlicense

Acknowledgements

Disclaimer

These smart contracts are being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the user interface or the smart contracts. They have not been audited and as such there can be no assurance they will work as intended, and users may experience delays, failures, errors, omissions, loss of transmitted information or loss of funds. The creators are not liable for any of the foregoing. Users should proceed with caution and use at their own risk.