getPermissionId
Get the permission ID of a session.
Usage
const permissionId = getPermissionId({
session: {
sessionValidator: '0x1234...',
sessionValidatorInitData: '0xabcd...',
salt: toHex(toBytes('1', { size: 32 })),
userOpPolicies: [],
erc7739Policies: {
allowedERC7739Content: [],
erc1271Policies: [],
},
actions: [
{
actionTarget: '0x1234...',
actionTargetSelector: '0x00112233',
actionPolicies: [
{
policy: '0x1234...',
initData: '0xabcd...',
},
],
},
],
},
})
Parameters
session
- Type:
Session
The session object.
Returns
permissionId
- Type:
Hex
Returns the permission ID of a given session.