We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b45b2 commit a99a3c0Copy full SHA for a99a3c0
src/wallet/rpcwallet.cpp
@@ -2898,6 +2898,15 @@ static UniValue listunspent(const JSONRPCRequest& request)
2898
if (!request.params[4].isNull()) {
2899
const UniValue& options = request.params[4].get_obj();
2900
2901
+ RPCTypeCheckObj(options,
2902
+ {
2903
+ {"minimumAmount", UniValueType()},
2904
+ {"maximumAmount", UniValueType()},
2905
+ {"minimumSumAmount", UniValueType()},
2906
+ {"maximumCount", UniValueType(UniValue::VNUM)},
2907
+ },
2908
+ true, true);
2909
+
2910
if (options.exists("minimumAmount"))
2911
nMinimumAmount = AmountFromValue(options["minimumAmount"]);
2912
0 commit comments