Skip to content

Commit d87da93

Browse files
committed
rpc: Rename first named arg of createrawtransaction
as per bitcoin/bitcoin@fa55853
1 parent 7ae8964 commit d87da93

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rpc/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static const CRPCConvertParam vRPCConvertParams[] = {
3434
{ "autocombinerewards", 1, "threshold" },
3535
{ "createmultisig", 0, "nrequired" },
3636
{ "createmultisig", 1, "keys" },
37-
{ "createrawtransaction", 0, "transactions" },
37+
{ "createrawtransaction", 0, "inputs" },
3838
{ "createrawtransaction", 1, "outputs" },
3939
{ "createrawtransaction", 2, "locktime" },
4040
{ "delegatestake", 1, "amount" },

src/rpc/rawtransaction.cpp

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

272272
"\nArguments:\n"
273-
"1. \"transactions\" (string, required) A json array of json objects\n"
273+
"1. \"inputs\" (string, required) A json array of json objects\n"
274274
" [\n"
275275
" {\n"
276276
" \"txid\":\"id\", (string, required) The transaction id\n"
@@ -997,7 +997,7 @@ UniValue sendrawtransaction(const JSONRPCRequest& request)
997997
static const CRPCCommand commands[] =
998998
{ // category name actor (function) okSafe argNames
999999
// --------------------- ------------------------ ----------------------- ------ --------
1000-
{ "rawtransactions", "createrawtransaction", &createrawtransaction, true, {"transactions","outputs","locktime"} },
1000+
{ "rawtransactions", "createrawtransaction", &createrawtransaction, true, {"inputs","outputs","locktime"} },
10011001
{ "rawtransactions", "decoderawtransaction", &decoderawtransaction, true, {"hexstring"} },
10021002
{ "rawtransactions", "decodescript", &decodescript, true, {"hexstring"} },
10031003
{ "rawtransactions", "fundrawtransaction", &fundrawtransaction, false, {"hexstring","options"} },

0 commit comments

Comments
 (0)