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

# encodeBinaryNode

> Function encodeBinaryNode in the Baileys API.

> **encodeBinaryNode**(`node`, `opts`, `buffer`): `Buffer`

Defined in: [src/WABinary/encode.ts:5](https://github.com/WhiskeySockets/Baileys/blob/master/src/WABinary/encode.ts#L5)

## Parameters

### node

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

### opts

`Pick`\<`__module`, `"TAGS"` | `"TOKEN_MAP"`> = `constants`

### buffer

`number`\[] = `...`

## Returns

`Buffer`
