Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/misc.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | RPCHelpMan{ | ||||
"valid or not. If not, this is the only property returned.\n" | "valid or not. If not, this is the only property returned.\n" | ||||
" \"address\" : \"address\", (string) The bitcoin address " | " \"address\" : \"address\", (string) The bitcoin address " | ||||
"validated\n" | "validated\n" | ||||
" \"scriptPubKey\" : \"hex\", (string) The hex-encoded " | " \"scriptPubKey\" : \"hex\", (string) The hex-encoded " | ||||
"scriptPubKey generated by the address\n" | "scriptPubKey generated by the address\n" | ||||
" \"isscript\" : true|false, (boolean) If the key is a " | " \"isscript\" : true|false, (boolean) If the key is a " | ||||
"script\n" | "script\n" | ||||
"}\n"}, | "}\n"}, | ||||
RPCExamples{HelpExampleCli("validateaddress", | RPCExamples{HelpExampleCli("validateaddress", EXAMPLE_ADDRESS) + | ||||
"\"1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc\"") + | HelpExampleRpc("validateaddress", EXAMPLE_ADDRESS)}, | ||||
HelpExampleRpc("validateaddress", | |||||
"\"1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc\"")}, | |||||
} | } | ||||
.Check(request); | .Check(request); | ||||
CTxDestination dest = | CTxDestination dest = | ||||
DecodeDestination(request.params[0].get_str(), config.GetChainParams()); | DecodeDestination(request.params[0].get_str(), config.GetChainParams()); | ||||
bool isValid = IsValidDestination(dest); | bool isValid = IsValidDestination(dest); | ||||
UniValue ret(UniValue::VOBJ); | UniValue ret(UniValue::VOBJ); | ||||
▲ Show 20 Lines • Show All 686 Lines • Show Last 20 Lines |