function · Browser and Node

# exportBundle

Everything needed to verify an AID's logs offline: KEL (all versions, so recoveries show), trails with receipts and endorsements, the disclosed bodies, and DID bindings. `bodies` takes body SAIDs, or entry numbers per trail.

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

Import:

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

## Declaration

Signature:

```ts
exportBundle(store: LogStore, aid: Qb64, opts?: {
    trails?: Qb64[];
    bodies?: "all" | "none" | Qb64[];
    entries?: Record<Qb64, number[]>;
}): Promise<Bundle>;
```

### Parameters

**`store` (required)**

`LogStore`

**`aid` (required)**

`string`

**`opts` (optional)**

`{ trails?: Qb64[]; bodies?: "all" | "none" | Qb64[]; entries?: Record<Qb64, number[]>; }`

Default: `{}`

**Fields of `opts`**

- **`trails` (optional)**: `string[] | undefined`
- **`bodies` (optional)**: `"all" | "none" | string[] | undefined`
- **`entries` (optional)**: `Record<string, number[]> | undefined`

### Returns

`Promise<Bundle>`

[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/exportBundle/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
