Kit
Type aliases

GetBlocksApi

GetBlocksApi = object

Methods

getBlocks()

getBlocks(startSlotInclusive, endSlotInclusive?, config?): GetBlocksApiResponse

Returns a list of confirmed blocks between two slots (inclusive).

Parameters

ParameterTypeDescription
startSlotInclusivebigintThe first slot for which to return a confirmed block
endSlotInclusive?bigintThe last slot for which to return a confirmed block. Must be no more than 500,000 blocks higher than the start slot.
config?Readonly<{ commitment?: Exclude<Commitment, "processed">; }>-

Returns

GetBlocksApiResponse

See

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

On this page