feat(fsp): add claiming rewards guide#1208
Merged
Merged
Conversation
magurh
reviewed
Feb 20, 2026
|
|
||
| ## Prerequisites | ||
|
|
||
| 1. **Wallet + gas:** A wallet that can sign transactions on the target network, funded with enough native token to pay gas. |
Member
There was a problem hiding this comment.
You mean the executor here? Would be good to mention how to set this up.
|
|
||
| Call: | ||
|
|
||
| 1. `startRewardEpochId = RewardManager.getNextClaimableRewardEpochId(beneficiary)` |
Member
There was a problem hiding this comment.
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`. |
Member
There was a problem hiding this comment.
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.
Member
There was a problem hiding this comment.
| ```bash | ||
| EPOCH_ID=123 | ||
| BENEFICIARY="0xYourBeneficiaryAddressHere" | ||
| CLAIM_TYPE=0 |
Member
There was a problem hiding this comment.
Do we already have a page on the different claim types and number mapping (i.e. 0 -> DIRECT, 1 -> FEE, etc).
EDIT: Seen below
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.