bsc/cmd/jsutils
2023-12-08 13:44:16 +08:00
..
gettxcount.js cmd/jsutils: add 2 tools get validator version and block txs number (#2036) 2023-12-08 13:44:16 +08:00
getvalidatorversion.js cmd/jsutils: add 2 tools get validator version and block txs number (#2036) 2023-12-08 13:44:16 +08:00
package.json cmd/jsutils: add 2 tools get validator version and block txs number (#2036) 2023-12-08 13:44:16 +08:00
README.md cmd/jsutils: add 2 tools get validator version and block txs number (#2036) 2023-12-08 13:44:16 +08:00

Requirement

  • nodejs: v20.10.0
  • npm: v10.2.3

Prepare

Recommend use nvm to manage node version.

Install node.js dependency:

    npm install

Run

mainnet validators version

    npm run startMainnet

testnet validators version

    npm run startTestnet

Transaction count

node gettxcount.js --rpc ${url} --startNum ${start} --endNum ${end}