> ## Documentation Index
> Fetch the complete documentation index at: https://cobo.com/developers/llms.txt
> Use this file to discover all available pages before exploring further.

# Create UCWPublic class

> This operation creates an instance of the UCWPublic class.

<Tip>
  Try [Cobo WaaS Skill](/v2/guides/overview/cobo-waas-skill) in your AI coding assistant (Claude Code, Cursor, etc.). Describe your needs in natural language to auto-generate production-ready SDK code and debug faster 🚀
</Tip>

<Info>The UCWPublic class allows you to retrieve the TSS Node ID and TSS key share groups without requiring a passphrase.</Info>

<CodeGroup>
  ```Swift iOS theme={null}
  public init(secretsFile: String) throws
  ```

  ```Dart Flutter theme={null}
  static Future<UCWPublic> create({required String secretsFile}) async
  ```
</CodeGroup>

<RequestExample>
  ```Swift iOS theme={null}
  let secrets = "secrets.db"
  var sdkInstance: UCWPublic?

  do {
      sdkInstance = try UCWPublic(secretsFile: secrets)
  } catch {
      print("Error: \(error)")
  }
  ```

  ```Dart Flutter theme={null}
  const String secrets = "secrets.db";
  UCWPublic? sdkInstance;

  try {
      sdkInstance = await UCWPublic.create(secretsFile: secrets);
  } catch (error) {
      print("Error: $error");
  }
  ```
</RequestExample>

## Parameters

<ParamField path="secretsFile" type="string">
  The complete file name, including its extension, for the Secrets file that needs decryption. The Secrets file was generated by the [Initialize Secrets](https://www.cobo.com/developers/v2/developer-tools/ucw-sdk/initialize-secrets/initialize-secrets) operation and provides the necessary information that allows the UCWPublic class to retrieve the TSS Node ID and TSS key share groups.
</ParamField>
