Fetch a list of confirmed blocks between two slot numbers.
HTTP transport instance
Start slot (inclusive)
Optional
End slot (inclusive); omit to use the latest confirmed slot
Desired commitment level (default: "confirmed")
"confirmed"
Additional call options
Array of confirmed slot numbers in the range
const slots = await getBlocks(transport, 100_000, 100_010);console.log(`Confirmed blocks: ${slots}`); Copy
const slots = await getBlocks(transport, 100_000, 100_010);console.log(`Confirmed blocks: ${slots}`);
1.0.0
Fetch a list of confirmed blocks between two slot numbers.