blockchain / service-my-wallet-v3

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

Make Payment - Unexpected error, please try again #382

Open roydondsouza opened 6 years ago

roydondsouza commented 6 years ago

Current Version: blockchain.info wallet service v0.26.1 running on http://127.0.0.1:3000 Node version: v8.12.0 Npm version: v6.4.1

We are using the Make Payment API - https://github.com/blockchain/service-my-wallet-v3#make-payment

Getting the following issue, due to which we are not able to move funds out. The merchant guid has a balance of 11759 satoshis.

Request:

curl -X GET \
  'http://localhost:3000/merchant/**redacted**/payment?to=**redacted**&amount=11000&password=**password**&api_code=**apicode**&fee_per_byte=10' \
  -H 'Content-Type: application/json' 

Response:

{
    "error": "Unexpected error, please try again"
}

Docker log:

**payment**-blockchain | 1540730386549 - error: [object Object]

cc. @jtormey

sesesmith30 commented 6 years ago

same issue here

luche79 commented 6 years ago

https://github.com/blockchain/service-my-wallet-v3/issues/384

GoldFund commented 6 years ago

Mega timeouts, and errors being returned. Unstable API folks.

techwebdev commented 4 years ago

for this, you need to pass amount in satoshis like BTC value is 0.00054 then multiply by 100000000 then value in satoshi is 0.00054 * 100000000 = 54000 satoshi minimum amount is 540 satoshi default fee is 10000 and from parameter, you pass an index of address if address not work

384 check this issue more information

and for conversion check this #401