# Function: encodeInbox()

```ts
function encodeInbox(
   signKey, 
   body, 
   provider
): Promise<string>;
```

Defined in: [packages/core/src/inbox/inbox.ts:144](https://github.com/leifriksheim/minca/blob/main/core/src/inbox/inbox.ts#L144)

Signs an inbox with its own signing key, which signs for itself: no note,
so nothing in it names the account.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `signKey` | `Uint8Array` | The signing key's private scalar |
| `body` | [`InboxBody`](https://minca.dev/api/inbox/interfaces/InboxBody.md) | - |
| `provider` | [`CryptoProvider`](https://minca.dev/api/core/interfaces/CryptoProvider.md) | - |

## Returns

`Promise`\<`string`\>

The inbox as its code: what goes in a link or a QR code
