aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server_commands_defs.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-11 09:17:04 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-24 14:03:55 +0000
commit9739da1e840b2fac30fd60c63717ea16a7a43007 (patch)
treedf69b675f1d1d49082b5328f8f0962e04d3724b4 /src/wallet/wallet_rpc_server_commands_defs.h
parentwallet: transfer RPC can now return tx metadata (pending_tx) (diff)
downloadmonero-9739da1e840b2fac30fd60c63717ea16a7a43007.tar.xz
wallet_rpc_server: new relay_tx command
It takes a full tx+metadata hex string as input
Diffstat (limited to 'src/wallet/wallet_rpc_server_commands_defs.h')
-rw-r--r--src/wallet/wallet_rpc_server_commands_defs.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h
index 97a6c9758..ee6fab84a 100644
--- a/src/wallet/wallet_rpc_server_commands_defs.h
+++ b/src/wallet/wallet_rpc_server_commands_defs.h
@@ -539,6 +539,33 @@ namespace wallet_rpc
};
};
+ struct COMMAND_RPC_RELAY_TX
+ {
+ struct request
+ {
+ std::string hex;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(hex)
+ END_KV_SERIALIZE_MAP()
+ };
+
+ struct response
+ {
+ std::string tx_hash;
+ std::string tx_key;
+ uint64_t fee;
+ std::string tx_blob;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(tx_hash)
+ KV_SERIALIZE(tx_key)
+ KV_SERIALIZE(fee)
+ KV_SERIALIZE(tx_blob)
+ END_KV_SERIALIZE_MAP()
+ };
+ };
+
struct COMMAND_RPC_STORE
{
struct request