> ## 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.

# Import recovery key share

> This operation imports and decrypts the JSON data of recovery key shares, created by the [Export recovery key shares](https://www.cobo.com/developers/v2/developer-tools/ucw-sdk/ucw-class/export-recovery-key-shares) or [Export Secrets](https://www.cobo.com/developers/v2/developer-tools/ucw-sdk/ucw-class/export-secrets) operations. To meet the threshold requirement of [the Threshold Signature Scheme (TSS) specified in your User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/project-management#overview), you must call this operation the required number of times to import enough recovery key shares.

<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>

<CodeGroup>
  ```Swift iOS theme={null}
  public func importRecoveryKeyShare(jsonRecoverySecrets: String, exportPassphrase: String) throws
  ```

  ```Dart Flutter theme={null}
  Future<void> importRecoveryKeyShare(String jsonRecoverySecrets, String exportPassphrase) async
  ```
</CodeGroup>

<RequestExample>
  ```Swift iOS theme={null}
  let jsonRecoverySecrets = "{}" // exported jsonRecoverySecrets
  let exportPassphrase = "wZdcycVuexvmgt7aMkaeA_2_ioCKrw!B"

  do {
      try recoverKey?.importRecoveryKeyShare(jsonRecoverySecrets: jsonRecoverySecrets, exportPassphrase: exportPassphrase)
  } catch {
      print("Error: \(error)")
  }
  ```

  ```Dart Flutter theme={null}
  const String jsonRecoverySecrets = "{}"; // exported jsonRecoverySecrets
  const String exportPassphrase = "wZdcycVuexvmgt7aMkaeA_2_ioCKrw!B";

  try {
      await recoverKey?.importRecoveryKeyShare(
          jsonRecoverySecrets: jsonRecoverySecrets,
          exportPassphrase: exportPassphrase
      );
  } catch (error) {
       print("Error: $error");
  }
  ```
</RequestExample>

## Parameters

<ParamField path="jsonRecoverySecrets" type="string">
  The passphrase-encrypted JSON data containing recovery key shares, created by the [Export recovery key shares](https://www.cobo.com/developers/v2/developer-tools/ucw-sdk/ucw-class/export-recovery-key-shares) or [Export Secrets](https://www.cobo.com/developers/v2/developer-tools/ucw-sdk/ucw-class/export-secrets) operations.
</ParamField>

<ParamField path="exportPassphrase" type="string">
  The passphrase used to decrypt the JSON data of recovery key shares.
</ParamField>
