# Function: nodeOptionsFromGrant()

```ts
function nodeOptionsFromGrant(grant, relays?): object;
```

Defined in: [packages/core/src/session/connect.ts:669](https://github.com/leifriksheim/minca/blob/main/core/src/session/connect.ts#L669)

What a node started under a grant takes from it: the keys it carries, and
the home's relays as well as the app's, so the two always share one.

## Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `grant` | [`Grant`](https://minca.dev/api/session/interfaces/Grant.md) | `undefined` |
| `relays?` | readonly `string`[] | `[]` |

## Returns

`object`

### accountKey?

```ts
accountKey?: Uint8Array<ArrayBuffer>;
```

### accountName?

```ts
accountName?: string = grant.name;
```

### contactKey?

```ts
contactKey?: Uint8Array<ArrayBuffer>;
```

### contactsSpace?

```ts
contactsSpace?: string = grant.contactsSpace;
```

### relays

```ts
relays: string[];
```
