Tooling
Module SDK
Modules
getEnableUserOpPoliciesAction

⚠️ Deprecation Notice

ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.

Rhinestone SDK Documentation (opens in a new tab)

getEnableUserOpPoliciesAction

Get the action to enable userOp policies for a specific session in the smart sessions validator.

Usage

const action = await getEnableUserOpPoliciesAction({
  permissionId: '0x1234...',
  userOpPolicies: [
    {
      policy: '0xabcd...',
      initData: '0x1234...',
    },
  ],
})

Parameters

permissionId

The permission ID of the session to enable userOp policies.

userOpPolicies

A list of userOp policies.

Returns

action

The action to enable userOp policies for a specific session in the smart sessions validator.