Author

Topic: Help. Blockchain.com Bip44 spec rpv2 API (Read 144 times)

legendary
Activity: 3122
Merit: 2178
Playgram - The Telegram Casino
August 14, 2018, 04:19:16 AM
#4
I have tried sending a small amount to all previous addresses then another amount to the address that was generated after but it still does not show in my wallet.

Blockchain.coms API just appeared to make things easier for us

Are the other small amounts that you sent to the previous addresses showing up in your wallet?

For future reference -- You can export the xPub key from hardware wallets such as the Trezor and Ledger as well. Generating and monitoring addresses from there takes a bit more legwork but keeps you in control of the funds instead of putting you at the mercy of a third party.
newbie
Activity: 9
Merit: 0
August 11, 2018, 03:44:44 AM
#3
I have tried sending a small amount to all previous addresses then another amount to the address that was generated after but it still does not show in my wallet.

Blockchain.coms API just appeared to make things easier for us
legendary
Activity: 1624
Merit: 2481
August 10, 2018, 08:11:27 AM
#2
Well, if blockchain.com doesn't check after 20 unused addresses you could simply send small amounts to the other addresses,
which have been crated before the address which received the funds.
After you have send funds to enough addresses, so that the address used by your custer will be inside the address gap of 20, it will appear and be accessable.

But, why did you use blockchain.com in the first place ?
For a proper OTC exchange, you should be able to implement everything yourself. For your and your customers security.
newbie
Activity: 9
Merit: 0
August 10, 2018, 04:21:28 AM
#1
We are currently developing a OTC direct BTC exchange. Last week we launched after using Blockchain.com 's receive api v2. We used them to generated addresses for clients to send us bitcoin. The system worked flawlessly and all minor bugs were quickly fixed. Till this happened...

The API states due to BIP44...

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

However, We got a trade for over 0.8 BTC. my API key and xPUB generated a address and presented it to the user as normal. The user paid and we credited the user with his fiat. I go onto the blockchain explorer and see the funds, confirmed in the address which i should own, but its not in my wallet and the funds are not accessable. After back and forth trying to send little amounts to the address to maybe get it to allocate I head back to the API docs and read what I quoted above.. It said it will not generate passed 20 unused addresses because if it does the BIP44 will not scan >21 and allocate funds. So i was not concerned at first. I then made a support query explaining what had happened and this was their response..

Hello,

Our Receive Payments API (RPv2) does not allow generating more than 20 unused addresses consecutively. This is to comply with the BIP44 spec, which states that addresses of an xpub after this limit should not be checked for funds.

To avoid this limit, we advise against generating a new address until necessary. For example, when accepting a user payment, do not request a new address to be generated until the very end of a checkout process, when the user is likely to complete the payment.

As a workaround, you could also send a small amount of bitcoin every 20 addresses, to ensure that the address limit requirements are met.

Best,


As I said I read the docs again and saw this but then it appeared to me this is what happened. The API generated more than 20 unused addresses and continued even though their docs said this would not happen as I am using rp V2. The addresses given to the user was number 21 and he sent funds to it that were not allocated to my account even though I own the address. I explained this to support after some tests and even paid out to every unpaid invoice as they suggested I do, still nothing showing in my blockchain wallet and the btc still sits in that address.

Support has not answered me in 2 days and they appear not to be interested in helping me.. what do I do?? Is there anyway I can recover my funds by manually scanning the address with my api key and xpub so it can allocate my funds to me. i

Any help or suggestions will be appreciated.. Im sure other users of their api have encountered this issue 
Jump to: