blockchain / service-my-wallet-v3

Blockchain Wallet API Service
https://blockchain.info/api/blockchain_wallet_api
GNU Affero General Public License v3.0
913 stars 520 forks source link

Disappearing xPubs and Lost Bitcoins #506

Closed mmt78 closed 2 years ago

mmt78 commented 3 years ago

I created some xPubs to receive payment with Receive Payment API to my wallet. But those xPubs was disappeared from my wallet. I got 5 payments to those xPubs. Now I can't access that money. Below is listed the details of those payments:

Transaction Detail: https://www.blockchain.com/btc/address/1PjLg9sGk6v23GpXwomDhKRRdKzVcfNMuv Transaction Detail: https://www.blockchain.com/btc/address/1P4DczoByc9T66ri3nssetPVukMkRSa7Md Transaction Detail https://www.blockchain.com/btc/tx/24989361838931cefb19bd1040a7d3909c0f526a2de86f18f4840a7150335c02 Transaction Detail https://www.blockchain.com/btc/tx/4aacb065c024afcad6f130b8f8c3008b07c62215f851898a63a93704ff8f64ad Transaction Detail https://www.blockchain.com/btc/tx/933100b8bb0c887ac293171ff576e3ceb19080ff4d5f66c6c1f5b92dfe4b9e8d

mmt78 commented 3 years ago

@blockchain

RishabSwift commented 3 years ago

You should either save the xPub or save the wallet details (wallet identifier and password) to access the xPubs.

Unfortunately, if you haven't saved either, your coins are lost.

mmt78 commented 3 years ago

Xpubs and wallet details were saved securely. I can access the wallet. So how can I access this money with these credentials?

RishabSwift commented 3 years ago

Well if you have the wallet details saved, you can just go to blockchain.com and log in using the wallet identifier and the password. You can also view your xPub after you log in (Settings -> Addresses -> Manage -> More Options -> Show xPub)

mmt78 commented 3 years ago

But those xPubs are not shown on my wallet. That's the problem. After having created them, they were disappeared suddenly.

RishabSwift commented 3 years ago

I see.

Since you mentioned that you saved the xPub, what happens if you try to generate a new receiving address with the xPub? i.e. https://api.blockchain.info/v2/receive?xpub=$xpub&callback=$callback_url&key=$key?

Does it give you an error or allow you to create a new address with the saved xPub?

mmt78 commented 3 years ago

Gap limit error.

RishabSwift commented 3 years ago

I'm sure you're already aware, but it seems your xPub is correct, but you have about 20 unused bitcoin addresses that you created which are resulting in this error.

Sometimes, an address might have been archived. Any archived addresses don't show up in the wallet nor do they add up to the total balance. If you have the receiving address, you you can try unarchiving the address: http://localhost:3000/merchant/$guid/unarchive_address?password=$main_password&second_password=$second_password&address=$address

If that doesn't work, can you try to check that you did in fact exceed your gap limit? https://api.blockchain.info/v2/receive/checkgap?xpub=[yourxpubhere]]&key=[yourkeyhere]

mmt78 commented 3 years ago

http://localhost:3000/merchant/$guid/unarchive_address?password=$main_password&second_password=$second_password&address=$address returns the error below: 'The requested URL returned error: 500 Internal Server Error'

mmt78 commented 3 years ago

1621142422022 - error: undefined TypeError: Cannot set property 'archived' of null

Hen-Dricks commented 3 years ago

Try to send a little money to one of 20 unused bitcoin addresses that you created to resolve gap limit. Another options is to use blockonomics.co wallet watcher to see if your xpub has money on it.

mmt78 commented 3 years ago
Screen Shot 2021-05-16 at 14 03 25

This xPub has the money. It doesn't show up in the wallet. I can't check the balance with Blockchain Api, either. How can I can access that money?

mmt78 commented 3 years ago

Checking its balance gives the error below: 1621162922643 - error: undefined TypeError: Cannot read property 'balance' of null I think it is because that it isn't associated with the wallet I am using with the Api.

mmt78 commented 3 years ago
Screen Shot 2021-05-16 at 14 34 21

Here is the list of addresses created via this xPub. They are totally of 22. How many and which one should I send money to? Is this the ultimate solution? @Hen-Dricks @RishabSwift

mmt78 commented 3 years ago

The response from support: If you have not already, please check these resources to see if your issue has been addressed. If you are unable to find an answer to your question then you can submit any issue on the Github page. This will notify the core maintainers, who will be best equipped to help you with your issue.

Hey, where are you, the core maintainers? Where are you hiding?

mmt78 commented 3 years ago

Same response, no solution. How bad are your support and system!!! I am fed up with waiting for you.

javijabor commented 3 years ago

I have a similar issue since last year too. Created addresses with the Api, saved them and assigned to users in my application. Users sent to the address only for me not to see the addresses under the imported address section on the blockchain website.

No reasonable response from support 😪

mmt78 commented 3 years ago

So still waiting? Haven't you been able to access your money so far?

javijabor commented 3 years ago

So still waiting? Haven't you been able to access your money so far?

No, it's over 6months now.

javijabor commented 3 years ago

Do let me know if you ever get a solution. Thanks

mmt78 commented 3 years ago

Of course. Have you ever tried to withdraw money with API as below? http://localhost:3001/merchant/$api_key/payment?password=$password&to=$to_address&from=$from_address&amount=602967&fee=10000

javijabor commented 3 years ago

Of course. Have you ever tried to withdraw money with API as below? http://localhost:3001/merchant/$api_key/payment?password=$password&to=$to_address&from=$from_address&amount=602967&fee=10000

Yes I have, I do not have access to the address. And it's the same wallet that created the address via the API. I have also sent a tiny amount to the last address before it that hoping it's a gap limit issue. Still the address did not appear under my wallet.

I can send from my other generated addresses that are visible in my wallet using the same API successfully

Let me know what else you have tried

mmt78 commented 3 years ago

Do you have xPub saved? If you have, you can reach your addresses using the link below: https://www.blockonomics.co/#/search?q=your xpub

javijabor commented 3 years ago

I'm not using the HD wallet. I used the imported address feature on the wallet. So using the xpub wont work for me as all the generated addresses are not hierarchical deterministic.

dariopv1234 commented 3 years ago

Hello Goodnight! I can help you I have a lot of experience in this Just send me the xpub of the wallet associated with your balance and I will send you the steps to follow so you can continue

[image: Ícono de validado por la comunidad]

El mié., 2 de jun. de 2021, 5:17 a. m., javijabor @.***> escribió:

I'm not using the HD wallet. I used the imported address feature on the wallet. So using the xpub wont work for me as all the generated addresses are not hierarchical deterministic.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/blockchain/service-my-wallet-v3/issues/506#issuecomment-852904892, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIJMFSZBTJ43U5TH2BQ52B3TQYAKHANCNFSM44OCGUXQ .

dariopv1234 commented 3 years ago

Hello Goodnight! I can help you I have a lot of experience in this Just send me the xpub of the wallet associated with your balance and I will send you the steps to follow so you can continue

[image: Ícono de validado por la comunidad]

El mié., 2 de jun. de 2021, 5:11 a. m., mmt78 @.***> escribió:

Do you have xPub saved? If you have, you can reach your addresses using the link below: https://www.blockonomics.co/#/search?q=your xpub

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/blockchain/service-my-wallet-v3/issues/506#issuecomment-852901169, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIJMFS5CQYQB7LF3F73MTO3TQX7WFANCNFSM44OCGUXQ .

mmt78 commented 3 years ago

Hello Goodnight! I can help you I have a lot of experience in this Just send me the xpub of the wallet associated with your balance and I will send you the steps to follow so you can continue [image: Ícono de validado por la comunidad] El mié., 2 de jun. de 2021, 5:11 a. m., mmt78 @.***> escribió: Do you have xPub saved? If you have, you can reach your addresses using the link below: https://www.blockonomics.co/#/search?q=your xpub — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#506 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIJMFS5CQYQB7LF3F73MTO3TQX7WFANCNFSM44OCGUXQ .

Can't you send the steps without xPub? Why is it needed?

mmt78 commented 3 years ago

"It sounds like you are having an issue with the usage of our open source software and/or API. All information related to open source projects can be found at our Github page: https://github.com/blockchain and our developer page: https://www.blockchain.com/api .

If you have not already, please check these resources to see if your issue has been addressed. If you are unable to find an answer to your question then you can submit any issue on the Github page. This will notify the core maintainers, who will be best equipped to help you with your issue."

The support says the same things. The issue has 27 messages but the core maintainers haven't seen this. Are they blind? Where are you the core maintainers? What do you do? If you don't solve the problems of the API, what is the purpose of being a core maintainer? How do you deserve the money you earn?

talissonbueno commented 3 years ago

I have a similar issue since last year too. Created addresses with the Api, saved them and assigned to users in my application. Users sent to the address only for me not to see the addresses under the imported address section on the blockchain website.

No reasonable response from support 😪

Same problem... I created addresses for my users and after receiving a transfer to any of the addresses, the balance is not linked to the main wallet and the address is no longer displayed in the wallet. However, the address is still linked to the wallet, it just isn't displayed and I don't have access to the balance. If I get the response from the request https://blockchain.info/multiaddr I can see the address, balance and number of transactions. I just can't cash out this balance

smsbarrage commented 3 years ago

you have to use android to access those wallets and its also because those wallets are made using the deprecated API.

javijabor commented 3 years ago

you have to use android to access those wallets and its also because those wallets are made using the deprecated API.

I have used android and I still cant find the addresses. Yes its possibly because it was created with the depreciated API however there should be some kind of fix for this.

smsbarrage commented 3 years ago

on the android app? you can definitely find the addresses. I can do so on mine. i cant do so only on the website and on IOS.

And its definitely the deprecated api. I was only able to get access and view wallets when i used the HD accounts API. Just update your solution, its simple enough

mmt78 commented 3 years ago

on the android app? you can definitely find the addresses. I can do so on mine. i cant do so only on the website and on IOS.

And its definitely the deprecated api. I was only able to get access and view wallets when i used the HD accounts API. Just update your solution, its simple enough

Could you withdraw or transfer the money? I can already view the wallets using the link below: https://www.blockonomics.co/#/search?q=myXPub

smsbarrage commented 3 years ago

You can transfer between wallets on the android app to your main one definitely. Ive done it plenty times.

i use labels on my wallets so i can easily find it.

mmt78 commented 3 years ago

Should I use the xPub to access the wallets on Androrid App? How should it be done? Please kindly explain it briefly.

smsbarrage commented 3 years ago

Download the blockchain app on android then go to wallets. If you cant find it there then click the drop down on the left and click addresses. The address associated with that xpub will be there.

mmt78 commented 3 years ago

I couldn't reach them. The addresses were created by API with the xPub below. These wallets are not shown on the main wallet: xpub6CwmZUVJ3ga6........iXm Using this link https://www.blockonomics.co/#/search?q=myXPub, I can view the wallets created with this xPub and their balances but I can't transfer the money on those wallets to another wallet. I need a way to access the wallets and transfer their balances to another wallet.

mmt78 commented 3 years ago

The wallet list:

Screen Shot 2021-06-11 at 21 21 43
mmt78 commented 3 years ago

Any advice?

dariopv1234 commented 3 years ago

Escribeme al whatsaap +573182185971 yo te puedo ayudar personalmente

El mié., 16 de jun. de 2021, 1:34 a. m., mmt78 @.***> escribió:

Any advice?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/blockchain/service-my-wallet-v3/issues/506#issuecomment-862088183, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIJMFS7NZEEW4TGJRXSAGJLTTBAYHANCNFSM44OCGUXQ .

tinodj commented 3 years ago

You need to find indexes of those addresses and derivation path used. If you go into the wallet on blockchain.info and click generate new address, which address are you getting? Is it somewhere in this list ?

Blockchain info on non-HD is using this derivation path: m/44'/0'/0'/index

Try to derive some addresses, beginning with index 0 and you will see where you are getting. The blockchain wallet when logged in only checks the first 20 addresses (index 0-19), and once 1 of these receive some money, it will show them and move on the next 20 from that address on (so if address with index 7 got some money, blockchain.info will be checking addresses from 0 to 27 (7+20).

For deriving you can use the following or whatever you find more convenient:

https://stackoverflow.com/questions/66391617/how-can-i-derive-btc-m44-addresses-from-xpub

talissonbueno commented 3 years ago

I had the support feedback regarding my situation, I will share if I can help anyone.

The gap limit is part of BIP44, a cryptocurrency standard. In simple terms, it dictates that a wallet will only scan its next 20 unused addresses when looking for funds. Any BTC on addresses beyond a gap of twenty unused addresses will not be recognized. A gap of more than 20 unused addresses can occur by manually generating new addresses and not using them, generating new addresses for invoices which end up going unpaid, placing BTC purchase orders which are cancelled or rejected, or any other practice (or combination of practices) that results in more than 20 unused addresses between used addresses. When the wallet gets to 20 scanned unused addresses in a row, it stops scanning. If there is BTC at an address beyond the 20 address gap, the wallet will not recognize it and, therefore, will not include it in the wallet's balance. In your case, there is a gap of more than 20 addresses between your last used address and the address these transactions were sent to. To solve this, you can send a small amount of BTC (dust) to specific unused addresses from your wallet. These addresses are spaced between your last used address and the addresses with these funds, such that when you send a small amount of BTC to these specific addresses (any amount is fine), it will reduce the gap between your last used address and the address with your funds to under twenty addresses, which will then allow your wallet to recognize the BTC. It would then be included in your balance and accessible to you in your wallet.

mmt78 commented 3 years ago

@talissonbueno Did you try the solution? Did it work?

javijabor commented 3 years ago

Wow, how can Blockchain be this mean. Not even an official reaponse from them regarding an issue caused by their solution. It's best people stay away from their apps and services... too bad.

talissonbueno commented 3 years ago

@talissonbueno Did you try the solution? Did it work?

Yes, it worked.

mmt78 commented 3 years ago
Screen Shot 2021-08-19 at 14 39 22

These are my addresses. I sent small amounts to the last three ones but nothing changes. What should I do?

talissonbueno commented 3 years ago

I had to forward my xpub for support to analyze, they sent me the specific addresses to which I should send so I could retrieve the balance at other addresses. (I only shared my xpub because official blockchain support asked to do a detailed analysis. They should not be shared with a third party.) The amount of addresses I had to send balance to ranged from 1 to 20 addresses. This will depend on the amount of addresses you have generated. In my case I had 3k+ addresses, for this reason I had to spend a little to recover

What I was able to analyze is that for each address with a balance, I had to send a small amount to addresses before it.

Contact support and explain this situation right from the start. Maybe they will already be able to quickly filter and analyze your case.

mmt78 commented 3 years ago

Instead of solving my problem, you sent me messages like below: Thank you for being patient with us, unfortunately I'll have to reiterate what my other colleagues have mentioned. Our support team doesn't deal with the API or any technical side of thing. We mostly provide support for our custodial service. Since you've reached out to our maintainers on github, please wait for them to get back to you.

Hey maintainers where are you? Stop making fun of me and solve my problem ASAP.

blockonomics commented 3 years ago

Hi @mmt78 . Discovered this thread by search about blockonomics mentions. Blockchain wallet has history of bad support and not following standards

In your case since blockonomics is showing the funds, it is easily recoverable and not a gap limit problem. It the funds are stuck due to gap issue, blockonomics also will not show the funds. To recover your funds, please try any one of the following and it will help:

mmt78 commented 3 years ago

No success :(((