PHPackages                             wpbc/metahash-rewards - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wpbc/metahash-rewards

ActivePackage[Utility &amp; Helpers](/categories/utility)

wpbc/metahash-rewards
=====================

Automated PHP script for paying Metahash delegation rewards.

0.2.4(6y ago)7483[6 issues](https://github.com/WPBC/metahash-rewards/issues)MITPHPPHP &gt;=7.1

Since Jul 27Pushed 1y ago6 watchersCompare

[ Source](https://github.com/WPBC/metahash-rewards)[ Packagist](https://packagist.org/packages/wpbc/metahash-rewards)[ Docs](https://github.com/WPBC/metahash-rewards)[ RSS](/packages/wpbc-metahash-rewards/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (1)Versions (9)Used By (0)

Metahash Rewards
================

[](#metahash-rewards)

Metahash Rewards is a automated PHP script to pay bonus rewards to delegators from [MetaHash](https://metahash.org) nodes.

### Requirements

[](#requirements)

- PHP 7.1+
- composer
- xboston/metahash-php 0.2.\*

### Installation

[](#installation)

1. Open your terminal and change the current working directory to the location where you want the cloned directory to be made.

```
$ cd path/to/your/folder/metahash-rewards/
```

2. Clone repository by typing the following in your terminal:

```
$ git clone git@github.com:WPBC/metahash-rewards.git
```

3. Run the following command in your terminal.

```
$ composer install
```

4. Open the index.php and enter your node details in the $nodes array.

```
$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
];
```

5. To skip payments on certain addresses, add the address to the $skipAddresses array.

```
$skipAddresses = [
    '0x0072578dg76acc75554erg84es81seg4esg14se84841wfaw87',
    '0x00256841dg47csca774de4gib6154see8451ff151841ddsd11'
];
```

6. Add any addresses that get paid different percentages from default percentage to the $superAddresses array.

```
$superAddresses = [
    '0x0072578dg76acc75554erg84es81seg4esg14se84841wfaw87' => 90, // 90%
    '0x00256841dg47csca774de4gib6154see8451ff151841ddsd11' => 85, // 83%
];
```

7. To automatically run the reward script. Firstly, run the following command in your terminal to open crontab.

```
$ crontab -e
```

8. Set the PHP script to run at 0:02 am everyday by adding the following line to you crontab and pressing enter.

```
$ 2 0 * * * /usr/bin/php /metahash-rewards/example/index.php >> /metahash-rewards/example/log.log 2>&1
```

### Debug Mode

[](#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-&gt;debug to "false".

```
$rewards->debug = true;
```

### License

[](#license)

This package is released under the MIT license.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~34 days

Recently: every ~51 days

Total

7

Last Release

2274d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d9691fc8ea5f24730fa912a2a3716abcc7a5b65934ad1fe4b038016a79386dfe?d=identicon)[wesleycampbell](/maintainers/wesleycampbell)

---

Top Contributors

[![WPBC](https://avatars.githubusercontent.com/u/52362594?v=4)](https://github.com/WPBC "WPBC (63 commits)")[![xboston](https://avatars.githubusercontent.com/u/201306?v=4)](https://github.com/xboston "xboston (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")

---

Tags

metahashmetahash-rewardsphpmetahash

### Embed Badge

![Health badge](/badges/wpbc-metahash-rewards/health.svg)

```
[![Health](https://phpackages.com/badges/wpbc-metahash-rewards/health.svg)](https://phpackages.com/packages/wpbc-metahash-rewards)
```

###  Alternatives

[solidworx/toggler

Feature toggle library

2157.6k](/packages/solidworx-toggler)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
