diff options
author | xiphon <xiphon@protonmail.com> | 2020-01-22 16:30:47 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2020-01-25 05:34:51 +0000 |
commit | dab604e010da4a77cd4ecfc2514f2b4d3dac48b6 (patch) | |
tree | 3549ad0e0dbe846e432c5bbe67486fb590ba38a2 /src/wallet/api/wallet2_api.h | |
parent | Merge pull request #6145 (diff) | |
download | monero-dab604e010da4a77cd4ecfc2514f2b4d3dac48b6.tar.xz |
wallet2_api: implement estimateTransactionFee
Diffstat (limited to '')
-rw-r--r-- | src/wallet/api/wallet2_api.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/api/wallet2_api.h b/src/wallet/api/wallet2_api.h index e543a115b..3945e55c9 100644 --- a/src/wallet/api/wallet2_api.h +++ b/src/wallet/api/wallet2_api.h @@ -879,6 +879,14 @@ struct Wallet */ virtual void disposeTransaction(PendingTransaction * t) = 0; + /*! + * \brief Estimates transaction fee. + * \param destinations Vector consisting of <address, amount> pairs. + * \return Estimated fee. + */ + virtual uint64_t estimateTransactionFee(const std::vector<std::pair<std::string, uint64_t>> &destinations, + PendingTransaction::Priority priority) const = 0; + /*! * \brief exportKeyImages - exports key images to file * \param filename |