Function getBlockTime

  • Asynchronously fetches the UNIX time stamp of the latest block.

    Parameters

    • OptionalbaseUrl: string = _baseUrl

      The base URL for the fetch.

    Returns Promise<number>

    • A promise that resolves with the UNIX time stamp of the latest block.