• Fetch the commitment status for a particular block (slot).

    Parameters

    Returns Promise<{
        commitment: number[] | null;
        totalStake: number;
    }>

    Object containing the commitment array and total active stake

    const { commitment, totalStake } = await getBlockCommitment(transport, 100_000);
    console.log(`Total stake: ${totalStake}`);

    1.0.0