Skip to content

Commit 8d713f7

Browse files
committed
rpc: Named arguments for rawtransaction calls
1 parent 37a166f commit 8d713f7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ UniValue decodescript(const JSONRPCRequest& request)
532532
{
533533
if (request.fHelp || request.params.size() != 1)
534534
throw runtime_error(
535-
"decodescript \"hex\"\n"
535+
"decodescript \"hexstring\"\n"
536536
"\nDecode a hex-encoded script.\n"
537537
"\nArguments:\n"
538538
"1. \"hex\" (string) the hex encoded script\n"
@@ -616,7 +616,7 @@ UniValue signrawtransaction(const JSONRPCRequest& request)
616616
" }\n"
617617
" ,...\n"
618618
" ]\n"
619-
"3. \"privatekeys\" (string, optional) A json array of base58-encoded private keys for signing\n"
619+
"3. \"privkeys\" (string, optional) A json array of base58-encoded private keys for signing\n"
620620
" [ (json array of strings, or 'null' if none provided)\n"
621621
" \"privatekey\" (string) private key in base58-encoding\n"
622622
" ,...\n"
@@ -926,15 +926,15 @@ UniValue sendrawtransaction(const JSONRPCRequest& request)
926926
static const CRPCCommand commands[] =
927927
{ // category name actor (function) okSafeMode
928928
// --------------------- ------------------------ ----------------------- ----------
929-
{ "rawtransactions", "getrawtransaction", &getrawtransaction, true },
930-
{ "rawtransactions", "createrawtransaction", &createrawtransaction, true },
931-
{ "rawtransactions", "decoderawtransaction", &decoderawtransaction, true },
932-
{ "rawtransactions", "decodescript", &decodescript, true },
933-
{ "rawtransactions", "sendrawtransaction", &sendrawtransaction, false },
934-
{ "rawtransactions", "signrawtransaction", &signrawtransaction, false }, /* uses wallet if enabled */
935-
936-
{ "blockchain", "gettxoutproof", &gettxoutproof, true },
937-
{ "blockchain", "verifytxoutproof", &verifytxoutproof, true },
929+
{ "rawtransactions", "getrawtransaction", &getrawtransaction, true, {"txid","verbose"} },
930+
{ "rawtransactions", "createrawtransaction", &createrawtransaction, true, {"transactions","outputs","locktime"} },
931+
{ "rawtransactions", "decoderawtransaction", &decoderawtransaction, true, {"hexstring"} },
932+
{ "rawtransactions", "decodescript", &decodescript, true, {"hexstring"} },
933+
{ "rawtransactions", "sendrawtransaction", &sendrawtransaction, false, {"hexstring","allowhighfees"} },
934+
{ "rawtransactions", "signrawtransaction", &signrawtransaction, false, {"hexstring","prevtxs","privkeys","sighashtype"} }, /* uses wallet if enabled */
935+
936+
{ "blockchain", "gettxoutproof", &gettxoutproof, true, {"txids", "blockhash"} },
937+
{ "blockchain", "verifytxoutproof", &verifytxoutproof, true, {"proof"} },
938938
};
939939

940940
void RegisterRawTransactionRPCCommands(CRPCTable &t)

0 commit comments

Comments
 (0)