# Utils

The `Utils` class provides helper functions for Cryptalk inbox IDs.

**Class: `Utils`**

**Constructor**

* `constructor(enableLogging?: boolean)`: Initializes a new Utils instance.

**Instance Methods**

* `async generateInboxId(identifier: Identifier): Promise<string>`: Generates an inbox ID for a given identifier.
* `async getInboxIdForIdentifier(identifier: Identifier, env?: XmtpEnv): Promise<string | undefined>`: Gets the inbox ID for a specific identifier and optional environment.
* `close(): void`: Terminates the underlying worker.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cryptalks-organization-1.gitbook.io/cryptalk-sdk/utils.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
