• Fetch the estimated production time of a block as a Unix timestamp.

    Parameters

    Returns Promise<UnixTimestamp | null>

    Unix timestamp (seconds since epoch) or null if unavailable

    const timestamp = await getBlockTime(transport, 100_000);
    if (timestamp) console.log(new Date(timestamp * 1000));

    1.0.0