dash-docs/en/doxygen/html/rawtransaction_8cpp_source.html

317 lines
269 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/rawtransaction.cpp Source File</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&amp;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
&#160;<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&amp;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&amp;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&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('rawtransaction_8cpp_source.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="headertitle">
<div class="title">rawtransaction.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="rawtransaction_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright (c) 2010 Satoshi Nakamoto</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Copyright (c) 2009-2015 The Bitcoin Core developers</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// Copyright (c) 2014-2017 The Dash Core developers</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// Distributed under the MIT software license, see the accompanying</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">// file COPYING or http://www.opensource.org/licenses/mit-license.php.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="base58_8h.html">base58.h</a>&quot;</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="chain_8h.html">chain.h</a>&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="coins_8h.html">coins.h</a>&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="consensus_2validation_8h.html">consensus/validation.h</a>&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="core__io_8h.html">core_io.h</a>&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="init_8h.html">init.h</a>&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="keystore_8h.html">keystore.h</a>&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="consensus_2validation_8h.html">validation.h</a>&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="merkleblock_8h.html">merkleblock.h</a>&quot;</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="net_8h.html">net.h</a>&quot;</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="policy_8h.html">policy/policy.h</a>&quot;</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="transaction_8h.html">primitives/transaction.h</a>&quot;</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="server_8h.html">rpc/server.h</a>&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="script_8h.html">script/script.h</a>&quot;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="script__error_8h.html">script/script_error.h</a>&quot;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="sign_8h.html">script/sign.h</a>&quot;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="standard_8h.html">script/standard.h</a>&quot;</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="txmempool_8h.html">txmempool.h</a>&quot;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="uint256_8h.html">uint256.h</a>&quot;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="utilstrencodings_8h.html">utilstrencodings.h</a>&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="instantx_8h.html">instantx.h</a>&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#ifdef ENABLE_WALLET</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="wallet_8h.html">wallet/wallet.h</a>&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &lt;boost/assign/list_of.hpp&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="univalue_8h.html">univalue.h</a>&gt;</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="rawtransaction_8cpp.html#a6e621b4ad486c6d716873ee3f16919ad"> 40</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="rawtransaction_8cpp.html#a6e621b4ad486c6d716873ee3f16919ad">ScriptPubKeyToJSON</a>(<span class="keyword">const</span> <a class="code" href="classCScript.html">CScript</a>&amp; scriptPubKey, <a class="code" href="classUniValue.html">UniValue</a>&amp; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>, <span class="keywordtype">bool</span> fIncludeHex)</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;{</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <a class="code" href="standard_8h.html#a750f89f617f934820d5371be790e09ad">txnouttype</a> type;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; vector&lt;CTxDestination&gt; addresses;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keywordtype">int</span> nRequired;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;asm&quot;</span>, <a class="code" href="core__io_8h.html#a9236ffa581211a68db7f7447faa6c27c">ScriptToAsmStr</a>(scriptPubKey)));</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordflow">if</span> (fIncludeHex)</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;hex&quot;</span>, <a class="code" href="utilstrencodings_8h.html#ace13a819ca4e98c22847d26b3b357e75">HexStr</a>(scriptPubKey.<a class="code" href="classprevector.html#aa9210cbe708412a70868d6e0bca844c9">begin</a>(), scriptPubKey.<a class="code" href="classprevector.html#aab7f6e13a3cac85cc340fc6b90c5365c">end</a>())));</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="standard_8cpp.html#a6948ee6aa422ed8a5ffe06ddc77a55d8">ExtractDestinations</a>(scriptPubKey, type, addresses, nRequired)) {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;type&quot;</span>, <a class="code" href="standard_8cpp.html#a998a2df1a42dc68c4cffa9933aa713c2">GetTxnOutputType</a>(type)));</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; }</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;reqSigs&quot;</span>, nRequired));</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;type&quot;</span>, <a class="code" href="standard_8cpp.html#a998a2df1a42dc68c4cffa9933aa713c2">GetTxnOutputType</a>(type)));</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> a(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aa95a3bc9bbb82964abef922146cc73c4">UniValue::VARR</a>);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; BOOST_FOREACH(<span class="keyword">const</span> <a class="code" href="standard_8h.html#a50f712c3d9a0d2f85ae464497dd9cff8">CTxDestination</a>&amp; addr, addresses)</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; a.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="classCBitcoinAddress.html">CBitcoinAddress</a>(addr).ToString());</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;addresses&quot;</span>, a));</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;}</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="rawtransaction_8cpp.html#a719639f5d779706aae5c283784b3fd66"> 64</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="rawtransaction_8cpp.html#a719639f5d779706aae5c283784b3fd66">TxToJSON</a>(<span class="keyword">const</span> <a class="code" href="classCTransaction.html">CTransaction</a>&amp; tx, <span class="keyword">const</span> <a class="code" href="classuint256.html">uint256</a> hashBlock, <a class="code" href="classUniValue.html">UniValue</a>&amp; entry)</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;{</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <a class="code" href="classuint256.html">uint256</a> txid = tx.<a class="code" href="classCTransaction.html#a7efd1379de830341417c0bfa23a149aa">GetHash</a>();</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;txid&quot;</span>, txid.<a class="code" href="classbase__blob.html#ad7263503f949fb3c6c520ebb1f28e378">GetHex</a>()));</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;size&quot;</span>, (<span class="keywordtype">int</span>)::<a class="code" href="serialize_8h.html#a48239e478ae730373d1984fe304ca025">GetSerializeSize</a>(tx, <a class="code" href="serialize_8h.html#ae4d5251432e1a9e6803c0240cc492e18a652754eeaf79fba4fcf4c18597a6961c">SER_NETWORK</a>, <a class="code" href="version_8h.html#a4e2497f7c9c4319adcaf945159ec63f4">PROTOCOL_VERSION</a>)));</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;version&quot;</span>, tx.<a class="code" href="classCTransaction.html#abda727662de83b84dc2ef56d30690cb1">nVersion</a>));</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;locktime&quot;</span>, (int64_t)tx.<a class="code" href="classCTransaction.html#a54d5948c11f499b28276eab6bbfdf0c5">nLockTime</a>));</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> vin(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aa95a3bc9bbb82964abef922146cc73c4">UniValue::VARR</a>);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; BOOST_FOREACH(<span class="keyword">const</span> <a class="code" href="classCTxIn.html">CTxIn</a>&amp; txin, tx.<a class="code" href="classCTransaction.html#ad64447ea044ec850313696fc99412d95">vin</a>) {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> in(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a4d17ac56db012de25e26ac62daf3f475">UniValue::VOBJ</a>);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordflow">if</span> (tx.<a class="code" href="classCTransaction.html#a96256e8ac1bf79ad9c057e48c41132dd">IsCoinBase</a>())</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; in.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;coinbase&quot;</span>, <a class="code" href="utilstrencodings_8h.html#ace13a819ca4e98c22847d26b3b357e75">HexStr</a>(txin.<a class="code" href="classCTxIn.html#aba540fd902366210a6ad6cd9a18fe763">scriptSig</a>.<a class="code" href="classprevector.html#aa9210cbe708412a70868d6e0bca844c9">begin</a>(), txin.<a class="code" href="classCTxIn.html#aba540fd902366210a6ad6cd9a18fe763">scriptSig</a>.<a class="code" href="classprevector.html#aab7f6e13a3cac85cc340fc6b90c5365c">end</a>())));</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordflow">else</span> {</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; in.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;txid&quot;</span>, txin.<a class="code" href="classCTxIn.html#aed9312051a25380cbd7f123408ab7c20">prevout</a>.<a class="code" href="classCOutPoint.html#af131c7194a660558b0ff158f4efa7a28">hash</a>.<a class="code" href="classbase__blob.html#ad7263503f949fb3c6c520ebb1f28e378">GetHex</a>()));</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; in.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;vout&quot;</span>, (int64_t)txin.<a class="code" href="classCTxIn.html#aed9312051a25380cbd7f123408ab7c20">prevout</a>.<a class="code" href="classCOutPoint.html#a1b857e3a0412ff741da2c9f8defe315c">n</a>));</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> o(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a4d17ac56db012de25e26ac62daf3f475">UniValue::VOBJ</a>);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; o.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;asm&quot;</span>, <a class="code" href="core__io_8h.html#a9236ffa581211a68db7f7447faa6c27c">ScriptToAsmStr</a>(txin.<a class="code" href="classCTxIn.html#aba540fd902366210a6ad6cd9a18fe763">scriptSig</a>, <span class="keyword">true</span>)));</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; o.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;hex&quot;</span>, <a class="code" href="utilstrencodings_8h.html#ace13a819ca4e98c22847d26b3b357e75">HexStr</a>(txin.<a class="code" href="classCTxIn.html#aba540fd902366210a6ad6cd9a18fe763">scriptSig</a>.<a class="code" href="classprevector.html#aa9210cbe708412a70868d6e0bca844c9">begin</a>(), txin.<a class="code" href="classCTxIn.html#aba540fd902366210a6ad6cd9a18fe763">scriptSig</a>.<a class="code" href="classprevector.html#aab7f6e13a3cac85cc340fc6b90c5365c">end</a>())));</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; in.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;scriptSig&quot;</span>, o));</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="comment">// Add address and value info if spentindex enabled</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <a class="code" href="structCSpentIndexValue.html">CSpentIndexValue</a> spentInfo;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="structCSpentIndexKey.html">CSpentIndexKey</a> spentKey(txin.<a class="code" href="classCTxIn.html#aed9312051a25380cbd7f123408ab7c20">prevout</a>.<a class="code" href="classCOutPoint.html#af131c7194a660558b0ff158f4efa7a28">hash</a>, txin.<a class="code" href="classCTxIn.html#aed9312051a25380cbd7f123408ab7c20">prevout</a>.<a class="code" href="classCOutPoint.html#a1b857e3a0412ff741da2c9f8defe315c">n</a>);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="validation_8cpp.html#ae88ea23b2e483753f7e055283007dd77">GetSpentIndex</a>(spentKey, spentInfo)) {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; in.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;value&quot;</span>, <a class="code" href="server_8cpp.html#a513e384f1d458abddd1bf9be05125947">ValueFromAmount</a>(spentInfo.<a class="code" href="structCSpentIndexValue.html#a4dc408ea5e141e426395091a692f39cc">satoshis</a>)));</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; in.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;valueSat&quot;</span>, spentInfo.<a class="code" href="structCSpentIndexValue.html#a4dc408ea5e141e426395091a692f39cc">satoshis</a>));</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordflow">if</span> (spentInfo.<a class="code" href="structCSpentIndexValue.html#ad942d5cdcbe531184ca8050ba583fa97">addressType</a> == 1) {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; in.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;address&quot;</span>, <a class="code" href="classCBitcoinAddress.html">CBitcoinAddress</a>(<a class="code" href="classCKeyID.html">CKeyID</a>(spentInfo.<a class="code" href="structCSpentIndexValue.html#a2aeee131cb911ca46d4a59daadf10c3e">addressHash</a>)).<a class="code" href="classCBase58Data.html#a7dc91af403ca02694b3247b15604e220">ToString</a>()));</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (spentInfo.<a class="code" href="structCSpentIndexValue.html#ad942d5cdcbe531184ca8050ba583fa97">addressType</a> == 2) {</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; in.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;address&quot;</span>, <a class="code" href="classCBitcoinAddress.html">CBitcoinAddress</a>(<a class="code" href="classCScriptID.html">CScriptID</a>(spentInfo.<a class="code" href="structCSpentIndexValue.html#a2aeee131cb911ca46d4a59daadf10c3e">addressHash</a>)).<a class="code" href="classCBase58Data.html#a7dc91af403ca02694b3247b15604e220">ToString</a>()));</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; }</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; }</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; in.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;sequence&quot;</span>, (int64_t)txin.<a class="code" href="classCTxIn.html#a635deeaf3ca4e8b3e1a97054607211b9">nSequence</a>));</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; vin.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(in);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; }</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;vin&quot;</span>, vin));</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> vout(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aa95a3bc9bbb82964abef922146cc73c4">UniValue::VARR</a>);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; tx.<a class="code" href="classCTransaction.html#a708645274ddfd83829315ffe5c7c5c3e">vout</a>.size(); i++) {</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keyword">const</span> <a class="code" href="classCTxOut.html">CTxOut</a>&amp; txout = tx.<a class="code" href="classCTransaction.html#a708645274ddfd83829315ffe5c7c5c3e">vout</a>[i];</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a4d17ac56db012de25e26ac62daf3f475">UniValue::VOBJ</a>);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;value&quot;</span>, <a class="code" href="server_8cpp.html#a513e384f1d458abddd1bf9be05125947">ValueFromAmount</a>(txout.<a class="code" href="classCTxOut.html#ab278ecef3817a972cb6bc5360d13f197">nValue</a>)));</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;valueSat&quot;</span>, txout.<a class="code" href="classCTxOut.html#ab278ecef3817a972cb6bc5360d13f197">nValue</a>));</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;n&quot;</span>, (int64_t)i));</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> o(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a4d17ac56db012de25e26ac62daf3f475">UniValue::VOBJ</a>);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <a class="code" href="rawtransaction_8cpp.html#a6e621b4ad486c6d716873ee3f16919ad">ScriptPubKeyToJSON</a>(txout.<a class="code" href="classCTxOut.html#a25bf3f2f4befb22a6a0be45784fe57e2">scriptPubKey</a>, o, <span class="keyword">true</span>);</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;scriptPubKey&quot;</span>, o));</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="comment">// Add spent information if spentindex is enabled</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <a class="code" href="structCSpentIndexValue.html">CSpentIndexValue</a> spentInfo;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <a class="code" href="structCSpentIndexKey.html">CSpentIndexKey</a> spentKey(txid, i);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="validation_8cpp.html#ae88ea23b2e483753f7e055283007dd77">GetSpentIndex</a>(spentKey, spentInfo)) {</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;spentTxId&quot;</span>, spentInfo.<a class="code" href="structCSpentIndexValue.html#aad16faff9e2d74359d977986911bac33">txid</a>.<a class="code" href="classbase__blob.html#ad7263503f949fb3c6c520ebb1f28e378">GetHex</a>()));</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;spentIndex&quot;</span>, (<span class="keywordtype">int</span>)spentInfo.<a class="code" href="structCSpentIndexValue.html#a1f66a53ec4ef540b51e4787e842ae88c">inputIndex</a>));</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;spentHeight&quot;</span>, spentInfo.<a class="code" href="structCSpentIndexValue.html#ad2e454112b9830af46480a9ee3040fb4">blockHeight</a>));</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; }</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; vout.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; }</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;vout&quot;</span>, vout));</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordflow">if</span> (!hashBlock.<a class="code" href="classbase__blob.html#aba89c6722866a5850882a509d27d7bbd">IsNull</a>()) {</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;blockhash&quot;</span>, hashBlock.<a class="code" href="classbase__blob.html#ad7263503f949fb3c6c520ebb1f28e378">GetHex</a>()));</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; BlockMap::iterator mi = <a class="code" href="validation_8cpp.html#a887b8e9f9fea0ea870c6987f1fd52eb6">mapBlockIndex</a>.find(hashBlock);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordflow">if</span> (mi != <a class="code" href="validation_8cpp.html#a887b8e9f9fea0ea870c6987f1fd52eb6">mapBlockIndex</a>.end() &amp;&amp; (*mi).second) {</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <a class="code" href="classCBlockIndex.html">CBlockIndex</a>* pindex = (*mi).second;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="validation_8cpp.html#adb31995c443ae2aef1d2f1c350de0419">chainActive</a>.<a class="code" href="classCChain.html#af1786dc229c215dea7f727c11df2c8dc">Contains</a>(pindex)) {</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;height&quot;</span>, pindex-&gt;<a class="code" href="classCBlockIndex.html#aebfc8d6b95852546760e742553d7bfd5">nHeight</a>));</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;confirmations&quot;</span>, 1 + <a class="code" href="validation_8cpp.html#adb31995c443ae2aef1d2f1c350de0419">chainActive</a>.<a class="code" href="classCChain.html#ad4758bc8872ce065a9579f77c3171d40">Height</a>() - pindex-&gt;<a class="code" href="classCBlockIndex.html#aebfc8d6b95852546760e742553d7bfd5">nHeight</a>));</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;time&quot;</span>, pindex-&gt;<a class="code" href="classCBlockIndex.html#a9fe0d4463c07c466f66252e8eec25f5c">GetBlockTime</a>()));</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;blocktime&quot;</span>, pindex-&gt;<a class="code" href="classCBlockIndex.html#a9fe0d4463c07c466f66252e8eec25f5c">GetBlockTime</a>()));</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;height&quot;</span>, -1));</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;confirmations&quot;</span>, 0));</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; }</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; }</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; }</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;}</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="server_8h.html#aab9a57fd8f857122f587feee00a7757c"> 144</a></span>&#160;<a class="code" href="classUniValue.html">UniValue</a> <a class="code" href="rawtransaction_8cpp.html#aab9a57fd8f857122f587feee00a7757c">getrawtransaction</a>(<span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; params, <span class="keywordtype">bool</span> fHelp)</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;{</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keywordflow">if</span> (fHelp || params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &lt; 1 || params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &gt; 2)</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keywordflow">throw</span> runtime_error(</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="stringliteral">&quot;getrawtransaction \&quot;txid\&quot; ( verbose )\n&quot;</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="stringliteral">&quot;\nNOTE: By default this function only works sometimes. This is when the tx is in the mempool\n&quot;</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="stringliteral">&quot;or there is an unspent output in the utxo for this transaction. To make it always work,\n&quot;</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="stringliteral">&quot;you need to maintain a transaction index, using the -txindex command line option.\n&quot;</span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="stringliteral">&quot;\nReturn the raw transaction data.\n&quot;</span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="stringliteral">&quot;\nIf verbose=0, returns a string that is serialized, hex-encoded data for &#39;txid&#39;.\n&quot;</span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="stringliteral">&quot;If verbose is non-zero, returns an Object with information about &#39;txid&#39;.\n&quot;</span></div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="stringliteral">&quot;\nArguments:\n&quot;</span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="stringliteral">&quot;1. \&quot;txid\&quot; (string, required) The transaction id\n&quot;</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="stringliteral">&quot;2. verbose (numeric, optional, default=0) If 0, return a string, other return a json object\n&quot;</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="stringliteral">&quot;\nResult (if verbose is not set or set to 0):\n&quot;</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="stringliteral">&quot;\&quot;data\&quot; (string) The serialized, hex-encoded data for &#39;txid&#39;\n&quot;</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="stringliteral">&quot;\nResult (if verbose &gt; 0):\n&quot;</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="stringliteral">&quot;{\n&quot;</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="stringliteral">&quot; \&quot;hex\&quot; : \&quot;data\&quot;, (string) The serialized, hex-encoded data for &#39;txid&#39;\n&quot;</span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="stringliteral">&quot; \&quot;txid\&quot; : \&quot;id\&quot;, (string) The transaction id (same as provided)\n&quot;</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="stringliteral">&quot; \&quot;size\&quot; : n, (numeric) The transaction size\n&quot;</span></div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="stringliteral">&quot; \&quot;version\&quot; : n, (numeric) The version\n&quot;</span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="stringliteral">&quot; \&quot;locktime\&quot; : ttt, (numeric) The lock time\n&quot;</span></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="stringliteral">&quot; \&quot;vin\&quot; : [ (array of json objects)\n&quot;</span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="stringliteral">&quot; {\n&quot;</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="stringliteral">&quot; \&quot;txid\&quot;: \&quot;id\&quot;, (string) The transaction id\n&quot;</span></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="stringliteral">&quot; \&quot;vout\&quot;: n, (numeric) \n&quot;</span></div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="stringliteral">&quot; \&quot;scriptSig\&quot;: { (json object) The script\n&quot;</span></div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="stringliteral">&quot; \&quot;asm\&quot;: \&quot;asm\&quot;, (string) asm\n&quot;</span></div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="stringliteral">&quot; \&quot;hex\&quot;: \&quot;hex\&quot; (string) hex\n&quot;</span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="stringliteral">&quot; },\n&quot;</span></div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="stringliteral">&quot; \&quot;sequence\&quot;: n (numeric) The script sequence number\n&quot;</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="stringliteral">&quot; }\n&quot;</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="stringliteral">&quot; ,...\n&quot;</span></div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <span class="stringliteral">&quot; ],\n&quot;</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="stringliteral">&quot; \&quot;vout\&quot; : [ (array of json objects)\n&quot;</span></div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="stringliteral">&quot; {\n&quot;</span></div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="stringliteral">&quot; \&quot;value\&quot; : x.xxx, (numeric) The value in &quot;</span> + <a class="code" href="amount_8cpp.html#aea7f12c6759c81efa2b9c7154708a4ca">CURRENCY_UNIT</a> + <span class="stringliteral">&quot;\n&quot;</span></div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="stringliteral">&quot; \&quot;n\&quot; : n, (numeric) index\n&quot;</span></div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="stringliteral">&quot; \&quot;scriptPubKey\&quot; : { (json object)\n&quot;</span></div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <span class="stringliteral">&quot; \&quot;asm\&quot; : \&quot;asm\&quot;, (string) the asm\n&quot;</span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <span class="stringliteral">&quot; \&quot;hex\&quot; : \&quot;hex\&quot;, (string) the hex\n&quot;</span></div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="stringliteral">&quot; \&quot;reqSigs\&quot; : n, (numeric) The required sigs\n&quot;</span></div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; <span class="stringliteral">&quot; \&quot;type\&quot; : \&quot;pubkeyhash\&quot;, (string) The type, eg &#39;pubkeyhash&#39;\n&quot;</span></div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="stringliteral">&quot; \&quot;addresses\&quot; : [ (json array of string)\n&quot;</span></div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="stringliteral">&quot; \&quot;dashaddress\&quot; (string) dash address\n&quot;</span></div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <span class="stringliteral">&quot; ,...\n&quot;</span></div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <span class="stringliteral">&quot; ]\n&quot;</span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="stringliteral">&quot; }\n&quot;</span></div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; <span class="stringliteral">&quot; }\n&quot;</span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="stringliteral">&quot; ,...\n&quot;</span></div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <span class="stringliteral">&quot; ],\n&quot;</span></div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; <span class="stringliteral">&quot; \&quot;blockhash\&quot; : \&quot;hash\&quot;, (string) the block hash\n&quot;</span></div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="stringliteral">&quot; \&quot;confirmations\&quot; : n, (numeric) The confirmations\n&quot;</span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="stringliteral">&quot; \&quot;time\&quot; : ttt, (numeric) The transaction time in seconds since epoch (Jan 1 1970 GMT)\n&quot;</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <span class="stringliteral">&quot; \&quot;blocktime\&quot; : ttt (numeric) The block time in seconds since epoch (Jan 1 1970 GMT)\n&quot;</span></div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <span class="stringliteral">&quot;}\n&quot;</span></div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <span class="stringliteral">&quot;\nExamples:\n&quot;</span></div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;getrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;mytxid\&quot;&quot;</span>)</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;getrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;mytxid\&quot; 1&quot;</span>)</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; + <a class="code" href="server_8cpp.html#a9ef4f8fb114508ceb861a0e8c3e0d26e">HelpExampleRpc</a>(<span class="stringliteral">&quot;getrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;mytxid\&quot;, 1&quot;</span>)</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; );</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <a class="code" href="sync_8h.html#a911fe23f057c2fe5aad629162d6c99d0">LOCK</a>(<a class="code" href="validation_8cpp.html#a1ed8285f0fe3c6799c53265ce72552c8">cs_main</a>);</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <a class="code" href="classuint256.html">uint256</a> hash = <a class="code" href="server_8cpp.html#a3b599dde3c08498ac796a4ad8109c1d5">ParseHashV</a>(params[0], <span class="stringliteral">&quot;parameter 1&quot;</span>);</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160;</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; <span class="keywordtype">bool</span> fVerbose = <span class="keyword">false</span>;</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; <span class="keywordflow">if</span> (params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &gt; 1)</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; fVerbose = (params[1].get_int() != 0);</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; <a class="code" href="classCTransaction.html">CTransaction</a> tx;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <a class="code" href="classuint256.html">uint256</a> hashBlock;</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="validation_8cpp.html#aab60350f365d7f6937de1f8c87fa04e3">GetTransaction</a>(hash, tx, <a class="code" href="chainparams_8cpp.html#ace5c5b706d71a324a417dd2db394fd4a">Params</a>().GetConsensus(), hashBlock, <span class="keyword">true</span>))</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadafb8d27e000f4a668b66974c73256a576">RPC_INVALID_ADDRESS_OR_KEY</a>, <span class="stringliteral">&quot;No information available about transaction&quot;</span>);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="keywordtype">string</span> strHex = <a class="code" href="core__io_8h.html#a143951d3e5f8c1f57c9825187c426270">EncodeHexTx</a>(tx);</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; <span class="keywordflow">if</span> (!fVerbose)</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; <span class="keywordflow">return</span> strHex;</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> <a class="code" href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">result</a>(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a4d17ac56db012de25e26ac62daf3f475">UniValue::VOBJ</a>);</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <a class="code" href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">result</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;hex&quot;</span>, strHex));</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <a class="code" href="rawtransaction_8cpp.html#a719639f5d779706aae5c283784b3fd66">TxToJSON</a>(tx, hashBlock, <a class="code" href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">result</a>);</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">result</a>;</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160;}</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160;</div><div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="server_8h.html#acf5847645cf9f53013246c5197529fb3"> 235</a></span>&#160;<a class="code" href="classUniValue.html">UniValue</a> <a class="code" href="rawtransaction_8cpp.html#acf5847645cf9f53013246c5197529fb3">gettxoutproof</a>(<span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; params, <span class="keywordtype">bool</span> fHelp)</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160;{</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; <span class="keywordflow">if</span> (fHelp || (params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() != 1 &amp;&amp; params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() != 2))</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; <span class="keywordflow">throw</span> runtime_error(</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; <span class="stringliteral">&quot;gettxoutproof [\&quot;txid\&quot;,...] ( blockhash )\n&quot;</span></div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <span class="stringliteral">&quot;\nReturns a hex-encoded proof that \&quot;txid\&quot; was included in a block.\n&quot;</span></div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; <span class="stringliteral">&quot;\nNOTE: By default this function only works sometimes. This is when there is an\n&quot;</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; <span class="stringliteral">&quot;unspent output in the utxo for this transaction. To make it always work,\n&quot;</span></div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; <span class="stringliteral">&quot;you need to maintain a transaction index, using the -txindex command line option or\n&quot;</span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; <span class="stringliteral">&quot;specify the block in which the transaction is included in manually (by blockhash).\n&quot;</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <span class="stringliteral">&quot;\nReturn the raw transaction data.\n&quot;</span></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; <span class="stringliteral">&quot;\nArguments:\n&quot;</span></div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; <span class="stringliteral">&quot;1. \&quot;txids\&quot; (string) A json array of txids to filter\n&quot;</span></div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; <span class="stringliteral">&quot; [\n&quot;</span></div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <span class="stringliteral">&quot; \&quot;txid\&quot; (string) A transaction hash\n&quot;</span></div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; <span class="stringliteral">&quot; ,...\n&quot;</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; <span class="stringliteral">&quot; ]\n&quot;</span></div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; <span class="stringliteral">&quot;2. \&quot;block hash\&quot; (string, optional) If specified, looks for txid in the block with this hash\n&quot;</span></div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; <span class="stringliteral">&quot;\nResult:\n&quot;</span></div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; <span class="stringliteral">&quot;\&quot;data\&quot; (string) A string that is a serialized, hex-encoded data for the proof.\n&quot;</span></div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; <span class="stringliteral">&quot;\nExamples:\n&quot;</span></div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;gettxoutproof&quot;</span>, <span class="stringliteral">&quot;&#39;[\&quot;mytxid\&quot;,...]&#39;&quot;</span>)</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;gettxoutproof&quot;</span>, <span class="stringliteral">&quot;&#39;[\&quot;mytxid\&quot;,...]&#39; \&quot;blockhash\&quot;&quot;</span>)</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; + <a class="code" href="server_8cpp.html#a9ef4f8fb114508ceb861a0e8c3e0d26e">HelpExampleRpc</a>(<span class="stringliteral">&quot;gettxoutproof&quot;</span>, <span class="stringliteral">&quot;[\&quot;mytxid\&quot;,...], \&quot;blockhash\&quot;&quot;</span>)</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; );</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; set&lt;uint256&gt; setTxids;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; <a class="code" href="classuint256.html">uint256</a> oneTxid;</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> txids = params[0].<a class="code" href="classUniValue.html#aa9751b5797cb84d15b9fe4ca217f0b63">get_array</a>();</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> idx = 0; idx &lt; txids.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>(); idx++) {</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; <span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; txid = txids[idx];</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; <span class="keywordflow">if</span> (txid.<a class="code" href="classUniValue.html#ab3730236f6f0ecccda0bd4f095b08258">get_str</a>().length() != 64 || !<a class="code" href="utilstrencodings_8cpp.html#aa4e3553d2b2fe693c106f4296685f75c">IsHex</a>(txid.<a class="code" href="classUniValue.html#ab3730236f6f0ecccda0bd4f095b08258">get_str</a>()))</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadab38a9a653209a57acfc9a551c310e4dc">RPC_INVALID_PARAMETER</a>, <span class="keywordtype">string</span>(<span class="stringliteral">&quot;Invalid txid &quot;</span>)+txid.<a class="code" href="classUniValue.html#ab3730236f6f0ecccda0bd4f095b08258">get_str</a>());</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; <a class="code" href="classuint256.html">uint256</a> hash(<a class="code" href="uint256_8h.html#a52e679560cc1ebf68f878ed69e38f259">uint256S</a>(txid.<a class="code" href="classUniValue.html#ab3730236f6f0ecccda0bd4f095b08258">get_str</a>()));</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; <span class="keywordflow">if</span> (setTxids.count(hash))</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadab38a9a653209a57acfc9a551c310e4dc">RPC_INVALID_PARAMETER</a>, <span class="keywordtype">string</span>(<span class="stringliteral">&quot;Invalid parameter, duplicated txid: &quot;</span>)+txid.<a class="code" href="classUniValue.html#ab3730236f6f0ecccda0bd4f095b08258">get_str</a>());</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; setTxids.insert(hash);</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; oneTxid = hash;</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; }</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160;</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; <a class="code" href="sync_8h.html#a911fe23f057c2fe5aad629162d6c99d0">LOCK</a>(<a class="code" href="validation_8cpp.html#a1ed8285f0fe3c6799c53265ce72552c8">cs_main</a>);</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160;</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; <a class="code" href="classCBlockIndex.html">CBlockIndex</a>* pblockindex = NULL;</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; <a class="code" href="classuint256.html">uint256</a> hashBlock;</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; <span class="keywordflow">if</span> (params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &gt; 1)</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; {</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; hashBlock = <a class="code" href="uint256_8h.html#a52e679560cc1ebf68f878ed69e38f259">uint256S</a>(params[1].get_str());</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="validation_8cpp.html#a887b8e9f9fea0ea870c6987f1fd52eb6">mapBlockIndex</a>.count(hashBlock))</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadafb8d27e000f4a668b66974c73256a576">RPC_INVALID_ADDRESS_OR_KEY</a>, <span class="stringliteral">&quot;Block not found&quot;</span>);</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; pblockindex = <a class="code" href="validation_8cpp.html#a887b8e9f9fea0ea870c6987f1fd52eb6">mapBlockIndex</a>[hashBlock];</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; <a class="code" href="classCCoins.html">CCoins</a> coins;</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="validation_8cpp.html#a1821834b8f7837b469f7f91a14c20042">pcoinsTip</a>-&gt;<a class="code" href="classCCoinsViewCache.html#a1b62444593fdb580bfa4bd6fab41fafa">GetCoins</a>(oneTxid, coins) &amp;&amp; coins.<a class="code" href="classCCoins.html#af7396dfad71367de46f21cf92e2c70ab">nHeight</a> &gt; 0 &amp;&amp; coins.<a class="code" href="classCCoins.html#af7396dfad71367de46f21cf92e2c70ab">nHeight</a> &lt;= <a class="code" href="validation_8cpp.html#adb31995c443ae2aef1d2f1c350de0419">chainActive</a>.<a class="code" href="classCChain.html#ad4758bc8872ce065a9579f77c3171d40">Height</a>())</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; pblockindex = <a class="code" href="validation_8cpp.html#adb31995c443ae2aef1d2f1c350de0419">chainActive</a>[coins.<a class="code" href="classCCoins.html#af7396dfad71367de46f21cf92e2c70ab">nHeight</a>];</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; }</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160;</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; <span class="keywordflow">if</span> (pblockindex == NULL)</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160; {</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; <a class="code" href="classCTransaction.html">CTransaction</a> tx;</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="validation_8cpp.html#aab60350f365d7f6937de1f8c87fa04e3">GetTransaction</a>(oneTxid, tx, <a class="code" href="chainparams_8cpp.html#ace5c5b706d71a324a417dd2db394fd4a">Params</a>().GetConsensus(), hashBlock, <span class="keyword">false</span>) || hashBlock.<a class="code" href="classbase__blob.html#aba89c6722866a5850882a509d27d7bbd">IsNull</a>())</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadafb8d27e000f4a668b66974c73256a576">RPC_INVALID_ADDRESS_OR_KEY</a>, <span class="stringliteral">&quot;Transaction not yet in block&quot;</span>);</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="validation_8cpp.html#a887b8e9f9fea0ea870c6987f1fd52eb6">mapBlockIndex</a>.count(hashBlock))</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadad4f5ea69465f2a32fda9b9bf5e698803">RPC_INTERNAL_ERROR</a>, <span class="stringliteral">&quot;Transaction index corrupt&quot;</span>);</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; pblockindex = <a class="code" href="validation_8cpp.html#a887b8e9f9fea0ea870c6987f1fd52eb6">mapBlockIndex</a>[hashBlock];</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; }</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160;</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; <a class="code" href="classCBlock.html">CBlock</a> block;</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; <span class="keywordflow">if</span>(!<a class="code" href="validation_8cpp.html#a578c1df234b05798180f0235d469a5ba">ReadBlockFromDisk</a>(block, pblockindex, <a class="code" href="chainparams_8cpp.html#ace5c5b706d71a324a417dd2db394fd4a">Params</a>().GetConsensus()))</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadad4f5ea69465f2a32fda9b9bf5e698803">RPC_INTERNAL_ERROR</a>, <span class="stringliteral">&quot;Can&#39;t read block from disk&quot;</span>);</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160;</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ntxFound = 0;</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; BOOST_FOREACH(<span class="keyword">const</span> <a class="code" href="classCTransaction.html">CTransaction</a>&amp;tx, block.<a class="code" href="classCBlock.html#a9b6508d662722775f3029b980b382b66">vtx</a>)</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; <span class="keywordflow">if</span> (setTxids.count(tx.<a class="code" href="classCTransaction.html#a7efd1379de830341417c0bfa23a149aa">GetHash</a>()))</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160; ntxFound++;</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160; <span class="keywordflow">if</span> (ntxFound != setTxids.size())</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadafb8d27e000f4a668b66974c73256a576">RPC_INVALID_ADDRESS_OR_KEY</a>, <span class="stringliteral">&quot;(Not all) transactions not found in specified block&quot;</span>);</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160;</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160; <a class="code" href="classCDataStream.html">CDataStream</a> ssMB(<a class="code" href="serialize_8h.html#ae4d5251432e1a9e6803c0240cc492e18a652754eeaf79fba4fcf4c18597a6961c">SER_NETWORK</a>, <a class="code" href="version_8h.html#a4e2497f7c9c4319adcaf945159ec63f4">PROTOCOL_VERSION</a>);</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; <a class="code" href="classCMerkleBlock.html">CMerkleBlock</a> mb(block, setTxids);</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; ssMB &lt;&lt; mb;</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; std::string strHex = <a class="code" href="utilstrencodings_8h.html#ace13a819ca4e98c22847d26b3b357e75">HexStr</a>(ssMB.<a class="code" href="classCDataStream.html#a2355d11752d8622badfbc03e9ed192fd">begin</a>(), ssMB.<a class="code" href="classCDataStream.html#a66409dbd4403682fe674e2e71173cab4">end</a>());</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; <span class="keywordflow">return</span> strHex;</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160;}</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160;</div><div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="server_8h.html#a38afe96202ced8cad211cb38da48c1ed"> 321</a></span>&#160;<a class="code" href="classUniValue.html">UniValue</a> <a class="code" href="rawtransaction_8cpp.html#a38afe96202ced8cad211cb38da48c1ed">verifytxoutproof</a>(<span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; params, <span class="keywordtype">bool</span> fHelp)</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160;{</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160; <span class="keywordflow">if</span> (fHelp || params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() != 1)</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160; <span class="keywordflow">throw</span> runtime_error(</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160; <span class="stringliteral">&quot;verifytxoutproof \&quot;proof\&quot;\n&quot;</span></div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; <span class="stringliteral">&quot;\nVerifies that a proof points to a transaction in a block, returning the transaction it commits to\n&quot;</span></div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; <span class="stringliteral">&quot;and throwing an RPC error if the block is not in our best chain\n&quot;</span></div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160; <span class="stringliteral">&quot;\nArguments:\n&quot;</span></div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; <span class="stringliteral">&quot;1. \&quot;proof\&quot; (string, required) The hex-encoded proof generated by gettxoutproof\n&quot;</span></div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; <span class="stringliteral">&quot;\nResult:\n&quot;</span></div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; <span class="stringliteral">&quot;[\&quot;txid\&quot;] (array, strings) The txid(s) which the proof commits to, or empty array if the proof is invalid\n&quot;</span></div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160;</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; <span class="stringliteral">&quot;\nExamples:\n&quot;</span></div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;verifytxoutproof&quot;</span>, <span class="stringliteral">&quot;\&quot;proof\&quot;&quot;</span>)</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; + <a class="code" href="server_8cpp.html#a9ef4f8fb114508ceb861a0e8c3e0d26e">HelpExampleRpc</a>(<span class="stringliteral">&quot;gettxoutproof&quot;</span>, <span class="stringliteral">&quot;\&quot;proof\&quot;&quot;</span>)</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; );</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160;</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; <a class="code" href="classCDataStream.html">CDataStream</a> ssMB(<a class="code" href="server_8cpp.html#aefdb776333651cddcd73ad7a58d36c8e">ParseHexV</a>(params[0], <span class="stringliteral">&quot;proof&quot;</span>), <a class="code" href="serialize_8h.html#ae4d5251432e1a9e6803c0240cc492e18a652754eeaf79fba4fcf4c18597a6961c">SER_NETWORK</a>, <a class="code" href="version_8h.html#a4e2497f7c9c4319adcaf945159ec63f4">PROTOCOL_VERSION</a>);</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160; <a class="code" href="classCMerkleBlock.html">CMerkleBlock</a> merkleBlock;</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160; ssMB &gt;&gt; merkleBlock;</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160;</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> res(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aa95a3bc9bbb82964abef922146cc73c4">UniValue::VARR</a>);</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160;</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; vector&lt;uint256&gt; vMatch;</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; <span class="keywordflow">if</span> (merkleBlock.txn.ExtractMatches(vMatch) != merkleBlock.header.hashMerkleRoot)</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160; <span class="keywordflow">return</span> res;</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160;</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160; <a class="code" href="sync_8h.html#a911fe23f057c2fe5aad629162d6c99d0">LOCK</a>(<a class="code" href="validation_8cpp.html#a1ed8285f0fe3c6799c53265ce72552c8">cs_main</a>);</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160;</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="validation_8cpp.html#a887b8e9f9fea0ea870c6987f1fd52eb6">mapBlockIndex</a>.count(merkleBlock.header.GetHash()) || !<a class="code" href="validation_8cpp.html#adb31995c443ae2aef1d2f1c350de0419">chainActive</a>.<a class="code" href="classCChain.html#af1786dc229c215dea7f727c11df2c8dc">Contains</a>(<a class="code" href="validation_8cpp.html#a887b8e9f9fea0ea870c6987f1fd52eb6">mapBlockIndex</a>[merkleBlock.header.GetHash()]))</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadafb8d27e000f4a668b66974c73256a576">RPC_INVALID_ADDRESS_OR_KEY</a>, <span class="stringliteral">&quot;Block not found in chain&quot;</span>);</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160;</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; BOOST_FOREACH(<span class="keyword">const</span> <a class="code" href="classuint256.html">uint256</a>&amp; hash, vMatch)</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; res.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(hash.<a class="code" href="classbase__blob.html#ad7263503f949fb3c6c520ebb1f28e378">GetHex</a>());</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160; <span class="keywordflow">return</span> res;</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160;}</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160;</div><div class="line"><a name="l00358"></a><span class="lineno"><a class="line" href="server_8h.html#a4724b5b7ead10882a61f7c8830016e75"> 358</a></span>&#160;<a class="code" href="classUniValue.html">UniValue</a> <a class="code" href="rawtransaction_8cpp.html#a4724b5b7ead10882a61f7c8830016e75">createrawtransaction</a>(<span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; params, <span class="keywordtype">bool</span> fHelp)</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160;{</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160; <span class="keywordflow">if</span> (fHelp || params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &lt; 2 || params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &gt; 3)</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160; <span class="keywordflow">throw</span> runtime_error(</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160; <span class="stringliteral">&quot;createrawtransaction [{\&quot;txid\&quot;:\&quot;id\&quot;,\&quot;vout\&quot;:n},...] {\&quot;address\&quot;:amount,\&quot;data\&quot;:\&quot;hex\&quot;,...} ( locktime )\n&quot;</span></div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160; <span class="stringliteral">&quot;\nCreate a transaction spending the given inputs and creating new outputs.\n&quot;</span></div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160; <span class="stringliteral">&quot;Outputs can be addresses or data.\n&quot;</span></div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160; <span class="stringliteral">&quot;Returns hex-encoded raw transaction.\n&quot;</span></div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160; <span class="stringliteral">&quot;Note that the transaction&#39;s inputs are not signed, and\n&quot;</span></div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>&#160; <span class="stringliteral">&quot;it is not stored in the wallet or transmitted to the network.\n&quot;</span></div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160;</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; <span class="stringliteral">&quot;\nArguments:\n&quot;</span></div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160; <span class="stringliteral">&quot;1. \&quot;transactions\&quot; (string, required) A json array of json objects\n&quot;</span></div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; <span class="stringliteral">&quot; [\n&quot;</span></div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160; <span class="stringliteral">&quot; {\n&quot;</span></div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160; <span class="stringliteral">&quot; \&quot;txid\&quot;:\&quot;id\&quot;, (string, required) The transaction id\n&quot;</span></div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; <span class="stringliteral">&quot; \&quot;vout\&quot;:n (numeric, required) The output number\n&quot;</span></div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160; <span class="stringliteral">&quot; }\n&quot;</span></div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160; <span class="stringliteral">&quot; ,...\n&quot;</span></div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160; <span class="stringliteral">&quot; ]\n&quot;</span></div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160; <span class="stringliteral">&quot;2. \&quot;outputs\&quot; (string, required) a json object with outputs\n&quot;</span></div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>&#160; <span class="stringliteral">&quot; {\n&quot;</span></div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>&#160; <span class="stringliteral">&quot; \&quot;address\&quot;: x.xxx (numeric or string, required) The key is the dash address, the numeric value (can be string) is the &quot;</span> + <a class="code" href="amount_8cpp.html#aea7f12c6759c81efa2b9c7154708a4ca">CURRENCY_UNIT</a> + <span class="stringliteral">&quot; amount\n&quot;</span></div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; <span class="stringliteral">&quot; \&quot;data\&quot;: \&quot;hex\&quot;, (string, required) The key is \&quot;data\&quot;, the value is hex encoded data\n&quot;</span></div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160; <span class="stringliteral">&quot; ...\n&quot;</span></div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>&#160; <span class="stringliteral">&quot; }\n&quot;</span></div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>&#160; <span class="stringliteral">&quot;3. locktime (numeric, optional, default=0) Raw locktime. Non-0 value also locktime-activates inputs\n&quot;</span></div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160; <span class="stringliteral">&quot;\nResult:\n&quot;</span></div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160; <span class="stringliteral">&quot;\&quot;transaction\&quot; (string) hex string of the transaction\n&quot;</span></div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160;</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160; <span class="stringliteral">&quot;\nExamples\n&quot;</span></div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;createrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;[{\\\&quot;txid\\\&quot;:\\\&quot;myid\\\&quot;,\\\&quot;vout\\\&quot;:0}]\&quot; \&quot;{\\\&quot;address\\\&quot;:0.01}\&quot;&quot;</span>)</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;createrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;[{\\\&quot;txid\\\&quot;:\\\&quot;myid\\\&quot;,\\\&quot;vout\\\&quot;:0}]\&quot; \&quot;{\\\&quot;data\\\&quot;:\\\&quot;00010203\\\&quot;}\&quot;&quot;</span>)</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160; + <a class="code" href="server_8cpp.html#a9ef4f8fb114508ceb861a0e8c3e0d26e">HelpExampleRpc</a>(<span class="stringliteral">&quot;createrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;[{\\\&quot;txid\\\&quot;:\\\&quot;myid\\\&quot;,\\\&quot;vout\\\&quot;:0}]\&quot;, \&quot;{\\\&quot;address\\\&quot;:0.01}\&quot;&quot;</span>)</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160; + <a class="code" href="server_8cpp.html#a9ef4f8fb114508ceb861a0e8c3e0d26e">HelpExampleRpc</a>(<span class="stringliteral">&quot;createrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;[{\\\&quot;txid\\\&quot;:\\\&quot;myid\\\&quot;,\\\&quot;vout\\\&quot;:0}]\&quot;, \&quot;{\\\&quot;data\\\&quot;:\\\&quot;00010203\\\&quot;}\&quot;&quot;</span>)</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>&#160; );</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>&#160;</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160; <a class="code" href="sync_8h.html#a911fe23f057c2fe5aad629162d6c99d0">LOCK</a>(<a class="code" href="validation_8cpp.html#a1ed8285f0fe3c6799c53265ce72552c8">cs_main</a>);</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>&#160; <a class="code" href="server_8cpp.html#ac5b4e8e5154ac022c7be81730a527fd1">RPCTypeCheck</a>(params, boost::assign::list_of(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aa95a3bc9bbb82964abef922146cc73c4">UniValue::VARR</a>)(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a4d17ac56db012de25e26ac62daf3f475">UniValue::VOBJ</a>)(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aba88a44dcdb6e3be0538d14997ff042b">UniValue::VNUM</a>), <span class="keyword">true</span>);</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>&#160; <span class="keywordflow">if</span> (params[0].isNull() || params[1].isNull())</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadab38a9a653209a57acfc9a551c310e4dc">RPC_INVALID_PARAMETER</a>, <span class="stringliteral">&quot;Invalid parameter, arguments 1 and 2 must be non-null&quot;</span>);</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160;</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> inputs = params[0].<a class="code" href="classUniValue.html#aa9751b5797cb84d15b9fe4ca217f0b63">get_array</a>();</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> sendTo = params[1].<a class="code" href="classUniValue.html#a49a6ac464f3c2d918e7379d3203c7337">get_obj</a>();</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160;</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160; <a class="code" href="structCMutableTransaction.html">CMutableTransaction</a> rawTx;</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>&#160;</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160; <span class="keywordflow">if</span> (params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &gt; 2 &amp;&amp; !params[2].<a class="code" href="classUniValue.html#a3661be0f5580daceb23e5338e3a0df22">isNull</a>()) {</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160; int64_t nLockTime = params[2].<a class="code" href="classUniValue.html#a34bd3bc2de335486d2060ff907b317d0">get_int64</a>();</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160; <span class="keywordflow">if</span> (nLockTime &lt; 0 || nLockTime &gt; std::numeric_limits&lt;uint32_t&gt;::max())</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadab38a9a653209a57acfc9a551c310e4dc">RPC_INVALID_PARAMETER</a>, <span class="stringliteral">&quot;Invalid parameter, locktime out of range&quot;</span>);</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160; rawTx.<a class="code" href="structCMutableTransaction.html#ae9685a37d424cd00e3badda28260c848">nLockTime</a> = nLockTime;</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160; }</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>&#160;</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> idx = 0; idx &lt; inputs.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>(); idx++) {</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160; <span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; input = inputs[idx];</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160; <span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; o = input.<a class="code" href="classUniValue.html#a49a6ac464f3c2d918e7379d3203c7337">get_obj</a>();</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>&#160;</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>&#160; <a class="code" href="classuint256.html">uint256</a> txid = <a class="code" href="server_8cpp.html#a4127509230eb67be5d765b4a95ddf392">ParseHashO</a>(o, <span class="stringliteral">&quot;txid&quot;</span>);</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160;</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160; <span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; vout_v = <a class="code" href="univalue_8h.html#a33625d562f1ef5f44ceb171d5c8f2a85">find_value</a>(o, <span class="stringliteral">&quot;vout&quot;</span>);</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160; <span class="keywordflow">if</span> (!vout_v.<a class="code" href="classUniValue.html#ac5271a9bb4ece86f00052bb5603eaa78">isNum</a>())</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadab38a9a653209a57acfc9a551c310e4dc">RPC_INVALID_PARAMETER</a>, <span class="stringliteral">&quot;Invalid parameter, missing vout key&quot;</span>);</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160; <span class="keywordtype">int</span> nOutput = vout_v.<a class="code" href="classUniValue.html#af45edc6e67eaa6d1f271ce18e435a376">get_int</a>();</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>&#160; <span class="keywordflow">if</span> (nOutput &lt; 0)</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadab38a9a653209a57acfc9a551c310e4dc">RPC_INVALID_PARAMETER</a>, <span class="stringliteral">&quot;Invalid parameter, vout must be positive&quot;</span>);</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>&#160;</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>&#160; uint32_t nSequence = (rawTx.<a class="code" href="structCMutableTransaction.html#ae9685a37d424cd00e3badda28260c848">nLockTime</a> ? std::numeric_limits&lt;uint32_t&gt;::max() - 1 : std::numeric_limits&lt;uint32_t&gt;::max());</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>&#160; <a class="code" href="classCTxIn.html">CTxIn</a> in(<a class="code" href="classCOutPoint.html">COutPoint</a>(txid, nOutput), <a class="code" href="classCScript.html">CScript</a>(), nSequence);</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>&#160;</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>&#160; rawTx.<a class="code" href="structCMutableTransaction.html#ad6b1a0a773293fd153a1d384923631da">vin</a>.push_back(in);</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>&#160; }</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>&#160;</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>&#160; set&lt;CBitcoinAddress&gt; setAddress;</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>&#160; vector&lt;string&gt; addrList = sendTo.<a class="code" href="classUniValue.html#a6832baa1a837e46e9800e6125e5f8d26">getKeys</a>();</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>&#160; BOOST_FOREACH(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; name_, addrList) {</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>&#160;</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>&#160; <span class="keywordflow">if</span> (name_ == <span class="stringliteral">&quot;data&quot;</span>) {</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>&#160; std::vector&lt;unsigned char&gt; <a class="code" href="namespacegen__base58__test__vectors.html#a8d12b07536a476098e3d74b6a79dfc9a">data</a> = <a class="code" href="server_8cpp.html#aefdb776333651cddcd73ad7a58d36c8e">ParseHexV</a>(sendTo[name_].getValStr(),<span class="stringliteral">&quot;Data&quot;</span>);</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>&#160;</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>&#160; <a class="code" href="classCTxOut.html">CTxOut</a> <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>(0, <a class="code" href="classCScript.html">CScript</a>() &lt;&lt; <a class="code" href="script_8h.html#a63e349a6089a54da9fe09a3d858648bdad436c18b194473f5ec64c28b774e41b3">OP_RETURN</a> &lt;&lt; <a class="code" href="namespacegen__base58__test__vectors.html#a8d12b07536a476098e3d74b6a79dfc9a">data</a>);</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>&#160; rawTx.<a class="code" href="structCMutableTransaction.html#aca14a252c78e4af2dfe68d7ea67a77dc">vout</a>.push_back(<a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>);</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>&#160; } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>&#160; <a class="code" href="classCBitcoinAddress.html">CBitcoinAddress</a> address(name_);</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>&#160; <span class="keywordflow">if</span> (!address.<a class="code" href="classCBitcoinAddress.html#ab39907ce6895062a8f8bf585270ef13b">IsValid</a>())</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadafb8d27e000f4a668b66974c73256a576">RPC_INVALID_ADDRESS_OR_KEY</a>, <span class="keywordtype">string</span>(<span class="stringliteral">&quot;Invalid Dash address: &quot;</span>)+name_);</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>&#160;</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>&#160; <span class="keywordflow">if</span> (setAddress.count(address))</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadab38a9a653209a57acfc9a551c310e4dc">RPC_INVALID_PARAMETER</a>, <span class="keywordtype">string</span>(<span class="stringliteral">&quot;Invalid parameter, duplicated address: &quot;</span>)+name_);</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>&#160; setAddress.insert(address);</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>&#160;</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>&#160; <a class="code" href="classCScript.html">CScript</a> scriptPubKey = <a class="code" href="standard_8cpp.html#ae40f28d3b46c21033f6ee1f1200d0321">GetScriptForDestination</a>(address.<a class="code" href="classCBitcoinAddress.html#a1e44de10dfc84d1fd2e15150f1e22b8e">Get</a>());</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>&#160; <a class="code" href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a> nAmount = <a class="code" href="server_8cpp.html#abee2131e97f3e3d0ab3bdc47916e29f4">AmountFromValue</a>(sendTo[name_]);</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>&#160;</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>&#160; <a class="code" href="classCTxOut.html">CTxOut</a> <a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>(nAmount, scriptPubKey);</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>&#160; rawTx.<a class="code" href="structCMutableTransaction.html#aca14a252c78e4af2dfe68d7ea67a77dc">vout</a>.push_back(<a class="code" href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">out</a>);</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>&#160; }</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>&#160; }</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160;</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160; <span class="keywordflow">return</span> <a class="code" href="core__io_8h.html#a143951d3e5f8c1f57c9825187c426270">EncodeHexTx</a>(rawTx);</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>&#160;}</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160;</div><div class="line"><a name="l00460"></a><span class="lineno"><a class="line" href="server_8h.html#abd3d6aa800b863a2e503ef322d680d9b"> 460</a></span>&#160;<a class="code" href="classUniValue.html">UniValue</a> <a class="code" href="rawtransaction_8cpp.html#abd3d6aa800b863a2e503ef322d680d9b">decoderawtransaction</a>(<span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; params, <span class="keywordtype">bool</span> fHelp)</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>&#160;{</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>&#160; <span class="keywordflow">if</span> (fHelp || params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() != 1)</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>&#160; <span class="keywordflow">throw</span> runtime_error(</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>&#160; <span class="stringliteral">&quot;decoderawtransaction \&quot;hexstring\&quot;\n&quot;</span></div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>&#160; <span class="stringliteral">&quot;\nReturn a JSON object representing the serialized, hex-encoded transaction.\n&quot;</span></div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>&#160;</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>&#160; <span class="stringliteral">&quot;\nArguments:\n&quot;</span></div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>&#160; <span class="stringliteral">&quot;1. \&quot;hex\&quot; (string, required) The transaction hex string\n&quot;</span></div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>&#160;</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>&#160; <span class="stringliteral">&quot;\nResult:\n&quot;</span></div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>&#160; <span class="stringliteral">&quot;{\n&quot;</span></div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>&#160; <span class="stringliteral">&quot; \&quot;txid\&quot; : \&quot;id\&quot;, (string) The transaction id\n&quot;</span></div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>&#160; <span class="stringliteral">&quot; \&quot;size\&quot; : n, (numeric) The transaction size\n&quot;</span></div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>&#160; <span class="stringliteral">&quot; \&quot;version\&quot; : n, (numeric) The version\n&quot;</span></div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>&#160; <span class="stringliteral">&quot; \&quot;locktime\&quot; : ttt, (numeric) The lock time\n&quot;</span></div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>&#160; <span class="stringliteral">&quot; \&quot;vin\&quot; : [ (array of json objects)\n&quot;</span></div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>&#160; <span class="stringliteral">&quot; {\n&quot;</span></div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>&#160; <span class="stringliteral">&quot; \&quot;txid\&quot;: \&quot;id\&quot;, (string) The transaction id\n&quot;</span></div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>&#160; <span class="stringliteral">&quot; \&quot;vout\&quot;: n, (numeric) The output number\n&quot;</span></div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>&#160; <span class="stringliteral">&quot; \&quot;scriptSig\&quot;: { (json object) The script\n&quot;</span></div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>&#160; <span class="stringliteral">&quot; \&quot;asm\&quot;: \&quot;asm\&quot;, (string) asm\n&quot;</span></div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>&#160; <span class="stringliteral">&quot; \&quot;hex\&quot;: \&quot;hex\&quot; (string) hex\n&quot;</span></div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>&#160; <span class="stringliteral">&quot; },\n&quot;</span></div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>&#160; <span class="stringliteral">&quot; \&quot;sequence\&quot;: n (numeric) The script sequence number\n&quot;</span></div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>&#160; <span class="stringliteral">&quot; }\n&quot;</span></div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>&#160; <span class="stringliteral">&quot; ,...\n&quot;</span></div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>&#160; <span class="stringliteral">&quot; ],\n&quot;</span></div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>&#160; <span class="stringliteral">&quot; \&quot;vout\&quot; : [ (array of json objects)\n&quot;</span></div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>&#160; <span class="stringliteral">&quot; {\n&quot;</span></div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>&#160; <span class="stringliteral">&quot; \&quot;value\&quot; : x.xxx, (numeric) The value in &quot;</span> + <a class="code" href="amount_8cpp.html#aea7f12c6759c81efa2b9c7154708a4ca">CURRENCY_UNIT</a> + <span class="stringliteral">&quot;\n&quot;</span></div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>&#160; <span class="stringliteral">&quot; \&quot;n\&quot; : n, (numeric) index\n&quot;</span></div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>&#160; <span class="stringliteral">&quot; \&quot;scriptPubKey\&quot; : { (json object)\n&quot;</span></div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>&#160; <span class="stringliteral">&quot; \&quot;asm\&quot; : \&quot;asm\&quot;, (string) the asm\n&quot;</span></div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>&#160; <span class="stringliteral">&quot; \&quot;hex\&quot; : \&quot;hex\&quot;, (string) the hex\n&quot;</span></div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>&#160; <span class="stringliteral">&quot; \&quot;reqSigs\&quot; : n, (numeric) The required sigs\n&quot;</span></div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>&#160; <span class="stringliteral">&quot; \&quot;type\&quot; : \&quot;pubkeyhash\&quot;, (string) The type, eg &#39;pubkeyhash&#39;\n&quot;</span></div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>&#160; <span class="stringliteral">&quot; \&quot;addresses\&quot; : [ (json array of string)\n&quot;</span></div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>&#160; <span class="stringliteral">&quot; \&quot;XwnLY9Tf7Zsef8gMGL2fhWA9ZmMjt4KPwg\&quot; (string) Dash address\n&quot;</span></div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>&#160; <span class="stringliteral">&quot; ,...\n&quot;</span></div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>&#160; <span class="stringliteral">&quot; ]\n&quot;</span></div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>&#160; <span class="stringliteral">&quot; }\n&quot;</span></div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>&#160; <span class="stringliteral">&quot; }\n&quot;</span></div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>&#160; <span class="stringliteral">&quot; ,...\n&quot;</span></div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>&#160; <span class="stringliteral">&quot; ],\n&quot;</span></div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>&#160; <span class="stringliteral">&quot;}\n&quot;</span></div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>&#160;</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>&#160; <span class="stringliteral">&quot;\nExamples:\n&quot;</span></div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;decoderawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;hexstring\&quot;&quot;</span>)</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>&#160; + <a class="code" href="server_8cpp.html#a9ef4f8fb114508ceb861a0e8c3e0d26e">HelpExampleRpc</a>(<span class="stringliteral">&quot;decoderawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;hexstring\&quot;&quot;</span>)</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>&#160; );</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>&#160;</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>&#160; <a class="code" href="sync_8h.html#a911fe23f057c2fe5aad629162d6c99d0">LOCK</a>(<a class="code" href="validation_8cpp.html#a1ed8285f0fe3c6799c53265ce72552c8">cs_main</a>);</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>&#160; <a class="code" href="server_8cpp.html#ac5b4e8e5154ac022c7be81730a527fd1">RPCTypeCheck</a>(params, boost::assign::list_of(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a7afa7b747615105024aab97ff5bf4d11">UniValue::VSTR</a>));</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>&#160;</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>&#160; <a class="code" href="classCTransaction.html">CTransaction</a> tx;</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>&#160;</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="core__io_8h.html#adf3a8ae53f4e0af5832ce21fc581db0e">DecodeHexTx</a>(tx, params[0].get_str()))</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadae41723a0e8091c7853a1e582e317b272">RPC_DESERIALIZATION_ERROR</a>, <span class="stringliteral">&quot;TX decode failed&quot;</span>);</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>&#160;</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> <a class="code" href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">result</a>(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a4d17ac56db012de25e26ac62daf3f475">UniValue::VOBJ</a>);</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>&#160; <a class="code" href="rawtransaction_8cpp.html#a719639f5d779706aae5c283784b3fd66">TxToJSON</a>(tx, <a class="code" href="classuint256.html">uint256</a>(), <a class="code" href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">result</a>);</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>&#160;</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">result</a>;</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>&#160;}</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>&#160;</div><div class="line"><a name="l00526"></a><span class="lineno"><a class="line" href="server_8h.html#ae1b1b5063ba94024c0af38e72de0d726"> 526</a></span>&#160;<a class="code" href="classUniValue.html">UniValue</a> <a class="code" href="rawtransaction_8cpp.html#ae1b1b5063ba94024c0af38e72de0d726">decodescript</a>(<span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; params, <span class="keywordtype">bool</span> fHelp)</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>&#160;{</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>&#160; <span class="keywordflow">if</span> (fHelp || params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() != 1)</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>&#160; <span class="keywordflow">throw</span> runtime_error(</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>&#160; <span class="stringliteral">&quot;decodescript \&quot;hex\&quot;\n&quot;</span></div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>&#160; <span class="stringliteral">&quot;\nDecode a hex-encoded script.\n&quot;</span></div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>&#160; <span class="stringliteral">&quot;\nArguments:\n&quot;</span></div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>&#160; <span class="stringliteral">&quot;1. \&quot;hex\&quot; (string) the hex encoded script\n&quot;</span></div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>&#160; <span class="stringliteral">&quot;\nResult:\n&quot;</span></div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>&#160; <span class="stringliteral">&quot;{\n&quot;</span></div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>&#160; <span class="stringliteral">&quot; \&quot;asm\&quot;:\&quot;asm\&quot;, (string) Script public key\n&quot;</span></div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>&#160; <span class="stringliteral">&quot; \&quot;hex\&quot;:\&quot;hex\&quot;, (string) hex encoded public key\n&quot;</span></div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>&#160; <span class="stringliteral">&quot; \&quot;type\&quot;:\&quot;type\&quot;, (string) The output type\n&quot;</span></div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>&#160; <span class="stringliteral">&quot; \&quot;reqSigs\&quot;: n, (numeric) The required signatures\n&quot;</span></div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>&#160; <span class="stringliteral">&quot; \&quot;addresses\&quot;: [ (json array of string)\n&quot;</span></div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>&#160; <span class="stringliteral">&quot; \&quot;address\&quot; (string) dash address\n&quot;</span></div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>&#160; <span class="stringliteral">&quot; ,...\n&quot;</span></div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>&#160; <span class="stringliteral">&quot; ],\n&quot;</span></div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>&#160; <span class="stringliteral">&quot; \&quot;p2sh\&quot;,\&quot;address\&quot; (string) address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH).\n&quot;</span></div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>&#160; <span class="stringliteral">&quot;}\n&quot;</span></div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>&#160; <span class="stringliteral">&quot;\nExamples:\n&quot;</span></div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;decodescript&quot;</span>, <span class="stringliteral">&quot;\&quot;hexstring\&quot;&quot;</span>)</div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>&#160; + <a class="code" href="server_8cpp.html#a9ef4f8fb114508ceb861a0e8c3e0d26e">HelpExampleRpc</a>(<span class="stringliteral">&quot;decodescript&quot;</span>, <span class="stringliteral">&quot;\&quot;hexstring\&quot;&quot;</span>)</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>&#160; );</div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>&#160;</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>&#160; <a class="code" href="server_8cpp.html#ac5b4e8e5154ac022c7be81730a527fd1">RPCTypeCheck</a>(params, boost::assign::list_of(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a7afa7b747615105024aab97ff5bf4d11">UniValue::VSTR</a>));</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>&#160;</div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> r(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a4d17ac56db012de25e26ac62daf3f475">UniValue::VOBJ</a>);</div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>&#160; <a class="code" href="classCScript.html">CScript</a> script;</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>&#160; <span class="keywordflow">if</span> (params[0].get_str().size() &gt; 0){</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span>&#160; vector&lt;unsigned char&gt; scriptData(<a class="code" href="server_8cpp.html#aefdb776333651cddcd73ad7a58d36c8e">ParseHexV</a>(params[0], <span class="stringliteral">&quot;argument&quot;</span>));</div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>&#160; script = <a class="code" href="classCScript.html">CScript</a>(scriptData.begin(), scriptData.end());</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>&#160; } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span>&#160; <span class="comment">// Empty scripts are valid</span></div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>&#160; }</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>&#160; <a class="code" href="rawtransaction_8cpp.html#a6e621b4ad486c6d716873ee3f16919ad">ScriptPubKeyToJSON</a>(script, r, <span class="keyword">false</span>);</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>&#160;</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> type;</div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span>&#160;</div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>&#160; type = <a class="code" href="univalue_8h.html#a33625d562f1ef5f44ceb171d5c8f2a85">find_value</a>(r, <span class="stringliteral">&quot;type&quot;</span>);</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>&#160;</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>&#160; <span class="keywordflow">if</span> (type.<a class="code" href="classUniValue.html#a8abe13a4663ccfda54ae2440ed445c5a">isStr</a>() &amp;&amp; type.<a class="code" href="classUniValue.html#ab3730236f6f0ecccda0bd4f095b08258">get_str</a>() != <span class="stringliteral">&quot;scripthash&quot;</span>) {</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>&#160; <span class="comment">// P2SH cannot be wrapped in a P2SH. If this script is already a P2SH,</span></div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>&#160; <span class="comment">// don&#39;t return the address for a P2SH of the P2SH.</span></div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>&#160; r.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;p2sh&quot;</span>, <a class="code" href="classCBitcoinAddress.html">CBitcoinAddress</a>(<a class="code" href="classCScriptID.html">CScriptID</a>(script)).ToString()));</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>&#160; }</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>&#160;</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>&#160; <span class="keywordflow">return</span> r;</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>&#160;}</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>&#160;</div><div class="line"><a name="l00577"></a><span class="lineno"><a class="line" href="rawtransaction_8cpp.html#aa18bf1f4cd71863cd807845a220ad475"> 577</a></span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="rawtransaction_8cpp.html#aa18bf1f4cd71863cd807845a220ad475">TxInErrorToJSON</a>(<span class="keyword">const</span> <a class="code" href="classCTxIn.html">CTxIn</a>&amp; txin, <a class="code" href="classUniValue.html">UniValue</a>&amp; vErrorsRet, <span class="keyword">const</span> std::string&amp; strMessage)</div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>&#160;{</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> entry(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a4d17ac56db012de25e26ac62daf3f475">UniValue::VOBJ</a>);</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;txid&quot;</span>, txin.<a class="code" href="classCTxIn.html#aed9312051a25380cbd7f123408ab7c20">prevout</a>.<a class="code" href="classCOutPoint.html#af131c7194a660558b0ff158f4efa7a28">hash</a>.<a class="code" href="classbase__blob.html#a7a0d25782830d8b087c4da839f3ccdeb">ToString</a>()));</div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;vout&quot;</span>, (uint64_t)txin.<a class="code" href="classCTxIn.html#aed9312051a25380cbd7f123408ab7c20">prevout</a>.<a class="code" href="classCOutPoint.html#a1b857e3a0412ff741da2c9f8defe315c">n</a>));</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;scriptSig&quot;</span>, <a class="code" href="utilstrencodings_8h.html#ace13a819ca4e98c22847d26b3b357e75">HexStr</a>(txin.<a class="code" href="classCTxIn.html#aba540fd902366210a6ad6cd9a18fe763">scriptSig</a>.<a class="code" href="classprevector.html#aa9210cbe708412a70868d6e0bca844c9">begin</a>(), txin.<a class="code" href="classCTxIn.html#aba540fd902366210a6ad6cd9a18fe763">scriptSig</a>.<a class="code" href="classprevector.html#aab7f6e13a3cac85cc340fc6b90c5365c">end</a>())));</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;sequence&quot;</span>, (uint64_t)txin.<a class="code" href="classCTxIn.html#a635deeaf3ca4e8b3e1a97054607211b9">nSequence</a>));</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>&#160; entry.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;error&quot;</span>, strMessage));</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>&#160; vErrorsRet.<a class="code" href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">push_back</a>(entry);</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>&#160;}</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>&#160;</div><div class="line"><a name="l00588"></a><span class="lineno"><a class="line" href="server_8h.html#a20a66f1d55549861fea58975ebe5c3fd"> 588</a></span>&#160;<a class="code" href="classUniValue.html">UniValue</a> <a class="code" href="rawtransaction_8cpp.html#a20a66f1d55549861fea58975ebe5c3fd">signrawtransaction</a>(<span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; params, <span class="keywordtype">bool</span> fHelp)</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>&#160;{</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>&#160; <span class="keywordflow">if</span> (fHelp || params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &lt; 1 || params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &gt; 4)</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>&#160; <span class="keywordflow">throw</span> runtime_error(</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>&#160; <span class="stringliteral">&quot;signrawtransaction \&quot;hexstring\&quot; ( [{\&quot;txid\&quot;:\&quot;id\&quot;,\&quot;vout\&quot;:n,\&quot;scriptPubKey\&quot;:\&quot;hex\&quot;,\&quot;redeemScript\&quot;:\&quot;hex\&quot;},...] [\&quot;privatekey1\&quot;,...] sighashtype )\n&quot;</span></div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>&#160; <span class="stringliteral">&quot;\nSign inputs for raw transaction (serialized, hex-encoded).\n&quot;</span></div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>&#160; <span class="stringliteral">&quot;The second optional argument (may be null) is an array of previous transaction outputs that\n&quot;</span></div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>&#160; <span class="stringliteral">&quot;this transaction depends on but may not yet be in the block chain.\n&quot;</span></div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>&#160; <span class="stringliteral">&quot;The third optional argument (may be null) is an array of base58-encoded private\n&quot;</span></div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>&#160; <span class="stringliteral">&quot;keys that, if given, will be the only keys used to sign the transaction.\n&quot;</span></div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>&#160;#ifdef <a class="code" href="dash-config_8h.html#a8a1b716170d18826ac6a863ab76424af">ENABLE_WALLET</a></div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>&#160; + <a class="code" href="server_8h.html#abcfbb0ad9335791f2832c01209b8f12d">HelpRequiringPassphrase</a>() + <span class="stringliteral">&quot;\n&quot;</span></div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>&#160;</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>&#160; <span class="stringliteral">&quot;\nArguments:\n&quot;</span></div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>&#160; <span class="stringliteral">&quot;1. \&quot;hexstring\&quot; (string, required) The transaction hex string\n&quot;</span></div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>&#160; <span class="stringliteral">&quot;2. \&quot;prevtxs\&quot; (string, optional) An json array of previous dependent transaction outputs\n&quot;</span></div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>&#160; <span class="stringliteral">&quot; [ (json array of json objects, or &#39;null&#39; if none provided)\n&quot;</span></div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>&#160; <span class="stringliteral">&quot; {\n&quot;</span></div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>&#160; <span class="stringliteral">&quot; \&quot;txid\&quot;:\&quot;id\&quot;, (string, required) The transaction id\n&quot;</span></div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>&#160; <span class="stringliteral">&quot; \&quot;vout\&quot;:n, (numeric, required) The output number\n&quot;</span></div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>&#160; <span class="stringliteral">&quot; \&quot;scriptPubKey\&quot;: \&quot;hex\&quot;, (string, required) script key\n&quot;</span></div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span>&#160; <span class="stringliteral">&quot; \&quot;redeemScript\&quot;: \&quot;hex\&quot; (string, required for P2SH) redeem script\n&quot;</span></div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>&#160; <span class="stringliteral">&quot; }\n&quot;</span></div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>&#160; <span class="stringliteral">&quot; ,...\n&quot;</span></div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>&#160; <span class="stringliteral">&quot; ]\n&quot;</span></div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span>&#160; <span class="stringliteral">&quot;3. \&quot;privatekeys\&quot; (string, optional) A json array of base58-encoded private keys for signing\n&quot;</span></div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>&#160; <span class="stringliteral">&quot; [ (json array of strings, or &#39;null&#39; if none provided)\n&quot;</span></div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span>&#160; <span class="stringliteral">&quot; \&quot;privatekey\&quot; (string) private key in base58-encoding\n&quot;</span></div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>&#160; <span class="stringliteral">&quot; ,...\n&quot;</span></div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>&#160; <span class="stringliteral">&quot; ]\n&quot;</span></div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>&#160; <span class="stringliteral">&quot;4. \&quot;sighashtype\&quot; (string, optional, default=ALL) The signature hash type. Must be one of\n&quot;</span></div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>&#160; <span class="stringliteral">&quot; \&quot;ALL\&quot;\n&quot;</span></div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>&#160; <span class="stringliteral">&quot; \&quot;NONE\&quot;\n&quot;</span></div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>&#160; <span class="stringliteral">&quot; \&quot;SINGLE\&quot;\n&quot;</span></div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span>&#160; <span class="stringliteral">&quot; \&quot;ALL|ANYONECANPAY\&quot;\n&quot;</span></div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>&#160; <span class="stringliteral">&quot; \&quot;NONE|ANYONECANPAY\&quot;\n&quot;</span></div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span>&#160; <span class="stringliteral">&quot; \&quot;SINGLE|ANYONECANPAY\&quot;\n&quot;</span></div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span>&#160;</div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>&#160; <span class="stringliteral">&quot;\nResult:\n&quot;</span></div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span>&#160; <span class="stringliteral">&quot;{\n&quot;</span></div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span>&#160; <span class="stringliteral">&quot; \&quot;hex\&quot; : \&quot;value\&quot;, (string) The hex-encoded raw transaction with signature(s)\n&quot;</span></div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span>&#160; <span class="stringliteral">&quot; \&quot;complete\&quot; : true|false, (boolean) If the transaction has a complete set of signatures\n&quot;</span></div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span>&#160; <span class="stringliteral">&quot; \&quot;errors\&quot; : [ (json array of objects) Script verification errors (if there are any)\n&quot;</span></div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span>&#160; <span class="stringliteral">&quot; {\n&quot;</span></div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>&#160; <span class="stringliteral">&quot; \&quot;txid\&quot; : \&quot;hash\&quot;, (string) The hash of the referenced, previous transaction\n&quot;</span></div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>&#160; <span class="stringliteral">&quot; \&quot;vout\&quot; : n, (numeric) The index of the output to spent and used as input\n&quot;</span></div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>&#160; <span class="stringliteral">&quot; \&quot;scriptSig\&quot; : \&quot;hex\&quot;, (string) The hex-encoded signature script\n&quot;</span></div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>&#160; <span class="stringliteral">&quot; \&quot;sequence\&quot; : n, (numeric) Script sequence number\n&quot;</span></div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>&#160; <span class="stringliteral">&quot; \&quot;error\&quot; : \&quot;text\&quot; (string) Verification or signing error related to the input\n&quot;</span></div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span>&#160; <span class="stringliteral">&quot; }\n&quot;</span></div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span>&#160; <span class="stringliteral">&quot; ,...\n&quot;</span></div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>&#160; <span class="stringliteral">&quot; ]\n&quot;</span></div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>&#160; <span class="stringliteral">&quot;}\n&quot;</span></div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>&#160;</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>&#160; <span class="stringliteral">&quot;\nExamples:\n&quot;</span></div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;signrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;myhex\&quot;&quot;</span>)</div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span>&#160; + <a class="code" href="server_8cpp.html#a9ef4f8fb114508ceb861a0e8c3e0d26e">HelpExampleRpc</a>(<span class="stringliteral">&quot;signrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;myhex\&quot;&quot;</span>)</div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span>&#160; );</div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span>&#160;</div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span>&#160;<span class="preprocessor">#ifdef ENABLE_WALLET</span></div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span>&#160; <a class="code" href="sync_8h.html#a35644e2b75a93da0cb0f6c768f34efa8">LOCK2</a>(<a class="code" href="validation_8cpp.html#a1ed8285f0fe3c6799c53265ce72552c8">cs_main</a>, <a class="code" href="activemasternode_8cpp.html#a8c747077ad84071cba8b87f34fe38920">pwalletMain</a> ? &amp;<a class="code" href="activemasternode_8cpp.html#a8c747077ad84071cba8b87f34fe38920">pwalletMain</a>-&gt;<a class="code" href="classCWallet.html#a4e6eb889f7638ed9695fdc0731581428">cs_wallet</a> : NULL);</div><div class="line"><a name="l00650"></a><span class="lineno"> 650</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span>&#160; <a class="code" href="sync_8h.html#a911fe23f057c2fe5aad629162d6c99d0">LOCK</a>(<a class="code" href="validation_8cpp.html#a1ed8285f0fe3c6799c53265ce72552c8">cs_main</a>);</div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>&#160; <a class="code" href="server_8cpp.html#ac5b4e8e5154ac022c7be81730a527fd1">RPCTypeCheck</a>(params, boost::assign::list_of(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a7afa7b747615105024aab97ff5bf4d11">UniValue::VSTR</a>)(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aa95a3bc9bbb82964abef922146cc73c4">UniValue::VARR</a>)(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aa95a3bc9bbb82964abef922146cc73c4">UniValue::VARR</a>)(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a7afa7b747615105024aab97ff5bf4d11">UniValue::VSTR</a>), <span class="keyword">true</span>);</div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span>&#160;</div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span>&#160; vector&lt;unsigned char&gt; txData(<a class="code" href="server_8cpp.html#aefdb776333651cddcd73ad7a58d36c8e">ParseHexV</a>(params[0], <span class="stringliteral">&quot;argument 1&quot;</span>));</div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span>&#160; <a class="code" href="classCDataStream.html">CDataStream</a> ssData(txData, <a class="code" href="serialize_8h.html#ae4d5251432e1a9e6803c0240cc492e18a652754eeaf79fba4fcf4c18597a6961c">SER_NETWORK</a>, <a class="code" href="version_8h.html#a4e2497f7c9c4319adcaf945159ec63f4">PROTOCOL_VERSION</a>);</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>&#160; vector&lt;CMutableTransaction&gt; txVariants;</div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>&#160; <span class="keywordflow">while</span> (!ssData.<a class="code" href="classCDataStream.html#ab2633ac67f098dad30d03291741c2e42">empty</a>()) {</div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span>&#160; <span class="keywordflow">try</span> {</div><div class="line"><a name="l00660"></a><span class="lineno"> 660</span>&#160; <a class="code" href="structCMutableTransaction.html">CMutableTransaction</a> tx;</div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>&#160; ssData &gt;&gt; tx;</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>&#160; txVariants.push_back(tx);</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>&#160; }</div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span>&#160; <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception&amp;) {</div><div class="line"><a name="l00665"></a><span class="lineno"> 665</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadae41723a0e8091c7853a1e582e317b272">RPC_DESERIALIZATION_ERROR</a>, <span class="stringliteral">&quot;TX decode failed&quot;</span>);</div><div class="line"><a name="l00666"></a><span class="lineno"> 666</span>&#160; }</div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span>&#160; }</div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span>&#160;</div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>&#160; <span class="keywordflow">if</span> (txVariants.empty())</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadae41723a0e8091c7853a1e582e317b272">RPC_DESERIALIZATION_ERROR</a>, <span class="stringliteral">&quot;Missing transaction&quot;</span>);</div><div class="line"><a name="l00671"></a><span class="lineno"> 671</span>&#160;</div><div class="line"><a name="l00672"></a><span class="lineno"> 672</span>&#160; <span class="comment">// mergedTx will end up with all the signatures; it</span></div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span>&#160; <span class="comment">// starts as a clone of the rawtx:</span></div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span>&#160; <a class="code" href="structCMutableTransaction.html">CMutableTransaction</a> mergedTx(txVariants[0]);</div><div class="line"><a name="l00675"></a><span class="lineno"> 675</span>&#160;</div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span>&#160; <span class="comment">// Fetch previous transactions (inputs):</span></div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span>&#160; <a class="code" href="classCCoinsView.html">CCoinsView</a> viewDummy;</div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span>&#160; <a class="code" href="classCCoinsViewCache.html">CCoinsViewCache</a> view(&amp;viewDummy);</div><div class="line"><a name="l00679"></a><span class="lineno"> 679</span>&#160; {</div><div class="line"><a name="l00680"></a><span class="lineno"> 680</span>&#160; <a class="code" href="sync_8h.html#a911fe23f057c2fe5aad629162d6c99d0">LOCK</a>(<a class="code" href="instantx_8cpp.html#abc71256f703e47c9254093e32ed2994c">mempool</a>.<a class="code" href="classCTxMemPool.html#ac7ee8c06837c7d2688e2d7e3d071bdbb">cs</a>);</div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span>&#160; <a class="code" href="classCCoinsViewCache.html">CCoinsViewCache</a> &amp;viewChain = *<a class="code" href="validation_8cpp.html#a1821834b8f7837b469f7f91a14c20042">pcoinsTip</a>;</div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span>&#160; <a class="code" href="classCCoinsViewMemPool.html">CCoinsViewMemPool</a> viewMempool(&amp;viewChain, <a class="code" href="instantx_8cpp.html#abc71256f703e47c9254093e32ed2994c">mempool</a>);</div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span>&#160; view.<a class="code" href="classCCoinsViewBacked.html#a7eaddfbfd401a95c2fda2a8d8feaaf73">SetBackend</a>(viewMempool); <span class="comment">// temporarily switch cache backend to db+mempool view</span></div><div class="line"><a name="l00684"></a><span class="lineno"> 684</span>&#160;</div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span>&#160; BOOST_FOREACH(<span class="keyword">const</span> <a class="code" href="classCTxIn.html">CTxIn</a>&amp; txin, mergedTx.<a class="code" href="structCMutableTransaction.html#ad6b1a0a773293fd153a1d384923631da">vin</a>) {</div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span>&#160; <span class="keyword">const</span> <a class="code" href="classuint256.html">uint256</a>&amp; prevHash = txin.<a class="code" href="classCTxIn.html#aed9312051a25380cbd7f123408ab7c20">prevout</a>.<a class="code" href="classCOutPoint.html#af131c7194a660558b0ff158f4efa7a28">hash</a>;</div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>&#160; <a class="code" href="classCCoins.html">CCoins</a> coins;</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span>&#160; view.<a class="code" href="classCCoinsViewCache.html#a8e5341e8b01233949d6170dd4d1fd75d">AccessCoins</a>(prevHash); <span class="comment">// this is certainly allowed to fail</span></div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>&#160; }</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span>&#160;</div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span>&#160; view.<a class="code" href="classCCoinsViewBacked.html#a7eaddfbfd401a95c2fda2a8d8feaaf73">SetBackend</a>(viewDummy); <span class="comment">// switch back to avoid locking mempool for too long</span></div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span>&#160; }</div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span>&#160;</div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span>&#160; <span class="keywordtype">bool</span> fGivenKeys = <span class="keyword">false</span>;</div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span>&#160; <a class="code" href="classCBasicKeyStore.html">CBasicKeyStore</a> tempKeystore;</div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span>&#160; <span class="keywordflow">if</span> (params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &gt; 2 &amp;&amp; !params[2].<a class="code" href="classUniValue.html#a3661be0f5580daceb23e5338e3a0df22">isNull</a>()) {</div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span>&#160; fGivenKeys = <span class="keyword">true</span>;</div><div class="line"><a name="l00698"></a><span class="lineno"> 698</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> keys = params[2].<a class="code" href="classUniValue.html#aa9751b5797cb84d15b9fe4ca217f0b63">get_array</a>();</div><div class="line"><a name="l00699"></a><span class="lineno"> 699</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> idx = 0; idx &lt; keys.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>(); idx++) {</div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> k = keys[idx];</div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span>&#160; <a class="code" href="classCBitcoinSecret.html">CBitcoinSecret</a> vchSecret;</div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>&#160; <span class="keywordtype">bool</span> fGood = vchSecret.<a class="code" href="classCBitcoinSecret.html#a6a8aff02f66099f33f573ad3e6375bb1">SetString</a>(k.<a class="code" href="classUniValue.html#ab3730236f6f0ecccda0bd4f095b08258">get_str</a>());</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span>&#160; <span class="keywordflow">if</span> (!fGood)</div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadafb8d27e000f4a668b66974c73256a576">RPC_INVALID_ADDRESS_OR_KEY</a>, <span class="stringliteral">&quot;Invalid private key&quot;</span>);</div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span>&#160; <a class="code" href="classCKey.html">CKey</a> <a class="code" href="namespaceextract__strings__qt.html#a1b7a78cde0039f63310f11692b713dca">key</a> = vchSecret.<a class="code" href="classCBitcoinSecret.html#a4d6bf559d092e6d47f8001c7171096df">GetKey</a>();</div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="namespaceextract__strings__qt.html#a1b7a78cde0039f63310f11692b713dca">key</a>.IsValid())</div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadafb8d27e000f4a668b66974c73256a576">RPC_INVALID_ADDRESS_OR_KEY</a>, <span class="stringliteral">&quot;Private key outside allowed range&quot;</span>);</div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span>&#160; tempKeystore.<a class="code" href="classCKeyStore.html#a0b4ca43724cfcc6e2ea70c0baa192750">AddKey</a>(<a class="code" href="namespaceextract__strings__qt.html#a1b7a78cde0039f63310f11692b713dca">key</a>);</div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span>&#160; }</div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span>&#160; }</div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span>&#160;<span class="preprocessor">#ifdef ENABLE_WALLET</span></div><div class="line"><a name="l00712"></a><span class="lineno"> 712</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="activemasternode_8cpp.html#a8c747077ad84071cba8b87f34fe38920">pwalletMain</a>)</div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span>&#160; <a class="code" href="rpc_2masternode_8cpp.html#a8f837f6d506b9719cef93188db00fd3c">EnsureWalletIsUnlocked</a>();</div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span>&#160;</div><div class="line"><a name="l00716"></a><span class="lineno"> 716</span>&#160; <span class="comment">// Add previous txouts given in the RPC call:</span></div><div class="line"><a name="l00717"></a><span class="lineno"> 717</span>&#160; <span class="keywordflow">if</span> (params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &gt; 1 &amp;&amp; !params[1].<a class="code" href="classUniValue.html#a3661be0f5580daceb23e5338e3a0df22">isNull</a>()) {</div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> prevTxs = params[1].<a class="code" href="classUniValue.html#aa9751b5797cb84d15b9fe4ca217f0b63">get_array</a>();</div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> idx = 0; idx &lt; prevTxs.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>(); idx++) {</div><div class="line"><a name="l00720"></a><span class="lineno"> 720</span>&#160; <span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; <a class="code" href="namespacerpc-tests.html#a5634cc986fc764eff8c617f53bf2e8dc">p</a> = prevTxs[idx];</div><div class="line"><a name="l00721"></a><span class="lineno"> 721</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="namespacerpc-tests.html#a5634cc986fc764eff8c617f53bf2e8dc">p</a>.isObject())</div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadae41723a0e8091c7853a1e582e317b272">RPC_DESERIALIZATION_ERROR</a>, <span class="stringliteral">&quot;expected object with {\&quot;txid&#39;\&quot;,\&quot;vout\&quot;,\&quot;scriptPubKey\&quot;}&quot;</span>);</div><div class="line"><a name="l00723"></a><span class="lineno"> 723</span>&#160;</div><div class="line"><a name="l00724"></a><span class="lineno"> 724</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> prevOut = <a class="code" href="namespacerpc-tests.html#a5634cc986fc764eff8c617f53bf2e8dc">p</a>.get_obj();</div><div class="line"><a name="l00725"></a><span class="lineno"> 725</span>&#160;</div><div class="line"><a name="l00726"></a><span class="lineno"> 726</span>&#160; <a class="code" href="server_8cpp.html#a453cb45836e5657fbe18fc071f7434f7">RPCTypeCheckObj</a>(prevOut, boost::assign::map_list_of(<span class="stringliteral">&quot;txid&quot;</span>, <a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a7afa7b747615105024aab97ff5bf4d11">UniValue::VSTR</a>)(<span class="stringliteral">&quot;vout&quot;</span>, <a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aba88a44dcdb6e3be0538d14997ff042b">UniValue::VNUM</a>)(<span class="stringliteral">&quot;scriptPubKey&quot;</span>, <a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a7afa7b747615105024aab97ff5bf4d11">UniValue::VSTR</a>));</div><div class="line"><a name="l00727"></a><span class="lineno"> 727</span>&#160;</div><div class="line"><a name="l00728"></a><span class="lineno"> 728</span>&#160; <a class="code" href="classuint256.html">uint256</a> txid = <a class="code" href="server_8cpp.html#a4127509230eb67be5d765b4a95ddf392">ParseHashO</a>(prevOut, <span class="stringliteral">&quot;txid&quot;</span>);</div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span>&#160;</div><div class="line"><a name="l00730"></a><span class="lineno"> 730</span>&#160; <span class="keywordtype">int</span> nOut = <a class="code" href="univalue_8h.html#a33625d562f1ef5f44ceb171d5c8f2a85">find_value</a>(prevOut, <span class="stringliteral">&quot;vout&quot;</span>).<a class="code" href="classUniValue.html#af45edc6e67eaa6d1f271ce18e435a376">get_int</a>();</div><div class="line"><a name="l00731"></a><span class="lineno"> 731</span>&#160; <span class="keywordflow">if</span> (nOut &lt; 0)</div><div class="line"><a name="l00732"></a><span class="lineno"> 732</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadae41723a0e8091c7853a1e582e317b272">RPC_DESERIALIZATION_ERROR</a>, <span class="stringliteral">&quot;vout must be positive&quot;</span>);</div><div class="line"><a name="l00733"></a><span class="lineno"> 733</span>&#160;</div><div class="line"><a name="l00734"></a><span class="lineno"> 734</span>&#160; vector&lt;unsigned char&gt; pkData(<a class="code" href="server_8cpp.html#aa4320b52790aaddb8c6521d24e4e44ad">ParseHexO</a>(prevOut, <span class="stringliteral">&quot;scriptPubKey&quot;</span>));</div><div class="line"><a name="l00735"></a><span class="lineno"> 735</span>&#160; <a class="code" href="classCScript.html">CScript</a> scriptPubKey(pkData.begin(), pkData.end());</div><div class="line"><a name="l00736"></a><span class="lineno"> 736</span>&#160;</div><div class="line"><a name="l00737"></a><span class="lineno"> 737</span>&#160; {</div><div class="line"><a name="l00738"></a><span class="lineno"> 738</span>&#160; <a class="code" href="classCCoinsModifier.html">CCoinsModifier</a> coins = view.<a class="code" href="classCCoinsViewCache.html#ab67c0d489873ed735c4fc52aa66f0830">ModifyCoins</a>(txid);</div><div class="line"><a name="l00739"></a><span class="lineno"> 739</span>&#160; <span class="keywordflow">if</span> (coins-&gt;<a class="code" href="classCCoins.html#aa645bc3d18f74e91430ac178a9d28ee4">IsAvailable</a>(nOut) &amp;&amp; coins-&gt;<a class="code" href="classCCoins.html#a1dcea1a6da9b25642337e286f9f59b03">vout</a>[nOut].scriptPubKey != scriptPubKey) {</div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span>&#160; <span class="keywordtype">string</span> <a class="code" href="namespaceextract__strings__qt.html#a75c3976a3587b535b25c5bd9d1ca6cee">err</a>(<span class="stringliteral">&quot;Previous output scriptPubKey mismatch:\n&quot;</span>);</div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span>&#160; <a class="code" href="namespaceextract__strings__qt.html#a75c3976a3587b535b25c5bd9d1ca6cee">err</a> = <a class="code" href="namespaceextract__strings__qt.html#a75c3976a3587b535b25c5bd9d1ca6cee">err</a> + <a class="code" href="core__io_8h.html#a9236ffa581211a68db7f7447faa6c27c">ScriptToAsmStr</a>(coins-&gt;<a class="code" href="classCCoins.html#a1dcea1a6da9b25642337e286f9f59b03">vout</a>[nOut].scriptPubKey) + <span class="stringliteral">&quot;\nvs:\n&quot;</span>+</div><div class="line"><a name="l00742"></a><span class="lineno"> 742</span>&#160; <a class="code" href="core__io_8h.html#a9236ffa581211a68db7f7447faa6c27c">ScriptToAsmStr</a>(scriptPubKey);</div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadae41723a0e8091c7853a1e582e317b272">RPC_DESERIALIZATION_ERROR</a>, <a class="code" href="namespaceextract__strings__qt.html#a75c3976a3587b535b25c5bd9d1ca6cee">err</a>);</div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span>&#160; }</div><div class="line"><a name="l00745"></a><span class="lineno"> 745</span>&#160; <span class="keywordflow">if</span> ((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)nOut &gt;= coins-&gt;<a class="code" href="classCCoins.html#a1dcea1a6da9b25642337e286f9f59b03">vout</a>.size())</div><div class="line"><a name="l00746"></a><span class="lineno"> 746</span>&#160; coins-&gt;<a class="code" href="classCCoins.html#a1dcea1a6da9b25642337e286f9f59b03">vout</a>.resize(nOut+1);</div><div class="line"><a name="l00747"></a><span class="lineno"> 747</span>&#160; coins-&gt;<a class="code" href="classCCoins.html#a1dcea1a6da9b25642337e286f9f59b03">vout</a>[nOut].scriptPubKey = scriptPubKey;</div><div class="line"><a name="l00748"></a><span class="lineno"> 748</span>&#160; coins-&gt;<a class="code" href="classCCoins.html#a1dcea1a6da9b25642337e286f9f59b03">vout</a>[nOut].nValue = 0; <span class="comment">// we don&#39;t know the actual output value</span></div><div class="line"><a name="l00749"></a><span class="lineno"> 749</span>&#160; }</div><div class="line"><a name="l00750"></a><span class="lineno"> 750</span>&#160;</div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span>&#160; <span class="comment">// if redeemScript given and not using the local wallet (private keys</span></div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span>&#160; <span class="comment">// given), add redeemScript to the tempKeystore so it can be signed:</span></div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span>&#160; <span class="keywordflow">if</span> (fGivenKeys &amp;&amp; scriptPubKey.IsPayToScriptHash()) {</div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span>&#160; <a class="code" href="server_8cpp.html#a453cb45836e5657fbe18fc071f7434f7">RPCTypeCheckObj</a>(prevOut, boost::assign::map_list_of(<span class="stringliteral">&quot;txid&quot;</span>, <a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a7afa7b747615105024aab97ff5bf4d11">UniValue::VSTR</a>)(<span class="stringliteral">&quot;vout&quot;</span>, <a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aba88a44dcdb6e3be0538d14997ff042b">UniValue::VNUM</a>)(<span class="stringliteral">&quot;scriptPubKey&quot;</span>, <a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a7afa7b747615105024aab97ff5bf4d11">UniValue::VSTR</a>)(<span class="stringliteral">&quot;redeemScript&quot;</span>,<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a7afa7b747615105024aab97ff5bf4d11">UniValue::VSTR</a>));</div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> v = <a class="code" href="univalue_8h.html#a33625d562f1ef5f44ceb171d5c8f2a85">find_value</a>(prevOut, <span class="stringliteral">&quot;redeemScript&quot;</span>);</div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span>&#160; <span class="keywordflow">if</span> (!v.<a class="code" href="classUniValue.html#a3661be0f5580daceb23e5338e3a0df22">isNull</a>()) {</div><div class="line"><a name="l00757"></a><span class="lineno"> 757</span>&#160; vector&lt;unsigned char&gt; rsData(<a class="code" href="server_8cpp.html#aefdb776333651cddcd73ad7a58d36c8e">ParseHexV</a>(v, <span class="stringliteral">&quot;redeemScript&quot;</span>));</div><div class="line"><a name="l00758"></a><span class="lineno"> 758</span>&#160; <a class="code" href="classCScript.html">CScript</a> redeemScript(rsData.begin(), rsData.end());</div><div class="line"><a name="l00759"></a><span class="lineno"> 759</span>&#160; tempKeystore.<a class="code" href="classCBasicKeyStore.html#a56249ce3540398999cd397eeb662e836">AddCScript</a>(redeemScript);</div><div class="line"><a name="l00760"></a><span class="lineno"> 760</span>&#160; }</div><div class="line"><a name="l00761"></a><span class="lineno"> 761</span>&#160; }</div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span>&#160; }</div><div class="line"><a name="l00763"></a><span class="lineno"> 763</span>&#160; }</div><div class="line"><a name="l00764"></a><span class="lineno"> 764</span>&#160;</div><div class="line"><a name="l00765"></a><span class="lineno"> 765</span>&#160;<span class="preprocessor">#ifdef ENABLE_WALLET</span></div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span>&#160; <span class="keyword">const</span> <a class="code" href="classCKeyStore.html">CKeyStore</a>&amp; keystore = ((fGivenKeys || !<a class="code" href="activemasternode_8cpp.html#a8c747077ad84071cba8b87f34fe38920">pwalletMain</a>) ? tempKeystore : *<a class="code" href="activemasternode_8cpp.html#a8c747077ad84071cba8b87f34fe38920">pwalletMain</a>);</div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>&#160; <span class="keyword">const</span> <a class="code" href="classCKeyStore.html">CKeyStore</a>&amp; keystore = tempKeystore;</div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00770"></a><span class="lineno"> 770</span>&#160;</div><div class="line"><a name="l00771"></a><span class="lineno"> 771</span>&#160; <span class="keywordtype">int</span> nHashType = <a class="code" href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4ac68c7df6528b3001624e56b2de3826de">SIGHASH_ALL</a>;</div><div class="line"><a name="l00772"></a><span class="lineno"> 772</span>&#160; <span class="keywordflow">if</span> (params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &gt; 3 &amp;&amp; !params[3].<a class="code" href="classUniValue.html#a3661be0f5580daceb23e5338e3a0df22">isNull</a>()) {</div><div class="line"><a name="l00773"></a><span class="lineno"> 773</span>&#160; <span class="keyword">static</span> map&lt;string, int&gt; mapSigHashValues =</div><div class="line"><a name="l00774"></a><span class="lineno"> 774</span>&#160; boost::assign::map_list_of</div><div class="line"><a name="l00775"></a><span class="lineno"> 775</span>&#160; (<span class="keywordtype">string</span>(<span class="stringliteral">&quot;ALL&quot;</span>), <span class="keywordtype">int</span>(<a class="code" href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4ac68c7df6528b3001624e56b2de3826de">SIGHASH_ALL</a>))</div><div class="line"><a name="l00776"></a><span class="lineno"> 776</span>&#160; (string(<span class="stringliteral">&quot;ALL|ANYONECANPAY&quot;</span>), int(<a class="code" href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4ac68c7df6528b3001624e56b2de3826de">SIGHASH_ALL</a>|<a class="code" href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4a9412c721b741fe9be1e3247dc390a4d2">SIGHASH_ANYONECANPAY</a>))</div><div class="line"><a name="l00777"></a><span class="lineno"> 777</span>&#160; (<span class="keywordtype">string</span>(<span class="stringliteral">&quot;NONE&quot;</span>), int(<a class="code" href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4acaba9b1f029a1628196345fce5667f6f">SIGHASH_NONE</a>))</div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span>&#160; (<span class="keywordtype">string</span>(<span class="stringliteral">&quot;NONE|ANYONECANPAY&quot;</span>), int(<a class="code" href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4acaba9b1f029a1628196345fce5667f6f">SIGHASH_NONE</a>|<a class="code" href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4a9412c721b741fe9be1e3247dc390a4d2">SIGHASH_ANYONECANPAY</a>))</div><div class="line"><a name="l00779"></a><span class="lineno"> 779</span>&#160; (<span class="keywordtype">string</span>(<span class="stringliteral">&quot;SINGLE&quot;</span>), int(<a class="code" href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4ad9bb96e76cf9f1b6ebbf50373f4f9ca5">SIGHASH_SINGLE</a>))</div><div class="line"><a name="l00780"></a><span class="lineno"> 780</span>&#160; (<span class="keywordtype">string</span>(<span class="stringliteral">&quot;SINGLE|ANYONECANPAY&quot;</span>), int(<a class="code" href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4ad9bb96e76cf9f1b6ebbf50373f4f9ca5">SIGHASH_SINGLE</a>|<a class="code" href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4a9412c721b741fe9be1e3247dc390a4d2">SIGHASH_ANYONECANPAY</a>))</div><div class="line"><a name="l00781"></a><span class="lineno"> 781</span>&#160; ;</div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span>&#160; <span class="keywordtype">string</span> strHashType = params[3].<a class="code" href="classUniValue.html#ab3730236f6f0ecccda0bd4f095b08258">get_str</a>();</div><div class="line"><a name="l00783"></a><span class="lineno"> 783</span>&#160; <span class="keywordflow">if</span> (mapSigHashValues.count(strHashType))</div><div class="line"><a name="l00784"></a><span class="lineno"> 784</span>&#160; nHashType = mapSigHashValues[strHashType];</div><div class="line"><a name="l00785"></a><span class="lineno"> 785</span>&#160; <span class="keywordflow">else</span></div><div class="line"><a name="l00786"></a><span class="lineno"> 786</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadab38a9a653209a57acfc9a551c310e4dc">RPC_INVALID_PARAMETER</a>, <span class="stringliteral">&quot;Invalid sighash param&quot;</span>);</div><div class="line"><a name="l00787"></a><span class="lineno"> 787</span>&#160; }</div><div class="line"><a name="l00788"></a><span class="lineno"> 788</span>&#160;</div><div class="line"><a name="l00789"></a><span class="lineno"> 789</span>&#160; <span class="keywordtype">bool</span> fHashSingle = ((nHashType &amp; ~<a class="code" href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4a9412c721b741fe9be1e3247dc390a4d2">SIGHASH_ANYONECANPAY</a>) == <a class="code" href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4ad9bb96e76cf9f1b6ebbf50373f4f9ca5">SIGHASH_SINGLE</a>);</div><div class="line"><a name="l00790"></a><span class="lineno"> 790</span>&#160;</div><div class="line"><a name="l00791"></a><span class="lineno"> 791</span>&#160; <span class="comment">// Script verification errors</span></div><div class="line"><a name="l00792"></a><span class="lineno"> 792</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> vErrors(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aa95a3bc9bbb82964abef922146cc73c4">UniValue::VARR</a>);</div><div class="line"><a name="l00793"></a><span class="lineno"> 793</span>&#160;</div><div class="line"><a name="l00794"></a><span class="lineno"> 794</span>&#160; <span class="comment">// Sign what we can:</span></div><div class="line"><a name="l00795"></a><span class="lineno"> 795</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; mergedTx.<a class="code" href="structCMutableTransaction.html#ad6b1a0a773293fd153a1d384923631da">vin</a>.size(); i++) {</div><div class="line"><a name="l00796"></a><span class="lineno"> 796</span>&#160; <a class="code" href="classCTxIn.html">CTxIn</a>&amp; txin = mergedTx.<a class="code" href="structCMutableTransaction.html#ad6b1a0a773293fd153a1d384923631da">vin</a>[i];</div><div class="line"><a name="l00797"></a><span class="lineno"> 797</span>&#160; <span class="keyword">const</span> <a class="code" href="classCCoins.html">CCoins</a>* coins = view.<a class="code" href="classCCoinsViewCache.html#a8e5341e8b01233949d6170dd4d1fd75d">AccessCoins</a>(txin.<a class="code" href="classCTxIn.html#aed9312051a25380cbd7f123408ab7c20">prevout</a>.<a class="code" href="classCOutPoint.html#af131c7194a660558b0ff158f4efa7a28">hash</a>);</div><div class="line"><a name="l00798"></a><span class="lineno"> 798</span>&#160; <span class="keywordflow">if</span> (coins == NULL || !coins-&gt;<a class="code" href="classCCoins.html#aa645bc3d18f74e91430ac178a9d28ee4">IsAvailable</a>(txin.<a class="code" href="classCTxIn.html#aed9312051a25380cbd7f123408ab7c20">prevout</a>.<a class="code" href="classCOutPoint.html#a1b857e3a0412ff741da2c9f8defe315c">n</a>)) {</div><div class="line"><a name="l00799"></a><span class="lineno"> 799</span>&#160; <a class="code" href="rawtransaction_8cpp.html#aa18bf1f4cd71863cd807845a220ad475">TxInErrorToJSON</a>(txin, vErrors, <span class="stringliteral">&quot;Input not found or already spent&quot;</span>);</div><div class="line"><a name="l00800"></a><span class="lineno"> 800</span>&#160; <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00801"></a><span class="lineno"> 801</span>&#160; }</div><div class="line"><a name="l00802"></a><span class="lineno"> 802</span>&#160; <span class="keyword">const</span> <a class="code" href="classCScript.html">CScript</a>&amp; prevPubKey = coins-&gt;<a class="code" href="classCCoins.html#a1dcea1a6da9b25642337e286f9f59b03">vout</a>[txin.<a class="code" href="classCTxIn.html#aed9312051a25380cbd7f123408ab7c20">prevout</a>.<a class="code" href="classCOutPoint.html#a1b857e3a0412ff741da2c9f8defe315c">n</a>].scriptPubKey;</div><div class="line"><a name="l00803"></a><span class="lineno"> 803</span>&#160;</div><div class="line"><a name="l00804"></a><span class="lineno"> 804</span>&#160; txin.<a class="code" href="classCTxIn.html#aba540fd902366210a6ad6cd9a18fe763">scriptSig</a>.<a class="code" href="classCScript.html#a7b2baf842621f07c4939408acf63377c">clear</a>();</div><div class="line"><a name="l00805"></a><span class="lineno"> 805</span>&#160; <span class="comment">// Only sign SIGHASH_SINGLE if there&#39;s a corresponding output:</span></div><div class="line"><a name="l00806"></a><span class="lineno"> 806</span>&#160; <span class="keywordflow">if</span> (!fHashSingle || (i &lt; mergedTx.<a class="code" href="structCMutableTransaction.html#aca14a252c78e4af2dfe68d7ea67a77dc">vout</a>.size()))</div><div class="line"><a name="l00807"></a><span class="lineno"> 807</span>&#160; <a class="code" href="sign_8cpp.html#adb49c071f85f19a8a8cb4e97d9fe8b93">SignSignature</a>(keystore, prevPubKey, mergedTx, i, nHashType);</div><div class="line"><a name="l00808"></a><span class="lineno"> 808</span>&#160;</div><div class="line"><a name="l00809"></a><span class="lineno"> 809</span>&#160; <span class="comment">// ... and merge in other signatures:</span></div><div class="line"><a name="l00810"></a><span class="lineno"> 810</span>&#160; BOOST_FOREACH(<span class="keyword">const</span> <a class="code" href="structCMutableTransaction.html">CMutableTransaction</a>&amp; txv, txVariants) {</div><div class="line"><a name="l00811"></a><span class="lineno"> 811</span>&#160; txin.<a class="code" href="classCTxIn.html#aba540fd902366210a6ad6cd9a18fe763">scriptSig</a> = <a class="code" href="sign_8cpp.html#ad2e697991d13f121cd65177962b9074d">CombineSignatures</a>(prevPubKey, mergedTx, i, txin.<a class="code" href="classCTxIn.html#aba540fd902366210a6ad6cd9a18fe763">scriptSig</a>, txv.<a class="code" href="structCMutableTransaction.html#ad6b1a0a773293fd153a1d384923631da">vin</a>[i].scriptSig);</div><div class="line"><a name="l00812"></a><span class="lineno"> 812</span>&#160; }</div><div class="line"><a name="l00813"></a><span class="lineno"> 813</span>&#160; <a class="code" href="script__error_8h.html#ad4323df51ed704d5f9eaef57ad5a425c">ScriptError</a> serror = <a class="code" href="script__error_8h.html#a3150eb7362e5d1e0732dd10c973a0eb5aad599193e51936be396937d4a6e32780">SCRIPT_ERR_OK</a>;</div><div class="line"><a name="l00814"></a><span class="lineno"> 814</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="interpreter_8cpp.html#a56bc5c34addf9d85b8b7637f3738a125">VerifyScript</a>(txin.<a class="code" href="classCTxIn.html#aba540fd902366210a6ad6cd9a18fe763">scriptSig</a>, prevPubKey, <a class="code" href="policy_8h.html#a5100f707492ff0fea1c1f53552b31f51">STANDARD_SCRIPT_VERIFY_FLAGS</a>, <a class="code" href="classMutableTransactionSignatureChecker.html">MutableTransactionSignatureChecker</a>(&amp;mergedTx, i), &amp;serror)) {</div><div class="line"><a name="l00815"></a><span class="lineno"> 815</span>&#160; <a class="code" href="rawtransaction_8cpp.html#aa18bf1f4cd71863cd807845a220ad475">TxInErrorToJSON</a>(txin, vErrors, <a class="code" href="script__error_8cpp.html#a27aa7ed633799d723babe956a484db09">ScriptErrorString</a>(serror));</div><div class="line"><a name="l00816"></a><span class="lineno"> 816</span>&#160; }</div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span>&#160; }</div><div class="line"><a name="l00818"></a><span class="lineno"> 818</span>&#160; <span class="keywordtype">bool</span> fComplete = vErrors.<a class="code" href="classUniValue.html#a6cf106f8b73c526b50d0c77a36a2d8ec">empty</a>();</div><div class="line"><a name="l00819"></a><span class="lineno"> 819</span>&#160;</div><div class="line"><a name="l00820"></a><span class="lineno"> 820</span>&#160; <a class="code" href="classUniValue.html">UniValue</a> <a class="code" href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">result</a>(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a4d17ac56db012de25e26ac62daf3f475">UniValue::VOBJ</a>);</div><div class="line"><a name="l00821"></a><span class="lineno"> 821</span>&#160; <a class="code" href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">result</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;hex&quot;</span>, <a class="code" href="core__io_8h.html#a143951d3e5f8c1f57c9825187c426270">EncodeHexTx</a>(mergedTx)));</div><div class="line"><a name="l00822"></a><span class="lineno"> 822</span>&#160; <a class="code" href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">result</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;complete&quot;</span>, fComplete));</div><div class="line"><a name="l00823"></a><span class="lineno"> 823</span>&#160; <span class="keywordflow">if</span> (!vErrors.<a class="code" href="classUniValue.html#a6cf106f8b73c526b50d0c77a36a2d8ec">empty</a>()) {</div><div class="line"><a name="l00824"></a><span class="lineno"> 824</span>&#160; <a class="code" href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">result</a>.push_back(<a class="code" href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a>(<span class="stringliteral">&quot;errors&quot;</span>, vErrors));</div><div class="line"><a name="l00825"></a><span class="lineno"> 825</span>&#160; }</div><div class="line"><a name="l00826"></a><span class="lineno"> 826</span>&#160;</div><div class="line"><a name="l00827"></a><span class="lineno"> 827</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">result</a>;</div><div class="line"><a name="l00828"></a><span class="lineno"> 828</span>&#160;}</div><div class="line"><a name="l00829"></a><span class="lineno"> 829</span>&#160;</div><div class="line"><a name="l00830"></a><span class="lineno"><a class="line" href="server_8h.html#a962b2890c7be4b92841eb288e5a2aca5"> 830</a></span>&#160;<a class="code" href="classUniValue.html">UniValue</a> <a class="code" href="rawtransaction_8cpp.html#a962b2890c7be4b92841eb288e5a2aca5">sendrawtransaction</a>(<span class="keyword">const</span> <a class="code" href="classUniValue.html">UniValue</a>&amp; params, <span class="keywordtype">bool</span> fHelp)</div><div class="line"><a name="l00831"></a><span class="lineno"> 831</span>&#160;{</div><div class="line"><a name="l00832"></a><span class="lineno"> 832</span>&#160; <span class="keywordflow">if</span> (fHelp || params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &lt; 1 || params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &gt; 3)</div><div class="line"><a name="l00833"></a><span class="lineno"> 833</span>&#160; <span class="keywordflow">throw</span> runtime_error(</div><div class="line"><a name="l00834"></a><span class="lineno"> 834</span>&#160; <span class="stringliteral">&quot;sendrawtransaction \&quot;hexstring\&quot; ( allowhighfees instantsend )\n&quot;</span></div><div class="line"><a name="l00835"></a><span class="lineno"> 835</span>&#160; <span class="stringliteral">&quot;\nSubmits raw transaction (serialized, hex-encoded) to local node and network.\n&quot;</span></div><div class="line"><a name="l00836"></a><span class="lineno"> 836</span>&#160; <span class="stringliteral">&quot;\nAlso see createrawtransaction and signrawtransaction calls.\n&quot;</span></div><div class="line"><a name="l00837"></a><span class="lineno"> 837</span>&#160; <span class="stringliteral">&quot;\nArguments:\n&quot;</span></div><div class="line"><a name="l00838"></a><span class="lineno"> 838</span>&#160; <span class="stringliteral">&quot;1. \&quot;hexstring\&quot; (string, required) The hex string of the raw transaction)\n&quot;</span></div><div class="line"><a name="l00839"></a><span class="lineno"> 839</span>&#160; <span class="stringliteral">&quot;2. allowhighfees (boolean, optional, default=false) Allow high fees\n&quot;</span></div><div class="line"><a name="l00840"></a><span class="lineno"> 840</span>&#160; <span class="stringliteral">&quot;3. instantsend (boolean, optional, default=false) Use InstantSend to send this transaction\n&quot;</span></div><div class="line"><a name="l00841"></a><span class="lineno"> 841</span>&#160; <span class="stringliteral">&quot;\nResult:\n&quot;</span></div><div class="line"><a name="l00842"></a><span class="lineno"> 842</span>&#160; <span class="stringliteral">&quot;\&quot;hex\&quot; (string) The transaction hash in hex\n&quot;</span></div><div class="line"><a name="l00843"></a><span class="lineno"> 843</span>&#160; <span class="stringliteral">&quot;\nExamples:\n&quot;</span></div><div class="line"><a name="l00844"></a><span class="lineno"> 844</span>&#160; <span class="stringliteral">&quot;\nCreate a transaction\n&quot;</span></div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;createrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;[{\\\&quot;txid\\\&quot; : \\\&quot;mytxid\\\&quot;,\\\&quot;vout\\\&quot;:0}]\&quot; \&quot;{\\\&quot;myaddress\\\&quot;:0.01}\&quot;&quot;</span>) +</div><div class="line"><a name="l00846"></a><span class="lineno"> 846</span>&#160; <span class="stringliteral">&quot;Sign the transaction, and get back the hex\n&quot;</span></div><div class="line"><a name="l00847"></a><span class="lineno"> 847</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;signrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;myhex\&quot;&quot;</span>) +</div><div class="line"><a name="l00848"></a><span class="lineno"> 848</span>&#160; <span class="stringliteral">&quot;\nSend the transaction (signed hex)\n&quot;</span></div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span>&#160; + <a class="code" href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a>(<span class="stringliteral">&quot;sendrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;signedhex\&quot;&quot;</span>) +</div><div class="line"><a name="l00850"></a><span class="lineno"> 850</span>&#160; <span class="stringliteral">&quot;\nAs a json rpc call\n&quot;</span></div><div class="line"><a name="l00851"></a><span class="lineno"> 851</span>&#160; + <a class="code" href="server_8cpp.html#a9ef4f8fb114508ceb861a0e8c3e0d26e">HelpExampleRpc</a>(<span class="stringliteral">&quot;sendrawtransaction&quot;</span>, <span class="stringliteral">&quot;\&quot;signedhex\&quot;&quot;</span>)</div><div class="line"><a name="l00852"></a><span class="lineno"> 852</span>&#160; );</div><div class="line"><a name="l00853"></a><span class="lineno"> 853</span>&#160;</div><div class="line"><a name="l00854"></a><span class="lineno"> 854</span>&#160; <a class="code" href="sync_8h.html#a911fe23f057c2fe5aad629162d6c99d0">LOCK</a>(<a class="code" href="validation_8cpp.html#a1ed8285f0fe3c6799c53265ce72552c8">cs_main</a>);</div><div class="line"><a name="l00855"></a><span class="lineno"> 855</span>&#160; <a class="code" href="server_8cpp.html#ac5b4e8e5154ac022c7be81730a527fd1">RPCTypeCheck</a>(params, boost::assign::list_of(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a7afa7b747615105024aab97ff5bf4d11">UniValue::VSTR</a>)(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63af6f71c0fb8fb8fd72d0ec30d8ec9e1b8">UniValue::VBOOL</a>)(<a class="code" href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63af6f71c0fb8fb8fd72d0ec30d8ec9e1b8">UniValue::VBOOL</a>));</div><div class="line"><a name="l00856"></a><span class="lineno"> 856</span>&#160;</div><div class="line"><a name="l00857"></a><span class="lineno"> 857</span>&#160; <span class="comment">// parse hex string from parameter</span></div><div class="line"><a name="l00858"></a><span class="lineno"> 858</span>&#160; <a class="code" href="classCTransaction.html">CTransaction</a> tx;</div><div class="line"><a name="l00859"></a><span class="lineno"> 859</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="core__io_8h.html#adf3a8ae53f4e0af5832ce21fc581db0e">DecodeHexTx</a>(tx, params[0].get_str()))</div><div class="line"><a name="l00860"></a><span class="lineno"> 860</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadae41723a0e8091c7853a1e582e317b272">RPC_DESERIALIZATION_ERROR</a>, <span class="stringliteral">&quot;TX decode failed&quot;</span>);</div><div class="line"><a name="l00861"></a><span class="lineno"> 861</span>&#160; <a class="code" href="classuint256.html">uint256</a> hashTx = tx.<a class="code" href="classCTransaction.html#a7efd1379de830341417c0bfa23a149aa">GetHash</a>();</div><div class="line"><a name="l00862"></a><span class="lineno"> 862</span>&#160;</div><div class="line"><a name="l00863"></a><span class="lineno"> 863</span>&#160; <span class="keywordtype">bool</span> fOverrideFees = <span class="keyword">false</span>;</div><div class="line"><a name="l00864"></a><span class="lineno"> 864</span>&#160; <span class="keywordflow">if</span> (params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &gt; 1)</div><div class="line"><a name="l00865"></a><span class="lineno"> 865</span>&#160; fOverrideFees = params[1].get_bool();</div><div class="line"><a name="l00866"></a><span class="lineno"> 866</span>&#160;</div><div class="line"><a name="l00867"></a><span class="lineno"> 867</span>&#160; <span class="keywordtype">bool</span> fInstantSend = <span class="keyword">false</span>;</div><div class="line"><a name="l00868"></a><span class="lineno"> 868</span>&#160; <span class="keywordflow">if</span> (params.<a class="code" href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">size</a>() &gt; 2)</div><div class="line"><a name="l00869"></a><span class="lineno"> 869</span>&#160; fInstantSend = params[2].get_bool();</div><div class="line"><a name="l00870"></a><span class="lineno"> 870</span>&#160;</div><div class="line"><a name="l00871"></a><span class="lineno"> 871</span>&#160; <a class="code" href="classCCoinsViewCache.html">CCoinsViewCache</a> &amp;view = *<a class="code" href="validation_8cpp.html#a1821834b8f7837b469f7f91a14c20042">pcoinsTip</a>;</div><div class="line"><a name="l00872"></a><span class="lineno"> 872</span>&#160; <span class="keyword">const</span> <a class="code" href="classCCoins.html">CCoins</a>* existingCoins = view.<a class="code" href="classCCoinsViewCache.html#a8e5341e8b01233949d6170dd4d1fd75d">AccessCoins</a>(hashTx);</div><div class="line"><a name="l00873"></a><span class="lineno"> 873</span>&#160; <span class="keywordtype">bool</span> fHaveMempool = <a class="code" href="instantx_8cpp.html#abc71256f703e47c9254093e32ed2994c">mempool</a>.<a class="code" href="classCTxMemPool.html#a8b7a13b5289ab839d4460f41a7da9789">exists</a>(hashTx);</div><div class="line"><a name="l00874"></a><span class="lineno"> 874</span>&#160; <span class="keywordtype">bool</span> fHaveChain = existingCoins &amp;&amp; existingCoins-&gt;<a class="code" href="classCCoins.html#af7396dfad71367de46f21cf92e2c70ab">nHeight</a> &lt; 1000000000;</div><div class="line"><a name="l00875"></a><span class="lineno"> 875</span>&#160; <span class="keywordflow">if</span> (!fHaveMempool &amp;&amp; !fHaveChain) {</div><div class="line"><a name="l00876"></a><span class="lineno"> 876</span>&#160; <span class="comment">// push to local node and sync with wallets</span></div><div class="line"><a name="l00877"></a><span class="lineno"> 877</span>&#160; <span class="keywordflow">if</span> (fInstantSend &amp;&amp; !<a class="code" href="instantx_8cpp.html#a6ed4b104bfd9f775e0c0a3524a6b4955">instantsend</a>.<a class="code" href="classCInstantSend.html#a418ce98b1e4d61b38bd11d02ff36a47d">ProcessTxLockRequest</a>(tx, *<a class="code" href="init_8cpp.html#a152c3d2ceeeaf7a300666dcbcc8bb945">g_connman</a>)) {</div><div class="line"><a name="l00878"></a><span class="lineno"> 878</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadaa2bc9f33fd0ba09e486eeeeafaae968c">RPC_TRANSACTION_ERROR</a>, <span class="stringliteral">&quot;Not a valid InstantSend transaction, see debug.log for more info&quot;</span>);</div><div class="line"><a name="l00879"></a><span class="lineno"> 879</span>&#160; }</div><div class="line"><a name="l00880"></a><span class="lineno"> 880</span>&#160; <a class="code" href="classCValidationState.html">CValidationState</a> state;</div><div class="line"><a name="l00881"></a><span class="lineno"> 881</span>&#160; <span class="keywordtype">bool</span> fMissingInputs;</div><div class="line"><a name="l00882"></a><span class="lineno"> 882</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="validation_8cpp.html#a9f00dd573bea95cab88337424573f7b2">AcceptToMemoryPool</a>(<a class="code" href="instantx_8cpp.html#abc71256f703e47c9254093e32ed2994c">mempool</a>, state, tx, <span class="keyword">false</span>, &amp;fMissingInputs, <span class="keyword">false</span>, !fOverrideFees)) {</div><div class="line"><a name="l00883"></a><span class="lineno"> 883</span>&#160; <span class="keywordflow">if</span> (state.<a class="code" href="classCValidationState.html#ace1d536f4003d3a6689fccd0f496c977">IsInvalid</a>()) {</div><div class="line"><a name="l00884"></a><span class="lineno"> 884</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deada9e05169dd202b16a07bc124bd6e451d5">RPC_TRANSACTION_REJECTED</a>, <a class="code" href="tinyformat_8h.html#a56c674871a61baaad36ad52238c08857">strprintf</a>(<span class="stringliteral">&quot;%i: %s&quot;</span>, state.<a class="code" href="classCValidationState.html#a01490c3326ac7d47a64976747060ac46">GetRejectCode</a>(), state.<a class="code" href="classCValidationState.html#a8fa9612cb40c3c8592f7cd29b5931ccd">GetRejectReason</a>()));</div><div class="line"><a name="l00885"></a><span class="lineno"> 885</span>&#160; } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00886"></a><span class="lineno"> 886</span>&#160; <span class="keywordflow">if</span> (fMissingInputs) {</div><div class="line"><a name="l00887"></a><span class="lineno"> 887</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadaa2bc9f33fd0ba09e486eeeeafaae968c">RPC_TRANSACTION_ERROR</a>, <span class="stringliteral">&quot;Missing inputs&quot;</span>);</div><div class="line"><a name="l00888"></a><span class="lineno"> 888</span>&#160; }</div><div class="line"><a name="l00889"></a><span class="lineno"> 889</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadaa2bc9f33fd0ba09e486eeeeafaae968c">RPC_TRANSACTION_ERROR</a>, state.<a class="code" href="classCValidationState.html#a8fa9612cb40c3c8592f7cd29b5931ccd">GetRejectReason</a>());</div><div class="line"><a name="l00890"></a><span class="lineno"> 890</span>&#160; }</div><div class="line"><a name="l00891"></a><span class="lineno"> 891</span>&#160; }</div><div class="line"><a name="l00892"></a><span class="lineno"> 892</span>&#160; } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (fHaveChain) {</div><div class="line"><a name="l00893"></a><span class="lineno"> 893</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deada7a1b53103d599a098159e4f8171c4387">RPC_TRANSACTION_ALREADY_IN_CHAIN</a>, <span class="stringliteral">&quot;transaction already in block chain&quot;</span>);</div><div class="line"><a name="l00894"></a><span class="lineno"> 894</span>&#160; }</div><div class="line"><a name="l00895"></a><span class="lineno"> 895</span>&#160; <span class="keywordflow">if</span>(!<a class="code" href="init_8cpp.html#a152c3d2ceeeaf7a300666dcbcc8bb945">g_connman</a>)</div><div class="line"><a name="l00896"></a><span class="lineno"> 896</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a>(<a class="code" href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadafec84f7fdd91f69c7d5f89a020be9f70">RPC_CLIENT_P2P_DISABLED</a>, <span class="stringliteral">&quot;Error: Peer-to-peer functionality missing or disabled&quot;</span>);</div><div class="line"><a name="l00897"></a><span class="lineno"> 897</span>&#160;</div><div class="line"><a name="l00898"></a><span class="lineno"> 898</span>&#160; <a class="code" href="init_8cpp.html#a152c3d2ceeeaf7a300666dcbcc8bb945">g_connman</a>-&gt;RelayTransaction(tx);</div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span>&#160;</div><div class="line"><a name="l00900"></a><span class="lineno"> 900</span>&#160; <span class="keywordflow">return</span> hashTx.<a class="code" href="classbase__blob.html#ad7263503f949fb3c6c520ebb1f28e378">GetHex</a>();</div><div class="line"><a name="l00901"></a><span class="lineno"> 901</span>&#160;}</div><div class="ttc" id="classCBitcoinSecret_html_a6a8aff02f66099f33f573ad3e6375bb1"><div class="ttname"><a href="classCBitcoinSecret.html#a6a8aff02f66099f33f573ad3e6375bb1">CBitcoinSecret::SetString</a></div><div class="ttdeci">bool SetString(const char *pszSecret)</div><div class="ttdef"><b>Definition:</b> <a href="base58_8cpp_source.html#l00329">base58.cpp:329</a></div></div>
<div class="ttc" id="rpc_2protocol_8h_html_af867221d51315471f28ed8cdac85deadaa2bc9f33fd0ba09e486eeeeafaae968c"><div class="ttname"><a href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadaa2bc9f33fd0ba09e486eeeeafaae968c">RPC_TRANSACTION_ERROR</a></div><div class="ttdoc">Client still warming up. </div><div class="ttdef"><b>Definition:</b> <a href="rpc_2protocol_8h_source.html#l00055">protocol.h:55</a></div></div>
<div class="ttc" id="classCOutPoint_html_a1b857e3a0412ff741da2c9f8defe315c"><div class="ttname"><a href="classCOutPoint.html#a1b857e3a0412ff741da2c9f8defe315c">COutPoint::n</a></div><div class="ttdeci">uint32_t n</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00019">transaction.h:19</a></div></div>
<div class="ttc" id="rpc_2masternode_8cpp_html_a8f837f6d506b9719cef93188db00fd3c"><div class="ttname"><a href="rpc_2masternode_8cpp.html#a8f837f6d506b9719cef93188db00fd3c">EnsureWalletIsUnlocked</a></div><div class="ttdeci">void EnsureWalletIsUnlocked()</div><div class="ttdef"><b>Definition:</b> <a href="rpcwallet_8cpp_source.html#l00054">rpcwallet.cpp:54</a></div></div>
<div class="ttc" id="rawtransaction_8cpp_html_acf5847645cf9f53013246c5197529fb3"><div class="ttname"><a href="rawtransaction_8cpp.html#acf5847645cf9f53013246c5197529fb3">gettxoutproof</a></div><div class="ttdeci">UniValue gettxoutproof(const UniValue &amp;params, bool fHelp)</div><div class="ttdef"><b>Definition:</b> <a href="rawtransaction_8cpp_source.html#l00235">rawtransaction.cpp:235</a></div></div>
<div class="ttc" id="server_8cpp_html_aefdb776333651cddcd73ad7a58d36c8e"><div class="ttname"><a href="server_8cpp.html#aefdb776333651cddcd73ad7a58d36c8e">ParseHexV</a></div><div class="ttdeci">vector&lt; unsigned char &gt; ParseHexV(const UniValue &amp;v, string strName)</div><div class="ttdef"><b>Definition:</b> <a href="server_8cpp_source.html#l00147">server.cpp:147</a></div></div>
<div class="ttc" id="serialize_8h_html_ae4d5251432e1a9e6803c0240cc492e18a652754eeaf79fba4fcf4c18597a6961c"><div class="ttname"><a href="serialize_8h.html#ae4d5251432e1a9e6803c0240cc492e18a652754eeaf79fba4fcf4c18597a6961c">SER_NETWORK</a></div><div class="ttdef"><b>Definition:</b> <a href="serialize_8h_source.html#l00170">serialize.h:170</a></div></div>
<div class="ttc" id="structCMutableTransaction_html"><div class="ttname"><a href="structCMutableTransaction.html">CMutableTransaction</a></div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00303">transaction.h:303</a></div></div>
<div class="ttc" id="core__io_8h_html"><div class="ttname"><a href="core__io_8h.html">core_io.h</a></div></div>
<div class="ttc" id="standard_8h_html_a50f712c3d9a0d2f85ae464497dd9cff8"><div class="ttname"><a href="standard_8h.html#a50f712c3d9a0d2f85ae464497dd9cff8">CTxDestination</a></div><div class="ttdeci">boost::variant&lt; CNoDestination, CKeyID, CScriptID &gt; CTxDestination</div><div class="ttdef"><b>Definition:</b> <a href="standard_8h_source.html#l00069">standard.h:69</a></div></div>
<div class="ttc" id="classCTransaction_html_a54d5948c11f499b28276eab6bbfdf0c5"><div class="ttname"><a href="classCTransaction.html#a54d5948c11f499b28276eab6bbfdf0c5">CTransaction::nLockTime</a></div><div class="ttdeci">const uint32_t nLockTime</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00235">transaction.h:235</a></div></div>
<div class="ttc" id="classCTxIn_html"><div class="ttname"><a href="classCTxIn.html">CTxIn</a></div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00058">transaction.h:58</a></div></div>
<div class="ttc" id="classCCoinsViewCache_html_a1b62444593fdb580bfa4bd6fab41fafa"><div class="ttname"><a href="classCCoinsViewCache.html#a1b62444593fdb580bfa4bd6fab41fafa">CCoinsViewCache::GetCoins</a></div><div class="ttdeci">bool GetCoins(const uint256 &amp;txid, CCoins &amp;coins) const</div><div class="ttdoc">Retrieve the CCoins (unspent transaction outputs) for a given txid. </div><div class="ttdef"><b>Definition:</b> <a href="coins_8cpp_source.html#l00090">coins.cpp:90</a></div></div>
<div class="ttc" id="classCCoins_html"><div class="ttname"><a href="classCCoins.html">CCoins</a></div><div class="ttdef"><b>Definition:</b> <a href="coins_8h_source.html#l00073">coins.h:73</a></div></div>
<div class="ttc" id="init_8h_html"><div class="ttname"><a href="init_8h.html">init.h</a></div></div>
<div class="ttc" id="script__error_8h_html_ad4323df51ed704d5f9eaef57ad5a425c"><div class="ttname"><a href="script__error_8h.html#ad4323df51ed704d5f9eaef57ad5a425c">ScriptError</a></div><div class="ttdeci">enum ScriptError_t ScriptError</div></div>
<div class="ttc" id="net_8h_html"><div class="ttname"><a href="net_8h.html">net.h</a></div></div>
<div class="ttc" id="classCValidationState_html_a8fa9612cb40c3c8592f7cd29b5931ccd"><div class="ttname"><a href="classCValidationState.html#a8fa9612cb40c3c8592f7cd29b5931ccd">CValidationState::GetRejectReason</a></div><div class="ttdeci">std::string GetRejectReason() const</div><div class="ttdef"><b>Definition:</b> <a href="consensus_2validation_8h_source.html#l00081">validation.h:81</a></div></div>
<div class="ttc" id="classCTxIn_html_a635deeaf3ca4e8b3e1a97054607211b9"><div class="ttname"><a href="classCTxIn.html#a635deeaf3ca4e8b3e1a97054607211b9">CTxIn::nSequence</a></div><div class="ttdeci">uint32_t nSequence</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00063">transaction.h:63</a></div></div>
<div class="ttc" id="classCBitcoinAddress_html_ab39907ce6895062a8f8bf585270ef13b"><div class="ttname"><a href="classCBitcoinAddress.html#ab39907ce6895062a8f8bf585270ef13b">CBitcoinAddress::IsValid</a></div><div class="ttdeci">bool IsValid() const</div><div class="ttdef"><b>Definition:</b> <a href="base58_8cpp_source.html#l00247">base58.cpp:247</a></div></div>
<div class="ttc" id="tinyformat_8h_html_a56c674871a61baaad36ad52238c08857"><div class="ttname"><a href="tinyformat_8h.html#a56c674871a61baaad36ad52238c08857">strprintf</a></div><div class="ttdeci">#define strprintf</div><div class="ttdef"><b>Definition:</b> <a href="tinyformat_8h_source.html#l01011">tinyformat.h:1011</a></div></div>
<div class="ttc" id="sign_8h_html"><div class="ttname"><a href="sign_8h.html">sign.h</a></div></div>
<div class="ttc" id="structCSpentIndexValue_html_a1f66a53ec4ef540b51e4787e842ae88c"><div class="ttname"><a href="structCSpentIndexValue.html#a1f66a53ec4ef540b51e4787e842ae88c">CSpentIndexValue::inputIndex</a></div><div class="ttdeci">unsigned int inputIndex</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00042">spentindex.h:42</a></div></div>
<div class="ttc" id="classCWallet_html_a4e6eb889f7638ed9695fdc0731581428"><div class="ttname"><a href="classCWallet.html#a4e6eb889f7638ed9695fdc0731581428">CWallet::cs_wallet</a></div><div class="ttdeci">CCriticalSection cs_wallet</div><div class="ttdef"><b>Definition:</b> <a href="wallet_8h_source.html#l00672">wallet.h:672</a></div></div>
<div class="ttc" id="classCDataStream_html_ab2633ac67f098dad30d03291741c2e42"><div class="ttname"><a href="classCDataStream.html#ab2633ac67f098dad30d03291741c2e42">CDataStream::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdef"><b>Definition:</b> <a href="streams_8h_source.html#l00123">streams.h:123</a></div></div>
<div class="ttc" id="rpc_2protocol_8h_html_af867221d51315471f28ed8cdac85deadad4f5ea69465f2a32fda9b9bf5e698803"><div class="ttname"><a href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadad4f5ea69465f2a32fda9b9bf5e698803">RPC_INTERNAL_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="rpc_2protocol_8h_source.html#l00037">protocol.h:37</a></div></div>
<div class="ttc" id="classCBitcoinAddress_html"><div class="ttname"><a href="classCBitcoinAddress.html">CBitcoinAddress</a></div><div class="ttdef"><b>Definition:</b> <a href="base58_8h_source.html#l00104">base58.h:104</a></div></div>
<div class="ttc" id="classUniValue_html_a8abe13a4663ccfda54ae2440ed445c5a"><div class="ttname"><a href="classUniValue.html#a8abe13a4663ccfda54ae2440ed445c5a">UniValue::isStr</a></div><div class="ttdeci">bool isStr() const</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8h_source.html#l00081">univalue.h:81</a></div></div>
<div class="ttc" id="amount_8cpp_html_aea7f12c6759c81efa2b9c7154708a4ca"><div class="ttname"><a href="amount_8cpp.html#aea7f12c6759c81efa2b9c7154708a4ca">CURRENCY_UNIT</a></div><div class="ttdeci">const std::string CURRENCY_UNIT</div><div class="ttdef"><b>Definition:</b> <a href="amount_8cpp_source.html#l00010">amount.cpp:10</a></div></div>
<div class="ttc" id="dash-config_8h_html_a8a1b716170d18826ac6a863ab76424af"><div class="ttname"><a href="dash-config_8h.html#a8a1b716170d18826ac6a863ab76424af">ENABLE_WALLET</a></div><div class="ttdeci">#define ENABLE_WALLET</div><div class="ttdef"><b>Definition:</b> <a href="dash-config_8h_source.html#l00030">dash-config.h:30</a></div></div>
<div class="ttc" id="validation_8cpp_html_a1ed8285f0fe3c6799c53265ce72552c8"><div class="ttname"><a href="validation_8cpp.html#a1ed8285f0fe3c6799c53265ce72552c8">cs_main</a></div><div class="ttdeci">CCriticalSection cs_main</div><div class="ttdef"><b>Definition:</b> <a href="validation_8cpp_source.html#l00062">validation.cpp:62</a></div></div>
<div class="ttc" id="server_8cpp_html_a4127509230eb67be5d765b4a95ddf392"><div class="ttname"><a href="server_8cpp.html#a4127509230eb67be5d765b4a95ddf392">ParseHashO</a></div><div class="ttdeci">uint256 ParseHashO(const UniValue &amp;o, string strKey)</div><div class="ttdef"><b>Definition:</b> <a href="server_8cpp_source.html#l00143">server.cpp:143</a></div></div>
<div class="ttc" id="classCCoins_html_aa645bc3d18f74e91430ac178a9d28ee4"><div class="ttname"><a href="classCCoins.html#aa645bc3d18f74e91430ac178a9d28ee4">CCoins::IsAvailable</a></div><div class="ttdeci">bool IsAvailable(unsigned int nPos) const</div><div class="ttdoc">check whether a particular output is still available </div><div class="ttdef"><b>Definition:</b> <a href="coins_8h_source.html#l00245">coins.h:245</a></div></div>
<div class="ttc" id="utilstrencodings_8h_html_ace13a819ca4e98c22847d26b3b357e75"><div class="ttname"><a href="utilstrencodings_8h.html#ace13a819ca4e98c22847d26b3b357e75">HexStr</a></div><div class="ttdeci">std::string HexStr(const T itbegin, const T itend, bool fSpaces=false)</div><div class="ttdef"><b>Definition:</b> <a href="utilstrencodings_8h_source.html#l00081">utilstrencodings.h:81</a></div></div>
<div class="ttc" id="classCTxOut_html_ab278ecef3817a972cb6bc5360d13f197"><div class="ttname"><a href="classCTxOut.html#ab278ecef3817a972cb6bc5360d13f197">CTxOut::nValue</a></div><div class="ttdeci">CAmount nValue</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00136">transaction.h:136</a></div></div>
<div class="ttc" id="rpc_2protocol_8h_html_af867221d51315471f28ed8cdac85deada9e05169dd202b16a07bc124bd6e451d5"><div class="ttname"><a href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deada9e05169dd202b16a07bc124bd6e451d5">RPC_TRANSACTION_REJECTED</a></div><div class="ttdef"><b>Definition:</b> <a href="rpc_2protocol_8h_source.html#l00056">protocol.h:56</a></div></div>
<div class="ttc" id="structCSpentIndexValue_html_a2aeee131cb911ca46d4a59daadf10c3e"><div class="ttname"><a href="structCSpentIndexValue.html#a2aeee131cb911ca46d4a59daadf10c3e">CSpentIndexValue::addressHash</a></div><div class="ttdeci">uint160 addressHash</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00046">spentindex.h:46</a></div></div>
<div class="ttc" id="classCMerkleBlock_html"><div class="ttname"><a href="classCMerkleBlock.html">CMerkleBlock</a></div><div class="ttdef"><b>Definition:</b> <a href="merkleblock_8h_source.html#l00124">merkleblock.h:124</a></div></div>
<div class="ttc" id="classCKeyID_html"><div class="ttname"><a href="classCKeyID.html">CKeyID</a></div><div class="ttdef"><b>Definition:</b> <a href="pubkey_8h_source.html#l00027">pubkey.h:27</a></div></div>
<div class="ttc" id="classCCoinsViewMemPool_html"><div class="ttname"><a href="classCCoinsViewMemPool.html">CCoinsViewMemPool</a></div><div class="ttdef"><b>Definition:</b> <a href="txmempool_8h_source.html#l00638">txmempool.h:638</a></div></div>
<div class="ttc" id="classCDataStream_html_a66409dbd4403682fe674e2e71173cab4"><div class="ttname"><a href="classCDataStream.html#a66409dbd4403682fe674e2e71173cab4">CDataStream::end</a></div><div class="ttdeci">const_iterator end() const</div><div class="ttdef"><b>Definition:</b> <a href="streams_8h_source.html#l00120">streams.h:120</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="classUniValue_html"><div class="ttname"><a href="classUniValue.html">UniValue</a></div><div class="ttdef"><b>Definition:</b> <a href="univalue_8h_source.html#l00019">univalue.h:19</a></div></div>
<div class="ttc" id="server_8cpp_html_a9ef4f8fb114508ceb861a0e8c3e0d26e"><div class="ttname"><a href="server_8cpp.html#a9ef4f8fb114508ceb861a0e8c3e0d26e">HelpExampleRpc</a></div><div class="ttdeci">std::string HelpExampleRpc(const std::string &amp;methodname, const std::string &amp;args)</div><div class="ttdef"><b>Definition:</b> <a href="server_8cpp_source.html#l00586">server.cpp:586</a></div></div>
<div class="ttc" id="rawtransaction_8cpp_html_aab9a57fd8f857122f587feee00a7757c"><div class="ttname"><a href="rawtransaction_8cpp.html#aab9a57fd8f857122f587feee00a7757c">getrawtransaction</a></div><div class="ttdeci">UniValue getrawtransaction(const UniValue &amp;params, bool fHelp)</div><div class="ttdef"><b>Definition:</b> <a href="rawtransaction_8cpp_source.html#l00144">rawtransaction.cpp:144</a></div></div>
<div class="ttc" id="standard_8cpp_html_a6948ee6aa422ed8a5ffe06ddc77a55d8"><div class="ttname"><a href="standard_8cpp.html#a6948ee6aa422ed8a5ffe06ddc77a55d8">ExtractDestinations</a></div><div class="ttdeci">bool ExtractDestinations(const CScript &amp;scriptPubKey, txnouttype &amp;typeRet, vector&lt; CTxDestination &gt; &amp;addressRet, int &amp;nRequiredRet)</div><div class="ttdef"><b>Definition:</b> <a href="standard_8cpp_source.html#l00194">standard.cpp:194</a></div></div>
<div class="ttc" id="activemasternode_8cpp_html_a8c747077ad84071cba8b87f34fe38920"><div class="ttname"><a href="activemasternode_8cpp.html#a8c747077ad84071cba8b87f34fe38920">pwalletMain</a></div><div class="ttdeci">CWallet * pwalletMain</div></div>
<div class="ttc" id="structCMutableTransaction_html_ad6b1a0a773293fd153a1d384923631da"><div class="ttname"><a href="structCMutableTransaction.html#ad6b1a0a773293fd153a1d384923631da">CMutableTransaction::vin</a></div><div class="ttdeci">std::vector&lt; CTxIn &gt; vin</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00306">transaction.h:306</a></div></div>
<div class="ttc" id="validation_8cpp_html_a9f00dd573bea95cab88337424573f7b2"><div class="ttname"><a href="validation_8cpp.html#a9f00dd573bea95cab88337424573f7b2">AcceptToMemoryPool</a></div><div class="ttdeci">bool AcceptToMemoryPool(CTxMemPool &amp;pool, CValidationState &amp;state, const CTransaction &amp;tx, bool fLimitFree, bool *pfMissingInputs, bool fOverrideMempoolLimit, bool fRejectAbsurdFee, bool fDryRun)</div><div class="ttdef"><b>Definition:</b> <a href="validation_8cpp_source.html#l01014">validation.cpp:1014</a></div></div>
<div class="ttc" id="utilstrencodings_8cpp_html_aa4e3553d2b2fe693c106f4296685f75c"><div class="ttname"><a href="utilstrencodings_8cpp.html#aa4e3553d2b2fe693c106f4296685f75c">IsHex</a></div><div class="ttdeci">bool IsHex(const string &amp;str)</div><div class="ttdef"><b>Definition:</b> <a href="utilstrencodings_8cpp_source.html#l00059">utilstrencodings.cpp:59</a></div></div>
<div class="ttc" id="interpreter_8h_html_aaf8fd5f0e57d456151c951e0f3715fc4ac68c7df6528b3001624e56b2de3826de"><div class="ttname"><a href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4ac68c7df6528b3001624e56b2de3826de">SIGHASH_ALL</a></div><div class="ttdef"><b>Definition:</b> <a href="interpreter_8h_source.html#l00024">interpreter.h:24</a></div></div>
<div class="ttc" id="classCValidationState_html"><div class="ttname"><a href="classCValidationState.html">CValidationState</a></div><div class="ttdef"><b>Definition:</b> <a href="consensus_2validation_8h_source.html#l00022">validation.h:22</a></div></div>
<div class="ttc" id="classUniValue_html_a2f9803e567ede73e88302b01e394cc63aa95a3bc9bbb82964abef922146cc73c4"><div class="ttname"><a href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aa95a3bc9bbb82964abef922146cc73c4">UniValue::VARR</a></div><div class="ttdef"><b>Definition:</b> <a href="univalue_8h_source.html#l00021">univalue.h:21</a></div></div>
<div class="ttc" id="rawtransaction_8cpp_html_a719639f5d779706aae5c283784b3fd66"><div class="ttname"><a href="rawtransaction_8cpp.html#a719639f5d779706aae5c283784b3fd66">TxToJSON</a></div><div class="ttdeci">void TxToJSON(const CTransaction &amp;tx, const uint256 hashBlock, UniValue &amp;entry)</div><div class="ttdef"><b>Definition:</b> <a href="rawtransaction_8cpp_source.html#l00064">rawtransaction.cpp:64</a></div></div>
<div class="ttc" id="wallet_8h_html"><div class="ttname"><a href="wallet_8h.html">wallet.h</a></div></div>
<div class="ttc" id="sign_8cpp_html_ad2e697991d13f121cd65177962b9074d"><div class="ttname"><a href="sign_8cpp.html#ad2e697991d13f121cd65177962b9074d">CombineSignatures</a></div><div class="ttdeci">static CScript CombineSignatures(const CScript &amp;scriptPubKey, const BaseSignatureChecker &amp;checker, const txnouttype txType, const vector&lt; valtype &gt; &amp;vSolutions, vector&lt; valtype &gt; &amp;sigs1, vector&lt; valtype &gt; &amp;sigs2)</div><div class="ttdef"><b>Definition:</b> <a href="sign_8cpp_source.html#l00213">sign.cpp:213</a></div></div>
<div class="ttc" id="script_8h_html"><div class="ttname"><a href="script_8h.html">script.h</a></div></div>
<div class="ttc" id="rawtransaction_8cpp_html_aa18bf1f4cd71863cd807845a220ad475"><div class="ttname"><a href="rawtransaction_8cpp.html#aa18bf1f4cd71863cd807845a220ad475">TxInErrorToJSON</a></div><div class="ttdeci">static void TxInErrorToJSON(const CTxIn &amp;txin, UniValue &amp;vErrorsRet, const std::string &amp;strMessage)</div><div class="ttdef"><b>Definition:</b> <a href="rawtransaction_8cpp_source.html#l00577">rawtransaction.cpp:577</a></div></div>
<div class="ttc" id="classUniValue_html_a944cd1b59b040cd24c9f46b55a68d49a"><div class="ttname"><a href="classUniValue.html#a944cd1b59b040cd24c9f46b55a68d49a">UniValue::push_back</a></div><div class="ttdeci">bool push_back(const UniValue &amp;val)</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8cpp_source.html#l00176">univalue.cpp:176</a></div></div>
<div class="ttc" id="classbase__blob_html_aba89c6722866a5850882a509d27d7bbd"><div class="ttname"><a href="classbase__blob.html#aba89c6722866a5850882a509d27d7bbd">base_blob::IsNull</a></div><div class="ttdeci">bool IsNull() const</div><div class="ttdef"><b>Definition:</b> <a href="uint256_8h_source.html#l00033">uint256.h:33</a></div></div>
<div class="ttc" id="server_8cpp_html_a513e384f1d458abddd1bf9be05125947"><div class="ttname"><a href="server_8cpp.html#a513e384f1d458abddd1bf9be05125947">ValueFromAmount</a></div><div class="ttdeci">UniValue ValueFromAmount(const CAmount &amp;amount)</div><div class="ttdef"><b>Definition:</b> <a href="server_8cpp_source.html#l00122">server.cpp:122</a></div></div>
<div class="ttc" id="rpc_2protocol_8h_html_af867221d51315471f28ed8cdac85deadab38a9a653209a57acfc9a551c310e4dc"><div class="ttname"><a href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadab38a9a653209a57acfc9a551c310e4dc">RPC_INVALID_PARAMETER</a></div><div class="ttdoc">Ran out of memory during operation. </div><div class="ttdef"><b>Definition:</b> <a href="rpc_2protocol_8h_source.html#l00046">protocol.h:46</a></div></div>
<div class="ttc" id="univalue_8h_html_a33625d562f1ef5f44ceb171d5c8f2a85"><div class="ttname"><a href="univalue_8h.html#a33625d562f1ef5f44ceb171d5c8f2a85">find_value</a></div><div class="ttdeci">const UniValue &amp; find_value(const UniValue &amp;obj, const std::string &amp;name)</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8cpp_source.html#l00280">univalue.cpp:280</a></div></div>
<div class="ttc" id="classUniValue_html_a2f9803e567ede73e88302b01e394cc63af6f71c0fb8fb8fd72d0ec30d8ec9e1b8"><div class="ttname"><a href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63af6f71c0fb8fb8fd72d0ec30d8ec9e1b8">UniValue::VBOOL</a></div><div class="ttdef"><b>Definition:</b> <a href="univalue_8h_source.html#l00021">univalue.h:21</a></div></div>
<div class="ttc" id="namespacegen__base58__test__vectors_html_a8d12b07536a476098e3d74b6a79dfc9a"><div class="ttname"><a href="namespacegen__base58__test__vectors.html#a8d12b07536a476098e3d74b6a79dfc9a">gen_base58_test_vectors.data</a></div><div class="ttdeci">data</div><div class="ttdef"><b>Definition:</b> <a href="gen__base58__test__vectors_8py_source.html#l00123">gen_base58_test_vectors.py:123</a></div></div>
<div class="ttc" id="classCBlock_html_a9b6508d662722775f3029b980b382b66"><div class="ttname"><a href="classCBlock.html#a9b6508d662722775f3029b980b382b66">CBlock::vtx</a></div><div class="ttdeci">std::vector&lt; CTransaction &gt; vtx</div><div class="ttdef"><b>Definition:</b> <a href="block_8h_source.html#l00077">block.h:77</a></div></div>
<div class="ttc" id="classCBase58Data_html_a7dc91af403ca02694b3247b15604e220"><div class="ttname"><a href="classCBase58Data.html#a7dc91af403ca02694b3247b15604e220">CBase58Data::ToString</a></div><div class="ttdeci">std::string ToString() const</div><div class="ttdef"><b>Definition:</b> <a href="base58_8cpp_source.html#l00193">base58.cpp:193</a></div></div>
<div class="ttc" id="interpreter_8h_html_aaf8fd5f0e57d456151c951e0f3715fc4acaba9b1f029a1628196345fce5667f6f"><div class="ttname"><a href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4acaba9b1f029a1628196345fce5667f6f">SIGHASH_NONE</a></div><div class="ttdef"><b>Definition:</b> <a href="interpreter_8h_source.html#l00025">interpreter.h:25</a></div></div>
<div class="ttc" id="classUniValue_html_a34bd3bc2de335486d2060ff907b317d0"><div class="ttname"><a href="classUniValue.html#a34bd3bc2de335486d2060ff907b317d0">UniValue::get_int64</a></div><div class="ttdeci">int64_t get_int64() const</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8cpp_source.html#l00327">univalue.cpp:327</a></div></div>
<div class="ttc" id="classCBasicKeyStore_html"><div class="ttname"><a href="classCBasicKeyStore.html">CBasicKeyStore</a></div><div class="ttdef"><b>Definition:</b> <a href="keystore_8h_source.html#l00056">keystore.h:56</a></div></div>
<div class="ttc" id="script__error_8cpp_html_a27aa7ed633799d723babe956a484db09"><div class="ttname"><a href="script__error_8cpp.html#a27aa7ed633799d723babe956a484db09">ScriptErrorString</a></div><div class="ttdeci">const char * ScriptErrorString(const ScriptError serror)</div><div class="ttdef"><b>Definition:</b> <a href="script__error_8cpp_source.html#l00008">script_error.cpp:8</a></div></div>
<div class="ttc" id="classCCoinsViewCache_html"><div class="ttname"><a href="classCCoinsViewCache.html">CCoinsViewCache</a></div><div class="ttdef"><b>Definition:</b> <a href="coins_8h_source.html#l00380">coins.h:380</a></div></div>
<div class="ttc" id="classCChain_html_af1786dc229c215dea7f727c11df2c8dc"><div class="ttname"><a href="classCChain.html#af1786dc229c215dea7f727c11df2c8dc">CChain::Contains</a></div><div class="ttdeci">bool Contains(const CBlockIndex *pindex) const</div><div class="ttdef"><b>Definition:</b> <a href="chain_8h_source.html#l00384">chain.h:384</a></div></div>
<div class="ttc" id="classCTxIn_html_aba540fd902366210a6ad6cd9a18fe763"><div class="ttname"><a href="classCTxIn.html#aba540fd902366210a6ad6cd9a18fe763">CTxIn::scriptSig</a></div><div class="ttdeci">CScript scriptSig</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00062">transaction.h:62</a></div></div>
<div class="ttc" id="amount_8h_html_a4eaf3a5239714d8c45b851527f7cb564"><div class="ttname"><a href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a></div><div class="ttdeci">int64_t CAmount</div><div class="ttdef"><b>Definition:</b> <a href="amount_8h_source.html#l00014">amount.h:14</a></div></div>
<div class="ttc" id="structCSpentIndexValue_html_ad942d5cdcbe531184ca8050ba583fa97"><div class="ttname"><a href="structCSpentIndexValue.html#ad942d5cdcbe531184ca8050ba583fa97">CSpentIndexValue::addressType</a></div><div class="ttdeci">int addressType</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00045">spentindex.h:45</a></div></div>
<div class="ttc" id="classCTxMemPool_html_a8b7a13b5289ab839d4460f41a7da9789"><div class="ttname"><a href="classCTxMemPool.html#a8b7a13b5289ab839d4460f41a7da9789">CTxMemPool::exists</a></div><div class="ttdeci">bool exists(uint256 hash) const</div><div class="ttdef"><b>Definition:</b> <a href="txmempool_8h_source.html#l00563">txmempool.h:563</a></div></div>
<div class="ttc" id="classprevector_html_aab7f6e13a3cac85cc340fc6b90c5365c"><div class="ttname"><a href="classprevector.html#aab7f6e13a3cac85cc340fc6b90c5365c">prevector::end</a></div><div class="ttdeci">iterator end()</div><div class="ttdef"><b>Definition:</b> <a href="prevector_8h_source.html#l00272">prevector.h:272</a></div></div>
<div class="ttc" id="base58_8h_html"><div class="ttname"><a href="base58_8h.html">base58.h</a></div></div>
<div class="ttc" id="utilstrencodings_8h_html"><div class="ttname"><a href="utilstrencodings_8h.html">utilstrencodings.h</a></div></div>
<div class="ttc" id="validation_8cpp_html_a1821834b8f7837b469f7f91a14c20042"><div class="ttname"><a href="validation_8cpp.html#a1821834b8f7837b469f7f91a14c20042">pcoinsTip</a></div><div class="ttdeci">CCoinsViewCache * pcoinsTip</div><div class="ttdef"><b>Definition:</b> <a href="validation_8cpp_source.html#l00187">validation.cpp:187</a></div></div>
<div class="ttc" id="sync_8h_html_a35644e2b75a93da0cb0f6c768f34efa8"><div class="ttname"><a href="sync_8h.html#a35644e2b75a93da0cb0f6c768f34efa8">LOCK2</a></div><div class="ttdeci">#define LOCK2(cs1, cs2)</div><div class="ttdef"><b>Definition:</b> <a href="sync_8h_source.html#l00169">sync.h:169</a></div></div>
<div class="ttc" id="classCCoins_html_a1dcea1a6da9b25642337e286f9f59b03"><div class="ttname"><a href="classCCoins.html#a1dcea1a6da9b25642337e286f9f59b03">CCoins::vout</a></div><div class="ttdeci">std::vector&lt; CTxOut &gt; vout</div><div class="ttdoc">unspent transaction outputs; spent outputs are .IsNull(); spent outputs at the end of the array are d...</div><div class="ttdef"><b>Definition:</b> <a href="coins_8h_source.html#l00080">coins.h:80</a></div></div>
<div class="ttc" id="keystore_8h_html"><div class="ttname"><a href="keystore_8h.html">keystore.h</a></div></div>
<div class="ttc" id="script_8h_html_a63e349a6089a54da9fe09a3d858648bdad436c18b194473f5ec64c28b774e41b3"><div class="ttname"><a href="script_8h.html#a63e349a6089a54da9fe09a3d858648bdad436c18b194473f5ec64c28b774e41b3">OP_RETURN</a></div><div class="ttdef"><b>Definition:</b> <a href="script_8h_source.html#l00079">script.h:79</a></div></div>
<div class="ttc" id="classUniValue_html_a49a6ac464f3c2d918e7379d3203c7337"><div class="ttname"><a href="classUniValue.html#a49a6ac464f3c2d918e7379d3203c7337">UniValue::get_obj</a></div><div class="ttdeci">const UniValue &amp; get_obj() const</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8cpp_source.html#l00347">univalue.cpp:347</a></div></div>
<div class="ttc" id="script__error_8h_html_a3150eb7362e5d1e0732dd10c973a0eb5aad599193e51936be396937d4a6e32780"><div class="ttname"><a href="script__error_8h.html#a3150eb7362e5d1e0732dd10c973a0eb5aad599193e51936be396937d4a6e32780">SCRIPT_ERR_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="script__error_8h_source.html#l00011">script_error.h:11</a></div></div>
<div class="ttc" id="classCTxMemPool_html_ac7ee8c06837c7d2688e2d7e3d071bdbb"><div class="ttname"><a href="classCTxMemPool.html#ac7ee8c06837c7d2688e2d7e3d071bdbb">CTxMemPool::cs</a></div><div class="ttdeci">CCriticalSection cs</div><div class="ttdef"><b>Definition:</b> <a href="txmempool_8h_source.html#l00402">txmempool.h:402</a></div></div>
<div class="ttc" id="txmempool_8h_html"><div class="ttname"><a href="txmempool_8h.html">txmempool.h</a></div></div>
<div class="ttc" id="core__io_8h_html_a9236ffa581211a68db7f7447faa6c27c"><div class="ttname"><a href="core__io_8h.html#a9236ffa581211a68db7f7447faa6c27c">ScriptToAsmStr</a></div><div class="ttdeci">std::string ScriptToAsmStr(const CScript &amp;script, const bool fAttemptSighashDecode=false)</div><div class="ttdef"><b>Definition:</b> <a href="core__write_8cpp_source.html#l00075">core_write.cpp:75</a></div></div>
<div class="ttc" id="classCTransaction_html_abda727662de83b84dc2ef56d30690cb1"><div class="ttname"><a href="classCTransaction.html#abda727662de83b84dc2ef56d30690cb1">CTransaction::nVersion</a></div><div class="ttdeci">const int32_t nVersion</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00232">transaction.h:232</a></div></div>
<div class="ttc" id="classCTxIn_html_aed9312051a25380cbd7f123408ab7c20"><div class="ttname"><a href="classCTxIn.html#aed9312051a25380cbd7f123408ab7c20">CTxIn::prevout</a></div><div class="ttdeci">COutPoint prevout</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00061">transaction.h:61</a></div></div>
<div class="ttc" id="serialize_8h_html_a48239e478ae730373d1984fe304ca025"><div class="ttname"><a href="serialize_8h.html#a48239e478ae730373d1984fe304ca025">GetSerializeSize</a></div><div class="ttdeci">unsigned int GetSerializeSize(char a, int, int=0)</div><div class="ttdef"><b>Definition:</b> <a href="serialize_8h_source.html#l00202">serialize.h:202</a></div></div>
<div class="ttc" id="classUniValue_html_a6832baa1a837e46e9800e6125e5f8d26"><div class="ttname"><a href="classUniValue.html#a6832baa1a837e46e9800e6125e5f8d26">UniValue::getKeys</a></div><div class="ttdeci">std::vector&lt; std::string &gt; getKeys() const</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8cpp_source.html#l00289">univalue.cpp:289</a></div></div>
<div class="ttc" id="structCSpentIndexValue_html"><div class="ttname"><a href="structCSpentIndexValue.html">CSpentIndexValue</a></div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00040">spentindex.h:40</a></div></div>
<div class="ttc" id="classCTransaction_html"><div class="ttname"><a href="classCTransaction.html">CTransaction</a></div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00210">transaction.h:210</a></div></div>
<div class="ttc" id="structCSpentIndexValue_html_aad16faff9e2d74359d977986911bac33"><div class="ttname"><a href="structCSpentIndexValue.html#aad16faff9e2d74359d977986911bac33">CSpentIndexValue::txid</a></div><div class="ttdeci">uint256 txid</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00041">spentindex.h:41</a></div></div>
<div class="ttc" id="classCOutPoint_html"><div class="ttname"><a href="classCOutPoint.html">COutPoint</a></div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00015">transaction.h:15</a></div></div>
<div class="ttc" id="classMutableTransactionSignatureChecker_html"><div class="ttname"><a href="classMutableTransactionSignatureChecker.html">MutableTransactionSignatureChecker</a></div><div class="ttdef"><b>Definition:</b> <a href="interpreter_8h_source.html#l00132">interpreter.h:132</a></div></div>
<div class="ttc" id="classCDataStream_html_a2355d11752d8622badfbc03e9ed192fd"><div class="ttname"><a href="classCDataStream.html#a2355d11752d8622badfbc03e9ed192fd">CDataStream::begin</a></div><div class="ttdeci">const_iterator begin() const</div><div class="ttdef"><b>Definition:</b> <a href="streams_8h_source.html#l00118">streams.h:118</a></div></div>
<div class="ttc" id="sync_8h_html_a911fe23f057c2fe5aad629162d6c99d0"><div class="ttname"><a href="sync_8h.html#a911fe23f057c2fe5aad629162d6c99d0">LOCK</a></div><div class="ttdeci">#define LOCK(cs)</div><div class="ttdef"><b>Definition:</b> <a href="sync_8h_source.html#l00168">sync.h:168</a></div></div>
<div class="ttc" id="classCKeyStore_html"><div class="ttname"><a href="classCKeyStore.html">CKeyStore</a></div><div class="ttdef"><b>Definition:</b> <a href="keystore_8h_source.html#l00020">keystore.h:20</a></div></div>
<div class="ttc" id="instantx_8h_html"><div class="ttname"><a href="instantx_8h.html">instantx.h</a></div></div>
<div class="ttc" id="univalue_8h_html"><div class="ttname"><a href="univalue_8h.html">univalue.h</a></div></div>
<div class="ttc" id="policy_8h_html"><div class="ttname"><a href="policy_8h.html">policy.h</a></div></div>
<div class="ttc" id="consensus_2validation_8h_html"><div class="ttname"><a href="consensus_2validation_8h.html">validation.h</a></div></div>
<div class="ttc" id="server_8h_html"><div class="ttname"><a href="server_8h.html">server.h</a></div></div>
<div class="ttc" id="uint256_8h_html_a52e679560cc1ebf68f878ed69e38f259"><div class="ttname"><a href="uint256_8h.html#a52e679560cc1ebf68f878ed69e38f259">uint256S</a></div><div class="ttdeci">uint256 uint256S(const char *str)</div><div class="ttdef"><b>Definition:</b> <a href="uint256_8h_source.html#l00140">uint256.h:140</a></div></div>
<div class="ttc" id="rawtransaction_8cpp_html_a20a66f1d55549861fea58975ebe5c3fd"><div class="ttname"><a href="rawtransaction_8cpp.html#a20a66f1d55549861fea58975ebe5c3fd">signrawtransaction</a></div><div class="ttdeci">UniValue signrawtransaction(const UniValue &amp;params, bool fHelp)</div><div class="ttdef"><b>Definition:</b> <a href="rawtransaction_8cpp_source.html#l00588">rawtransaction.cpp:588</a></div></div>
<div class="ttc" id="rawtransaction_8cpp_html_a4724b5b7ead10882a61f7c8830016e75"><div class="ttname"><a href="rawtransaction_8cpp.html#a4724b5b7ead10882a61f7c8830016e75">createrawtransaction</a></div><div class="ttdeci">UniValue createrawtransaction(const UniValue &amp;params, bool fHelp)</div><div class="ttdef"><b>Definition:</b> <a href="rawtransaction_8cpp_source.html#l00358">rawtransaction.cpp:358</a></div></div>
<div class="ttc" id="classUniValue_html_a3661be0f5580daceb23e5338e3a0df22"><div class="ttname"><a href="classUniValue.html#a3661be0f5580daceb23e5338e3a0df22">UniValue::isNull</a></div><div class="ttdeci">bool isNull() const</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8h_source.html#l00077">univalue.h:77</a></div></div>
<div class="ttc" id="classCBasicKeyStore_html_a56249ce3540398999cd397eeb662e836"><div class="ttname"><a href="classCBasicKeyStore.html#a56249ce3540398999cd397eeb662e836">CBasicKeyStore::AddCScript</a></div><div class="ttdeci">virtual bool AddCScript(const CScript &amp;redeemScript)</div><div class="ttdoc">Support for BIP 0013 : see https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki. </div><div class="ttdef"><b>Definition:</b> <a href="keystore_8cpp_source.html#l00041">keystore.cpp:41</a></div></div>
<div class="ttc" id="classCChain_html_ad4758bc8872ce065a9579f77c3171d40"><div class="ttname"><a href="classCChain.html#ad4758bc8872ce065a9579f77c3171d40">CChain::Height</a></div><div class="ttdeci">int Height() const</div><div class="ttdef"><b>Definition:</b> <a href="chain_8h_source.html#l00397">chain.h:397</a></div></div>
<div class="ttc" id="structCSpentIndexValue_html_ad2e454112b9830af46480a9ee3040fb4"><div class="ttname"><a href="structCSpentIndexValue.html#ad2e454112b9830af46480a9ee3040fb4">CSpentIndexValue::blockHeight</a></div><div class="ttdeci">int blockHeight</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00043">spentindex.h:43</a></div></div>
<div class="ttc" id="rawtransaction_8cpp_html_abd3d6aa800b863a2e503ef322d680d9b"><div class="ttname"><a href="rawtransaction_8cpp.html#abd3d6aa800b863a2e503ef322d680d9b">decoderawtransaction</a></div><div class="ttdeci">UniValue decoderawtransaction(const UniValue &amp;params, bool fHelp)</div><div class="ttdef"><b>Definition:</b> <a href="rawtransaction_8cpp_source.html#l00460">rawtransaction.cpp:460</a></div></div>
<div class="ttc" id="instantx_8cpp_html_a6ed4b104bfd9f775e0c0a3524a6b4955"><div class="ttname"><a href="instantx_8cpp.html#a6ed4b104bfd9f775e0c0a3524a6b4955">instantsend</a></div><div class="ttdeci">CInstantSend instantsend</div><div class="ttdef"><b>Definition:</b> <a href="instantx_8cpp_source.html#l00030">instantx.cpp:30</a></div></div>
<div class="ttc" id="standard_8cpp_html_a998a2df1a42dc68c4cffa9933aa713c2"><div class="ttname"><a href="standard_8cpp.html#a998a2df1a42dc68c4cffa9933aa713c2">GetTxnOutputType</a></div><div class="ttdeci">const char * GetTxnOutputType(txnouttype t)</div><div class="ttdef"><b>Definition:</b> <a href="standard_8cpp_source.html#l00024">standard.cpp:24</a></div></div>
<div class="ttc" id="script__error_8h_html"><div class="ttname"><a href="script__error_8h.html">script_error.h</a></div></div>
<div class="ttc" id="classCCoinsViewBacked_html_a7eaddfbfd401a95c2fda2a8d8feaaf73"><div class="ttname"><a href="classCCoinsViewBacked.html#a7eaddfbfd401a95c2fda2a8d8feaaf73">CCoinsViewBacked::SetBackend</a></div><div class="ttdeci">void SetBackend(CCoinsView &amp;viewIn)</div><div class="ttdef"><b>Definition:</b> <a href="coins_8cpp_source.html#l00055">coins.cpp:55</a></div></div>
<div class="ttc" id="coins_8h_html"><div class="ttname"><a href="coins_8h.html">coins.h</a></div></div>
<div class="ttc" id="classCDataStream_html"><div class="ttname"><a href="classCDataStream.html">CDataStream</a></div><div class="ttdef"><b>Definition:</b> <a href="streams_8h_source.html#l00030">streams.h:30</a></div></div>
<div class="ttc" id="validation_8cpp_html_adb31995c443ae2aef1d2f1c350de0419"><div class="ttname"><a href="validation_8cpp.html#adb31995c443ae2aef1d2f1c350de0419">chainActive</a></div><div class="ttdeci">CChain chainActive</div><div class="ttdef"><b>Definition:</b> <a href="validation_8cpp_source.html#l00065">validation.cpp:65</a></div></div>
<div class="ttc" id="classbase__blob_html_a7a0d25782830d8b087c4da839f3ccdeb"><div class="ttname"><a href="classbase__blob.html#a7a0d25782830d8b087c4da839f3ccdeb">base_blob::ToString</a></div><div class="ttdeci">std::string ToString() const</div><div class="ttdef"><b>Definition:</b> <a href="uint256_8cpp_source.html#l00065">uint256.cpp:65</a></div></div>
<div class="ttc" id="classCCoinsViewCache_html_ab67c0d489873ed735c4fc52aa66f0830"><div class="ttname"><a href="classCCoinsViewCache.html#ab67c0d489873ed735c4fc52aa66f0830">CCoinsViewCache::ModifyCoins</a></div><div class="ttdeci">CCoinsModifier ModifyCoins(const uint256 &amp;txid)</div><div class="ttdef"><b>Definition:</b> <a href="coins_8cpp_source.html#l00099">coins.cpp:99</a></div></div>
<div class="ttc" id="rpc_2protocol_8h_html_af867221d51315471f28ed8cdac85deadafb8d27e000f4a668b66974c73256a576"><div class="ttname"><a href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadafb8d27e000f4a668b66974c73256a576">RPC_INVALID_ADDRESS_OR_KEY</a></div><div class="ttdoc">Unexpected type was passed as parameter. </div><div class="ttdef"><b>Definition:</b> <a href="rpc_2protocol_8h_source.html#l00044">protocol.h:44</a></div></div>
<div class="ttc" id="standard_8cpp_html_ae40f28d3b46c21033f6ee1f1200d0321"><div class="ttname"><a href="standard_8cpp.html#ae40f28d3b46c21033f6ee1f1200d0321">GetScriptForDestination</a></div><div class="ttdeci">CScript GetScriptForDestination(const CTxDestination &amp;dest)</div><div class="ttdef"><b>Definition:</b> <a href="standard_8cpp_source.html#l00262">standard.cpp:262</a></div></div>
<div class="ttc" id="server_8cpp_html_a26bafe3d526ee8cbc84b3c0b0dc3a43b"><div class="ttname"><a href="server_8cpp.html#a26bafe3d526ee8cbc84b3c0b0dc3a43b">HelpExampleCli</a></div><div class="ttdeci">std::string HelpExampleCli(const std::string &amp;methodname, const std::string &amp;args)</div><div class="ttdef"><b>Definition:</b> <a href="server_8cpp_source.html#l00581">server.cpp:581</a></div></div>
<div class="ttc" id="server_8h_html_abcfbb0ad9335791f2832c01209b8f12d"><div class="ttname"><a href="server_8h.html#abcfbb0ad9335791f2832c01209b8f12d">HelpRequiringPassphrase</a></div><div class="ttdeci">std::string HelpRequiringPassphrase()</div><div class="ttdef"><b>Definition:</b> <a href="rpcwallet_8cpp_source.html#l00035">rpcwallet.cpp:35</a></div></div>
<div class="ttc" id="validation_8cpp_html_ae88ea23b2e483753f7e055283007dd77"><div class="ttname"><a href="validation_8cpp.html#ae88ea23b2e483753f7e055283007dd77">GetSpentIndex</a></div><div class="ttdeci">bool GetSpentIndex(CSpentIndexKey &amp;key, CSpentIndexValue &amp;value)</div><div class="ttdef"><b>Definition:</b> <a href="validation_8cpp_source.html#l01041">validation.cpp:1041</a></div></div>
<div class="ttc" id="univalue_8h_html_a884f0e316157c5d85f6cff80c442bf1a"><div class="ttname"><a href="univalue_8h.html#a884f0e316157c5d85f6cff80c442bf1a">Pair</a></div><div class="ttdeci">static std::pair&lt; std::string, UniValue &gt; Pair(const char *cKey, const char *cVal)</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8h_source.html#l00166">univalue.h:166</a></div></div>
<div class="ttc" id="server_8cpp_html_abee2131e97f3e3d0ab3bdc47916e29f4"><div class="ttname"><a href="server_8cpp.html#abee2131e97f3e3d0ab3bdc47916e29f4">AmountFromValue</a></div><div class="ttdeci">CAmount AmountFromValue(const UniValue &amp;value)</div><div class="ttdef"><b>Definition:</b> <a href="server_8cpp_source.html#l00110">server.cpp:110</a></div></div>
<div class="ttc" id="structCSpentIndexValue_html_a4dc408ea5e141e426395091a692f39cc"><div class="ttname"><a href="structCSpentIndexValue.html#a4dc408ea5e141e426395091a692f39cc">CSpentIndexValue::satoshis</a></div><div class="ttdeci">CAmount satoshis</div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00044">spentindex.h:44</a></div></div>
<div class="ttc" id="classCValidationState_html_a01490c3326ac7d47a64976747060ac46"><div class="ttname"><a href="classCValidationState.html#a01490c3326ac7d47a64976747060ac46">CValidationState::GetRejectCode</a></div><div class="ttdeci">unsigned int GetRejectCode() const</div><div class="ttdef"><b>Definition:</b> <a href="consensus_2validation_8h_source.html#l00080">validation.h:80</a></div></div>
<div class="ttc" id="interpreter_8cpp_html_a56bc5c34addf9d85b8b7637f3738a125"><div class="ttname"><a href="interpreter_8cpp.html#a56bc5c34addf9d85b8b7637f3738a125">VerifyScript</a></div><div class="ttdeci">bool VerifyScript(const CScript &amp;scriptSig, const CScript &amp;scriptPubKey, unsigned int flags, const BaseSignatureChecker &amp;checker, ScriptError *serror)</div><div class="ttdef"><b>Definition:</b> <a href="interpreter_8cpp_source.html#l01242">interpreter.cpp:1242</a></div></div>
<div class="ttc" id="classCTxOut_html_a25bf3f2f4befb22a6a0be45784fe57e2"><div class="ttname"><a href="classCTxOut.html#a25bf3f2f4befb22a6a0be45784fe57e2">CTxOut::scriptPubKey</a></div><div class="ttdeci">CScript scriptPubKey</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00137">transaction.h:137</a></div></div>
<div class="ttc" id="server_8cpp_html_a3b599dde3c08498ac796a4ad8109c1d5"><div class="ttname"><a href="server_8cpp.html#a3b599dde3c08498ac796a4ad8109c1d5">ParseHashV</a></div><div class="ttdeci">uint256 ParseHashV(const UniValue &amp;v, string strName)</div><div class="ttdef"><b>Definition:</b> <a href="server_8cpp_source.html#l00132">server.cpp:132</a></div></div>
<div class="ttc" id="server_8cpp_html_a453cb45836e5657fbe18fc071f7434f7"><div class="ttname"><a href="server_8cpp.html#a453cb45836e5657fbe18fc071f7434f7">RPCTypeCheckObj</a></div><div class="ttdeci">void RPCTypeCheckObj(const UniValue &amp;o, const map&lt; string, UniValue::VType &gt; &amp;typesExpected, bool fAllowNull)</div><div class="ttdef"><b>Definition:</b> <a href="server_8cpp_source.html#l00091">server.cpp:91</a></div></div>
<div class="ttc" id="structCMutableTransaction_html_aca14a252c78e4af2dfe68d7ea67a77dc"><div class="ttname"><a href="structCMutableTransaction.html#aca14a252c78e4af2dfe68d7ea67a77dc">CMutableTransaction::vout</a></div><div class="ttdeci">std::vector&lt; CTxOut &gt; vout</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00307">transaction.h:307</a></div></div>
<div class="ttc" id="chain_8h_html"><div class="ttname"><a href="chain_8h.html">chain.h</a></div></div>
<div class="ttc" id="classCCoinsModifier_html"><div class="ttname"><a href="classCCoinsModifier.html">CCoinsModifier</a></div><div class="ttdef"><b>Definition:</b> <a href="coins_8h_source.html#l00364">coins.h:364</a></div></div>
<div class="ttc" id="classCCoinsView_html"><div class="ttname"><a href="classCCoinsView.html">CCoinsView</a></div><div class="ttdef"><b>Definition:</b> <a href="coins_8h_source.html#l00315">coins.h:315</a></div></div>
<div class="ttc" id="structCMutableTransaction_html_ae9685a37d424cd00e3badda28260c848"><div class="ttname"><a href="structCMutableTransaction.html#ae9685a37d424cd00e3badda28260c848">CMutableTransaction::nLockTime</a></div><div class="ttdeci">uint32_t nLockTime</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00308">transaction.h:308</a></div></div>
<div class="ttc" id="classCBitcoinSecret_html_a4d6bf559d092e6d47f8001c7171096df"><div class="ttname"><a href="classCBitcoinSecret.html#a4d6bf559d092e6d47f8001c7171096df">CBitcoinSecret::GetKey</a></div><div class="ttdeci">CKey GetKey()</div><div class="ttdef"><b>Definition:</b> <a href="base58_8cpp_source.html#l00314">base58.cpp:314</a></div></div>
<div class="ttc" id="standard_8h_html_a750f89f617f934820d5371be790e09ad"><div class="ttname"><a href="standard_8h.html#a750f89f617f934820d5371be790e09ad">txnouttype</a></div><div class="ttdeci">txnouttype</div><div class="ttdef"><b>Definition:</b> <a href="standard_8h_source.html#l00045">standard.h:45</a></div></div>
<div class="ttc" id="classuint256_html"><div class="ttname"><a href="classuint256.html">uint256</a></div><div class="ttdef"><b>Definition:</b> <a href="uint256_8h_source.html#l00114">uint256.h:114</a></div></div>
<div class="ttc" id="rawtransaction_8cpp_html_a962b2890c7be4b92841eb288e5a2aca5"><div class="ttname"><a href="rawtransaction_8cpp.html#a962b2890c7be4b92841eb288e5a2aca5">sendrawtransaction</a></div><div class="ttdeci">UniValue sendrawtransaction(const UniValue &amp;params, bool fHelp)</div><div class="ttdef"><b>Definition:</b> <a href="rawtransaction_8cpp_source.html#l00830">rawtransaction.cpp:830</a></div></div>
<div class="ttc" id="core__io_8h_html_a143951d3e5f8c1f57c9825187c426270"><div class="ttname"><a href="core__io_8h.html#a143951d3e5f8c1f57c9825187c426270">EncodeHexTx</a></div><div class="ttdeci">std::string EncodeHexTx(const CTransaction &amp;tx)</div><div class="ttdef"><b>Definition:</b> <a href="core__write_8cpp_source.html#l00119">core_write.cpp:119</a></div></div>
<div class="ttc" id="classCTransaction_html_ad64447ea044ec850313696fc99412d95"><div class="ttname"><a href="classCTransaction.html#ad64447ea044ec850313696fc99412d95">CTransaction::vin</a></div><div class="ttdeci">const std::vector&lt; CTxIn &gt; vin</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00233">transaction.h:233</a></div></div>
<div class="ttc" id="classUniValue_html_a2f9803e567ede73e88302b01e394cc63a4d17ac56db012de25e26ac62daf3f475"><div class="ttname"><a href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a4d17ac56db012de25e26ac62daf3f475">UniValue::VOBJ</a></div><div class="ttdef"><b>Definition:</b> <a href="univalue_8h_source.html#l00021">univalue.h:21</a></div></div>
<div class="ttc" id="classCBitcoinAddress_html_a1e44de10dfc84d1fd2e15150f1e22b8e"><div class="ttname"><a href="classCBitcoinAddress.html#a1e44de10dfc84d1fd2e15150f1e22b8e">CBitcoinAddress::Get</a></div><div class="ttdeci">CTxDestination Get() const</div><div class="ttdef"><b>Definition:</b> <a href="base58_8cpp_source.html#l00260">base58.cpp:260</a></div></div>
<div class="ttc" id="server_8cpp_html_ac5b4e8e5154ac022c7be81730a527fd1"><div class="ttname"><a href="server_8cpp.html#ac5b4e8e5154ac022c7be81730a527fd1">RPCTypeCheck</a></div><div class="ttdeci">void RPCTypeCheck(const UniValue &amp;params, const list&lt; UniValue::VType &gt; &amp;typesExpected, bool fAllowNull)</div><div class="ttdef"><b>Definition:</b> <a href="server_8cpp_source.html#l00070">server.cpp:70</a></div></div>
<div class="ttc" id="instantx_8cpp_html_abc71256f703e47c9254093e32ed2994c"><div class="ttname"><a href="instantx_8cpp.html#abc71256f703e47c9254093e32ed2994c">mempool</a></div><div class="ttdeci">CTxMemPool mempool</div></div>
<div class="ttc" id="policy_8h_html_a5100f707492ff0fea1c1f53552b31f51"><div class="ttname"><a href="policy_8h.html#a5100f707492ff0fea1c1f53552b31f51">STANDARD_SCRIPT_VERIFY_FLAGS</a></div><div class="ttdeci">static const unsigned int STANDARD_SCRIPT_VERIFY_FLAGS</div><div class="ttdef"><b>Definition:</b> <a href="policy_8h_source.html#l00035">policy.h:35</a></div></div>
<div class="ttc" id="rawtransaction_8cpp_html_a6e621b4ad486c6d716873ee3f16919ad"><div class="ttname"><a href="rawtransaction_8cpp.html#a6e621b4ad486c6d716873ee3f16919ad">ScriptPubKeyToJSON</a></div><div class="ttdeci">void ScriptPubKeyToJSON(const CScript &amp;scriptPubKey, UniValue &amp;out, bool fIncludeHex)</div><div class="ttdef"><b>Definition:</b> <a href="rawtransaction_8cpp_source.html#l00040">rawtransaction.cpp:40</a></div></div>
<div class="ttc" id="interpreter_8h_html_aaf8fd5f0e57d456151c951e0f3715fc4a9412c721b741fe9be1e3247dc390a4d2"><div class="ttname"><a href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4a9412c721b741fe9be1e3247dc390a4d2">SIGHASH_ANYONECANPAY</a></div><div class="ttdef"><b>Definition:</b> <a href="interpreter_8h_source.html#l00027">interpreter.h:27</a></div></div>
<div class="ttc" id="namespaceextract__strings__qt_html_a75c3976a3587b535b25c5bd9d1ca6cee"><div class="ttname"><a href="namespaceextract__strings__qt.html#a75c3976a3587b535b25c5bd9d1ca6cee">extract_strings_qt.err</a></div><div class="ttdeci">err</div><div class="ttdef"><b>Definition:</b> <a href="extract__strings__qt_8py_source.html#l00056">extract_strings_qt.py:56</a></div></div>
<div class="ttc" id="structCSpentIndexKey_html"><div class="ttname"><a href="structCSpentIndexKey.html">CSpentIndexKey</a></div><div class="ttdef"><b>Definition:</b> <a href="spentindex_8h_source.html#l00012">spentindex.h:12</a></div></div>
<div class="ttc" id="uint256_8h_html"><div class="ttname"><a href="uint256_8h.html">uint256.h</a></div></div>
<div class="ttc" id="chainparams_8cpp_html_ace5c5b706d71a324a417dd2db394fd4a"><div class="ttname"><a href="chainparams_8cpp.html#ace5c5b706d71a324a417dd2db394fd4a">Params</a></div><div class="ttdeci">const CChainParams &amp; Params()</div><div class="ttdef"><b>Definition:</b> <a href="chainparams_8cpp_source.html#l00424">chainparams.cpp:424</a></div></div>
<div class="ttc" id="version_8h_html_a4e2497f7c9c4319adcaf945159ec63f4"><div class="ttname"><a href="version_8h.html#a4e2497f7c9c4319adcaf945159ec63f4">PROTOCOL_VERSION</a></div><div class="ttdeci">static const int PROTOCOL_VERSION</div><div class="ttdef"><b>Definition:</b> <a href="version_8h_source.html#l00013">version.h:13</a></div></div>
<div class="ttc" id="classCTransaction_html_a7efd1379de830341417c0bfa23a149aa"><div class="ttname"><a href="classCTransaction.html#a7efd1379de830341417c0bfa23a149aa">CTransaction::GetHash</a></div><div class="ttdeci">const uint256 &amp; GetHash() const</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00262">transaction.h:262</a></div></div>
<div class="ttc" id="classCScript_html"><div class="ttname"><a href="classCScript.html">CScript</a></div><div class="ttdef"><b>Definition:</b> <a href="script_8h_source.html#l00373">script.h:373</a></div></div>
<div class="ttc" id="classUniValue_html_ac5271a9bb4ece86f00052bb5603eaa78"><div class="ttname"><a href="classUniValue.html#ac5271a9bb4ece86f00052bb5603eaa78">UniValue::isNum</a></div><div class="ttdeci">bool isNum() const</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8h_source.html#l00082">univalue.h:82</a></div></div>
<div class="ttc" id="classCInstantSend_html_a418ce98b1e4d61b38bd11d02ff36a47d"><div class="ttname"><a href="classCInstantSend.html#a418ce98b1e4d61b38bd11d02ff36a47d">CInstantSend::ProcessTxLockRequest</a></div><div class="ttdeci">bool ProcessTxLockRequest(const CTxLockRequest &amp;txLockRequest, CConnman &amp;connman)</div><div class="ttdef"><b>Definition:</b> <a href="instantx_8cpp_source.html#l00080">instantx.cpp:80</a></div></div>
<div class="ttc" id="classCBitcoinSecret_html"><div class="ttname"><a href="classCBitcoinSecret.html">CBitcoinSecret</a></div><div class="ttdef"><b>Definition:</b> <a href="base58_8h_source.html#l00126">base58.h:126</a></div></div>
<div class="ttc" id="classCScriptID_html"><div class="ttname"><a href="classCScriptID.html">CScriptID</a></div><div class="ttdef"><b>Definition:</b> <a href="standard_8h_source.html#l00022">standard.h:22</a></div></div>
<div class="ttc" id="classCTransaction_html_a96256e8ac1bf79ad9c057e48c41132dd"><div class="ttname"><a href="classCTransaction.html#a96256e8ac1bf79ad9c057e48c41132dd">CTransaction::IsCoinBase</a></div><div class="ttdeci">bool IsCoinBase() const</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00284">transaction.h:284</a></div></div>
<div class="ttc" id="classCValidationState_html_ace1d536f4003d3a6689fccd0f496c977"><div class="ttname"><a href="classCValidationState.html#ace1d536f4003d3a6689fccd0f496c977">CValidationState::IsInvalid</a></div><div class="ttdeci">bool IsInvalid() const</div><div class="ttdef"><b>Definition:</b> <a href="consensus_2validation_8h_source.html#l00064">validation.h:64</a></div></div>
<div class="ttc" id="classbase__blob_html_ad7263503f949fb3c6c520ebb1f28e378"><div class="ttname"><a href="classbase__blob.html#ad7263503f949fb3c6c520ebb1f28e378">base_blob::GetHex</a></div><div class="ttdeci">std::string GetHex() const</div><div class="ttdef"><b>Definition:</b> <a href="uint256_8cpp_source.html#l00021">uint256.cpp:21</a></div></div>
<div class="ttc" id="init_8cpp_html_a152c3d2ceeeaf7a300666dcbcc8bb945"><div class="ttname"><a href="init_8cpp.html#a152c3d2ceeeaf7a300666dcbcc8bb945">g_connman</a></div><div class="ttdeci">std::unique_ptr&lt; CConnman &gt; g_connman</div><div class="ttdef"><b>Definition:</b> <a href="init_8cpp_source.html#l00103">init.cpp:103</a></div></div>
<div class="ttc" id="namespacerpc-tests_html_a5634cc986fc764eff8c617f53bf2e8dc"><div class="ttname"><a href="namespacerpc-tests.html#a5634cc986fc764eff8c617f53bf2e8dc">rpc-tests.p</a></div><div class="ttdeci">p</div><div class="ttdef"><b>Definition:</b> <a href="rpc-tests_8py_source.html#l00049">rpc-tests.py:49</a></div></div>
<div class="ttc" id="classCTransaction_html_a708645274ddfd83829315ffe5c7c5c3e"><div class="ttname"><a href="classCTransaction.html#a708645274ddfd83829315ffe5c7c5c3e">CTransaction::vout</a></div><div class="ttdeci">const std::vector&lt; CTxOut &gt; vout</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00234">transaction.h:234</a></div></div>
<div class="ttc" id="classUniValue_html_a2f9803e567ede73e88302b01e394cc63aba88a44dcdb6e3be0538d14997ff042b"><div class="ttname"><a href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63aba88a44dcdb6e3be0538d14997ff042b">UniValue::VNUM</a></div><div class="ttdef"><b>Definition:</b> <a href="univalue_8h_source.html#l00021">univalue.h:21</a></div></div>
<div class="ttc" id="classUniValue_html_af45edc6e67eaa6d1f271ce18e435a376"><div class="ttname"><a href="classUniValue.html#af45edc6e67eaa6d1f271ce18e435a376">UniValue::get_int</a></div><div class="ttdeci">int get_int() const</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8cpp_source.html#l00317">univalue.cpp:317</a></div></div>
<div class="ttc" id="classprevector_html_aa9210cbe708412a70868d6e0bca844c9"><div class="ttname"><a href="classprevector.html#aa9210cbe708412a70868d6e0bca844c9">prevector::begin</a></div><div class="ttdeci">iterator begin()</div><div class="ttdef"><b>Definition:</b> <a href="prevector_8h_source.html#l00270">prevector.h:270</a></div></div>
<div class="ttc" id="classCBlockIndex_html"><div class="ttname"><a href="classCBlockIndex.html">CBlockIndex</a></div><div class="ttdef"><b>Definition:</b> <a href="chain_8h_source.html#l00100">chain.h:100</a></div></div>
<div class="ttc" id="rawtransaction_8cpp_html_a38afe96202ced8cad211cb38da48c1ed"><div class="ttname"><a href="rawtransaction_8cpp.html#a38afe96202ced8cad211cb38da48c1ed">verifytxoutproof</a></div><div class="ttdeci">UniValue verifytxoutproof(const UniValue &amp;params, bool fHelp)</div><div class="ttdef"><b>Definition:</b> <a href="rawtransaction_8cpp_source.html#l00321">rawtransaction.cpp:321</a></div></div>
<div class="ttc" id="classCBlockIndex_html_a9fe0d4463c07c466f66252e8eec25f5c"><div class="ttname"><a href="classCBlockIndex.html#a9fe0d4463c07c466f66252e8eec25f5c">CBlockIndex::GetBlockTime</a></div><div class="ttdeci">int64_t GetBlockTime() const</div><div class="ttdef"><b>Definition:</b> <a href="chain_8h_source.html#l00223">chain.h:223</a></div></div>
<div class="ttc" id="rpc_2protocol_8h_html_af867221d51315471f28ed8cdac85deada7a1b53103d599a098159e4f8171c4387"><div class="ttname"><a href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deada7a1b53103d599a098159e4f8171c4387">RPC_TRANSACTION_ALREADY_IN_CHAIN</a></div><div class="ttdef"><b>Definition:</b> <a href="rpc_2protocol_8h_source.html#l00057">protocol.h:57</a></div></div>
<div class="ttc" id="server_8cpp_html_aa4320b52790aaddb8c6521d24e4e44ad"><div class="ttname"><a href="server_8cpp.html#aa4320b52790aaddb8c6521d24e4e44ad">ParseHexO</a></div><div class="ttdeci">vector&lt; unsigned char &gt; ParseHexO(const UniValue &amp;o, string strKey)</div><div class="ttdef"><b>Definition:</b> <a href="server_8cpp_source.html#l00156">server.cpp:156</a></div></div>
<div class="ttc" id="rpc_2protocol_8h_html_af867221d51315471f28ed8cdac85deadafec84f7fdd91f69c7d5f89a020be9f70"><div class="ttname"><a href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadafec84f7fdd91f69c7d5f89a020be9f70">RPC_CLIENT_P2P_DISABLED</a></div><div class="ttdoc">Invalid IP/Subnet. </div><div class="ttdef"><b>Definition:</b> <a href="rpc_2protocol_8h_source.html#l00066">protocol.h:66</a></div></div>
<div class="ttc" id="classCKeyStore_html_a0b4ca43724cfcc6e2ea70c0baa192750"><div class="ttname"><a href="classCKeyStore.html#a0b4ca43724cfcc6e2ea70c0baa192750">CKeyStore::AddKey</a></div><div class="ttdeci">virtual bool AddKey(const CKey &amp;key)</div><div class="ttdef"><b>Definition:</b> <a href="keystore_8cpp_source.html#l00014">keystore.cpp:14</a></div></div>
<div class="ttc" id="interpreter_8h_html_aaf8fd5f0e57d456151c951e0f3715fc4ad9bb96e76cf9f1b6ebbf50373f4f9ca5"><div class="ttname"><a href="interpreter_8h.html#aaf8fd5f0e57d456151c951e0f3715fc4ad9bb96e76cf9f1b6ebbf50373f4f9ca5">SIGHASH_SINGLE</a></div><div class="ttdef"><b>Definition:</b> <a href="interpreter_8h_source.html#l00026">interpreter.h:26</a></div></div>
<div class="ttc" id="validation_8cpp_html_aab60350f365d7f6937de1f8c87fa04e3"><div class="ttname"><a href="validation_8cpp.html#aab60350f365d7f6937de1f8c87fa04e3">GetTransaction</a></div><div class="ttdeci">bool GetTransaction(const uint256 &amp;hash, CTransaction &amp;txOut, const Consensus::Params &amp;consensusParams, uint256 &amp;hashBlock, bool fAllowSlow)</div><div class="ttdef"><b>Definition:</b> <a href="validation_8cpp_source.html#l01080">validation.cpp:1080</a></div></div>
<div class="ttc" id="classCScript_html_a7b2baf842621f07c4939408acf63377c"><div class="ttname"><a href="classCScript.html#a7b2baf842621f07c4939408acf63377c">CScript::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> <a href="script_8h_source.html#l00639">script.h:639</a></div></div>
<div class="ttc" id="namespaceextract__strings__qt_html_ab8166b91ad54a98ce8450593d2a3d827"><div class="ttname"><a href="namespaceextract__strings__qt.html#ab8166b91ad54a98ce8450593d2a3d827">extract_strings_qt.out</a></div><div class="ttdeci">out</div><div class="ttdef"><b>Definition:</b> <a href="extract__strings__qt_8py_source.html#l00056">extract_strings_qt.py:56</a></div></div>
<div class="ttc" id="validation_8cpp_html_a578c1df234b05798180f0235d469a5ba"><div class="ttname"><a href="validation_8cpp.html#a578c1df234b05798180f0235d469a5ba">ReadBlockFromDisk</a></div><div class="ttdeci">bool ReadBlockFromDisk(CBlock &amp;block, const CDiskBlockPos &amp;pos, const Consensus::Params &amp;consensusParams)</div><div class="ttdef"><b>Definition:</b> <a href="validation_8cpp_source.html#l01171">validation.cpp:1171</a></div></div>
<div class="ttc" id="merkleblock_8h_html"><div class="ttname"><a href="merkleblock_8h.html">merkleblock.h</a></div></div>
<div class="ttc" id="classCBlock_html"><div class="ttname"><a href="classCBlock.html">CBlock</a></div><div class="ttdef"><b>Definition:</b> <a href="block_8h_source.html#l00073">block.h:73</a></div></div>
<div class="ttc" id="classUniValue_html_a6cf106f8b73c526b50d0c77a36a2d8ec"><div class="ttname"><a href="classUniValue.html#a6cf106f8b73c526b50d0c77a36a2d8ec">UniValue::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8h_source.html#l00067">univalue.h:67</a></div></div>
<div class="ttc" id="classCKey_html"><div class="ttname"><a href="classCKey.html">CKey</a></div><div class="ttdef"><b>Definition:</b> <a href="key_8h_source.html#l00035">key.h:35</a></div></div>
<div class="ttc" id="classCBlockIndex_html_aebfc8d6b95852546760e742553d7bfd5"><div class="ttname"><a href="classCBlockIndex.html#aebfc8d6b95852546760e742553d7bfd5">CBlockIndex::nHeight</a></div><div class="ttdeci">int nHeight</div><div class="ttdoc">height of the entry in the chain. The genesis block has height 0 </div><div class="ttdef"><b>Definition:</b> <a href="chain_8h_source.html#l00113">chain.h:113</a></div></div>
<div class="ttc" id="transaction_8h_html"><div class="ttname"><a href="transaction_8h.html">transaction.h</a></div></div>
<div class="ttc" id="sign_8cpp_html_adb49c071f85f19a8a8cb4e97d9fe8b93"><div class="ttname"><a href="sign_8cpp.html#adb49c071f85f19a8a8cb4e97d9fe8b93">SignSignature</a></div><div class="ttdeci">bool SignSignature(const CKeyStore &amp;keystore, const CScript &amp;fromPubKey, CMutableTransaction &amp;txTo, unsigned int nIn, int nHashType)</div><div class="ttdef"><b>Definition:</b> <a href="sign_8cpp_source.html#l00129">sign.cpp:129</a></div></div>
<div class="ttc" id="classCOutPoint_html_af131c7194a660558b0ff158f4efa7a28"><div class="ttname"><a href="classCOutPoint.html#af131c7194a660558b0ff158f4efa7a28">COutPoint::hash</a></div><div class="ttdeci">uint256 hash</div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00018">transaction.h:18</a></div></div>
<div class="ttc" id="rawtransaction_8cpp_html_ae1b1b5063ba94024c0af38e72de0d726"><div class="ttname"><a href="rawtransaction_8cpp.html#ae1b1b5063ba94024c0af38e72de0d726">decodescript</a></div><div class="ttdeci">UniValue decodescript(const UniValue &amp;params, bool fHelp)</div><div class="ttdef"><b>Definition:</b> <a href="rawtransaction_8cpp_source.html#l00526">rawtransaction.cpp:526</a></div></div>
<div class="ttc" id="rpc_2protocol_8cpp_html_a41a2234c99900304357a44796b2259d5"><div class="ttname"><a href="rpc_2protocol_8cpp.html#a41a2234c99900304357a44796b2259d5">JSONRPCError</a></div><div class="ttdeci">UniValue JSONRPCError(int code, const string &amp;message)</div><div class="ttdef"><b>Definition:</b> <a href="rpc_2protocol_8cpp_source.html#l00057">protocol.cpp:57</a></div></div>
<div class="ttc" id="validation_8cpp_html_a887b8e9f9fea0ea870c6987f1fd52eb6"><div class="ttname"><a href="validation_8cpp.html#a887b8e9f9fea0ea870c6987f1fd52eb6">mapBlockIndex</a></div><div class="ttdeci">BlockMap mapBlockIndex</div><div class="ttdef"><b>Definition:</b> <a href="validation_8cpp_source.html#l00064">validation.cpp:64</a></div></div>
<div class="ttc" id="classUniValue_html_a2f9803e567ede73e88302b01e394cc63a7afa7b747615105024aab97ff5bf4d11"><div class="ttname"><a href="classUniValue.html#a2f9803e567ede73e88302b01e394cc63a7afa7b747615105024aab97ff5bf4d11">UniValue::VSTR</a></div><div class="ttdef"><b>Definition:</b> <a href="univalue_8h_source.html#l00021">univalue.h:21</a></div></div>
<div class="ttc" id="classUniValue_html_a5a7394aeb8d5584db7a90c2c041726b1"><div class="ttname"><a href="classUniValue.html#a5a7394aeb8d5584db7a90c2c041726b1">UniValue::size</a></div><div class="ttdeci">size_t size() const</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8h_source.html#l00069">univalue.h:69</a></div></div>
<div class="ttc" id="classUniValue_html_aa9751b5797cb84d15b9fe4ca217f0b63"><div class="ttname"><a href="classUniValue.html#aa9751b5797cb84d15b9fe4ca217f0b63">UniValue::get_array</a></div><div class="ttdeci">const UniValue &amp; get_array() const</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8cpp_source.html#l00354">univalue.cpp:354</a></div></div>
<div class="ttc" id="classUniValue_html_ab3730236f6f0ecccda0bd4f095b08258"><div class="ttname"><a href="classUniValue.html#ab3730236f6f0ecccda0bd4f095b08258">UniValue::get_str</a></div><div class="ttdeci">std::string get_str() const</div><div class="ttdef"><b>Definition:</b> <a href="univalue_8cpp_source.html#l00310">univalue.cpp:310</a></div></div>
<div class="ttc" id="standard_8h_html"><div class="ttname"><a href="standard_8h.html">standard.h</a></div></div>
<div class="ttc" id="namespaceextract__strings__qt_html_a1b7a78cde0039f63310f11692b713dca"><div class="ttname"><a href="namespaceextract__strings__qt.html#a1b7a78cde0039f63310f11692b713dca">extract_strings_qt.key</a></div><div class="ttdeci">key</div><div class="ttdef"><b>Definition:</b> <a href="extract__strings__qt_8py_source.html#l00073">extract_strings_qt.py:73</a></div></div>
<div class="ttc" id="classCCoins_html_af7396dfad71367de46f21cf92e2c70ab"><div class="ttname"><a href="classCCoins.html#af7396dfad71367de46f21cf92e2c70ab">CCoins::nHeight</a></div><div class="ttdeci">int nHeight</div><div class="ttdoc">at which height this transaction was included in the active block chain </div><div class="ttdef"><b>Definition:</b> <a href="coins_8h_source.html#l00083">coins.h:83</a></div></div>
<div class="ttc" id="rpc_2protocol_8h_html_af867221d51315471f28ed8cdac85deadae41723a0e8091c7853a1e582e317b272"><div class="ttname"><a href="rpc_2protocol_8h.html#af867221d51315471f28ed8cdac85deadae41723a0e8091c7853a1e582e317b272">RPC_DESERIALIZATION_ERROR</a></div><div class="ttdoc">Database error. </div><div class="ttdef"><b>Definition:</b> <a href="rpc_2protocol_8h_source.html#l00048">protocol.h:48</a></div></div>
<div class="ttc" id="namespacerpcuser_html_a637791b4450c02d511291cd297ce12df"><div class="ttname"><a href="namespacerpcuser.html#a637791b4450c02d511291cd297ce12df">rpcuser.result</a></div><div class="ttdeci">result</div><div class="ttdef"><b>Definition:</b> <a href="rpcuser_8py_source.html#l00037">rpcuser.py:37</a></div></div>
<div class="ttc" id="core__io_8h_html_adf3a8ae53f4e0af5832ce21fc581db0e"><div class="ttname"><a href="core__io_8h.html#adf3a8ae53f4e0af5832ce21fc581db0e">DecodeHexTx</a></div><div class="ttdeci">bool DecodeHexTx(CTransaction &amp;tx, const std::string &amp;strHexTx)</div><div class="ttdef"><b>Definition:</b> <a href="core__read_8cpp_source.html#l00093">core_read.cpp:93</a></div></div>
<div class="ttc" id="classCCoinsViewCache_html_a8e5341e8b01233949d6170dd4d1fd75d"><div class="ttname"><a href="classCCoinsViewCache.html#a8e5341e8b01233949d6170dd4d1fd75d">CCoinsViewCache::AccessCoins</a></div><div class="ttdeci">const CCoins * AccessCoins(const uint256 &amp;txid) const</div><div class="ttdef"><b>Definition:</b> <a href="coins_8cpp_source.html#l00129">coins.cpp:129</a></div></div>
<div class="ttc" id="classCTxOut_html"><div class="ttname"><a href="classCTxOut.html">CTxOut</a></div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00133">transaction.h:133</a></div></div>
</div><!-- fragment --></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="rawtransaction_8cpp.html">rawtransaction.cpp</a></li>
<li class="footer">Generated on Thu Dec 14 2017 13:15:08 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>