aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server_commands_defs.h
diff options
context:
space:
mode:
authorJakob Lind <karl.jakob.lind@gmail.com>2014-08-05 08:17:23 +0200
committerJakob Lind <karl.jakob.lind@gmail.com>2014-08-05 08:17:23 +0200
commit0c3255ead8132c9903aa3b62333460fc3ed67713 (patch)
tree81b47a2cd57c216e7d1d2ef1aaa1f7bb818e4c94 /src/wallet/wallet_rpc_server_commands_defs.h
parentrefactoring. get seed code in wallet2 (diff)
downloadmonero-0c3255ead8132c9903aa3b62333460fc3ed67713.tar.xz
query_key command in wallet rpc.
only support mnemonic as key_type currently
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet_rpc_server_commands_defs.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h
index 146e84cb2..48f8ec2a5 100644
--- a/src/wallet/wallet_rpc_server_commands_defs.h
+++ b/src/wallet/wallet_rpc_server_commands_defs.h
@@ -257,6 +257,28 @@ namespace wallet_rpc
END_KV_SERIALIZE_MAP()
};
};
+
+ //JSON RPC V2
+ struct COMMAND_RPC_QUERY_KEY
+ {
+ struct request
+ {
+ std::string key_type;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(key_type)
+ END_KV_SERIALIZE_MAP()
+ };
+
+ struct response
+ {
+ std::string key;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(key)
+ END_KV_SERIALIZE_MAP()
+ };
+ };
}
}