Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 480 Lines • ▼ Show 20 Lines | if (request.fHelp || request.params.size() > 1) { | ||||
"\nResult: (for verbose = false):\n" | "\nResult: (for verbose = false):\n" | ||||
"[ (json array of string)\n" | "[ (json array of string)\n" | ||||
" \"transactionid\" (string) The transaction id\n" | " \"transactionid\" (string) The transaction id\n" | ||||
" ,...\n" | " ,...\n" | ||||
"]\n" | "]\n" | ||||
"\nResult: (for verbose = true):\n" | "\nResult: (for verbose = true):\n" | ||||
"{ (json object)\n" | "{ (json object)\n" | ||||
" \"transactionid\" : { (json object)\n" + | " \"transactionid\" : { (json object)\n" + | ||||
EntryDescriptionString() + " }, ...\n" | EntryDescriptionString() + | ||||
" }, ...\n" | |||||
"}\n" | "}\n" | ||||
"\nExamples:\n" + | "\nExamples:\n" + | ||||
HelpExampleCli("getrawmempool", "true") + | HelpExampleCli("getrawmempool", "true") + | ||||
HelpExampleRpc("getrawmempool", "true")); | HelpExampleRpc("getrawmempool", "true")); | ||||
} | } | ||||
bool fVerbose = false; | bool fVerbose = false; | ||||
if (request.params.size() > 0) { | if (request.params.size() > 0) { | ||||
fVerbose = request.params[0].get_bool(); | fVerbose = request.params[0].get_bool(); | ||||
} | } | ||||
Show All 17 Lines | if (request.fHelp || request.params.size() < 1 || | ||||
"[ (json array of strings)\n" | "[ (json array of strings)\n" | ||||
" \"transactionid\" (string) The transaction id of an " | " \"transactionid\" (string) The transaction id of an " | ||||
"in-mempool ancestor transaction\n" | "in-mempool ancestor transaction\n" | ||||
" ,...\n" | " ,...\n" | ||||
"]\n" | "]\n" | ||||
"\nResult (for verbose=true):\n" | "\nResult (for verbose=true):\n" | ||||
"{ (json object)\n" | "{ (json object)\n" | ||||
" \"transactionid\" : { (json object)\n" + | " \"transactionid\" : { (json object)\n" + | ||||
EntryDescriptionString() + " }, ...\n" | EntryDescriptionString() + | ||||
" }, ...\n" | |||||
"}\n" | "}\n" | ||||
"\nExamples:\n" + | "\nExamples:\n" + | ||||
HelpExampleCli("getmempoolancestors", "\"mytxid\"") + | HelpExampleCli("getmempoolancestors", "\"mytxid\"") + | ||||
HelpExampleRpc("getmempoolancestors", "\"mytxid\"")); | HelpExampleRpc("getmempoolancestors", "\"mytxid\"")); | ||||
} | } | ||||
bool fVerbose = false; | bool fVerbose = false; | ||||
if (request.params.size() > 1) { | if (request.params.size() > 1) { | ||||
fVerbose = request.params[1].get_bool(); | fVerbose = request.params[1].get_bool(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | if (request.fHelp || request.params.size() < 1 || | ||||
"[ (json array of strings)\n" | "[ (json array of strings)\n" | ||||
" \"transactionid\" (string) The transaction id of an " | " \"transactionid\" (string) The transaction id of an " | ||||
"in-mempool descendant transaction\n" | "in-mempool descendant transaction\n" | ||||
" ,...\n" | " ,...\n" | ||||
"]\n" | "]\n" | ||||
"\nResult (for verbose=true):\n" | "\nResult (for verbose=true):\n" | ||||
"{ (json object)\n" | "{ (json object)\n" | ||||
" \"transactionid\" : { (json object)\n" + | " \"transactionid\" : { (json object)\n" + | ||||
EntryDescriptionString() + " }, ...\n" | EntryDescriptionString() + | ||||
" }, ...\n" | |||||
"}\n" | "}\n" | ||||
"\nExamples:\n" + | "\nExamples:\n" + | ||||
HelpExampleCli("getmempooldescendants", "\"mytxid\"") + | HelpExampleCli("getmempooldescendants", "\"mytxid\"") + | ||||
HelpExampleRpc("getmempooldescendants", "\"mytxid\"")); | HelpExampleRpc("getmempooldescendants", "\"mytxid\"")); | ||||
} | } | ||||
bool fVerbose = false; | bool fVerbose = false; | ||||
if (request.params.size() > 1) fVerbose = request.params[1].get_bool(); | if (request.params.size() > 1) fVerbose = request.params[1].get_bool(); | ||||
uint256 hash = ParseHashV(request.params[0], "parameter 1"); | uint256 hash = ParseHashV(request.params[0], "parameter 1"); | ||||
Show All 36 Lines | if (request.fHelp || request.params.size() != 1) { | ||||
throw std::runtime_error( | throw std::runtime_error( | ||||
"getmempoolentry txid\n" | "getmempoolentry txid\n" | ||||
"\nReturns mempool data for given transaction\n" | "\nReturns mempool data for given transaction\n" | ||||
"\nArguments:\n" | "\nArguments:\n" | ||||
"1. \"txid\" (string, required) " | "1. \"txid\" (string, required) " | ||||
"The transaction id (must be in mempool)\n" | "The transaction id (must be in mempool)\n" | ||||
"\nResult:\n" | "\nResult:\n" | ||||
"{ (json object)\n" + | "{ (json object)\n" + | ||||
EntryDescriptionString() + "}\n" | EntryDescriptionString() + | ||||
"}\n" | |||||
"\nExamples:\n" + | "\nExamples:\n" + | ||||
HelpExampleCli("getmempoolentry", "\"mytxid\"") + | HelpExampleCli("getmempoolentry", "\"mytxid\"") + | ||||
HelpExampleRpc("getmempoolentry", "\"mytxid\"")); | HelpExampleRpc("getmempoolentry", "\"mytxid\"")); | ||||
} | } | ||||
uint256 hash = ParseHashV(request.params[0], "parameter 1"); | uint256 hash = ParseHashV(request.params[0], "parameter 1"); | ||||
LOCK(g_mempool.cs); | LOCK(g_mempool.cs); | ||||
▲ Show 20 Lines • Show All 1,194 Lines • Show Last 20 Lines |