Download the PHP package wpbc/metahash-rewards without Composer
On this page you can find all versions of the php package wpbc/metahash-rewards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wpbc/metahash-rewards
More information about wpbc/metahash-rewards
Files in wpbc/metahash-rewards
Package metahash-rewards
Short Description Automated PHP script for paying Metahash delegation rewards.
License MIT
Homepage https://github.com/WPBC/metahash-rewards
Informations about the package metahash-rewards
Metahash Rewards
Metahash Rewards is a automated PHP script to pay bonus rewards to delegators from MetaHash nodes.
Requirements
- PHP 7.1+
- composer
- xboston/metahash-php 0.2.*
Installation
-
Open your terminal and change the current working directory to the location where you want the cloned directory to be made.
-
Clone repository by typing the following in your terminal:
-
Run the following command in your terminal.
-
Open the index.php and enter your node details in the $nodes array.
-
To skip payments on certain addresses, add the address to the $skipAddresses array.
-
Add any addresses that get paid different percentages from default percentage to the $superAddresses array.
-
To automatically run the reward script. Firstly, run the following command in your terminal to open crontab.
- Set the PHP script to run at 0:02 am everyday by adding the following line to you crontab and pressing enter.
Debug Mode
Debug mode is initially enabled. Whilst in debug, the script will return an array of effective delegations, grouped by address. please note that payments will not be sent.
To disable debug mode, open index.php and set $node->debug to "false".
License
This package is released under the MIT license.