Monero
Loading...
Searching...
No Matches
wallet_light_rpc.h
Go to the documentation of this file.
1// Copyright (c) 2014-2022, The Monero Project
2//
3// All rights reserved.
4//
5// Redistribution and use in source and binary forms, with or without modification, are
6// permitted provided that the following conditions are met:
7//
8// 1. Redistributions of source code must retain the above copyright notice, this list of
9// conditions and the following disclaimer.
10//
11// 2. Redistributions in binary form must reproduce the above copyright notice, this list
12// of conditions and the following disclaimer in the documentation and/or other
13// materials provided with the distribution.
14//
15// 3. Neither the name of the copyright holder nor the names of its contributors may be
16// used to endorse or promote products derived from this software without specific
17// prior written permission.
18//
19// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
20// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
22// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
27// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28//
29// Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
30
31#pragma once
33#include "crypto/hash.h"
34
35namespace tools
36{
37 //-----------------------------------------------
39 {
50 typedef epee::misc_utils::struct_init<request_t> request;
51
68
99
100
121 typedef epee::misc_utils::struct_init<response_t> response;
122 };
123
124 //-----------------------------------------------
181
182 //-----------------------------------------------
184 {
186 {
187 std::string amount;
188 std::string address;
189 std::string view_key;
190 // OpenMonero specific
193 std::string dust_threshold;
194
203 };
204 typedef epee::misc_utils::struct_init<request_t> request;
205
206
235
251 typedef epee::misc_utils::struct_init<response_t> response;
252 };
253 //-----------------------------------------------
255 {
268 typedef epee::misc_utils::struct_init<request_t> request;
269
282 typedef epee::misc_utils::struct_init<response_t> response;
283 };
284 //-----------------------------------------------
319 //-----------------------------------------------
321 {
323 {
324 std::vector<std::string> amounts;
326
331 };
332 typedef epee::misc_utils::struct_init<request_t> request;
333
334 struct output {
335 std::string public_key;
337 std::string rct; // 64+64+64 characters long (<rct commit> + <encrypted mask> + <rct amount>)
338
344 };
345
354
356 {
357 std::vector<amount_out> amount_outs;
358 std::string Error;
363 };
364 typedef epee::misc_utils::struct_init<response_t> response;
365 };
366 //-----------------------------------------------
367}
#define KV_SERIALIZE(varialble)
Definition keyvalue_serialization.h:120
#define END_KV_SERIALIZE_MAP()
Definition keyvalue_serialization.h:118
#define BEGIN_KV_SERIALIZE_MAP()
Definition keyvalue_serialization.h:43
TODO: (mj-xmr) This will be reduced in an another PR.
Definition byte_slice.h:40
Definition bulletproofs.cc:64
Various Tools.
Definition apply_permutation.h:40
unsigned int uint32_t
Definition stdint.h:126
unsigned __int64 uint64_t
Definition stdint.h:136
Definition wallet_light_rpc.h:128
std::string address
Definition wallet_light_rpc.h:129
std::string view_key
Definition wallet_light_rpc.h:130
Definition wallet_light_rpc.h:157
uint64_t locked_funds
Definition wallet_light_rpc.h:158
uint64_t total_sent
Definition wallet_light_rpc.h:160
uint64_t scanned_block_height
Definition wallet_light_rpc.h:162
uint64_t start_height
Definition wallet_light_rpc.h:163
std::list< spent_output > spent_outputs
Definition wallet_light_rpc.h:166
uint64_t blockchain_height
Definition wallet_light_rpc.h:165
uint64_t total_received
Definition wallet_light_rpc.h:159
uint64_t scanned_height
Definition wallet_light_rpc.h:161
uint64_t transaction_height
Definition wallet_light_rpc.h:164
Definition wallet_light_rpc.h:140
uint64_t amount
Definition wallet_light_rpc.h:141
std::string key_image
Definition wallet_light_rpc.h:142
uint64_t out_index
Definition wallet_light_rpc.h:144
std::string tx_pub_key
Definition wallet_light_rpc.h:143
uint32_t mixin
Definition wallet_light_rpc.h:145
Definition wallet_light_rpc.h:126
epee::misc_utils::struct_init< response_t > response
Definition wallet_light_rpc.h:179
epee::misc_utils::struct_init< request_t > request
Definition wallet_light_rpc.h:137
Definition wallet_light_rpc.h:41
std::string view_key
Definition wallet_light_rpc.h:43
std::string address
Definition wallet_light_rpc.h:42
Definition wallet_light_rpc.h:102
uint64_t total_received_unlocked
Definition wallet_light_rpc.h:105
uint64_t blockchain_height
Definition wallet_light_rpc.h:108
uint64_t total_received
Definition wallet_light_rpc.h:104
std::vector< transaction > transactions
Definition wallet_light_rpc.h:107
uint64_t scanned_block_height
Definition wallet_light_rpc.h:109
uint64_t scanned_height
Definition wallet_light_rpc.h:106
std::string status
Definition wallet_light_rpc.h:110
Definition wallet_light_rpc.h:52
uint64_t out_index
Definition wallet_light_rpc.h:56
uint32_t mixin
Definition wallet_light_rpc.h:57
uint64_t amount
Definition wallet_light_rpc.h:53
std::string tx_pub_key
Definition wallet_light_rpc.h:55
std::string key_image
Definition wallet_light_rpc.h:54
Definition wallet_light_rpc.h:70
uint64_t total_sent
Definition wallet_light_rpc.h:75
std::list< spent_output > spent_outputs
Definition wallet_light_rpc.h:78
bool mempool
Definition wallet_light_rpc.h:81
uint64_t id
Definition wallet_light_rpc.h:71
uint64_t total_received
Definition wallet_light_rpc.h:74
uint64_t height
Definition wallet_light_rpc.h:77
std::string hash
Definition wallet_light_rpc.h:72
uint64_t timestamp
Definition wallet_light_rpc.h:73
uint64_t unlock_time
Definition wallet_light_rpc.h:76
std::string payment_id
Definition wallet_light_rpc.h:79
bool coinbase
Definition wallet_light_rpc.h:80
uint32_t mixin
Definition wallet_light_rpc.h:82
Definition wallet_light_rpc.h:39
epee::misc_utils::struct_init< response_t > response
Definition wallet_light_rpc.h:121
epee::misc_utils::struct_init< request_t > request
Definition wallet_light_rpc.h:50
Definition wallet_light_rpc.h:346
uint64_t amount
Definition wallet_light_rpc.h:347
std::vector< output > outputs
Definition wallet_light_rpc.h:348
Definition wallet_light_rpc.h:334
std::string public_key
Definition wallet_light_rpc.h:335
uint64_t global_index
Definition wallet_light_rpc.h:336
Definition wallet_light_rpc.h:323
std::vector< std::string > amounts
Definition wallet_light_rpc.h:324
uint32_t count
Definition wallet_light_rpc.h:325
Definition wallet_light_rpc.h:356
std::vector< amount_out > amount_outs
Definition wallet_light_rpc.h:357
std::string Error
Definition wallet_light_rpc.h:358
Definition wallet_light_rpc.h:321
epee::misc_utils::struct_init< response_t > response
Definition wallet_light_rpc.h:364
epee::misc_utils::struct_init< request_t > request
Definition wallet_light_rpc.h:332
Definition wallet_light_rpc.h:207
std::string tx_prefix_hash
Definition wallet_light_rpc.h:215
uint64_t timestamp
Definition wallet_light_rpc.h:217
uint64_t amount
Definition wallet_light_rpc.h:208
uint64_t index
Definition wallet_light_rpc.h:210
std::string tx_hash
Definition wallet_light_rpc.h:213
std::vector< std::string > spend_key_images
Definition wallet_light_rpc.h:216
std::string public_key
Definition wallet_light_rpc.h:209
uint64_t global_index
Definition wallet_light_rpc.h:211
uint64_t height
Definition wallet_light_rpc.h:218
std::string tx_pub_key
Definition wallet_light_rpc.h:214
Definition wallet_light_rpc.h:186
std::string dust_threshold
Definition wallet_light_rpc.h:193
bool use_dust
Definition wallet_light_rpc.h:192
std::string amount
Definition wallet_light_rpc.h:187
uint64_t mixin
Definition wallet_light_rpc.h:191
std::string view_key
Definition wallet_light_rpc.h:189
std::string address
Definition wallet_light_rpc.h:188
Definition wallet_light_rpc.h:237
uint64_t per_kb_fee
Definition wallet_light_rpc.h:240
std::list< output > outputs
Definition wallet_light_rpc.h:239
uint64_t amount
Definition wallet_light_rpc.h:238
std::string reason
Definition wallet_light_rpc.h:242
std::string status
Definition wallet_light_rpc.h:241
Definition wallet_light_rpc.h:184
epee::misc_utils::struct_init< response_t > response
Definition wallet_light_rpc.h:251
epee::misc_utils::struct_init< request_t > request
Definition wallet_light_rpc.h:204
std::string address
Definition wallet_light_rpc.h:289
std::string view_key
Definition wallet_light_rpc.h:290
std::string payment_id
Definition wallet_light_rpc.h:301
bool request_fulfilled
Definition wallet_light_rpc.h:304
std::string status
Definition wallet_light_rpc.h:306
std::string payment_address
Definition wallet_light_rpc.h:305
bool new_request
Definition wallet_light_rpc.h:303
uint64_t import_fee
Definition wallet_light_rpc.h:302
Definition wallet_light_rpc.h:286
epee::misc_utils::struct_init< request_t > request
Definition wallet_light_rpc.h:297
epee::misc_utils::struct_init< response_t > response
Definition wallet_light_rpc.h:317
Definition wallet_light_rpc.h:257
std::string address
Definition wallet_light_rpc.h:258
std::string view_key
Definition wallet_light_rpc.h:259
bool create_account
Definition wallet_light_rpc.h:260
Definition wallet_light_rpc.h:271
std::string status
Definition wallet_light_rpc.h:272
std::string reason
Definition wallet_light_rpc.h:273
bool new_address
Definition wallet_light_rpc.h:274
Definition wallet_light_rpc.h:255
epee::misc_utils::struct_init< request_t > request
Definition wallet_light_rpc.h:268
epee::misc_utils::struct_init< response_t > response
Definition wallet_light_rpc.h:282