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
|
|
|
|
mainnet validators version
|
|
|
|
```bash
|
|
|
|
npm run startMainnet
|
|
|
|
```
|
|
|
|
testnet validators version
|
|
|
|
```bash
|
|
|
|
npm run startTestnet
|
|
|
|
```
|
|
|
|
Transaction count
|
|
|
|
```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
|
|
|
```
|