How to Create Bitcoin Cash HD Walllet in Javascript


I am trying to create a Bitcoin Cash HD wallet through mnemonic phrase, but I don't know any npm package that is compatible with HD wallets and Bitcoin Cash. Could someone help me build the BCH HD Wallet?

rahul saini

Posted 2018-07-11T13:48:33.013

Reputation: 31

bitcore-lib-cash? – MCCCS – 2018-07-11T14:22:47.133

bitcore-lib-cash does not support HD wallet – rahul saini – 2018-07-12T07:52:24.167

is there a way to create HD Wallet with all address starting with q (new address format ) – rahul saini – 2018-07-12T07:54:04.453



Use Bitbox


Visual Mnemonic & HD Path

Generate any number of BIP 44 accounts. Toggle their addresses between cashaddr/base58 as well as mainnet/testnet. Easily view the private key in wallet import format (WIF) and extended public (xpub) and private (xpriv) keys. Vary the amount of entropy from 16 bytes up to 32 bytes creating shorter/longer mnemonics. Set a custom mnemonic and/or HD Derivation Path. Optionally use a password.


Posted 2018-07-11T13:48:33.013

Reputation: 8 689

i did the same below is my code...
var hdPrivateKey = new bitcore.HDPrivateKey('testnet','xprv8ZgxMBicQKsPdsKyyKSwTJtBXWB1rbDwEAxW3xV6xwNeCHs3n9kvFsCZim8KKMgc3wVGRJR4kJ82t9mRRr8TZ3Ybpxqp8brRA7aMVDJgCt2'); console.log("hdPrivateKey", hdPrivateKey); var orderPrivateKey = hdPrivateKey.deriveChild("m/44'/145'/0'/0").privateKey; every time i am getting different orderPrivateKey from the same derivation path. i dont know why it is happning it should be same every time as i am using same derivation path
– rahul saini – 2018-07-13T08:43:56.947