<p>I have installed Blockchain.com platform on our server and ran some codes successfully based on its Wallet APIs. Regarding to what is said <a href="https://support.blockchain.com/hc/en-us/articles/210354003-What-is-the-minimum-amount-I-can-send" rel="nofollow noreferrer">here</a>, as we are testing this platform, we charged the created wallet with .00000546 BTC. But while using payment API, we received this result:  </p>

<pre><code>{
  "error": "Insufficient funds",
  "available": 0.00000546,
  "needed": 0.00001092,
  "sweep_amount_satoshi": 0,
  "sweep_fee_satoshi": 678
}
</code></pre>

<p>I can't understand why am I getting this error, and specially, how the amount of needed variable is calculated? May you help me please?</p>

CC BY-SA 4.0
2019-10-09T08:02:44.157Z
If you have the  .00000546 BTC inside the wallet, you can not create a new transaction because, if your transaction will have needed the fee, so with your reference in this post, you can not send the 0.00000546 with the blochchain.com because of the 0.00000546 + FEE < YOUR_AMMOUNT
vincenzopalazzo
CC BY-SA 4.0
2019-10-09T08:59:29.927Z
That's correct and we understand it. But the mentioned needed value is strange. Based on https://www.blockchain.com/api/blockchain_wallet_api, miners fee is 0.0001. So we need `0.0001+0.00000546 BTC`. I don't know what is `sweep_fee_satoshi` for. But even if we should add it too (0.00000678 BTC), the final result will be `0.00011224 BTC` which is different with the needed value!
Mohammad Saberi
<blockchain.info><api><payment>
Blockchain.com API and needed amount
Mohammad Saberi
# Blockchain.com API and needed amount

(Asked by: username_0 on 2019-10-09)

I have installed Blockchain.com platform on our server and ran some codes successfully based on its Wallet APIs. Regarding to what is said [here](https://support.blockchain.com/hc/en-us/articles/210354003-What-is-the-minimum-amount-I-can-send), as we are testing this platform, we charged the created wallet with .00000546 BTC. But while using payment API, we received this result:

```
{
  "error": "Insufficient funds",
  "available": 0.00000546,
  "needed": 0.00001092,
  "sweep_amount_satoshi": 0,
  "sweep_fee_satoshi": 678
}

```

I can't understand why am I getting this error, and specially, how the amount of needed variable is calculated? May you help me please?

**Tags:** blockchain.info, api, payment

> **Comments:**
> **username_1**: If you have the  .00000546 BTC inside the wallet, you can not create a new transaction because, if your transaction will have needed the fee, so with your reference in this post, you can not send the 0.00000546 with the blochchain.com because of the 0.00000546 + FEE < YOUR_AMMOUNT  
> **username_0**: That's correct and we understand it. But the mentioned needed value is strange. Based on https://www.blockchain.com/api/blockchain_wallet_api, miners fee is 0.0001. So we need `0.0001+0.00000546 BTC`. I don't know what is `sweep_fee_satoshi` for. But even if we should add it too (0.00000678 BTC), the final result will be `0.00011224 BTC` which is different with the needed value!  

---

## 0 answers

