'API endpoint to get details about a transaction.
Args:
tx_id (str): the id of the transaction.
Return:
A JSON string containing the data about the transaction.'

def get(self, tx_id):

    pool = current_app.config['bigchain_pool']
    with pool() as bigchain:
        (tx, status) = bigchain.get_transaction(tx_id, include_status=True)
    if ((not tx) or (status is not bigchain.TX_VALID)):
        return make_error(404)
    return tx.to_dict()
