<p>This is a <a href="https://github.com/bitcoin/bitcoin/issues/3095" rel="nofollow">known bug</a> in Bitcoin-QT.</p>

CC BY-SA 3.0
2014-06-07T02:23:44.323Z
Much appreciated :)
derrend
CC BY-SA 3.0
2014-06-07T02:17:15.393Z
2014-06-07T02:17:15.393Z
Nate Eldredge
<p>When specifying the details for the payment object I have noticed that if I leave <strong>amount</strong> blank I am not prompted to enter an amount by the bitcoin-qt 0.9 client.</p>

<pre><code>xpd = x.PaymentDetails()
xpd.time = int(time())
xpd.outputs.add(amount = 10000000, script = serialized_script)
xpd.memo = 'this is xpd memo'
xpdstring = xpd.SerializeToString()
xpr = x.PaymentRequest()
xpr.serialized_payment_details = xpd.SerializeToString()
xprstring = xpd.SerializeToString()
</code></pre>

<p>If I do not specify an amount then it is set to zero by default and I am presented with the error that the bitcoin amount is too small and is considered 'dust'.</p>

<p>Please can someone help me understand how to prompt the user for a deposit amount if the amount field is blank?</p>

<p>Thanks.</p>

<p>Additionally I should note that I am using the testnet.</p>

<bitcoind><bip70-payment-protocol>
Prompt user for payment amount using bitcoin bip 70?
derrend
# Prompt user for payment amount using bitcoin bip 70?

(Asked by: username_0 on 2014-06-07)

When specifying the details for the payment object I have noticed that if I leave **amount** blank I am not prompted to enter an amount by the bitcoin-qt 0.9 client.

```
xpd = x.PaymentDetails()
xpd.time = int(time())
xpd.outputs.add(amount = 10000000, script = serialized_script)
xpd.memo = 'this is xpd memo'
xpdstring = xpd.SerializeToString()
xpr = x.PaymentRequest()
xpr.serialized_payment_details = xpd.SerializeToString()
xprstring = xpd.SerializeToString()

```

If I do not specify an amount then it is set to zero by default and I am presented with the error that the bitcoin amount is too small and is considered 'dust'.

Please can someone help me understand how to prompt the user for a deposit amount if the amount field is blank?

Thanks.

Additionally I should note that I am using the testnet.

**Tags:** bitcoind, bip70-payment-protocol


---

## 1 answers

### Answer by username_1 on 2014-06-07. Score: 1 | Accepted answer

This is a [known bug](https://github.com/bitcoin/bitcoin/issues/3095) in Bitcoin-QT.

> **Comments:**
> **username_0**: Much appreciated :)  

---

