Transaction

4fccb2be3eab43223e3dc2a7697b63ca9ca3c13d9205b61d8d4a9568bcbbbefa
Timestamp (utc)
2020-02-13 17:27:51
Fee Paid
0.00007699 BSV
(
0.00282267 BSV
-
0.00274568 BSV
)
Fee Rate
500 sat/KB
Version
1
Confirmations
312,336
Size Stats
15,397 B

2 Outputs

Total Output:
0.00274568 BSV
  • j"19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAutMÀ:/** * Copyright 2019 Yours Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is furnished * to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var moneyButton=function(t){"use strict";function n(t,n){return n.encode?n.strict?encodeURIComponent(t).replace(/[!'()*]/g,t=>"%".concat(t.charCodeAt(0).toString(16).toUpperCase())):encodeURIComponent(t):t}var e=(t,e)=>{if(!t)return"";const o=function(t){switch(t.arrayFormat){case"index":return e=>(o,r)=>{const s=o.length;return void 0===r||t.skipNull&&null===r?o:null===r?[...o,[n(e,t),"[",s,"]"].join("")]:[...o,[n(e,t),"[",n(s,t),"]=",n(r,t)].join("")]};case"bracket":return e=>(o,r)=>void 0===r||t.skipNull&&null===r?o:null===r?[...o,[n(e,t),"[]"].join("")]:[...o,[n(e,t),"[]=",n(r,t)].join("")];case"comma":return e=>(o,r)=>null==r||0===r.length?o:0===o.length?[[n(e,t),"=",n(r,t)].join("")]:[[o,n(r,t)].join(",")];default:return e=>(o,r)=>void 0===r||t.skipNull&&null===r?o:null===r?[...o,n(e,t)]:[...o,[n(e,t),"=",n(r,t)].join("")]}}(e=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},e)),r=Object.assign({},t);if(e.skipNull)for(const t of Object.keys(r))void 0!==r[t]&&null!==r[t]||delete r[t];const s=Object.keys(r);return!1!==e.sort&&s.sort(e.sort),s.map(r=>{const s=t[r];return void 0===s?"":null===s?n(r,e):Array.isArray(s)?s.reduce(o(r),[]).join("&"):n(r,e)+"="+n(s,e)}).filter(t=>t.length>0).join("&")};function o(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function r(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}class s{constructor(t){this.keyDefined=n=>n in t,this.getValue=n=>t[n]}get(t){if(this.keyDefined(t))return this.getValue(t);throw new Error("Unknown configuration: ".concat(t))}}const i=(new class{constructor(){this.variables={}}build(){return new s(this.variables)}addValue(t,n){if(void 0===n)throw new Error('Failed to add "'.concat(t,'" property. The value cannot be undefined'));if(t in this.variables)throw new Error('"'.concat(t,'" already has a value defined.'));return this.variables[t]=n,this}addValueWithDefault(t,n,e){if(void 0===e)throw new Error('Failed to add "'.concat(t,'" property. Default value cannot be undefined'));return this.addValue(t,void 0===n?e:n)}}).addValue("NETWORK","mainnet").addValue("MONEY_BUTTON_WEBAPP_PROXY_URI","https://www.moneybutton.com").build().get("MONEY_BUTTON_WEBAPP_PROXY_URI");class a{constructor(t){o(this,"start",()=>{window.addEventListener("message",this._onMessageReceived,!1)}),o(this,"enableDeliver",()=>{this._deliverMessages=!0,this._pendingMessages.forEach(t=>this.send(t.topic,t.payload,t.extraPayload)),this._pendingMessages=[]}),o(this,"finalize",()=>{window.removeEventListener("message",this._onMessageReceived,!1)}),o(this,"subscribe",(t,n)=>{this.handlers[t]=n}),o(this,"_onMessageReceived",t=>{if(t.source!==this.targetWindow)return;if(!t.data||!t.data.v1)return;const n=t.data.v1,e=this.handlers[n.topic];e&&e(n.payload,n.topic,n.messageId)}),o(this,"send",(t,n,e={})=>{if(this._deliverMessages){const s={v1:{topic:t,payload:n,messageId:Math.floor(1e17*Math.random()).toString()}};this.targetWindow.postMessage(function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?r(e,!0).forEach((function(n){o(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):r(e).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}({},s,{},e),"*")}else this._pendingMessages=[...this._pendingMessages,{topic:t,payload:n,extraPayload:e}]}),o(this,"sendInsufficientBalanceError",()=>{const t={error:"insufficient balance",popup:{title:"Low balance",message:"Your balance is too low to make this payment.",buttonText:"Add Money",buttonUrl:"".concat(i,"/money")}};this.send("error.insufficient-balance",t,t)}),o(this,"sendUnexpectedError",t=>{const n={error:"unexpected error",popup:{title:"Unexpected Error",message:t.message}};this.send("error.unexpected-error",n,n)}),o(this,"sendCryptoOperationsError",t=>{const n={error:"crypto operations error",popup:{title:"Crypto Operations error",message:t.message}};this.send("error.crypto-operations-error",n,n)}),o(this,"sendPaymentSuccess",t=>{const n={payment:t};this.send("payment-success",n,n)}),o(this,"sendCryptoOperationsSuccess",t=>{const n={cryptoOperations:t};this.send("crypto-operations-success",n,n)}),o(this,"sendNotLoggedInError",t=>{const n={error:"not logged in",popup:{title:"Money Button",message:"Money Button is a simple payment system. Join Money Button to make this payment.",buttonText:"Sign up",buttonUrl:"".concat(i,"/register"),buttonText2:"Log in",buttonUrl2:"".concat(i,"/login")}};this.send("error.not-logged-in",n,n)}),o(this,"sendCompatibilityIssue",t=>{const n={error:"compatibility",message:t.message,popup:{title:"Compatibility",message:t.message}};this.send("error.compatibility",n,n)}),o(this,"sendSafaryIssueHint",()=>{const t={error:"safari privacy",popup:{title:"Money Button",message:"Money Button is a simple payment system. Enable Money Button on Safari and log in to make this payment.",buttonUrl:"https://blog.moneybutton.com/2018/09/24/how-to-enable-money-button-on-safari-and-ios/",buttonText:"Enable"}};this.send("error.safari-compatibility",t,t)}),this.handlers={},this.targetWindow=t,this._pendingMessages=[],this._deliverMessages=!1}}const c=["to","amount","currency","label","successMessage","opReturn","outputs","cryptoOperations","clientIdentifier","buttonId","buttonData","type","onPayment","onError","onLoad","devMode","editable","disabled"];let u=null;function l(){u&&(u.parentNode.removeChild(u),u=null)}const d=new Map;function b(t,n={}){d.has(t)?function(t,n){const e=d.get(t);e.send("attributes-updated",p(n)),e.subscribe("payment-success",t=>m(t,n)),e.subscribe("crypto-operations-success",t=>f(t,n)),e.subscribe("error.insufficient-balance",t=>h(t,n)),e.subscribe("error.unexpected-error",t=>h(t,n)),e.subscribe("error.crypto-operations-error",t=>h(t,n)),e.subscribe("error.not-logged-in",t=>h(t,n)),e.subscribe("error.compatibility",t=>h(t,n)),e.subscribe("error.safari-compatibility",t=>h(t,n)),e.subscribe("error.too-long-mempool-chain",t=>h(t,n)),e.subscribe("error",t=>h(t,n))}(t,n):function(t,n){!function(t,n){if(!(t instanceof Element))throw new Error("The first argument must be of type Element.");if(!(t instanceof Object)||0===Object.keys(n).length)throw new Error("Please, specify the button's attributes.");if(void 0!==n.buttonData&&"string"!=typeof n.buttonData)throw new Error('"buttonData" should be a string.')}(t,n);const e=function(t={}){const n=document.createElement("iframe");return n.style.border="none",n.style.width="280px",n.style.height="50px",n.scrolling="no",n.src=y(),n}(n);t.appendChild(e),t.style.position="relative",t.style.display="inline-block",t.style.width="280px",t.style.height="50px",e.contentWindow.onunload=()=>{null!==e.contentWindow&&e.contentWindow.location.href!==y()||(d.delete(t),t.innerHTML="")};const o=new a(e.contentWindow);o.send("initial-attributes",p(n),{}),o.subscribe("ready",()=>{o.enableDeliver(),n.onLoad&&"function"==typeof n.onLoad&&n.onLoad()}),o.subscribe("payment-success",t=>m(t,n)),o.subscribe("crypto-operations-success",t=>f(t,n)),o.subscribe("error.insufficient-balance",t=>h(t,n)),o.subscribe("error.unexpected-error",t=>h(t,n)),o.subscribe("error.crypto-operations-error",t=>h(t,n)),o.subscribe("error.not-logged-in",t=>h(t,n)),o.subscribe("error.compatibility",t=>h(t,n)),o.subscribe("error.safari-compatibility",t=>h(t,n)),o.subscribe("error.too-long-mempool-chain",t=>h(t,n)),o.subscribe("error",t=>h(t,n)),o.start(),d.set(t,o)}(t,n)}function p(t){return{to:t.to,amt:t.amount,edt:t.editable,ccy:t.currency,lbl:t.label,scsmsg:t.successMessage,opd:t.opReturn,os:JSON.stringify(t.outputs),cid:t.clientIdentifier,bid:t.buttonId,bdt:t.buttonData,t:t.type,dev:t.devMode,dsbd:t.disabled,crop:JSON.stringify(t.cryptoOperations)}}function y(){return"".concat("https://www.moneybutton.com","/iframe/v2?").concat(e({format:"postmessage"}))}function m(t,n){const{payment:e}=t;e&&"function"==typeof n.onPayment&&n.onPayment.call(window,e)}function f(t,n){const{cryptoOperations:e}=t;e&&"function"==typeof n.onCryptoOperations&&n.onCryptoOperations.call(window,e)}function h(t,n){const{error:e,popup:o}=t;o&&function({title:t,message:n,buttonText:e,buttonUrl:o,buttonText2:r,buttonUrl2:s}){l(),u=document.createElement("div"),u.setAttribute("style","display: flex; justify-content: center; font-family: sans-serif;");let i=document.getElementsByClassName("popup__moneybutton").item(0);null===i&&(i=g(),document.body.appendChild(i)),i.appendChild(u),u.innerHTML='\n <div class="close__moneybutton"></div>\n <div class="hint__moneybutton">\n <div class="content__moneybutton">\n <span class="title__moneybutton">'.concat(t,'</span>\n <span class="text__moneybutton">').concat(n,'</span>\n <div class="buttonsWrapper__moneybutton">\n ').concat(e?'<a href="'.concat(o,'" target="_blank" rel="noopener noreferrer" class="button__moneybutton red__moneybutton">').concat(e,"</a>"):"","\n ").concat(r?'<a href="'.concat(s,'" target="_blank" rel="noopener noreferrer" class="button__moneybutton nofill__moneybutton">').concat(r,"</a>"):"","\n </div>\n </div>\n <style>\n .hint__moneybutton .button__moneybutton,\n .hint__moneybutton .title__moneybutton{\n font-weight:700\n }\n .hint__moneybutton .button__moneybutton,\n .hint__moneybutton .content__moneybutton{\n color:#fff;\n box-sizing:border-box;\n display:flex;\n font-family: 'IBM Plex Sans', sans-serif;\n }\n .hint__moneybutton a{\n text-decoration:none;\n }\n .hint__moneybutton{\n min-width:254px;\n position:fixed;\n bottom: 10px;\n right: 10px;\n max-width: 300px;\n z-index: 1000;\n }\n .hint__moneybutton .content__moneybutton{\n top:0;\n left:0;\n right:0;\n bottom:0;\n z-index:1\n }\n .hint__moneybutton .content__moneybutton{\n background-color:#191927;\n padding:30px;\n border-radius:10px;\n bottom:19px;\n left:0;\n right:0;\n flex-direction:column;\n align-content:center;\n align-items:flex-start;\n min-width: 260px;\n }\n .hint__moneybutton .title__moneybutton{\n font-size:20px;\n margin-bottom:10px\n }\n .hint__moneybutton .text__moneybutton{\n font-size:14px;\n margin-bottom:20px\n }\n .hint__moneybutton .buttonsWrapper__moneybutton{\n width:100%;\n display:flex;\n justify-content:space-between;\n position:relative;\n z-index:2\n }\n .hint__moneybutton .button__moneybutton{\n text-align:center;\n font-size:12px;\n width:calc(50% - 10px);\n height:35px;\n padding:0 10px;\n border-radius:20px;\n align-items:center;\n justify-content:center;\n transition:all 250ms ease-out;\n cursor:pointer\n }\n .hint__moneybutton .button__moneybutton.add__moneybutton {\n width: auto;\n }\n .hint__moneybutton .button__moneybutton.red__moneybutton{\n background-color:#e54d3f\n }\n .hint__moneybutton .button__moneybutton.red__moneybutton:hover{\n background-color:#ce4134\n }\n .hint__moneybutton .button__moneybutton.nofill__moneybutton{\n border:1px solid #fff\n }\n .hint__moneybutton .button__moneybutton.nofill__moneybutton:hover{\n color:#191927;\n background-color:#fff\n }\n .close__moneybutton {\n background-color: rgba(255, 255, 255, 0.6);\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n z-index: 999;\n }\n @import url('https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,700');\n </style>\n </div>\n "),document.getElementsByClassName("close__moneybutton").item(0).addEventListener("click",l)}(o),e&&"function"==typeof n.onError&&n.onError.call(window,new Error(e))}function g(){const t=document.createElement("div");return t.className="popup__moneybutton",t.style.position="relative",t.style.display="flex",t.style.justifyContent="center",t}function _(t){const n={};for(const e in t){const o=t[e];if(c.includes(e))switch(e){case"outputs":let t;try{t=JSON.parse(o)}catch(n){t=null}t instanceof Array?n[e]=t:console.warn("The value provided for ".concat(e," is not a valid JSON array."));break;case"cryptoOperations":let r;try{r=JSON.parse(o)}catch(t){r=[]}r instanceof Array?n[e]=r:console.warn("cryptoOperations should be an array");break;case"devMode":n[e]="true"===o;break;case"onPayment":case"onError":case"onLoad":"function"==typeof window[o]?n[e]=window[o]:console.warn("The value provided for ".concat(e," is not a function in the global scope."));break;default:n[e]=o}else console.warn("Unexpected data attribute: ".concat(e,"."))}return n}return document.addEventListener("DOMContentLoaded",(function(){if(window.moneyButton.alreadyLoaded)return;window.moneyButton.alreadyLoaded=!0;const t=g();document.body.appendChild(t);const n=document.getElementsByClassName("money-button");for(let t=0;t<n.length;++t){const e=n.item(t);try{const t=_(e.dataset);Object.keys(t).length>0&&b(e,t),console.log("Money Button: added button.")}catch(t){console.error("Money Button: adding button failed.",t)}}})),t.render=b,t}({}); //# sourceMappingURL=moneybutton.js.map application/javascriptutf-8moneybutton.js|"19iG3WTYSsbyos3uJ733yK4zEioi1FesNUmoneybutton.jsb 1581614242862
    https://whatsonchain.com/tx/4fccb2be3eab43223e3dc2a7697b63ca9ca3c13d9205b61d8d4a9568bcbbbefa