Author

Topic: Need help to write the code for Bitcoin RPC withdrawal to multiple addresses (Read 289 times)

sr. member
Activity: 1007
Merit: 279
Payment Gateway Allows Recurring Payments
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.
sr. member
Activity: 555
Merit: 251
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
Jump to: