Transaction 712388990da1704e966f6f704f570865faae93ee085047e79bc44139699a5103

1 Input
  • 6759563e9253a3dd755762d6e4fb3d12917a5efee177f52e10092c1abfc5f107:0
    OP_DATA_32(32) 75614b65df2f6dba2b33ad24bb1f1b023cfa57a7046cb89f460c0e26b2edae41
    OP_CHECKSIG(172)
    OP_0(0)
    OP_IF(99)
    OP_DATA_3(3) ord
    OP_DATA_1(1) 
    OP_DATA_23(23) text/html;charset=utf-8
    OP_0(0)
    OP_PUSHDATA2(77) <html> <head> <meta charset="utf-8"> <style> body { margin: 0; } main { display: flex; justify-content: center; width: 100%; align-items: center; height: 100%; } main canvas { width: auto !important; height: auto !important; max-width: 100%; max-height: 100%; } </style> </head> <body> <div id="scene"></div> <script> const isTesting = false; // set to 'true' to prepend 'http://ordinals.com' to your fetch calls so yo
    OP_PUSHDATA2(77) u can test locally if (isTesting) { alert('You are in test mode! Remember to set isTesting = false; before inscribing'); } // This is your compressed code const userCode = 'H4sIACOivWQAA51W207bQBB971fMG6Z1jUGgCtI8QJRCpSAhQOJ5sSfxVsmuu95cEf/e2V3f1jY81BKXzM6cGZ85O5MvUD4nJzBRyDSCzhCKBAWGkLAVKhYCEykoFCkqVHVEIkWhnSeMQeAWnu8ep9PoyViC41HH0WF5ng+oihwTzTc4safBj4sQtlykchtxIVC98FRncOLZ7pAvMh1CHJ2GcBrHcS9VVaqX7AVfb2eP5Um7vMo7KlA/8QMGvQL8mlz+FkAqk/UKhY5eZbqPWJ4T4CTjyzSooVO5mi7ROFFcm/NHLCil5TxhYsMK2GYo7Ge
    OP_PUSHDATA2(77) XE+x5kjGxwKKOLOthaTrdEOiMF5pIV8GRsnhHIczXgoiVAoJjeKvjGo62ltlxn+3mvRrnzL5yx9vx4LsPcGn5cwAtziy27XnErAYsuGu2cx70XecpSfRByT9GNlLcM634rt3N9w7Bt4YXI2sGimQsV/RKS9lVsbV5cpkYS0D4WeTiiMevEO/m9ukkad2cBcoVarW3d2ZFVsXZEuaEbu9VnhE93StkjbdVoHeXvKPgLITL2Pwcj0za3yKhxAWmJYTVyiA4vYcrpA1+j0U2Y6tXVLo6D94cFVfujxG+wrki8q9AqzX26G3PDFeDeW/SJXANWjbDZLCsXjmBz0XYKb/VZwtqLkAZ8r8dyRUvVs3FctVZ42BDbuSu7oYdQNWv3hCyGB/yfsMKnjSsl6RX8urx/gHtDBaKpyDnn70GeZirSCVcNjWa1w+WqGFH9u+e44hsP8d+sLF9G8N5dNGdJjWQ4akLtB8A2huguA/kgR0GwA4DYAcHFg+idYjoi81rc+h3rDOrqsf
    OP_PUSHDATA2(77) 6RLksuBk/ZswFuxAo+PBBQKNTGzrg9e5Zmk/vXsefiBW3JcwgPCqgqqHpuRuRdW2GwwtfNs8EwASnS2A2w1LKvBFEtS/cOS3wDqMK/66x0NdV+C+jzqD0bsuz2mxS+5PBc3CmSBknU6yVFzUyPqOSP3Ms5eMceznt+hkYOt5ucv8E3nec9gbxKLumUUYzktOWhaXZS/XhhqnqZFaux0Zf162DIN4l9qGvK9H54Axr43Suuikgl3wwvbX3kz/UZkpdTZQ4umzPqHL3Gl3W3oOl1fzUZ7VCRl/+Ad+FYH0/CgAA'; // User's selected libraries const libs = { "fflate": { "name": "fflate", "ordinalID": "6bac7ab4ce8d5d32f202c2e31bba2b5476a18275802b4e0595c708760f9f56b5i0", "callback": function
    OP_PUSHDATA2(77) (response) { // fflate is not encoded so return as is return response; } }, "threejs": { "name": "Three.js", "ordinalID": "2dbdf9ebbec6be793fd16ae9b797c7cf968ab2427166aaf390b90b71778266abi0", "callback": function(response) { r = response.split("\n")[32]; // pull from line 33 r = r.substr(10, r.length - 12); // extract the string decoded = unGzip64(r); return decoded.replace('window.onload=()=>{init()}', '');
    OP_PUSHDATA2(77) } } } async function getLib(libID) { if (libs[libID] == undefined) { console.error('lib not found'); return; } let lib = await getFromOrdinal(libs[libID].ordinalID, isTesting); let decodedLib = (libs[libID].callback == undefined) ? unGzip64(lib) : libs[libID].callback(lib); return decodedLib; } // decode from base64 and unzip function unGzip64(encoded) { return fflate.strFromU8(fflate.gunzipSync(new Uint8Array(Array.from(atob(encode
    OP_PUSHDATA2(77) d)).map((char) => char.charCodeAt(0))))); } // returns base64 encoded string of gzipped file async function getFromOrdinal(ordinalID, prependOrdCom = false) { let prepend = (prependOrdCom) ? 'http://ordinals.com' : ''; let resp = await fetch(`${prepend}/content/${ordinalID}`); let encoded = await resp.text(); return encoded; } function addScriptToPage(str) { // add script to page let newS = document.createElement('script'); newS.innerHTML = str;
    OP_PUSHDATA2(77) document.body.appendChild(newS); } (async function() { fflateS = await getLib('fflate'); addScriptToPage(fflateS); // Create an array of fetch promises const fetchPromises = Object.keys(libs).map(key => { return getLib(key); }); // Use Promise.all to wait for all fetches to complete Promise.all(fetchPromises) .then(results => { results.forEach((item) => { addScriptToPage(item); }) // Finally run user's
    OP_PUSHDATA1(76) code addScriptToPage(unGzip64(userCode)); }) .catch(error => { // Handle errors here console.error('There was a problem with the fetch operation:', error); }); })(); </script> </body> </html>
    OP_ENDIF(104)
1 Outputs
  • 712388990da1704e966f6f704f570865faae93ee085047e79bc44139699a5103:0
  • value  546
    address  bc1p0jjskgfm285g0mqswctvxl45xsxtlx8xeqztq32de70z5qeffy0qn4wu6t