![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
#include "amount.h"#include "rpc/protocol.h"#include "uint256.h"#include <list>#include <map>#include <stdint.h>#include <string>#include <boost/function.hpp>#include <univalue.h>Go to the source code of this file.
Classes | |
| class | JSONRequest |
| class | RPCTimerBase |
| Opaque base class for timers returned by NewTimerFunc. More... | |
| class | RPCTimerInterface |
| RPC timer "driver". More... | |
| class | CRPCCommand |
| class | CRPCTable |
| PRCY RPC command dispatcher. More... | |
Namespaces | |
| RPCServer | |
Typedefs | |
| typedef UniValue(* | rpcfn_type) (const UniValue ¶ms, bool fHelp) |
Functions | |
| void | RPCServer::OnStarted (boost::function< void()> slot) |
| void | RPCServer::OnStopped (boost::function< void()> slot) |
| void | RPCServer::OnPreCommand (boost::function< void(const CRPCCommand &)> slot) |
| void | RPCServer::OnPostCommand (boost::function< void(const CRPCCommand &)> slot) |
| bool | IsRPCRunning () |
| void | SetRPCWarmupStatus (const std::string &newStatus) |
| Set the RPC warmup status. More... | |
| void | SetRPCWarmupFinished () |
| bool | RPCIsInWarmup (std::string *statusOut) |
| void | RPCTypeCheck (const UniValue ¶ms, const std::list< UniValue::VType > &typesExpected, bool fAllowNull=false) |
| Type-check arguments; throws JSONRPCError if wrong type given. More... | |
| 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. More... | |
| void | RPCSetTimerInterface (RPCTimerInterface *iface) |
| Set factory function for timers. More... | |
| void | RPCSetTimerInterfaceIfUnset (RPCTimerInterface *iface) |
| Set factory function for timers, but only if unset. More... | |
| void | RPCUnsetTimerInterface (RPCTimerInterface *iface) |
| Unset factory function for timers. More... | |
| void | RPCRunLater (const std::string &name, boost::function< void(void)> func, int64_t nSeconds) |
| Run func nSeconds from now. More... | |
| uint256 | ParseHashV (const UniValue &v, std::string strName) |
| Utilities: convert hex-encoded Values (throws error if not hex). More... | |
| uint256 | ParseHashO (const UniValue &o, std::string strKey) |
| std::vector< unsigned char > | ParseHexV (const UniValue &v, std::string strName) |
| std::vector< unsigned char > | ParseHexO (const UniValue &o, std::string strKey) |
| int | ParseInt (const UniValue &o, std::string strKey) |
| bool | ParseBool (const UniValue &o, std::string strKey) |
| CAmount | AmountFromValue (const UniValue &value) |
| UniValue | ValueFromAmount (const CAmount &amount) |
| double | GetDifficulty (const CBlockIndex *blockindex=NULL) |
| std::string | HelpRequiringPassphrase () |
| std::string | HelpExampleCli (std::string methodname, std::string args) |
| std::string | HelpExampleRpc (std::string methodname, std::string args) |
| void | EnsureWallet () |
| void | EnsureWalletIsUnlocked (bool fAllowAnonOnly=false) |
| UniValue | getconnectioncount (const UniValue ¶ms, bool fHelp) |
| UniValue | getpeerinfo (const UniValue ¶ms, bool fHelp) |
| UniValue | ping (const UniValue ¶ms, bool fHelp) |
| UniValue | addnode (const UniValue ¶ms, bool fHelp) |
| UniValue | disconnectnode (const UniValue ¶ms, bool fHelp) |
| UniValue | getaddednodeinfo (const UniValue ¶ms, bool fHelp) |
| UniValue | getnettotals (const UniValue ¶ms, bool fHelp) |
| UniValue | setban (const UniValue ¶ms, bool fHelp) |
| UniValue | listbanned (const UniValue ¶ms, bool fHelp) |
| UniValue | clearbanned (const UniValue ¶ms, bool fHelp) |
| UniValue | dumpprivkey (const UniValue ¶ms, bool fHelp) |
| UniValue | importprivkey (const UniValue ¶ms, bool fHelp) |
| UniValue | importaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | dumpwallet (const UniValue ¶ms, bool fHelp) |
| UniValue | importwallet (const UniValue ¶ms, bool fHelp) |
| UniValue | bip38encrypt (const UniValue ¶ms, bool fHelp) |
| UniValue | bip38decrypt (const UniValue ¶ms, bool fHelp) |
| UniValue | getgenerate (const UniValue ¶ms, bool fHelp) |
| UniValue | setgenerate (const UniValue ¶ms, bool fHelp) |
| UniValue | generate (const UniValue ¶ms, bool fHelp) |
| UniValue | generatepoa (const UniValue ¶ms, bool fHelp) |
| UniValue | getnetworkhashps (const UniValue ¶ms, bool fHelp) |
| UniValue | gethashespersec (const UniValue ¶ms, bool fHelp) |
| UniValue | getmininginfo (const UniValue ¶ms, bool fHelp) |
| UniValue | prioritisetransaction (const UniValue ¶ms, bool fHelp) |
| UniValue | getblocktemplate (const UniValue ¶ms, bool fHelp) |
| UniValue | getpoablocktemplate (const UniValue ¶ms, bool fHelp) |
| UniValue | setminingnbits (const UniValue ¶ms, bool fHelp) |
| UniValue | submitblock (const UniValue ¶ms, bool fHelp) |
| UniValue | estimatefee (const UniValue ¶ms, bool fHelp) |
| UniValue | estimatepriority (const UniValue ¶ms, bool fHelp) |
| UniValue | generateintegratedaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | readmasteraccount (const UniValue ¶ms, bool fHelp) |
| UniValue | getnewaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | getaccountaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | getrawchangeaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | setaccount (const UniValue ¶ms, bool fHelp) |
| UniValue | getaccount (const UniValue ¶ms, bool fHelp) |
| UniValue | getaddressesbyaccount (const UniValue ¶ms, bool fHelp) |
| UniValue | signmessage (const UniValue ¶ms, bool fHelp) |
| UniValue | getreceivedbyaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | getreceivedbyaccount (const UniValue ¶ms, bool fHelp) |
| UniValue | getbalance (const UniValue ¶ms, bool fHelp) |
| UniValue | getbalances (const UniValue ¶ms, bool fHelp) |
| UniValue | getunconfirmedbalance (const UniValue ¶ms, bool fHelp) |
| UniValue | movecmd (const UniValue ¶ms, bool fHelp) |
| UniValue | sendfrom (const UniValue ¶ms, bool fHelp) |
| UniValue | sendmany (const UniValue ¶ms, bool fHelp) |
| UniValue | addmultisigaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | listreceivedbyaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | listreceivedbyaccount (const UniValue ¶ms, bool fHelp) |
| UniValue | listtransactions (const UniValue ¶ms, bool fHelp) |
| UniValue | listtransactionsbypaymentid (const UniValue ¶ms, bool fHelp) |
| UniValue | listaddressgroupings (const UniValue ¶ms, bool fHelp) |
| UniValue | listaccounts (const UniValue ¶ms, bool fHelp) |
| UniValue | listsinceblock (const UniValue ¶ms, bool fHelp) |
| UniValue | gettransaction (const UniValue ¶ms, bool fHelp) |
| UniValue | backupwallet (const UniValue ¶ms, bool fHelp) |
| UniValue | keypoolrefill (const UniValue ¶ms, bool fHelp) |
| UniValue | unlockwallet (const UniValue ¶ms, bool fHelp) |
| UniValue | walletpassphrasechange (const UniValue ¶ms, bool fHelp) |
| UniValue | walletlock (const UniValue ¶ms, bool fHelp) |
| UniValue | encryptwallet (const UniValue ¶ms, bool fHelp) |
| UniValue | createprivacywallet (const UniValue ¶ms, bool fHelp) |
| UniValue | createprivacyaccount (const UniValue ¶ms, bool fHelp) |
| UniValue | showstealthaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | importkeys (const UniValue ¶ms, bool fHelp) |
| UniValue | revealviewprivatekey (const UniValue ¶ms, bool fHelp) |
| UniValue | revealspendprivatekey (const UniValue ¶ms, bool fHelp) |
| UniValue | showtxprivatekeys (const UniValue ¶ms, bool fHelp) |
| UniValue | rescan (const UniValue ¶ms, bool fHelp) |
| UniValue | rescanwallettransactions (const UniValue ¶ms, bool fHelp) |
| UniValue | erasewallettransactions (const UniValue ¶ms, bool fHelp) |
| UniValue | setdecoyconfirmation (const UniValue ¶ms, bool fHelp) |
| UniValue | getdecoyconfirmation (const UniValue ¶ms, bool fHelp) |
| UniValue | decodestealthaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | sendtostealthaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | sendalltostealthaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | createprivacysubaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | getwalletinfo (const UniValue ¶ms, bool fHelp) |
| UniValue | gettxcount (const UniValue ¶ms, bool fHelp) |
| UniValue | getblockchaininfo (const UniValue ¶ms, bool fHelp) |
| UniValue | getnetworkinfo (const UniValue ¶ms, bool fHelp) |
| UniValue | reservebalance (const UniValue ¶ms, bool fHelp) |
| UniValue | setstakesplitthreshold (const UniValue ¶ms, bool fHelp) |
| UniValue | getstakesplitthreshold (const UniValue ¶ms, bool fHelp) |
| UniValue | multisend (const UniValue ¶ms, bool fHelp) |
| UniValue | autocombinedust (const UniValue ¶ms, bool fHelp) |
| UniValue | revealmnemonicphrase (const UniValue ¶ms, bool fHelp) |
| UniValue | erasefromwallet (const UniValue ¶ms, bool fHelp) |
| UniValue | getrawtransaction (const UniValue ¶ms, bool fHelp) |
| UniValue | getrawtransactionbyblockheight (const UniValue ¶ms, bool fHelp) |
| UniValue | listunspent (const UniValue ¶ms, bool fHelp) |
| UniValue | lockunspent (const UniValue ¶ms, bool fHelp) |
| UniValue | listlockunspent (const UniValue ¶ms, bool fHelp) |
| UniValue | getunspentcount (const UniValue ¶ms, bool fHelp) |
| UniValue | createrawtransaction (const UniValue ¶ms, bool fHelp) |
| UniValue | decoderawtransaction (const UniValue ¶ms, bool fHelp) |
| UniValue | decodescript (const UniValue ¶ms, bool fHelp) |
| UniValue | signrawtransaction (const UniValue ¶ms, bool fHelp) |
| UniValue | sendrawtransaction (const UniValue ¶ms, bool fHelp) |
| UniValue | getsupply (const UniValue ¶ms, bool fHelp) |
| UniValue | getmaxsupply (const UniValue ¶ms, bool fHelp) |
| UniValue | getblockcount (const UniValue ¶ms, bool fHelp) |
| UniValue | getbestblockhash (const UniValue ¶ms, bool fHelp) |
| UniValue | waitfornewblock (const UniValue ¶ms, bool fHelp) |
| UniValue | waitforblock (const UniValue ¶ms, bool fHelp) |
| UniValue | waitforblockheight (const UniValue ¶ms, bool fHelp) |
| UniValue | getdifficulty (const UniValue ¶ms, bool fHelp) |
| UniValue | settxfee (const UniValue ¶ms, bool fHelp) |
| UniValue | getmempoolinfo (const UniValue ¶ms, bool fHelp) |
| UniValue | getrawmempool (const UniValue ¶ms, bool fHelp) |
| UniValue | getblockhash (const UniValue ¶ms, bool fHelp) |
| UniValue | getlastpoablock (const UniValue ¶ms, bool fHelp) |
| UniValue | getlastpoablockhash (const UniValue ¶ms, bool fHelp) |
| UniValue | getlastpoablockheight (const UniValue ¶ms, bool fHelp) |
| UniValue | getlastpoablocktime (const UniValue ¶ms, bool fHelp) |
| UniValue | getlastpoaauditedpos (const UniValue ¶ms, bool fHelp) |
| UniValue | setmaxreorgdepth (const UniValue ¶ms, bool fHelp) |
| UniValue | resyncfrom (const UniValue ¶ms, bool fHelp) |
| UniValue | getblock (const UniValue ¶ms, bool fHelp) |
| UniValue | getblockheader (const UniValue ¶ms, bool fHelp) |
| UniValue | getblockindexstats (const UniValue ¶ms, bool fHelp) |
| UniValue | getfeeinfo (const UniValue ¶ms, bool fHelp) |
| UniValue | gettxoutsetinfo (const UniValue ¶ms, bool fHelp) |
| UniValue | gettxout (const UniValue ¶ms, bool fHelp) |
| UniValue | verifychain (const UniValue ¶ms, bool fHelp) |
| UniValue | getchaintips (const UniValue ¶ms, bool fHelp) |
| UniValue | invalidateblock (const UniValue ¶ms, bool fHelp) |
| UniValue | reconsiderblock (const UniValue ¶ms, bool fHelp) |
| UniValue | getinvalid (const UniValue ¶ms, bool fHelp) |
| void | validaterange (const UniValue ¶ms, int &heightStart, int &heightEnd, int minHeightStart=1) |
| UniValue | masternode (const UniValue ¶ms, bool fHelp) |
| UniValue | listmasternodes (const UniValue ¶ms, bool fHelp) |
| UniValue | getmasternodecount (const UniValue ¶ms, bool fHelp) |
| UniValue | createmasternodebroadcast (const UniValue ¶ms, bool fHelp) |
| UniValue | decodemasternodebroadcast (const UniValue ¶ms, bool fHelp) |
| UniValue | relaymasternodebroadcast (const UniValue ¶ms, bool fHelp) |
| UniValue | getcurrentseesawreward (const UniValue ¶ms, bool fHelp) |
| UniValue | getseesawrewardratio (const UniValue ¶ms, bool fHelp) |
| UniValue | getseesawrewardwithheight (const UniValue ¶ms, bool fHelp) |
| UniValue | masternodecurrent (const UniValue ¶ms, bool fHelp) |
| UniValue | startmasternode (const UniValue ¶ms, bool fHelp) |
| UniValue | createmasternode (const UniValue ¶ms, bool fHelp) |
| UniValue | createmasternodekey (const UniValue ¶ms, bool fHelp) |
| UniValue | getmasternodeoutputs (const UniValue ¶ms, bool fHelp) |
| UniValue | listmasternodeconf (const UniValue ¶ms, bool fHelp) |
| UniValue | getmasternodestatus (const UniValue ¶ms, bool fHelp) |
| UniValue | getmasternodewinners (const UniValue ¶ms, bool fHelp) |
| UniValue | getmasternodescores (const UniValue ¶ms, bool fHelp) |
| UniValue | preparebudget (const UniValue ¶ms, bool fHelp) |
| UniValue | submitbudget (const UniValue ¶ms, bool fHelp) |
| UniValue | mnbudgetvote (const UniValue ¶ms, bool fHelp) |
| UniValue | getbudgetvotes (const UniValue ¶ms, bool fHelp) |
| UniValue | getnextsuperblock (const UniValue ¶ms, bool fHelp) |
| UniValue | getbudgetprojection (const UniValue ¶ms, bool fHelp) |
| UniValue | getbudgetinfo (const UniValue ¶ms, bool fHelp) |
| UniValue | mnbudgetrawvote (const UniValue ¶ms, bool fHelp) |
| UniValue | mnfinalbudget (const UniValue ¶ms, bool fHelp) |
| UniValue | checkbudgets (const UniValue ¶ms, bool fHelp) |
| UniValue | getinfo (const UniValue ¶ms, bool fHelp) |
| UniValue | logging (const UniValue ¶ms, bool fHelp) |
| UniValue | getversion (const UniValue ¶ms, bool fHelp) |
| UniValue | mnsync (const UniValue ¶ms, bool fHelp) |
| UniValue | validateaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | validatestealthaddress (const UniValue ¶ms, bool fHelp) |
| UniValue | createmultisig (const UniValue ¶ms, bool fHelp) |
| UniValue | verifymessage (const UniValue ¶ms, bool fHelp) |
| UniValue | setmocktime (const UniValue ¶ms, bool fHelp) |
| UniValue | getstakingstatus (const UniValue ¶ms, bool fHelp) |
| bool | StartRPC () |
| void | InterruptRPC () |
| void | StopRPC () |
| std::string | JSONRPCExecBatch (const UniValue &vReq) |
| void | RPCNotifyBlockChange (bool fInitialDownload, const CBlockIndex *pindex) |
Variables | |
| const CRPCTable | tableRPC |
| int64_t | nWalletUnlockTime |
Definition at line 107 of file server.cpp.
Collect private key and passphrase
Definition at line 451 of file rpcdump.cpp.
Definition at line 555 of file masternode.cpp.
Definition at line 1882 of file rpcwallet.cpp.
| void EnsureWallet | ( | ) |
| void EnsureWalletIsUnlocked | ( | bool | fAllowAnonOnly = false | ) |
Definition at line 1392 of file blockchain.cpp.
Definition at line 405 of file mining.cpp.
| double GetDifficulty | ( | const CBlockIndex * | blockindex = NULL | ) |
Definition at line 39 of file blockchain.cpp.
getinfo exists for backwards-compatibility only. It combines information from wildly different sources in the program, which is a mess, and is thus planned to be deprecated eventually.Based on the source of the information, new information should be added to:
getblockchaininfo,getnetworkinfo orgetwalletinfoOr alternatively, create a specific query method for the information.
Definition at line 45 of file misc.cpp.
Definition at line 237 of file masternode.cpp.
Definition at line 573 of file masternode.cpp.
Definition at line 810 of file masternode.cpp.
Definition at line 669 of file masternode.cpp.
Definition at line 709 of file masternode.cpp.
Definition at line 635 of file blockchain.cpp.
| std::string HelpExampleCli | ( | std::string | methodname, |
| std::string | args | ||
| ) |
Definition at line 603 of file server.cpp.
| std::string HelpExampleRpc | ( | std::string | methodname, |
| std::string | args | ||
| ) |
Definition at line 607 of file server.cpp.
| std::string HelpRequiringPassphrase | ( | ) |
Definition at line 32 of file rpcwallet.cpp.
| void InterruptRPC | ( | ) |
| bool IsRPCRunning | ( | ) |
Definition at line 487 of file server.cpp.
| std::string JSONRPCExecBatch | ( | const UniValue & | vReq | ) |
Definition at line 607 of file masternode.cpp.
Definition at line 153 of file masternode.cpp.
Definition at line 274 of file masternode.cpp.
| bool ParseBool | ( | const UniValue & | o, |
| std::string | strKey | ||
| ) |
Definition at line 140 of file server.cpp.
Utilities: convert hex-encoded Values (throws error if not hex).
Definition at line 127 of file server.cpp.
| std::vector<unsigned char> ParseHexO | ( | const UniValue & | o, |
| std::string | strKey | ||
| ) |
| std::vector<unsigned char> ParseHexV | ( | const UniValue & | v, |
| std::string | strName | ||
| ) |
Definition at line 144 of file server.cpp.
| int ParseInt | ( | const UniValue & | o, |
| std::string | strKey | ||
| ) |
| bool RPCIsInWarmup | ( | std::string * | statusOut | ) |
| void RPCNotifyBlockChange | ( | bool | fInitialDownload, |
| const CBlockIndex * | pindex | ||
| ) |
| void RPCRunLater | ( | const std::string & | name, |
| boost::function< void(void)> | func, | ||
| int64_t | nSeconds | ||
| ) |
Run func nSeconds from now.
Overrides previous timer <name> (if any).
Definition at line 627 of file server.cpp.
| void RPCSetTimerInterface | ( | RPCTimerInterface * | iface | ) |
Set factory function for timers.
Definition at line 618 of file server.cpp.
| void RPCSetTimerInterfaceIfUnset | ( | RPCTimerInterface * | iface | ) |
Set factory function for timers, but only if unset.
Definition at line 613 of file server.cpp.
| void RPCTypeCheck | ( | const UniValue & | params, |
| const std::list< UniValue::VType > & | typesExpected, | ||
| bool | fAllowNull = false |
||
| ) |
Type-check arguments; throws JSONRPCError if wrong type given.
Does not check that the right number of arguments are passed, just that any passed are the correct type. Use like: RPCTypeCheck(params, boost::assign::list_of(str_type)(int_type)(obj_type));
Definition at line 70 of file server.cpp.
| 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.
Use like: RPCTypeCheckObj(object, boost::assign::map_list_of("name", str_type)("value", int_type));
Definition at line 86 of file server.cpp.
| void RPCUnsetTimerInterface | ( | RPCTimerInterface * | iface | ) |
Unset factory function for timers.
Definition at line 622 of file server.cpp.
| void SetRPCWarmupFinished | ( | ) |
Definition at line 496 of file server.cpp.
| void SetRPCWarmupStatus | ( | const std::string & | newStatus | ) |
Set the RPC warmup status.
When this is done, all RPC calls will error out immediately with RPC_IN_WARMUP.
Definition at line 491 of file server.cpp.
Definition at line 366 of file masternode.cpp.
| bool StartRPC | ( | ) |
| void StopRPC | ( | ) |
Definition at line 1743 of file rpcwallet.cpp.
| void validaterange | ( | const UniValue & | params, |
| int & | heightStart, | ||
| int & | heightEnd, | ||
| int | minHeightStart = 1 |
||
| ) |
Definition at line 1359 of file blockchain.cpp.
Definition at line 1811 of file rpcwallet.cpp.
| int64_t nWalletUnlockTime |
Definition at line 29 of file rpcwallet.cpp.
| const CRPCTable tableRPC |
Definition at line 636 of file server.cpp.
1.8.17