2023-12-08 08:44:16 +03:00
|
|
|
## Requirement
|
|
|
|
|
2024-01-19 11:44:56 +03:00
|
|
|
- nodejs >= v16.20.2
|
|
|
|
- npm >= v8.19.4
|
2023-12-08 08:44:16 +03:00
|
|
|
|
|
|
|
## Prepare
|
|
|
|
Recommend use [nvm](https://github.com/nvm-sh/nvm) to manage node version.
|
|
|
|
|
|
|
|
Install node.js dependency:
|
|
|
|
```shell script
|
|
|
|
npm install
|
|
|
|
```
|
|
|
|
## Run
|
2024-03-21 06:35:16 +03:00
|
|
|
### 1.Get Validator's Information: Version, MinGasPrice
|
2023-12-08 08:44:16 +03:00
|
|
|
mainnet validators version
|
|
|
|
```bash
|
|
|
|
npm run startMainnet
|
|
|
|
```
|
|
|
|
testnet validators version
|
|
|
|
```bash
|
|
|
|
npm run startTestnet
|
|
|
|
```
|
2024-03-21 06:35:16 +03:00
|
|
|
|
|
|
|
### 2.Get Transaction Count
|
2023-12-08 08:44:16 +03:00
|
|
|
```bash
|
2024-01-19 11:44:56 +03:00
|
|
|
node gettxcount.js --rpc ${url} --startNum ${start} --endNum ${end} --miner ${miner} (optional)
|
2023-12-08 08:44:16 +03:00
|
|
|
```
|