function · Browser and Node

# sealRoute

A VIA's route block for the gateway: both VIDs, sealed to it. 114 bytes for two did:keys.

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

Import:

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

## Declaration

Signature:

```ts
sealRoute(sender: string, receiver: string, gatewayX: Uint8Array, enc: Uint8Array): Promise<Uint8Array<ArrayBufferLike>>;
```

### Parameters

- **`sender` (required)**: `string`
- **`receiver` (required)**: `string`
- **`gatewayX` (required)**: `Uint8Array<ArrayBufferLike>`
- **`enc` (required)**: `Uint8Array<ArrayBufferLike>`

### Returns

`Promise<Uint8Array<ArrayBufferLike>>`

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