<p>The information that ends up on the blockchain is the balance of all the payments between us. </p>

<p>Imagine I commit to up to $200 going to you, and you do the same to me. That's the opening transaction on the blockchain. If I send you $100, and you send me $80, that's just between you and me. All the blockchain cares about is what happened to the final $20: in the closing transaction on the blockchain, that $20 is seen being sent from me to you.</p>

<p>Very simplified :-)</p>

CC BY-SA 4.0
2019-01-25T16:52:20.720Z
2019-01-25T16:52:20.720Z
Alistair Mann
<p>It doesn't.</p>

<p>From the point of view of the blockchain there are just 2 transactions: one going into an exchange address the other is going out of an exchange address.</p>

<p>For example:</p>

<ol>
<li>You sent 0.1 btc to an exchange <strong>[recorded on blockchain]</strong></li>
<li>Some other people send other amounts to that exchange (exchange controls all these addresses) <strong>[recorded on blockchain]</strong></li>
<li>You make 0.05 btc on a trade (that means somebody else lost that 0.05 btc) <strong>[NOT recorded on blockchain]</strong></li>
<li>You withdraw 0.15 btc minus any trading fees</li>
<li>Exchange sends yours 0.1 btc + somebody else's 0.05 btc to you (they might use a couple of addresses that they sent from, or they might use a cold storage address) <strong>[recorded on blockchain]</strong></li>
</ol>

<p>The only transactions that are recorded on the blockchain are 0.1 btc from you, other deposits from other people, and you withdrawal of 0.15 btc as per example above. Any trades that are happening on the exchange are happening in their own database.</p>

<p>Also exchanges might consolidate balances into hot or cold address. So you might notice that after you sent 0.1 btc to an address that an exchange provided to you, that 0.1 immediately left that address to an address that has a large balance, but your funds are still displaying on your exchanges's account. That is because it is now handled by their internal database.</p>

CC BY-SA 4.0
2019-01-26T15:05:21.337Z
Finally a clear and concise answer about this topics. Have waste a lot of time reading another ones here lacking this clarity and didactic. Thank you very much!
I wasn't aware about that hot or cold wallet concept, could you please explain it in a few words?
Emerson Oliveira
CC BY-SA 4.0
2019-01-28T17:38:15.930Z
In theory cold address/wallet means it is not exposed to exchange's programming interface. That is, if the exchange gets hacked, the hacker should not be able to gain access to a cold storage. Usually it is handled by a real person at least partially. Hot address/wallet is just a place where all the recent deposits are consolidated and withdrawals are going out from, usually controlled programmatically. So hot address/wallet is used often, 100s of times a day. Cold address/wallet is used less frequently and comes into play whenever there is a large withdrawal that hot wallet can't handle.
WeAreAllSatoshi
CC BY-SA 4.0
2019-01-25T17:55:50.710Z
2019-01-28T17:22:19.220Z
2019-01-28T17:22:19.220Z
WeAreAllSatoshi
<p>Reading the questions and answers on this StackExchange, i've learned that into Exchanges there's no transactions over public blockchains being performed, the funds are exchanged among accounts into the Exchange and a database seems to register and tracking the credited and debited funds of any internal transactions occurred. But, when one wants to withdraw his funds, move them to another exchange or move to a properly wallet, whether it being BTC or any other Altcoin, how does all that information are registered on Blockchain as a lot of other ones were done only internally on an Exchange?</p>

<transactions><blockchain><off-chain>
Where off-chain transactions are registered afterwards?
Emerson Oliveira
# Where off-chain transactions are registered afterwards?

(Asked by: username_0 on 2019-01-25)

Reading the questions and answers on this StackExchange, i've learned that into Exchanges there's no transactions over public blockchains being performed, the funds are exchanged among accounts into the Exchange and a database seems to register and tracking the credited and debited funds of any internal transactions occurred. But, when one wants to withdraw his funds, move them to another exchange or move to a properly wallet, whether it being BTC or any other Altcoin, how does all that information are registered on Blockchain as a lot of other ones were done only internally on an Exchange?

**Tags:** transactions, blockchain, off-chain


---

## 2 answers

### Answer by username_2 on 2019-01-25. Score: 5 | Accepted answer

It doesn't.

From the point of view of the blockchain there are just 2 transactions: one going into an exchange address the other is going out of an exchange address.

For example:

1. You sent 0.1 btc to an exchange **[recorded on blockchain]**
2. Some other people send other amounts to that exchange (exchange controls all these addresses) **[recorded on blockchain]**
3. You make 0.05 btc on a trade (that means somebody else lost that 0.05 btc) **[NOT recorded on blockchain]**
4. You withdraw 0.15 btc minus any trading fees
5. Exchange sends yours 0.1 btc + somebody else's 0.05 btc to you (they might use a couple of addresses that they sent from, or they might use a cold storage address) **[recorded on blockchain]**

The only transactions that are recorded on the blockchain are 0.1 btc from you, other deposits from other people, and you withdrawal of 0.15 btc as per example above. Any trades that are happening on the exchange are happening in their own database.

Also exchanges might consolidate balances into hot or cold address. So you might notice that after you sent 0.1 btc to an address that an exchange provided to you, that 0.1 immediately left that address to an address that has a large balance, but your funds are still displaying on your exchanges's account. That is because it is now handled by their internal database.

> **Comments:**
> **username_0**: Finally a clear and concise answer about this topics. Have waste a lot of time reading another ones here lacking this clarity and didactic. Thank you very much! I wasn't aware about that hot or cold wallet concept, could you please explain it in a few words?  
> **username_2**: In theory cold address/wallet means it is not exposed to exchange's programming interface. That is, if the exchange gets hacked, the hacker should not be able to gain access to a cold storage. Usually it is handled by a real person at least partially. Hot address/wallet is just a place where all the recent deposits are consolidated and withdrawals are going out from, usually controlled programmatically. So hot address/wallet is used often, 100s of times a day. Cold address/wallet is used less frequently and comes into play whenever there is a large withdrawal that hot wallet can't handle.  

---

### Answer by username_1 on 2019-01-25. Score: 1

The information that ends up on the blockchain is the balance of all the payments between us.

Imagine I commit to up to $200 going to you, and you do the same to me. That's the opening transaction on the blockchain. If I send you $100, and you send me $80, that's just between you and me. All the blockchain cares about is what happened to the final $20: in the closing transaction on the blockchain, that $20 is seen being sent from me to you.

Very simplified :-)


---

