1

I hear that by imposing account abstraction specified in ERC-4337 EOA is not the only one that can instantiate a transaction.

What I'm confused about is the actual entity that pays the gas fee and the relationship with the paymaster.

UserOperation mempool

From Vitalik's article, it says that bundler is paying for the transaction.

The bundler pays the fee for the bundle transaction in ETH, and gets compensated though fees paid as part of all the individual UserOperation executions. Bundlers would choose which UserOperation objects to include based on similar fee-prioritization logic to how miners operate in the existing transaction mempool. A UserOperation looks like a transaction; it’s an ABI-encoded struct that includes fields such as:

In this case, is the bundler an EOA that originates the transaction? Also, if the bundler pays the fee for transaction for each UserOperation what will it get in return? (e.g. Paymaster pays the bundler the transaction fee it receives?)

To sum up,

  • Is bundler an EOA that monitors the mempool of UserOperation which initiates the transaction?(If it's the case, then it's still the EOA that originates the tx right?)
  • What is the incentive model of Bundler? and the relationship between paymaster and bundler? (Why should the bundler pay the gas fee for Bundle transaction that includes UserOperation)
  • If Paymaster pays for the gas fee on behalf of a user, should it hold native ETH balance to pay it? Can a Paymaster pay the Entrypoint Contract with an ERC20 token?

Thank you for answering in advance :)

1 Answer 1

0

You pretty much understand it!

Yes, the bundler has a private key and pays to submit a bundle of transactions (called user operations). You can read more about how bundlers work and an example here. The incentive for a bundler is the same as all block builders - they are paid a fee by those submitting transactions.

A paymaster needs to hold a native ETH balance. It can't pay the EntryPoint with an ERC-20 token, but it could accept ERC-20 tokens and swap for ETH when necessary. It could also just sponsor transactions upfront, like this live paymaster example.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.