ModuleSDK
Modules
getEnableActionPoliciesAction

getEnableActionPoliciesAction

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

Usage

const action = await getEnableActionPoliciesAction({
  permissionId: '0x1234...',
  actionPolicies: [
    {
      actionTarget: '0xabcd...',
      actionTargetSelector: '0x00112233',
      actionPolicies: [
        {
          policy: '0x1234...',
          initData: '0xabcd...',
        },
      ],
    },
  ],
})

Parameters

permissionId

The permission ID of the session to enable action policies.

actionPolicies

A list of action policies.

Returns

action

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