Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Fee for optional data - Closes #146 #147

Closed
wants to merge 10 commits into from
29 changes: 29 additions & 0 deletions docs/example/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ <h1>API</h1>
<a href="#functions_listTransactions" class="list-group-item sub-item" data-parent="#api_functions_sub" style="padding-left: 34px;">listTransactions</a>
<a href="#functions_listVotes" class="list-group-item sub-item" data-parent="#api_functions_sub" style="padding-left: 34px;">listVotes</a>
<a href="#functions_listVoters" class="list-group-item sub-item" data-parent="#api_functions_sub" style="padding-left: 34px;">listVoters</a>
<a href="#functions_broadcastSignedTransaction" class="list-group-item sub-item" data-parent="#api_functions_sub" style="padding-left: 34px;">broadcastSignedTransaction</a>

<a href="#functions_listMultisignatureTransactions" class="list-group-item sub-item" data-parent="#api_functions_sub" style="padding-left: 34px;">listMultisignatureTransactions</a>
<a href="#functions_getMultisignatureTransaction" class="list-group-item sub-item" data-parent="#api_functions_sub" style="padding-left: 34px;">getMultisignatureTransaction</a>
Expand Down Expand Up @@ -406,6 +407,34 @@ <h3>Example <small>List votes received by a given address</small></h3>
</div>
</div>

<h3 id="functions_broadcastSignedTransaction">broadcastSignedTransaction</h3>

<div class="panel panel-default">
<div class="panel-body">
<div class="rows">
<div class="col-md-12">
<h3>Example <small>Create a signed transaction, use broadcastSignedTransaction to send it to the network</small></h3>
<figure class="highlight">
<pre>
<code class="language-html" data-lang="html">
var LSK = lisk.api({testnet: true});

var amount = 10 * Math.pow(10, 8);
var transaction = lisk.transaction.createTransaction('15725299599194604786L', amount, 'secretpassphrase', 'secondSecretPassphrase');

console.log(transaction);

LSK.broadcastSignedTransaction(transaction, function (result) {
console.log(result);
});
</code>
</pre>
</figure>
</div>
</div>
</div>
</div>

<h3 id="functions_listMultisignatureTransactions">listMultisignatureTransactions</h3>

<div class="panel panel-default">
Expand Down
3 changes: 0 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<div id="output"></div>

<script src="dist/lisk-js.js"></script>
<script>
"use strict";
</script>

</body>
</html>
Loading