Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IERC7579Execution

ERC-7579 Execution. Accounts should implement this interface so that the Entrypoint and ERC-7579 modules can execute operations.

Functions

execute

Executes a transaction on behalf of the account.

function execute(bytes32 mode, bytes calldata executionCalldata) external payable;

Parameters

NameTypeDescription
modebytes32The encoded execution mode of the transaction. See ModeLib.sol for details
executionCalldatabytesThe encoded execution call data MUST ensure adequate authorization control: e.g. onlyEntryPointOrSelf if used with ERC-4337 If a mode is requested that is not supported by the Account, it MUST revert

executeFromExecutor

Executes a transaction on behalf of the account. This function is intended to be called by Executor Modules

function executeFromExecutor(bytes32 mode, bytes calldata executionCalldata)
    external
    payable
    returns (bytes[] memory returnData);

Parameters

NameTypeDescription
modebytes32The encoded execution mode of the transaction. See ModeLib.sol for details
executionCalldatabytesThe encoded execution call data

Returns

NameTypeDescription
returnDatabytes[]An array with the returned data of each executed subcall MUST ensure adequate authorization control: i.e. onlyExecutorModule If a mode is requested that is not supported by the Account, it MUST revert