interface · Browser and Node

# ViaArrival

What a gateway gets for each VIA packet that names it.

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

Import:

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

## Declaration

interface:

```ts
interface ViaArrival {
  packet: Uint8Array;
  pid: Uint8Array;
  via: Extract<Packet, { kind: "via" }>;
  hops: number;
  link: string;
}
```

## Properties

- **`packet` (required)**: `Uint8Array<ArrayBufferLike>`
- **`pid` (required)**: `Uint8Array<ArrayBufferLike>`
- **`via` (required)**: `{ kind: "via"; gatewayHint: Uint8Array; routeBlock: Uint8Array; enc: Uint8Array; ct: Uint8Array; signature: Uint8Array; }`
- **`hops` (required)**: `number`
- **`link` (required)**: `string`

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