Skip to main content
Smart Sessions allow accounts to delegate specific permissions to other signers with fine-grained control over what actions they can perform.
A new Smart Sessions SDK flow is now available with improved features and recommended best practices. We encourage all developers to migrate to the new smart sessions flow.See the updated documentation here: Smart Sessions Reference

toSmartSessionsModule

Create a Smart Sessions validator module.

Parameters

Example


meeSessionActions

Extend the MEE client with session-related methods.

Added Methods

  • prepareForPermissions
  • grantPermissionTypedDataSign
  • grantPermissionPersonalSign
  • usePermission
  • isPermissionEnabled
  • checkEnabledPermissions

prepareForPermissions

Deploy accounts and install Smart Sessions module.

Parameters

Legacy prepareForPermissions is documented with the minimal parameter set above. For extended options (e.g. redeemer, actions, maxPaymentAmount, or payloads that include sessionDetails), use the new flow: getSessionQuote with mode: 'PREPARE'.

Example


grantPermissionTypedDataSign

Grant permissions using EIP-712 typed data signature.

Parameters

ActionConfig

Example


usePermission

Execute instructions using granted permissions.

Parameters

When sessionDetails were obtained from prepareForPermissions (not from grantPermissionTypedDataSign / grantPermissionPersonalSign), use mode USE only. Using ENABLE_AND_USE in that case will throw.

Example


Policies

getSudoPolicy

Grants unlimited permissions for specified functions.
Use with caution—provides highest level of access.

getUniversalActionPolicy

Fine-grained parameter-level control.

ParamCondition


Check Permission Status

isPermissionEnabled

checkEnabledPermissions


Complete Flow