Post
Topic
Board Announcements (Altcoins)
Re: XONECOIN // XOC // Reliable chain // Cloud Revenues Platform // D.G.P. // Rare
by
xonecoin
on 06/09/2016, 23:01:09 UTC
Hello,

We started the development of a PHP auto-array XOC address auto exctract from array.
Basically an input like "XXX_XOCADDRESS_XX" will turn into "XOCADDRESS", sent it to a sendmany php script and automatic sent a fixed XOC amount.
It's already working fine by our side, but, in next couple of days we would like to test with some of you via IRC (Do not send us PM, we require active users)
We need 10 XOC address, and they will receive 100 XOC each as "test prize".
Many tests like that will occour weekly. That's a nice way to involve users in test and get rewarded for it.

Code:
include("./jsonRPCClient.php");
$xco = new jsonRPCClient('http://Username:Password@127.0.0.1:xocrpcport');
$account = 'xocarray';
$amount = floatval('100');
$addressfile = "./xocusers.txt";
$recipients = array();
$filelines = file($addressfile);
foreach($filelines as $fileline => $address) {
   $recipients[$address] = $amount;
}
$Transaction_ID = $bitcoin->sendmany($account,$recipients);
echo 'The Transaction ID is: '.$Transaction_ID;