Bitcoin Forum
June 21, 2024, 08:09:18 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Other / Beginners & Help / Re: Help with BIP44 and blockchain.com API on: August 13, 2018, 07:45:28 AM
Yes I see other addresses from my blockchain.com account.

I also generated a new address using their api and that addresses showed in electrum. Do you have a private channel I can contact you on?
2  Other / Beginners & Help / Re: Help with BIP44 and blockchain.com API on: August 12, 2018, 04:57:28 PM
Sorry, after testing I found that electrum uses derivation path m/0/0. However blockchain.com uses derivation path m/44'/0'/0'/0'. Therefore electrum and blockchain.com generate different addresses.

I cant find how to change derivation path in electrum, but you can download this tool:
https://iancoleman.io/bip39/ (Download link: https://github.com/iancoleman/bip39/archive/master.zip)
1) Disconnect internet, unzip the file and open src/index.html in browser.
2) Input xpriv key
3) Scroll to Derivation Path
4) Click BIP32, client Blockchain.info
5) Scroll to derived addresses and check for your address (you can generate more addresses, edit the number after Show and click on More Rows button)
6) If it isnt there, click BIP44 then check for your address

Ok I gave it a go and did not find the address in either bip32 or bip44. Any other ideas or am I out of luck? I searched up to 1500 addresses for both
3  Other / Beginners & Help / Re: Help with BIP44 and blockchain.com API on: August 12, 2018, 04:43:29 PM
Giving it a shot. Thank you for your support! I really appreciate the effort.
4  Other / Beginners & Help / Re: Help with BIP44 and blockchain.com API on: August 12, 2018, 10:56:35 AM
Try to import the xpriv key into electrum and change gap limit from 20 to e.g. 100.

With electrum GUI, click on console and enter:
Code:
wallet.change_gap_limit(100)
wallet.synchronize()
Then you should see your bitcoin address with 0.8 btc and be able to dump the private key.

With electrum CLI, edit your wallet file (generally found in .electrum/wallets/) and add:
Code:
"gap_limit": 100,
above
Code:
    "keystore": {
        "type": "bip32",
        "xprv": "....",
        "xpub": "...."
    },
Then list your addresses, locate the address with 0.8 btc and dump private key as normal.

I have done this now and it does not seem to list the address
https://www.blockchain.com/btc/address/1Ar23WEvzW8obJWZfgtvQ5Z43AVtCUXoTe
5  Other / Beginners & Help / Re: Help with BIP44 and blockchain.com API on: August 11, 2018, 09:15:33 AM
I tried with no success.  Any other ideas ?
6  Bitcoin / Development & Technical Discussion / Re: Help. Blockchain.com Bip44 spec rpv2 API on: August 11, 2018, 08:44:44 AM
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
7  Other / Beginners & Help / Re: Help with BIP44 and blockchain.com API on: August 10, 2018, 01:28:55 PM
Let me try that... Will update in a moment.
8  Other / Beginners & Help / Help with BIP44 and blockchain.com API on: August 10, 2018, 11:05:02 AM
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 
9  Bitcoin / Development & Technical Discussion / Help. Blockchain.com Bip44 spec rpv2 API on: August 10, 2018, 09:21:28 AM
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 
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!