OSDN Git Service

Merge pull request #2 from Bytom/dev
[bytom/Bytom-JS-SDK.git] / docs / index.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4     
5     <meta charset="utf-8">
6     <title>Home - Documentation</title>
7     
8     
9     <script src="scripts/prettify/prettify.js"></script>
10     <script src="scripts/prettify/lang-css.js"></script>
11     <!--[if lt IE 9]>
12       <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13     <![endif]-->
14     <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15     <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16     <meta name="viewport" content="width=device-width, initial-scale=1.0">
17 </head>
18 <body>
19
20 <input type="checkbox" id="nav-trigger" class="nav-trigger" />
21 <label for="nav-trigger" class="navicon-button x">
22   <div class="navicon"></div>
23 </label>
24
25 <label for="nav-trigger" class="overlay"></label>
26
27 <nav >
28     
29     <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="accountsApi.html">accountsApi</a><ul class='methods'><li data-type='method'><a href="accountsApi.html#create">create</a></li><li data-type='method'><a href="accountsApi.html#createAddress">createAddress</a></li><li data-type='method'><a href="accountsApi.html#listAddresses">listAddresses</a></li></ul></li><li><a href="queryApi.html">queryApi</a><ul class='methods'><li data-type='method'><a href="queryApi.html#getblockstatus">getblockstatus</a></li><li data-type='method'><a href="queryApi.html#listAsset">listAsset</a></li><li data-type='method'><a href="queryApi.html#listUTXO">listUTXO</a></li></ul></li><li><a href="transactionsApi.html">transactionsApi</a><ul class='methods'><li data-type='method'><a href="transactionsApi.html#buildPayment">buildPayment</a></li><li data-type='method'><a href="transactionsApi.html#buildTransaction">buildTransaction</a></li><li data-type='method'><a href="transactionsApi.html#convertArguement">convertArguement</a></li><li data-type='method'><a href="transactionsApi.html#list">list</a></li><li data-type='method'><a href="transactionsApi.html#submit">submit</a></li></ul></li></ul>
30 </nav>
31
32 <div id="main">
33     
34
35     
36
37
38
39     
40
41
42     <section class="package">
43         <h3> </h3>              
44     </section>
45
46
47
48
49
50
51
52
53
54     
55
56
57
58     <section class="readme">
59         <article><h1>Bytom-JS-SDK</h1><p><a href="https://www.npmjs.com/package/bytom-js-sdk"><img src="https://img.shields.io/npm/v/bytom-js-sdk.svg?style=flat-square" alt="npm version"></a></p>
60 <h2>Install</h2><pre class="prettyprint source lang-bash"><code>npm install bytom-js-sdk</code></pre><h2>Use</h2><pre class="prettyprint source lang-javascript"><code>let net = {
61     main: &quot;http://main-net-host/&quot;,
62     test: &quot;http://test-net-host/&quot;
63 };
64 let bytom = new Bytom(net, chrome.runtime.getURL(&quot;main.wasm&quot;));
65
66 //set Bytom net type (main test), default main net.
67 bytom.setNetType('test');
68 console.log(bytom.getNetType());
69
70 //create key
71 bytom.sdk.keys.create(&quot;test_alias&quot;, &quot;123456&quot;).then((res)=>{
72     console.log(res)
73 }).catch(error => {
74     console.log(error)
75 });</code></pre><h2>WebAssembly build</h2><p>Project depends on WebAssembly. \
76 See <a href="https://github.com/oysheng/Bytom-WebAssembly">Bytom-WebAssembly</a>.</p></article>
77     </section>
78
79
80
81
82
83
84     
85     
86 </div>
87
88 <br class="clear">
89
90 <footer>
91     Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Apr 29 2019 10:37:11 GMT+0800 (CST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
92 </footer>
93
94 <script>prettyPrint();</script>
95 <script src="scripts/polyfill.js"></script>
96 <script src="scripts/linenumber.js"></script>
97
98
99
100 </body>
101 </html>