Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/util.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Utilities: convert hex-encoded values (throws error if not hex). | * Utilities: convert hex-encoded values (throws error if not hex). | ||||
*/ | */ | ||||
extern uint256 ParseHashV(const UniValue &v, std::string strName); | extern uint256 ParseHashV(const UniValue &v, std::string strName); | ||||
extern uint256 ParseHashO(const UniValue &o, std::string strKey); | extern uint256 ParseHashO(const UniValue &o, std::string strKey); | ||||
extern std::vector<uint8_t> ParseHexV(const UniValue &v, std::string strName); | extern std::vector<uint8_t> ParseHexV(const UniValue &v, std::string strName); | ||||
extern std::vector<uint8_t> ParseHexO(const UniValue &o, std::string strKey); | extern std::vector<uint8_t> ParseHexO(const UniValue &o, std::string strKey); | ||||
extern Amount AmountFromValue(const UniValue &value); | |||||
extern std::string HelpExampleCli(const std::string &methodname, | extern std::string HelpExampleCli(const std::string &methodname, | ||||
const std::string &args); | const std::string &args); | ||||
extern std::string HelpExampleRpc(const std::string &methodname, | extern std::string HelpExampleRpc(const std::string &methodname, | ||||
const std::string &args); | const std::string &args); | ||||
CPubKey HexToPubKey(const std::string &hex_in); | CPubKey HexToPubKey(const std::string &hex_in); | ||||
CPubKey AddrToPubKey(const CChainParams &chainparams, | CPubKey AddrToPubKey(const CChainParams &chainparams, | ||||
const FillableSigningProvider &keystore, | const FillableSigningProvider &keystore, | ||||
▲ Show 20 Lines • Show All 265 Lines • Show Last 20 Lines |