getSessionNonce
Get the nonce of a session.
Usage
const nonce = await getSessionNonce({
client,
account,
permissionId: '0x1234...',
})
Parameters
permissionId
- Type:
Hex
(opens in a new tab)
The permission ID of the session to the nonce for.
client
- Type:
PublicClient
The rpc client to use for the chain you want.
account
- Type:
Account
The account object.
Returns
nonce
- Type:
Promise<bigint>
Returns the nonce of the given session.