UNPKG

@solana/rpc-api

Version:

Defines all default Solana RPC methods as types

20 lines 766 B
import type { Address } from '@solana/addresses'; import type { Slot } from '@solana/rpc-types'; /** array of Node identity public keys as base-58 encoded strings */ type GetSlotLeadersApiResponse = Address[]; export type GetSlotLeadersApi = { /** * Returns the slot leaders for a given slot range. * * @returns The addresses of the validators that have been granted the opportunity to create the * blocks for each slot in the range provided * @see https://solana.com/docs/rpc/http/getslotleaders */ getSlotLeaders( /** Start slot, as u64 integer */ startSlotInclusive: Slot, /** Limit (between 1 and 5000) */ limit: number): GetSlotLeadersApiResponse; }; export {}; //# sourceMappingURL=getSlotLeaders.d.ts.map