diff options
author | Joel <joel@truelevel.io> | 2019-02-19 14:30:35 +0100 |
---|---|---|
committer | Joel <joel@truelevel.io> | 2019-02-19 14:30:35 +0100 |
commit | acb14c10796e596a3b16ea306cbf76499f8a7224 (patch) | |
tree | 0747fe788b2926b390ff191c289661f620391be2 /src/wallet/wallet_rpc_server_commands_defs.h | |
parent | Add generate_from_keys RPC method (diff) | |
download | monero-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.h | 31 |
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 |