GitDeployHub

0xsero/zksync-staker

github.com/0xsero/zksync-staker ↗
Node.js API
20 environment variables found in .env.example

Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.

  • RPC_URL Network configuration
  • CHAIN_ID
  • STAKER_PROXY_ADDRESS ZKStaker proxy address (must be the proxy)
  • EARNING_POWER_CALCULATOR_ADDRESS Optional calculator override (fallback is on-chain lookup)
  • START_BLOCK Monitor defaults Set START_BLOCK close to the staker deployment block to avoid scanning from genesis.
  • POLL_INTERVAL_MS
  • LOG_LEVEL
  • BUMP_TIP_RECEIVER Bump configuration
  • BUMP_TIP_AMOUNT
  • BUMP_COOLDOWN_MS
  • BUMP_MAX_ATTEMPTS
  • BUMP_SCHEDULER_INTERVAL_MS
  • BUMP_EXECUTION_INTERVAL_MS
  • DEPOSIT_IDS Deposit IDs to monitor (comma-separated). If empty, the bot will discover active deposits by watching StakeDeposited/StakeWithdrawn events.
  • DATABASE_PATH Local JSON database path
  • COMPONENTS Component selection (default: all)
  • EXECUTOR_STRATEGY Executor configuration
  • WALLET_PRIVATE_KEY secret
  • CONFIRMATION_BLOCKS Confirmation settings
  • REORG_DEPTH
Alternative Fly.io Anything Dockerized — requires the Fly CLI.
macOS
brew install flyctl && fly launch --from https://github.com/0xsero/zksync-staker
Linux
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/0xsero/zksync-staker
Windows (PowerShell)
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/0xsero/zksync-staker
Or deploy to a different host
← Try another repo