vcash / rpc
v.cash rpc client
dev-master
2016-08-17 04:52 UTC
Requires
- php: >=5.5.9
- ext-curl: *
This package is not auto-updated.
Last update: 2024-11-23 20:04:25 UTC
README
how to use
- Clone the project from github.
- Run
$ composer install
- 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