diff options
author | selsta <selsta@sent.at> | 2019-05-03 03:50:42 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2019-08-16 16:23:12 +0200 |
commit | def703abecbd55fdb358b31250bd722766aa24d1 (patch) | |
tree | 17342c18d5220ec8f283d5e168bb74c9281a25aa /src/wallet/api/wallet2_api.h | |
parent | Merge pull request #5634 (diff) | |
download | monero-def703abecbd55fdb358b31250bd722766aa24d1.tar.xz |
wallet_api: add multi destination tx support
Diffstat (limited to '')
-rw-r--r-- | src/wallet/api/wallet2_api.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/wallet/api/wallet2_api.h b/src/wallet/api/wallet2_api.h index 9e556cb2f..e543a115b 100644 --- a/src/wallet/api/wallet2_api.h +++ b/src/wallet/api/wallet2_api.h @@ -812,6 +812,26 @@ struct Wallet * @return PendingTransaction */ virtual PendingTransaction* restoreMultisigTransaction(const std::string& signData) = 0; + + /*! + * \brief createTransactionMultDest creates transaction with multiple destinations. if dst_addr is an integrated address, payment_id is ignored + * \param dst_addr vector of destination address as string + * \param payment_id optional payment_id, can be empty string + * \param amount vector of amounts + * \param mixin_count mixin count. if 0 passed, wallet will use default value + * \param subaddr_account subaddress account from which the input funds are taken + * \param subaddr_indices set of subaddress indices to use for transfer or sweeping. if set empty, all are chosen when sweeping, and one or more are automatically chosen when transferring. after execution, returns the set of actually used indices + * \param priority + * \return PendingTransaction object. caller is responsible to check PendingTransaction::status() + * after object returned + */ + + virtual PendingTransaction * createTransactionMultDest(const std::vector<std::string> &dst_addr, const std::string &payment_id, + optional<std::vector<uint64_t>> amount, uint32_t mixin_count, + PendingTransaction::Priority = PendingTransaction::Priority_Low, + uint32_t subaddr_account = 0, + std::set<uint32_t> subaddr_indices = {}) = 0; + /*! * \brief createTransaction creates transaction. if dst_addr is an integrated address, payment_id is ignored * \param dst_addr destination address as string |