def cancel_transaction(trx_id):
    trx_obj = models.WalletTransaction.objects.get(id=trx_id)
    trx_obj.trx_status = enums.TrxStatus.CANCELED
    trx_obj.save()
Cancels a transaction.
dataset/ETHPy150Open uppsaladatavetare/foobar-api/src/wallet/api.py/cancel_transaction