This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Import dependencies | |
const bip32 = require('bip32') | |
const bip39 = require('bip39') | |
const bitcoin = require('bitcoinjs-lib') | |
//Define the network | |
const network = bitcoin.networks.bitcoin //use networks.testnet for testnet | |
// Derivation path | |
const path = `m/49'/0'/0'/0` // Use m/49'/1'/0'/0 for testnet |