Claiming Rewards Using The FTSO Reward Manager | Songbird Network
There may come a time where you want to interrogate the FTSO Reward Manager, to verify the status of your rewards or to claim them directly, as opposed to using a wallet or other UI - in this tutorial I'll show you how.
The FTSO Reward Manager is accessible via the Songbird Explorer.
I suggest you bookmark this url https://songbird-explorer.flare.network now.
Songbird Explorer
The Songbird Explorer contains all the transactions performed on the Songbird Network. It should be the first place you go, when seeking further detail, regarding transactions to and from your wallet address.
To familiarise yourself with how it works, I suggest you first enter your wallet address in the top right hand corner and press enter.
You'll now see the transaction history for your address in the main dialog box. You'll also see Tabs for Internal Transactions and Coin Balance History. Navigating these tabs will show you data you should be familiar with.
If there's ever a time you're unsure if a transaction has been successfully completed or not, this is the place to check.
FTSO Reward Manager
To acccess the FTSO Reward Manager you need to enter the following address in the top right hand field 0xc5738334b972745067fFa666040fdeADc66Cb925 and press enter. You can also just type in FtsoRewardManager and you'll see it appear.
You should see that you're accessing the correct by checking the name here.
You'll notice there's more tabs available, specifically Read Contract & Write Contract.
Read Contract
Selecting Read Contract will allow you to perform various checks including checking epochs with unclaimed rewards or the rewards claimed on a certain epoch.
Let's look at checking to see if there's any unclaimed rewards.
This is done by querying number 11. getEpochsWithUnclaimedRewards
Enter your wallet address and press the Query button.
The FTSO Manager will now query your wallet address and output any epochs with unclaimed rewards in the window below.
In the case of this example, there's no epochs with unclaimed rewards. If there is, you'll see a number in this location.
Now to query the rewards paid from a previous epoch.
This time we'll be using 14. getStateOfRewards
Enter your address in the beneficiery field, the epoch number you wish to check and then hit the Query button.
The output will again appear in the window below. To arrive at a meaningful number, you'll need to insert a decimal 18 places to the left, from the end of the number, so 24311884823976827839 becomes 24.31 which is how many SGB you've earned.
Write Contract
Next let's look at claiming rewards directly from the contract, for this we'll need to use the Write Contract.
You'll need to have your wallet connected so you can authorise the transaction into your account.
When you've connected your wallet you'll see it displayed here.
Now you want to use 3. claimReward by entering in the recipient wallet address, the epoch number you're claiming and then press the Write button.
You'll be prompted to sign the transaction just as if you were doing it using app.au.cc/rewards.
The above claiming steps can be taken at any time or if you're having issues claiming through a wallet.
Useful Information
If you're new to Flare Networks and Songbird you might find our Getting Started index of posts and pages useful. It includes a post, Delegation Factors To Consider which is worth reading.
Other relevant posts include Connecting MetaMask Wallet For Songbird & How To Wrap, Unwrap & Delegate Songbird Tokens.
If you're having troubles, please contact us on Twitter, or Discord.