Transaction

4d8b9c0183e97528480f681aac2ec9eebd6f675ea3b8ebac958377d9fa8d2778
( - )
278,455
2019-01-30 08:50:49
1
2,004 B

3 Outputs

Total Output:
  • j"19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAutM¶<html><head> <title>Money Button</title> </head> <body> <div id="generation-div">Generation <span id="generation-span">2</span></div> <div id="money-button"></div> <div id="results"></div> <script src="https://www.moneybutton.com/moneybutton.js"></script> <script type="text/javascript"> function buf2hex(buffer) { return Array.prototype.map.call(new Uint8Array(buffer), x => ('00' + x.toString(16)).slice(-2)).join('') } let count = parseInt(document.getElementById('generation-span').innerHTML, 10) let html = document.documentElement.outerHTML html = html.replace( `<div id="generation-div">Generation <span id="generation-span">${count}</span></div>`, `<div id="generation-div">Generation <span id="generation-span">${count + 1}</span></div>` ) let binhtml = new TextEncoder("utf-8").encode(html) let hexhtml = buf2hex(binhtml) let script = `OP_RETURN 31394878696756345179427633744870515663554551797131707a5a56646f417574 ${hexhtml} 746578742f68746d6c` let buttonDiv = document.getElementById('money-button') let resultDiv = document.getElementById('results') moneyButton.render(buttonDiv, { outputs: [{ type: "USER", userId: "1040", amount: "0.01", currency: "USD" }, { type: "SCRIPT", script: script, amount: "0", currency: "USD" }], label: "Spawn", clientIdentifier: "a43dc7396506a5ad6a41266b585a223f", buttonId: "spawn-button", buttonData: "{}", type: "tip", successMessage: "Yummy!", onPayment: function (arg) { let txid = arg.txid resultDiv.innerHTML = `<a href="https://bico.media/${txid}">Spawn success! See the new Money Button!</a>` }, onError: function (arg) { resultDiv.innterHTML = `Error: ${arg}` } }) </script></body></html> text/html
    https://whatsonchain.com/tx/4d8b9c0183e97528480f681aac2ec9eebd6f675ea3b8ebac958377d9fa8d2778