⚠️ Deprecation Notice
ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.
encodeValidatorNonce
Encodes the validator address in the nonce key to use in ERC-7579 accounts.
Usage
const nonce = await getAccountNonce(publicClient, {
address: account.address,
entryPointAddress: entryPoint07Address,
key: encodeValidatorNonce({ account, validator: validatorModule }),
})Parameters
account
- Type:
Account
The account object.
validator
- Type:
Module | Address
The validator module object or simply the address of the module.
Returns
- Type
bigint
The encoded validator nonce key to query the ERC-4337 EntryPoint with.