ModuleSDK
Modules
getSessionNonce

getSessionNonce

Get the nonce of a session.

Usage

const nonce = await getSessionNonce({
  client,
  account,
  permissionId: '0x1234...',
});

Parameters

permissionId

The permission ID of the session to the nonce for.

client

  • Type: PublicClient

The rpc client to use for the chain you want.

account

The account object.

Returns

nonce

  • Type: Promise<bigint>

Returns the nonce of the given session.