safe-global / safe-core-sdk

The Safe{Core} SDK allows builders to add account abstraction functionality into their apps.
https://docs.safe.global/sdk/overview
MIT License
243 stars 179 forks source link

[4337] Allow paymaster to cover fees #700

Closed dasanra closed 3 months ago

dasanra commented 4 months ago

Context / issue

One of the benefits of using 4337 is the possibility to use a paymaster to pay the fees on behalf of the account, instead having the native token available in the smart account.

This can enable different scenarios, like being able to create transactions without having funds in an account or being able to use ERC20 tokens to pay the gas fees

Proposed solution

Create the user operation (safe operation) setting a paymaster and test that is possible to do transactions without funds, or paying using ERC20 tokens.