Developers Forum for XinFin XDC Network

Discussion on: [Solved] How to get the rewards received by each masternode in each epoch using RPC calls.

Collapse
gzliudan profile image
Daniel Liu • Edited on

Please use the object '.result.signers' in json. For the below json:

  • signer: 0x014428e60faa874f8266d0648c52a83506dd9ec6
  • holders of signer:
    • 0x181fa59072559ec53ab23246f089ad8b78e97089
    • 0x333e300d6b5a3b4857f5421891caf6f7f7e39db9
    • 0x92a289fe95a85c53b8d0d113cbaef0c1ec98ac65
{
  "result": {
    "rewards": {
      "0x014428e60faa874f8266d0648c52a83506dd9ec6": {
        "0x181fa59072559ec53ab23246f089ad8b78e97089": 0,
        "0x333e300d6b5a3b4857f5421891caf6f7f7e39db9": 42870752619879326000,
        "0x92a289fe95a85c53b8d0d113cbaef0c1ec98ac65": 4763416957764369000
      }
}
Enter fullscreen mode Exit fullscreen mode
Thread Thread
david profile image
David Author

Yes, I am using that, thought .rewards also might be having some significance, so just wanted to understand that, thank you for the help.

Thread Thread
gzliudan profile image
Daniel Liu • Edited on

You can get some information from the function HookReward in the file engine_v1_hooks.go.

Thread Thread
david profile image
David Author

Okay, thank you, will check