API Lost money on generated addresses. How to return the money?

by skvoshiz   Last Updated July 11, 2019 11:27 AM - source

I started using this service( to receive automated payments I got access to api Created a button on the site by which addresses were generated:

I used it &gap_limit=3000 because I found it in the example.

Only then I understood about it:

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

Related Questions

bitcoin-transaction npm showing Bad Request in response

Updated December 20, 2018 14:27 PM

Steps for running lightningd, lightning-cli?

Updated February 12, 2018 12:27 PM