blockchain / service-my-wallet-v3

Blockchain Wallet API Service
https://blockchain.info/api/blockchain_wallet_api
GNU Affero General Public License v3.0
915 stars 519 forks source link

xpub not found #305

Open BizSafe opened 6 years ago

BizSafe commented 6 years ago

Hello again,

I am trying to check the address gap using the following code

curl "https://api.blockchain.info/v2/receive/checkgap?xpub=xpub6C****Gk2oKcw****VvqZX****2FVeg****S93UDyp5AX****TYThtN7****8pCe***Kp9t4r****hQu4Fyc8ep****xfFsu****F4****k&key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

The result is "message" : "xpub not found"

The xpub submitted was returned from 'http://localhost:port/api/v2/create/?password='|| p_pwd || '&api_code=' || p_api_code || '&label=' || l_label;

Is there another method to check the gap? Or to get the xpub for the guid, payments using guid were working

Thank you

Sandy

jtormey commented 6 years ago

Hi Sandy, that endpoint will only work if you've used the receive payments API to generate bitcoin addresses previously. Why do you need to look up the address gap? There may be an easier way of doing what you want to do with our API.

BizSafe commented 6 years ago

Hi,

I am writing a platform where members can buy and sell their services for bitcoin. The platform creates a few wallets for each member and the coin is moved from one to another at certain events. I generate a new address each time I pay coin into a wallet, not sure if that makes sense.

I was just trying to check if I had the 20 gap that I read somewhere could cause an issue as my payments stopped working, I discovered later that it was because so many transactions are stuck on the blockchain and as I had duplicated them not realising they were on the chain but not yet confirmed (still not since 25 Nov) it has caused a bit of a mess. (Wish there was a way to up fees of an existing transaction as I was hoping to go live next week but that wont happen if I don't get these transactions through as now I cant do anything with my main wallet there are too many unconfirmed transactions

On Tue, Nov 28, 2017 at 4:31 PM, Justin Tormey notifications@github.com wrote:

Hi Sandy, that endpoint will only work if you've used the receive payments API to generate bitcoin addresses previously. Why do you need to look up the address gap? There may be an easier way of doing what you want to do with our API.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/blockchain/service-my-wallet-v3/issues/305#issuecomment-347540746, or mute the thread https://github.com/notifications/unsubscribe-auth/AelJLk9NFdOh-yKAX-Q3ycrKi6zbTMI0ks5s7BkogaJpZM4QsDZs .

kennguyenvn commented 6 years ago

me too. And i'm waiting answer

CarlosNavaBlaBla commented 6 years ago

I have same issue on blockchain.info

We generate xpub on wallet 2 days we generate invoices with btc adresses and did not notice that funds are not coming

later we check xpub and see the message xpub not found

WTF there on walet should be many thousands of usd, nad we don't see them

Mikki21 commented 5 years ago

@jtormey Hello! Do we have any updates for this issue?

folarinmartins commented 3 years ago

@jtormey Hello! Do we have any updates for this issue?

This happens

  1. When you are trying to lookup the addressGap on a non-HD Account
  2. When the address gap is zero, that is, no addresses exist yet under the account HTH