btc-address-generator

0.0.4 • Public • Published

Public Address and Mnemonic generator (Bitcoin, Litecoin, Testnet)

js-standard-style

Wrapper module to generate Bitcoin addresses

Install

yarn add btc-address-generator

Usage

import generate from 'btc-address-generator'
 
const addr = generate()
 
// optional parameters
/*
{
  network: 'testnet', // testnet (default), bitcoin, litecoin
  mnemonic: '12 words mnemonic', // mnemonic (default null)
  path: "m/44'/1'/0'" // default testnet detrive path
}
*/
 
console.log(addr)
// {
//   mnemonic: 'your 12 words seed',
//   address: 'your public key'
// }

Package Sidebar

Install

npm i btc-address-generator

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

94.6 kB

Total Files

5

Last publish

Collaborators

  • silviopaganini