mnemonic-balance

1.1.0 • Public • Published

mnemonic-balance

[Made by CharmoulaSfax]

mnemonic-balance is used to get Bitcoin and Ether balance of a given mnemonic (Bip39)

Buy me a Coffee

114zmqyxgWvMeUhesaEKgqbpHympUjMzZy

Installation

The module is intended to be used in browsers as well as in Node.js and is therefore released in the npm registry and can be installed using:

npm i mnemonic-balance

Usage

All the examples assume that this library is initialized as follow:

var balance = require('mnemonic-balance');

Get Bitcoin Balance

const mnemonicKey = 'mnemonic'
balance.getBtcBalance(mnemonicKey).then(balance => console.log(balance))

Get Eth Balance

const mnemonicKey = 'mnemonic'
balance.getEthBalance(mnemonicKey).then(balance => console.log(balance))

That's all folks. If you have ideas on how we can further compress the ids please open an issue!

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i mnemonic-balance

      Weekly Downloads

      1

      Version

      1.1.0

      License

      ISC

      Unpacked Size

      2.31 kB

      Total Files

      3

      Last publish

      Collaborators

      • charmoulasfax