interface · Browser and Node

# GatewayStore

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

Import:

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

## Declaration

interface:

```ts
interface GatewayStore {
  has(pid: string): Promise<boolean>;
  record(pid: string, receipt: Uint8Array): Promise<void>;
  receipt(pid: string): Promise<Uint8Array | undefined>;
}
```

## Methods

### `has`

Signature:

```ts
has(pid: string): Promise<boolean>;
```

#### Parameters

- **`pid` (required)**: `string`

#### Returns

`Promise<boolean>`

### `record`

Signature:

```ts
record(pid: string, receipt: Uint8Array): Promise<void>;
```

#### Parameters

- **`pid` (required)**: `string`
- **`receipt` (required)**: `Uint8Array<ArrayBufferLike>`

#### Returns

`Promise<void>`

### `receipt`

Signature:

```ts
receipt(pid: string): Promise<Uint8Array | undefined>;
```

#### Parameters

- **`pid` (required)**: `string`

#### Returns

`Promise<Uint8Array<ArrayBufferLike> | undefined>`

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