interface · Browser and Node

# WireRecord

One message on the simulated network, as an observer sees it, plus what its recipient opened.

`@toip-tools/trust-core` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/trust-core/src/bus.ts#L6)

Import:

```ts
import { type WireRecord } from "@toip-tools/trust-core";
```

## Declaration

interface:

```ts
interface WireRecord {
  seq: number;
  at: string;
  from: string;
  to: string;
  bytes: number;
  /** Hex of the last 24 bytes (ciphertext and signature). The first bytes are the cleartext TSP envelope, the same for every message. */
  head: string;
  raw: Uint8Array;
  undelivered?: true;
  opened?: { by: string; document: TrustTaskDocument<unknown> };
  /** Why the recipient's TSP layer refused it, if it did. */
  refused?: string;
}
```

## Properties

**`seq` (required)**

`number`

**`at` (required)**

`string`

**`from` (required)**

`string`

**`to` (required)**

`string`

**`bytes` (required)**

`number`

**`head` (required)**

`string`

Hex of the last 24 bytes (ciphertext and signature). The first bytes are the cleartext TSP envelope, the same for every message.

**`raw` (required)**

`Uint8Array<ArrayBufferLike>`

**`undelivered` (optional)**

`true | undefined`

**`opened` (optional)**

`{ by: string; document: TrustTaskDocument<unknown>; } | undefined`

**`refused` (optional)**

`string | undefined`

Why the recipient's TSP layer refused it, if it did.

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

---

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