Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.12 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.12 KB

Quai Transactor

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.

Prerequisites

  • Node.js v14 or higher
  • NPM v6 or higher
  • Wallet data in wallets.json file

Setup

  1. Clone the repository:
git clone https://github.com/dominant-strategies/quai-transactor
  1. Install the dependencies:
cd quai-transactor
npm i

Usage

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'.