GetSlotLeaderApi

type GetSlotLeaderApi = object;

Methods

getSlotLeader()

getSlotLeader(config?): GetSlotLeaderApiResponse;

Returns the current slot leader.

Parameters

ParameterType
config?Readonly<{ commitment?: Commitment; minContextSlot?: Slot; }>

Returns

GetSlotLeaderApiResponse

The address of the validator that has been granted the opportunity to create the block for the current slot.

See

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

On this page