blockchain / service-my-wallet-v3

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

Payment #304

Open BizSafe opened 6 years ago

BizSafe commented 6 years ago

blockchain-wallet-service -V 0.26.0

Hi,

On 25/11 I did a transaction that STEP 1 - moves some bitcoin into a wallet and then STEP 2 in the same block of code, milli-seconds later moves some of that bitcoin into 2 different wallets.

http://localhost:3232/merchant/' || f_guid || '/payment?' || 'to='||t_add|| '&amount='||l_amount || '&password='||f_pwd || '&from=0&fee=1000';

The code ran with out error and the balances in all 3 wallets is correct

Yesterday I deducted 1000 sitoshi off the 1st wallet balance and tried to move the remain coin to my originating wallet in order to continue my testing but the transaction failed. I then retried a few times as the same code worked with a few other wallets.

The error I get is "error":"Error signing and pushing transaction"

Finally I logged into blockchain.info and into the wallet and tried from there but got a 'too many pending transactions wait for transactions to be verified'

The same has happened for about 6 other wallets.

If I look up the original transaction where the money was transferred into these wallets they appear as unconfirmed. How can this be after 48 hours?

I also noted that in some cases I was able to move the 2nd load of bitcoins (the 2 wallets that were transferred in STEP 2) of the code.

Any pointers will be appreciated

Thank you

Sandy

bishop45690 commented 6 years ago

Who are you Sandy??

BizSafe commented 6 years ago

Hi, I am just a girl using the blockchain.info api to build an app :o)

jtormey commented 6 years ago

This could happen if you've sent several transactions in a row with low fees. If they don't confirm, then they may be "stuck" for a little bit (a day or two), this has been more of an issue recently given the high cost of transactions. I would guess this is caused by sending quickly between wallets right after receiving. Why do you need multiple wallets? This problem may go away if you use a single wallet.

BizSafe commented 6 years ago

Hi,

Thank you for your reply and sorry I have been ill so not worked on this for a few days.

Those same transactions I posted on 25th Nov remain unconfirmed on the blockchain although one or two did go through, and then the repeat transactions which took the wallets into a negative balance and were later reversed. There are at least 12 transactions still outstanding

My immediate issue however is I am getting the following error when I try send single transactions through, Insufficient funds

As you can see there are funds in the wallet and I have tried from a few wallets

For example

I send to : http://localhost:3232/merchant/xxx-ba61-xxx-a27f-xxxx/payment?password=xxxxxxxx&to=**********nJQcg&amount=131800&fee=2000

returns : {"error":"Insufficient funds","available":0,"needed":0.001318,"sweep_amount_satoshi":0,"sweep_fee_satoshi":0}

As you can see the wallet has funds in it

Is this because of the pending transactions? Or has my API perhaps been blocked as I accidently sent those other transactions multiple times?

Thank you so much for your help, I really appreciate it

regards,

Sandy

[image: Inline image 2] [image: Inline image 1]

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

This could happen if you've sent several transactions in a row with low fees. If they don't confirm, then they may be "stuck" for a little bit (a day or two), this has been more of an issue recently given the high cost of transactions. I would guess this is caused by sending quickly between wallets right after receiving. Why do you need multiple wallets? This problem may go away if you use a single wallet.

— 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/304#issuecomment-347541706, or mute the thread https://github.com/notifications/unsubscribe-auth/AelJLq8WCVF5wrgtSkX9J8ABdM_QIsM3ks5s7BnYgaJpZM4Qr8lr .