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