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

# PendingKeyExchange

> Protobuf class PendingKeyExchange generated from WAProto.

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

## Implements

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

## Constructors

### new PendingKeyExchange()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### localBaseKey?

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

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

#### Implementation of

[`IPendingKeyExchange`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange).[`localBaseKey`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange#localbasekey)

***

### localBaseKeyPrivate?

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

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

#### Implementation of

[`IPendingKeyExchange`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange).[`localBaseKeyPrivate`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange#localbasekeyprivate)

***

### localIdentityKey?

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

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

#### Implementation of

[`IPendingKeyExchange`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange).[`localIdentityKey`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange#localidentitykey)

***

### localIdentityKeyPrivate?

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

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

#### Implementation of

[`IPendingKeyExchange`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange).[`localIdentityKeyPrivate`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange#localidentitykeyprivate)

***

### localRatchetKey?

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

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

#### Implementation of

[`IPendingKeyExchange`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange).[`localRatchetKey`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange#localratchetkey)

***

### localRatchetKeyPrivate?

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

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

#### Implementation of

[`IPendingKeyExchange`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange).[`localRatchetKeyPrivate`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange#localratchetkeyprivate)

***

### sequence?

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

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

#### Implementation of

[`IPendingKeyExchange`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange).[`sequence`](/proto-reference/SessionStructure/interfaces/IPendingKeyExchange#sequence)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
