bsc/cmd/jsutils
2024-05-23 15:08:36 +08:00
..
check_blobtx.js utils: add check_blobtx.js (#2463) 2024-05-15 18:17:57 +08:00
faucet_request.js jsutils: faucet successful requests within blocks (#2470) 2024-05-23 15:08:36 +08:00
gettxcount.js cmd/jsutil: dump MinGasPrice for validator (#2314) 2024-03-21 11:35:16 +08:00
getvalidatorversion.js cmd/jsutil: dump MinGasPrice for validator (#2314) 2024-03-21 11:35: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: dump MinGasPrice for validator (#2314) 2024-03-21 11:35:16 +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

1.Get Validator's Information: Version, MinGasPrice

mainnet validators version

    npm run startMainnet

testnet validators version

    npm run startTestnet

2.Get Transaction Count

node gettxcount.js --rpc ${url} --startNum ${start} --endNum ${end} --miner ${miner} (optional)