Hello, I am trying to figure out how can I get the rewards received by each masternode in each epoch. I am not able to find the rpc call in any documentation for that. I am able to get the masternode candidates ineach epoch using eth_getCandidates
in each epoch, but not able to get the rewards received by each masternode. For getting the owner address for each candidate I use the GetCandidateOwner
function call from the validator contract address, if there is any better way please help me out with that too.
For further actions, you may consider blocking this person and/or reporting abuse
Discussion (6)
Maybe the method
eth_getRewardByHash
can help you, eg:Thank you, I was able to get the data from this. Just need one help, can you please help me understand the data a bit, I figured out the data in the signers key, it contains the candidate address as the key and reward and sign by that address in the object. Can you help me to understand the rewards object, I am not able to figure out that, I see that the key is the candidate address, but then the object has 2/3 more addresses, which seem to be owner addresses but when I check the rewards tab for those, one show rewards being received, while the remaining show no rewards received. I have attached the screenshot of the result.
xdc.dev/uploads/articles/q27yvui6p...
Please use the object '.result.signers' in json. For the below json:
Yes, I am using that, thought .rewards also might be having some significance, so just wanted to understand that, thank you for the help.
You can get some information from the function
HookReward
in the file engine_v1_hooks.go.Okay, thank you, will check