Fetch a confirmed block at a given slot, including transactions and rewards.
HTTP transport instance
Slot number of the block to retrieve
Encoding, transaction detail level, reward inclusion, and other options
The block result, or null if the block is not available
null
const block = await getBlock(transport, 200_000_000);if (block) console.log(`Blockhash: ${block.blockhash}`); Copy
const block = await getBlock(transport, 200_000_000);if (block) console.log(`Blockhash: ${block.blockhash}`);
1.0.0
Fetch a confirmed block at a given slot, including transactions and rewards.