ModuleKit
Testing
Smart Sessions
getSessionNonce

getSessionNonce

Get the nonce of the session which is signed over in order to prevent an unauthorized re-initialization of a session if it is deactivated.

Usage

uint256 nonce = instance.getSessionNonce(permissionId);

Parameters

instance

The instance of the account used for testing.

permissionId

  • Type: PermissionId | bytes32

The permission id of the session.

Returns

nonce

  • Type: uint256

The nonce for this session.