🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@metamask/keyring-sdk

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/keyring-sdk

MetaMask Keyring SDK

latest
Source
npmnpm
Version
2.2.0
Version published
Maintainers
3
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

keyring

FAQs

Package last updated on 29 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts