Closed leeduckgo closed 6 years ago
The codes are as follows:
EOS = require("eosjs"); eosconfig = { chainId: "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906", httpEndpoint: 'https://mainnet.genereos.io', }; const eos = new EOS(eosconfig); eos.getProducers(true, undefined, 200).then(result => { console.log(result) });
The version of Nodejs/npm/eosjs are the same.
Instead of new EOS use EOS()
new EOS
EOS()
The codes are as follows:
The version of Nodejs/npm/eosjs are the same.