<blockquote>
<p>If I don't use the rescan option, will the balance be incorrect?</p>
</blockquote>
<p>Definitely. Without rescanning, the wallet won't know about any transactions that affect your balance.</p>
<blockquote>
<p>Why is the balance off when I check it against an external balance inquiry site?</p>
</blockquote>
<p>There is no way to answer that without knowing what you were looking at, or what you were expecting. Please update your question with details like which address you imported, what else is imported in your wallet, and what reference you used to compare with.</p>

CC BY-SA 4.0
2022-08-04T00:25:29.280Z
Thanks for getting back to me!
I've updated the question, what do you think?
Satish
CC BY-SA 4.0
2022-08-04T02:28:06.230Z
Are you importing multiple addresses into the same wallet? `getbalances` (and other balance RPCs) report the balance of the entire wallet.
Pieter Wuille
CC BY-SA 4.0
2022-08-04T04:46:07.150Z
That's right! Thanks to you I understand about `getbalances`. So if I want to import other addresses, I have to separate Wallet. Or is there an API to remove the import of addresses?
Satish
CC BY-SA 4.0
2022-08-03T15:27:24.320Z
2022-08-03T15:27:24.320Z
Pieter Wuille
<p>I would like to track balances using address, but I have a few questions.</p>
<ol>
<li>If I don't use the rescan option, will the balance be incorrect?</li>
<li>Why is the balance off when I check it against an external balance inquiry site?</li>
</ol>
<p>The procedure using the API was to execute <code>importaddress</code>(no rescan) and then <code>getbalances</code>.</p>
<p>Because the balance was off, I executed <code>importaddress</code> with rescan, but the balance was off when I tried again.</p>
<p>I tried several times with other addresses, but it didn't work!<br />
Should I change Wallet every time I look up a different address?</p>
<p>For example,</p>
<pre><code>❯ curl --user user:password --data-binary '{&quot;jsonrpc&quot;: &quot;1.0&quot;, &quot;id&quot;: &quot;curltest&quot;, &quot;method&quot;: &quot;importaddress&quot;, &quot;params&quot;: [ &quot;38XnPvu9PmonFU9WouPXUjYbW91wa5MerL&quot;, &quot;&quot;, false ]}' -H 'content-type: text/plain;' http://--.--.--.--:----
{&quot;result&quot;:null,&quot;error&quot;:null,&quot;id&quot;:&quot;curltest&quot;}

❯ curl --user user:password --data-binary '{&quot;jsonrpc&quot;: &quot;1.0&quot;, &quot;id&quot;: &quot;curltest&quot;, &quot;method&quot;: &quot;getbalances&quot;, &quot;params&quot;: []}' -H 'content-type: text/plain;' http://--.--.--.--:---- | jq .
{
  &quot;result&quot;: {
    &quot;mine&quot;: {
      &quot;trusted&quot;: 0,
      &quot;untrusted_pending&quot;: 0,
      &quot;immature&quot;: 0
    },
    &quot;watchonly&quot;: {
      &quot;trusted&quot;: 3239.83164697,
      &quot;untrusted_pending&quot;: 16.05599144,
      &quot;immature&quot;: 184.81980076
    }
  },
  &quot;error&quot;: null,
  &quot;id&quot;: &quot;curltest&quot;
}
</code></pre>
<p>However, when referring to an external site, it is significantly off.<br />
<a href="https://chainflyer.bitflyer.jp/tool/balance" rel="nofollow noreferrer">https://chainflyer.bitflyer.jp/tool/balance</a>
<a href="https://i.sstatic.net/qD22E.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qD22E.png" alt="enter image description here" /></a></p>
<p>Any advice would be greatly appreciated!</p>

<wallet><bitcoind><address><json-rpc>
Specification of Bitcoin RPC getbalances
Satish
# Specification of Bitcoin RPC getbalances

(Asked by: username_0 on 2022-08-03)

I would like to track balances using address, but I have a few questions.

If I don't use the rescan option, will the balance be incorrect?
Why is the balance off when I check it against an external balance inquiry site?

The procedure using the API was to execute importaddress(no rescan) and then getbalances.
Because the balance was off, I executed importaddress with rescan, but the balance was off when I tried again.
I tried several times with other addresses, but it didn't work!
Should I change Wallet every time I look up a different address?
For example,
❯ curl --user user:password --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "importaddress", "params": [ "38XnPvu9PmonFU9WouPXUjYbW91wa5MerL", "", false ]}' -H 'content-type: text/plain;' http://--.--.--.--:----
{"result":null,"error":null,"id":"curltest"}

❯ curl --user user:password --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getbalances", "params": []}' -H 'content-type: text/plain;' http://--.--.--.--:---- | jq .
{
  "result": {
    "mine": {
      "trusted": 0,
      "untrusted_pending": 0,
      "immature": 0
    },
    "watchonly": {
      "trusted": 3239.83164697,
      "untrusted_pending": 16.05599144,
      "immature": 184.81980076
    }
  },
  "error": null,
  "id": "curltest"
}

However, when referring to an external site, it is significantly off.
https://chainflyer.bitflyer.jp/tool/balance

Any advice would be greatly appreciated!

**Tags:** wallet, bitcoind, address, json-rpc


---

## 1 answers

### Answer by username_1 on 2022-08-03. Score: 0 | Accepted answer

> If I don't use the rescan option, will the balance be incorrect?

Definitely. Without rescanning, the wallet won't know about any transactions that affect your balance.

> Why is the balance off when I check it against an external balance inquiry site?

There is no way to answer that without knowing what you were looking at, or what you were expecting. Please update your question with details like which address you imported, what else is imported in your wallet, and what reference you used to compare with.

> **Comments:**
> **username_0**: Thanks for getting back to me! I've updated the question, what do you think?  
> **username_1**: Are you importing multiple addresses into the same wallet? `getbalances` (and other balance RPCs) report the balance of the entire wallet.  
> **username_0**: That's right! Thanks to you I understand about `getbalances`. So if I want to import other addresses, I have to separate Wallet. Or is there an API to remove the import of addresses?  

---

