Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/server.h
Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | |||||
* (throws error if not hex). | * (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 Amount AmountFromValue(const UniValue &value); | ||||
extern UniValue ValueFromAmount(const Amount &amount); | extern UniValue ValueFromAmount(const Amount amount); | ||||
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); | ||||
bool StartRPC(); | bool StartRPC(); | ||||
void InterruptRPC(); | void InterruptRPC(); | ||||
void StopRPC(); | void StopRPC(); | ||||
std::string JSONRPCExecBatch(Config &config, const JSONRPCRequest &req, | std::string JSONRPCExecBatch(Config &config, const JSONRPCRequest &req, | ||||
const UniValue &vReq); | const UniValue &vReq); | ||||
void RPCNotifyBlockChange(bool ibd, const CBlockIndex *); | void RPCNotifyBlockChange(bool ibd, const CBlockIndex *); | ||||
// Retrieves any serialization flags requested in command line argument | // Retrieves any serialization flags requested in command line argument | ||||
int RPCSerializationFlags(); | int RPCSerializationFlags(); | ||||
#endif // BITCOIN_RPCSERVER_H | #endif // BITCOIN_RPCSERVER_H |