Run Secure RPC

Key Details

  • Language and Build Requirements: The Secure RPC is written in Rust and must be built using cargo build --release in the root directory.

  • Environment Variables:

    • Create an env.sh file at secure-rpc/scripts/execute/env.sh based on the contents of env_example.sh.

    • Ensure the ports defined in env.sh are available.

  • Initialization Scripts:

    • Secure RPC is initialized and run using scripts located in the repository:

      • secure-rpc/scripts/execute/01_init_secure_rpc.sh

      • secure-rpc/scripts/execute/02_run_secure_rpc.sh

Steps

  1. Clone the repository

    git clone https://github.com/radiusxyz/secure-rpc/
  2. Build the binary

    cd secure-rpc
    cargo build --release
  3. Set up environment variables in ./scripts/execute/env.sh.

  4. Initialize the service:

    ./scripts/execute/01_init_secure_rpc.sh
  5. Start the service:

    ./scripts/execute/02_run_secure_rpc.sh

Environment Variables

secure-rpc/scripts/execute/env.sh

Last updated