EIP-6900
Last updated
Last updated
The EIP-6900 is a standard of a Modular Account used in the Account Abstract. In the contract, user can install the Plugins which is used before the operation of the validation on the validation phase, before and after the execution in the entrypoint's operation. The Modular Account is conbstructed for the users to install the operation that user want to use. There are many types of plugins from the varioius Web3 protocols including Safe, Alchemy, and etc. In this page, we would introduce of the plugins which validates or integrates with the paymaster contract.
The module checks each UserOperation's paymaster against the stored approved paymaster address. Once installed, the module will validate all UserOperations by checking if they use the approved paymaster. If a different paymaster is used, the transaction will revert with BadPaymasterSpecified
error. You can use only one paymaster which is stored to the SCW by the plugin.
You can see the paymaster address being installed and uninstalled in the contract.
CF) The onInstall and the onUnInstall function is the callback function to the entrypoint in the Modular Account(SCW). It is called when installing or uninstalling the plugin contract to the wallet.
The validate function is here: