|
1 | 1 | // Copyright (c) 2010 Satoshi Nakamoto
|
2 |
| -// Copyright (c) 2009-2018 The Bitcoin Core developers |
| 2 | +// Copyright (c) 2009-2019 The Bitcoin Core developers |
3 | 3 | // Distributed under the MIT software license, see the accompanying
|
4 | 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
5 | 5 |
|
@@ -66,17 +66,21 @@ static UniValue getrawtransaction(const JSONRPCRequest& request)
|
66 | 66 | {
|
67 | 67 | if (request.fHelp || request.params.size() < 1 || request.params.size() > 3)
|
68 | 68 | throw std::runtime_error(
|
69 |
| - RPCHelpMan{"getrawtransaction", |
| 69 | + RPCHelpMan{ |
| 70 | + "getrawtransaction", |
| 71 | + "\nReturn the raw transaction data.\n" |
| 72 | + |
70 | 73 | "\nBy default this function only works for mempool transactions. When called with a blockhash\n"
|
71 | 74 | "argument, getrawtransaction will return the transaction if the specified block is available and\n"
|
72 | 75 | "the transaction is found in that block. When called without a blockhash argument, getrawtransaction\n"
|
73 | 76 | "will return the transaction if it is in the mempool, or if -txindex is enabled and the transaction\n"
|
74 | 77 | "is in a block in the blockchain.\n"
|
75 | 78 |
|
76 |
| - "\nReturn the raw transaction data.\n" |
77 |
| - "\nIf verbose is 'true', returns an Object with information about 'txid'.\n" |
78 |
| - "If verbose is 'false' or omitted, returns a string that is serialized, hex-encoded data for 'txid'.\n" |
79 |
| - , |
| 79 | + "\nHint: use getmempoolentry to fetch a specific transaction from the mempool.\n" |
| 80 | + "Or use gettransaction for wallet transactions.\n" |
| 81 | + |
| 82 | + "\nIf verbose is 'true', returns an Object with information about 'txid'.\n" |
| 83 | + "If verbose is 'false' or omitted, returns a string that is serialized, hex-encoded data for 'txid'.\n", |
80 | 84 | {
|
81 | 85 | {"txid", RPCArg::Type::STR_HEX, /* opt */ false, /* default_val */ "", "The transaction id"},
|
82 | 86 | {"verbose", RPCArg::Type::BOOL, /* opt */ true, /* default_val */ "false", "If false, return a string, otherwise return a json object"},
|
|
0 commit comments