 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
8 #ifndef BITCOIN_RPCSERVER_H
9 #define BITCOIN_RPCSERVER_H
20 #include <boost/function.hpp>
28 void OnStarted(boost::function<
void ()> slot);
29 void OnStopped(boost::function<
void ()> slot);
67 const std::list<UniValue::VType>& typesExpected,
bool fAllowNull=
false);
73 const std::map<std::string, UniValue::VType>& typesExpected,
bool fAllowNull=
false);
93 virtual const char *
Name() = 0;
114 void RPCRunLater(
const std::string&
name, boost::function<
void(
void)> func, int64_t nSeconds);
140 std::string
help(std::string
name)
const;
166 extern std::vector<unsigned char>
ParseHexV(
const UniValue& v, std::string strName);
167 extern std::vector<unsigned char>
ParseHexO(
const UniValue& o, std::string strKey);
176 extern std::string
HelpExampleCli(std::string methodname, std::string args);
177 extern std::string
HelpExampleRpc(std::string methodname, std::string args);
318 extern void validaterange(
const UniValue& params,
int& heightStart,
int& heightEnd,
int minHeightStart=1);
367 #endif // BITCOIN_RPCSERVER_H
UniValue getlastpoablocktime(const UniValue ¶ms, bool fHelp)
UniValue ValueFromAmount(const CAmount &amount)
UniValue listreceivedbyaddress(const UniValue ¶ms, bool fHelp)
UniValue getblockchaininfo(const UniValue ¶ms, bool fHelp)
UniValue sendrawtransaction(const UniValue ¶ms, bool fHelp)
CAmount AmountFromValue(const UniValue &value)
UniValue gettxoutsetinfo(const UniValue ¶ms, bool fHelp)
uint256 ParseHashO(const UniValue &o, std::string strKey)
UniValue getseesawrewardwithheight(const UniValue ¶ms, bool fHelp)
UniValue startmasternode(const UniValue ¶ms, bool fHelp)
UniValue rescanwallettransactions(const UniValue ¶ms, bool fHelp)
UniValue getnettotals(const UniValue ¶ms, bool fHelp)
UniValue gettxout(const UniValue ¶ms, bool fHelp)
UniValue disconnectnode(const UniValue ¶ms, bool fHelp)
UniValue rescan(const UniValue ¶ms, bool fHelp)
UniValue getmininginfo(const UniValue ¶ms, bool fHelp)
UniValue listtransactions(const UniValue ¶ms, bool fHelp)
UniValue reconsiderblock(const UniValue ¶ms, bool fHelp)
UniValue getblockcount(const UniValue ¶ms, bool fHelp)
UniValue createprivacyaccount(const UniValue ¶ms, bool fHelp)
UniValue revealviewprivatekey(const UniValue ¶ms, bool fHelp)
UniValue gettransaction(const UniValue ¶ms, bool fHelp)
UniValue walletlock(const UniValue ¶ms, bool fHelp)
UniValue getseesawrewardratio(const UniValue ¶ms, bool fHelp)
UniValue getblockheader(const UniValue ¶ms, bool fHelp)
UniValue clearbanned(const UniValue ¶ms, bool fHelp)
void RPCTypeCheckObj(const UniValue &o, const std::map< std::string, UniValue::VType > &typesExpected, bool fAllowNull=false)
Check for expected keys/value types in an Object.
const UniValue NullUniValue
IP address (IPv6, or IPv4 using mapped IPv6 range (::FFFF:0:0/96))
UniValue getnetworkhashps(const UniValue ¶ms, bool fHelp)
UniValue createmasternodekey(const UniValue ¶ms, bool fHelp)
UniValue addmultisigaddress(const UniValue ¶ms, bool fHelp)
UniValue generateintegratedaddress(const UniValue ¶ms, bool fHelp)
UniValue encryptwallet(const UniValue ¶ms, bool fHelp)
Opaque base class for timers returned by NewTimerFunc.
UniValue importwallet(const UniValue ¶ms, bool fHelp)
UniValue getmasternodecount(const UniValue ¶ms, bool fHelp)
UniValue getunconfirmedbalance(const UniValue ¶ms, bool fHelp)
UniValue waitforblock(const UniValue ¶ms, bool fHelp)
void RPCTypeCheck(const UniValue ¶ms, const std::list< UniValue::VType > &typesExpected, bool fAllowNull=false)
Type-check arguments; throws JSONRPCError if wrong type given.
void SetRPCWarmupStatus(const std::string &newStatus)
Set the RPC warmup status.
UniValue decodescript(const UniValue ¶ms, bool fHelp)
UniValue sendalltostealthaddress(const UniValue ¶ms, bool fHelp)
void RPCUnsetTimerInterface(RPCTimerInterface *iface)
Unset factory function for timers.
UniValue createprivacysubaddress(const UniValue ¶ms, bool fHelp)
UniValue ping(const UniValue ¶ms, bool fHelp)
UniValue getrawmempool(const UniValue ¶ms, bool fHelp)
UniValue decodestealthaddress(const UniValue ¶ms, bool fHelp)
UniValue sendtostealthaddress(const UniValue ¶ms, bool fHelp)
UniValue setaccount(const UniValue ¶ms, bool fHelp)
UniValue listbanned(const UniValue ¶ms, bool fHelp)
UniValue getcurrentseesawreward(const UniValue ¶ms, bool fHelp)
std::string HelpExampleRpc(std::string methodname, std::string args)
UniValue getaddressesbyaccount(const UniValue ¶ms, bool fHelp)
int ParseInt(const UniValue &o, std::string strKey)
UniValue listmasternodeconf(const UniValue ¶ms, bool fHelp)
std::string HelpRequiringPassphrase()
int64_t nWalletUnlockTime
UniValue getsupply(const UniValue ¶ms, bool fHelp)
UniValue getlastpoablockheight(const UniValue ¶ms, bool fHelp)
UniValue waitforblockheight(const UniValue ¶ms, bool fHelp)
UniValue showtxprivatekeys(const UniValue ¶ms, bool fHelp)
UniValue submitblock(const UniValue ¶ms, bool fHelp)
UniValue getblocktemplate(const UniValue ¶ms, bool fHelp)
UniValue erasefromwallet(const UniValue ¶ms, bool fHelp)
UniValue bip38encrypt(const UniValue ¶ms, bool fHelp)
std::string help(std::string name) const
Note: This interface may still be subject to change.
UniValue getbalances(const UniValue ¶ms, bool fHelp)
UniValue getbudgetprojection(const UniValue ¶ms, bool fHelp)
UniValue readmasteraccount(const UniValue ¶ms, bool fHelp)
UniValue listmasternodes(const UniValue ¶ms, bool fHelp)
UniValue prioritisetransaction(const UniValue ¶ms, bool fHelp)
UniValue getbalance(const UniValue ¶ms, bool fHelp)
UniValue resyncfrom(const UniValue ¶ms, bool fHelp)
UniValue getdifficulty(const UniValue ¶ms, bool fHelp)
UniValue getblockindexstats(const UniValue ¶ms, bool fHelp)
UniValue gettxcount(const UniValue ¶ms, bool fHelp)
UniValue createmasternode(const UniValue ¶ms, bool fHelp)
UniValue execute(const std::string &method, const UniValue ¶ms) const
Execute a method.
void RPCNotifyBlockChange(bool fInitialDownload, const CBlockIndex *pindex)
UniValue walletpassphrasechange(const UniValue ¶ms, bool fHelp)
UniValue lockunspent(const UniValue ¶ms, bool fHelp)
UniValue getfeeinfo(const UniValue ¶ms, bool fHelp)
UniValue invalidateblock(const UniValue ¶ms, bool fHelp)
UniValue getinfo(const UniValue ¶ms, bool fHelp)
UniValue revealmnemonicphrase(const UniValue ¶ms, bool fHelp)
UniValue setminingnbits(const UniValue ¶ms, bool fHelp)
UniValue revealspendprivatekey(const UniValue ¶ms, bool fHelp)
void OnStopped(boost::function< void()> slot)
UniValue getlastpoaauditedpos(const UniValue ¶ms, bool fHelp)
std::string HelpExampleCli(std::string methodname, std::string args)
UniValue getreceivedbyaccount(const UniValue ¶ms, bool fHelp)
UniValue settxfee(const UniValue ¶ms, bool fHelp)
UniValue preparebudget(const UniValue ¶ms, bool fHelp)
UniValue listreceivedbyaccount(const UniValue ¶ms, bool fHelp)
UniValue reservebalance(const UniValue ¶ms, bool fHelp)
UniValue submitbudget(const UniValue ¶ms, bool fHelp)
UniValue decodemasternodebroadcast(const UniValue ¶ms, bool fHelp)
UniValue verifychain(const UniValue ¶ms, bool fHelp)
std::string JSONRPCExecBatch(const UniValue &vReq)
int64_t CAmount
Amount in PRCY (Can be negative)
std::vector< std::string > listCommands() const
Returns a list of registered commands.
UniValue getbudgetvotes(const UniValue ¶ms, bool fHelp)
UniValue createprivacywallet(const UniValue ¶ms, bool fHelp)
UniValue getnetworkinfo(const UniValue ¶ms, bool fHelp)
bool ParseBool(const UniValue &o, std::string strKey)
void SetRPCWarmupFinished()
UniValue setdecoyconfirmation(const UniValue ¶ms, bool fHelp)
uint256 ParseHashV(const UniValue &v, std::string strName)
Utilities: convert hex-encoded Values (throws error if not hex).
UniValue autocombinedust(const UniValue ¶ms, bool fHelp)
UniValue setstakesplitthreshold(const UniValue ¶ms, bool fHelp)
void RPCSetTimerInterface(RPCTimerInterface *iface)
Set factory function for timers.
UniValue checkbudgets(const UniValue ¶ms, bool fHelp)
UniValue getrawtransactionbyblockheight(const UniValue ¶ms, bool fHelp)
UniValue getrawchangeaddress(const UniValue ¶ms, bool fHelp)
UniValue generatepoa(const UniValue ¶ms, bool fHelp)
UniValue getmasternodeoutputs(const UniValue ¶ms, bool fHelp)
256-bit unsigned big integer.
UniValue importkeys(const UniValue ¶ms, bool fHelp)
virtual RPCTimerBase * NewTimer(boost::function< void(void)> &func, int64_t millis)=0
Factory function for timers.
UniValue setmaxreorgdepth(const UniValue ¶ms, bool fHelp)
UniValue erasewallettransactions(const UniValue ¶ms, bool fHelp)
UniValue multisend(const UniValue ¶ms, bool fHelp)
UniValue getinvalid(const UniValue ¶ms, bool fHelp)
void parse(const UniValue &valRequest)
UniValue mnfinalbudget(const UniValue ¶ms, bool fHelp)
UniValue movecmd(const UniValue ¶ms, bool fHelp)
UniValue getmasternodescores(const UniValue ¶ms, bool fHelp)
UniValue listaccounts(const UniValue ¶ms, bool fHelp)
UniValue logging(const UniValue ¶ms, bool fHelp)
UniValue getconnectioncount(const UniValue ¶ms, bool fHelp)
bool RPCIsInWarmup(std::string *statusOut)
UniValue unlockwallet(const UniValue ¶ms, bool fHelp)
virtual const char * Name()=0
Implementation name.
UniValue getgenerate(const UniValue ¶ms, bool fHelp)
PRCY RPC command dispatcher.
UniValue createmultisig(const UniValue ¶ms, bool fHelp)
UniValue bip38decrypt(const UniValue ¶ms, bool fHelp)
void OnStarted(boost::function< void()> slot)
UniValue getmempoolinfo(const UniValue ¶ms, bool fHelp)
UniValue addnode(const UniValue ¶ms, bool fHelp)
void RPCSetTimerInterfaceIfUnset(RPCTimerInterface *iface)
Set factory function for timers, but only if unset.
UniValue getwalletinfo(const UniValue ¶ms, bool fHelp)
UniValue mnbudgetvote(const UniValue ¶ms, bool fHelp)
UniValue dumpprivkey(const UniValue ¶ms, bool fHelp)
UniValue getversion(const UniValue ¶ms, bool fHelp)
UniValue waitfornewblock(const UniValue ¶ms, bool fHelp)
UniValue showstealthaddress(const UniValue ¶ms, bool fHelp)
UniValue verifymessage(const UniValue ¶ms, bool fHelp)
UniValue getbestblockhash(const UniValue ¶ms, bool fHelp)
UniValue estimatepriority(const UniValue ¶ms, bool fHelp)
UniValue getreceivedbyaddress(const UniValue ¶ms, bool fHelp)
UniValue getbudgetinfo(const UniValue ¶ms, bool fHelp)
void EnsureWalletIsUnlocked(bool fAllowAnonOnly=false)
UniValue getmasternodewinners(const UniValue ¶ms, bool fHelp)
UniValue gethashespersec(const UniValue ¶ms, bool fHelp)
UniValue importaddress(const UniValue ¶ms, bool fHelp)
UniValue importprivkey(const UniValue ¶ms, bool fHelp)
UniValue getaddednodeinfo(const UniValue ¶ms, bool fHelp)
UniValue listunspent(const UniValue ¶ms, bool fHelp)
UniValue keypoolrefill(const UniValue ¶ms, bool fHelp)
UniValue sendfrom(const UniValue ¶ms, bool fHelp)
UniValue decoderawtransaction(const UniValue ¶ms, bool fHelp)
UniValue dumpwallet(const UniValue ¶ms, bool fHelp)
UniValue getrawtransaction(const UniValue ¶ms, bool fHelp)
UniValue relaymasternodebroadcast(const UniValue ¶ms, bool fHelp)
UniValue(* rpcfn_type)(const UniValue ¶ms, bool fHelp)
std::map< std::string, const CRPCCommand * > mapCommands
UniValue validatestealthaddress(const UniValue ¶ms, bool fHelp)
virtual ~RPCTimerInterface()
UniValue getblock(const UniValue ¶ms, bool fHelp)
UniValue listtransactionsbypaymentid(const UniValue ¶ms, bool fHelp)
UniValue mnsync(const UniValue ¶ms, bool fHelp)
void OnPreCommand(boost::function< void(const CRPCCommand &)> slot)
UniValue listaddressgroupings(const UniValue ¶ms, bool fHelp)
UniValue getmasternodestatus(const UniValue ¶ms, bool fHelp)
UniValue getchaintips(const UniValue ¶ms, bool fHelp)
UniValue getpeerinfo(const UniValue ¶ms, bool fHelp)
UniValue estimatefee(const UniValue ¶ms, bool fHelp)
UniValue mnbudgetrawvote(const UniValue ¶ms, bool fHelp)
UniValue createmasternodebroadcast(const UniValue ¶ms, bool fHelp)
UniValue signmessage(const UniValue ¶ms, bool fHelp)
double GetDifficulty(const CBlockIndex *blockindex=NULL)
UniValue getunspentcount(const UniValue ¶ms, bool fHelp)
The block chain is a tree shaped structure starting with the genesis block at the root,...
UniValue getblockhash(const UniValue ¶ms, bool fHelp)
UniValue getnextsuperblock(const UniValue ¶ms, bool fHelp)
UniValue generate(const UniValue ¶ms, bool fHelp)
UniValue getstakesplitthreshold(const UniValue ¶ms, bool fHelp)
UniValue getaccount(const UniValue ¶ms, bool fHelp)
const CRPCCommand * operator[](const std::string &name) const
void RPCRunLater(const std::string &name, boost::function< void(void)> func, int64_t nSeconds)
Run func nSeconds from now.
void validaterange(const UniValue ¶ms, int &heightStart, int &heightEnd, int minHeightStart=1)
UniValue sendmany(const UniValue ¶ms, bool fHelp)
UniValue masternodecurrent(const UniValue ¶ms, bool fHelp)
UniValue validateaddress(const UniValue ¶ms, bool fHelp)
UniValue getstakingstatus(const UniValue ¶ms, bool fHelp)
UniValue getlastpoablock(const UniValue ¶ms, bool fHelp)
UniValue setmocktime(const UniValue ¶ms, bool fHelp)
UniValue getdecoyconfirmation(const UniValue ¶ms, bool fHelp)
UniValue setban(const UniValue ¶ms, bool fHelp)
UniValue listlockunspent(const UniValue ¶ms, bool fHelp)
void OnPostCommand(boost::function< void(const CRPCCommand &)> slot)
UniValue backupwallet(const UniValue ¶ms, bool fHelp)
UniValue getnewaddress(const UniValue ¶ms, bool fHelp)
UniValue signrawtransaction(const UniValue ¶ms, bool fHelp)
std::vector< unsigned char > ParseHexV(const UniValue &v, std::string strName)
UniValue getmaxsupply(const UniValue ¶ms, bool fHelp)
UniValue masternode(const UniValue ¶ms, bool fHelp)
std::vector< unsigned char > ParseHexO(const UniValue &o, std::string strKey)
UniValue createrawtransaction(const UniValue ¶ms, bool fHelp)
UniValue listsinceblock(const UniValue ¶ms, bool fHelp)
UniValue getaccountaddress(const UniValue ¶ms, bool fHelp)
UniValue getpoablocktemplate(const UniValue ¶ms, bool fHelp)
UniValue getlastpoablockhash(const UniValue ¶ms, bool fHelp)
UniValue setgenerate(const UniValue ¶ms, bool fHelp)