This package requires PHP >=7.1.3. Requires to download :
ultranotei-rpc-php.php
require_once('ultranotei-rpc-php.php');
$config = [
'rpcUrl' => 'http://localhost:8060/json_rpc',
'rpcUser' => 'theusername',
'rpcPassword' => 'thepassword'
];
$ultranoteid = new XuniCoin($config);
echo $ultranoteid->getStatus()>blockCount;
> 39375
require_once('ultranotei-rpc-php.php');
$config = [
'rpcUrl' => 'http://localhost:8060/json_rpc',
'rpcUser' => 'theusername',
'rpcPassword' => 'thepassword'
];
$ultranoteid = new XuniCoin($config);
echo $ultranoteid->createAddress();
> 'Xuniik72MxR2Cn29BzvVcsPmPn2NxNPGHfpYocW7CrjhLVs928LUmgfBJnVJE1xoHy8fdL3dVcLzF49J9Y8SsryHYMWMX4BySs3'
// Or more functions
$ultranoteid->deleteAddress($address);
$ultranoteid->getUnconfirmedTransactionHashes($address);
$ultranoteid->getTransactions($firstBlockIndex,$blockCount);
$ultranoteid->getTransaction($transactionHash);
$ultranoteid->sendTransaction($from,$to,$ammount);
$ultranoteid->sendTransactionAdvanced($params);
$ultranoteid->reset();
$ultranoteid->save();
Documentation of the Ultranote Infinity RPC API and more PHP examples for this package can be found at https://wiki.ultranote.org/ultranote_coin_daemon.html.
UltraNote Infinity RPC PHP is open-sourced software licensed under the MIT license.