UNPKG

@cityofzion/neo-js

Version:

Running NEO blockchain full node with Node.js and MongoDB.

673 lines 128 kB
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>MongodbStorage | @cityofzion/neo-js</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">@cityofzion/neo-js</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-externals" checked /> <label class="tsd-widget" for="tsd-filter-externals">Externals</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="../modules/_storages_mongodb_storage_.html">&quot;storages/mongodb-storage&quot;</a> </li> <li> <a href="_storages_mongodb_storage_.mongodbstorage.html">MongodbStorage</a> </li> </ul> <h1>Class MongodbStorage</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel tsd-hierarchy"> <h3>Hierarchy</h3> <ul class="tsd-hierarchy"> <li> <span class="tsd-signature-type">EventEmitter</span> <ul class="tsd-hierarchy"> <li> <span class="target">MongodbStorage</span> </li> </ul> </li> </ul> </section> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section "> <h3>Constructors</h3> <ul class="tsd-index-list"> <li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#constructor" class="tsd-kind-icon">constructor</a></li> </ul> </section> <section class="tsd-index-section "> <h3>Properties</h3> <ul class="tsd-index-list"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#_isready" class="tsd-kind-icon">_is<wbr>Ready</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#blockdao" class="tsd-kind-icon">block<wbr>Dao</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#blockmetadao" class="tsd-kind-icon">block<wbr>Meta<wbr>Dao</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#logger" class="tsd-kind-icon">logger</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#options" class="tsd-kind-icon">options</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#transactionmetadao" class="tsd-kind-icon">transaction<wbr>Meta<wbr>Dao</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static"><a href="_storages_mongodb_storage_.mongodbstorage.html#defaultmaxlisteners" class="tsd-kind-icon">default<wbr>Max<wbr>Listeners</a></li> </ul> </section> <section class="tsd-index-section "> <h3>Methods</h3> <ul class="tsd-index-list"> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#addlistener" class="tsd-kind-icon">add<wbr>Listener</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#analyzeblockmetas" class="tsd-kind-icon">analyze<wbr>Block<wbr>Metas</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#analyzeblocks" class="tsd-kind-icon">analyze<wbr>Blocks</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#analyzetransactionmetas" class="tsd-kind-icon">analyze<wbr>Transaction<wbr>Metas</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#close" class="tsd-kind-icon">close</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#countblockredundancy" class="tsd-kind-icon">count<wbr>Block<wbr>Redundancy</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#countlegacytransactionmeta" class="tsd-kind-icon">count<wbr>Legacy<wbr>Transaction<wbr>Meta</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#emit" class="tsd-kind-icon">emit</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#eventnames" class="tsd-kind-icon">event<wbr>Names</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#getblock" class="tsd-kind-icon">get<wbr>Block</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#getblockcount" class="tsd-kind-icon">get<wbr>Block<wbr>Count</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#getblockmetacount" class="tsd-kind-icon">get<wbr>Block<wbr>Meta<wbr>Count</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#getblocks" class="tsd-kind-icon">get<wbr>Blocks</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#gethighestblockheight" class="tsd-kind-icon">get<wbr>Highest<wbr>Block<wbr>Height</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#gethighestblockmetaheight" class="tsd-kind-icon">get<wbr>Highest<wbr>Block<wbr>Meta<wbr>Height</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#getmaxlisteners" class="tsd-kind-icon">get<wbr>Max<wbr>Listeners</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#gettransaction" class="tsd-kind-icon">get<wbr>Transaction</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#initconnection" class="tsd-kind-icon">init<wbr>Connection</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#isready" class="tsd-kind-icon">is<wbr>Ready</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#listenercount" class="tsd-kind-icon">listener<wbr>Count</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#listeners" class="tsd-kind-icon">listeners</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#off" class="tsd-kind-icon">off</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#on" class="tsd-kind-icon">on</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#once" class="tsd-kind-icon">once</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#prependlistener" class="tsd-kind-icon">prepend<wbr>Listener</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#prependoncelistener" class="tsd-kind-icon">prepend<wbr>Once<wbr>Listener</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#pruneblock" class="tsd-kind-icon">prune<wbr>Block</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#prunelegacytransactionmeta" class="tsd-kind-icon">prune<wbr>Legacy<wbr>Transaction<wbr>Meta</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#rawlisteners" class="tsd-kind-icon">raw<wbr>Listeners</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#readyhandler" class="tsd-kind-icon">ready<wbr>Handler</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#removealllisteners" class="tsd-kind-icon">remove<wbr>All<wbr>Listeners</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#removeblockmetabyheight" class="tsd-kind-icon">remove<wbr>Block<wbr>Meta<wbr>ByHeight</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#removelistener" class="tsd-kind-icon">remove<wbr>Listener</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#reviewblockindexforheight" class="tsd-kind-icon">review<wbr>Block<wbr>Index<wbr>For<wbr>Height</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#reviewblockindexfortransactionid" class="tsd-kind-icon">review<wbr>Block<wbr>Index<wbr>For<wbr>Transaction<wbr>Id</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#reviewblockmetaindexforheight" class="tsd-kind-icon">review<wbr>Block<wbr>Meta<wbr>Index<wbr>For<wbr>Height</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#reviewblockmetaindexfortime" class="tsd-kind-icon">review<wbr>Block<wbr>Meta<wbr>Index<wbr>For<wbr>Time</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#reviewindexes" class="tsd-kind-icon">review<wbr>Indexes</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#reviewtransactionmetaindexforheight" class="tsd-kind-icon">review<wbr>Transaction<wbr>Meta<wbr>Index<wbr>For<wbr>Height</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#reviewtransactionmetaindexfortime" class="tsd-kind-icon">review<wbr>Transaction<wbr>Meta<wbr>Index<wbr>For<wbr>Time</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#reviewtransactionmetaindexfortransactionid" class="tsd-kind-icon">review<wbr>Transaction<wbr>Meta<wbr>Index<wbr>For<wbr>Transaction<wbr>Id</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#reviewtransactionmetaindexfortype" class="tsd-kind-icon">review<wbr>Transaction<wbr>Meta<wbr>Index<wbr>For<wbr>Type</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#setblock" class="tsd-kind-icon">set<wbr>Block</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#setblockcount" class="tsd-kind-icon">set<wbr>Block<wbr>Count</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#setblockmeta" class="tsd-kind-icon">set<wbr>Block<wbr>Meta</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"><a href="_storages_mongodb_storage_.mongodbstorage.html#setmaxlisteners" class="tsd-kind-icon">set<wbr>Max<wbr>Listeners</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#setready" class="tsd-kind-icon">set<wbr>Ready</a></li> <li class="tsd-kind-method tsd-parent-kind-class"><a href="_storages_mongodb_storage_.mongodbstorage.html#settransactionmeta" class="tsd-kind-icon">set<wbr>Transaction<wbr>Meta</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_storages_mongodb_storage_.mongodbstorage.html#validateoptionalparameters" class="tsd-kind-icon">validate<wbr>Optional<wbr>Parameters</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static"><a href="_storages_mongodb_storage_.mongodbstorage.html#listenercount-1" class="tsd-kind-icon">listener<wbr>Count</a></li> </ul> </section> </div> </section> </section> <section class="tsd-panel-group tsd-member-group "> <h2>Constructors</h2> <section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"> <a name="constructor" class="tsd-anchor"></a> <h3>constructor</h3> <ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">new <wbr>Mongodb<wbr>Storage<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/_storages_mongodb_storage_.mongodbstorageoptions.html" class="tsd-signature-type">MongodbStorageOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_storages_mongodb_storage_.mongodbstorage.html" class="tsd-signature-type">MongodbStorage</a></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L45">storages/mongodb-storage.ts:45</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5><span class="tsd-flag ts-flagDefault value">Default value</span> options: <a href="../interfaces/_storages_mongodb_storage_.mongodbstorageoptions.html" class="tsd-signature-type">MongodbStorageOptions</a><span class="tsd-signature-symbol"> =&nbsp;{}</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <a href="_storages_mongodb_storage_.mongodbstorage.html" class="tsd-signature-type">MongodbStorage</a></h4> </li> </ul> </section> </section> <section class="tsd-panel-group tsd-member-group "> <h2>Properties</h2> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"> <a name="_isready" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagPrivate">Private</span> _is<wbr>Ready</h3> <div class="tsd-signature tsd-kind-icon">_is<wbr>Ready<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> =&nbsp;false</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L40">storages/mongodb-storage.ts:40</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"> <a name="blockdao" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagPrivate">Private</span> block<wbr>Dao</h3> <div class="tsd-signature tsd-kind-icon">block<wbr>Dao<span class="tsd-signature-symbol">:</span> <a href="_storages_mongodb_block_dao_.blockdao.html" class="tsd-signature-type">BlockDao</a></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L41">storages/mongodb-storage.ts:41</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"> <a name="blockmetadao" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagPrivate">Private</span> block<wbr>Meta<wbr>Dao</h3> <div class="tsd-signature tsd-kind-icon">block<wbr>Meta<wbr>Dao<span class="tsd-signature-symbol">:</span> <a href="_storages_mongodb_block_meta_dao_.blockmetadao.html" class="tsd-signature-type">BlockMetaDao</a></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L42">storages/mongodb-storage.ts:42</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"> <a name="logger" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagPrivate">Private</span> logger</h3> <div class="tsd-signature tsd-kind-icon">logger<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Logger</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L45">storages/mongodb-storage.ts:45</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"> <a name="options" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagPrivate">Private</span> options</h3> <div class="tsd-signature tsd-kind-icon">options<span class="tsd-signature-symbol">:</span> <a href="../interfaces/_storages_mongodb_storage_.mongodbstorageoptions.html" class="tsd-signature-type">MongodbStorageOptions</a></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L44">storages/mongodb-storage.ts:44</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"> <a name="transactionmetadao" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagPrivate">Private</span> transaction<wbr>Meta<wbr>Dao</h3> <div class="tsd-signature tsd-kind-icon">transaction<wbr>Meta<wbr>Dao<span class="tsd-signature-symbol">:</span> <a href="_storages_mongodb_transaction_meta_dao_.transactionmetadao.html" class="tsd-signature-type">TransactionMetaDao</a></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L43">storages/mongodb-storage.ts:43</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static"> <a name="defaultmaxlisteners" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> default<wbr>Max<wbr>Listeners</h3> <div class="tsd-signature tsd-kind-icon">default<wbr>Max<wbr>Listeners<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <p>Inherited from EventEmitter.defaultMaxListeners</p> <ul> <li>Defined in /Users/travis/ProjectGit/CityOfZion/neo-js/node_modules/@types/node/index.d.ts:1089</li> </ul> </aside> </section> </section> <section class="tsd-panel-group tsd-member-group "> <h2>Methods</h2> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"> <a name="addlistener" class="tsd-anchor"></a> <h3>add<wbr>Listener</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"> <li class="tsd-signature tsd-kind-icon">add<wbr>Listener<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">this</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from EventEmitter.addListener</p> <p>Overrides EventEmitter.addListener</p> <ul> <li>Defined in /Users/travis/ProjectGit/CityOfZion/neo-js/node_modules/@types/node/index.d.ts:1091</li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5> </li> <li> <h5>listener: <span class="tsd-signature-type">function</span></h5> <ul class="tsd-parameters"> <li class="tsd-parameter-siganture"> <ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported"> <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>args: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </li> </ul> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="analyzeblockmetas" class="tsd-anchor"></a> <h3>analyze<wbr>Block<wbr>Metas</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">analyze<wbr>Block<wbr>Metas<span class="tsd-signature-symbol">(</span>startHeight<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, endHeight<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L199">storages/mongodb-storage.ts:199</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>startHeight: <span class="tsd-signature-type">number</span></h5> </li> <li> <h5>endHeight: <span class="tsd-signature-type">number</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="analyzeblocks" class="tsd-anchor"></a> <h3>analyze<wbr>Blocks</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">analyze<wbr>Blocks<span class="tsd-signature-symbol">(</span>startHeight<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, endHeight<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L164">storages/mongodb-storage.ts:164</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>startHeight: <span class="tsd-signature-type">number</span></h5> </li> <li> <h5>endHeight: <span class="tsd-signature-type">number</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="analyzetransactionmetas" class="tsd-anchor"></a> <h3>analyze<wbr>Transaction<wbr>Metas</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">analyze<wbr>Transaction<wbr>Metas<span class="tsd-signature-symbol">(</span>startHeight<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, endHeight<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L204">storages/mongodb-storage.ts:204</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>startHeight: <span class="tsd-signature-type">number</span></h5> </li> <li> <h5>endHeight: <span class="tsd-signature-type">number</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="close" class="tsd-anchor"></a> <h3>close</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">close<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L222">storages/mongodb-storage.ts:222</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="countblockredundancy" class="tsd-anchor"></a> <h3>count<wbr>Block<wbr>Redundancy</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">count<wbr>Block<wbr>Redundancy<span class="tsd-signature-symbol">(</span>height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L87">storages/mongodb-storage.ts:87</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>height: <span class="tsd-signature-type">number</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="countlegacytransactionmeta" class="tsd-anchor"></a> <h3>count<wbr>Legacy<wbr>Transaction<wbr>Meta</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">count<wbr>Legacy<wbr>Transaction<wbr>Meta<span class="tsd-signature-symbol">(</span>targetApiLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L214">storages/mongodb-storage.ts:214</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>targetApiLevel: <span class="tsd-signature-type">number</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"> <a name="emit" class="tsd-anchor"></a> <h3>emit</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"> <li class="tsd-signature tsd-kind-icon">emit<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span>, <span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from EventEmitter.emit</p> <p>Overrides EventEmitter.emit</p> <ul> <li>Defined in /Users/travis/ProjectGit/CityOfZion/neo-js/node_modules/@types/node/index.d.ts:1103</li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>event: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h5> </li> <li> <h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>args: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"> <a name="eventnames" class="tsd-anchor"></a> <h3>event<wbr>Names</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"> <li class="tsd-signature tsd-kind-icon">event<wbr>Names<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from EventEmitter.eventNames</p> <p>Overrides EventEmitter.eventNames</p> <ul> <li>Defined in /Users/travis/ProjectGit/CityOfZion/neo-js/node_modules/@types/node/index.d.ts:1104</li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getblock" class="tsd-anchor"></a> <h3>get<wbr>Block</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Block<span class="tsd-signature-symbol">(</span>height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L92">storages/mongodb-storage.ts:92</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>height: <span class="tsd-signature-type">number</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getblockcount" class="tsd-anchor"></a> <h3>get<wbr>Block<wbr>Count</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Block<wbr>Count<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L74">storages/mongodb-storage.ts:74</a></li> </ul> </aside> <div class="tsd-comment tsd-typography"> <dl class="tsd-comment-tags"> <dt>deprecated</dt> <dd></dd> </dl> </div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getblockmetacount" class="tsd-anchor"></a> <h3>get<wbr>Block<wbr>Meta<wbr>Count</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Block<wbr>Meta<wbr>Count<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L169">storages/mongodb-storage.ts:169</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="getblocks" class="tsd-anchor"></a> <h3>get<wbr>Blocks</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Blocks<span class="tsd-signature-symbol">(</span>height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L105">storages/mongodb-storage.ts:105</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>height: <span class="tsd-signature-type">number</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="gethighestblockheight" class="tsd-anchor"></a> <h3>get<wbr>Highest<wbr>Block<wbr>Height</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Highest<wbr>Block<wbr>Height<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L78">storages/mongodb-storage.ts:78</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="gethighestblockmetaheight" class="tsd-anchor"></a> <h3>get<wbr>Highest<wbr>Block<wbr>Meta<wbr>Height</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Highest<wbr>Block<wbr>Meta<wbr>Height<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L174">storages/mongodb-storage.ts:174</a></li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"> <a name="getmaxlisteners" class="tsd-anchor"></a> <h3>get<wbr>Max<wbr>Listeners</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited"> <li class="tsd-signature tsd-kind-icon">get<wbr>Max<wbr>Listeners<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from EventEmitter.getMaxListeners</p> <p>Overrides EventEmitter.getMaxListeners</p> <ul> <li>Defined in /Users/travis/ProjectGit/CityOfZion/neo-js/node_modules/@types/node/index.d.ts:1100</li> </ul> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"> <a name="gettransaction" class="tsd-anchor"></a> <h3>get<wbr>Transaction</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"> <li class="tsd-signature tsd-kind-icon">get<wbr>Transaction<span class="tsd-signature-symbol">(</span>transactionId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-storage.ts#L116">storages/mongodb-storage.ts:116</a></li> </ul> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>transactionId: <span class="tsd-signature-type">string</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private"> <a name="initconnection" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagPrivate">Private</span> init<wbr>Connection</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private"> <li class="tsd-signature tsd-kind-icon">init<wbr>Connection<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/CityOfZion/neo-js/blob/87cbcb8/src/storages/mongodb-