mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-23 05:59:48 +01:00
[rpc] Descriptions: Textual consistency fixes
'Must be one of' should always end in a ':' 'hex encoded' is now always 'hex-encoded' Remove redundant '(defaults to CONSERVATIVE)' text from estimatesmartfee Consistent spacing for options '( verbose )' and '( verbosity )' 'BIP125 replaceable' is now always 'BIP125-replaceable' JSON-RPC example is now always 'As a JSON-RPC call'
This commit is contained in:
@@ -182,7 +182,7 @@ static UniValue getbestblockhash(const JSONRPCRequest& request)
|
||||
"getbestblockhash\n"
|
||||
"\nReturns the hash of the best (tip) block in the longest blockchain.\n"
|
||||
"\nResult:\n"
|
||||
"\"hex\" (string) the block hash hex encoded\n"
|
||||
"\"hex\" (string) the block hash, hex-encoded\n"
|
||||
"\nExamples:\n"
|
||||
+ HelpExampleCli("getbestblockhash", "")
|
||||
+ HelpExampleRpc("getbestblockhash", "")
|
||||
@@ -509,17 +509,17 @@ static UniValue getmempoolancestors(const JSONRPCRequest& request)
|
||||
{
|
||||
if (request.fHelp || request.params.size() < 1 || request.params.size() > 2) {
|
||||
throw std::runtime_error(
|
||||
"getmempoolancestors txid (verbose)\n"
|
||||
"getmempoolancestors txid ( verbose )\n"
|
||||
"\nIf txid is in the mempool, returns all in-mempool ancestors.\n"
|
||||
"\nArguments:\n"
|
||||
"1. \"txid\" (string, required) The transaction id (must be in mempool)\n"
|
||||
"2. verbose (boolean, optional, default=false) True for a json object, false for array of transaction ids\n"
|
||||
"\nResult (for verbose=false):\n"
|
||||
"\nResult (for verbose = false):\n"
|
||||
"[ (json array of strings)\n"
|
||||
" \"transactionid\" (string) The transaction id of an in-mempool ancestor transaction\n"
|
||||
" ,...\n"
|
||||
"]\n"
|
||||
"\nResult (for verbose=true):\n"
|
||||
"\nResult (for verbose = true):\n"
|
||||
"{ (json object)\n"
|
||||
" \"transactionid\" : { (json object)\n"
|
||||
+ EntryDescriptionString()
|
||||
@@ -573,17 +573,17 @@ static UniValue getmempooldescendants(const JSONRPCRequest& request)
|
||||
{
|
||||
if (request.fHelp || request.params.size() < 1 || request.params.size() > 2) {
|
||||
throw std::runtime_error(
|
||||
"getmempooldescendants txid (verbose)\n"
|
||||
"getmempooldescendants txid ( verbose )\n"
|
||||
"\nIf txid is in the mempool, returns all in-mempool descendants.\n"
|
||||
"\nArguments:\n"
|
||||
"1. \"txid\" (string, required) The transaction id (must be in mempool)\n"
|
||||
"2. verbose (boolean, optional, default=false) True for a json object, false for array of transaction ids\n"
|
||||
"\nResult (for verbose=false):\n"
|
||||
"\nResult (for verbose = false):\n"
|
||||
"[ (json array of strings)\n"
|
||||
" \"transactionid\" (string) The transaction id of an in-mempool descendant transaction\n"
|
||||
" ,...\n"
|
||||
"]\n"
|
||||
"\nResult (for verbose=true):\n"
|
||||
"\nResult (for verbose = true):\n"
|
||||
"{ (json object)\n"
|
||||
" \"transactionid\" : { (json object)\n"
|
||||
+ EntryDescriptionString()
|
||||
@@ -700,7 +700,7 @@ static UniValue getblockheader(const JSONRPCRequest& request)
|
||||
"If verbose is true, returns an Object with information about blockheader <hash>.\n"
|
||||
"\nArguments:\n"
|
||||
"1. \"hash\" (string, required) The block hash\n"
|
||||
"2. verbose (boolean, optional, default=true) true for a json object, false for the hex encoded data\n"
|
||||
"2. verbose (boolean, optional, default=true) true for a json object, false for the hex-encoded data\n"
|
||||
"\nResult (for verbose = true):\n"
|
||||
"{\n"
|
||||
" \"hash\" : \"hash\", (string) the block hash (same as provided)\n"
|
||||
@@ -779,7 +779,7 @@ static UniValue getblock(const JSONRPCRequest& request)
|
||||
"If verbosity is 2, returns an Object with information about block <hash> and information about each transaction. \n"
|
||||
"\nArguments:\n"
|
||||
"1. \"blockhash\" (string, required) The block hash\n"
|
||||
"2. verbosity (numeric, optional, default=1) 0 for hex encoded data, 1 for a json object, and 2 for json object with transaction data\n"
|
||||
"2. verbosity (numeric, optional, default=1) 0 for hex-encoded data, 1 for a json object, and 2 for json object with transaction data\n"
|
||||
"\nResult (for verbosity = 0):\n"
|
||||
"\"data\" (string) A string that is serialized, hex-encoded data for block 'hash'.\n"
|
||||
"\nResult (for verbosity = 1):\n"
|
||||
@@ -1046,7 +1046,7 @@ UniValue gettxout(const JSONRPCRequest& request)
|
||||
+ HelpExampleCli("listunspent", "") +
|
||||
"\nView the details\n"
|
||||
+ HelpExampleCli("gettxout", "\"txid\" 1") +
|
||||
"\nAs a json rpc call\n"
|
||||
"\nAs a JSON-RPC call\n"
|
||||
+ HelpExampleRpc("gettxout", "\"txid\", 1")
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user