diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index bfbdf2f22f..629dde9a14 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -194,6 +194,7 @@ static const CRPCConvertParam vRPCConvertParams[] = { "getusedcoinserials", 0 }, { "getlatestcoinids", 0 }, { "getsparkmintmetadata", 0 }, + { "getmempooltxs", 0 }, //Lelantus { "mintspark", 0 }, diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index c5f8234270..53b1c816c3 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -1525,12 +1525,12 @@ UniValue getmempooltxs(const JSONRPCRequest& request) "{\n" " \"txdata\" (Pair) nHeight and id for each coin\n" "}\n" - + HelpExampleCli("getmempooltxs", "'{[\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}'") - + HelpExampleRpc("getmempooltxs", "{[\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}") + + HelpExampleCli("getmempooltxs", "'{\"txids\": [\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}'") + + HelpExampleRpc("getmempooltxs", "{\"txids\": [\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}") ); - UniValue txids = request.params[0].get_obj(); + UniValue txids = find_value(request.params[0].get_obj(), "txids"); UniValue result(UniValue::VARR); for(UniValue const & element : txids.getValues()){