Leader Slot Information API Documentation
What is the Leader Slot Information (getLeaderSlots) API?
getLeaderSlots is an extended Solana RPC method that returns upcoming leader slot records with validator identity, stake weight, network endpoint metadata, estimated leader location, and reference latency measurements. If you hold ERPC usage credits (API tokens), you can call it in the same format as a standard Solana RPC method.This API provides:
- Leader validator schedule starting from the requested slot
stakeWeightfor each leader validator- Estimated leader region, city, country, coordinates, ASN organization, and timezone
- Reference ping measurements from ERPC observation regions through
pingToLeaders
Endpoint and Request Body Example
endpoint
Specify the starting slot number in
params.json
Example (HTTP)
bash
Example Response (JSON)
The current response wraps records in
result.data[]. result.total shows how many records were returned. The data[] array below is abbreviated to three of the 100 records for this request. The first entry shows pingToLeaders from all seven ERPC observation regions; the remaining entries are trimmed to one region for readability.json
Response Fields
Visualizing Leader Slots
The same response can be viewed as a slot-by-slot operational timeline. This example uses Frankfurt as the observation point.
This view is useful because Solana is global. Unlike traditional HFT, where the main goal is often to sit near one matching engine, Solana leaders rotate across validators around the world. The fastest region changes as the leader schedule changes.
Solana Network Data Website
For a public view of validator and network distribution, use Validators Solutions. Use it to understand the broader Solana network, then use
getLeaderSlots for the slot-level schedule, stake weight, validator location, and measured latency data needed for operational routing.Token Usage
The API retrieves 100 leader slot records starting from the specified slot. Each request consumes 420 tokens.
If you need one entry per validator for the whole epoch instead of one entry per slot, use the Validators Information API, which is billed on the number of validators it returns.
Why Leader Slot Information Matters
- If the leader is geographically or network-path distant, direct transaction delivery becomes inefficient.
- Stake weight helps estimate how often a validator is likely to appear in the leader schedule over time.
- During global leader transitions, regional switching strategies are more important than a single global average latency.
- Combining slot schedule, stake weight, leader location, and measured ping data allows optimized routing and validator placement.
Background
A single Solana epoch consists of approximately 432,000 slots. Continuously collecting leader schedules, validator metadata, geolocation, and latency measurements requires a dedicated data pipeline. ERPC maintains this data and exposes it as an immediately usable leader slot map through the RPC interface.
Strategic Use Cases
- Detection optimization: prioritize nearby, low-latency leader windows.
- Multi-region deployment: deploy in FRA, AMS, NY, TY, SGP, and other strategic regions to reduce transition gaps.
- Stake-aware planning: use
stakeWeightto understand which leaders matter more frequently over longer windows. - Visualization and analytics: monitor leader ratios, stake distribution, and latency distribution by region.
Availability
getLeaderSlots is available to all ERPC users. API tokens and usage credits can be issued or verified on the ERPC Web Dashboard.- ERPC Web Dashboard: ERPC Web Dashboard
Transaction Success Rate and SWQoS Endpoint
To further improve transaction success rate and execution speed, we recommend using the SWQoS Endpoint. SWQoS (Stake-weighted Quality of Service) prioritizes validators with stake connections. Leaders allocate approximately 80% of bandwidth to priority traffic and 20% to non-priority traffic, with the priority lane offering roughly 5x throughput. This scheduling takes place before Priority-fee evaluation, meaning getting into the SWQoS priority lane is the prerequisite for true low-latency performance.







