Skip to content

feat(fsp): add claiming rewards guide#1208

Merged
dineshpinto merged 4 commits into
mainfrom
claiming-rewards
Feb 20, 2026
Merged

feat(fsp): add claiming rewards guide#1208
dineshpinto merged 4 commits into
mainfrom
claiming-rewards

Conversation

@dineshpinto
Copy link
Copy Markdown
Contributor

No description provided.


## Prerequisites

1. **Wallet + gas:** A wallet that can sign transactions on the target network, funded with enough native token to pay gas.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean the executor here? Would be good to mention how to set this up.


Call:

1. `startRewardEpochId = RewardManager.getNextClaimableRewardEpochId(beneficiary)`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you want rewardManager instead of RewardManager based on the above instance. Same below


### 4. Fetch reward distribution tuples

For each signed epoch, fetch `reward-distribution-data-tuples.json`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth mentioning that the fsp-rewards repo contains data computed by the Flare-Foundation with the publicly available reward scripts. Data providers are encouraged to run the scripts themselves and check that they obtain the same results.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```bash
EPOCH_ID=123
BENEFICIARY="0xYourBeneficiaryAddressHere"
CLAIM_TYPE=0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we already have a page on the different claim types and number mapping (i.e. 0 -> DIRECT, 1 -> FEE, etc).

EDIT: Seen below

@dineshpinto dineshpinto merged commit cfad301 into main Feb 20, 2026
13 checks passed
@dineshpinto dineshpinto deleted the claiming-rewards branch February 20, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants