Bitcoin Forum
October 20, 2017, 09:41:12 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Help 4 friend. script multiple payments via list of addresses  (Read 882 times)
r3wt
Hero Member
*****
Offline Offline

Activity: 686


always the student, never the master.


View Profile
May 24, 2013, 04:42:05 AM
 #1

he is currently running a bitcoin faucet script he downloaded from god knows where. he got hacked, and his money was drained. in order to advert this, he has decided he wants to manually send then via his home computer. i've already scripted it up to save the addresses to a text file he can login to the admin interface and copy and paste into a script. i do not know the first thing about the bitcoin client, and i was wondering if it were possible to script multiple payments by copying the addresses into a config file or some type of script. he lost almost everything but is willing to make a donation to anyone who can help solve this problem.

My negative trust rating is reflective of a personal vendetta by someone on default trust.
1508492472
Hero Member
*
Offline Offline

Posts: 1508492472

View Profile Personal Message (Offline)

Ignore
1508492472
Reply with quote  #2

1508492472
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508492472
Hero Member
*
Offline Offline

Posts: 1508492472

View Profile Personal Message (Offline)

Ignore
1508492472
Reply with quote  #2

1508492472
Report to moderator
1508492472
Hero Member
*
Offline Offline

Posts: 1508492472

View Profile Personal Message (Offline)

Ignore
1508492472
Reply with quote  #2

1508492472
Report to moderator
1508492472
Hero Member
*
Offline Offline

Posts: 1508492472

View Profile Personal Message (Offline)

Ignore
1508492472
Reply with quote  #2

1508492472
Report to moderator
scintill
Sr. Member
****
Offline Offline

Activity: 448


View Profile WWW
May 24, 2013, 10:03:37 PM
 #2

The "sendmany" RPC command is what you want.  I think the default "account name" is just an empty string.  So if your script can generate a command like
Code:
sendmany '' '{"1qkfasdf...":0.01,"1ert90lO...":0.01}'
, in new bitcoin-qt clients you can paste that into the debug console (Help > Debug window > Console) and it should send the specified amounts to the specified addresses, in one transaction.

1SCiN5kqkAbxxwesKMsH9GvyWnWP5YK2W | donations
r3wt
Hero Member
*****
Offline Offline

Activity: 686


always the student, never the master.


View Profile
May 24, 2013, 10:31:36 PM
 #3

The "sendmany" RPC command is what you want.  I think the default "account name" is just an empty string.  So if your script can generate a command like
Code:
sendmany '' '{"1qkfasdf...":0.01,"1ert90lO...":0.01}'
, in new bitcoin-qt clients you can paste that into the debug console (Help > Debug window > Console) and it should send the specified amounts to the specified addresses, in one transaction.

thanks man! you have given me a great idea how to accomplish this in a way where my client can login, copy the script from a text field that loads the file, paste it into the console and then clear the text file and save it. thanks again so much!!! pm me where to send a donation.

My negative trust rating is reflective of a personal vendetta by someone on default trust.
scintill
Sr. Member
****
Offline Offline

Activity: 448


View Profile WWW
May 25, 2013, 12:38:16 AM
 #4

thanks man! you have given me a great idea how to accomplish this in a way where my client can login, copy the script from a text field that loads the file, paste it into the console and then clear the text file and save it. thanks again so much!!! pm me where to send a donation.

No problem, and thank you for the donation!  I will PM.  I will try to help if you have further questions.  One thing I am not sure of is accounts, but I know there is a "listaccounts" command to see the balances of the accounts and "move" to move a sum from one account to another (not a blockchain transaction, just bookkeeping within the client.)  The page I linked has information on those commands.

1SCiN5kqkAbxxwesKMsH9GvyWnWP5YK2W | donations
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1456



View Profile
May 25, 2013, 12:43:57 AM
 #5

Just be careful not to have repeated addresses on the list or it will fail.

scintill
Sr. Member
****
Offline Offline

Activity: 448


View Profile WWW
May 25, 2013, 12:57:07 AM
 #6

Just be careful not to have repeated addresses on the list or it will fail.

Good point, you would have to sum up repeated address payouts first.

1SCiN5kqkAbxxwesKMsH9GvyWnWP5YK2W | donations
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!