function · Browser and Node

# encode

`@toip-tools/eventlog` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/cesr.ts#L78)

Import:

```ts
import { encode } from "@toip-tools/eventlog";
```

## Declaration

Signature:

```ts
encode(code: string, raw: Uint8Array): Qb64;
```

### Parameters

- **`code` (required)**: `string`
- **`raw` (required)**: `Uint8Array<ArrayBufferLike>`

### Returns

`string`

[Usage guide](https://toip.tools/toolkit/eventlog/#usage) · [Error handling](https://toip.tools/toolkit/eventlog/#errors) · [All exports](https://toip.tools/toolkit/eventlog/api/)

---

This is the Markdown version of https://toip.tools/toolkit/eventlog/api/encode/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
