⚠️ Deprecation Notice
ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.
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
- Type:
Hex(opens in a new tab)
The permission ID of the session to enable userOp policies.
userOpPolicies
- Type:
PolicyData[]
A list of userOp policies.
Returns
action
- Type:
Promise<Action>
The action to enable userOp policies for a specific session in the smart sessions validator.