# encodePresentation

> **encodePresentation**(`chain`, `request`): [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)

Defined in: [packages/keysmith/src/claims.ts:1207](https://github.com/FilOzone/synapse-sdk/blob/278badff6cfc813e6315d00c56f4a5f23c80f883/packages/keysmith/src/claims.ts#L1207)

A presentation: sent to a provider with each gated request, as `Authorization: FOC-Grant <base64url>`.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `chain` | [`ClaimChain`](/reference/filoz/keysmith/interfaces/claimchain/) |
| `request` | [`ReadRequest`](/reference/filoz/keysmith/interfaces/readrequest/) |

## Returns

[`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)