monero_destination(address, amount) constructor;

sample_code compiling;
some convenience send methods impl
This commit is contained in:
woodser
2019-08-09 14:04:32 -04:00
parent f596067a3f
commit 493a3beb17
5 changed files with 50 additions and 13 deletions
+2 -2
View File
@@ -95,8 +95,8 @@ int main(int argc, const char* argv[]) {
send_request.m_subaddress_indices.push_back(1); // withdraw funds from these subaddresses within the account
send_request.m_priority = monero_send_priority::UNIMPORTANT; // no rush
vector<shared_ptr<monero_destination>> destinations; // specify the recipients and their amounts
// destinations.push_back(make_shared<monero_destination>(wallet_random->get_address(1, 0), 50000)); // TODO: destination constructor
// destinations.push_back(make_shared<monero_destination>(wallet_random->get_address(2, 0), 50000));
destinations.push_back(make_shared<monero_destination>(wallet_random->get_address(1, 0), 50000));
destinations.push_back(make_shared<monero_destination>(wallet_random->get_address(2, 0), 50000));
send_request.m_destinations = destinations;
// create the transaction, confirm with the user, and relay to the network