Function isBlockHash

    • Type guard to check if a string is a valid block hash

      Parameters

      • value: string

        The string to check

      Returns value is BlockHash

      True if the string is a valid block hash

      if (isBlockHash(input)) {
      // input is now typed as BlockHash
      }