Giter Club home page Giter Club logo

cosmos-rpc-finder's Introduction

cosmos-rpc-finder

Tool for Cosmos & Tendermint based projects

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
  1. 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
# 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://<ip>:<port> 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
  1. 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

cosmos-rpc-finder's People

Contributors

c29r3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.