mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
RPC: gettxout: Slightly improve doc and tests
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user