A simple script to test test p2p trsnactions and log them.
-
Run a local Shardeum Network & RPC following the instructions here.
-
Clone this repositiory
git clone https://github.com/shardeum/simple-network-test.git
- Install node modules
npm i
- To run a transaction test, use the following command:
node tx.js --no_tx 5 --rpc https://your-rpc-url --privateKey yourPrivateKey --amount 1
To run a rpc test, use the following command
node rpc.js --rpc https://your-rpc-url --address 0xanyAddress