# InvalidNonceKeyError

> Error class denoting that the nonce key is invalid because its too large.

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* 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/v5.x.x/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/v5.x.x/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

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `nonceKey`
      </td>

      <td>
        `bigint`
      </td>

      <td>
        the invalid nonceKey used
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`InvalidNonceKeyError`

#### Overrides

```ts
BaseError.constructor;
```

## Properties

<table>
  <thead>
    <tr>
      <th align="left">Property</th>
      <th align="left">Type</th>
      <th align="left">Default value</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <a id="name" /> `name`
      </td>

      <td>
        `string`
      </td>

      <td>
        `"InvalidNonceKeyError"`
      </td>
    </tr>

  </tbody>
</table>