This script is used to run load testing on the QUAI network. It uses a collection of wallets and sends transactions between them to test the network's capabilities.
- Node.js v14 or higher
- NPM v6 or higher
- Wallet data in
wallets.json
file
- Clone the repository:
git clone https://github.com/dominant-strategies/quai-transactor
- Install the dependencies:
cd quai-transactor
npm i
Ensure that the go-quai node is exposing the txpool api on both HTTP and WS.
You can run the script by using the following command.
node index.js --group <group_num> --zone zone-<region_num>-<zone_num> --host <your_host>
Or you can use the short form of the options:
node index.js -g <group_num> -z zone-<region_num>-<zone_num> -h <your_host>
Here is the explanation for each option:
--group, -g: The group that you want to use for the load testing.
Ex. group-0--zone, -z: The zone that you want to use for the load testing.
Ex. zone-0-0--host, -h: The hostname of the network provider. If not provided, it defaults to 'localhost'.