# Base58Error

[**types/public\_key**](https://limechain.gitbook.io/limechain-test/types/public_key) • **Docs**

***

[near-sdk-js v2.0.0](https://limechain.gitbook.io/limechain-test/packages) / [types/public\_key](https://limechain.gitbook.io/limechain-test/types/public_key) / Base58Error

## Class: Base58Error

### Extends

* [`ParsePublicKeyError`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/parsepublickeyerror)

### Constructors

#### new Base58Error()

> **new Base58Error**(`error`): [`Base58Error`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/base58error)

**Parameters**

• **error**: `string`

**Returns**

[`Base58Error`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/base58error)

**Overrides**

[`ParsePublicKeyError`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/parsepublickeyerror).[`constructor`](https://limechain.gitbook.io/limechain-test/types/public_key/parsepublickeyerror#constructors)

**Defined in**

[packages/near-sdk-js/src/types/public\_key.ts:68](https://github.com/dim-daskalov/near-sdk-js/blob/c95f5e9eab115df82feb9d8dca403e7b9c8c9534/packages/near-sdk-js/src/types/public_key.ts#L68)

### Properties

#### cause?

> `optional` **cause**: `Error`

**Inherited from**

[`ParsePublicKeyError`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/parsepublickeyerror).[`cause`](https://limechain.gitbook.io/limechain-test/types/public_key/parsepublickeyerror#cause)

**Defined in**

node\_modules/.pnpm/typescript\@4.7.4/node\_modules/typescript/lib/lib.es2022.error.d.ts:26

***

#### error

> **error**: `string`

**Defined in**

[packages/near-sdk-js/src/types/public\_key.ts:68](https://github.com/dim-daskalov/near-sdk-js/blob/c95f5e9eab115df82feb9d8dca403e7b9c8c9534/packages/near-sdk-js/src/types/public_key.ts#L68)

***

#### message

> **message**: `string`

**Inherited from**

[`ParsePublicKeyError`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/parsepublickeyerror).[`message`](https://limechain.gitbook.io/limechain-test/types/public_key/parsepublickeyerror#message)

**Defined in**

node\_modules/.pnpm/typescript\@4.7.4/node\_modules/typescript/lib/lib.es5.d.ts:1029

***

#### name

> **name**: `string`

**Inherited from**

[`ParsePublicKeyError`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/parsepublickeyerror).[`name`](https://limechain.gitbook.io/limechain-test/types/public_key/parsepublickeyerror#name)

**Defined in**

node\_modules/.pnpm/typescript\@4.7.4/node\_modules/typescript/lib/lib.es5.d.ts:1028

***

#### stack?

> `optional` **stack**: `string`

**Inherited from**

[`ParsePublicKeyError`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/parsepublickeyerror).[`stack`](https://limechain.gitbook.io/limechain-test/types/public_key/parsepublickeyerror#stack)

**Defined in**

node\_modules/.pnpm/typescript\@4.7.4/node\_modules/typescript/lib/lib.es5.d.ts:1030

***

#### prepareStackTrace()?

> `static` `optional` **prepareStackTrace**: (`err`, `stackTraces`) => `any`

Optional override for formatting stack traces

**Parameters**

• **err**: `Error`

• **stackTraces**: `CallSite`\[]

**Returns**

`any`

**See**

<https://v8.dev/docs/stack-trace-api#customizing-stack-traces>

**Inherited from**

[`ParsePublicKeyError`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/parsepublickeyerror).[`prepareStackTrace`](https://limechain.gitbook.io/limechain-test/types/public_key/parsepublickeyerror#preparestacktrace)

**Defined in**

packages/near-sdk-js/node\_modules/@types/node/globals.d.ts:11

***

#### stackTraceLimit

> `static` **stackTraceLimit**: `number`

**Inherited from**

[`ParsePublicKeyError`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/parsepublickeyerror).[`stackTraceLimit`](https://limechain.gitbook.io/limechain-test/types/public_key/parsepublickeyerror#stacktracelimit)

**Defined in**

packages/near-sdk-js/node\_modules/@types/node/globals.d.ts:13

### Methods

#### captureStackTrace()

> `static` **captureStackTrace**(`targetObject`, `constructorOpt`?): `void`

Create .stack property on a target object

**Parameters**

• **targetObject**: `object`

• **constructorOpt?**: `Function`

**Returns**

`void`

**Inherited from**

[`ParsePublicKeyError`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/parsepublickeyerror).[`captureStackTrace`](https://limechain.gitbook.io/limechain-test/types/public_key/parsepublickeyerror#capturestacktrace)

**Defined in**

packages/near-sdk-js/node\_modules/@types/node/globals.d.ts:4
