function · Browser and Node

# openBundle

The messages in a bundle. A sealed bundle opens only for the courier it was sealed to.

`@toip-tools/mesh-transport` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mesh-transport/src/bundle.ts#L32)

Import:

```ts
import { openBundle } from "@toip-tools/mesh-transport";
```

## Declaration

Signature:

```ts
openBundle(bytes: Uint8Array, me?: Identity): Promise<BundleItem[]>;
```

### Parameters

- **`bytes` (required)**: `Uint8Array<ArrayBufferLike>`
- **`me` (optional)**: `Identity | undefined`

### Returns

`Promise<BundleItem[]>`

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

---

This is the Markdown version of https://toip.tools/toolkit/mesh-transport/api/openBundle/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
