<p>The information is split. Some information is stored on your PC in the wallet file. Some information is stored in the public <a href="http://en.wikipedia.org/wiki/Bitcoin#Block-chain_and_confirmations" rel="noreferrer">blockchain</a>.</p>

<p>Stored in your wallet file is the list of accounts that you control and the secret key needed to spend coins sent to those accounts. Stored in the public blockchain (held on every computer running the Bitcoin client) is the record of every transaction ever made, including any transactions that sent you coins.</p>

<p>When you wish to spend your coins, you check the blockchain to find unspent coins sent to you (or mined by you). You compose a <a href="https://en.bitcoin.it/wiki/Transaction" rel="noreferrer">transaction</a> that specifies which unspent coins in the block chain you wish to spend and what account(s) you wish to send those coins to. You can return any 'change' to an account you control. You use the keys in your wallet to sign the transaction.</p>

<p>You then broadcast that transaction to miners. They confirm that your transaction is valid, making sure it spends only coins that exist, are unspent, and that it has the proper signatures. They make sure that the number of coins coming out of the transaction is less than or equal to the number of coins claimed by the transaction. They then commit that transaction into a new block linked into the hash chain, and the transfer is complete.</p>

CC BY-SA 3.0
2011-10-17T19:46:35.940Z
2011-10-17T21:23:47.260Z
2011-10-17T21:23:47.260Z
David Schwartz
<p>Your coins are stored in addresses in the block chain.  Thus your coins and my coins and everyone's coins are stored in every computer which makes up the Bitcoin network.  The block chain contains every address in use, and every one that has ever been used along with how many coins are currently at that address.</p>

<p><strong>This is why hacking your own client or wallet.dat isn't useful.  Your coins aren't there they are everywhere.</strong></p>

<p>For example you can lookup any of your (or anyone elses) addresses here and see the current value.
<a href="http://blockexplorer.com/" rel="noreferrer">http://blockexplorer.com/</a></p>

<p><strong>So what keeps other people from spending YOUR coins?</strong><br>
Spending Bitcoins is to create a transaction moving it from one address to another.  </p>

<p>To create a transaction requires that you cryptographically sign the transaction with the private key of the address containing the coins (the public key).  Since there is a mathematical relationship between public &amp; private keys the rest of bitcoin network can verify that the transaction is properly signed.  The "coins" (technically public key addresses and their current value) can be seen by anyone but those coins can only be moved by the persons in possession of the private key.</p>

<p>Your wallet.dat file contains all your public private key pairs.  Anyone in possession of you wall.dat file (and encryption passphrase) can sign transactions as the owner of those public addresses and thus has control over the coins.  This highlights why you must always safeguard your wallet.dat and encryption passphrase.</p>

<p>This method of storing value is unique to Bitcoin (and subsequent copycat coins).
To sum it up in a pair of sentences:</p>

<p><strong>Your coins are stored in addresses (public keys), copies are made public and included in every node of the bitcoin network.  However the security of those coins are ensured because only the person in possession of the matching private key can create a valid transaction to move them.</strong></p>

CC BY-SA 3.0
2013-12-19T05:40:42.363Z
Great explanation. Tx!
Aniket Thakur
CC BY-SA 3.0
2017-12-01T06:56:39.260Z
What happens when you lose your wallet.dat file?
nbkhope
CC BY-SA 4.0
2018-07-27T01:28:32.887Z
@DeathAndTaxes "Coins" are not entities stored in the blockchain; they're just an abstraction on top of transaction info like balances.  It's the tx info & balances where are stored in the blockchain and associated with addresses.
Matthew
CC BY-SA 3.0
2011-10-17T22:03:25.727Z
2011-10-18T12:48:23.290Z
2011-10-18T12:48:23.290Z
DeathAndTaxes
<p>Your <a href="https://en.bitcoin.it/wiki/Wallet" rel="noreferrer">wallet.dat</a> contains your keypairs that lets you use your coins. If you lose those, you will lose access to your money.</p>

<p>The actual coins, however, are encoded in the <a href="https://en.bitcoin.it/wiki/Blockchain" rel="noreferrer">Blockchain</a>. Each time you make a payment with your coins, you have to refer to the last time you made such a payment, so everyone can check if you balance is right. When making a payment, you specify both how many coins you are spending and how much coins you have left. If you manipulate your transaction and state a wrong value, people that will check your transaction will know and will reject it.</p>

<p>There is no place the coins are stored as you'd store physical currency. It is more like a bank balance - just a number. But since all transactions are transparent, everyone would know if you are trying to cheat.</p>

CC BY-SA 3.0
2011-10-17T19:43:17.283Z
Where is that block-chain database stored?
Alex
CC BY-SA 3.0
2011-10-17T19:50:29.703Z
A copy of it is stored on every computer running the Bitcoin software.
Meni Rosenfeld
CC BY-SA 3.0
2011-10-17T20:27:52.030Z
Blockchain is distributively stored by computers running the Bitocoin software. Most clients do not store the complete blockchain (as it is on the order of 1GB of size), but they store the transactions they are interested in (as in, the ones that have coins that belong to them and the newest blocks). Some clients, however, store the whole blockchain. So, everyone has some blocks, some people have all blocks, and there are multiple copies of the same block stored across the internet.
ThePiachu
CC BY-SA 3.0
2011-10-17T20:46:35.237Z
ThePiachu, you're talking about a lightweight client which, to the best of my knowledge, has not yet been implemented. Currently all clients store the whole blockchain.
Meni Rosenfeld
CC BY-SA 3.0
2011-10-17T20:52:30.007Z
Oh, I guess I must've gotten my info wrong somewhere. Sorry about that.
ThePiachu
CC BY-SA 3.0
2011-10-22T15:09:53.337Z
Meni, it has been implemented but not in the main client. What ThePiachu is talking about is a "selfish client" as implemented primarily on mobile devices. BitcoinJ, the Java port of Bitcoin currently in use on mobile devices does in fact store only block headers and blocks containing transactions of interest. This has been the subject of [at least one question](http://bitcoin.stackexchange.com/questions/478/how-do-i-reduce-the-size-the-block-chain-data-on-my-machine) though I'd love to see more - it's an interesting topic.
David Perry
CC BY-SA 3.0
2011-10-17T19:38:44.450Z
2011-10-17T19:41:39.697Z
2011-10-17T19:41:39.697Z
ThePiachu
<p>Information on how many bitcoins belong to each address is stored on a data structure called "the block chain". A copy of this data exists on every node on the Bitcoin network (that is, every computer which has the Bitcoin client software installed has information about all bitcoins in existence). The block chain follows certain rules that make sure that even if one manages to hack most of the stored copies of it, he'll be unable to credit himself with more coins.</p>

<p>The information required to grant you access to the bitcoins owned by your addresses, is stored in the wallet.dat file on your computer. Stealing an unencrypted version of it allows stealing your coins, so it should be guarded (a wallet encryption feature has been recently added to the client, and even better security features are in the works).</p>

CC BY-SA 3.0
2011-10-17T19:45:58.180Z
2011-10-17T19:51:33.807Z
2011-10-17T19:51:33.807Z
Meni Rosenfeld
<p>Bitcoin tokens don't actually "belong" to addresses. The idea of an address is purely a convenient abstraction. Addresses don't truly have a balance (nor does the Bitcoin blockchain even understand that addresses exist), but referring to an address balance is simply a quick way to refer to the total sum of tokens stored in unspent outputs which the owner of a particular address has the ability to spend.</p>

<p>In Bitcoin (and similar UTXO-based blockchains), tokens are "stored" in unspent outputs. The sender of a transaction specifies the requirements that must be fulfilled in order for the transaction's outputs to be spent. Tokens that are "sent" to an address are actually just stored in an output which requires the spender to prove ownership of their address by providing the public key their address is derived from along with a valid signature of the new transaction they wish to create to spend the original output.</p>

<p>The minor distinction between addresses "storing" tokens and addresses being able to spend tokens stored in outputs is important, and allows the creation of more advanced types of transactions (such as P2SH which enables multisig, timelocked and hash-encumbered transactions which allow technologies like atomic swaps and payment channels to function, etc.) </p>

CC BY-SA 3.0
2017-01-05T00:23:20.190Z
2017-01-05T00:23:20.190Z
Maxwell Sanchez
<p>A Bitcoin (BTC) is not a physical object. Conceptually speaking we can say that BTC (in the digital world) is somehow like water in the physical world. Just like there is a finite amount of water on earth there is a finite amount of BTC on the Blockchain. Just like a water quantity can be split into its smallest quantum (an H2O molecule), a quantity of BTC can be split into its smallest quantum, a Satoshi (0.00000001 BTC). A quantity of BTC is represented by a number, such as 3,728BTC. So, if a number can represent some BTC then all that is required to store some BTC is the ability to record a number. In the digital world you store information in files. Hence, Bitcoins are literally stored into files. What these files contain are (amongst other information) a whole bunch of addresses to which are sequentially attached a number, the actual amount of BTC to a specific address.</p>
<p>A Block is a bunch of addresses with its corresponding number ( the amount of BTC) that has been verified by miners. The Block is &quot;locked&quot;, approved and spread over all the Blockchain nodes around the world. That newly created (approved) Block is then attached at the end of the Blockchain in every nodes. Once this action is done it is irreversible (according to the Bitcoin Algorithm, which is the consensus amongst all nodes).</p>
<p>So, where are the user's Bitcoin actually stored? They are stored in the approved Blocks part of the single one and only version Blockchain, which a copy exist in every computer running a node around the world.</p>
<p>When you want to &quot;spend&quot; some BTC for a purchase of some kind, you need your unique private number to open the possibility to change the amount of BTC attached to a particular address such that this amount is allowed to be transferred into another address (the recipient address). All these number are what's recorded in the upcoming new Block, the one that will include your newly created transaction.</p>
<p>This whole strategy is described with words that find parallel in the physical world, such as wallet, money, account, and more. All these concepts are digitally represented in the numbers stored in those files called Blocks.</p>

CC BY-SA 4.0
2020-09-21T19:51:24.990Z
While the general gist is right, this answer is oversimplifying. "Quantities of BTC" are stored in [tag:UTXO], they are a bit more than just an address and a number, most notably there is a cryptographic lock to spending. Also, blocks are not irreversible. The chaintip is always probabilistic. A block could be overtaken by a competing chaintip and end up not being part of the best chain. Check out the tag [tag:chain-reorganization] to read more.
Murch
CC BY-SA 4.0
2020-09-27T19:52:46.080Z
Good point Murch. Thanks for the comment. My intention was to offer a view that would have helped me back when I was first introduced to cryptocurrencies. I wish someone could have explained it as such. It would have saved me hours of research.
Fred Cailloux
CC BY-SA 4.0
2020-09-21T18:26:49.397Z
2020-09-21T18:26:49.397Z
Fred Cailloux
<p>In addition to the actual question and the answers posted, it's important to note that the concept of ownership is slightly different in Bitcoin. You don't actually "own" the coins you have, you merely have the right to "control" them however you please, as only you "own" the key to do so.</p>

CC BY-SA 3.0
2017-12-18T10:46:47.687Z
2017-12-18T10:46:47.687Z
Coup de Grace
<p>It seems like what's called for here is a basic explanation of two of Bitcoin's big concepts: the wallet and the blockchain:</p>

<ul>
<li>A "wallet" is a collection of ECDSA keypairs. For those not familiar with cryptography, a keypair consists of a "public key" and a "private key" which can be used to encrypt or sign bits of data. The public key, as the name suggests, is known to everyone and can be used to encrypt messages in such a way that the holder of the private key alone may decrypt them. The private key may also be used to sign messages in such a way that anyone holding the public key may verify that the message truly came from you. Every Bitcoin address consists of such a keypair - the "address" you send people is the public half and the private half resides in your wallet.dat file.</li>
<li>The "blockchain" is a constantly growing database of transaction information which is sent out to all nodes in the Bitcoin network. When you perform a transaction, that transaction is distributed to the network and assuming the transaction is valid, will be included in the next "block." This is where the coins themselves are stored. When you initiate a transaction, all previous transactions to or from that address are scanned and a balance is calculated. If your transaction exceeds this available balance, it will be rejected by the network and will not be included in a block.</li>
</ul>

<p>It's also important to note that the blockchain technically doesn't store "coins" it stores transaction information. The coins themselves are not discrete things which need storage - when coins are mined the miner's balance is credited via a "generate" transaction which adds to his or her available balance. When coins are sent from A to B, that transaction subtracts from A's balance and adds to B's balance. This is similar to the way that your employer may, via EFT, send "money" to your bank and you can use your debit card to spend that "money" in a store, all without anyone ever seeing a discrete physical dollar bill. Most money in the world today exists merely as transaction histories and balances - Bitcoin is no exception.</p>

CC BY-SA 3.0
2013-11-06T19:40:28.357Z
Excellent explaination, thanks. So you can really just store an offline backup of your wallet on a flash drive and you don't really need to run the wallet client actively until you want to make a transaction?
John
CC BY-SA 3.0
2014-03-11T08:15:14.140Z
Are you sayng that every node on the bitcoin network contains the *entire* history of all transactions ever perfomed by bitcoin owners? Second, what is a "node"? Any computer with a bitcoin wallet?
Nilzor
CC BY-SA 3.0
2014-03-14T07:58:21.303Z
It depends on what software you're using, actually. Way back when I wrote this answer there was really just the one wallet software and yes, it stored every single transaction ever. Today there are several options and not all of them store all data. Electrum, for example, runs thin clients which connect to servers that store the whole blockchain and many phone wallets only store blocks containing transactions that pertain to them. In general, however, it is considered preferable for each node (computer running software) to store everything.
David Perry
CC BY-SA 3.0
2018-02-06T15:53:18.730Z
David, thanks, but there are several vague things i cant understand. I will list:  1) in case all transactions were stored in individual node/pc, so that person (pc holder) can open(view) that data and alter?  (yes or no) 2) if he can alter the data, then what happens? the system checks if that data is same as the data what other thousands of nodes store? how it is validated I cant understand, if individuals could change the data... 3) where is the core host(server) or appliance, which gives you permission to reject or add transaction ("generate") to your account? who decides that?
T.Todua
CC BY-SA 3.0
2018-02-06T16:06:04.567Z
4) when transaction happens, where it is stored/updated at first? i.e. on someones node? and in the far side on the earth somewhere, on a node, that transaction update might happen after X seconds/minutes, and if during that time, another transaction happens by the same holder??
T.Todua
CC BY-SA 4.0
2018-06-09T06:17:33.797Z
@T.Todua, did you find answer for your 4 questions listed above? If yes can you please post here.
Vishal Singh
CC BY-SA 4.0
2018-06-10T18:33:24.430Z
@VishalSingh I doubt that even bitcoin creator hardly knows how all this work :)
T.Todua
CC BY-SA 4.0
2018-07-27T01:23:47.993Z
@David - Can you please elaborate on: *"When you initiate a transaction, all previous transactions to or from that address are scanned and a balance is calculated."*?  How are they scanned?  Is there a running balance that can be determined by looking at the most recent block containing that address or do *all* blocks need to be scanned?
Matthew
CC BY-SA 4.0
2019-02-05T13:02:52.783Z
Supposes the owner of the bitcoin account dies then where does that money goes? I mean in legacy cases the money is safe with the bank and can be passed to nominee
Nitin S
CC BY-SA 3.0
2011-10-17T19:46:25.993Z
2011-10-17T19:46:25.993Z
David Perry
<p>On the person's computer?</p>

<p>On bitcoin.org? :)</p>

<p>Where does that information reside that tells others and me how much bitcoins I have?</p>

<p>I assume it can't be on my PC because I could easily hack the file that contains that data and get myself more bitcoins, right?</p>

CC BY-SA 3.0
2018-01-17T06:34:09.083Z
All the crypto assets like Bitcoin, Ether etc are stored on the their respective blockchains. The information like your balance is stored on a particular block with other details like creation creation time etc, which can't be altered.
The sites like https://live.blockcypher.com/btc/ , shows your balance using your public address. Anyone who knows your public keys can know your balance, transaction history as well.
However with the access to the private keys, you claim that a particular public address belongs to you, which means you have the "rights" to control your funds(Transfer etc).
bitsabhi
<blockchain><wallet>
Where are the user's bitcoins actually stored?
Alex
# Where are the user's bitcoins actually stored?

(Asked by: username_0 on 2011-10-17)

On the person's computer?

On bitcoin.org? :)

Where does that information reside that tells others and me how much bitcoins I have?

I assume it can't be on my PC because I could easily hack the file that contains that data and get myself more bitcoins, right?

**Tags:** blockchain, wallet

> **Comments:**
> **username_1**: All the crypto assets like Bitcoin, Ether etc are stored on the their respective blockchains. The information like your balance is stored on a particular block with other details like creation creation time etc, which can't be altered. The sites like https://live.blockcypher.com/btc/ , shows your balance using your public address. Anyone who knows your public keys can know your balance, transaction history as well. However with the access to the private keys, you claim that a particular public address belongs to you, which means you have the "rights" to control your funds(Transfer etc).  

---

## 8 answers

### Answer by username_9 on 2011-10-17. Score: 59 | Accepted answer

It seems like what's called for here is a basic explanation of two of Bitcoin's big concepts: the wallet and the blockchain:

* A "wallet" is a collection of ECDSA keypairs. For those not familiar with cryptography, a keypair consists of a "public key" and a "private key" which can be used to encrypt or sign bits of data. The public key, as the name suggests, is known to everyone and can be used to encrypt messages in such a way that the holder of the private key alone may decrypt them. The private key may also be used to sign messages in such a way that anyone holding the public key may verify that the message truly came from you. Every Bitcoin address consists of such a keypair - the "address" you send people is the public half and the private half resides in your wallet.dat file.
* The "blockchain" is a constantly growing database of transaction information which is sent out to all nodes in the Bitcoin network. When you perform a transaction, that transaction is distributed to the network and assuming the transaction is valid, will be included in the next "block." This is where the coins themselves are stored. When you initiate a transaction, all previous transactions to or from that address are scanned and a balance is calculated. If your transaction exceeds this available balance, it will be rejected by the network and will not be included in a block.

It's also important to note that the blockchain technically doesn't store "coins" it stores transaction information. The coins themselves are not discrete things which need storage - when coins are mined the miner's balance is credited via a "generate" transaction which adds to his or her available balance. When coins are sent from A to B, that transaction subtracts from A's balance and adds to B's balance. This is similar to the way that your employer may, via EFT, send "money" to your bank and you can use your debit card to spend that "money" in a store, all without anyone ever seeing a discrete physical dollar bill. Most money in the world today exists merely as transaction histories and balances - Bitcoin is no exception.

> **Comments:**
> **username_14**: Excellent explaination, thanks. So you can really just store an offline backup of your wallet on a flash drive and you don't really need to run the wallet client actively until you want to make a transaction?  
> **username_15**: Are you sayng that every node on the bitcoin network contains the *entire* history of all transactions ever perfomed by bitcoin owners? Second, what is a "node"? Any computer with a bitcoin wallet?  
> **username_9**: It depends on what software you're using, actually. Way back when I wrote this answer there was really just the one wallet software and yes, it stored every single transaction ever. Today there are several options and not all of them store all data. Electrum, for example, runs thin clients which connect to servers that store the whole blockchain and many phone wallets only store blocks containing transactions that pertain to them. In general, however, it is considered preferable for each node (computer running software) to store everything.  
> **username_16**: username_2, thanks, but there are several vague things i cant understand. I will list:  1) in case all transactions were stored in individual node/pc, so that person (pc holder) can open(view) that data and alter?  (yes or no) 2) if he can alter the data, then what happens? the system checks if that data is same as the data what other thousands of nodes store? how it is validated I cant understand, if individuals could change the data... 3) where is the core host(server) or appliance, which gives you permission to reject or add transaction ("generate") to your account? who decides that?  
> **username_16**: 4) when transaction happens, where it is stored/updated at first? i.e. on someones node? and in the far side on the earth somewhere, on a node, that transaction update might happen after X seconds/minutes, and if during that time, another transaction happens by the same holder??  
> **username_17**: @username_16, did you find answer for your 4 questions listed above? If yes can you please post here.  
> **username_16**: @username_17 I doubt that even bitcoin creator hardly knows how all this work :)  
> **username_6**: @username_2 - Can you please elaborate on: *"When you initiate a transaction, all previous transactions to or from that address are scanned and a balance is calculated."*?  How are they scanned?  Is there a running balance that can be determined by looking at the most recent block containing that address or do *all* blocks need to be scanned?  
> **username_18**: Supposes the owner of the bitcoin account dies then where does that money goes? I mean in legacy cases the money is safe with the bank and can be passed to nominee  

---

### Answer by username_2 on 2011-10-17. Score: 14

The information is split. Some information is stored on your PC in the wallet file. Some information is stored in the public [blockchain](http://en.wikipedia.org/wiki/Bitcoin#Block-chain_and_confirmations).

Stored in your wallet file is the list of accounts that you control and the secret key needed to spend coins sent to those accounts. Stored in the public blockchain (held on every computer running the Bitcoin client) is the record of every transaction ever made, including any transactions that sent you coins.

When you wish to spend your coins, you check the blockchain to find unspent coins sent to you (or mined by you). You compose a [transaction](https://en.bitcoin.it/wiki/Transaction) that specifies which unspent coins in the block chain you wish to spend and what account(s) you wish to send those coins to. You can return any 'change' to an account you control. You use the keys in your wallet to sign the transaction.

You then broadcast that transaction to miners. They confirm that your transaction is valid, making sure it spends only coins that exist, are unspent, and that it has the proper signatures. They make sure that the number of coins coming out of the transaction is less than or equal to the number of coins claimed by the transaction. They then commit that transaction into a new block linked into the hash chain, and the transfer is complete.


---

### Answer by username_3 on 2011-10-17. Score: 12

Your coins are stored in addresses in the block chain. Thus your coins and my coins and everyone's coins are stored in every computer which makes up the Bitcoin network. The block chain contains every address in use, and every one that has ever been used along with how many coins are currently at that address.

**This is why hacking your own client or wallet.dat isn't useful. Your coins aren't there they are everywhere.**

For example you can lookup any of your (or anyone elses) addresses here and see the current value.
<http://blockexplorer.com/>

**So what keeps other people from spending YOUR coins?**  
Spending Bitcoins is to create a transaction moving it from one address to another.

To create a transaction requires that you cryptographically sign the transaction with the private key of the address containing the coins (the public key). Since there is a mathematical relationship between public & private keys the rest of bitcoin network can verify that the transaction is properly signed. The "coins" (technically public key addresses and their current value) can be seen by anyone but those coins can only be moved by the persons in possession of the private key.

Your wallet.dat file contains all your public private key pairs. Anyone in possession of you wall.dat file (and encryption passphrase) can sign transactions as the owner of those public addresses and thus has control over the coins. This highlights why you must always safeguard your wallet.dat and encryption passphrase.

This method of storing value is unique to Bitcoin (and subsequent copycat coins).
To sum it up in a pair of sentences:

**Your coins are stored in addresses (public keys), copies are made public and included in every node of the bitcoin network. However the security of those coins are ensured because only the person in possession of the matching private key can create a valid transaction to move them.**

> **Comments:**
> **username_4**: Great explanation. Tx!  
> **username_5**: What happens when you lose your wallet.dat file?  
> **username_6**: @username_3 "Coins" are not entities stored in the blockchain; they're just an abstraction on top of transaction info like balances.  It's the tx info & balances where are stored in the blockchain and associated with addresses.  

---

### Answer by username_7 on 2011-10-17. Score: 6

Your [wallet.dat](https://en.bitcoin.it/wiki/Wallet) contains your keypairs that lets you use your coins. If you lose those, you will lose access to your money.

The actual coins, however, are encoded in the [Blockchain](https://en.bitcoin.it/wiki/Blockchain). Each time you make a payment with your coins, you have to refer to the last time you made such a payment, so everyone can check if you balance is right. When making a payment, you specify both how many coins you are spending and how much coins you have left. If you manipulate your transaction and state a wrong value, people that will check your transaction will know and will reject it.

There is no place the coins are stored as you'd store physical currency. It is more like a bank balance - just a number. But since all transactions are transparent, everyone would know if you are trying to cheat.

> **Comments:**
> **username_0**: Where is that block-chain database stored?  
> **username_8**: A copy of it is stored on every computer running the Bitcoin software.  
> **username_7**: Blockchain is distributively stored by computers running the Bitocoin software. Most clients do not store the complete blockchain (as it is on the order of 1GB of size), but they store the transactions they are interested in (as in, the ones that have coins that belong to them and the newest blocks). Some clients, however, store the whole blockchain. So, everyone has some blocks, some people have all blocks, and there are multiple copies of the same block stored across the internet.  
> **username_8**: username_7, you're talking about a lightweight client which, to the best of my knowledge, has not yet been implemented. Currently all clients store the whole blockchain.  
> **username_7**: Oh, I guess I must've gotten my info wrong somewhere. Sorry about that.  
> **username_9**: username_8, it has been implemented but not in the main client. What username_7 is talking about is a "selfish client" as implemented primarily on mobile devices. BitcoinJ, the Java port of Bitcoin currently in use on mobile devices does in fact store only block headers and blocks containing transactions of interest. This has been the subject of [at least one question](http://bitcoin.stackexchange.com/questions/478/how-do-i-reduce-the-size-the-block-chain-data-on-my-machine) though I'd love to see more - it's an interesting topic.  

---

### Answer by username_8 on 2011-10-17. Score: 3

Information on how many bitcoins belong to each address is stored on a data structure called "the block chain". A copy of this data exists on every node on the Bitcoin network (that is, every computer which has the Bitcoin client software installed has information about all bitcoins in existence). The block chain follows certain rules that make sure that even if one manages to hack most of the stored copies of it, he'll be unable to credit himself with more coins.

The information required to grant you access to the bitcoins owned by your addresses, is stored in the wallet.dat file on your computer. Stealing an unencrypted version of it allows stealing your coins, so it should be guarded (a wallet encryption feature has been recently added to the client, and even better security features are in the works).


---

### Answer by username_10 on 2017-01-05. Score: 1

Bitcoin tokens don't actually "belong" to addresses. The idea of an address is purely a convenient abstraction. Addresses don't truly have a balance (nor does the Bitcoin blockchain even understand that addresses exist), but referring to an address balance is simply a quick way to refer to the total sum of tokens stored in unspent outputs which the owner of a particular address has the ability to spend.

In Bitcoin (and similar UTXO-based blockchains), tokens are "stored" in unspent outputs. The sender of a transaction specifies the requirements that must be fulfilled in order for the transaction's outputs to be spent. Tokens that are "sent" to an address are actually just stored in an output which requires the spender to prove ownership of their address by providing the public key their address is derived from along with a valid signature of the new transaction they wish to create to spend the original output.

The minor distinction between addresses "storing" tokens and addresses being able to spend tokens stored in outputs is important, and allows the creation of more advanced types of transactions (such as P2SH which enables multisig, timelocked and hash-encumbered transactions which allow technologies like atomic swaps and payment channels to function, etc.)


---

### Answer by username_11 on 2020-09-21. Score: 0

A Bitcoin (BTC) is not a physical object. Conceptually speaking we can say that BTC (in the digital world) is somehow like water in the physical world. Just like there is a finite amount of water on earth there is a finite amount of BTC on the Blockchain. Just like a water quantity can be split into its smallest quantum (an H2O molecule), a quantity of BTC can be split into its smallest quantum, a Satoshi (0.00000001 BTC). A quantity of BTC is represented by a number, such as 3,728BTC. So, if a number can represent some BTC then all that is required to store some BTC is the ability to record a number. In the digital world you store information in files. Hence, Bitcoins are literally stored into files. What these files contain are (amongst other information) a whole bunch of addresses to which are sequentially attached a number, the actual amount of BTC to a specific address.

A Block is a bunch of addresses with its corresponding number ( the amount of BTC) that has been verified by miners. The Block is "locked", approved and spread over all the Blockchain nodes around the world. That newly created (approved) Block is then attached at the end of the Blockchain in every nodes. Once this action is done it is irreversible (according to the Bitcoin Algorithm, which is the consensus amongst all nodes).

So, where are the user's Bitcoin actually stored? They are stored in the approved Blocks part of the single one and only version Blockchain, which a copy exist in every computer running a node around the world.

When you want to "spend" some BTC for a purchase of some kind, you need your unique private number to open the possibility to change the amount of BTC attached to a particular address such that this amount is allowed to be transferred into another address (the recipient address). All these number are what's recorded in the upcoming new Block, the one that will include your newly created transaction.

This whole strategy is described with words that find parallel in the physical world, such as wallet, money, account, and more. All these concepts are digitally represented in the numbers stored in those files called Blocks.

> **Comments:**
> **username_12**: While the general gist is right, this answer is oversimplifying. "Quantities of BTC" are stored in [tag:UTXO], they are a bit more than just an address and a number, most notably there is a cryptographic lock to spending. Also, blocks are not irreversible. The chaintip is always probabilistic. A block could be overtaken by a competing chaintip and end up not being part of the best chain. Check out the tag [tag:chain-reorganization] to read more.  
> **username_11**: Good point username_12. Thanks for the comment. My intention was to offer a view that would have helped me back when I was first introduced to cryptocurrencies. I wish someone could have explained it as such. It would have saved me hours of research.  

---

### Answer by username_13 on 2017-12-18. Score: 0

In addition to the actual question and the answers posted, it's important to note that the concept of ownership is slightly different in Bitcoin. You don't actually "own" the coins you have, you merely have the right to "control" them however you please, as only you "own" the key to do so.


---

