Skip to content

Commit

Permalink
add account and transaction method
Browse files Browse the repository at this point in the history
  • Loading branch information
qywang2012 committed Oct 31, 2018
1 parent 809dda9 commit d371351
Show file tree
Hide file tree
Showing 16 changed files with 601 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Here you should see a bunch of js files.
neb.js has been released to [NPM](https://www.npmjs.com/package/nebulas), and developers can use the following code through [CDN](https://www.jsdelivr.com/package/npm/nebulas) addition.

```html
<script src="https://cdn.jsdelivr.net/npm/nebulas@0.5.5/dist/nebulas.js"></script>
<script src="https://cdn.jsdelivr.net/npm/nebulas@0.5.6/dist/nebulas.js"></script>
```

## Documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/API.html
Original file line number Diff line number Diff line change
Expand Up @@ -2908,7 +2908,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>

on 2018-07-12T20:53:13+08:00
on 2018-10-31T18:05:56+08:00

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
160 changes: 159 additions & 1 deletion docs/Account.html
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,164 @@ <h5>Example</h5>



<hr>
<dt>
<h4 class="name" id=".fromPubKey"><span class="type-signature">&lt;static> </span>fromPubKey(publicKey)</h4>


</dt>
<dd>


<div class="description">
Restore account from public key.
</div>








<h5>Parameters:</h5>


<table class="params table table-striped">
<thead>
<tr>

<th>Name</th>


<th>Type</th>





<th class="last">Description</th>
</tr>
</thead>

<tbody>


<tr>

<td class="name"><code>publicKey</code></td>


<td class="type">


<span class="param-type">String/Hash</span>




</td>





<td class="description last">Public key.</td>
</tr>


</tbody>
</table>




<dl class="details">



































</dl>













<h5>Returns:</h5>


<div class="param-desc">
Instance of Account restored from address.
</div>



<dl>
<dt>
Type
</dt>
<dd>

<span class="param-type"><a href="Account.html">Account</a></span>



</dd>
</dl>





<h5>Example</h5>

<pre class="sunlight-highlight-javascript">var account = Account.fromPubKey(&quot;f18ec04019dd131bbcfada4020b001d547244d768f144ef947577ce53a13ad690eb43e4b02a8daa3c168045cd122c0685f083e1656756ba7982721322ebe4da7&quot;);</pre>



</dd>



<hr>
<dt>
<h4 class="name" id="setPrivateKey"><span class="type-signature"></span>setPrivateKey(priv)</h4>
Expand Down Expand Up @@ -2117,7 +2275,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>

on 2018-07-12T20:53:13+08:00
on 2018-10-31T18:05:56+08:00

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/Admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -2340,7 +2340,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>

on 2018-07-12T20:53:13+08:00
on 2018-10-31T18:05:56+08:00

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/Neb.html
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>

on 2018-07-12T20:53:13+08:00
on 2018-10-31T18:05:56+08:00

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Loading

0 comments on commit d371351

Please sign in to comment.