Author

Topic: Blockchain.info API Lost money on generated addresses. How to return the money? (Read 203 times)

newbie
Activity: 4
Merit: 5
This solution will probably work. If it doesn't and electrum do not scan after 20 unused address you may need to force it to scan.

Which can be done with command
Code:
wallet.change_gap_limit(3000)

If you can't find Console Tab, enable it by select "View" -> "Show Console"

On a side, why do you need blockchain.com API? If you're merchant who accept Bitcoin payment, you could set Electrum to accept payment (http://docs.electrum.org/en/latest/merchant.html) or BTCPay (https://btcpayserver.org/) if you need proper Point of Sales


Thank you very much!!!!
HCP
legendary
Activity: 2086
Merit: 4361
It's possible that you could leverage the "Wallet" API: https://www.blockchain.com/api/blockchain_wallet_api

And simply call the "New Address" method multiple times to force it out past the gap limit. However, I'm not sure if this will result in the addresses showing up in the web UI (I assume you're logging into the web frontend to view your wallet).

I think the best solution is exporting the seed mnemonic (24 words) and then importing them into Electrum (You need to use the "BIP39 seed" option when creating the wallet) and adjusting the gap limit there as advised above.

You might also need to adjust the derivation path used as, from memory, blockchain.info/.com wallets use a slightly different derivation path.
hero member
Activity: 2926
Merit: 722
DGbet.fun - Crypto Sportsbook
For extreme security of your coins then take those suggestions above completely were making some offline thingy.Why using Blockchain API? they arent stable or do have some problems yet there are more viable options to take on.On topic, as long you do have the key you wont lose those coins.
legendary
Activity: 2758
Merit: 6830
1. Go to https://iancoleman.io/bip39/ (recommended: drownload its source code and run locally and offline for maximum safety).
2. Write your backup seed in the "BIP39 Mnemonic" box.
3. Scroll down to the list of addresses (derived addresses) and look around for your address (you should be able to use "starting from index" to start at position ~2980 and generate more rows to look for your address at gap ~3000).
4. When you find it, get its private-key.
5. Now download Electrum at ELECTRUM.ORG, run it and select "Import Bitcoin address or private key" -> paste your private-key -> "Next".

You should be able to see and spend your coins.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
As long as you have your seed, you have nothing to worry about.

I suggest that you download Electrum (from electrum.org) and insert your mnemonic phrase there (your 24 words).

Electrum will scan your addresses and you will get access to your funds.

This solution will probably work. If it doesn't and electrum do not scan after 20 unused address you may need to force it to scan.

Attention: blockchain.com wallet is very unsafe, and inserting your seed in electrum is also unsafe as well. I suggest that you create a new wallet usiong Electrum, and even consider buying a ledger nano.
newbie
Activity: 4
Merit: 5
Hello everyone, I started using this service(blockchain.info) to receive automated payments
I got access to api https://www.blockchain.com/ru/api/api_receive
Created a button on the site by which addresses were generated:
Code:
https://api.blockchain.info/v2/receive?xpub=xxx&callback=xxx&key=xxx&gap_limit=3000
I used it 
Code:
&gap_limit=3000
  because I found it in the example.

Only then I understood about it:
Quote
As defined in BIP 44, wallet software will not scan past 20 unused addresses. Given enough requests from this API that don't have a matching payment, you could generate addresses past this horizon, which would make spending funds paid to those addresses quite difficult. For this reason, this API will return an error and refuse to generate new addresses if it detects it would create a gap of over 20 unused addresses. If you encounter this error, you will either need to switch to a new xPub (within the same wallet is fine), or receive a payment to one of the previous 20 created addresses

A lot of money has come to the generated addresses, and all of them are not visible on the main wallet
I realized that the whole problem is due to the gap

In order to solve it, I need to throw off some money at previous addresses
How can I get all generated addresses via API?
Or what other ways you can get money?

I have already written in support, but they do not respond for a long time
Jump to: