aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server_commands_defs.h
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2014-07-22 12:00:25 -0400
committerZachary Michaels <mikezackles@gmail.com>2014-07-22 12:16:15 -0400
commit12596ad566b23c0b88678c01c0d1871167fefc79 (patch)
tree3d70b64f7f529681672facc1a5d766b076ef8bc8 /src/wallet/wallet_rpc_server_commands_defs.h
parentMerge pull request #65 from tewinget/daemon_rpc (diff)
downloadmonero-12596ad566b23c0b88678c01c0d1871167fefc79.tar.xz
Add get_bulk_payments rpc call
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet_rpc_server_commands_defs.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h
index 33130da06..b8b2f4e5f 100644
--- a/src/wallet/wallet_rpc_server_commands_defs.h
+++ b/src/wallet/wallet_rpc_server_commands_defs.h
@@ -137,12 +137,14 @@ namespace wallet_rpc
struct payment_details
{
+ std::string payment_id;
std::string tx_hash;
uint64_t amount;
uint64_t block_height;
uint64_t unlock_time;
BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(payment_id)
KV_SERIALIZE(tx_hash)
KV_SERIALIZE(amount)
KV_SERIALIZE(block_height)
@@ -170,6 +172,29 @@ namespace wallet_rpc
END_KV_SERIALIZE_MAP()
};
};
+
+ struct COMMAND_RPC_GET_BULK_PAYMENTS
+ {
+ struct request
+ {
+ std::vector<std::string> payment_ids;
+ uint64_t min_block_height;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(payment_ids)
+ KV_SERIALIZE(min_block_height)
+ END_KV_SERIALIZE_MAP()
+ };
+
+ struct response
+ {
+ std::list<payment_details> payments;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(payments)
+ END_KV_SERIALIZE_MAP()
+ };
+ };
struct transfer_details
{