Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions examples/moneybutton.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@
<div id="moneybutton-sign"></div>
<p id="signing-address">Signing Address:</p>
<p>After adding your signing address you may post from moneybutton</p>
<p>Posting: "Hello World from Twetch SDK w/ MoneyButton"</p>
<label for="post">Twetch:</label>
<input type="text" id="post" onblur="init()" value="Hello World from Twetch SDK w/ MoneyButton"></input><br><br>
<div id="moneybutton-post"></div>
</body>
<script>
init();
async function init() {
const sdk = new twetchjs();
const { abi, payees } = await sdk.build('twetch/post@0.0.1', { bContent: 'Hello World from Twetch SDK w/ MoneyButton' });
init();
async function init() {
const sdk = new twetchjs();
let post = document.getElementById('post').value;
const { abi, payees } = await sdk.build('twetch/post@0.0.1', { bContent: post });
const outputs = [{
currency: 'BSV',
amount: 0,
Expand Down