Account | Address |
---|---|
Program | HistoryJTGbKQD2mRgLZ3XhqHnN811Qpez8X9kCcGHoa |
Validator History Config | BZP2F1L4FwCaeTPmCmfGiVJAiMFwGawo5mbLj4JFzwEd |
Build CLI binary from root directory:
cargo build -p validator-history-cli --release
Creates config account and sets tip distribution program address.
./target/release/validator-history-cli \
--json-rpc-url 'https://api.mainnet-beta.solana.com' \
init-config \
--keypair-path ~/.config/solana/id.json \
--tip-distribution-program-id '' \
--tip-distribution-authority '' \
--stake-authority ''
Parameters:
--keypair-path
: Path to keypair for account creation and transactions--tip-distribution-program-id
: Tip distribution program ID (required)--tip-distribution-authority
: New tip distribution authority (optional)--stake-authority
: New stake authority (optional)Creates cluster history account with proper reallocation.
./target/release/validator-history-cli \
--json-rpc-url 'https://api.mainnet-beta.solana.com' \
init-cluster-history \
--keypair-path ~/.config/solana/id.json
Displays validator history entries for a specific epoch with summary statistics.
./target/release/validator-history-cli \
--json-rpc-url '' \
cranker-status \
--epoch 500
Parameters:
--epoch
: Epoch to get status for (optional, defaults to current epoch)Output includes:
Displays complete history for a single validator across epochs.
./target/release/validator-history-cli \
--json-rpc-url 'https://api.mainnet-beta.solana.com' \
history 'J1to1yufRnoWn81KYg1XkTWzmKjnYSnmE2VY8DGUJ9Qv' \
--start-epoch 450
Parameters:
validator
: Validator vote account address (required), you can find vote account here--start-epoch
: Starting epoch for history display (optional)Displays cluster-wide block production history.
./target/release/validator-history-cli \
--json-rpc-url 'https://api.mainnet-beta.solana.com' \
cluster-history-status
Backfills cluster history data for a specific epoch.
./target/release/validator-history-cli \
--json-rpc-url 'https://api.mainnet-beta.solana.com' \
backfill-cluster-history \
--keypair-path ~/.config/solana/id.json \
--epoch 500 \
--blocks-in-epoch 432000
Parameters:
--epoch
: Epoch to backfill (required)--blocks-in-epoch
: Number of blocks in the epoch (required)Displays JitoSOL stake distribution by country.
./target/release/validator-history-cli \
--json-rpc-url <JSON_RPC_URL> \
stake-by-country \
--stake-pool <STAKE_POOL> \
--country <COUNTRY> \
--ip-info-token <IP_INFO_TOKEN>
Description: This command analyzes the geographical distribution of JitoSOL stake across validators worldwide. It fetches validator IPs from their history account and determines their countries using IP geolocation.
Parameters:
--stake-pool
: The stake pool address to analyze (required)--country
: Filter results to show only a specific country (optional)--ip-info-token
: API token for IP geolocation service (required)To obtain an IP info token, sign up at https://ipinfo.io
./target/release/validator-history-cli \
--json-rpc-url <JSON_RPC_URL> \
stake-by-country \
--stake-pool 3DuPtyTAKrxKfHkSPZ5fqCayMcGru1BarAKKTfGDeo2j \
--ip-info-token YOUR_IPINFO_TOKEN
./target/release/validator-history-cli \
--json-rpc-url <JSON_RPC_URL> \
stake-by-country \
--stake-pool 3DuPtyTAKrxKfHkSPZ5fqCayMcGru1BarAKKTfGDeo2j \
--country "United States" \
--ip-info-token YOUR_IPINFO_TOKEN