Tooling
ModuleKit
Reference
Testing
Smart Sessions
Getsessionnonce

⚠️ Deprecation Notice

ModuleKit was developed by Rhinestone and is no longer actively supported. If you're building modules and need assistance, reach out to Rhinestone at gm@rhinestone.dev


title: "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.