Solana
Solana
Solana
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
getEpochSchedule is a Solana JSON-RPC method that returns the epoch schedule baked into the cluster's genesis configuration — the fixed rules that say how slots map to epochs on the chain securing SOL. The response includes slotsPerEpoch, the leaderScheduleSlotOffset, the warmup flag, and the firstNormalEpoch / firstNormalSlot markers that bound the early warmup period. Because it comes from genesis, the values never change for a given cluster. Send it as a JSON-RPC 2.0 POST with an empty positional params array to https://solana.therpc.io/YOUR_API_KEY.
slotsPerEpoch as the divisor.firstNormalSlot it is simply firstNormalEpoch + (slot - firstNormalSlot) / slotsPerEpoch.warmup period so early epochs map correctly, since they were shorter before the schedule reached its normal length.Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| object | { slotsPerEpoch, leaderScheduleSlotOffset, warmup, firstNormalEpoch, firstNormalSlot }. |
| Código | Mensaje | Causa |
|---|---|---|
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |
warmup is true, early epochs ramp up in length and a naive slot / slotsPerEpoch will be wrong — anchor your math on firstNormalEpoch and firstNormalSlot for exact results.