aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server_commands_defs.h
diff options
context:
space:
mode:
authorJoel <joel@truelevel.io>2019-02-19 14:30:35 +0100
committerJoel <joel@truelevel.io>2019-02-19 14:30:35 +0100
commitacb14c10796e596a3b16ea306cbf76499f8a7224 (patch)
tree0747fe788b2926b390ff191c289661f620391be2 /src/wallet/wallet_rpc_server_commands_defs.h
parentAdd generate_from_keys RPC method (diff)
downloadmonero-acb14c10796e596a3b16ea306cbf76499f8a7224.tar.xz
Add generate_from_view_key RPC method
Diffstat (limited to 'src/wallet/wallet_rpc_server_commands_defs.h')
-rw-r--r--src/wallet/wallet_rpc_server_commands_defs.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h
index 8c46121e4..8dd13322f 100644
--- a/src/wallet/wallet_rpc_server_commands_defs.h
+++ b/src/wallet/wallet_rpc_server_commands_defs.h
@@ -1934,6 +1934,37 @@ namespace wallet_rpc
};
};
+ struct COMMAND_RPC_GENERATE_FROM_VIEW_KEY
+ {
+ struct request
+ {
+ uint64_t restore_height;
+ std::string filename;
+ std::string address;
+ std::string viewkey;
+ std::string password;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE_OPT(restore_height, (uint64_t)0)
+ KV_SERIALIZE(filename)
+ KV_SERIALIZE(address)
+ KV_SERIALIZE(viewkey)
+ KV_SERIALIZE(password)
+ END_KV_SERIALIZE_MAP()
+ };
+
+ struct response
+ {
+ std::string address;
+ std::string info;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(address)
+ KV_SERIALIZE(info)
+ END_KV_SERIALIZE_MAP()
+ };
+ };
+
struct COMMAND_RPC_GENERATE_FROM_KEYS
{
struct request