ontology-ts-sdk
Version:
Comprehensive TypeScript library for the Ontology blockchain.
691 lines • 43.3 kB
HTML
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>"consts" | ontology-ts-sdk</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">ontology-ts-sdk</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="_consts_.html">"consts"</a>
</li>
</ul>
<h1>External module "consts"</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<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>Variables</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#addr_version" class="tsd-kind-icon">ADDR_<wbr>VERSION</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#default_gas_limit" class="tsd-kind-icon">DEFAULT_<wbr>GAS_<wbr>LIMIT</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#default_sm2_id" class="tsd-kind-icon">DEFAULT_<wbr>SM2_<wbr>ID</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#http_json_port" class="tsd-kind-icon">HTTP_<wbr>JSON_<wbr>PORT</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#http_rest_port" class="tsd-kind-icon">HTTP_<wbr>REST_<wbr>PORT</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#http_ws_port" class="tsd-kind-icon">HTTP_<wbr>WS_<wbr>PORT</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#main_node" class="tsd-kind-icon">MAIN_<wbr>NODE</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#native_invoke_name" class="tsd-kind-icon">NATIVE_<wbr>INVOKE_<wbr>NAME</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#oep_flag" class="tsd-kind-icon">OEP_<wbr>FLAG</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#oep_header" class="tsd-kind-icon">OEP_<wbr>HEADER</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#ont_bip44_path" class="tsd-kind-icon">ONT_<wbr>BIP44_<wbr>PATH</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#test_node" class="tsd-kind-icon">TEST_<wbr>NODE</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#tx_max_sig_size" class="tsd-kind-icon">TX_<wbr>MAX_<wbr>SIG_<wbr>SIZE</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="_consts_.html#webview_scheme" class="tsd-kind-icon">WEBVIEW_<wbr>SCHEME</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Object literals</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-object-literal tsd-parent-kind-external-module"><a href="_consts_.html#default_algorithm" class="tsd-kind-icon">DEFAULT_<wbr>ALGORITHM</a></li>
<li class="tsd-kind-object-literal tsd-parent-kind-external-module"><a href="_consts_.html#default_scrypt" class="tsd-kind-icon">DEFAULT_<wbr>SCRYPT</a></li>
<li class="tsd-kind-object-literal tsd-parent-kind-external-module"><a href="_consts_.html#main_ont_url" class="tsd-kind-icon">MAIN_<wbr>ONT_<wbr>URL</a></li>
<li class="tsd-kind-object-literal tsd-parent-kind-external-module"><a href="_consts_.html#ont_network" class="tsd-kind-icon">ONT_<wbr>NETWORK</a></li>
<li class="tsd-kind-object-literal tsd-parent-kind-external-module"><a href="_consts_.html#rest_api" class="tsd-kind-icon">REST_<wbr>API</a></li>
<li class="tsd-kind-object-literal tsd-parent-kind-external-module"><a href="_consts_.html#test_ont_url" class="tsd-kind-icon">TEST_<wbr>ONT_<wbr>URL</a></li>
<li class="tsd-kind-object-literal tsd-parent-kind-external-module"><a href="_consts_.html#token_type" class="tsd-kind-icon">TOKEN_<wbr>TYPE</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Variables</h2>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="addr_version" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> ADDR_<wbr>VERSION</h3>
<div class="tsd-signature tsd-kind-icon">ADDR_<wbr>VERSION<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"17"</span><span class="tsd-signature-symbol"> = "17"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L20">consts.ts:20</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="default_gas_limit" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> DEFAULT_<wbr>GAS_<wbr>LIMIT</h3>
<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>GAS_<wbr>LIMIT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">30000</span><span class="tsd-signature-symbol"> = 30000</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L94">consts.ts:94</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="default_sm2_id" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> DEFAULT_<wbr>SM2_<wbr>ID</h3>
<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>SM2_<wbr>ID<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"1234567812345678"</span><span class="tsd-signature-symbol"> = "1234567812345678"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L44">consts.ts:44</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="http_json_port" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> HTTP_<wbr>JSON_<wbr>PORT</h3>
<div class="tsd-signature tsd-kind-icon">HTTP_<wbr>JSON_<wbr>PORT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"20336"</span><span class="tsd-signature-symbol"> = "20336"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L55">consts.ts:55</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="http_rest_port" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> HTTP_<wbr>REST_<wbr>PORT</h3>
<div class="tsd-signature tsd-kind-icon">HTTP_<wbr>REST_<wbr>PORT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"20334"</span><span class="tsd-signature-symbol"> = "20334"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L53">consts.ts:53</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="http_ws_port" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> HTTP_<wbr>WS_<wbr>PORT</h3>
<div class="tsd-signature tsd-kind-icon">HTTP_<wbr>WS_<wbr>PORT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"20335"</span><span class="tsd-signature-symbol"> = "20335"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L54">consts.ts:54</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="main_node" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> MAIN_<wbr>NODE</h3>
<div class="tsd-signature tsd-kind-icon">MAIN_<wbr>NODE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"dappnode1.ont.io"</span><span class="tsd-signature-symbol"> = "dappnode1.ont.io"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L51">consts.ts:51</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="native_invoke_name" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> NATIVE_<wbr>INVOKE_<wbr>NAME</h3>
<div class="tsd-signature tsd-kind-icon">NATIVE_<wbr>INVOKE_<wbr>NAME<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"Ontology.Native.Invoke"</span><span class="tsd-signature-symbol"> = "Ontology.Native.Invoke"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L96">consts.ts:96</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="oep_flag" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> OEP_<wbr>FLAG</h3>
<div class="tsd-signature tsd-kind-icon">OEP_<wbr>FLAG<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"e0"</span><span class="tsd-signature-symbol"> = "e0"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L32">consts.ts:32</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="oep_header" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> OEP_<wbr>HEADER</h3>
<div class="tsd-signature tsd-kind-icon">OEP_<wbr>HEADER<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"0142"</span><span class="tsd-signature-symbol"> = "0142"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L30">consts.ts:30</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="ont_bip44_path" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> ONT_<wbr>BIP44_<wbr>PATH</h3>
<div class="tsd-signature tsd-kind-icon">ONT_<wbr>BIP44_<wbr>PATH<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"m/44'/1024'/0'/0/0"</span><span class="tsd-signature-symbol"> = "m/44'/1024'/0'/0/0"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L101">consts.ts:101</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="test_node" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> TEST_<wbr>NODE</h3>
<div class="tsd-signature tsd-kind-icon">TEST_<wbr>NODE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"polaris1.ont.io"</span><span class="tsd-signature-symbol"> = "polaris1.ont.io"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L46">consts.ts:46</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="tx_max_sig_size" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> TX_<wbr>MAX_<wbr>SIG_<wbr>SIZE</h3>
<div class="tsd-signature tsd-kind-icon">TX_<wbr>MAX_<wbr>SIG_<wbr>SIZE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">16</span><span class="tsd-signature-symbol"> = 16</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L98">consts.ts:98</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="webview_scheme" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> WEBVIEW_<wbr>SCHEME</h3>
<div class="tsd-signature tsd-kind-icon">WEBVIEW_<wbr>SCHEME<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"Ont"</span><span class="tsd-signature-symbol"> = "Ont"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L35">consts.ts:35</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Object literals</h2>
<section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-external-module">
<a name="default_algorithm" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> DEFAULT_<wbr>ALGORITHM</h3>
<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>ALGORITHM<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L37">consts.ts:37</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="default_algorithm.algorithm" class="tsd-anchor"></a>
<h3>algorithm</h3>
<div class="tsd-signature tsd-kind-icon">algorithm<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = "ECDSA"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L38">consts.ts:38</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-object-literal">
<a name="default_algorithm.parameters" class="tsd-anchor"></a>
<h3>parameters</h3>
<div class="tsd-signature tsd-kind-icon">parameters<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L39">consts.ts:39</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="default_algorithm.parameters.curve" class="tsd-anchor"></a>
<h3>curve</h3>
<div class="tsd-signature tsd-kind-icon">curve<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = "P-256"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L40">consts.ts:40</a></li>
</ul>
</aside>
</section>
</section>
</section>
<section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-external-module">
<a name="default_scrypt" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> DEFAULT_<wbr>SCRYPT</h3>
<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>SCRYPT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L22">consts.ts:22</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="default_scrypt.blocksize" class="tsd-anchor"></a>
<h3>block<wbr>Size</h3>
<div class="tsd-signature tsd-kind-icon">block<wbr>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 8</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L24">consts.ts:24</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="default_scrypt.cost" class="tsd-anchor"></a>
<h3>cost</h3>
<div class="tsd-signature tsd-kind-icon">cost<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 4096</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L23">consts.ts:23</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="default_scrypt.parallel" class="tsd-anchor"></a>
<h3>parallel</h3>
<div class="tsd-signature tsd-kind-icon">parallel<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 8</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L25">consts.ts:25</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="default_scrypt.size" class="tsd-anchor"></a>
<h3>size</h3>
<div class="tsd-signature tsd-kind-icon">size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 64</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L26">consts.ts:26</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-external-module">
<a name="main_ont_url" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> MAIN_<wbr>ONT_<wbr>URL</h3>
<div class="tsd-signature tsd-kind-icon">MAIN_<wbr>ONT_<wbr>URL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L78">consts.ts:78</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="main_ont_url.rest_url" class="tsd-anchor"></a>
<h3>REST_<wbr>URL</h3>
<div class="tsd-signature tsd-kind-icon">REST_<wbr>URL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = `http://${MAIN_NODE}:${HTTP_REST_PORT}/`</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L83">consts.ts:83</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="main_ont_url.rpc_url" class="tsd-anchor"></a>
<h3>RPC_<wbr>URL</h3>
<div class="tsd-signature tsd-kind-icon">RPC_<wbr>URL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = `http://${MAIN_NODE}:${HTTP_JSON_PORT}/`</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L81">consts.ts:81</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="main_ont_url.socket_url" class="tsd-anchor"></a>
<h3>SOCKET_<wbr>URL</h3>
<div class="tsd-signature tsd-kind-icon">SOCKET_<wbr>URL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = `ws://${MAIN_NODE}:${HTTP_WS_PORT}`</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L79">consts.ts:79</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="main_ont_url.sendrawtxbyrestful" class="tsd-anchor"></a>
<h3>send<wbr>Raw<wbr>TxBy<wbr>Restful</h3>
<div class="tsd-signature tsd-kind-icon">send<wbr>Raw<wbr>TxBy<wbr>Restful<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = `http://${TEST_NODE}:${HTTP_REST_PORT}${REST_API.sendRawTx}`</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L85">consts.ts:85</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-external-module">
<a name="ont_network" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> ONT_<wbr>NETWORK</h3>
<div class="tsd-signature tsd-kind-icon">ONT_<wbr>NETWORK<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L63">consts.ts:63</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="ont_network.main" class="tsd-anchor"></a>
<h3>MAIN</h3>
<div class="tsd-signature tsd-kind-icon">MAIN<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = "MainNet"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L64">consts.ts:64</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="ont_network.test" class="tsd-anchor"></a>
<h3>TEST</h3>
<div class="tsd-signature tsd-kind-icon">TEST<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = "TestNet"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L65">consts.ts:65</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-external-module">
<a name="rest_api" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> REST_<wbr>API</h3>
<div class="tsd-signature tsd-kind-icon">REST_<wbr>API<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L57">consts.ts:57</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="rest_api.getbalance" class="tsd-anchor"></a>
<h3>get<wbr>Balance</h3>
<div class="tsd-signature tsd-kind-icon">get<wbr>Balance<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = "/api/v1/balance"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L58">consts.ts:58</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="rest_api.getmerkleproof" class="tsd-anchor"></a>
<h3>get<wbr>Merkle<wbr>Proof</h3>
<div class="tsd-signature tsd-kind-icon">get<wbr>Merkle<wbr>Proof<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = "/api/v1/merkleproof"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L60">consts.ts:60</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="rest_api.sendrawtx" class="tsd-anchor"></a>
<h3>send<wbr>Raw<wbr>Tx</h3>
<div class="tsd-signature tsd-kind-icon">send<wbr>Raw<wbr>Tx<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = "/api/v1/transaction"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L59">consts.ts:59</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-external-module">
<a name="test_ont_url" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> TEST_<wbr>ONT_<wbr>URL</h3>
<div class="tsd-signature tsd-kind-icon">TEST_<wbr>ONT_<wbr>URL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L68">consts.ts:68</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="test_ont_url.rest_url-1" class="tsd-anchor"></a>
<h3>REST_<wbr>URL</h3>
<div class="tsd-signature tsd-kind-icon">REST_<wbr>URL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = `http://${TEST_NODE}:${HTTP_REST_PORT}`</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L73">consts.ts:73</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="test_ont_url.rpc_url-1" class="tsd-anchor"></a>
<h3>RPC_<wbr>URL</h3>
<div class="tsd-signature tsd-kind-icon">RPC_<wbr>URL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = `http://${TEST_NODE}:${HTTP_JSON_PORT}`</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L71">consts.ts:71</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="test_ont_url.socket_url-1" class="tsd-anchor"></a>
<h3>SOCKET_<wbr>URL</h3>
<div class="tsd-signature tsd-kind-icon">SOCKET_<wbr>URL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = `ws://${TEST_NODE}:${HTTP_WS_PORT}`</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L69">consts.ts:69</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="test_ont_url.sendrawtxbyrestful-1" class="tsd-anchor"></a>
<h3>send<wbr>Raw<wbr>TxBy<wbr>Restful</h3>
<div class="tsd-signature tsd-kind-icon">send<wbr>Raw<wbr>TxBy<wbr>Restful<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = `http://${TEST_NODE}:${HTTP_REST_PORT}${REST_API.sendRawTx}`</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L75">consts.ts:75</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-external-module">
<a name="token_type" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> TOKEN_<wbr>TYPE</h3>
<div class="tsd-signature tsd-kind-icon">TOKEN_<wbr>TYPE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L89">consts.ts:89</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="token_type.ong" class="tsd-anchor"></a>
<h3>ONG</h3>
<div class="tsd-signature tsd-kind-icon">ONG<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = "ONG"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L91">consts.ts:91</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
<a name="token_type.ont" class="tsd-anchor"></a>
<h3>ONT</h3>
<div class="tsd-signature tsd-kind-icon">ONT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = "ONT"</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/consts.ts#L90">consts.ts:90</a></li>
</ul>
</aside>
</section>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../globals.html"><em>Globals</em></a>
</li>
<li class="current tsd-kind-external-module">
<a href="_consts_.html">"consts"</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#addr_version" class="tsd-kind-icon">ADDR_<wbr>VERSION</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#default_gas_limit" class="tsd-kind-icon">DEFAULT_<wbr>GAS_<wbr>LIMIT</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#default_sm2_id" class="tsd-kind-icon">DEFAULT_<wbr>SM2_<wbr>ID</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#http_json_port" class="tsd-kind-icon">HTTP_<wbr>JSON_<wbr>PORT</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#http_rest_port" class="tsd-kind-icon">HTTP_<wbr>REST_<wbr>PORT</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#http_ws_port" class="tsd-kind-icon">HTTP_<wbr>WS_<wbr>PORT</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#main_node" class="tsd-kind-icon">MAIN_<wbr>NODE</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#native_invoke_name" class="tsd-kind-icon">NATIVE_<wbr>INVOKE_<wbr>NAME</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#oep_flag" class="tsd-kind-icon">OEP_<wbr>FLAG</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#oep_header" class="tsd-kind-icon">OEP_<wbr>HEADER</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#ont_bip44_path" class="tsd-kind-icon">ONT_<wbr>BIP44_<wbr>PATH</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#test_node" class="tsd-kind-icon">TEST_<wbr>NODE</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#tx_max_sig_size" class="tsd-kind-icon">TX_<wbr>MAX_<wbr>SIG_<wbr>SIZE</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module">
<a href="_consts_.html#webview_scheme" class="tsd-kind-icon">WEBVIEW_<wbr>SCHEME</a>
</li>
<li class=" tsd-kind-object-literal tsd-parent-kind-external-module">
<a href="_consts_.html#default_algorithm" class="tsd-kind-icon">DEFAULT_<wbr>ALGORITHM</a>
</li>
<li class=" tsd-kind-object-literal tsd-parent-kind-external-module">
<a href="_consts_.html#default_scrypt" class="tsd-kind-icon">DEFAULT_<wbr>SCRYPT</a>
</li>
<li class=" tsd-kind-object-literal tsd-parent-kind-external-module">
<a href="_consts_.html#main_ont_url" class="tsd-kind-icon">MAIN_<wbr>ONT_<wbr>URL</a>
</li>
<li class=" tsd-kind-object-literal tsd-parent-kind-external-module">
<a href="_consts_.html#ont_network" class="tsd-kind-icon">ONT_<wbr>NETWORK</a>
</li>
<li class=" tsd-kind-object-literal tsd-parent-kind-external-module">
<a href="_consts_.html#rest_api" class="tsd-kind-icon">REST_<wbr>API</a>
</li>
<li class=" tsd-kind-object-literal tsd-parent-kind-external-module">
<a href="_consts_.html#test_ont_url" class="tsd-kind-icon">TEST_<wbr>ONT_<wbr>URL</a>
</li>
<li class=" tsd-kind-object-literal tsd-parent-kind-external-module">
<a href="_consts_.html#token_type" class="tsd-kind-icon">TOKEN_<wbr>TYPE</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="http://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>