Skip to content

UltraNote RPC PHP is a PHP wrapper for the UltraNote Infinity JSON-RPC interfaces.

License

Notifications You must be signed in to change notification settings

xun-project/UltraNote-RPC-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

UltraNote-RPC-PHP

UltraNote RPC PHP is a PHP wrapper for the UltraNote Infinity JSON-RPC interfaces.

  1. Install UltraNote RPC PHP
  2. Examples
  3. Docs
  4. License

Install UltraNote Infinity RPC PHP

This package requires PHP >=7.1.3. Requires to download :

ultranotei-rpc-php.php

Examples

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();

Docs

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.

License

UltraNote Infinity RPC PHP is open-sourced software licensed under the MIT license.

About

UltraNote RPC PHP is a PHP wrapper for the UltraNote Infinity JSON-RPC interfaces.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages