New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@metamask/keyring-sdk

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/keyring-sdk

MetaMask Keyring SDK

Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
66K
-46.52%
Maintainers
4
Weekly downloads
 
Created
Source

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

yarn add @metamask/keyring-sdk

or

npm install @metamask/keyring-sdk

Usage

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.

Keywords

metamask

FAQs

Package last updated on 16 Apr 2026

Related posts