Issue
I am using the method here (QueryDelegationRewardsRequest) in java to try to get a delegator's rewards with a validator, and I get 43,959,458,898,830,411,000,000,000 uatom
, whereas in the blockchain scanner it shows 50531742 uatom
. Is this not the correct method to get an address's rewards? If so, what is the right one and what does this massive number even mean?
Solution
So apparently the result you are given is in a decimal number with a 18 scale, even though it doesn't show the dot anywhere, so the number above is equal to 43959458 uatom
Answered By - vietnamese_chowder
Answer Checked By - Dawn Plyler (JavaFixing Volunteer)