# verifyHistory

> **verifyHistory**(`catalogBytes`, `signature`, `pinnedKeys`, `appId`, `historyBytes`, `options?`): `Promise`\<[`HistoryVerification`](/docs/reference/js/zaun-client/interfaces/historyverification/)\>

Defined in: [zaun/js/index.d.ts:304](https://github.com/zaunchat/zaun-client/blob/main/zaun/js/index.d.ts#L304)

Verifies the catalog, then `history/<appId>.json` against the hash it lists.

## Parameters

### catalogBytes

`Bytes`

### signature

`string` \| `Uint8Array`\<`ArrayBufferLike`\>

### pinnedKeys

`string` \| `string`[]

### appId

`string`

### historyBytes

`Bytes`

### options?

#### now?

`number` \| `Date`

## Returns

`Promise`\<[`HistoryVerification`](/docs/reference/js/zaun-client/interfaces/historyverification/)\>
