diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-11 09:17:04 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-24 14:03:55 +0000 |
commit | 9739da1e840b2fac30fd60c63717ea16a7a43007 (patch) | |
tree | df69b675f1d1d49082b5328f8f0962e04d3724b4 /src/wallet/wallet_rpc_server_commands_defs.h | |
parent | wallet: transfer RPC can now return tx metadata (pending_tx) (diff) | |
download | monero-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.h | 27 |
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 |