Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 2,734 Lines • ▼ Show 20 Lines | RPCHelpMan{ | ||||
"", | "", | ||||
"", | "", | ||||
{ | { | ||||
{RPCResult::Type::STR_HEX, "filter", | {RPCResult::Type::STR_HEX, "filter", | ||||
"the hex-encoded filter data"}, | "the hex-encoded filter data"}, | ||||
{RPCResult::Type::STR_HEX, "header", | {RPCResult::Type::STR_HEX, "header", | ||||
"the hex-encoded filter header"}, | "the hex-encoded filter header"}, | ||||
}}, | }}, | ||||
RPCExamples{HelpExampleCli("getblockfilter", | RPCExamples{ | ||||
HelpExampleCli("getblockfilter", | |||||
"\"00000000c937983704a73af28acdec37b049d214a" | "\"00000000c937983704a73af28acdec37b049d214a" | ||||
"dbda81d7e2a3dd146f6ed09\" \"basic\"")}} | "dbda81d7e2a3dd146f6ed09\" \"basic\"") + | ||||
HelpExampleRpc("getblockfilter", | |||||
"\"00000000c937983704a73af28acdec37b049d214adbda81d7" | |||||
"e2a3dd146f6ed09\", \"basic\"")}} | |||||
.Check(request); | .Check(request); | ||||
const BlockHash block_hash(ParseHashV(request.params[0], "blockhash")); | const BlockHash block_hash(ParseHashV(request.params[0], "blockhash")); | ||||
std::string filtertype_name = "basic"; | std::string filtertype_name = "basic"; | ||||
if (!request.params[1].isNull()) { | if (!request.params[1].isNull()) { | ||||
filtertype_name = request.params[1].get_str(); | filtertype_name = request.params[1].get_str(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 217 Lines • Show Last 20 Lines |