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

# getNextPreKeysNode

> Function getNextPreKeysNode in the Baileys API.

> **getNextPreKeysNode**(`state`, `count`): `Promise`\<\{ `node`: [`BinaryNode`](/api-reference/type-aliases/BinaryNode); `update`: `Partial`\<[`AuthenticationCreds`](/api-reference/type-aliases/AuthenticationCreds)>; }>

Defined in: [src/Utils/signal.ts:240](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/signal.ts#L240)

## Parameters

### state

[`AuthenticationState`](/api-reference/type-aliases/AuthenticationState)

### count

`number`

## Returns

`Promise`\<\{ `node`: [`BinaryNode`](/api-reference/type-aliases/BinaryNode); `update`: `Partial`\<[`AuthenticationCreds`](/api-reference/type-aliases/AuthenticationCreds)>; }>
