Function getBlockNumber

  • Get the latest block number from a given network.

    Parameters

    • params: SharedBlockParams

    Returns Promise<number>

    the latest block number

    Example

    const block = await getBlockNumber({
    network: "ethereum"
    });

Generated using TypeDoc