Function getBlockInfo

  • Asynchronously fetches information about a specific block by block height or block hash.

    Parameters

    • blockInfo: string

      The block height or block hash to get information about.

    • OptionalbaseUrl: string = _baseUrl

      Optional baseUrl for the fetch.

    Returns Promise<any>

    • A promise that resolves with the information about the block or null if not found.