Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Address or Transaction which was created using xpub of same wallet to get updated balance and use funds. #5779

Open
Adonis2115 opened this issue Nov 19, 2019 · 6 comments

Comments

@Adonis2115
Copy link

I have exported xpub and used it in one of my website to give a different address to all users and when funds are received on any address, it is not visible on electrum wallet. I can understand this as electrum can not watch infinite addresses. But it would be a great feature to import the address or transaction which was received (also in bulk) so it can be updated in the wallet and I can use funds from electrum itself.

PS: If it's possible now please let me know.

@SomberNight
Copy link
Member

Is this a gap limit issue?
Or why do you think the transactions are not visible in Electrum?

@Adonis2115
Copy link
Author

Yeah might be gap limit issue, the address which got generated is different than the 20 address provided by Electrum, while when address is generated using xpriv is the same as the 20 address in the order.

@ecdsa
Copy link
Member

ecdsa commented Nov 20, 2019

the address which got generated is different than the 20 address provided by Electrum, while when address is generated using xpriv is the same as the 20 address in the order.

that does not sound like a gap limit issue...

@SomberNight
Copy link
Member

@Adonis2115 I am not sure I understand.

  • where did you get the xprv?
  • do the addresses shown by electrum, and the addresses generated on your website, have the same script type? what is the first character of these addresses respectively?
  • what plugin/etc are you using to generate addresses on the website?

the address which got generated is different than the 20 address provided by Electrum, while when address is generated using xpriv is the same as the 20 address in the order

Could you please clarify that? Did you mean the following:

  • Electrum with xprv (or seed?) generates addresses list A
  • website plugin with xpub generates addresses list B
  • website plugin with xprv generates addresses list B

@Adonis2115
Copy link
Author

Adonis2115 commented Nov 21, 2019

where did you get the xprv?

I did not get it, I did create a wallet using mnemonic in electrum.

do the addresses shown by electrum, and the addresses generated on your website, have the same script type? what is the first character of these addresses respectively?

I believe the script is same both address shown in electrum and generated using xpub programmatically start with letter 'm'

what plugin/etc are you using to generate addresses on the website?

bitcore lib I am using to generate addresses using xpub.

Electrum with xprv (or seed?) generates addresses list A

Electrum with mnemonic

website plugin with xpub generates addresses list B

bitcore lib

website plugin with xprv generates addresses list B

not generating using xprv

@ecdsa
Copy link
Member

ecdsa commented Nov 21, 2019

no idea how bitcore lib generates addresses from xpub.
that is not an Electrum issue, though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants