1
I know some altcoins have features that allow senders to attach messages to transactions and using those features, exchange services distinguish the sender. However, I don't know if there's such a function in Bitcoin. How can exchanges tell who paid them without such a feature?
But how would they keep the amounts of bitcoin? I mean they will be run out after their users withdraw in the end. – 西田龍 – 2018-06-11T15:04:53.500
They periodically refill the hot wallet with coins from cold storage. However since coins people deposit go into the hot wallet, the hot wallet does not become empty because when someone withdraws, someone else is depositing. – Andrew Chow – 2018-06-11T17:45:22.713
I think unless concentrating the BTC to their address for withdrawals as a user deposits, it would be hard to know how much the user deposited, because if we use BTC from the user's address, we can't distinguish if the transaction is the user's or theirs for their users' withdrawals. – 西田龍 – 2018-06-11T23:29:52.250
Exchanges have their own internal accounting system which they use for tracking user balances. There is no need to have to read the blockchain in order to figure out what the balances are. – Andrew Chow – 2018-06-11T23:55:53.990
I see, but isn't there a concern that the fees for withdrawals transactions become more expensive I mean the number of inputs can be more unless they make an address that has lots of BTC? – 西田龍 – 2018-06-12T08:43:24.410
Fees generally are not a concern since the customer pays them and usually way overpays. Most exchanges will have some flat rate "miner fee" that they charge when you withdraw from them and that "miner fee" is more than enough to cover the actual transaction fee. – Andrew Chow – 2018-06-12T09:06:18.330
I see. By the way, how do they charge the fee of transferring the bitcoins that are not needed currently to their cold wallets in order to prevent being stolen? – 西田龍 – 2018-06-20T16:25:30.457
Since exchanges make money, presumably they eat that cost themselves. User balances do not change, just the expenses of the company increase. – Andrew Chow – 2018-06-20T22:07:32.223
Understand, so what their processes for calculating their users deposits are like know users total received amount of bitcoins by using “getreceivedbyaddrrss” after that, calculate the users funds by using the total received bitcoins plus how much users get benefits/loss, right? – 西田龍 – 2018-06-21T10:30:32.407