@nixjs23n6/hd-wallet-adapter
TypeScript icon, indicating that this package has built-in type declarations

2.2.14-alpha.0 • Public • Published

@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)

Package Sidebar

Install

npm i @nixjs23n6/hd-wallet-adapter

Weekly Downloads

9

Version

2.2.14-alpha.0

License

MIT

Unpacked Size

129 kB

Total Files

79

Last publish

Collaborators

  • nixjs23n6