diff --git a/src/wallet/wallet_public_structs_defs.h b/src/wallet/wallet_public_structs_defs.h index 764ee1b4..aaba1359 100644 --- a/src/wallet/wallet_public_structs_defs.h +++ b/src/wallet/wallet_public_structs_defs.h @@ -221,6 +221,7 @@ namespace wallet_public { std::string address; std::string path; + std::string seed; uint64_t transfers_count; uint64_t transfer_entries_count; bool is_whatch_only; @@ -229,6 +230,7 @@ namespace wallet_public BEGIN_KV_SERIALIZE_MAP() KV_SERIALIZE(address) KV_SERIALIZE(path) + KV_SERIALIZE(seed) KV_SERIALIZE(transfers_count) KV_SERIALIZE(transfer_entries_count) KV_SERIALIZE(is_whatch_only) diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 1cf0dbc2..f96e6d9e 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -195,6 +195,7 @@ namespace tools res.path = epee::string_encoding::convert_to_ansii(m_wallet.get_wallet_path()); res.transfers_count = m_wallet.get_recent_transfers_total_count(); res.transfer_entries_count = m_wallet.get_transfer_entries_count(); + res.seed = m_wallet.get_account().get_restore_braindata(); std::map distribution; m_wallet.get_utxo_distribution(distribution); for (const auto& ent : distribution)