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

IERC7579AccountConfig

ERC-7579 Account Config. Accounts should implement this interface to expose information that identifies the account, supported modules and capabilities.

Functions

accountId

Returns the account id of the smart account

function accountId() external view returns (string memory accountImplementationId);

Returns

NameTypeDescription
accountImplementationIdstringthe account id of the smart account MUST return a non-empty string The accountId SHOULD be structured like so: "vendorname.accountname.semver" The id SHOULD be unique across all smart accounts

supportsExecutionMode

Function to check if the account supports a certain execution mode (see above)

function supportsExecutionMode(bytes32 encodedMode) external view returns (bool);

Parameters

NameTypeDescription
encodedModebytes32the encoded mode MUST return true if the account supports the mode and false otherwise

supportsModule

Function to check if the account supports a certain module typeId

function supportsModule(uint256 moduleTypeId) external view returns (bool);

Parameters

NameTypeDescription
moduleTypeIduint256the module type ID according to the ERC-7579 spec MUST return true if the account supports the module type and false otherwise