Bitcoin Forum
May 12, 2024, 10:30:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need help to write the code for Bitcoin RPC withdrawal to multiple addresses  (Read 273 times)
IGCGamers (OP)
Sr. Member
****
Offline Offline

Activity: 555
Merit: 251


View Profile
August 28, 2017, 02:42:28 PM
 #1

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
1715553024
Hero Member
*
Offline Offline

Posts: 1715553024

View Profile Personal Message (Offline)

Ignore
1715553024
Reply with quote  #2

1715553024
Report to moderator
1715553024
Hero Member
*
Offline Offline

Posts: 1715553024

View Profile Personal Message (Offline)

Ignore
1715553024
Reply with quote  #2

1715553024
Report to moderator
If you want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715553024
Hero Member
*
Offline Offline

Posts: 1715553024

View Profile Personal Message (Offline)

Ignore
1715553024
Reply with quote  #2

1715553024
Report to moderator
1715553024
Hero Member
*
Offline Offline

Posts: 1715553024

View Profile Personal Message (Offline)

Ignore
1715553024
Reply with quote  #2

1715553024
Report to moderator
spiker777
Sr. Member
****
Offline Offline

Activity: 997
Merit: 279


#SWGT CERTIK Audited


View Profile WWW
August 29, 2017, 03:52:31 PM
Last edit: January 31, 2018, 03:43:03 PM by spiker777
 #2

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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!