Bitcoin Forum
April 20, 2024, 12:11:53 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   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 205 times)
skvoshiz (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 5


View Profile
July 11, 2019, 10:28:11 AM
Merited by DarkStar_ (4), ABCbits (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
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713571913
Hero Member
*
Offline Offline

Posts: 1713571913

View Profile Personal Message (Offline)

Ignore
1713571913
Reply with quote  #2

1713571913
Report to moderator
1713571913
Hero Member
*
Offline Offline

Posts: 1713571913

View Profile Personal Message (Offline)

Ignore
1713571913
Reply with quote  #2

1713571913
Report to moderator
bitmover
Legendary
*
Offline Offline

Activity: 2282
Merit: 5878


bitcoindata.science


View Profile WWW
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.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
TryNinja
Legendary
*
Offline Offline

Activity: 2814
Merit: 6962



View Profile WWW
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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

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

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

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

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

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











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
carlfebz2
Hero Member
*****
Online Online

Activity: 2926
Merit: 723


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.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


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

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.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
skvoshiz (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 5


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

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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!