MCPcopy Create free account
hub / github.com/ElementsProject/elements / RPCTypeCheck

Function RPCTypeCheck

src/rpc/util.cpp:39–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void RPCTypeCheck(const UniValue& params,
40 const std::list<UniValueType>& typesExpected,
41 bool fAllowNull)
42{
43 unsigned int i = 0;
44 for (const UniValueType& t : typesExpected) {
45 if (params.size() <= i)
46 break;
47
48 const UniValue& v = params[i];
49 if (!(fAllowNull && v.isNull())) {
50 RPCTypeCheckArgument(v, t);
51 }
52 i++;
53 }
54}
55
56void RPCTypeCheckArgument(const UniValue& value, const UniValueType& typeExpected)
57{

Callers 15

importmultiFunction · 0.85
importdescriptorsFunction · 0.85
fundrawtransactionFunction · 0.85
bumpfee_helperFunction · 0.85
sendFunction · 0.85
walletprocesspsbtFunction · 0.85
walletcreatefundedpsbtFunction · 0.85
upgradewalletFunction · 0.85
unblindrawtransactionFunction · 0.85
estimatesmartfeeFunction · 0.85
estimaterawfeeFunction · 0.85

Calls 3

RPCTypeCheckArgumentFunction · 0.85
sizeMethod · 0.45
isNullMethod · 0.45

Tested by

no test coverage detected