@classmethod
def get_tx(cls, txid):
    """Gets tx dict by txid.

        :param txid: The transaction id in question.
        :type txid: ``str``
        :raises ConnectionError: If all API services fail.
        :rtype: ``dict``
        """
    for api_call in cls.GET_TX_MAIN:
        try:
            return api_call(txid)
        except cls.IGNORED_ERRORS:
            pass
    raise ConnectionError('All APIs are unreachable.')
