Kit
Type aliases

GetLeaderScheduleApi

GetLeaderScheduleApi = object

Methods

getLeaderSchedule()

Call Signature

getLeaderSchedule<TIdentity>(slot, config): null | Readonly<{ [TAddress in Address]?: bigint[] }>

Fetch the leader schedule of a particular validator.

Type Parameters
Type Parameter
TIdentity extends Address
Parameters
ParameterTypeDescription
slotbigintA slot that will be used to select the epoch for which to return the leader schedule.
configReadonly<{ commitment?: Commitment; }> & Readonly<{ identity: Address; }>-
Returns

null | Readonly<{ [TAddress in Address]?: bigint[] }>

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

getLeaderSchedule(slot, config?): null | GetLeaderScheduleApiResponseWithAllIdentities

Fetch the leader schedule for all validators.

Parameters
ParameterTypeDescription
slotbigintA slot that will be used to select the epoch for which to return the leader schedule.
config?Readonly<{ commitment?: Commitment; }>-
Returns

null | 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 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

getLeaderSchedule<TIdentity>(slot, config): GetLeaderScheduleApiResponseWithSingleIdentity<TIdentity>

Fetch the leader schedule of a particular validator.

Type Parameters
Type Parameter
TIdentity extends Address
Parameters
ParameterTypeDescription
slotnullWhen null, orders the leader schedule for the current epoch.
configReadonly<{ 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

getLeaderSchedule(slot?, config?): GetLeaderScheduleApiResponseWithAllIdentities

Fetch the leader schedule of all validators.

Parameters
ParameterTypeDescription
slot?nullWhen 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.

See

https://solana.com/docs/rpc/http/getleaderschedule

On this page