We're creating a platform to buy/sell Bitcoin.
We need to generate a new child address for each customer allowing them to receive Bitcoin. But all incoming Bitcoins should be stored in our main wallet actually.
These are what we have done up to now:
- Creating a new wallet using Blockchain.com API using
/api/v2/createand receiving an address as 1551SHYQu8CPuRxJagViGkppNZrv2gkfFi
- Converting the wallet to HD using
- Receiving the first sub-wallet (xPriv & xPub) if I am not wrong with a new public address 1CLpEvgs9o2mgKN5aS1mPeXGcqXs7fT75F
- Send BTC to the address generated in step 3.
We expected that the transaction happened on on the last address as a derived child from the first address should be stored and visible in the main wallet, but by using explorers, we found out that there is not any event on the main address, whereas the transaction on the second one is confirmed.
We may did something wrong, or we might have a misunderstanding about the correct behavior in this purpose.
Your assistant is much appreciated.