<blockquote>
<p>What does <code>getbalance</code> give me?</p>
</blockquote>
<p><code>getbalance</code> returns the total available balance according to your configuration. If you have <code>-spendzeroconfchange</code> set to <code>1</code> (the default), this is your total confirmed + unconfirmed balance.</p>
<blockquote>
<p>Whichever it gives me, I can then add or subtract the pending value to get the other value.</p>
</blockquote>
<p>By default <code>getbalance - getunconfirmedbalance = confirmed_balance</code>.</p>
<hr />
<p>PS: This information is available from the <code>help</code> and the manpage, which I merely quoted..</p>

CC BY-SA 4.0
2020-06-27T09:47:04.297Z
2020-06-27T09:47:04.297Z
Antoine Poinsot
<p>I'm trying to get some wallet info via RPC commands.
<code>getunconfirmedbalance</code> gives me the &quot;Pending&quot; amount in the GUI wallet.</p>
<p>What does <code>getbalance</code> give me? Is that value the &quot;Available&quot; value in the GUI wallet, or the &quot;Total&quot; value?</p>
<p>Whichever it gives me, I can then add or subtract the pending value to get the <em>other</em> value.</p>

<json-rpc><balance>
Balances Via RPC
l008com
# Balances Via RPC

(Asked by: username_0 on 2020-06-27)

I'm trying to get some wallet info via RPC commands.
`getunconfirmedbalance` gives me the "Pending" amount in the GUI wallet.

What does `getbalance` give me? Is that value the "Available" value in the GUI wallet, or the "Total" value?

Whichever it gives me, I can then add or subtract the pending value to get the *other* value.

**Tags:** json-rpc, balance


---

## 1 answers

### Answer by username_1 on 2020-06-27. Score: 2 | Accepted answer

> What does `getbalance` give me?

`getbalance` returns the total available balance according to your configuration. If you have `-spendzeroconfchange` set to `1` (the default), this is your total confirmed + unconfirmed balance.

> Whichever it gives me, I can then add or subtract the pending value to get the other value.

By default `getbalance - getunconfirmedbalance = confirmed_balance`.

---

PS: This information is available from the `help` and the manpage, which I merely quoted..


---

