Skip to content

Commit e0c06d2

Browse files
hardinglaanwj
authored andcommitted
Typo Fix In decoderawtransaction Help: s/txid/hex/
Help text appears to have been copy/pasted from getrawtransaction, so it erroneously asked for a txid where rawtransaction hex should appear. Remove lines which were copy/pasted from getrawtransaction but which aren't displayed by decoderawtransaction. Rebased-By: Wladimir J. van der Laan <[email protected]> Rebased-From: 5cc0133 80c521e Github-Pull: #4106
1 parent 0ecd8aa commit e0c06d2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/rpcrawtransaction.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,11 @@ Value decoderawtransaction(const Array& params, bool fHelp)
400400
"\nReturn a JSON object representing the serialized, hex-encoded transaction.\n"
401401

402402
"\nArguments:\n"
403-
"1. \"txid\" (string, required) The transaction hex string\n"
403+
"1. \"hex\" (string, required) The transaction hex string\n"
404404

405405
"\nResult:\n"
406406
"{\n"
407-
" \"hex\" : \"data\", (string) The serialized, hex-encoded data for 'txid'\n"
408-
" \"txid\" : \"id\", (string) The transaction id (same as provided)\n"
407+
" \"txid\" : \"id\", (string) The transaction id\n"
409408
" \"version\" : n, (numeric) The version\n"
410409
" \"locktime\" : ttt, (numeric) The lock time\n"
411410
" \"vin\" : [ (array of json objects)\n"
@@ -437,10 +436,6 @@ Value decoderawtransaction(const Array& params, bool fHelp)
437436
" }\n"
438437
" ,...\n"
439438
" ],\n"
440-
" \"blockhash\" : \"hash\", (string) the block hash\n"
441-
" \"confirmations\" : n, (numeric) The confirmations\n"
442-
" \"time\" : ttt, (numeric) The transaction time in seconds since epoch (Jan 1 1970 GMT)\n"
443-
" \"blocktime\" : ttt (numeric) The block time in seconds since epoch (Jan 1 1970 GMT)\n"
444439
"}\n"
445440

446441
"\nExamples:\n"

0 commit comments

Comments
 (0)