ModuleSDK
Modules
getEnableUserOpPoliciesAction

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.