# Function: checkSpace()

```ts
function checkSpace(space): Promise<string | null>;
```

Defined in: [packages/core/src/space/constitution.ts:209](https://github.com/leifriksheim/minca/blob/main/core/src/space/constitution.ts#L209)

Why a space someone handed over can't be trusted, or null when it can: its
constitution must be one this peer judges, and its id the hash of it.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `space` | `unknown` |

## Returns

`Promise`\<`string` \| `null`\>
