https://github.com/c29r3/cosmos-rpc-finder
Tool for Cosmos & Tendermint based projects. Search for public RPCs
https://github.com/c29r3/cosmos-rpc-finder
cosmos tendermint
Last synced: 2 months ago
JSON representation
Tool for Cosmos & Tendermint based projects. Search for public RPCs
- Host: GitHub
- URL: https://github.com/c29r3/cosmos-rpc-finder
- Owner: c29r3
- Created: 2021-02-25T17:06:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-11T15:15:08.000Z (over 3 years ago)
- Last Synced: 2025-03-18T18:02:32.415Z (3 months ago)
- Topics: cosmos, tendermint
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 16
- Watchers: 1
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# cosmos-rpc-finder
[Tool for Cosmos & Tendermint based projects](https://tendermint.com/)## Description
This tool can be useful for:
- Search for public RPC
- Search for publicly available RPCs with an active stake
*This configuration is not secure due to the possibility of DoS attacks## Requirements
- Docker## Install
1. Download config file and change the parameters to suit you
```
curl -s https://raw.githubusercontent.com/c29r3/cosmos-rpc-finder/master/config.yml > config.yml; \
curl -s https://raw.githubusercontent.com/c29r3/cosmos-rpc-finder/master/rpc_urls.txt > rpc_urls.txt
```2. Fill in the configuration file `config.yml` and `rpc_urls.txt`
The script needs at least 1 RPC service for normal operation. For example, your local node
`# rpc_urls.txt`
`http://localhost:26657`
```yaml
# true or false
verbose_mode: true# Number of concurrent threads
threads_count: 50# For the script to work properly, you must specify at least 1 public RPC
# Format: http://: on each line
rpc_file_name: rpc_urls.txt# The time during which the script will try to establish a connection
provider_timeout: 4# Link to the file where the ip addresses of the nodes are located (optional)
genesis_file_url: http://localhost:26657/genesis
```3. Run docker container
```
docker run -it --rm \
-v $(pwd)/config.yml:/rpc-finder/config.yml \
-v $(pwd)/rpc_urls.txt:/rpc-finder/rpc_urls.txt \
-v $(pwd)/results:/rpc-finder/results \
--user $(id -u):$(id -g) \
--name rpc-finder \
c29r3/cosmos-rpc-finder
```#### Update docker image
After running the command below, go to step 2
```
docker rm -f rpc-finder; \
curl -s https://raw.githubusercontent.com/c29r3/cosmos-rpc-finder/master/config.yml > config.yml; \
docker pull c29r3/cosmos-rpc-finder
```