mnemonic-balance
Version:
Get Bitcoin Balance from Mnemonic
49 lines (28 loc) • 933 B
Markdown
# 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:
```js
var balance = require('mnemonic-balance');
```
Get Bitcoin Balance
```js
const mnemonicKey = 'mnemonic'
balance.getBtcBalance(mnemonicKey).then(balance => console.log(balance))
```
Get Eth Balance
```js
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!