Fetch the commitment status for a particular block (slot).
HTTP transport instance
Slot number to query commitment for
Additional call options
Object containing the commitment array and total active stake
const { commitment, totalStake } = await getBlockCommitment(transport, 100_000);console.log(`Total stake: ${totalStake}`); Copy
const { commitment, totalStake } = await getBlockCommitment(transport, 100_000);console.log(`Total stake: ${totalStake}`);
1.0.0
Fetch the commitment status for a particular block (slot).