Awesome
Chain Registry Query Tool
Description
This is a command-line utility for querying the Cosmos Chain Registry to test the listed resources for liveliness. The live results are then sorted by ping time on lowest latency to your location. The failed resources are also listed, along with the reason for failure.
Help
Example Output
./chain-registry-query.py stargaze rpc --max_results 10
Dependencies
- requests
- ping3
- prettytable
Already available by default:
- telnetlib
- argparse
- json
- sys
- os
- socket
Usage Example
usage: chain-registry-query.py [-h] chain type [--max_results MAX_RESULTS] [--polkachu] [--no_fileout]
./chain-registry-query.py osmosis rpc --max_results 30 --no_fileout
positional arguments:
chain
the name of the chaintype
the type of resource to query (persistent_peers, seeds, rpc, rest, grpc)
optional:
-h, --help
show this help message and exit--max_results MAX_RESULTS
the maximum number of results to display (still tests all results)--polkachu
use the polkachu API instead of the registry (alternate source of persistent peers)--no_fileout
do not create a file with successful seeds and persistent_peers results (ready to paste in config.toml)
To install
pip install -r requirements.txt