# Interface: SpaceHostClient

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

A host's calls about a space's own subscription: open to anyone, as paying for a space is

## Methods

### hand()

```ts
hand(spaceId, pass): Promise<{
  receipt: SignedStatus;
  status: HostStatus;
}>;
```

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

Hands the host the space's pass, to carry it with; 402 when nobody has paid

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `spaceId` | `string` |
| `pass` | `unknown` |

#### Returns

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

***

### pay()

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

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

Starts adding to the space's fund: anyone may

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `spaceId` | `string` |
| `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(spaceId, email): Promise<void>;
```

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

Asks for reminders by email before the space's fund runs out; the host mails a link to confirm first

#### Parameters

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

#### Returns

`Promise`\<`void`\>

***

### startBot()

```ts
startBot(
   spaceId, 
   name, 
   invite
): Promise<{
  bot: string;
  receipt: SignedStatus;
  status: HostStatus;
}>;
```

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

Asks the host to run a bot in a space it carries: it makes the bot's
account and joins with the invite, whose role is what the bot may do. It
runs from the space's fund. Answers the bot's DID and the space's status.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `spaceId` | `string` |
| `name` | `string` |
| `invite` | `string` |

#### Returns

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

***

### status()

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

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

How the space's subscription stands, checked as signed by the host

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `spaceId` | `string` |

#### Returns

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