# verifyPresentation

> **verifyPresentation**(`bytes`, `options`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`VerifiedClaim`](/reference/filoz/keysmith/interfaces/verifiedclaim/)\>

Defined in: [claims.ts:376](https://github.com/FilOzone/synapse-sdk/blob/68e30a2a5457180e60a5579eb5ecff90b65894b3/packages/keysmith/src/claims.ts#L376)

What a gating provider checks on a request, with only the header and the
piece's labels: the chain, the request's piece, lifetime and signer, and that the final node reaches the piece. A piece without
`foc/own` is not gated.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `bytes` | [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) |
| `options` | \{ `chainId`: `bigint`; `now?`: `number`; `piece`: [`PieceLabels`](/reference/filoz/keysmith/interfaces/piecelabels/); `pieceCid`: [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array); \} |
| `options.chainId` | `bigint` |
| `options.now?` | `number` |
| `options.piece` | [`PieceLabels`](/reference/filoz/keysmith/interfaces/piecelabels/) |
| `options.pieceCid` | [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) |

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`VerifiedClaim`](/reference/filoz/keysmith/interfaces/verifiedclaim/)\>

## Throws

With the reason the request is refused.