mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 17:56:16 +00:00
441 lines
29 KiB
HTML
441 lines
29 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.14"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Dash Core: src/rpc/protocol.cpp File Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(initResizable);
|
|
/* @license-end */</script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="bitcoin_logo_doxygen.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">Dash Core
|
|
 <span id="projectnumber">0.12.2.1</span>
|
|
</div>
|
|
<div id="projectbrief">P2P Digital Currency</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.14 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('rpc_2protocol_8cpp.html','');});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> |
|
|
<a href="#var-members">Variables</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">protocol.cpp File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><code>#include "<a class="el" href="rpc_2protocol_8h_source.html">rpc/protocol.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="random_8h_source.html">random.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="tinyformat_8h_source.html">tinyformat.h</a>"</code><br />
|
|
<code>#include "util.h"</code><br />
|
|
<code>#include "<a class="el" href="utilstrencodings_8h_source.html">utilstrencodings.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="utiltime_8h_source.html">utiltime.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="version_8h_source.html">version.h</a>"</code><br />
|
|
<code>#include <stdint.h></code><br />
|
|
<code>#include <fstream></code><br />
|
|
</div>
|
|
<p><a href="rpc_2protocol_8cpp_source.html">Go to the source code of this file.</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:a4507c5758f0ce7dc1a2e8740879459da"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="rpc_2protocol_8cpp.html#a4507c5758f0ce7dc1a2e8740879459da">JSONRPCRequest</a> (const string &strMethod, const <a class="el" href="classUniValue.html">UniValue</a> &params, const <a class="el" href="classUniValue.html">UniValue</a> &id)</td></tr>
|
|
<tr class="separator:a4507c5758f0ce7dc1a2e8740879459da"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac3b7dd20357d54461794da1213448ed8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUniValue.html">UniValue</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rpc_2protocol_8cpp.html#ac3b7dd20357d54461794da1213448ed8">JSONRPCReplyObj</a> (const <a class="el" href="classUniValue.html">UniValue</a> &result, const <a class="el" href="classUniValue.html">UniValue</a> &<a class="el" href="util_8h.html#af8985880cf4ef26df0a5aa2ffcb76662">error</a>, const <a class="el" href="classUniValue.html">UniValue</a> &id)</td></tr>
|
|
<tr class="separator:ac3b7dd20357d54461794da1213448ed8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac35624d5dc8c92a05cc19c575f53548b"><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="rpc_2protocol_8cpp.html#ac35624d5dc8c92a05cc19c575f53548b">JSONRPCReply</a> (const <a class="el" href="classUniValue.html">UniValue</a> &result, const <a class="el" href="classUniValue.html">UniValue</a> &<a class="el" href="util_8h.html#af8985880cf4ef26df0a5aa2ffcb76662">error</a>, const <a class="el" href="classUniValue.html">UniValue</a> &id)</td></tr>
|
|
<tr class="separator:ac35624d5dc8c92a05cc19c575f53548b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a41a2234c99900304357a44796b2259d5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUniValue.html">UniValue</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a> (int code, const string &message)</td></tr>
|
|
<tr class="separator:a41a2234c99900304357a44796b2259d5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aae8ad79d1767e2f4b1207c1af53af7c3"><td class="memItemLeft" align="right" valign="top">boost::filesystem::path </td><td class="memItemRight" valign="bottom"><a class="el" href="rpc_2protocol_8cpp.html#aae8ad79d1767e2f4b1207c1af53af7c3">GetAuthCookieFile</a> ()</td></tr>
|
|
<tr class="separator:aae8ad79d1767e2f4b1207c1af53af7c3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aba0ca0057b433bdfcb881fcd6af4b577"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="rpc_2protocol_8cpp.html#aba0ca0057b433bdfcb881fcd6af4b577">GenerateAuthCookie</a> (std::string *cookie_out)</td></tr>
|
|
<tr class="separator:aba0ca0057b433bdfcb881fcd6af4b577"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a25c502e3691e714e8a130c2325d40d63"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="rpc_2protocol_8cpp.html#a25c502e3691e714e8a130c2325d40d63">GetAuthCookie</a> (std::string *cookie_out)</td></tr>
|
|
<tr class="separator:a25c502e3691e714e8a130c2325d40d63"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9807259ee7b7c4f5445cf54fd23589cb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="rpc_2protocol_8cpp.html#a9807259ee7b7c4f5445cf54fd23589cb">DeleteAuthCookie</a> ()</td></tr>
|
|
<tr class="separator:a9807259ee7b7c4f5445cf54fd23589cb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
|
|
Variables</h2></td></tr>
|
|
<tr class="memitem:aefb20e620a9883ec151225fd88e5217d"><td class="memItemLeft" align="right" valign="top">static const std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="rpc_2protocol_8cpp.html#aefb20e620a9883ec151225fd88e5217d">COOKIEAUTH_USER</a> = "__cookie__"</td></tr>
|
|
<tr class="separator:aefb20e620a9883ec151225fd88e5217d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aab682dd2b4f63d1156c783d1a2edf0f5"><td class="memItemLeft" align="right" valign="top">static const std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="rpc_2protocol_8cpp.html#aab682dd2b4f63d1156c783d1a2edf0f5">COOKIEAUTH_FILE</a> = ".cookie"</td></tr>
|
|
<tr class="separator:aab682dd2b4f63d1156c783d1a2edf0f5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a id="a9807259ee7b7c4f5445cf54fd23589cb"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9807259ee7b7c4f5445cf54fd23589cb">◆ </a></span>DeleteAuthCookie()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void DeleteAuthCookie </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Delete RPC authentication cookie from disk </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="rpc_2protocol_8cpp_source.html#l00122">122</a> of file <a class="el" href="rpc_2protocol_8cpp_source.html">protocol.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aba0ca0057b433bdfcb881fcd6af4b577"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aba0ca0057b433bdfcb881fcd6af4b577">◆ </a></span>GenerateAuthCookie()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool GenerateAuthCookie </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string * </td>
|
|
<td class="paramname"><em>cookie_out</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Generate a new RPC authentication cookie and write it to disk </p>
|
|
<p>the umask determines what permissions are used to create this file - these are set to 077 in <a class="el" href="init_8cpp.html">init.cpp</a> unless overridden with -sysperms.</p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="rpc_2protocol_8cpp_source.html#l00079">79</a> of file <a class="el" href="rpc_2protocol_8cpp_source.html">protocol.cpp</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="httprpc_8cpp_source.html#l00206">InitRPCAuthentication()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a25c502e3691e714e8a130c2325d40d63"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a25c502e3691e714e8a130c2325d40d63">◆ </a></span>GetAuthCookie()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool GetAuthCookie </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string * </td>
|
|
<td class="paramname"><em>cookie_out</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Read the RPC authentication cookie from disk </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="rpc_2protocol_8cpp_source.html#l00106">106</a> of file <a class="el" href="rpc_2protocol_8cpp_source.html">protocol.cpp</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="dash-cli_8cpp_source.html#l00158">CallRPC()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aae8ad79d1767e2f4b1207c1af53af7c3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aae8ad79d1767e2f4b1207c1af53af7c3">◆ </a></span>GetAuthCookieFile()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">boost::filesystem::path GetAuthCookieFile </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Get name of RPC authentication cookie file </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="rpc_2protocol_8cpp_source.html#l00072">72</a> of file <a class="el" href="rpc_2protocol_8cpp_source.html">protocol.cpp</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="rpc_2protocol_8cpp_source.html#l00122">DeleteAuthCookie()</a>, <a class="el" href="rpc_2protocol_8cpp_source.html#l00079">GenerateAuthCookie()</a>, and <a class="el" href="rpc_2protocol_8cpp_source.html#l00106">GetAuthCookie()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a41a2234c99900304357a44796b2259d5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a41a2234c99900304357a44796b2259d5">◆ </a></span>JSONRPCError()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classUniValue.html">UniValue</a> JSONRPCError </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>code</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const string & </td>
|
|
<td class="paramname"><em>message</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="rpc_2protocol_8cpp_source.html#l00057">57</a> of file <a class="el" href="rpc_2protocol_8cpp_source.html">protocol.cpp</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="rpcwallet_8cpp_source.html#l01902">abandontransaction()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00105">AccountFromValue()</a>, <a class="el" href="rpc_2net_8cpp_source.html#l00189">addnode()</a>, <a class="el" href="server_8cpp_source.html#l00110">AmountFromValue()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l01937">backupwallet()</a>, <a class="el" href="mining_8cpp_source.html#l00310">BIP22ValidationResult()</a>, <a class="el" href="rpc_2net_8cpp_source.html#l00562">clearbanned()</a>, <a class="el" href="rawtransaction_8cpp_source.html#l00358">createrawtransaction()</a>, <a class="el" href="rawtransaction_8cpp_source.html#l00460">decoderawtransaction()</a>, <a class="el" href="rpc_2net_8cpp_source.html#l00234">disconnectnode()</a>, <a class="el" href="rpcdump_8cpp_source.html#l00583">dumphdinfo()</a>, <a class="el" href="rpcdump_8cpp_source.html#l00546">dumpprivkey()</a>, <a class="el" href="rpcdump_8cpp_source.html#l00629">dumpwallet()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l02159">encryptwallet()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00042">EnsureWalletIsAvailable()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00054">EnsureWalletIsUnlocked()</a>, <a class="el" href="server_8cpp_source.html#l00541">CRPCTable::execute()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l02651">fundrawtransaction()</a>, <a class="el" href="mining_8cpp_source.html#l00122">generate()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00305">getaccount()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00155">GetAccountAddress()</a>, <a class="el" href="rpc_2net_8cpp_source.html#l00257">getaddednodeinfo()</a>, <a class="el" href="misc_8cpp_source.html#l00809">getaddressbalance()</a>, <a class="el" href="misc_8cpp_source.html#l00721">getaddressdeltas()</a>, <a class="el" href="misc_8cpp_source.html#l00537">getAddressesFromParams()</a>, <a class="el" href="misc_8cpp_source.html#l00583">getaddressmempool()</a>, <a class="el" href="misc_8cpp_source.html#l00865">getaddresstxids()</a>, <a class="el" href="misc_8cpp_source.html#l00654">getaddressutxos()</a>, <a class="el" href="blockchain_8cpp_source.html#l00483">getblock()</a>, <a class="el" href="blockchain_8cpp_source.html#l00311">getblockhash()</a>, <a class="el" href="blockchain_8cpp_source.html#l00277">getblockhashes()</a>, <a class="el" href="blockchain_8cpp_source.html#l00336">getblockheader()</a>, <a class="el" href="blockchain_8cpp_source.html#l00394">getblockheaders()</a>, <a class="el" href="mining_8cpp_source.html#l00337">getblocktemplate()</a>, <a class="el" href="rpc_2net_8cpp_source.html#l00028">getconnectioncount()</a>, <a class="el" href="rpc_2net_8cpp_source.html#l00326">getnettotals()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00113">getnewaddress()</a>, <a class="el" href="rpc_2net_8cpp_source.html#l00070">getpeerinfo()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00224">getrawchangeaddress()</a>, <a class="el" href="rawtransaction_8cpp_source.html#l00144">getrawtransaction()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00641">getreceivedbyaddress()</a>, <a class="el" href="misc_8cpp_source.html#l00948">getspentinfo()</a>, <a class="el" href="rpc_2governance_8cpp_source.html#l00955">getsuperblockbudget()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l01821">gettransaction()</a>, <a class="el" href="rawtransaction_8cpp_source.html#l00235">gettxoutproof()</a>, <a class="el" href="rpc_2governance_8cpp_source.html#l00025">gobject()</a>, <a class="el" href="httprpc_8cpp_source.html#l00143">HTTPReq_JSONRPC()</a>, <a class="el" href="rpcdump_8cpp_source.html#l00181">importaddress()</a>, <a class="el" href="rpcdump_8cpp_source.html#l00412">importelectrumwallet()</a>, <a class="el" href="rpcdump_8cpp_source.html#l00076">importprivkey()</a>, <a class="el" href="rpcdump_8cpp_source.html#l00247">importpubkey()</a>, <a class="el" href="rpcdump_8cpp_source.html#l00155">ImportScript()</a>, <a class="el" href="rpcdump_8cpp_source.html#l00305">importwallet()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00476">instantsendtoaddress()</a>, <a class="el" href="blockchain_8cpp_source.html#l00983">invalidateblock()</a>, <a class="el" href="server_8cpp_source.html#l00508">JSONRPCExecOne()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l01963">keypoolrefill()</a>, <a class="el" href="rpc_2net_8cpp_source.html#l00529">listbanned()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l01726">listsinceblock()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l01518">listtransactions()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l02533">listunspent()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l02216">lockunspent()</a>, <a class="el" href="rpc_2masternode_8cpp_source.html#l00096">masternode()</a>, <a class="el" href="rpc_2masternode_8cpp_source.html#l00607">masternodebroadcast()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00885">movecmd()</a>, <a class="el" href="init_8cpp_source.html#l00375">OnRPCPreCommand()</a>, <a class="el" href="server_8cpp_source.html#l00478">JSONRequest::parse()</a>, <a class="el" href="server_8cpp_source.html#l00132">ParseHashV()</a>, <a class="el" href="server_8cpp_source.html#l00147">ParseHexV()</a>, <a class="el" href="rpc_2net_8cpp_source.html#l00047">ping()</a>, <a class="el" href="blockchain_8cpp_source.html#l01021">reconsiderblock()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l02505">resendwallettransactions()</a>, <a class="el" href="server_8cpp_source.html#l00604">RPCRunLater()</a>, <a class="el" href="server_8cpp_source.html#l00070">RPCTypeCheck()</a>, <a class="el" href="server_8cpp_source.html#l00091">RPCTypeCheckObj()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00958">sendfrom()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l01024">sendmany()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00374">SendMoney()</a>, <a class="el" href="rawtransaction_8cpp_source.html#l00830">sendrawtransaction()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00409">sendtoaddress()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00259">setaccount()</a>, <a class="el" href="rpc_2net_8cpp_source.html#l00465">setban()</a>, <a class="el" href="mining_8cpp_source.html#l00191">setgenerate()</a>, <a class="el" href="rpc_2net_8cpp_source.html#l00580">setnetworkactive()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l00585">signmessage()</a>, <a class="el" href="rawtransaction_8cpp_source.html#l00588">signrawtransaction()</a>, <a class="el" href="misc_8cpp_source.html#l00225">spork()</a>, <a class="el" href="mining_8cpp_source.html#l00755">submitblock()</a>, <a class="el" href="misc_8cpp_source.html#l00444">verifymessage()</a>, <a class="el" href="rawtransaction_8cpp_source.html#l00321">verifytxoutproof()</a>, <a class="el" href="rpc_2governance_8cpp_source.html#l00836">voteraw()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l02120">walletlock()</a>, <a class="el" href="rpcwallet_8cpp_source.html#l02007">walletpassphrase()</a>, and <a class="el" href="rpcwallet_8cpp_source.html#l02074">walletpassphrasechange()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac35624d5dc8c92a05cc19c575f53548b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac35624d5dc8c92a05cc19c575f53548b">◆ </a></span>JSONRPCReply()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">string JSONRPCReply </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classUniValue.html">UniValue</a> & </td>
|
|
<td class="paramname"><em>result</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classUniValue.html">UniValue</a> & </td>
|
|
<td class="paramname"><em>error</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classUniValue.html">UniValue</a> & </td>
|
|
<td class="paramname"><em>id</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="rpc_2protocol_8cpp_source.html#l00051">51</a> of file <a class="el" href="rpc_2protocol_8cpp_source.html">protocol.cpp</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="httprpc_8cpp_source.html#l00143">HTTPReq_JSONRPC()</a>, and <a class="el" href="httprpc_8cpp_source.html#l00065">JSONErrorReply()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac3b7dd20357d54461794da1213448ed8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac3b7dd20357d54461794da1213448ed8">◆ </a></span>JSONRPCReplyObj()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classUniValue.html">UniValue</a> JSONRPCReplyObj </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classUniValue.html">UniValue</a> & </td>
|
|
<td class="paramname"><em>result</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classUniValue.html">UniValue</a> & </td>
|
|
<td class="paramname"><em>error</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classUniValue.html">UniValue</a> & </td>
|
|
<td class="paramname"><em>id</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="rpc_2protocol_8cpp_source.html#l00039">39</a> of file <a class="el" href="rpc_2protocol_8cpp_source.html">protocol.cpp</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="server_8cpp_source.html#l00508">JSONRPCExecOne()</a>, and <a class="el" href="rpc_2protocol_8cpp_source.html#l00051">JSONRPCReply()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4507c5758f0ce7dc1a2e8740879459da"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4507c5758f0ce7dc1a2e8740879459da">◆ </a></span>JSONRPCRequest()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">string JSONRPCRequest </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const string & </td>
|
|
<td class="paramname"><em>strMethod</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classUniValue.html">UniValue</a> & </td>
|
|
<td class="paramname"><em>params</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classUniValue.html">UniValue</a> & </td>
|
|
<td class="paramname"><em>id</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>JSON-RPC protocol. Bitcoin speaks version 1.0 for maximum compatibility, but uses JSON-RPC 1.1/2.0 standards for parts of the 1.0 standard that were unspecified (HTTP errors and contents of 'error').</p>
|
|
<p>1.0 spec: <a href="http://json-rpc.org/wiki/specification">http://json-rpc.org/wiki/specification</a> 1.2 spec: <a href="http://jsonrpc.org/historical/json-rpc-over-http.html">http://jsonrpc.org/historical/json-rpc-over-http.html</a> </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="rpc_2protocol_8cpp_source.html#l00030">30</a> of file <a class="el" href="rpc_2protocol_8cpp_source.html">protocol.cpp</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="dash-cli_8cpp_source.html#l00158">CallRPC()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Variable Documentation</h2>
|
|
<a id="aab682dd2b4f63d1156c783d1a2edf0f5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aab682dd2b4f63d1156c783d1a2edf0f5">◆ </a></span>COOKIEAUTH_FILE</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::string COOKIEAUTH_FILE = ".cookie"</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Default name for auth cookie file </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="rpc_2protocol_8cpp_source.html#l00070">70</a> of file <a class="el" href="rpc_2protocol_8cpp_source.html">protocol.cpp</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="rpc_2protocol_8cpp_source.html#l00072">GetAuthCookieFile()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aefb20e620a9883ec151225fd88e5217d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aefb20e620a9883ec151225fd88e5217d">◆ </a></span>COOKIEAUTH_USER</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::string COOKIEAUTH_USER = "__cookie__"</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Username used when cookie authentication is in use (arbitrary, only for recognizability in debugging/logging purposes) </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="rpc_2protocol_8cpp_source.html#l00068">68</a> of file <a class="el" href="rpc_2protocol_8cpp_source.html">protocol.cpp</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="rpc_2protocol_8cpp_source.html#l00079">GenerateAuthCookie()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_1d8fd1f10602b1b3ec6e7b702d4ec182.html">rpc</a></li><li class="navelem"><a class="el" href="rpc_2protocol_8cpp.html">protocol.cpp</a></li>
|
|
<li class="footer">Generated on Thu Dec 14 2017 13:15:10 for Dash Core by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|