Skip to content

Commit 9692be4

Browse files
committed
Merge #10084: rpc: Rename first named arg of createrawtransaction
fa55853 rpc: Rename first named arg of createrawtransaction (MarcoFalke) Tree-SHA512: f2e07183f2503344e676e08fe0fd73e995d7c6fda3fc11c64116208dec8e445f0627583dfba85014129b6f2dc7e253b9d760e57e66811272db89e9ba25ce6dbc
2 parents 4bd0e9b + fa55853 commit 9692be4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/rpc/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
8181
{ "getblockheader", 1, "verbose" },
8282
{ "gettransaction", 1, "include_watchonly" },
8383
{ "getrawtransaction", 1, "verbose" },
84-
{ "createrawtransaction", 0, "transactions" },
84+
{ "createrawtransaction", 0, "inputs" },
8585
{ "createrawtransaction", 1, "outputs" },
8686
{ "createrawtransaction", 2, "locktime" },
8787
{ "signrawtransaction", 1, "prevtxs" },

src/rpc/rawtransaction.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ UniValue createrawtransaction(const JSONRPCRequest& request)
360360
"it is not stored in the wallet or transmitted to the network.\n"
361361

362362
"\nArguments:\n"
363-
"1. \"inputs\" (string, required) A json array of json objects\n"
363+
"1. \"inputs\" (array, required) A json array of json objects\n"
364364
" [\n"
365365
" {\n"
366366
" \"txid\":\"id\", (string, required) The transaction id\n"
@@ -369,7 +369,7 @@ UniValue createrawtransaction(const JSONRPCRequest& request)
369369
" } \n"
370370
" ,...\n"
371371
" ]\n"
372-
"2. \"outputs\" (string, required) a json object with outputs\n"
372+
"2. \"outputs\" (object, required) a json object with outputs\n"
373373
" {\n"
374374
" \"address\": x.xxx, (numeric or string, required) The key is the bitcoin address, the numeric value (can be string) is the " + CURRENCY_UNIT + " amount\n"
375375
" \"data\": \"hex\" (string, required) The key is \"data\", the value is hex encoded data\n"
@@ -936,7 +936,7 @@ static const CRPCCommand commands[] =
936936
{ // category name actor (function) okSafeMode
937937
// --------------------- ------------------------ ----------------------- ----------
938938
{ "rawtransactions", "getrawtransaction", &getrawtransaction, true, {"txid","verbose"} },
939-
{ "rawtransactions", "createrawtransaction", &createrawtransaction, true, {"transactions","outputs","locktime"} },
939+
{ "rawtransactions", "createrawtransaction", &createrawtransaction, true, {"inputs","outputs","locktime"} },
940940
{ "rawtransactions", "decoderawtransaction", &decoderawtransaction, true, {"hexstring"} },
941941
{ "rawtransactions", "decodescript", &decodescript, true, {"hexstring"} },
942942
{ "rawtransactions", "sendrawtransaction", &sendrawtransaction, false, {"hexstring","allowhighfees"} },

0 commit comments

Comments
 (0)