You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
Hello, I'm trying to create a module which generate addresses from my xpub.
Currently I have this code
var bitcore = require('bitcore-lib');
var Address = bitcore.Address;
var PublicKey = bitcore.PublicKey;
var Networks = bitcore.Networks;
var xpub = 'xpub6C5jKCKeVmMNaceEoVRsTy7e8ZBCwmJZBv5gJYEV1h3QubtBB4RUecEdfEWfvCM5aD15DiaaAjJq5zgBZzFX2vYzUZLfSt4NEfVHahZKD2v';
var hdPublickey = new bitcore.HDPublicKey(xpub);
var orderPublickey = hdPublickey.deriveChild("m/49/0/4/1");
var pubkey = new PublicKey(orderPublickey.publicKey);
var address = Address.fromPublicKey(pubkey, Networks.mainnet);
var address2 = Address.fromPublicKey(pubkey);
console.log(address.toString());
This is working for me and generate addresses, but when I send btc to newly created addresses I can't see transaction when checking my xpub on blockchain.info.
Looks like generated addresses not bound to my xpub.
Can someone help me with it?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, I'm trying to create a module which generate addresses from my xpub.
Currently I have this code
This is working for me and generate addresses, but when I send btc to newly created addresses I can't see transaction when checking my xpub on blockchain.info.
Looks like generated addresses not bound to my xpub.
Can someone help me with it?
The text was updated successfully, but these errors were encountered: