Title: Need help to write the code for Bitcoin RPC withdrawal to multiple addresses Post by: IGCGamers on August 28, 2017, 02:42:28 PM Hi,
I am developing a code in which i have the below lines to send the withdrawal. $amount1=(double)$_POST['amount_w1']; $wind = $bitcoin->sendtoaddress($address,$amount1); But i want to know how to write the code to send multiple amounts to multiple addresses at a time.. Example - Address one - 0.1 BTC, Address 2 - 0.14 btc, Address 3 - 0.005 btc I want to send all together as a single transaction. How do i do it? What command should i write? When i send multiple transactions in a single transaction, i have to pay the fees only once or multiple times? Can i save the fees if i send multiple withdrawals in a single transaction? Please help me Title: Re: Need help to write the code for Bitcoin RPC withdrawal to multiple addresses Post by: spiker777 on August 29, 2017, 03:52:31 PM Hi, I am developing a code in which i have the below lines to send the withdrawal. $amount1=(double)$_POST['amount_w1']; $wind = $bitcoin->sendtoaddress($address,$amount1); But i want to know how to write the code to send multiple amounts to multiple addresses at a time.. Example - Address one - 0.1 BTC, Address 2 - 0.14 btc, Address 3 - 0.005 btc I want to send all together as a single transaction. How do i do it? What command should i write? When i send multiple transactions in a single transaction, i have to pay the fees only once or multiple times? Can i save the fees if i send multiple withdrawals in a single transaction? Please help me Hi, Do you have bitcoind running and PHP/RPC client for it? PM me please, I can build that function for you for a fair price. Thanks. |