<p>The first issue, with <code>getbalance</code>, is a known issue which will be fixed in the next release. You can see the pull request for it here: <a href="https://github.com/bitcoin/bitcoin/pull/14602" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/pull/14602</a></p>

<p>The latter, though, I cannot seem to replicate. To my knowledge, <code>listunspent</code> has not been modified in version 0.17, and it seems to work as expected when I test on the command line. Did it work before? Perhaps PHP is causing the issue, could you try enclosing the number as a string instead just to test it? <code>"minimumAmount" =&gt; "0.00005"</code></p>

CC BY-SA 4.0
2018-11-12T01:54:40.797Z
Perhaps mention that it can be worked around using `getunconfirmedbalance`.
Pieter Wuille
CC BY-SA 4.0
2018-11-12T01:17:45.873Z
2018-11-12T01:17:45.873Z
meshcollider
<p>After updating from Bitcoin core 0.16.3 to 0.17 I've found several RPC calls are now broken, and I'm not sure on how to migrate/update my code (PHP). </p>

<p>Things broken so far:</p>

<ul>
<li><p><code>getbalance</code> : does not detect unconfirmed balance, this command shows only confirmed balance where it used to (and should) show confirmed+unconfirmed balance. Expected to work like in 0.16.3.</p>

<pre><code>$btc-&gt;getbalance("*", 0);
</code></pre></li>
<li><p><code>listunspent</code>: does not detect unconfirmed inputs, showing nothing and returning error stating "Invalid amount". Expected to work like in 0.16.3.</p>

<pre><code>$btc-&gt;listunspent(0, 9999999, array(), true, array("minimumAmount" =&gt; 0.00005));
</code></pre></li>
</ul>

<p>I will add more to the list as they get discovered.
There is no mention of these issues online, in the 0.17 changelog or anywhere else I could find.</p>

<p>Already updated some other php code that used <code>validateaddress</code> deprecated call and a couple more, probably still missing some editing here.</p>

<p>How to restore functionality as expected?
Thanks.</p>

<bitcoind><json-rpc><unconfirmed-transactions><php><listunspent>
update to 0.17.0 broke several rpc api calls that worked under 0.16.3, how to migrate correcty my code?
3codyz0
# update to 0.17.0 broke several rpc api calls that worked under 0.16.3, how to migrate correcty my code?

(Asked by: username_0 on 2018-11-11)

After updating from Bitcoin core 0.16.3 to 0.17 I've found several RPC calls are now broken, and I'm not sure on how to migrate/update my code (PHP).

Things broken so far:

* `getbalance` : does not detect unconfirmed balance, this command shows only confirmed balance where it used to (and should) show confirmed+unconfirmed balance. Expected to work like in 0.16.3.

  ```
  $btc->getbalance("*", 0);

  ```
* `listunspent`: does not detect unconfirmed inputs, showing nothing and returning error stating "Invalid amount". Expected to work like in 0.16.3.

  ```
  $btc->listunspent(0, 9999999, array(), true, array("minimumAmount" => 0.00005));

  ```

I will add more to the list as they get discovered.
There is no mention of these issues online, in the 0.17 changelog or anywhere else I could find.

Already updated some other php code that used `validateaddress` deprecated call and a couple more, probably still missing some editing here.

How to restore functionality as expected?
Thanks.

**Tags:** bitcoind, json-rpc, unconfirmed-transactions, php, listunspent


---

## 1 answers

### Answer by username_1 on 2018-11-12. Score: 1

The first issue, with `getbalance`, is a known issue which will be fixed in the next release. You can see the pull request for it here: <https://github.com/bitcoin/bitcoin/pull/14602>

The latter, though, I cannot seem to replicate. To my knowledge, `listunspent` has not been modified in version 0.17, and it seems to work as expected when I test on the command line. Did it work before? Perhaps PHP is causing the issue, could you try enclosing the number as a string instead just to test it? `"minimumAmount" => "0.00005"`

> **Comments:**
> **username_2**: Perhaps mention that it can be worked around using `getunconfirmedbalance`.  

---

