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

Function GetAllOutputTypes

src/rpc/util.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27const std::string EXAMPLE_ADDRESS[2] = {"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl", "bc1q02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3"};
28
29std::string GetAllOutputTypes()
30{
31 std::vector<std::string> ret;
32 using U = std::underlying_type<TxoutType>::type;
33 for (U i = (U)TxoutType::NONSTANDARD; i <= (U)TxoutType::WITNESS_UNKNOWN; ++i) {
34 ret.emplace_back(GetTxnOutputType(static_cast<TxoutType>(i)));
35 }
36 return Join(ret, ", ");
37}
38
39void RPCTypeCheck(const UniValue& params,
40 const std::list<UniValueType>& typesExpected,

Callers 2

decodescriptFunction · 0.85
getblockFunction · 0.85

Calls 3

GetTxnOutputTypeFunction · 0.85
JoinFunction · 0.85
emplace_backMethod · 0.80

Tested by

no test coverage detected