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

# decryptKeystoreJsonSync

```ts theme={null}
function decryptKeystoreJsonSync(json, _password): KeystoreAccount
```

Returns the account details for the JSON Keystore Wallet `json` using `password`.

It is preferred to use the [**async version**](/sdk/content/functions/decryptKeystoreJson) instead, which allows a
[\*\*ProgressCallback](/sdk/content/type-aliases/ProgressCallback) to keep the user informed as to the decryption status.

This method will block the event loop (freezing all UI) until decryption is complete, which can take quite some time,
depending on the wallet paramters and platform.

## Parameters

| Parameter   | Type                     | Description                            |
| :---------- | :----------------------- | :------------------------------------- |
| `json`      | `string`                 | The JSON data to decrypt.              |
| `_password` | `string` \| `Uint8Array` | The password to decrypt the JSON data. |

## Returns

[`KeystoreAccount`](/sdk/content/type-aliases/KeystoreAccount)

The decrypted account.

## Source

[wallet/json-keystore.ts:225](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/wallet/json-keystore.ts#L225)
