# Interface: HostClient

Defined in: [packages/core/src/session/hosting.ts:771](https://github.com/leifriksheim/minca/blob/main/core/src/session/hosting.ts#L771)

A host's calls, signed as one subscription

## Methods

### attach()

```ts
attach(account, invite): Promise<{
  receipt: SignedStatus;
  status: HostStatus;
}>;
```

Defined in: [packages/core/src/session/hosting.ts:775](https://github.com/leifriksheim/minca/blob/main/core/src/session/hosting.ts#L775)

Hands the host the account's carry space

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `account` | `string` |
| `invite` | `string` |

#### Returns

`Promise`\<\{
  `receipt`: [`SignedStatus`](https://minca.dev/api/core/interfaces/SignedStatus.md);
  `status`: [`HostStatus`](https://minca.dev/api/core/interfaces/HostStatus.md);
\}\>

***

### detach()

```ts
detach(): Promise<void>;
```

Defined in: [packages/core/src/session/hosting.ts:779](https://github.com/leifriksheim/minca/blob/main/core/src/session/hosting.ts#L779)

#### Returns

`Promise`\<`void`\>

***

### pay()

```ts
pay(payment): Promise<PayAnswer>;
```

Defined in: [packages/core/src/session/hosting.ts:781](https://github.com/leifriksheim/minca/blob/main/core/src/session/hosting.ts#L781)

Starts adding to the subscription's balance

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `payment` | [`FundPayment`](https://minca.dev/api/core/interfaces/FundPayment.md) |

#### Returns

`Promise`\<[`PayAnswer`](https://minca.dev/api/core/type-aliases/PayAnswer.md)\>

***

### remind()

```ts
remind(email): Promise<void>;
```

Defined in: [packages/core/src/session/hosting.ts:783](https://github.com/leifriksheim/minca/blob/main/core/src/session/hosting.ts#L783)

Asks for reminders by email before paid time runs out; the host mails a link to confirm first

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `email` | `string` |

#### Returns

`Promise`\<`void`\>

***

### status()

```ts
status(): Promise<{
  receipt: SignedStatus;
  status: HostStatus;
}>;
```

Defined in: [packages/core/src/session/hosting.ts:773](https://github.com/leifriksheim/minca/blob/main/core/src/session/hosting.ts#L773)

How the subscription stands, checked as signed by the host; and the signed original, to keep

#### Returns

`Promise`\<\{
  `receipt`: [`SignedStatus`](https://minca.dev/api/core/interfaces/SignedStatus.md);
  `status`: [`HostStatus`](https://minca.dev/api/core/interfaces/HostStatus.md);
\}\>
