Hey everybody.
I generated receiving address using `bitmerchant`
Here is how I did it using the example from
official website:
root# python
Python 3.9.9 (main, Dec 21 2021, 10:03:34)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from bitmerchant.wallet import Wallet
>>> w=Wallet.deserialize('xpub661MyMwAqRbcFciEbeqHfsrGpXYWCL1NPNjop7W5XQR79ZHJqLCPVn9BcJDJeFzkTuDNPGZ5zg5Qhp1X4WLDUpRsFro86KTqPR9pYY6sfzm')
>>> w.create_new_address_for_user(2).to_address()
'17cKY31xCa9gzmEF8Fn82HpA1YtAn56kCp'
After it, I sent from my Electrum wallet to the `17cKY31xCa9gzmEF8Fn82HpA1YtAn56kCp` 0.0001BTC.
here is the
transaction that confirm that transfer was success.
But on my Electrum I didn't find the income on the History tab (only exchange income) and there is no address `17cKY31xCa9gzmEF8Fn82HpA1YtAn56kCp` in the Address tab.
Is there a way to receive these generated addresses automatically and notification/information directly in Electrum? I would like to generate these addresses on my website side and manage BTC on my laptop through Electrum.
The derived address you posted is the third address at m/ whereas Electrum standard wallet (P2PKH addresses) are derived at m/0.
You have to find a way to feed the derivation path to your code so that you get correct keys.
m/2 -> 17cKY31xCa9gzmEF8Fn82HpA1YtAn56kCp
m/0/2 -> 1KoyfEmjmmuhGLeMPJe2XmZx5UzNcMk2uh
P.S. The better idea is to use Electrum itself instead of a third party library.
First of all, I would like to say thank you all for your replies.
I have additional questions:
1) What is `m/0/2` and `/m/2` what is the different and how did you get it?
2) That way, could I use `bitmetchant` pythonic library and receive bitcoins generated by the library in my "second" bitcoin wallet created by `Abdussamad` suggestions?
3) How many addresses I could generate and see in the wallet? 1000 ?
Thanks in advance!