GetLeaderScheduleApi
Methods
getLeaderSchedule()
Call Signature
Fetch the leader schedule of a particular validator.
Type Parameters
| Type Parameter |
|---|
TIdentity extends Address |
Parameters
| Parameter | Type | Description |
|---|---|---|
slot | bigint | A slot that will be used to select the epoch for which to return the leader schedule. |
config | Readonly<{ commitment?: Commitment; }> & Readonly<{ identity: Address; }> | - |
Returns
| Readonly<{ [TAddress in Address]?: bigint[] }>
| null
A dictionary having a single key representing the specified validator identity, and
its corresponding leader slot indices as values relative to the first slot in the requested
epoch, or null if there is no epoch that corresponds to the given slot.
See
https://solana.com/docs/rpc/http/getleaderschedule
Call Signature
Fetch the leader schedule for all validators.
Parameters
| Parameter | Type | Description |
|---|---|---|
slot | bigint | A slot that will be used to select the epoch for which to return the leader schedule. |
config? | Readonly<{ commitment?: Commitment; }> | - |
Returns
GetLeaderScheduleApiResponseWithAllIdentities | null
A dictionary of validator identities as base-58 encoded strings, and their
corresponding leader slot indices as values relative to the first slot in the requested
epoch, or null if there is no epoch that corresponds to the given slot.
See
https://solana.com/docs/rpc/http/getleaderschedule
Call Signature
Fetch the leader schedule of a particular validator.
Type Parameters
| Type Parameter |
|---|
TIdentity extends Address |
Parameters
| Parameter | Type | Description |
|---|---|---|
slot | null | When null, orders the leader schedule for the current epoch. |
config | Readonly<{ commitment?: Commitment; }> & Readonly<{ identity: Address; }> | - |
Returns
GetLeaderScheduleApiResponseWithSingleIdentity<TIdentity>
A dictionary having a single key representing the specified validator identity, and its corresponding leader slot indices as values relative to the first slot in the current epoch.
See
https://solana.com/docs/rpc/http/getleaderschedule
Call Signature
Fetch the leader schedule of all validators.
Parameters
| Parameter | Type | Description |
|---|---|---|
slot? | null | When null, orders the leader schedule for the current epoch. |
config? | Readonly<{ commitment?: Commitment; }> | - |
Returns
GetLeaderScheduleApiResponseWithAllIdentities
A dictionary of validator identities as base-58 encoded strings, and their corresponding leader slot indices as values relative to the first slot in the current epoch.