--- title: InvalidNonceKeyError description: Error class denoting that the nonce key is invalid because its too large. slug: wallets/reference/smart-accounts/classes/InvalidNonceKeyError layout: reference --- {/* This file is auto-generated by TypeDoc. Do not edit manually. */} Defined in: [packages/smart-accounts/src/errors/InvalidNonceKeyError.ts:6](https://github.com/alchemyplatform/aa-sdk/blob/main/packages/smart-accounts/src/errors/InvalidNonceKeyError.ts#L6) Error class denoting that the nonce key is invalid because its too large. ## Extends - `BaseError` ## Constructors ### Constructor ```ts new InvalidNonceKeyError(nonceKey): InvalidNonceKeyError; ``` Defined in: [packages/smart-accounts/src/errors/InvalidNonceKeyError.ts:14](https://github.com/alchemyplatform/aa-sdk/blob/main/packages/smart-accounts/src/errors/InvalidNonceKeyError.ts#L14) Initializes a new instance of the error message with a default message indicating that the nonce key is invalid. #### Parameters
Parameter Type Description
`nonceKey` `bigint` the invalid nonceKey used
#### Returns `InvalidNonceKeyError` #### Overrides ```ts BaseError.constructor; ``` ## Properties
Property Type Default value
`name` `string` `"InvalidNonceKeyError"`