interface · Browser and Node

# Traffic

One message this endpoint sent or received, for an inspector.

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

Import:

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

## Declaration

interface:

```ts
interface Traffic {
  direction: "in" | "out";
  peer: string;
  document: TrustTaskDocument<unknown>;
  bytes: number;
  at: string;
  delivery?: Delivery;
}
```

## Properties

- **`direction` (required)**: `"in" | "out"`
- **`peer` (required)**: `string`
- **`document` (required)**: `TrustTaskDocument<unknown>`
- **`bytes` (required)**: `number`
- **`at` (required)**: `string`
- **`delivery` (optional)**: `Delivery | undefined`

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