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

# ClientHello

> Protobuf class ClientHello generated from WAProto.

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

## Implements

* [`IClientHello`](/proto-reference/HandshakeMessage/interfaces/IClientHello)

## Constructors

### new ClientHello()

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

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

#### Parameters

##### p?

[`IClientHello`](/proto-reference/HandshakeMessage/interfaces/IClientHello)

#### Returns

[`ClientHello`](/proto-reference/HandshakeMessage/classes/ClientHello)

## Properties

### ephemeral?

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

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

#### Implementation of

[`IClientHello`](/proto-reference/HandshakeMessage/interfaces/IClientHello).[`ephemeral`](/proto-reference/HandshakeMessage/interfaces/IClientHello#ephemeral)

***

### extendedCiphertext?

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

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

#### Implementation of

[`IClientHello`](/proto-reference/HandshakeMessage/interfaces/IClientHello).[`extendedCiphertext`](/proto-reference/HandshakeMessage/interfaces/IClientHello#extendedciphertext)

***

### payload?

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

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

#### Implementation of

[`IClientHello`](/proto-reference/HandshakeMessage/interfaces/IClientHello).[`payload`](/proto-reference/HandshakeMessage/interfaces/IClientHello#payload)

***

### static?

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

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

#### Implementation of

[`IClientHello`](/proto-reference/HandshakeMessage/interfaces/IClientHello).[`static`](/proto-reference/HandshakeMessage/interfaces/IClientHello#static)

***

### useExtended?

> `optional` **useExtended**: `null` | `boolean`

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

#### Implementation of

[`IClientHello`](/proto-reference/HandshakeMessage/interfaces/IClientHello).[`useExtended`](/proto-reference/HandshakeMessage/interfaces/IClientHello#useextended)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IClientHello`](/proto-reference/HandshakeMessage/interfaces/IClientHello)

#### Returns

[`ClientHello`](/proto-reference/HandshakeMessage/classes/ClientHello)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`ClientHello`](/proto-reference/HandshakeMessage/classes/ClientHello)

***

### encode()

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

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

#### Parameters

##### m

[`IClientHello`](/proto-reference/HandshakeMessage/interfaces/IClientHello)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`ClientHello`](/proto-reference/HandshakeMessage/classes/ClientHello)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`ClientHello`](/proto-reference/HandshakeMessage/classes/ClientHello)

##### o?

`IConversionOptions`

#### Returns

`object`
