fix getblockdeltas documentation formatting

This commit is contained in:
Larry Ruane 2019-08-08 14:38:45 -06:00
parent 2e505df351
commit 5bba8493d5
1 changed files with 14 additions and 14 deletions

View File

@ -414,7 +414,7 @@ UniValue getblockdeltas(const UniValue& params, bool fHelp)
if (fHelp || params.size() != 1)
throw runtime_error(
"getblockdeltas \"blockhash\"\n"
"\nReturns the txid and index where an output is spent.\n"
"\nReturns information about the given block and its transactions.\n"
+ disabledMsg +
"\nArguments:\n"
"1. \"hash\" (string, required) The block hash\n"
@ -425,12 +425,12 @@ UniValue getblockdeltas(const UniValue& params, bool fHelp)
" \"size\": n, (numeric) block size in bytes\n"
" \"height\": n, (numeric) block height\n"
" \"version\": n, (numeric) block version (e.g. 4)\n"
" \"merkleroot\": \"hash\", (string) block Merkle root\n"
" \"merkleroot\": \"hash\", (hexstring) block Merkle root\n"
" \"deltas\": [\n"
" {\n"
" \"txid\": \"hash\", (string) transaction ID\n"
" \"index\": n, (numeric) tx index in block\n"
" \"inputs\": [\n"
" \"txid\": \"hash\", (hexstring) transaction ID\n"
" \"index\": n, (numeric) The offset of the tx in the block\n"
" \"inputs\": [ (array of json objects)\n"
" {\n"
" \"address\": \"taddr\", (string) transparent address\n"
" \"satoshis\": n, (numeric) negative of spend amount\n"
@ -439,7 +439,7 @@ UniValue getblockdeltas(const UniValue& params, bool fHelp)
" \"prevout\": n (numeric) source utxo index\n"
" }, ...\n"
" ],\n"
" \"outputs\": [\n"
" \"outputs\": [ (array of json objects)\n"
" {\n"
" \"address\": \"taddr\", (string) transparent address\n"
" \"satoshis\": n, (numeric) amount\n"
@ -448,14 +448,14 @@ UniValue getblockdeltas(const UniValue& params, bool fHelp)
" ]\n"
" }, ...\n"
" ],\n"
" \"time\": n,\n"
" \"mediantime\": n,\n"
" \"nonce\": \"hexstring\",\n"
" \"bits\": \"hexstring\",\n"
" \"difficulty\": ,\n"
" \"chainwork\": \"hexstring\",\n"
" \"previousblockhash\": \"hash\",\n"
" \"nextblockhash\": \"hash\"\n"
" \"time\" : n, (numeric) The block version\n"
" \"mediantime\": n, (numeric) The most recent blocks' ave time\n"
" \"nonce\" : \"nonce\", (hex string) The nonce\n"
" \"bits\" : \"1d00ffff\", (hex string) The bits\n"
" \"difficulty\": n, (numeric) the current difficulty\n"
" \"chainwork\": \"xxxx\" (hex string) total amount of work in active chain\n"
" \"previousblockhash\" : \"hash\",(hex string) The hash of the previous block\n"
" \"nextblockhash\" : \"hash\" (hex string) The hash of the next block\n"
"}\n"
"\nExamples:\n"
+ HelpExampleCli("getblockdeltas", "00227e566682aebd6a7a5b772c96d7a999cadaebeaf1ce96f4191a3aad58b00b")