First, ensure you have Node.js installed. Then, install the dependencies:
yarn installTo run a simple test, execute the following command. Replace <your_provider_address> with your actual provider address. Ensure the address starts with wss:
yarn test simple <your_provider_address>For example:
yarn test simple wss://rpc.vara.networkUpon successful completion, the test will calculate the gas for transfer and approve, and check the state in the fungible token contract.
To perform load testing on the node, execute the following command. Replace <your_provider_address> with your actual provider address. Ensure the address starts with wss:
yarn test batch <your_provider_address>This test sends 10,000 state reading requests to the contract.