bsc/cmd/jsutils
2024-01-19 16:44:56 +08:00
..
gettxcount.js cmd/jsutil: add --miner when count tx (#2170) 2024-01-19 16:44:56 +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/jsutil: add --miner when count tx (#2170) 2024-01-19 16:44:56 +08:00

Requirement

  • nodejs >= v16.20.2
  • npm >= v8.19.4

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} --miner ${miner} (optional)