diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index 4cc7e03..a642cb5 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -1337,6 +1337,10 @@ namespace monero { return sendRequest; } + string MoneroWallet::getOutputsHex() const { + return epee::string_tools::buff_to_hex_nodelimer(wallet2->export_outputs_to_str(true)); + } + void MoneroWallet::save() { cout << "save()" << endl; wallet2->store(); diff --git a/src/wallet/MoneroWallet.h b/src/wallet/MoneroWallet.h index b020f1a..7fad8f6 100644 --- a/src/wallet/MoneroWallet.h +++ b/src/wallet/MoneroWallet.h @@ -999,13 +999,13 @@ namespace monero { */ shared_ptr parsePaymentUri(const string& uri) const; -// /** -// * Export all outputs in hex format. -// * -// * @return all outputs in hex format, null if no outputs -// */ -// public string getOutputsHex(); -// + /** + * Export all outputs in hex format. + * + * @return all outputs in hex format, empty string if no outputs + */ + string getOutputsHex() const; + // /** // * Import outputs in hex format. // *