
Pye CLI
Track your node performance and automate payments to stakers
The Pye CLI is a lightweight command-line tool designed for validators in the Pye ecosystem. It calculates and facilitates the distribution of staking rewards - including inflation, MEV, and block rewards - between validators and their stakers, based on the terms specified in each Pye Account.
By running the CLI, validators enable transparent, trustless accounting for the rewards owed to stakers who delegated to them. This tool is a foundational component of the Pye protocol, ensuring system integrity while automating reward attribution and distribution at the validator level.
Why It Matters
Our mission at Pye is to build Solana’s reward curve. We’re transforming Solana’s PoS into an efficient reward market powered by validators. This unlocks better reward opportunities for stakers and creates new market dynamics for fixed-reward products. To maintain trust and accuracy, the protocol needs a reliable way to measure on-chain rewards and allocate them in accordance with each reward’s terms. This is where the Pye CLI comes in: It serves as the accounting engine that bridges actual validator performance with reward-level reward entitlements.
How Does It Work?
At the end of every epoch, the Pye CLI tracks the staking rewards generated by a validator node and performs the following operations:
Step 1: Gross Reward Tracking
The CLI calculates the total gross rewards a validator earned in the given epoch, including:
- Inflation Rewards
- Block Rewards
- MEV Rewards
These are sourced directly from Solana’s runtime metrics and on-chain accounts.
Step 2: Adjustments Based on TVL Contribution
After measuring the total rewards for the epoch, the CLI calculates the portion of those rewards attributable to each active reward based on its share of the validator's total TVL. This is a straightforward proportional calculation:
