Skip to content

Commit 4745636

Browse files
committed
Add RPC documentation for getblockheader[chainwork].
1 parent 16d4fce commit 4745636

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rpcblockchain.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ UniValue getblockheader(const UniValue& params, bool fHelp)
323323
" \"bits\" : \"1d00ffff\", (string) The bits\n"
324324
" \"difficulty\" : x.xxx, (numeric) The difficulty\n"
325325
" \"previousblockhash\" : \"hash\", (string) The hash of the previous block\n"
326-
" \"nextblockhash\" : \"hash\" (string) The hash of the next block\n"
326+
" \"nextblockhash\" : \"hash\", (string) The hash of the next block\n"
327+
" \"chainwork\" : \"0000...1f3\" (string) Expected number of hashes required to produce the current chain (in hex)\n"
327328
"}\n"
328329
"\nResult (for verbose=false):\n"
329330
"\"data\" (string) A string that is serialized, hex-encoded data for block 'hash'.\n"

0 commit comments

Comments
 (0)