# InvalidRpcUrlError | @aa-sdk/core

> Represents an error that occurs when an invalid RPC URL is provided. This class extends the `BaseError` class and includes the invalid URL in the error message.

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

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

Defined in: [aa-sdk/core/src/errors/client.ts:30](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/client.ts#L30)

Represents an error that occurs when an invalid RPC URL is provided. This class extends the `BaseError` class and includes the invalid URL in the error message.

## Extends

- [`BaseError`](BaseError)

## Constructors

### Constructor

```ts
new InvalidRpcUrlError(rpcUrl?): InvalidRpcUrlError;
```

Defined in: [aa-sdk/core/src/errors/client.ts:38](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/client.ts#L38)

Creates an instance of an error with a message indicating an invalid RPC URL.

#### Parameters

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

  <tbody>
    <tr>
      <td>
        `rpcUrl?`
      </td>

      <td>
        `string`
      </td>

      <td>
        The invalid RPC URL that caused the error
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`InvalidRpcUrlError`

#### Overrides

[`BaseError`](BaseError).[`constructor`](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>
        `"InvalidRpcUrlError"`
      </td>
    </tr>

    <tr>
      <td>
        <a id="version" /> `version`
      </td>

      <td>
        `string`
      </td>

      <td>
        `VERSION`
      </td>
    </tr>

  </tbody>
</table>