In my blockchain, there are 4 accounts registered as block producers. accountnum1
vote for each of them. cleos system listproducers
returns
Producer Producer key Url Scaled votes
accountnum1 key1 https://accountnum1.com 0.2500
accountnum2 key2 https://accountnum2.com 0.2500
accountnum3 key3 https://accountnum3.com 0.2500
accountnum4 key4 https://accountnum4.com 0.2500
I need this information using Eos-sharp
API. I tried following c# code to get it:
var prodList = await r.GetProducers(new EosSharp.Core.Api.v1.GetProducersRequest()
{
json = true,
lower_bound = "1",
limit = 10
});
This returns Vote information for each producer account as 5775596249181922304.00000000000000000
. How can I convert it into simplified one as Scaled votes
0.2500
?
"total_votes": "5775596249181922304.00000000000000000"
.