An open API service indexing awesome lists of open source software.

https://github.com/allwin199/smart-accounts


https://github.com/allwin199/smart-accounts

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# ERC 4337

## The five roles of ERC 4337
1. User
2. Bundler
3. Entry Point
4. Paymaster
5. Smart Contract Account

- User authenticates the transaction
- Bundler will sign and submit this transaction
- Entry point will calculate how much gas this transaction will cost and check whether paymaster has the required gas.
- If the paymaster has required gas, tx will go through
- If the paymaster dosen't have enough gas, then
- Entry point will interact with the account and will subtract the accounts balance
- Paymaster will pay the gas (sponsor)
- Account will validate and execute the transaction

![5 Roles of ERC 4337](./images/erc4337-roles.png)
![ERC 4337 Workflow](./images/erc4337-workflow.png)