def METHOD_NAME(self, tx, wallet):
    tx = self.electrum.transaction.Transaction(tx)
    self.wallets[wallet]["wallet"].add_transaction(tx.txid(), tx)
    self.wallets[wallet]["wallet"].add_tx_to_history(tx.txid())
    self.wallets[wallet]["wallet"].save_transactions()