diff options
author | MarcoFalke <falke.marco@gmail.com> | 2017-08-28 15:45:11 -0800 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-08-28 15:45:45 -0800 |
commit | 91e49c51f1aecc9e1d75457f4920d52a4b0a133c (patch) | |
tree | 585a4a0553bf8d816f91a89eb8257ae357361445 /src | |
parent | 60dd9cc470584960431de425e2a9ffbed0e8034a (diff) | |
parent | 6d2d2eb49389d70a5db327e133c9c90748f82d5f (diff) |
Merge #10859: RPC: gettxout: Slightly improve doc and tests
6d2d2eb49 RPC: gettxout: Slightly improve doc and tests (Jorge Timón)
Pull request description:
Slightly related to https://github.com/bitcoin/bitcoin/pull/10822 in the sense that I felt the documentation and testing wasn't as good as it could be while writing it.
Ping @sipa since we discussed this on IRC.
Tree-SHA512: a0b3ffdac65245a0429e772fc2d8bcc1e829b02c70fb2af6ee0b7578cae46683f6c51a824b4d703d4dc3f99b6f03a658d6bbc818bf32981516f24124249a211d
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/blockchain.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 34f553f3b0..e6b78516ed 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -944,9 +944,10 @@ UniValue gettxout(const JSONRPCRequest& request) "gettxout \"txid\" n ( include_mempool )\n" "\nReturns details about an unspent transaction output.\n" "\nArguments:\n" - "1. \"txid\" (string, required) The transaction id\n" - "2. n (numeric, required) vout number\n" - "3. include_mempool (boolean, optional) Whether to include the mempool\n" + "1. \"txid\" (string, required) The transaction id\n" + "2. \"n\" (numeric, required) vout number\n" + "3. \"include_mempool\" (boolean, optional) Whether to include the mempool. Default: true." + " Note that an unspent output that is spent in the mempool won't appear.\n" "\nResult:\n" "{\n" " \"bestblock\" : \"hash\", (string) the block hash\n" |