1. Go to this page and download the library: Download wpbc/metahash-rewards 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/ */
wpbc / metahash-rewards example snippets
$nodes = [
'address' => '', // Node address. Example - 0x0....
'private_key' => '', // Node private Key. Example 3074020... or 3077020...
'data' => '', // Text data sent with transaction. Example - Reward from my SuperNode
'percentage' => 80, // Default percentage paid to delegators.
'superAddresses' => $superAddresses
];