Fetch a list of confirmed blocks starting at a given slot, up to a specified limit.
HTTP transport instance
Start slot (inclusive)
Maximum number of blocks to return
Desired commitment level (default: "confirmed")
"confirmed"
Additional call options
Array of confirmed slot numbers
const slots = await getBlocksWithLimit(transport, 100_000, 10);console.log(`Found ${slots.length} blocks`); Copy
const slots = await getBlocksWithLimit(transport, 100_000, 10);console.log(`Found ${slots.length} blocks`);
1.0.0
Fetch a list of confirmed blocks starting at a given slot, up to a specified limit.