Transaction 42b21a412b93275dfefb71b8200faa76ff47c66aee9faa9486f41696cb891a79

1 Input
  • 426c5363e33416a6554f3e9bae9b10bc2912045b7f5edba12ca324ca00eca0d6:1
    OP_DATA_32(32) 117f692257b2331233b5705ce9c682be8719ff1b2b64cbca290bd6faeb54423e
    OP_CHECKSIG(172)
    OP_DATA_6(6) unisat
    OP_DATA_6(6) ‚īNž†
    OP_2DROP(109)
    OP_0(0)
    OP_IF(99)
    OP_DATA_3(3) ord
    OP_DATA_1(1) 
    OP_DATA_13(13) image/svg+xml
    OP_0(0)
    OP_PUSHDATA2(77) <svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events"> <script> fetch("https://n6au6-3aaaa-aaaae-qaaxq-cai.raw.ic0.app/293.svg") .then(response =&gt; response.text()) .then(text =&gt; { let parser = new DOMParser(); let doc = parser
    OP_PUSHDATA2(77) .parseFromString( text, "image/svg+xml" ); document.getElementsByTagName("svg")[0].appendChild( doc.getElementsByTagName("svg")[0] ); return fetch("https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&amp;vs_currencies=usd&amp;include_24hr_change=true"); }) .then(response =&gt; response.json()) .then( priceChange =&gt; { let usd24HourChange = priceChange.bi
    OP_PUSHDATA2(77) tcoin.usd_24h_change.toFixed(2); updateAnimationDuration(usd24HourChange); }) .catch(err =&gt; console.log(err)) function calculateAnimationDuration(usd24HourChange, initialValue) { let g = initialValue*2; let k = 1/(50*initialValue); let newValue = (g * (1 / (1 + Math.exp(k * g * usd24HourChange) * (g / initialValue - 1)))).toFixed(
    OP_PUSHDATA2(77) 3); return newValue === 0 ? 0.001 : newValue; } function updateAnimationDuration (usd24HourChange) { let styleSheets = document.styleSheets; for (let i = 2; i &lt; 22; i++){ let animationDuration = parseFloat(styleSheets[0].rules[i].style.animationDuration); let updatedDuration = calculateAnimationDuration(usd24HourChange
    OP_PUSHDATA2(77) , animationDuration); let updatedDurationString = updatedDuration.toString()+"s"; styleSheets[0].rules[i].style.animationDuration = updatedDurationString; } } </script> </svg>
    OP_ENDIF(104)
2 Outputs
  • 42b21a412b93275dfefb71b8200faa76ff47c66aee9faa9486f41696cb891a79:0
  • value  546
    address  bc1px9r05zwykfxs4nped7n7ldrpekfj5c2p5kqmxfnx2vtkjq4qpchselwmra
  • 42b21a412b93275dfefb71b8200faa76ff47c66aee9faa9486f41696cb891a79:1
  • value  10181
    address  bc1qe8h5ensyqt04m64a5wwf60xy3dp0fta58w8aeh