Run RPC Worker/Monitor
Pre requirements
Before continuing make sure you have met Registering UID.
Clone rpc-subnet:
git clone https://github.com/jungoai/rpc-subnet.git
cd rpc-subnet
Configuration
Create .env
file
cp .env.example .env
Customize the parameters in the .env file. Some of these parameters are for Workers, others are for Monitors, and some are needed for both.
Create .providers.json
cp ./.providers.json ~/.providers.json
Open .providers.json
in your favorite editor and add your RPC endpoints under providers
field.
code ~/.providers.json
E.g:
{
"providers": [
"http://127.0.0.1:8888"
]
}
Run with Docker
Run Worker:
. ./scripts/run_rpc_worker_docker.sh
Run Monitor:
. ./scripts/run_rpc_monitor_docker.sh
Note:
If you are connecting to a local jungochain node with fast-blocks
enabled, you should pass
--fast_blocks
into ./scripts/run_rpc_monitor_docker.sh
Also you can customize scripts.
Development
See here.