.. | ||
check_blobtx.js | ||
faucet_request.js | ||
get_perf.js | ||
getslashcount.js | ||
gettxcount.js | ||
getvalidatorversion.js | ||
package.json | ||
README.md |
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)
3. Get Performance
node get_perf.js --rpc ${url} --startNum ${start} --endNum ${end}
output as following
Get the performance between [ 19470 , 19670 )
txCountPerBlock = 3142.81 txCountTotal = 628562 BlockCount = 200 avgBlockTime = 3.005 inturnBlocksRatio = 0.975
txCountPerSecond = 1045.8602329450914 avgGasUsedPerBlock = 250.02062627 avgGasUsedPerSecond = 83.20153952412646
4. Get validators slash count
use the latest block
node getslashcount.js --Rpc ${ArchiveRpc}
use a block number
node getslashcount.js --Rpc ${ArchiveRpc} --Num ${blockNum}