Run with Docker(recommended for multiple nodes)

If you don’t have Docker yet, download it here.

Step1: Create the .env file

NODE_OPERATOR_PRIVATE_KEY={put the private key of your node operator wallet here}
NODE_OWNER_PRIVATE_KEY={put the private key of your node owner wallet here}
JSONRPC_URL={your_rpc_url}
ADDRESS_OF_OWNER_OR_OPERSTOR={put the wallet address of your node owner or operator}

Step2: Create the docker-compose.yml file

version: "3.5"
services:
  lumoz-zkVerifier-node:
    container_name: lumoz-zkVerifier-node
    image: lumozorg/lumoz-zkverifier-node:latest
    environment:
      - WALLET_PRIVATE_KEY=${NODE_OPERATOR_PRIVATE_KEY}
      - JSONRPC_URL=${JSONRPC_URL}
    command:
      - "/bin/sh"
      - "-c"
      - "/app/zkVerifier-node node-runner"
  lumoz-zkVerifier-node-claim:
    container_name: lumoz-zkVerifier-node-claim
    image: lumozorg/lumoz-zkverifier-node:latest
    environment:
      - JSONRPC_URL=${JSONRPC_URL}
      - WALLET_PRIVATE_KEY=${NODE_OWNER_PRIVATE_KEY}
      - OWNEROROPERATOR=${ADDRESS_OF_OWNER_OR_OPERSTOR}
    command:
      - "/bin/sh"
      - "-c"
      - "/app/zkVerifier-node reward-claimer"

Step3: Run your node.

sudo docker-compose -f docker-compose.yml up -d lumoz-zkVerifier-node

Step4: Run the reward claim program.

sudo docker-compose -f docker-compose.yml up -d lumoz-zkVerifier-node-claim

Congratulations, your node is running successfully.

Last updated