Dash Core  0.12.2.1
P2P Digital Currency
server.h File Reference
#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
 
class  RPCTimerInterface
 
class  CRPCCommand
 
class  CRPCTable
 

Namespaces

 RPCServer
 

Typedefs

typedef UniValue(* rpcfn_type) (const UniValue &params, 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)
 
void SetRPCWarmupFinished ()
 
bool RPCIsInWarmup (std::string *statusOut)
 
void RPCTypeCheck (const UniValue &params, const std::list< UniValue::VType > &typesExpected, bool fAllowNull=false)
 
void RPCTypeCheckObj (const UniValue &o, const std::map< std::string, UniValue::VType > &typesExpected, bool fAllowNull=false)
 
void RPCRegisterTimerInterface (RPCTimerInterface *iface)
 
void RPCUnregisterTimerInterface (RPCTimerInterface *iface)
 
void RPCRunLater (const std::string &name, boost::function< void(void)> func, int64_t nSeconds)
 
uint256 ParseHashV (const UniValue &v, std::string strName)
 
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)
 
CAmount AmountFromValue (const UniValue &value)
 
UniValue ValueFromAmount (const CAmount &amount)
 
double GetDifficulty (const CBlockIndex *blockindex=NULL)
 
std::string HelpRequiringPassphrase ()
 
std::string HelpExampleCli (const std::string &methodname, const std::string &args)
 
std::string HelpExampleRpc (const std::string &methodname, const std::string &args)
 
void EnsureWalletIsUnlocked ()
 
UniValue getconnectioncount (const UniValue &params, bool fHelp)
 
UniValue getaddressmempool (const UniValue &params, bool fHelp)
 
UniValue getaddressutxos (const UniValue &params, bool fHelp)
 
UniValue getaddressdeltas (const UniValue &params, bool fHelp)
 
UniValue getaddresstxids (const UniValue &params, bool fHelp)
 
UniValue getaddressbalance (const UniValue &params, bool fHelp)
 
UniValue getpeerinfo (const UniValue &params, bool fHelp)
 
UniValue ping (const UniValue &params, bool fHelp)
 
UniValue addnode (const UniValue &params, bool fHelp)
 
UniValue disconnectnode (const UniValue &params, bool fHelp)
 
UniValue getaddednodeinfo (const UniValue &params, bool fHelp)
 
UniValue getnettotals (const UniValue &params, bool fHelp)
 
UniValue setban (const UniValue &params, bool fHelp)
 
UniValue listbanned (const UniValue &params, bool fHelp)
 
UniValue clearbanned (const UniValue &params, bool fHelp)
 
UniValue setnetworkactive (const UniValue &params, bool fHelp)
 
UniValue dumpprivkey (const UniValue &params, bool fHelp)
 
UniValue importprivkey (const UniValue &params, bool fHelp)
 
UniValue importaddress (const UniValue &params, bool fHelp)
 
UniValue importpubkey (const UniValue &params, bool fHelp)
 
UniValue dumphdinfo (const UniValue &params, bool fHelp)
 
UniValue dumpwallet (const UniValue &params, bool fHelp)
 
UniValue importwallet (const UniValue &params, bool fHelp)
 
UniValue importelectrumwallet (const UniValue &params, bool fHelp)
 
UniValue getgenerate (const UniValue &params, bool fHelp)
 
UniValue setgenerate (const UniValue &params, bool fHelp)
 
UniValue generate (const UniValue &params, bool fHelp)
 
UniValue getnetworkhashps (const UniValue &params, bool fHelp)
 
UniValue getmininginfo (const UniValue &params, bool fHelp)
 
UniValue prioritisetransaction (const UniValue &params, bool fHelp)
 
UniValue getblocktemplate (const UniValue &params, bool fHelp)
 
UniValue submitblock (const UniValue &params, bool fHelp)
 
UniValue estimatefee (const UniValue &params, bool fHelp)
 
UniValue estimatepriority (const UniValue &params, bool fHelp)
 
UniValue estimatesmartfee (const UniValue &params, bool fHelp)
 
UniValue estimatesmartpriority (const UniValue &params, bool fHelp)
 
UniValue instantsendtoaddress (const UniValue &params, bool fHelp)
 
UniValue keepass (const UniValue &params, bool fHelp)
 
UniValue getnewaddress (const UniValue &params, bool fHelp)
 
UniValue getaccountaddress (const UniValue &params, bool fHelp)
 
UniValue getrawchangeaddress (const UniValue &params, bool fHelp)
 
UniValue setaccount (const UniValue &params, bool fHelp)
 
UniValue getaccount (const UniValue &params, bool fHelp)
 
UniValue getaddressesbyaccount (const UniValue &params, bool fHelp)
 
UniValue sendtoaddress (const UniValue &params, bool fHelp)
 
UniValue signmessage (const UniValue &params, bool fHelp)
 
UniValue verifymessage (const UniValue &params, bool fHelp)
 
UniValue getreceivedbyaddress (const UniValue &params, bool fHelp)
 
UniValue getreceivedbyaccount (const UniValue &params, bool fHelp)
 
UniValue getbalance (const UniValue &params, bool fHelp)
 
UniValue getunconfirmedbalance (const UniValue &params, bool fHelp)
 
UniValue movecmd (const UniValue &params, bool fHelp)
 
UniValue sendfrom (const UniValue &params, bool fHelp)
 
UniValue sendmany (const UniValue &params, bool fHelp)
 
UniValue addmultisigaddress (const UniValue &params, bool fHelp)
 
UniValue createmultisig (const UniValue &params, bool fHelp)
 
UniValue listreceivedbyaddress (const UniValue &params, bool fHelp)
 
UniValue listreceivedbyaccount (const UniValue &params, bool fHelp)
 
UniValue listtransactions (const UniValue &params, bool fHelp)
 
UniValue listaddressgroupings (const UniValue &params, bool fHelp)
 
UniValue listaccounts (const UniValue &params, bool fHelp)
 
UniValue listsinceblock (const UniValue &params, bool fHelp)
 
UniValue gettransaction (const UniValue &params, bool fHelp)
 
UniValue abandontransaction (const UniValue &params, bool fHelp)
 
UniValue backupwallet (const UniValue &params, bool fHelp)
 
UniValue keypoolrefill (const UniValue &params, bool fHelp)
 
UniValue walletpassphrase (const UniValue &params, bool fHelp)
 
UniValue walletpassphrasechange (const UniValue &params, bool fHelp)
 
UniValue walletlock (const UniValue &params, bool fHelp)
 
UniValue encryptwallet (const UniValue &params, bool fHelp)
 
UniValue validateaddress (const UniValue &params, bool fHelp)
 
UniValue getinfo (const UniValue &params, bool fHelp)
 
UniValue debug (const UniValue &params, bool fHelp)
 
UniValue getwalletinfo (const UniValue &params, bool fHelp)
 
UniValue getblockchaininfo (const UniValue &params, bool fHelp)
 
UniValue getnetworkinfo (const UniValue &params, bool fHelp)
 
UniValue setmocktime (const UniValue &params, bool fHelp)
 
UniValue resendwallettransactions (const UniValue &params, bool fHelp)
 
UniValue getrawtransaction (const UniValue &params, bool fHelp)
 
UniValue listunspent (const UniValue &params, bool fHelp)
 
UniValue lockunspent (const UniValue &params, bool fHelp)
 
UniValue listlockunspent (const UniValue &params, bool fHelp)
 
UniValue createrawtransaction (const UniValue &params, bool fHelp)
 
UniValue decoderawtransaction (const UniValue &params, bool fHelp)
 
UniValue decodescript (const UniValue &params, bool fHelp)
 
UniValue fundrawtransaction (const UniValue &params, bool fHelp)
 
UniValue signrawtransaction (const UniValue &params, bool fHelp)
 
UniValue sendrawtransaction (const UniValue &params, bool fHelp)
 
UniValue gettxoutproof (const UniValue &params, bool fHelp)
 
UniValue verifytxoutproof (const UniValue &params, bool fHelp)
 
UniValue privatesend (const UniValue &params, bool fHelp)
 
UniValue getpoolinfo (const UniValue &params, bool fHelp)
 
UniValue spork (const UniValue &params, bool fHelp)
 
UniValue masternode (const UniValue &params, bool fHelp)
 
UniValue masternodelist (const UniValue &params, bool fHelp)
 
UniValue masternodebroadcast (const UniValue &params, bool fHelp)
 
UniValue gobject (const UniValue &params, bool fHelp)
 
UniValue getgovernanceinfo (const UniValue &params, bool fHelp)
 
UniValue getsuperblockbudget (const UniValue &params, bool fHelp)
 
UniValue voteraw (const UniValue &params, bool fHelp)
 
UniValue mnsync (const UniValue &params, bool fHelp)
 
UniValue getblockcount (const UniValue &params, bool fHelp)
 
UniValue getbestblockhash (const UniValue &params, bool fHelp)
 
UniValue getdifficulty (const UniValue &params, bool fHelp)
 
UniValue settxfee (const UniValue &params, bool fHelp)
 
UniValue getmempoolinfo (const UniValue &params, bool fHelp)
 
UniValue getrawmempool (const UniValue &params, bool fHelp)
 
UniValue getblockhashes (const UniValue &params, bool fHelp)
 
UniValue getblockhash (const UniValue &params, bool fHelp)
 
UniValue getblockheader (const UniValue &params, bool fHelp)
 
UniValue getblockheaders (const UniValue &params, bool fHelp)
 
UniValue getblock (const UniValue &params, bool fHelp)
 
UniValue gettxoutsetinfo (const UniValue &params, bool fHelp)
 
UniValue gettxout (const UniValue &params, bool fHelp)
 
UniValue verifychain (const UniValue &params, bool fHelp)
 
UniValue getchaintips (const UniValue &params, bool fHelp)
 
UniValue invalidateblock (const UniValue &params, bool fHelp)
 
UniValue reconsiderblock (const UniValue &params, bool fHelp)
 
UniValue getspentinfo (const UniValue &params, bool fHelp)
 
UniValue sentinelping (const UniValue &params, bool fHelp)
 
bool StartRPC ()
 
void InterruptRPC ()
 
void StopRPC ()
 
std::string JSONRPCExecBatch (const UniValue &vReq)
 

Variables

const CRPCTable tableRPC
 
int64_t nWalletUnlockTime
 

Typedef Documentation

◆ rpcfn_type

typedef UniValue(* rpcfn_type) (const UniValue &params, bool fHelp)

Definition at line 114 of file server.h.

Function Documentation

◆ abandontransaction()

UniValue abandontransaction ( const UniValue params,
bool  fHelp 
)

Definition at line 1902 of file rpcwallet.cpp.

Referenced by abandonconflict.AbandonConflictTest::run_test().

◆ addmultisigaddress()

◆ addnode()

UniValue addnode ( const UniValue params,
bool  fHelp 
)

Definition at line 189 of file net.cpp.

◆ AmountFromValue()

CAmount AmountFromValue ( const UniValue value)

◆ backupwallet()

UniValue backupwallet ( const UniValue params,
bool  fHelp 
)

◆ clearbanned()

UniValue clearbanned ( const UniValue params,
bool  fHelp 
)

Definition at line 562 of file net.cpp.

Referenced by nodehandling.NodeHandlingTest::run_test().

◆ createmultisig()

UniValue createmultisig ( const UniValue params,
bool  fHelp 
)

Definition at line 401 of file misc.cpp.

Referenced by listtransactions.ListTransactionsTest::run_test().

◆ createrawtransaction()

◆ debug()

UniValue debug ( const UniValue params,
bool  fHelp 
)

◆ decoderawtransaction()

◆ decodescript()

UniValue decodescript ( const UniValue params,
bool  fHelp 
)

Definition at line 526 of file rawtransaction.cpp.

◆ disconnectnode()

UniValue disconnectnode ( const UniValue params,
bool  fHelp 
)

◆ dumphdinfo()

UniValue dumphdinfo ( const UniValue params,
bool  fHelp 
)

Definition at line 583 of file rpcdump.cpp.

◆ dumpprivkey()

UniValue dumpprivkey ( const UniValue params,
bool  fHelp 
)

Definition at line 546 of file rpcdump.cpp.

Referenced by wallet-hd.WalletHDTest::run_test(), and wallet.WalletTest::run_test().

◆ dumpwallet()

UniValue dumpwallet ( const UniValue params,
bool  fHelp 
)

Definition at line 629 of file rpcdump.cpp.

Referenced by walletbackup.WalletBackupTest::run_test().

◆ encryptwallet()

◆ EnsureWalletIsUnlocked()

void EnsureWalletIsUnlocked ( )

Definition at line 54 of file rpcwallet.cpp.

◆ estimatefee()

UniValue estimatefee ( const UniValue params,
bool  fHelp 
)

Definition at line 811 of file mining.cpp.

◆ estimatepriority()

UniValue estimatepriority ( const UniValue params,
bool  fHelp 
)

Definition at line 842 of file mining.cpp.

◆ estimatesmartfee()

UniValue estimatesmartfee ( const UniValue params,
bool  fHelp 
)

Definition at line 869 of file mining.cpp.

◆ estimatesmartpriority()

UniValue estimatesmartpriority ( const UniValue params,
bool  fHelp 
)

Definition at line 905 of file mining.cpp.

◆ fundrawtransaction()

UniValue fundrawtransaction ( const UniValue params,
bool  fHelp 
)

Definition at line 2651 of file rpcwallet.cpp.

◆ generate()

UniValue generate ( const UniValue params,
bool  fHelp 
)

Definition at line 122 of file mining.cpp.

Referenced by bip68-sequence.BIP68Test::activateCSV(), pruning.PruneTest::create_big_chain(), pruning.PruneTest::create_chain_with_staleblocks(), walletbackup.WalletBackupTest::do_one_round(), test_framework.util::initialize_chain(), sendheaders.SendHeadersTest::mine_blocks(), sendheaders.SendHeadersTest::mine_reorg(), reindex.ReindexTest::reindex(), pruning.PruneTest::reorg_back(), pruning.PruneTest::reorg_test(), listtransactions.ListTransactionsTest::run_rbf_opt_in_test(), keypool.KeyPoolTest::run_test(), getchaintips.GetChainTipsTest::run_test(), keypool-hd.KeyPoolTest::run_test(), abandonconflict.AbandonConflictTest::run_test(), txn_doublespend.TxnMallTest::run_test(), txn_clone.TxnMallTest::run_test(), mempool_resurrect_test.MempoolCoinbaseTest::run_test(), zapwallettxes.ZapWalletTXesTest::run_test(), bipdersig.BIP66Test::run_test(), wallet-hd.WalletHDTest::run_test(), bip65-cltv.BIP65Test::run_test(), listtransactions.ListTransactionsTest::run_test(), fundrawtransaction.RawTransactionsTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), invalidateblock.InvalidateTest::run_test(), mempool_reorg.MempoolCoinbaseTest::run_test(), getblocktemplate_longpoll.GetBlockTemplateLPTest::run_test(), mempool_spendcoinbase.MempoolSpendCoinbaseTest::run_test(), prioritise_transaction.PrioritiseTransactionTest::run_test(), forknotify.ForkNotifyTest::run_test(), bip68-sequence.BIP68Test::run_test(), merkle_blocks.MerkleBlockTest::run_test(), receivedby.ReceivedByTest::run_test(), wallet.WalletTest::run_test(), timestampindex.TimestampIndexTest::run_test(), rawtransactions.RawTransactionsTest::run_test(), spentindex.SpentIndexTest::run_test(), addressindex.AddressIndexTest::run_test(), txindex.TxIndexTest::run_test(), mempool_packages.MempoolPackagesTest::run_test(), zmq_test.ZMQTest::run_test(), rest.RESTTest::run_test(), p2p-versionbits-warning.VersionBitsWarningTest::run_test(), walletbackup.WalletBackupTest::run_test(), maxuploadtarget.MaxUploadTest::run_test(), bip68-sequence.BIP68Test::test_sequence_lock_confirmed_inputs(), and bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs().

◆ getaccount()

UniValue getaccount ( const UniValue params,
bool  fHelp 
)

◆ getaccountaddress()

UniValue getaccountaddress ( const UniValue params,
bool  fHelp 
)

◆ getaddednodeinfo()

UniValue getaddednodeinfo ( const UniValue params,
bool  fHelp 
)

Definition at line 257 of file net.cpp.

◆ getaddressbalance()

UniValue getaddressbalance ( const UniValue params,
bool  fHelp 
)

Definition at line 809 of file misc.cpp.

Referenced by addressindex.AddressIndexTest::run_test().

◆ getaddressdeltas()

UniValue getaddressdeltas ( const UniValue params,
bool  fHelp 
)

Definition at line 721 of file misc.cpp.

Referenced by addressindex.AddressIndexTest::run_test().

◆ getaddressesbyaccount()

UniValue getaddressesbyaccount ( const UniValue params,
bool  fHelp 
)

Definition at line 337 of file rpcwallet.cpp.

◆ getaddressmempool()

UniValue getaddressmempool ( const UniValue params,
bool  fHelp 
)

Definition at line 583 of file misc.cpp.

Referenced by addressindex.AddressIndexTest::run_test().

◆ getaddresstxids()

UniValue getaddresstxids ( const UniValue params,
bool  fHelp 
)

Definition at line 865 of file misc.cpp.

Referenced by addressindex.AddressIndexTest::run_test().

◆ getaddressutxos()

UniValue getaddressutxos ( const UniValue params,
bool  fHelp 
)

Definition at line 654 of file misc.cpp.

Referenced by addressindex.AddressIndexTest::run_test().

◆ getbalance()

◆ getbestblockhash()

◆ getblock()

◆ getblockchaininfo()

UniValue getblockchaininfo ( const UniValue params,
bool  fHelp 
)

◆ getblockcount()

◆ getblockhash()

◆ getblockhashes()

UniValue getblockhashes ( const UniValue params,
bool  fHelp 
)

Definition at line 277 of file blockchain.cpp.

Referenced by timestampindex.TimestampIndexTest::run_test().

◆ getblockheader()

UniValue getblockheader ( const UniValue params,
bool  fHelp 
)

◆ getblockheaders()

UniValue getblockheaders ( const UniValue params,
bool  fHelp 
)

Definition at line 394 of file blockchain.cpp.

◆ getblocktemplate()

UniValue getblocktemplate ( const UniValue params,
bool  fHelp 
)

◆ getchaintips()

UniValue getchaintips ( const UniValue params,
bool  fHelp 
)

Definition at line 837 of file blockchain.cpp.

◆ getconnectioncount()

UniValue getconnectioncount ( const UniValue params,
bool  fHelp 
)

Definition at line 28 of file net.cpp.

◆ GetDifficulty()

double GetDifficulty ( const CBlockIndex blockindex = NULL)

◆ getdifficulty()

UniValue getdifficulty ( const UniValue params,
bool  fHelp 
)

Definition at line 165 of file blockchain.cpp.

◆ getgenerate()

UniValue getgenerate ( const UniValue params,
bool  fHelp 
)

Definition at line 103 of file mining.cpp.

Referenced by getmininginfo().

◆ getgovernanceinfo()

UniValue getgovernanceinfo ( const UniValue params,
bool  fHelp 
)

Definition at line 897 of file governance.cpp.

◆ getinfo()

UniValue getinfo ( const UniValue params,
bool  fHelp 
)
Note
Do not add or change anything in the information returned by this method. 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 or
  • getwalletinfo

Or alternatively, create a specific query method for the information.

Definition at line 47 of file misc.cpp.

Referenced by p2p-versionbits-warning.VersionBitsWarningTest::run_test().

◆ getmempoolinfo()

UniValue getmempoolinfo ( const UniValue params,
bool  fHelp 
)

◆ getmininginfo()

UniValue getmininginfo ( const UniValue params,
bool  fHelp 
)

Definition at line 235 of file mining.cpp.

◆ getnettotals()

UniValue getnettotals ( const UniValue params,
bool  fHelp 
)

Definition at line 326 of file net.cpp.

◆ getnetworkhashps()

UniValue getnetworkhashps ( const UniValue params,
bool  fHelp 
)

Definition at line 81 of file mining.cpp.

Referenced by getmininginfo().

◆ getnetworkinfo()

◆ getnewaddress()

UniValue getnewaddress ( const UniValue params,
bool  fHelp 
)

◆ getpeerinfo()

UniValue getpeerinfo ( const UniValue params,
bool  fHelp 
)

◆ getpoolinfo()

UniValue getpoolinfo ( const UniValue params,
bool  fHelp 
)

Definition at line 65 of file masternode.cpp.

◆ getrawchangeaddress()

◆ getrawmempool()

◆ getrawtransaction()

◆ getreceivedbyaccount()

UniValue getreceivedbyaccount ( const UniValue params,
bool  fHelp 
)

Definition at line 701 of file rpcwallet.cpp.

Referenced by receivedby.ReceivedByTest::run_test().

◆ getreceivedbyaddress()

UniValue getreceivedbyaddress ( const UniValue params,
bool  fHelp 
)

Definition at line 641 of file rpcwallet.cpp.

Referenced by receivedby.ReceivedByTest::run_test().

◆ getspentinfo()

UniValue getspentinfo ( const UniValue params,
bool  fHelp 
)

Definition at line 948 of file misc.cpp.

Referenced by spentindex.SpentIndexTest::run_test().

◆ getsuperblockbudget()

UniValue getsuperblockbudget ( const UniValue params,
bool  fHelp 
)

Definition at line 955 of file governance.cpp.

◆ gettransaction()

◆ gettxout()

UniValue gettxout ( const UniValue params,
bool  fHelp 
)

Definition at line 591 of file blockchain.cpp.

◆ gettxoutproof()

UniValue gettxoutproof ( const UniValue params,
bool  fHelp 
)

Definition at line 235 of file rawtransaction.cpp.

Referenced by merkle_blocks.MerkleBlockTest::run_test().

◆ gettxoutsetinfo()

UniValue gettxoutsetinfo ( const UniValue params,
bool  fHelp 
)

Definition at line 553 of file blockchain.cpp.

◆ getunconfirmedbalance()

UniValue getunconfirmedbalance ( const UniValue params,
bool  fHelp 
)

◆ getwalletinfo()

UniValue getwalletinfo ( const UniValue params,
bool  fHelp 
)

◆ gobject()

UniValue gobject ( const UniValue params,
bool  fHelp 
)

Definition at line 25 of file governance.cpp.

◆ HelpExampleCli()

std::string HelpExampleCli ( const std::string &  methodname,
const std::string &  args 
)

Definition at line 581 of file server.cpp.

Referenced by abandontransaction(), addmultisigaddress(), addnode(), backupwallet(), clearbanned(), createmultisig(), createrawtransaction(), debug(), decoderawtransaction(), decodescript(), disconnectnode(), dumphdinfo(), dumpprivkey(), dumpwallet(), encryptwallet(), estimatefee(), estimatepriority(), estimatesmartfee(), estimatesmartpriority(), fundrawtransaction(), generate(), getaccount(), getaccountaddress(), getaddednodeinfo(), getaddressbalance(), getaddressdeltas(), getaddressesbyaccount(), getaddressmempool(), getaddresstxids(), getaddressutxos(), getbalance(), getbestblockhash(), getblock(), getblockchaininfo(), getblockcount(), getblockhash(), getblockhashes(), getblockheader(), getblockheaders(), getblocktemplate(), getchaintips(), getconnectioncount(), getdifficulty(), getgenerate(), getgovernanceinfo(), getinfo(), getmempoolinfo(), getmininginfo(), getnettotals(), getnetworkhashps(), getnetworkinfo(), getnewaddress(), getpeerinfo(), getrawchangeaddress(), getrawmempool(), getrawtransaction(), getreceivedbyaccount(), getreceivedbyaddress(), getspentinfo(), getsuperblockbudget(), gettransaction(), gettxout(), gettxoutproof(), gettxoutsetinfo(), getwalletinfo(), importaddress(), importelectrumwallet(), importprivkey(), importpubkey(), importwallet(), instantsendtoaddress(), invalidateblock(), keypoolrefill(), listaccounts(), listaddressgroupings(), listbanned(), listlockunspent(), listreceivedbyaccount(), listreceivedbyaddress(), listsinceblock(), listtransactions(), listunspent(), lockunspent(), movecmd(), ping(), prioritisetransaction(), reconsiderblock(), sendfrom(), sendmany(), sendrawtransaction(), sendtoaddress(), sentinelping(), setaccount(), setban(), setgenerate(), settxfee(), signmessage(), signrawtransaction(), submitblock(), validateaddress(), verifychain(), verifymessage(), verifytxoutproof(), walletlock(), walletpassphrase(), and walletpassphrasechange().

◆ HelpExampleRpc()

std::string HelpExampleRpc ( const std::string &  methodname,
const std::string &  args 
)

Definition at line 586 of file server.cpp.

Referenced by abandontransaction(), addmultisigaddress(), addnode(), backupwallet(), clearbanned(), createmultisig(), createrawtransaction(), debug(), decoderawtransaction(), decodescript(), disconnectnode(), dumphdinfo(), dumpprivkey(), dumpwallet(), encryptwallet(), getaccount(), getaccountaddress(), getaddednodeinfo(), getaddressbalance(), getaddressdeltas(), getaddressesbyaccount(), getaddressmempool(), getaddresstxids(), getaddressutxos(), getbalance(), getbestblockhash(), getblock(), getblockchaininfo(), getblockcount(), getblockhash(), getblockhashes(), getblockheader(), getblockheaders(), getblocktemplate(), getchaintips(), getconnectioncount(), getdifficulty(), getgenerate(), getgovernanceinfo(), getinfo(), getmempoolinfo(), getmininginfo(), getnettotals(), getnetworkhashps(), getnetworkinfo(), getnewaddress(), getpeerinfo(), getrawchangeaddress(), getrawmempool(), getrawtransaction(), getreceivedbyaccount(), getreceivedbyaddress(), getspentinfo(), getsuperblockbudget(), gettransaction(), gettxout(), gettxoutproof(), gettxoutsetinfo(), getwalletinfo(), importaddress(), importelectrumwallet(), importprivkey(), importpubkey(), importwallet(), instantsendtoaddress(), invalidateblock(), keypoolrefill(), listaccounts(), listaddressgroupings(), listbanned(), listlockunspent(), listreceivedbyaccount(), listreceivedbyaddress(), listsinceblock(), listtransactions(), listunspent(), lockunspent(), movecmd(), ping(), prioritisetransaction(), reconsiderblock(), sendfrom(), sendmany(), sendrawtransaction(), sendtoaddress(), sentinelping(), setaccount(), setban(), setgenerate(), settxfee(), signmessage(), signrawtransaction(), submitblock(), validateaddress(), verifychain(), verifymessage(), verifytxoutproof(), walletlock(), walletpassphrase(), and walletpassphrasechange().

◆ HelpRequiringPassphrase()

std::string HelpRequiringPassphrase ( )

◆ importaddress()

UniValue importaddress ( const UniValue params,
bool  fHelp 
)

◆ importelectrumwallet()

UniValue importelectrumwallet ( const UniValue params,
bool  fHelp 
)

Definition at line 412 of file rpcdump.cpp.

◆ importprivkey()

◆ importpubkey()

UniValue importpubkey ( const UniValue params,
bool  fHelp 
)

◆ importwallet()

UniValue importwallet ( const UniValue params,
bool  fHelp 
)

Definition at line 305 of file rpcdump.cpp.

Referenced by walletbackup.WalletBackupTest::run_test().

◆ instantsendtoaddress()

UniValue instantsendtoaddress ( const UniValue params,
bool  fHelp 
)

Definition at line 476 of file rpcwallet.cpp.

◆ InterruptRPC()

void InterruptRPC ( )

Definition at line 438 of file server.cpp.

Referenced by Interrupt().

◆ invalidateblock()

UniValue invalidateblock ( const UniValue params,
bool  fHelp 
)

Definition at line 983 of file blockchain.cpp.

◆ IsRPCRunning()

bool IsRPCRunning ( )

Query whether RPC is running

Definition at line 452 of file server.cpp.

Referenced by getblocktemplate().

◆ JSONRPCExecBatch()

std::string JSONRPCExecBatch ( const UniValue vReq)

Definition at line 532 of file server.cpp.

Referenced by HTTPReq_JSONRPC().

◆ keepass()

UniValue keepass ( const UniValue params,
bool  fHelp 
)

Definition at line 2455 of file rpcwallet.cpp.

◆ keypoolrefill()

UniValue keypoolrefill ( const UniValue params,
bool  fHelp 
)

◆ listaccounts()

UniValue listaccounts ( const UniValue params,
bool  fHelp 
)

Definition at line 1645 of file rpcwallet.cpp.

Referenced by wallet.WalletTest::run_test().

◆ listaddressgroupings()

UniValue listaddressgroupings ( const UniValue params,
bool  fHelp 
)

Definition at line 534 of file rpcwallet.cpp.

◆ listbanned()

UniValue listbanned ( const UniValue params,
bool  fHelp 
)

Definition at line 529 of file net.cpp.

Referenced by nodehandling.NodeHandlingTest::run_test().

◆ listlockunspent()

UniValue listlockunspent ( const UniValue params,
bool  fHelp 
)

Definition at line 2300 of file rpcwallet.cpp.

Referenced by wallet.WalletTest::run_test().

◆ listreceivedbyaccount()

UniValue listreceivedbyaccount ( const UniValue params,
bool  fHelp 
)

Definition at line 1380 of file rpcwallet.cpp.

Referenced by receivedby.ReceivedByTest::run_test().

◆ listreceivedbyaddress()

UniValue listreceivedbyaddress ( const UniValue params,
bool  fHelp 
)

Definition at line 1339 of file rpcwallet.cpp.

Referenced by receivedby.ReceivedByTest::run_test().

◆ listsinceblock()

UniValue listsinceblock ( const UniValue params,
bool  fHelp 
)

Definition at line 1726 of file rpcwallet.cpp.

Referenced by wallet.WalletTest::run_test().

◆ listtransactions()

UniValue listtransactions ( const UniValue params,
bool  fHelp 
)

Definition at line 1518 of file rpcwallet.cpp.

◆ listunspent()

◆ lockunspent()

UniValue lockunspent ( const UniValue params,
bool  fHelp 
)

Definition at line 2216 of file rpcwallet.cpp.

Referenced by wallet.WalletTest::run_test().

◆ masternode()

UniValue masternode ( const UniValue params,
bool  fHelp 
)

Definition at line 96 of file masternode.cpp.

◆ masternodebroadcast()

UniValue masternodebroadcast ( const UniValue params,
bool  fHelp 
)

Definition at line 607 of file masternode.cpp.

◆ masternodelist()

UniValue masternodelist ( const UniValue params,
bool  fHelp 
)

Definition at line 454 of file masternode.cpp.

Referenced by masternode().

◆ mnsync()

UniValue mnsync ( const UniValue params,
bool  fHelp 
)

Definition at line 143 of file misc.cpp.

◆ movecmd()

UniValue movecmd ( const UniValue params,
bool  fHelp 
)

Definition at line 885 of file rpcwallet.cpp.

◆ ParseHashO()

uint256 ParseHashO ( const UniValue o,
std::string  strKey 
)

◆ ParseHashV()

uint256 ParseHashV ( const UniValue v,
std::string  strName 
)

Utilities: convert hex-encoded Values (throws error if not hex).

◆ ParseHexO()

std::vector<unsigned char> ParseHexO ( const UniValue o,
std::string  strKey 
)

◆ ParseHexV()

std::vector<unsigned char> ParseHexV ( const UniValue v,
std::string  strName 
)

◆ ping()

UniValue ping ( const UniValue params,
bool  fHelp 
)

Definition at line 47 of file net.cpp.

◆ prioritisetransaction()

◆ privatesend()

UniValue privatesend ( const UniValue params,
bool  fHelp 
)

Definition at line 25 of file masternode.cpp.

◆ reconsiderblock()

UniValue reconsiderblock ( const UniValue params,
bool  fHelp 
)

Definition at line 1021 of file blockchain.cpp.

Referenced by mempool_packages.MempoolPackagesTest::run_test().

◆ resendwallettransactions()

UniValue resendwallettransactions ( const UniValue params,
bool  fHelp 
)

Definition at line 2505 of file rpcwallet.cpp.

Referenced by wallet.WalletTest::run_test().

◆ RPCIsInWarmup()

bool RPCIsInWarmup ( std::string *  statusOut)

Definition at line 470 of file server.cpp.

Referenced by CheckWarmup().

◆ RPCRegisterTimerInterface()

void RPCRegisterTimerInterface ( RPCTimerInterface iface)

Register factory function for timers

Definition at line 592 of file server.cpp.

Referenced by RPCConsole::RPCConsole(), and StartHTTPRPC().

◆ RPCRunLater()

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 604 of file server.cpp.

Referenced by walletpassphrase().

◆ RPCTypeCheck()

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));

◆ RPCTypeCheckObj()

void RPCTypeCheckObj ( const UniValue o,
const std::map< std::string, UniValue::VType > &  typesExpected,
bool  fAllowNull = false 
)

◆ RPCUnregisterTimerInterface()

void RPCUnregisterTimerInterface ( RPCTimerInterface iface)

Unregister factory function for timers

Definition at line 597 of file server.cpp.

Referenced by StopHTTPRPC(), and RPCConsole::~RPCConsole().

◆ sendfrom()

UniValue sendfrom ( const UniValue params,
bool  fHelp 
)

◆ sendmany()

◆ sendrawtransaction()

UniValue sendrawtransaction ( const UniValue params,
bool  fHelp 
)

Definition at line 830 of file rawtransaction.cpp.

Referenced by listtransactions.ListTransactionsTest::run_rbf_opt_in_test(), abandonconflict.AbandonConflictTest::run_test(), txn_clone.TxnMallTest::run_test(), txn_doublespend.TxnMallTest::run_test(), mempool_resurrect_test.MempoolCoinbaseTest::run_test(), fundrawtransaction.RawTransactionsTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), mempool_limit.MempoolLimitTest::run_test(), mempool_reorg.MempoolCoinbaseTest::run_test(), mempool_spendcoinbase.MempoolSpendCoinbaseTest::run_test(), prioritise_transaction.PrioritiseTransactionTest::run_test(), merkle_blocks.MerkleBlockTest::run_test(), wallet.WalletTest::run_test(), rawtransactions.RawTransactionsTest::run_test(), addressindex.AddressIndexTest::run_test(), spentindex.SpentIndexTest::run_test(), txindex.TxIndexTest::run_test(), mempool_packages.MempoolPackagesTest::run_test(), bip68-sequence.BIP68Test::test_bip68_not_consensus(), bip68-sequence.BIP68Test::test_disable_flag(), replace-by-fee.ReplaceByFeeTest::test_doublespend_chain(), replace-by-fee.ReplaceByFeeTest::test_doublespend_tree(), replace-by-fee.ReplaceByFeeTest::test_new_unconfirmed_inputs(), replace-by-fee.ReplaceByFeeTest::test_opt_in(), replace-by-fee.ReplaceByFeeTest::test_prioritised_transactions(), replace-by-fee.ReplaceByFeeTest::test_replacement_feeperkb(), bip68-sequence.BIP68Test::test_sequence_lock_confirmed_inputs(), bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs(), replace-by-fee.ReplaceByFeeTest::test_simple_doublespend(), replace-by-fee.ReplaceByFeeTest::test_spends_of_conflicting_outputs(), replace-by-fee.ReplaceByFeeTest::test_too_many_replacements(), and bip68-sequence.BIP68Test::test_version2_relay().

◆ sendtoaddress()

◆ sentinelping()

UniValue sentinelping ( const UniValue params,
bool  fHelp 
)

Definition at line 836 of file masternode.cpp.

◆ setaccount()

UniValue setaccount ( const UniValue params,
bool  fHelp 
)

Definition at line 259 of file rpcwallet.cpp.

◆ setban()

UniValue setban ( const UniValue params,
bool  fHelp 
)

Definition at line 465 of file net.cpp.

Referenced by nodehandling.NodeHandlingTest::run_test().

◆ setgenerate()

UniValue setgenerate ( const UniValue params,
bool  fHelp 
)

Definition at line 191 of file mining.cpp.

◆ setmocktime()

◆ setnetworkactive()

UniValue setnetworkactive ( const UniValue params,
bool  fHelp 
)

Definition at line 580 of file net.cpp.

◆ SetRPCWarmupFinished()

void SetRPCWarmupFinished ( )

Definition at line 463 of file server.cpp.

Referenced by AppInit2().

◆ SetRPCWarmupStatus()

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 457 of file server.cpp.

Referenced by AppInit2().

◆ settxfee()

UniValue settxfee ( const UniValue params,
bool  fHelp 
)

◆ signmessage()

UniValue signmessage ( const UniValue params,
bool  fHelp 
)

Definition at line 585 of file rpcwallet.cpp.

◆ signrawtransaction()

◆ spork()

UniValue spork ( const UniValue params,
bool  fHelp 
)

◆ StartRPC()

bool StartRPC ( )

Definition at line 430 of file server.cpp.

Referenced by AppInitServers().

◆ StopRPC()

void StopRPC ( )

Definition at line 445 of file server.cpp.

Referenced by PrepareShutdown().

◆ submitblock()

UniValue submitblock ( const UniValue params,
bool  fHelp 
)

◆ validateaddress()

◆ ValueFromAmount()

◆ verifychain()

UniValue verifychain ( const UniValue params,
bool  fHelp 
)

Definition at line 671 of file blockchain.cpp.

Referenced by blockchain.BlockchainTest::run_test().

◆ verifymessage()

UniValue verifymessage ( const UniValue params,
bool  fHelp 
)

Definition at line 444 of file misc.cpp.

◆ verifytxoutproof()

UniValue verifytxoutproof ( const UniValue params,
bool  fHelp 
)

Definition at line 321 of file rawtransaction.cpp.

Referenced by merkle_blocks.MerkleBlockTest::run_test().

◆ voteraw()

UniValue voteraw ( const UniValue params,
bool  fHelp 
)

Definition at line 836 of file governance.cpp.

◆ walletlock()

◆ walletpassphrase()

◆ walletpassphrasechange()

UniValue walletpassphrasechange ( const UniValue params,
bool  fHelp 
)

Definition at line 2074 of file rpcwallet.cpp.

Variable Documentation

◆ nWalletUnlockTime

int64_t nWalletUnlockTime

Definition at line 32 of file rpcwallet.cpp.

Referenced by getinfo(), getwalletinfo(), LockWallet(), walletlock(), and walletpassphrase().

◆ tableRPC