# @metamask/keyring-sdk

> MetaMask Keyring SDK

Latest version **3.1.0** (published 2026-08-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @metamask/keyring-sdk
pnpm add @metamask/keyring-sdk
yarn add @metamask/keyring-sdk
bun add @metamask/keyring-sdk
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2026-08-03 |
| First published | 2026-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 11 |
| Unpacked size | 353.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| Maintainers | kumavis, frederikbolding, metamaskbot, gudahtt, mrten, mcmire, naugtur |
| Keywords | keyring, metamask |

## Links

- npm: https://www.npmjs.com/package/@metamask/keyring-sdk
- Repository: https://github.com/MetaMask/accounts
- Homepage: https://github.com/MetaMask/accounts/tree/main/packages/keyring-sdk#readme
- Issues: https://github.com/MetaMask/accounts/issues
- npm.io page: https://npm.io/package/@metamask/keyring-sdk

## Dependencies (11)

- [uuid](https://npm.io/package/uuid.md) ^9.0.1
- [async-mutex](https://npm.io/package/async-mutex.md) ^0.5.0
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^1.8.0
- [@ethereumjs/tx](https://npm.io/package/@ethereumjs/tx.md) ^5.4.0
- [@metamask/utils](https://npm.io/package/@metamask/utils.md) ^11.11.0
- [@metamask/keyring-api](https://npm.io/package/@metamask/keyring-api.md) ^24.0.0
- [@metamask/scure-bip39](https://npm.io/package/@metamask/scure-bip39.md) ^2.1.1
- [@metamask/superstruct](https://npm.io/package/@metamask/superstruct.md) ^3.4.1
- [ethereum-cryptography](https://npm.io/package/ethereum-cryptography.md) ^2.2.1
- [@metamask/eth-sig-util](https://npm.io/package/@metamask/eth-sig-util.md) ^8.2.0
- [@metamask/keyring-utils](https://npm.io/package/@metamask/keyring-utils.md) ^5.0.0

## Recent versions

- 3.1.0 (latest) — 2026-08-03
- 3.0.0 — 2026-07-29
- 2.3.0 — 2026-07-22
- 2.2.0 — 2026-05-29
- 2.1.1 — 2026-05-05
- 2.1.0 — 2026-05-05
- 2.0.2 — 2026-04-30
- 2.0.1 — 2026-04-16
- 2.0.0 — 2026-04-14
- 1.2.0 — 2026-04-10
- 1.1.0 — 2026-04-01
- 1.0.0 — 2026-03-27

## README

# MetaMask Keyring SDK

This package contains the heavy runtime dependencies related to the `@metamask/keyring-api` package
to keep it as a lightweight API surface (types, structs, interfaces).

## Installation

```bash
yarn add @metamask/keyring-sdk
```

or

```bash
npm install @metamask/keyring-sdk
```

## Usage

```ts
import { EthKeyringWrapper, EthKeyringMethod } from '@metamask/keyring-sdk';
import { EthMethod, KeyringType } from '@metamask/keyring-api';

export class MyKeyringV2 extends EthKeyringWrapper<MyLegacyKeyring> {
  constructor(inner: MyLegacyKeyring) {
    super({
      type: KeyringType.Hd,
      inner,
      capabilities: { scopes: ['eip155:1'] },
    });
  }

  async getAccounts() {
    /* ... */
  }
  async createAccounts(options) {
    /* ... */
  }
  async deleteAccount(accountId) {
    /* ... */
  }
}
```

## Contributing

This package is part of a monorepo. Instructions for contributing can be found in the [monorepo README](https://github.com/MetaMask/accounts#readme).

---
_Source: https://npm.io/package/@metamask/keyring-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
