diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 49b6d67709..cb56e977f0 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -536,7 +536,7 @@ static RPCHelpMan sweepprivkeys() return RPCHelpMan{"sweepprivkeys", "\nSends bitcoins controlled by private key to specified destinations.\n", { - {"options", RPCArg::Type::OBJ, RPCArg::Optional::NO, "", + {"options", RPCArg::Type::OBJ_NAMED_PARAMS, RPCArg::Optional::NO, "", { {"privkeys", RPCArg::Type::ARR, RPCArg::Optional::NO, "An array of WIF private key(s)", { diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index 28460b63a4..eefc173954 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -93,6 +93,7 @@ static const CRPCConvertParam vRPCConvertParams[] = { "scanblocks", 5, "options" }, { "scanblocks", 5, "filter_false_positives" }, { "sweepprivkeys", 0, "options" }, + { "sweepprivkeys", 0, "privkeys" }, { "scantxoutset", 1, "scanobjects" }, { "addmultisigaddress", 0, "nrequired" }, { "addmultisigaddress", 1, "keys" },