You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14127 lines
164 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Global</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Global</h1>
<section>
<header>
<h2></h2>
</header>
<article>
<div class="container-overview">
<dl class="details">
</dl>
</div>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id="hostname"><span class="type-signature"></span>hostname<span class="signature">(host, port)</span><span class="type-signature"> &rarr; {String}</span></h4>
<div class="description">
<p>Concatenate a host and port.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>host</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>port</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_ip.js.html">bcoin/ip.js</a>, <a href="bcoin_ip.js.html#line54">line 54</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">String</span>
</dd>
</dl>
<h4 class="name" id="isMapped"><span class="type-signature"></span>isMapped<span class="signature">(ip)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
<div class="description">
<p>Test whether a buffer is an ipv4-mapped ipv6 address.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>ip</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_ip.js.html">bcoin/ip.js</a>, <a href="bcoin_ip.js.html#line85">line 85</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Boolean</span>
</dd>
</dl>
<h4 class="name" id="mkdirp"><span class="type-signature"></span>mkdirp<span class="signature">(path)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Create a full directory structure.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>path</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_env.js.html">bcoin/env.js</a>, <a href="bcoin_env.js.html#line444">line 444</a>
</li></ul></dd>
</dl>
<h4 class="name" id="normalize"><span class="type-signature"></span>normalize<span class="signature">(ip)</span><span class="type-signature"> &rarr; {String}</span></h4>
<div class="description">
<p>Normalize an ip.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>ip</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_ip.js.html">bcoin/ip.js</a>, <a href="bcoin_ip.js.html#line173">line 173</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">String</span>
</dd>
</dl>
<h4 class="name" id="normalize"><span class="type-signature"></span>normalize<span class="signature">(path, dirname<span class="signature-attributes">nullable</span>)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Normalize a path.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>path</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>dirname</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_env.js.html">bcoin/env.js</a>, <a href="bcoin_env.js.html#line426">line 426</a>
</li></ul></dd>
</dl>
<h4 class="name" id="parseHost"><span class="type-signature"></span>parseHost<span class="signature">(addr)</span><span class="type-signature"> &rarr; {Object}</span></h4>
<div class="description">
<p>Parse a hostname.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>addr</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_ip.js.html">bcoin/ip.js</a>, <a href="bcoin_ip.js.html#line19">line 19</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>Contains <code>host</code> and <code>port</code>.</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Object</span>
</dd>
</dl>
<h5>Example</h5>
<pre class="prettyprint"><code>IP.parseHost('127.0.0.1:3000');</code></pre>
<h4 class="name" id="scrypt"><span class="type-signature"></span>scrypt<span class="signature">(passwd, salt, N, r, p, len)</span><span class="type-signature"> &rarr; {Buffer}</span></h4>
<div class="description">
<p>Javascript scrypt implementation. Scrypt is
used in bip38. BCoin doesn't support bip38
yet, but here it is, just in case.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>passwd</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>salt</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>N</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>r</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>p</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>len</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_scrypt-async.js.html">bcoin/scrypt-async.js</a>, <a href="bcoin_scrypt-async.js.html#line50">line 50</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Buffer</span>
</dd>
</dl>
<h4 class="name" id="scrypt"><span class="type-signature"></span>scrypt<span class="signature">(passwd, salt, N, r, p, len)</span><span class="type-signature"> &rarr; {Buffer}</span></h4>
<div class="description">
<p>Javascript scrypt implementation. Scrypt is
used in bip38. BCoin doesn't support bip38
yet, but here it is, just in case.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>passwd</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>salt</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>N</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>r</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>p</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>len</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_scrypt.js.html">bcoin/scrypt.js</a>, <a href="bcoin_scrypt.js.html#line49">line 49</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Buffer</span>
</dd>
</dl>
<h4 class="name" id="toBuffer"><span class="type-signature"></span>toBuffer<span class="signature">(ip)</span><span class="type-signature"> &rarr; {Buffer}</span></h4>
<div class="description">
<p>Convert an IP string to a buffer.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>ip</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_ip.js.html">bcoin/ip.js</a>, <a href="bcoin_ip.js.html#line108">line 108</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Buffer</span>
</dd>
</dl>
<h4 class="name" id="toString"><span class="type-signature"></span>toString<span class="signature">(ip)</span><span class="type-signature"> &rarr; {String}</span></h4>
<div class="description">
<p>Convert a buffer to an ip string.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>ip</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_ip.js.html">bcoin/ip.js</a>, <a href="bcoin_ip.js.html#line145">line 145</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">String</span>
</dd>
</dl>
<h4 class="name" id="version"><span class="type-signature"></span>version<span class="signature">(ip<span class="signature-attributes">nullable</span>)</span><span class="type-signature"> &rarr; {Number}</span></h4>
<div class="description">
<p>Test whether a string is an IP address.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>ip</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_ip.js.html">bcoin/ip.js</a>, <a href="bcoin_ip.js.html#line66">line 66</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>IP version (4 or 6).</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Number</span>
</dd>
</dl>
<h3 class="subsection-title">Type Definitions</h3>
<h4 class="name" id="AddressHashMap">AddressHashMap</h4>
<div class="description">
<p>A map of address hashes (<a href="global.html#Hash">Hash</a> -&gt; value).</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line64">line 64</a>
</li></ul></dd>
</dl>
<h4 class="name" id="AddressMap">AddressMap</h4>
<div class="description">
<p>A map of addresses (<a href="global.html#Base58Address">Base58Address</a> -&gt; value).</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line58">line 58</a>
</li></ul></dd>
</dl>
<h4 class="name" id="AddressMapCallback"><span class="type-signature"></span>AddressMapCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, map)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>map</code></td>
<td class="type">
<span class="param-type"><a href="global.html#AddressMap">AddressMap</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line549">line 549</a>
</li></ul></dd>
</dl>
<h4 class="name" id="AddressTableCallback"><span class="type-signature"></span>AddressTableCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, table)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>table</code></td>
<td class="type">
<span class="param-type">AddressTable</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line556">line 556</a>
</li></ul></dd>
</dl>
<h4 class="name" id="AddressType">AddressType</h4>
<div class="description">
<p>Can be <code>pubkeyhash</code>, <code>scripthash</code>, <code>witnesspubkeyhash</code>,
or <code>witnessscripthash</code>, or an address prefix
(see network.address).</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">String</span>
|
<span class="param-type">Number</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line36">line 36</a>
</li></ul></dd>
</dl>
<h4 class="name" id="AlertPacket">AlertPacket</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>relayUntil</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>expiration</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>id</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>cancel</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>cancels</code></td>
<td class="type">
<span class="param-type">Array.&lt;Number></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>minVer</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>maxVer</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>subVers</code></td>
<td class="type">
<span class="param-type">Array.&lt;String></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>priority</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>comment</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>statusBar</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>reserved</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>payload</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Payload.</p></td>
</tr>
<tr>
<td class="name"><code>signature</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Payload signature.</p></td>
</tr>
<tr>
<td class="name"><code>key</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Private key to sign with.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line372">line 372</a>
</li></ul></dd>
</dl>
<h4 class="name" id="Amount">Amount</h4>
<div class="description">
<p>A satoshi amount. This is technically a
JS double float, but it is regularly
enforced to be less than 53 bits and
less than MAX_MONEY in various
functions.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Number</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line126">line 126</a>
</li></ul></dd>
</dl>
<h4 class="name" id="Balance">Balance</h4>
<div class="description">
<p>Wallet balance.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>confirmed</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Amount">Amount</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>unconfirmed</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Amount">Amount</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>total</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Amount">Amount</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line117">line 117</a>
</li></ul></dd>
</dl>
<h4 class="name" id="BalanceCallback"><span class="type-signature"></span>BalanceCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, balance)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>balance</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Balance">Balance</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line479">line 479</a>
</li></ul></dd>
</dl>
<h4 class="name" id="Base58Address">Base58Address</h4>
<div class="description">
<p>Base58 address.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">String</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line92">line 92</a>
</li></ul></dd>
</dl>
<h4 class="name" id="Base58String">Base58String</h4>
<div class="description">
<p>Base58 string.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">String</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line86">line 86</a>
</li></ul></dd>
</dl>
<h4 class="name" id="BlockCallback"><span class="type-signature"></span>BlockCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, block)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>block</code></td>
<td class="type">
<span class="param-type"><a href="Block.html">Block</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line458">line 458</a>
</li></ul></dd>
</dl>
<h4 class="name" id="BN">BN</h4>
<div class="description">
<p>A big number (bn.js)</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line142">line 142</a>
</li></ul></dd>
</dl>
<h4 class="name" id="BooleanCallback"><span class="type-signature"></span>BooleanCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, result)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line486">line 486</a>
</li></ul></dd>
</dl>
<h4 class="name" id="BufferCallback"><span class="type-signature"></span>BufferCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, data)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>data</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line521">line 521</a>
</li></ul></dd>
</dl>
<h4 class="name" id="CoinCallback"><span class="type-signature"></span>CoinCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, tx)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>tx</code></td>
<td class="type">
<span class="param-type"><a href="Coin.html">Coin</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line438">line 438</a>
</li></ul></dd>
</dl>
<h4 class="name" id="CoinsCallback"><span class="type-signature"></span>CoinsCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, tx)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>tx</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="Coin.html">Coin</a>></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line445">line 445</a>
</li></ul></dd>
</dl>
<h4 class="name" id="CoinSelection">CoinSelection</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>chosen</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="Coin.html">Coin</a>></span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Selected coins.</p></td>
</tr>
<tr>
<td class="name"><code>change</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Amount">Amount</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>Amount of change to add.</p></td>
</tr>
<tr>
<td class="name"><code>fee</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Amount">Amount</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>Estimated fee.</p></td>
</tr>
<tr>
<td class="name"><code>total</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Amount">Amount</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>Total value.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line171">line 171</a>
</li></ul></dd>
</dl>
<h4 class="name" id="ConfidenceCallback"><span class="type-signature"></span>ConfidenceCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, confidence)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>confidence</code></td>
<td class="type">
<span class="param-type">Confidence</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line578">line 578</a>
</li></ul></dd>
</dl>
<h4 class="name" id="DeploymentCallback"><span class="type-signature"></span>DeploymentCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, state)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
|
<span class="param-type"><a href="VerifyError.html">VerifyError</a></span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>state</code></td>
<td class="type">
<span class="param-type"><a href="global.html#DeploymentState">DeploymentState</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line535">line 535</a>
</li></ul></dd>
</dl>
<h4 class="name" id="DeploymentState">DeploymentState</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>flags</code></td>
<td class="type">
<span class="param-type"><a href="global.html#VerifyFlags">VerifyFlags</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>lockFlags</code></td>
<td class="type">
<span class="param-type"><a href="global.html#LockFlags">LockFlags</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>coinbaseHeight</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="description last"><p>Whether coinbase height is enforced.</p></td>
</tr>
<tr>
<td class="name"><code>segwit</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>csv</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line180">line 180</a>
</li></ul></dd>
</dl>
<h4 class="name" id="EntriesCallback"><span class="type-signature"></span>EntriesCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, entry)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>entry</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="ChainEntry.html">ChainEntry</a>></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line472">line 472</a>
</li></ul></dd>
</dl>
<h4 class="name" id="EntryCallback"><span class="type-signature"></span>EntryCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, entry)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>entry</code></td>
<td class="type">
<span class="param-type"><a href="ChainEntry.html">ChainEntry</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line465">line 465</a>
</li></ul></dd>
</dl>
<h4 class="name" id="FeeFilterPacket">FeeFilterPacket</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>rate</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Rate">Rate</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line393">line 393</a>
</li></ul></dd>
</dl>
<h4 class="name" id="FilterAddPacket">FilterAddPacket</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>data</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"><p>Data to add to filter.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line215">line 215</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="Bloom.html">Bloom</a></li>
</ul>
</dd>
</dl>
<h4 class="name" id="FilterLoadPacket">FilterLoadPacket</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>filter</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"><p>Serialized bloom filter.</p></td>
</tr>
<tr>
<td class="name"><code>n</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Number of hash functions.</p></td>
</tr>
<tr>
<td class="name"><code>tweak</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Bloom filter seed.</p></td>
</tr>
<tr>
<td class="name"><code>update</code></td>
<td class="type">
<span class="param-type">String</span>
|
<span class="param-type">Number</span>
</td>
<td class="description last"><p>(See constants.filterFlags).</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line205">line 205</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="Bloom.html">Bloom</a></li>
</ul>
</dd>
</dl>
<h4 class="name" id="GetBlocksPacket">GetBlocksPacket</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Protocol version.</p></td>
</tr>
<tr>
<td class="name"><code>locator</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="global.html#Hash">Hash</a>></span>
</td>
<td class="description last"><p>Chain locator.</p></td>
</tr>
<tr>
<td class="name"><code>stop</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="description last"><p>Hash to stop at.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line283">line 283</a>
</li></ul></dd>
</dl>
<h4 class="name" id="GetUTXOsPacket">GetUTXOsPacket</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>mempool</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="description last"><p>Check mempool.</p></td>
</tr>
<tr>
<td class="name"><code>prevout</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="global.html#Outpoint">Outpoint</a>></span>
</td>
<td class="description last"><p>Outpoints.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line222">line 222</a>
</li></ul></dd>
</dl>
<h4 class="name" id="Hash">Hash</h4>
<div class="description">
<p>Hex-string hash.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">String</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line98">line 98</a>
</li></ul></dd>
</dl>
<h4 class="name" id="HashCallback"><span class="type-signature"></span>HashCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, hash)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line500">line 500</a>
</li></ul></dd>
</dl>
<h4 class="name" id="HashesCallback"><span class="type-signature"></span>HashesCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, hash)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="global.html#Hash">Hash</a>></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line507">line 507</a>
</li></ul></dd>
</dl>
<h4 class="name" id="HashHeightCallback"><span class="type-signature"></span>HashHeightCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, hash, height)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>height</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line585">line 585</a>
</li></ul></dd>
</dl>
<h4 class="name" id="InvItem">InvItem</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">Number</span>
|
<span class="param-type">String</span>
</td>
<td class="description last"><p>Inv type. See constants.inv.</p></td>
</tr>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
|
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line16">line 16</a>
</li></ul></dd>
</dl>
<h4 class="name" id="InvType">InvType</h4>
<div class="description">
<p>One of <a href="module-constants.html#.inv">module:constants.inv</a>.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Number</span>
|
<span class="param-type">String</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line23">line 23</a>
</li></ul></dd>
</dl>
<h4 class="name" id="LockFlags">LockFlags</h4>
<div class="description">
<p>A bitfield containing locktime flags.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Number</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line52">line 52</a>
</li></ul></dd>
</dl>
<h4 class="name" id="MinerBlockCallback"><span class="type-signature"></span>MinerBlockCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, block)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>block</code></td>
<td class="type">
<span class="param-type"><a href="MinerBlock.html">MinerBlock</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line542">line 542</a>
</li></ul></dd>
</dl>
<h4 class="name" id="MTXCallback"><span class="type-signature"></span>MTXCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, tx)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>tx</code></td>
<td class="type">
<span class="param-type"><a href="MTX.html">MTX</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line424">line 424</a>
</li></ul></dd>
</dl>
<h4 class="name" id="MTXSCallback"><span class="type-signature"></span>MTXSCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, txs)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>txs</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="MTX.html">MTX</a>></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line431">line 431</a>
</li></ul></dd>
</dl>
<h4 class="name" id="NakedBlock">NakedBlock</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>Transaction version. Note that BCoin reads
versions as unsigned even though they are signed at the protocol level.
This value will never be negative.</p></td>
</tr>
<tr>
<td class="name"><code>prevBlock</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>merkleRoot</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>ts</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>bits</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>nonce</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>height</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>totalTX</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>txs</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="global.html#NakedTX">NakedTX</a>></span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Only present on blocks.</p></td>
</tr>
<tr>
<td class="name"><code>hashes</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="global.html#Hash">Hash</a>></span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Only present on merkleblocks.</p></td>
</tr>
<tr>
<td class="name"><code>flags</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Only present on merkleblocks.</p></td>
</tr>
<tr>
<td class="name"><code>coinbaseHeight</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Only present on compactblocks.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line291">line 291</a>
</li></ul></dd>
</dl>
<h4 class="name" id="NakedCoin">NakedCoin</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Transaction version.</p></td>
</tr>
<tr>
<td class="name"><code>height</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Transaction height (-1 if unconfirmed).</p></td>
</tr>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Amount">Amount</a></span>
</td>
<td class="description last"><p>Output value in satoshis.</p></td>
</tr>
<tr>
<td class="name"><code>script</code></td>
<td class="type">
<span class="param-type"><a href="Script.html">Script</a></span>
</td>
<td class="description last"><p>Output script.</p></td>
</tr>
<tr>
<td class="name"><code>coinbase</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="description last"><p>Whether the containing
transaction is a coinbase.</p></td>
</tr>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="description last"><p>Transaction hash.</p></td>
</tr>
<tr>
<td class="name"><code>index</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Output index.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line326">line 326</a>
</li></ul></dd>
</dl>
<h4 class="name" id="NakedCoin">NakedCoin</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Transaction version.</p></td>
</tr>
<tr>
<td class="name"><code>height</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Transaction height (-1 if unconfirmed).</p></td>
</tr>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Amount">Amount</a></span>
</td>
<td class="description last"><p>Output value in satoshis.</p></td>
</tr>
<tr>
<td class="name"><code>script</code></td>
<td class="type">
<span class="param-type"><a href="Script.html">Script</a></span>
</td>
<td class="description last"><p>Output script.</p></td>
</tr>
<tr>
<td class="name"><code>coinbase</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="description last"><p>Whether the containing
transaction is a coinbase.</p></td>
</tr>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="description last"><p>Transaction hash.</p></td>
</tr>
<tr>
<td class="name"><code>index</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Output index.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line229">line 229</a>
</li></ul></dd>
</dl>
<h4 class="name" id="NakedInput">NakedInput</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>prevout</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Outpoint">Outpoint</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>script</code></td>
<td class="type">
<span class="param-type"><a href="global.html#NakedScript">NakedScript</a></span>
</td>
<td class="description last"><p>Input script.</p></td>
</tr>
<tr>
<td class="name"><code>sequence</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>nSequence.</p></td>
</tr>
<tr>
<td class="name"><code>witness</code></td>
<td class="type">
<span class="param-type"><a href="global.html#NakedWitness">NakedWitness</a></span>
</td>
<td class="description last"><p>Witness.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line310">line 310</a>
</li></ul></dd>
</dl>
<h4 class="name" id="NakedNetworkAddress">NakedNetworkAddress</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>ts</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Timestamp.</p></td>
</tr>
<tr>
<td class="name"><code>services</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Service bits.</p></td>
</tr>
<tr>
<td class="name"><code>host</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>IP address (IPv6 or IPv4).</p></td>
</tr>
<tr>
<td class="name"><code>port</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Port.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line259">line 259</a>
</li></ul></dd>
</dl>
<h4 class="name" id="NakedOutput">NakedOutput</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>value</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Amount">Amount</a></span>
</td>
<td class="description last"><p>Value in satoshis.</p></td>
</tr>
<tr>
<td class="name"><code>script</code></td>
<td class="type">
<span class="param-type"><a href="global.html#NakedScript">NakedScript</a></span>
</td>
<td class="description last"><p>Output script.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line319">line 319</a>
</li></ul></dd>
</dl>
<h4 class="name" id="NakedScript">NakedScript</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>raw</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"><p>Raw code.</p></td>
</tr>
<tr>
<td class="name"><code>code</code></td>
<td class="type">
<span class="param-type">Array</span>
</td>
<td class="description last"><p>Parsed code.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line349">line 349</a>
</li></ul></dd>
</dl>
<h4 class="name" id="NakedTX">NakedTX</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>flag</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>inputs</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="global.html#NakedInput">NakedInput</a>></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>outputs</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="global.html#NakedOutput">NakedOutput</a>></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>locktime</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line339">line 339</a>
</li></ul></dd>
</dl>
<h4 class="name" id="NakedWitness">NakedWitness</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line356">line 356</a>
</li></ul></dd>
</dl>
<h4 class="name" id="NetworkType">NetworkType</h4>
<div class="description">
<p>One of <code>main</code>, <code>testnet</code>, <code>regtest</code>, <code>segnet3</code>, <code>segnet4</code>.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">String</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line399">line 399</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li>{module:network.types}</li>
</ul>
</dd>
</dl>
<h4 class="name" id="NumberCallback"><span class="type-signature"></span>NumberCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, result)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line493">line 493</a>
</li></ul></dd>
</dl>
<h4 class="name" id="ObjectCallback"><span class="type-signature"></span>ObjectCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, obj)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>obj</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line528">line 528</a>
</li></ul></dd>
</dl>
<h4 class="name" id="Orphan">Orphan</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="description last"><p>Orphan TX hash.</p></td>
</tr>
<tr>
<td class="name"><code>index</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Orphan input index.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line164">line 164</a>
</li></ul></dd>
</dl>
<h4 class="name" id="OrphanCallback"><span class="type-signature"></span>OrphanCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, orphan)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>orphan</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Orphan">Orphan</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line563">line 563</a>
</li></ul></dd>
</dl>
<h4 class="name" id="Outpoint">Outpoint</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>index</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line29">line 29</a>
</li></ul></dd>
</dl>
<h4 class="name" id="ParsedAddress">ParsedAddress</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Witness program version (-1 if not present).</p></td>
</tr>
<tr>
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type"><a href="global.html#AddressType">AddressType</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line44">line 44</a>
</li></ul></dd>
</dl>
<h4 class="name" id="ParsedURI">ParsedURI</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>address</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Base58Address">Base58Address</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>amount?</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Amount">Amount</a></span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Amount in satoshis.</p></td>
</tr>
<tr>
<td class="name"><code>label</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>message</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>request</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Payment request URL.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line70">line 70</a>
</li></ul></dd>
</dl>
<h4 class="name" id="Path">Path</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>name</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>Account name.</p></td>
</tr>
<tr>
<td class="name"><code>account</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Account index.</p></td>
</tr>
<tr>
<td class="name"><code>change</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Change chain.</p></td>
</tr>
<tr>
<td class="name"><code>index</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Address index.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line7">line 7</a>
</li></ul></dd>
</dl>
<h4 class="name" id="PingPacket">PingPacket</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>nonce</code></td>
<td class="type">
<span class="param-type"><a href="global.html#BN">BN</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line253">line 253</a>
</li></ul></dd>
</dl>
<h4 class="name" id="Program">Program</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Ranges from 0 to 16.</p></td>
</tr>
<tr>
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">String</span>
|
<span class="param-type">null</span>
</td>
<td class="description last"><p>Null if malformed. <code>unknown</code> if unknown
version (treated as anyone-can-spend). Otherwise one of <code>witnesspubkeyhash</code>
or <code>witnessscripthash</code>.</p></td>
</tr>
<tr>
<td class="name"><code>data</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"><p>Usually the hash.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line154">line 154</a>
</li></ul></dd>
</dl>
<h4 class="name" id="Rate">Rate</h4>
<div class="description">
<p>Rate of satoshis per kB.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type"><a href="global.html#Amount">Amount</a></span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line136">line 136</a>
</li></ul></dd>
</dl>
<h4 class="name" id="RejectPacket">RejectPacket</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line362">line 362</a>
</li></ul></dd>
</dl>
<h4 class="name" id="ReplyPacket">ReplyPacket</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>code</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>publicKey</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line197">line 197</a>
</li></ul></dd>
</dl>
<h4 class="name" id="ReversedHash">ReversedHash</h4>
<div class="description">
<p>Reversed hex-string hash (uint256le).</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">String</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line104">line 104</a>
</li></ul></dd>
</dl>
<h4 class="name" id="RevMap">RevMap</h4>
<div class="description">
<p>An inverse enum. Retrieves key by value.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line1">line 1</a>
</li></ul></dd>
</dl>
<h4 class="name" id="RouteCallback"><span class="type-signature"></span>RouteCallback<span class="signature">(req, res, next, send)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Middleware and route callback.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>req</code></td>
<td class="type">
<span class="param-type">HTTPRequest</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>res</code></td>
<td class="type">
<span class="param-type">HTTPResponse</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>next</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>send</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_http_base.js.html">bcoin/http/base.js</a>, <a href="bcoin_http_base.js.html#line213">line 213</a>
</li></ul></dd>
</dl>
<h4 class="name" id="SighashType">SighashType</h4>
<div class="description">
<p>Signature hash type. One of <code>all</code>, <code>single</code>, <code>none</code>, or
one of constants.hashType.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">String</span>
|
<span class="param-type">Number</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line110">line 110</a>
</li></ul></dd>
</dl>
<h4 class="name" id="SubmitOrderPacket">SubmitOrderPacket</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>tx</code></td>
<td class="type">
<span class="param-type"><a href="global.html#NakedTX">NakedTX</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line190">line 190</a>
</li></ul></dd>
</dl>
<h4 class="name" id="TSHeightCallback"><span class="type-signature"></span>TSHeightCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, ts, height)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>ts</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>height</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line570">line 570</a>
</li></ul></dd>
</dl>
<h4 class="name" id="TXCallback"><span class="type-signature"></span>TXCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, tx)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>tx</code></td>
<td class="type">
<span class="param-type"><a href="TX.html">TX</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line410">line 410</a>
</li></ul></dd>
</dl>
<h4 class="name" id="TXSCallback"><span class="type-signature"></span>TXSCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, txs)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>txs</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="TX.html">TX</a>></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line417">line 417</a>
</li></ul></dd>
</dl>
<h4 class="name" id="UTXOsPacket">UTXOsPacket</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>data.hits</code></td>
<td class="type">
<span class="param-type">Array</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Hits (array of
1s and 0s representing a bit mask).</p></td>
</tr>
<tr>
<td class="name"><code>data.map</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Hit map.</p></td>
</tr>
<tr>
<td class="name"><code>data.height</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>Chain height.</p></td>
</tr>
<tr>
<td class="name"><code>data.tip</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>Chain tip hash.</p></td>
</tr>
<tr>
<td class="name"><code>data.coins</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="global.html#NakedCoin">NakedCoin</a>></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line242">line 242</a>
</li></ul></dd>
</dl>
<h4 class="name" id="VerifyCallback"><span class="type-signature"></span>VerifyCallback<span class="signature">(err<span class="signature-attributes">nullable</span>)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type"><a href="VerifyError.html">VerifyError</a></span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line452">line 452</a>
</li></ul></dd>
</dl>
<h4 class="name" id="VerifyFlags">VerifyFlags</h4>
<div class="description">
<p>A bitfield containing script verify flags.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Number</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line148">line 148</a>
</li></ul></dd>
</dl>
<h4 class="name" id="VersionPacket">VersionPacket</h4>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Protocol version.</p></td>
</tr>
<tr>
<td class="name"><code>services</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Service bits.</p></td>
</tr>
<tr>
<td class="name"><code>ts</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Timestamp of discovery.</p></td>
</tr>
<tr>
<td class="name"><code>local</code></td>
<td class="type">
<span class="param-type"><a href="global.html#NakedNetworkAddress">NakedNetworkAddress</a></span>
</td>
<td class="description last"><p>Our address.</p></td>
</tr>
<tr>
<td class="name"><code>remote</code></td>
<td class="type">
<span class="param-type"><a href="global.html#NakedNetworkAddress">NakedNetworkAddress</a></span>
</td>
<td class="description last"><p>Their address.</p></td>
</tr>
<tr>
<td class="name"><code>nonce</code></td>
<td class="type">
<span class="param-type"><a href="global.html#BN">BN</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>agent</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>User agent string.</p></td>
</tr>
<tr>
<td class="name"><code>height</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Chain height.</p></td>
</tr>
<tr>
<td class="name"><code>relay</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="description last"><p>Whether transactions
should be relayed immediately.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line268">line 268</a>
</li></ul></dd>
</dl>
<h4 class="name" id="WalletCallback"><span class="type-signature"></span>WalletCallback<span class="signature">(err<span class="signature-attributes">nullable</span>, wallet)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>err</code></td>
<td class="type">
<span class="param-type">Error</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>wallet</code></td>
<td class="type">
<span class="param-type"><a href="Wallet.html">Wallet</a></span>
|
<span class="param-type">NakedWallet</span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line514">line 514</a>
</li></ul></dd>
</dl>
<h4 class="name" id="WalletID">WalletID</h4>
<div class="description">
<p>Wallet ID</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">String</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_types.js.html">bcoin/types.js</a>, <a href="bcoin_types.js.html#line80">line 80</a>
</li></ul></dd>
</dl>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-bcoin.html">bcoin</a></li><li><a href="module-constants.html">constants</a></li><li><a href="module-ec.html">ec</a></li><li><a href="module-ldb.html">ldb</a></li><li><a href="module-network.html">network</a></li><li><a href="module-profiler.html">profiler</a></li><li><a href="module-request.html">request</a></li><li><a href="module-uri.html">uri</a></li><li><a href="module-utils.html">utils</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBlock.html">AbstractBlock</a></li><li><a href="Account.html">Account</a></li><li><a href="Address.html">Address</a></li><li><a href="AES.html">AES</a></li><li><a href="Block.html">Block</a></li><li><a href="Bloom.html">Bloom</a></li><li><a href="BroadcastItem.html">BroadcastItem</a></li><li><a href="BST.html">BST</a></li><li><a href="BufferReader.html">BufferReader</a></li><li><a href="BufferWriter.html">BufferWriter</a></li><li><a href="Chain.html">Chain</a></li><li><a href="ChainDB.html">ChainDB</a></li><li><a href="ChainEntry.html">ChainEntry</a></li><li><a href="Coin.html">Coin</a></li><li><a href="Coins.html">Coins</a></li><li><a href="CoinView.html">CoinView</a></li><li><a href="CompactBlock.html">CompactBlock</a></li><li><a href="Environment.html">Environment</a></li><li><a href="Framer.html">Framer</a></li><li><a href="Fullnode.html">Fullnode</a></li><li><a href="HD.html">HD</a></li><li><a href="HDPrivateKey.html">HDPrivateKey</a></li><li><a href="HDPublicKey.html">HDPublicKey</a></li><li><a href="Headers.html">Headers</a></li><li><a href="HTTPBase.html">HTTPBase</a></li><li><a href="HTTPClient.html">HTTPClient</a></li><li><a href="HTTPServer.html">HTTPServer</a></li><li><a href="HTTPWallet.html">HTTPWallet</a></li><li><a href="Input.html">Input</a></li><li><a href="KeyPair.html">KeyPair</a></li><li><a href="KeyRing.html">KeyRing</a></li><li><a href="LoadRequest.html">LoadRequest</a></li><li><a href="Locker.html">Locker</a></li><li><a href="LowlevelUp.html">LowlevelUp</a></li><li><a href="LRU.html">LRU</a></li><li><a href="Master.html">Master</a></li><li><a href="Mempool.html">Mempool</a></li><li><a href="MempoolEntry.html">MempoolEntry</a></li><li><a href="MerkleBlock.html">MerkleBlock</a></li><li><a href="Miner.html">Miner</a></li><li><a href="MinerBlock.html">MinerBlock</a></li><li><a href="Mnemonic.html">Mnemonic</a></li><li><a href="MTX.html">MTX</a></li><li><a href="Network.html">Network</a></li><li><a href="NetworkAddress.html">NetworkAddress</a></li><li><a href="Node.html">Node</a></li><li><a href="NullCache.html">NullCache</a></li><li><a href="Output.html">Output</a></li><li><a href="Parser.html">Parser</a></li><li><a href="Peer.html">Peer</a></li><li><a href="Pool.html">Pool</a></li><li><a href="Profile.html">Profile</a></li><li><a href="RollingFilter.html">RollingFilter</a></li><li><a href="Script.html">Script</a></li><li><a href="ScriptError.html">ScriptError</a></li><li><a href="Snapshot.html">Snapshot</a></li><li><a href="SPVNode.html">SPVNode</a></li><li><a href="Stack.html">Stack</a></li><li><a href="TimeData.html">TimeData</a></li><li><a href="TX.html">TX</a></li><li><a href="TXDB.html">TXDB</a></li><li><a href="VerifyError.html">VerifyError</a></li><li><a href="Wallet.html">Wallet</a></li><li><a href="WalletDB.html">WalletDB</a></li><li><a href="Witness.html">Witness</a></li><li><a href="Worker.html">Worker</a></li><li><a href="Workers.html">Workers</a></li></ul><h3>Global</h3><ul><li><a href="global.html#hostname">hostname</a></li><li><a href="global.html#isMapped">isMapped</a></li><li><a href="global.html#mkdirp">mkdirp</a></li><li><a href="global.html#normalize">normalize</a></li><li><a href="global.html#parseHost">parseHost</a></li><li><a href="global.html#scrypt">scrypt</a></li><li><a href="global.html#toBuffer">toBuffer</a></li><li><a href="global.html#toString">toString</a></li><li><a href="global.html#version">version</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Jun 05 2016 20:46:56 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>