Skip to main content

Miner rewards: how to claim

A miner reward is not sent to the miner's balance at the end of an epoch. It accumulates in the rewards accumulated account owned by the registration owner account (for new registrations that is the miner account itself). The reward reaches the balance when that account claims it. This page explains how the reward is computed, when it moves into the account, and how to claim it.

Stakers are not affected: their payouts are settled at every epoch, see Staking rewards.

How a reward is computed​

Your score is fixed at the moment the work is credited. Each credited work is scored with your reputation and your status at that moment: the credited work multiplied by your reputation and by the part of the reward your current status keeps. An active miner keeps all of it, a reward reduction keeps everything except the cut part, and a ban keeps nothing.

At each epoch boundary, the reward pool of every task is published on chain. Here an epoch is the Neuronet's own epoch, set by its tempo (360 blocks by default, about 72 minutes), not the network-wide 7,200-block epoch. The event TaskMinerRewardPublished carries the task's pool and the total score of its miners for that epoch. Where verifier rewards are on (mainnet today) and the task's work was verified in that epoch, the verifiers' share is set aside before the pool is published.

Your share of a closed epoch equals the task's pool multiplied by your score and divided by the task's total score, rounded down. The small remainder left from the division goes back to the pool of unearned rewards.

Where the reward goes​

Your share moves to the accumulated account of your registration's owner account (MinerRewardEscrow). This happens on its own:

  • the next time you do work in a new epoch;
  • when you register in a task;
  • when you claim.

The event MinerRewardAccrued reports the move. At that moment the reward is accrued, but not paid: it sits in the accumulated account, not in the balance.

Nothing burns: accumulated rewards stay in the account for as long as needed, including after you leave a task and even after the Neuronet is dissolved.

A few rules decide what counts:

  • Leaving a task before an epoch boundary forfeits that epoch's share. Shares of epochs that already closed stay yours.
  • A critical fraud penalty zeroes your share for the current epoch (event MinerScoreForfeited). The other miners of that task share the pool instead. Shares of past epochs, the accumulated account and rewards already claimed are not taken away. A lighter penalty affects only the work credited while it is in force.

How to claim a reward​

The reward reaches the balance through a single call, claim_miner_rewards (call 198 of the AetronPoI pallet). First it moves each ready share of the signer into the accumulated account of the account that owns its registration, then pays the signer everything accumulated in its own account. The hotkey argument (the miner address) can only be left empty or set to the signer; any other account is rejected with NotMinerHotkeyOwner. If there is nothing to move or pay, the call fails with NothingToClaim. A claim pays the usual transaction fee.

With the miner​

If your miner has the aetron-miner rewards command, it claims the reward for you. The daemon looks at the chain once a minute and claims on its own when two conditions hold:

  • the miner account owns its registration, which is how new registrations work;
  • the amount you can claim has reached the threshold, 1 AET by default.

The wallet must be unlocked, because the claim is signed with the miner's key. If the miner has no rewards command, it does not claim the reward; use a wallet as described below.

To see where your rewards stand:

aetron-miner rewards

The command shows the accumulated account, the amount you can claim now (the account plus ready shares), the shares that are not ready yet with their Neuronet, task and epoch, whether automatic claiming is on and what it is waiting for, and the last claim. To claim at once, whatever the threshold:

aetron-miner rewards claim

With the --json flag, either command prints the daemon's answer as JSON, with amounts in planck as strings.

To turn automatic claiming off, set auto_claim = false in the [rewards] table of the config, or set AETRON_AUTO_CLAIM=0. The threshold is set by claim_threshold_planck in the same table, or by AETRON_CLAIM_THRESHOLD_PLANCK. See Configuration.

Registrations with a separate owner account​

Now every miner registers with one account, which is also the owner of the registration. Older registrations have a separate owner, and the accumulated account belongs to it: only the owner can claim the reward by signing the call with its key. The miner does not hold that key, so it does not claim on its own, and aetron-miner rewards reports that.

The simplest way is an AETRON wallet with the owner account: its miner rewards screen shows what can be claimed, and the Claim button sends the call. Any other Substrate wallet can sign it too. In polkadot.js:

  1. Open Developer → Extrinsics and connect to the network.
  2. Choose aetronPoI → claimMinerRewards(hotkey).
  3. Sign with the account that owns the accumulated account and leave hotkey empty. The field accepts only the signer's own address or nothing.
  4. Submit. What the signing account has accumulated is paid to its balance, and the MinerRewardsClaimed event shows the amount.

The miner's ready shares move into the owner's account when the miner works in a new epoch or claims on its own, so a claim from the owner account pays what has already moved.

Where to see your rewards​

  • Explorer. The account page has a "Miner rewards" card with accrued, claimable and claimed rewards for each miner address, plus instructions for claiming. The Neuronet page has a "Reward pools" tab with each task's published pools. The explorer shows rewards but does not claim them.
  • Miner. aetron-miner rewards, as above.
  • Blockchain. MinerRewardEscrow holds the accumulated account of every account that owns a registration. A miner's full reward balance is what is accumulated in the account plus shares that are ready but not yet moved. The calls, events and storage items are listed in the Chain reference.

Where to go next​