interface · Browser

# Unlocked

An account whose key is in memory: what a tab needs to act for it.

`@toip-tools/web-vault` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/web-vault/src/vault.ts#L38)

Import:

```ts
import { type Unlocked } from "@toip-tools/web-vault";
```

## Declaration

interface:

```ts
interface Unlocked {
  account: Account;
  seed: Uint8Array;
  /** Seals and opens this account's blobs. Null for an account that isn't protected yet. */
  key: CryptoKey | null;
}
```

## Properties

**`account` (required)**

`Account`

**`seed` (required)**

`Uint8Array<ArrayBufferLike>`

**`key` (required)**

`CryptoKey | null`

Seals and opens this account's blobs. Null for an account that isn't protected yet.

[Usage guide](https://toip.tools/toolkit/web-vault/#usage) · [Error handling](https://toip.tools/toolkit/web-vault/#errors) · [All exports](https://toip.tools/toolkit/web-vault/api/)

---

This is the Markdown version of https://toip.tools/toolkit/web-vault/api/Unlocked/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
