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
Parameter | Type | Description |
---|---|---|
startSlotInclusive | bigint | The first slot for which to return a confirmed block |
limit | number | The 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