aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server_commans_defs.h
diff options
context:
space:
mode:
authorpaybee <dev@payb.ee>2014-05-27 12:52:11 +0200
committerpaybee <dev@payb.ee>2014-05-27 12:52:11 +0200
commitfeacdded6b48fcfe18bc3218b05b27e94db2fc92 (patch)
tree1a39df95f2319a085f66dede3f00f7451f98a598 /src/wallet/wallet_rpc_server_commans_defs.h
parentsimplewallet exits when COMMAND is given as a command-line argument (diff)
downloadmonero-feacdded6b48fcfe18bc3218b05b27e94db2fc92.tar.xz
Added incoming_transfers RPC API method
Diffstat (limited to 'src/wallet/wallet_rpc_server_commans_defs.h')
-rw-r--r--src/wallet/wallet_rpc_server_commans_defs.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commans_defs.h b/src/wallet/wallet_rpc_server_commans_defs.h
index b99d92ca2..7bdb49b2c 100644
--- a/src/wallet/wallet_rpc_server_commans_defs.h
+++ b/src/wallet/wallet_rpc_server_commans_defs.h
@@ -121,6 +121,42 @@ namespace wallet_rpc
END_KV_SERIALIZE_MAP()
};
};
+
+ struct transfer_details
+ {
+ uint64_t amount;
+ bool spent;
+ uint64_t global_index;
+ std::string tx_hash;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(amount)
+ KV_SERIALIZE(spent)
+ KV_SERIALIZE(global_index)
+ KV_SERIALIZE(tx_hash)
+ END_KV_SERIALIZE_MAP()
+ };
+
+ struct COMMAND_RPC_INCOMING_TRANSFERS
+ {
+ struct request
+ {
+ std::string transfer_type;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(transfer_type)
+ END_KV_SERIALIZE_MAP()
+ };
+
+ struct response
+ {
+ std::list<transfer_details> transfers;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(transfers)
+ END_KV_SERIALIZE_MAP()
+ };
+ };
}
}