.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
brew install flyctl && fly launch --from https://github.com/0xsero/zksync-staker
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/0xsero/zksync-staker
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/0xsero/zksync-staker