vcash/rpc

v.cash rpc client

dev-master 2016-08-17 04:52 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:12:57 UTC


README

how to use

  1. Clone the project from github.
  2. Run $ composer install
  3. Create your own file to consume, follow a sample.
<?php
require_once('./vendor/autoload.php');
$server = '127.0.0.1';
$port   = '9195'; 
try {
    $myVcash = new Vcash\Rpc ($server, $port);

    $id = 1337;

    $myRpcGetinfo = $myVcash->getinfo($id);
    $myRpcGetincentiveinfo = $myVcash->getincentiveinfo();

    echo '<h2>Get Info:</h2><pre>'.$myRpcGetinfo.'</pre><br>';
    echo '<h2>Get Icentive Info:</h2><pre>'.$myRpcGetincentiveinfo.'</pre><br>';

}
catch (Exception $e) {
    echo 'Error: ', $e->getMessage() . PHP_EOL;
}
?>

Donations

  • Vcash.: VoocuUCPkz6GnPkimoEjYabvKNSorUJi8m
  • Decred.: DsTipY2uLUWWHy8joQkhGRxnNygow9PZw5b
  • Bitcoin: 1FFvqvprQ1e6YBNoZHfDZvV3Qibph9s2dK