From cfa89295797fc10a7cecea32254789a69df4c9c9 Mon Sep 17 00:00:00 2001 From: Jacob Brydolf Date: Sun, 6 Nov 2016 19:27:08 +0100 Subject: [PATCH] wallet api: added getTxKey() --- src/libwalletqt/Wallet.cpp | 5 +++++ src/libwalletqt/Wallet.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 5ab27a27..b8ab7b4d 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -270,6 +270,11 @@ QString Wallet::getUserNote(const QString &txid) const return QString::fromStdString(m_walletImpl->getUserNote(txid.toStdString())); } +QString Wallet::getTxKey(const QString &txid) const +{ + return QString::fromStdString(m_walletImpl->getTxKey(txid.toStdString())); +} + Wallet::Wallet(Bitmonero::Wallet *w, QObject *parent) : QObject(parent) , m_walletImpl(w) diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h index aec9b2e4..8b100f1a 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -141,6 +141,8 @@ public: Q_INVOKABLE bool setUserNote(const QString &txid, const QString ¬e); Q_INVOKABLE QString getUserNote(const QString &txid) const; + Q_INVOKABLE QString getTxKey(const QString &txid) const; + // TODO: setListenter() when it implemented in API signals: // emitted on every event happened with wallet