0
I am new in bitcoin. I am developing a PHP website to let users build their wallet on my website. I want to give every user a wallet. I do not want to give users private keys. I keep private keys, so all their bitcoins owns mine. If everyone wants to spend his/her bitcoins, he/she needs to send a withdrawal request and I will handle it. I want to be able to send user's bitcoin at once with one transaction and one fee. So if I give every user a new address, bitcoins will be a changeed (a little amount in every address). So spending them needs lots of fee. What should I do? I am using blockcypher's API. Is there any other API can help? What senario should I do to achieve all above targets? thanks.
Bitcoin shows that a bank is not needed. And you want to be the bank.... Right? Well you have to pay the fees if you store the coins on multiple addresses. You can't do anything else. – ndsvw – 2018-03-11T16:43:40.307
@Alpha : For example in blockchain.info there is a wallet and lots of addresses associated with the wallet. If you pay to one or two of the addresses, bitcoin will be gathered in one place and you can spend them in one transaction. My question is How does blockchain.info do that?? – Meysam Valuyan – 2018-03-11T17:05:27.960
Yes, that's possible. You can add multiple UTXO. Almost every wallet supports this, but I can't explain you how it works exactly. – ndsvw – 2018-03-13T07:26:58.720