JSPM

@alexwg2015/bip44-wallet

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q26717F
  • License ISC

Create and import BIP44 Wallet.

Package Exports

  • @alexwg2015/bip44-wallet
  • @alexwg2015/bip44-wallet/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@alexwg2015/bip44-wallet) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Mnemonic


Generate Mnemonic

const mnemonic = generateMnemonic()

Generate Wallet By Mnemonic

const wallet_EVM = genBIP44WalletFromMnemonic(BLOCKCHAIN.EVM, mnemonic)
const wallet_TRON = genBIP44WalletFromMnemonic(BLOCKCHAIN.TRON, mnemonic)

Get Wallet By Mnemonic

const accountId = 82707355
const indexId = 91770953
const wallet_EVM = getBIP44WalletFromMnemonic(BLOCKCHAIN.EVM, mnemonic, accountId, indexId)
const wallet_TRON = getBIP44WalletFromMnemonic(BLOCKCHAIN.TRON, mnemonic, accountId, indexId)

Entropy


Generate Entropy

const entropy = generateEntropy()

Generate Wallet By Entropy

const wallet_EVM = genBIP44WalletFromEntropy(BLOCKCHAIN.EVM, entropy)
const wallet_TRON = genBIP44WalletFromEntropy(BLOCKCHAIN.TRON, entropy)

Get Wallet By Entropy

const accountId = 82707355
const indexId = 91770953
const wallet_EVM_entropy = getBIP44WalletFromEntropy(BLOCKCHAIN.EVM, entropy, accountId, indexId)
const wallet_TRON_entropy = getBIP44WalletFromEntropy(BLOCKCHAIN.TRON, entropy, accountId, indexId)

Converter


Entropy To Mnemonic

const mnemonic = entropyToMnemonic(entropy)

Mnemonic To Entropy

const entropy = mnemonicToEntropy(mnemonic)