Transfer bitcoins from one wallet to another

0

1

We have started building a bitcoin exchange. Now we basically want to create and address that let users keep their bitcoin asset on that address and we will charge minimal fees to them when they withdraw it.

Now I have api key for my blockchain.info account now if we create an address for user let them deposit bitcoin and then transfer the assets to an address given by user, using api url below

http://localhost:3000/merchant/$guid/payment?password=$main_password&second_password=$second_password&to=$address&amount=$amount&from=$from&fee=$fee

Where will the fee be received?

Please suggest

LearningPal

Posted 2018-06-02T09:42:35.287

Reputation: 103

Answers

0

The fee you are referring to is the fee paid to the miners (not to you) for the transaction. The miner (or mining pool) who is lucky enough to solve the block is going to receive all the fees from all of the transactions on that block. It will be unknown who will receive the fee it until the block is solved. For more information, see Bitcoin Transaction Fees. If you want them to pay you a fee, then you have to create a separate transaction for that.

JBaczuk

Posted 2018-06-02T09:42:35.287

Reputation: 6 172

Thank you. So I can use this api to create addresses for users and transfer their assets to any given addresse by users right?LearningPal 2018-06-03T06:16:53.267

It appears to be the case: https://blockchain.info/api/blockchain_wallet_api

JBaczuk 2018-06-03T15:43:21.453