mirror of
https://github.com/monero-project/monero.git
synced 2025-08-21 10:08:14 -04:00
query_key command in wallet rpc.
only support mnemonic as key_type currently
This commit is contained in:
parent
2ba77629ad
commit
0c3255ead8
3 changed files with 44 additions and 0 deletions
|
@ -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()
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue