Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

@nixjs23n6/hd-wallet-adapter

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nixjs23n6/hd-wallet-adapter

Small package that can convert a seed phrase to a master private key and a public address. Can be used to generate those as well.

latest
Source
npmnpm
Version
2.2.14-alpha.0
Version published
Maintainers
1
Created
Source

@nixjs23n6/hd-wallet-adapter

A tiny object utility.

Quick Setup

Install

yarn add @nixjs23n6/hd-wallet-adapter

Usage

import { Aptos, SUI, Vault, BaseEnums } from '@nixjs23n6/hd-wallet-adapter'

// generate hd wallet by provider: APTOS/SUI...
const vault = new Vault([Aptos.AptosVault, SUI.SUIVault])
vault.connect(BaseEnums.Provider.APTOS)

vault.instance.getAccountFromMnemonic(0, 'embody axis few green amateur seek weekend city manage clap flip utility').then(console.log)
vault.instance.getAccountFromMnemonic(1, 'embody axis few green amateur seek weekend city manage clap flip utility').then(console.log)
vault.instance.getAccountFromMnemonic(2, 'embody axis few green amateur seek weekend city manage clap flip utility').then(console.log)

// generate all hd wallets
const vault = new Vault([SUIVault, AptosVault], undefined, 'embody axis few green amateur seek weekend city manage clap flip utility'')
vault.generateHDWallets().then(console.log)

Keywords

grpc

FAQs

Package last updated on 03 Jul 2023

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