Function getBlockHeight

  • Asynchronously fetches the latest block height.

    Parameters

    • OptionalbaseUrl: string = _baseUrl

      The base URL for the fetch.

    Returns Promise<number>

    • A promise that resolves with the height of the latest block.