<p>I think your question has an underlying misconception. The wallet only contains bitcoins in an abstract sense: <em>In realitas</em> the wallet only stores the private keys that enable you to spend the bitcoin balance that is associated with your addresses. Think of it this way: When you look into your wallet, you only see a number of little boxes. You know that all these boxes are yours, but from the outside all boxes look the same, regardless of what they contain. You can only know how much you have in this boxes, by opening each of the and counting their contents. This "looking into the boxes" step happens by looking up the balances of your addresses in the public ledger (the block chain). The wallet.dat might contain the balance that was last counted when you compared to the blockchain, but can only be updated to the current state when counting the contents of the little boxes again.</p>

<p>So, without downloading the blockchain and having your software calculate your current balance, you could only check "if everything is alright" by looking up specific addresses. If you received your bitcoins in one transaction the balance is associated only with one address and this address could easily be written down or memorized separately from the wallet. You could then proceed to look up the balance of it on a website such as for example <a href="http://blockchain.info" rel="nofollow">http://blockchain.info</a>. This can be done safely, as the address alone does not allow anyone to spend the bitcoins.</p>

<p>So, summing up: Just from the wallet.dat you cannot get an update on the balance without acquiring additional information. You can however check the balance of addresses directly by using publicly available information.</p>

CC BY-SA 3.0
2013-08-25T02:55:52.550Z
Can I get these addresses given a `wallet.dat` file?
Hudon
CC BY-SA 3.0
2013-08-25T04:08:43.173Z
I think yes, unless it is encrypted and you don't know the passphrase.
Murch
CC BY-SA 3.0
2013-08-25T14:05:55.333Z
I've reworded the question to correct the "wallet doesn't contain the bitcoins" error. The question remains unanswered though: how do I figure out my balance given just the wallet.dat file (no blockchain)?
Hudon
CC BY-SA 3.0
2013-08-25T15:09:49.053Z
The blockchain is needed, since your coins are in blockchain, not in a wallet. You can use already mentioned website blockchain.info to check balance of your address, without messing with blockchain at your side.
ripazha
CC BY-SA 3.0
2013-08-25T15:39:03.357Z
I updated my answer to reflect his updated question just before your comment. :)
Murch
CC BY-SA 3.0
2013-08-25T18:32:19.383Z
There seems to be a contradiction. First you said that it is possible to get the addresses given a `wallet.dat` file, but then you updated your answer to say that the only way to get these addresses is to write them down a priori. Knowing which one is true would be useful so we can get a final answer to whether or not the original problem can be solved.
Hudon
CC BY-SA 3.0
2013-08-26T01:31:10.923Z
My impression was that you didn't want to hook up your wallet after receiving the money to keep it safe. Well, before not accessing your wallet, you'd have to get the address from your wallet that is associated with the balance you want to check on later and then look up that address whenever you feel like it. If you don't mind to access your wallet later, then you could get the addresses later. However, by itself the wallet can't tell you the balances associated with your keys, much like your car key can't tell you if your car is still parked in the road while you are inside.
Murch
CC BY-SA 3.0
2013-08-24T23:14:53.220Z
2013-08-25T15:05:34.997Z
2013-08-25T15:05:34.997Z
Murch
<p>Regarding your followup question on how to list addresses.  You might try something like</p>

<p><code>bitcoind listreceivedbyaddress 0 true</code></p>

<p>although I have no idea if <a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list#Listing_my_bitcoin_addresses" rel="nofollow">that command</a> works without the full blockchain being present.  If it doesn't do what you want, there's also one called <code>listaccounts</code>.</p>

CC BY-SA 3.0
2016-10-15T19:56:43.093Z
2016-10-15T20:01:58.143Z
2016-10-15T20:01:58.143Z
rkagerer
<p>I have bitcoin associated with a wallet that I am now moving from a server to external storage for backup. As far as I know, all I need to do is copy the wallet.dat file to external storage and I'm good (given that I won't be doing any transactions in the foreseeable future).</p>

<p>My question is: <strong>once I move the wallet.dat file over, how do I check --without downloading the block chain -- the balance associated with it to make sure all is well?</strong></p>

<backup><wallet.dat>
Can I check balance of wallet.dat without downloading the block chain?
Hudon
# Can I check balance of wallet.dat without downloading the block chain?

(Asked by: username_0 on 2013-08-24)

I have bitcoin associated with a wallet that I am now moving from a server to external storage for backup. As far as I know, all I need to do is copy the wallet.dat file to external storage and I'm good (given that I won't be doing any transactions in the foreseeable future).

My question is: **once I move the wallet.dat file over, how do I check --without downloading the block chain -- the balance associated with it to make sure all is well?**

**Tags:** backup, wallet.dat


---

## 2 answers

### Answer by username_1 on 2013-08-24. Score: 2 | Accepted answer

I think your question has an underlying misconception. The wallet only contains bitcoins in an abstract sense: *In realitas* the wallet only stores the private keys that enable you to spend the bitcoin balance that is associated with your addresses. Think of it this way: When you look into your wallet, you only see a number of little boxes. You know that all these boxes are yours, but from the outside all boxes look the same, regardless of what they contain. You can only know how much you have in this boxes, by opening each of the and counting their contents. This "looking into the boxes" step happens by looking up the balances of your addresses in the public ledger (the block chain). The wallet.dat might contain the balance that was last counted when you compared to the blockchain, but can only be updated to the current state when counting the contents of the little boxes again.

So, without downloading the blockchain and having your software calculate your current balance, you could only check "if everything is alright" by looking up specific addresses. If you received your bitcoins in one transaction the balance is associated only with one address and this address could easily be written down or memorized separately from the wallet. You could then proceed to look up the balance of it on a website such as for example <http://blockchain.info>. This can be done safely, as the address alone does not allow anyone to spend the bitcoins.

So, summing up: Just from the wallet.dat you cannot get an update on the balance without acquiring additional information. You can however check the balance of addresses directly by using publicly available information.

> **Comments:**
> **username_0**: Can I get these addresses given a `wallet.dat` file?  
> **username_1**: I think yes, unless it is encrypted and you don't know the passphrase.  
> **username_0**: I've reworded the question to correct the "wallet doesn't contain the bitcoins" error. The question remains unanswered though: how do I figure out my balance given just the wallet.dat file (no blockchain)?  
> **username_2**: The blockchain is needed, since your coins are in blockchain, not in a wallet. You can use already mentioned website blockchain.info to check balance of your address, without messing with blockchain at your side.  
> **username_1**: I updated my answer to reflect his updated question just before your comment. :)  
> **username_0**: There seems to be a contradiction. First you said that it is possible to get the addresses given a `wallet.dat` file, but then you updated your answer to say that the only way to get these addresses is to write them down a priori. Knowing which one is true would be useful so we can get a final answer to whether or not the original problem can be solved.  
> **username_1**: My impression was that you didn't want to hook up your wallet after receiving the money to keep it safe. Well, before not accessing your wallet, you'd have to get the address from your wallet that is associated with the balance you want to check on later and then look up that address whenever you feel like it. If you don't mind to access your wallet later, then you could get the addresses later. However, by itself the wallet can't tell you the balances associated with your keys, much like your car key can't tell you if your car is still parked in the road while you are inside.  

---

### Answer by username_3 on 2016-10-15. Score: 1

Regarding your followup question on how to list addresses. You might try something like

`bitcoind listreceivedbyaddress 0 true`

although I have no idea if [that command](https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list#Listing_my_bitcoin_addresses) works without the full blockchain being present. If it doesn't do what you want, there's also one called `listaccounts`.


---

