eosjs icon indicating copy to clipboard operation
eosjs copied to clipboard

Please add listproducers to eosjs

Open wuyahuang opened this issue 8 years ago • 6 comments

1526907724164

wuyahuang avatar May 21 '18 13:05 wuyahuang

Fixed, try eosjs 12.0.1 https://github.com/EOSIO/eosjs-api/issues/12

jcalfee avatar May 21 '18 13:05 jcalfee

1526913176390

Hello, James, it looks like the rows of getProducers() are encrypted? @jcalfee

wuyahuang avatar May 21 '18 14:05 wuyahuang

Interesting .. maybe they are serialized.. I'll ask about this thanks.

jcalfee avatar May 21 '18 21:05 jcalfee

There seems to be no problem with dawn-v4.1.0.

It seems that the list_producers_subcommand of cleos of the master branch does not add decrypt code separately, and does not seem to do ecrypt. I will test the master branch later.

yepp4you avatar May 21 '18 23:05 yepp4you

Set json=true to produce a json result instead of a serialized result. Or, if you want to deserialize on the receiving end, it's the system abi's producer table in serialized form.

tbfleming avatar May 22 '18 01:05 tbfleming

eos.getProducers({json:true}) Great, thanks, it works for me. @tbfleming

wuyahuang avatar May 22 '18 02:05 wuyahuang