diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-11-08 22:44:15 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-11-08 22:44:15 +0200 |
commit | c05cecf036cc8c9c2eedbda3f31bafa392b2b6ff (patch) | |
tree | c0a3d6967b0889032d497a95a03ae78c3a89bf02 /src/wallet/wallet2_api.h | |
parent | Merge pull request #1296 (diff) | |
parent | wallet_api: txkey checking functions for the GUI (diff) | |
download | monero-c05cecf036cc8c9c2eedbda3f31bafa392b2b6ff.tar.xz |
Merge pull request #1297
af8a260 wallet_api: txkey checking functions for the GUI (moneromooo.monero)
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r-- | src/wallet/wallet2_api.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 8427ba250..088af1719 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -400,6 +400,19 @@ struct WalletManager */ virtual std::vector<std::string> findWallets(const std::string &path) = 0; + /*! + * \brief checkPayment - checks a payment was made using a txkey + * \param address - the address the payment was sent to + * \param txid - the transaction id for that payment + * \param txkey - the transaction's secret key + * \param daemon_address - the address (host and port) to the daemon to request transaction data + * \param received - if succesful, will hold the amount of monero received + * \param height - if succesful, will hold the height of the transaction (0 if only in the pool) + * \param error - if unsuccesful, will hold an error string with more information about the error + * \return - true is succesful, false otherwise + */ + virtual bool checkPayment(const std::string &address, const std::string &txid, const std::string &txkey, const std::string &daemon_address, uint64_t &received, uint64_t &height, std::string &error) const = 0; + //! returns verbose error string regarding last error; virtual std::string errorString() const = 0; |