def METHOD_NAME(self, txid):
    variables = {'id': txid, 'hex': None}
    tx = self.compose_request(path_type='explorer', variables=variables)
    t = Transaction.parse_hex(tx['hex'], strict=self.strict, network=self.network)
    variables = {'t': txid}
    tx_api = self.compose_request('txinfo', path_type='api', variables=variables)
    for n, i in enumerate(t.inputs):
        if i.script_type != 'coinbase':
            i.value = int(round(tx_api['inputs'][n]['amount'] * self.units, 0))
        else:
            i.value = 0
            t.coinbase = True
    for n, o in enumerate(t.outputs):
        o.spent = None
    if tx['confirmations']:
        t.status = 'confirmed'
    else:
        t.status = 'unconfirmed'
    t.date = datetime.utcfromtimestamp(tx['time'])
    t.block_height = tx_api['block']
    t.block_hash = tx['blockhash']
    t.confirmations = tx['confirmations']
    t.rawtx = bytes.fromhex(tx['hex'])
    t.size = tx['size']
    t.network = self.network
    t.locktime = tx['locktime']
    t.version = tx['version'].to_bytes(4, 'big')
    t.output_total = int(round(tx_api['total_output'] * self.units, 0))
    t.input_total = int(round(tx_api['total_input'] * self.units, 0))
    t.fee = 0
    if t.input_total:
        t.fee = t.input_total - t.output_total
    return t