Bitcoin Forum
July 20, 2019, 11:09:49 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain.info API Lost money on generated addresses. How to return the money?  (Read 133 times)
skvoshiz
Newbie
*
Offline Offline

Activity: 4
Merit: 5


View Profile
July 11, 2019, 10:28:11 AM
Merited by DarkStar_ (4), ETFbitcoin (1)
 #1

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
1563664189
Hero Member
*
Offline Offline

Posts: 1563664189

View Profile Personal Message (Offline)

Ignore
1563664189
Reply with quote  #2

1563664189
Report to moderator
1563664189
Hero Member
*
Offline Offline

Posts: 1563664189

View Profile Personal Message (Offline)

Ignore
1563664189
Reply with quote  #2

1563664189
Report to moderator
1563664189
Hero Member
*
Offline Offline

Posts: 1563664189

View Profile Personal Message (Offline)

Ignore
1563664189
Reply with quote  #2

1563664189
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1563664189
Hero Member
*
Offline Offline

Posts: 1563664189

View Profile Personal Message (Offline)

Ignore
1563664189
Reply with quote  #2

1563664189
Report to moderator
bitmover
Hero Member
*****
Online Online

Activity: 546
Merit: 873



View Profile
July 11, 2019, 05:05:45 PM
 #2

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.

TryNinja
Legendary
*
Online Online

Activity: 1078
Merit: 1369


CS <3


View Profile
July 11, 2019, 05:51:34 PM
 #3

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.

carlfebz2
Hero Member
*****
Offline Offline

Activity: 1190
Merit: 523


★Bitvest.io★ Play Plinko or Invest!


View Profile
July 11, 2019, 07:34:42 PM
 #4

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.



.
.BIG WINNER!.
[15.00000000 BTC]


▄████████████████████▄
██████████████████████
██████████▀▀██████████
█████████░░░░█████████
██████████▄▄██████████
███████▀▀████▀▀███████
██████░░░░██░░░░██████
███████▄▄████▄▄███████
████▀▀████▀▀████▀▀████
███░░░░██░░░░██░░░░███
████▄▄████▄▄████▄▄████
██████████████████████

▀████████████████████▀
▄████████████████████▄
██████████████████████
█████▀▀█▀▀▀▀▀▀██▀▀████
█████░░░░░░░░░░░░░████
█████░░░░░░░░░░░░▄████
█████░░▄███▄░░░░██████
█████▄▄███▀░░░░▄██████
█████████░░░░░░███████
████████░░░░░░░███████
███████░░░░░░░░███████
███████▄▄▄▄▄▄▄▄███████

██████████████████████
▀████████████████████▀
▄████████████████████▄
███████████████▀▀▀▀▀▀▀
███████████▀▀▄▄█░░░░░█
█████████▀░░█████░░░░█
███████▀░░░░░████▀░░░▀
██████░░░░░░░░▀▄▄█████
█████░▄░░░░░▄██████▀▀█
████░████▄░███████░░░░
███░█████░█████████░░█
███░░░▀█░██████████░░█
███░░░░░░████▀▀██▀░░░░
███░░░░░░███░░░░░░░░░░

██░▄▄▄▄░████▄▄██▄░░░░
████████████▀▀▀▀▀▀▀██
█████████████░█▀▀▀█░███
██████████▀▀░█▀░░░▀█░▀▀
███████▀░▄▄█░█░░░░░█░█▄
████▀░▄▄████░▀█░░░█▀░██
███░▄████▀▀░▄░▀█░█▀░▄░▀
█▀░███▀▀▀░░███░▀█▀░███░
▀░███▀░░░░░████▄░▄████░
░███▀░░░░░░░█████████░░
░███░░░░░░░░░███████░░░
███▀░██░░░░░░▀░▄▄▄░▀░░░
███░██████▄▄░▄█████▄░▄▄

██░████████░███████░█
▄████████████████████▄
████████▀▀░░░▀▀███████
███▀▀░░░░░▄▄▄░░░░▀▀▀██
██░▀▀▄▄░░░▀▀▀░░░▄▄▀▀██
██░▄▄░░▀▀▄▄░▄▄▀▀░░░░██
██░▀▀░░░░░░█░░░░░██░██
██░░░▄▄░░░░█░██░░░░░██
██░░░▀▀░░░░█░░░░░░░░██
██░░░░░▄▄░░█░░░░░██░██
██▄░░░░▀▀░░█░██░░░░░██
█████▄▄░░░░█░░░░▄▄████
█████████▄▄█▄▄████████

▀████████████████████▀




Rainbot
Daily Quests
Faucet
ETFbitcoin
Legendary
*
Offline Offline

Activity: 1708
Merit: 1867

Use SegWit and enjoy lower fees.


View Profile WWW
July 12, 2019, 06:50:22 PM
 #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

HCP
Legendary
*
Offline Offline

Activity: 1036
Merit: 1697

<insert witty quote here>


View Profile
July 12, 2019, 10:45:33 PM
 #6

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.

skvoshiz
Newbie
*
Offline Offline

Activity: 4
Merit: 5


View Profile
July 15, 2019, 02:02:50 PM
 #7

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!!!!
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!