> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# PendingPreKey

> Protobuf class PendingPreKey generated from WAProto.

Defined in: [WAProto/index.d.ts:11015](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11015)

## Implements

* [`IPendingPreKey`](/proto-reference/SessionStructure/interfaces/IPendingPreKey)

## Constructors

### new PendingPreKey()

> **new PendingPreKey**(`p`?): [`PendingPreKey`](/proto-reference/SessionStructure/classes/PendingPreKey)

Defined in: [WAProto/index.d.ts:11016](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11016)

#### Parameters

##### p?

[`IPendingPreKey`](/proto-reference/SessionStructure/interfaces/IPendingPreKey)

#### Returns

[`PendingPreKey`](/proto-reference/SessionStructure/classes/PendingPreKey)

## Properties

### baseKey?

> `optional` **baseKey**: `null` | `Uint8Array`\<`ArrayBufferLike`>

Defined in: [WAProto/index.d.ts:11019](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11019)

#### Implementation of

[`IPendingPreKey`](/proto-reference/SessionStructure/interfaces/IPendingPreKey).[`baseKey`](/proto-reference/SessionStructure/interfaces/IPendingPreKey#basekey)

***

### preKeyId?

> `optional` **preKeyId**: `null` | `number`

Defined in: [WAProto/index.d.ts:11017](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11017)

#### Implementation of

[`IPendingPreKey`](/proto-reference/SessionStructure/interfaces/IPendingPreKey).[`preKeyId`](/proto-reference/SessionStructure/interfaces/IPendingPreKey#prekeyid)

***

### signedPreKeyId?

> `optional` **signedPreKeyId**: `null` | `number`

Defined in: [WAProto/index.d.ts:11018](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11018)

#### Implementation of

[`IPendingPreKey`](/proto-reference/SessionStructure/interfaces/IPendingPreKey).[`signedPreKeyId`](/proto-reference/SessionStructure/interfaces/IPendingPreKey#signedprekeyid)

## Methods

### create()

> `static` **create**(`properties`?): [`PendingPreKey`](/proto-reference/SessionStructure/classes/PendingPreKey)

Defined in: [WAProto/index.d.ts:11020](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11020)

#### Parameters

##### properties?

[`IPendingPreKey`](/proto-reference/SessionStructure/interfaces/IPendingPreKey)

#### Returns

[`PendingPreKey`](/proto-reference/SessionStructure/classes/PendingPreKey)

***

### decode()

> `static` **decode**(`r`, `l`?): [`PendingPreKey`](/proto-reference/SessionStructure/classes/PendingPreKey)

Defined in: [WAProto/index.d.ts:11022](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11022)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`PendingPreKey`](/proto-reference/SessionStructure/classes/PendingPreKey)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:11021](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11021)

#### Parameters

##### m

[`IPendingPreKey`](/proto-reference/SessionStructure/interfaces/IPendingPreKey)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`PendingPreKey`](/proto-reference/SessionStructure/classes/PendingPreKey)

Defined in: [WAProto/index.d.ts:11023](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11023)

#### Parameters

##### d

#### Returns

[`PendingPreKey`](/proto-reference/SessionStructure/classes/PendingPreKey)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:11026](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11026)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:11025](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11025)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:11024](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11024)

#### Parameters

##### m

[`PendingPreKey`](/proto-reference/SessionStructure/classes/PendingPreKey)

##### o?

`IConversionOptions`

#### Returns

`object`
