This guide assumes that:
You have a working ZChains network up and running
Both your JSON-RPC and GRPC endpoints are reachable
The ZChains Loadbot is a helper utility that is meant to stress test a ZChains network.
Currently, it supports 2 modes:
transfer
- mode that does stress testing using fund-transfer transactions. [Default].
deploy
- mode that deploys specified smart contracts with each transaction.
The transfer mode assumes that there is a sender account that has initial funds to conduct the loadbot run.
The sender's account address and private key need to be set in the environment variables:
The deploy mode conducts contract deployment with each new transaction in the loadbot run. The contract being deployed can be specified using specific flags, or if the contract path is omitted, a default Greeter.sol
contract is used instead.
This section covers some basic terminology regarding the loadbot configuration.
count - The number of transactions to be submitted in the specified mode
tps - The number of transactions that should be submitted to the node per second
As an example, here is a valid command you can use to run the loadbot using two premined accounts:
You should get a result similar to this on your terminal :
This guide goes into details on how to using Explorer instance to work with ZChains.
ZChains Block Explorer: https://scan.zchains.com/