Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.51 KB

README_src.adoc

File metadata and controls

45 lines (31 loc) · 1.51 KB

SubRPC

Table of Contents

Intro

SubRPC helps maintaining and managing a local list of RPC Endpoints. Using the subrpc, the user can aggregate data from several public or private registries of RPC endpoints and maintain their local database fresh.

While the subrpc cli allows using the data in a terminal, the subrpc-core crate helps any third party app fetching and maintainging a list of RPC endpoints.

This helps your apps no longer having to provide a flag such as your-cli --url wss://rpc.polkadot.io but instead use your-cli --chain polkadot and be sure to connect to a quality RPC endpoint.

Quick start

cargo install subrpc

# `reg` is an alias for `registry`
subrpc reg add https://raw.githubusercontent.com/chevdor/subrpc/master/registry/subrpc.json
subrpc reg add https://raw.githubusercontent.com/chevdor/subrpc/master/registry/parity.json
subrpc reg add https://raw.githubusercontent.com/chevdor/subrpc/master/registry/dwellir.json
subrpc reg add https://raw.githubusercontent.com/chevdor/subrpc/master/registry/onfinality.json
subrpc reg add https://raw.githubusercontent.com/chevdor/subrpc/master/registry/moonbeam.json
subrpc reg add https://polkadot-ui.github.io/polkadot_network_directory/registry.json
subrpc reg up
subrpc system info

# `ep` is an alias for `endpoints`
subrpc ep ls
subrpc ep get polkadot