From dab604e010da4a77cd4ecfc2514f2b4d3dac48b6 Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 22 Jan 2020 16:30:47 +0000 Subject: wallet2_api: implement estimateTransactionFee --- src/wallet/api/wallet2_api.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/wallet/api/wallet2_api.h') 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 pairs. + * \return Estimated fee. + */ + virtual uint64_t estimateTransactionFee(const std::vector> &destinations, + PendingTransaction::Priority priority) const = 0; + /*! * \brief exportKeyImages - exports key images to file * \param filename -- cgit v1.2.3