|
|
@ -151,7 +151,7 @@ UniValue getblockcount(const JSONRPCRequest& request) |
|
|
|
if (request.fHelp || request.params.size() != 0) |
|
|
|
if (request.fHelp || request.params.size() != 0) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getblockcount\n" |
|
|
|
"getblockcount\n" |
|
|
|
"\nReturns the number of blocks in the longest block chain.\n" |
|
|
|
"\nReturns the number of blocks in the longest blockchain.\n" |
|
|
|
"\nResult:\n" |
|
|
|
"\nResult:\n" |
|
|
|
"n (numeric) The current block count\n" |
|
|
|
"n (numeric) The current block count\n" |
|
|
|
"\nExamples:\n" |
|
|
|
"\nExamples:\n" |
|
|
@ -168,7 +168,7 @@ UniValue getbestblockhash(const JSONRPCRequest& request) |
|
|
|
if (request.fHelp || request.params.size() != 0) |
|
|
|
if (request.fHelp || request.params.size() != 0) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getbestblockhash\n" |
|
|
|
"getbestblockhash\n" |
|
|
|
"\nReturns the hash of the best (tip) block in the longest block chain.\n" |
|
|
|
"\nReturns the hash of the best (tip) block in the longest blockchain.\n" |
|
|
|
"\nResult\n" |
|
|
|
"\nResult\n" |
|
|
|
"\"hex\" (string) the block hash hex encoded\n" |
|
|
|
"\"hex\" (string) the block hash hex encoded\n" |
|
|
|
"\nExamples\n" |
|
|
|
"\nExamples\n" |
|
|
@ -1027,7 +1027,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request) |
|
|
|
if (request.fHelp || request.params.size() != 0) |
|
|
|
if (request.fHelp || request.params.size() != 0) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getblockchaininfo\n" |
|
|
|
"getblockchaininfo\n" |
|
|
|
"Returns an object containing various state info regarding block chain processing.\n" |
|
|
|
"Returns an object containing various state info regarding blockchain processing.\n" |
|
|
|
"\nResult:\n" |
|
|
|
"\nResult:\n" |
|
|
|
"{\n" |
|
|
|
"{\n" |
|
|
|
" \"chain\": \"xxxx\", (string) current network name as defined in BIP70 (main, test, regtest)\n" |
|
|
|
" \"chain\": \"xxxx\", (string) current network name as defined in BIP70 (main, test, regtest)\n" |
|
|
|