diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-03-31 15:12:48 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-03-31 15:12:48 -0500 |
commit | d0065f3063c365ac9a65a655f145382408033c4f (patch) | |
tree | 160d7bcf555df0ecba8ee925bbdb5e1ba4ace964 /src/wallet/api/wallet2_api.h | |
parent | Merge pull request #6301 (diff) | |
parent | wallet2_api: implement estimateTransactionFee (diff) | |
download | monero-d0065f3063c365ac9a65a655f145382408033c4f.tar.xz |
Merge pull request #6302
dab604e wallet2_api: implement estimateTransactionFee (xiphon)
Diffstat (limited to 'src/wallet/api/wallet2_api.h')
-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 |