From 82bbf1e958fefedbc253ea1ec1a95018a42d6bcb Mon Sep 17 00:00:00 2001 From: plavirudar <36850308+plavirudar@users.noreply.github.com> Date: Fri, 31 Aug 2018 22:39:08 +0800 Subject: [PATCH] Document the `get_tx_key` RPC call (#1) * Document the `get_tx_key` RPC call Discussion https://github.com/monero-project/monero/issues/4316 * Update wallet-rpc.md * Update wallet-rpc.md --- .../resources/developer-guides/wallet-rpc.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/_i18n/en/resources/developer-guides/wallet-rpc.md b/_i18n/en/resources/developer-guides/wallet-rpc.md index ba2d435..89172ed 100644 --- a/_i18n/en/resources/developer-guides/wallet-rpc.md +++ b/_i18n/en/resources/developer-guides/wallet-rpc.md @@ -57,6 +57,7 @@ Note: "@atomic-units" refer to the smallest fraction of 1 XMR according to the m * [rescan_blockchain](#rescan_blockchain) * [set_tx_notes](#set_tx_notes) * [get_tx_notes](#get_tx_notes) +* [get_tx_key](#get_tx_key) * [sign](#sign) * [verify](#verify) * [export_key_images](#export_key_images) @@ -1022,6 +1023,33 @@ $ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","me } ``` +### **get_tx_key** + +Get the transaction private key for a transaction. + +Inputs: + +* *txid* - string; transaction id + +Outputs: + +* *tx_key* - string; transaction private key of the transaction + +Example: + +``` +$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","method":"get_tx_key","params":{"txid":"6a1a100c079c236e2cbf36f7760e8ef1a9e8357c434aa790a8c78de653ec4cf2"}}' -H 'Content-Type: application/json' + +{ + "id": "0", + "jsonrpc": "2.0", + "result": { + "tx_key": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" + } +} +``` + + ### **sign** -- GitLab