Run Seeder
Repository: Seeder GitHub
Clone the repository:
git clone https://github.com/radiusxyz/seederBuild the binary
cd seeder cargo build --releaseSet up environment variables in
./scripts/execute/env.sh.Initialize the Seeder:
./scripts/execute/01_init_seeder.shStart the Seeder:
./scripts/execute/02_run_seeder.shSet up environment variables in
./scripts/rpc-call/env.sh.Initialize RPC: This action serves for is registering sequencing information related to the LivenessServiceManager
./scripts/rpc-call/10_initialize.sh
Environment Variables
seeder/scripts/execute/env.sh
#!/bin/bash
CURRENT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
PROJECT_ROOT_PATH="$( cd $SCRIPT_PATH/../.. >/dev/null 2>&1 ; pwd -P )"
BIN_FILE_NAME="seeder"
BIN_PATH="$PROJECT_ROOT_PATH/scripts/$BIN_FILE_NAME"
DATA_PATH=$PROJECT_ROOT_PATH/data
CONFIG_FILE_PATH=$DATA_PATH/Config.toml
# Copy the new version's binary to the scripts directory
if [[ -f "$PROJECT_ROOT_PATH/target/release/$BIN_FILE_NAME" ]]; then
cp $PROJECT_ROOT_PATH/target/release/$BIN_FILE_NAME $PROJECT_ROOT_PATH/scripts
fi
# Check if the binary exists
if [[ ! -f "$BIN_PATH" ]]; then
echo "Error: Secure RPC binary not found at $BIN_PATH"
echo "Please run this command 'cp $PROJECT_ROOT_PATH/target/release/$BIN_FILE_NAME $PROJECT_ROOT_PATH/scripts' after building the project"
exit 1
fi
# ONLY THE FOLLOWING VARIABLES SHOULD BE CHANGED
# Used by transaction orderers to register their IP addresses
# and retrieve the IP addresses of peers when they register
# in the LivenessServiceManager contract.
SEEDER_EXTERNAL_RPC_URL="http://127.0.0.1:6000"
# Used by the network owner to add sequencing information,
# including the RPC and WebSocket URLs for interacting with
# the LivenessServiceManager contract, the contract address itself, and
# the platform with the service provider.
SEEDER_INTERNAL_RPC_URL="http://127.0.0.1:6001" Last updated