Kit
Type aliases

GetBlocksWithLimitApi

GetBlocksWithLimitApi = object

Methods

getBlocksWithLimit()

getBlocksWithLimit(startSlotInclusive, limit, config?): GetBlocksWithLimitApiResponse

Returns a list of confirmed blocks starting at the given slot (inclusive). Returns up to the number of blocks specified by the limit.

Parameters

ParameterTypeDescription
startSlotInclusivebigintThe first slot for which to return a confirmed block
limitnumberThe maximum number of blocks to return (between 0 and 500,000). Specifying 0 will result in an empty array being returned.
config?Readonly<{ commitment?: Exclude<Commitment, "processed">; }>-

Returns

GetBlocksWithLimitApiResponse

See

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

On this page