PHP code example of relictumblockchain / rphpsdk
1. Go to this page and download the library: Download relictumblockchain/rphpsdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
relictumblockchain / rphpsdk example snippets
// Create configurator and set node uri
$configurator = new Relictum\RPHPSDK\RequestConfigurator(['config' => ['base_uri' => 'http://190.2.146.126/api/']]);
// Create a new request
$request = new Relictum\RPHPSDK\Request($configurator);
// Output node api version
var_dump($request->getApiVersion()->version);