This script provides a simple, interactive command-line interface for querying and compare RPC calls from two predefined servers.
- get transaction receipts
- get transactions by hash
- get transactions by block ID and index.
bash
shellcurl
command-line tool for making HTTP requestsjq
command-line JSON processor
- Clone this repository or download the script to your local machine.
- Make the script executable:
chmod +x rpc_test.sh
. - Run the script:
./rpc_test.sh
. - Follow the on-screen menu to select the desired operation.
The script is preconfigured to query transactions from two servers. You can modify the server1 and server2 variables at the top of the script to point to your desired servers.
server1="http://url/server1:port"
server2="http://url/server2:port"
This script is intended for demonstration purposes. Ensure you have the necessary permissions to query the specified servers and that you use it in accordance with applicable policies and guidelines.