1

I recently became aware of the fact that exchanges have trading engines that execute all trades within the exchange itself, and not on the blockchains. That is to say, if User A sells to User B, there is no corresponding blockchain transaction transferring those coins. Instead, both users have accounts on the exchange which are debited and credited. A blockchain transfer only takes place during deposits and withdrawals.

Please explain the same case for currency like Bitcoin as it manages its assets using UTXO Model which is a record of unspent outputs. And for other currency like Ethereum using the account-balance model as the transactions aren't included in the blockchain. So, how they will reflect changes in the account of a user?

1 Answer 1

5

When you send funds to an exchange, you do not own the UTXOs created. They are owned by the exchange.

Exchanges use the UTXOs from all their wallets to process withdrawals. This means that if you were to deposit and withdraw coins with no trades in between, your withdrawal will still not come from the UTXO created by your deposit. It could come from any of the thousands of UTXOs owned by the exchange (comprising of other peoples' deposits).

It's similar to how your bank account functions. When you deposit cash, the cash you hand over becomes the property of the bank. From that point, any balance that you have solely exists on the banks' internal databases. If that database was tampered with or destroyed, no one can prove you had money there. If you were to withdraw cash, the notes you get back will not be the same ones you deposited, and were likely deposited by some other customer.

Similarly, when you send coins to an exchange, your balance exists solely in the exchange's internal database system. As you make trades, this internal balance is debited and credited. When you withdraw, the coins come from a UTXO set that includes everyone's deposits.

This is also why it is recommended to only keep coins you are actively trading on an exchange, since it leaves you open to the possibility of an exchange losing your money.

3
  • If I am correct then owning a wallet on Exchange is making us only the part of a centralised system which is handling my transaction in their own database. There isn't any record of my account on the decentralised system of the blockchain. Making us again an underdog of the centralised system.
    – idk
    Jun 12, 2018 at 16:46
  • 1
    That's roughly correct. You could use decentralized exchanges such as Etherdelta or Switcheo, if you wish Jun 12, 2018 at 17:56
  • Thank you, The answer was very helpful and If you can share any resource regarding the same will be great.
    – idk
    Jun 12, 2018 at 18:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.