Transaction

5bb96f5df41def425ccb691123da3c205fc2530e5d145bb59c9421b6a611e633
( - )
186,866
2021-05-13 14:40:19
1
2,865 B

4 Outputs

Total Output:
  • jrunM {"in":0,"ref":["native://Jig","b44a203acd6215d2d24b33a41f730e9acf2591c4ae27ecafc8d88ef83da9ddea_o1"],"out":["411e6f0cc7d6b685c49b92a4d4425126a7c0cf5dfedfc572c371e50704ed9220","da224b25ba6b1b72fd6883ab6720cfa674e790bee56a03724eb2fea223723f56"],"del":[],"cre":["mrFq6ERhfWusvpec6C4JHiCbMDbFtU7ekA","mrFq6ERhfWusvpec6C4JHiCbMDbFtU7ekA"],"exec":[{"op":"DEPLOY","data":["class TokenPowNftFactory extends Jig {\n static createNft(name, author, description, emoji, image, txtid, assetIds, owner) {\n this.nftCount ++;\n // Control the amount ever created of this item\n if (this.nftCount > 10 ) throw new Error('Art is in the Mind not in the Gif, Move on ... !');\n\n return new TokenPowNft(name, author, description, emoji, image, txtid, assetIds, owner);\n }\n}",{"deps":{"Jig":{"$jig":0}},"friends":[{"$jig":1},{"$jig":3}],"interactive":false},"class OrderLock {\n constructor(address, satoshis) {\n if (typeof address !== \"string\" || address.length < 27) {\n throw new TypeError(\"Invalid address\");\n }\n if (typeof satoshis !== \"number\" || !Number.isInteger(satoshis)) {\n throw new Error(\"Invalid satoshis\");\n }\n if (satoshis > Number.MAX_SAFE_INTEGER) {\n throw new Error(\"Invalid. Max: \" + Number.MAX_SAFE_INTEGER);\n }\n if (satoshis < 546) {\n throw new Error(\"Dust\");\n }\n this.address = address;\n this.satoshis = satoshis;\n }\n script() {\n const output = this.serializeOutput(this.address, this.satoshis);\n const hashOutput = this.sha256sha256(output);\n return (\n OrderLock.scriptTemplate.slice(0, 2) +\n hashOutput +\n OrderLock.scriptTemplate.slice(66)\n );\n }\n serializeOutput(address, satoshis) {\n const satoshisHex = this.serializeSatoshis(satoshis);\n const satoshisHexBytes = Hex.stringToBytes(satoshisHex);\n const outputScriptBytes = Hex.stringToBytes(this.getP2PKHScript(address));\n const lengthBytes = [25];\n return satoshisHexBytes.concat(lengthBytes, outputScriptBytes);\n }\n serializeSatoshis(satoshis) {\n let numberHex = (\"0000000000000000\" + satoshis.toString(16)).slice(-16);\n return numberHex\n .match(/[a-fA-F0-9]{2}/g)\n .reverse()\n .join(\"\");\n }\n getP2PKHScript(address) {\n const decoded = Base58.decode(address);\n const hex = Hex.bytesToString(decoded);\n return asm(`OP_DUP OP_HASH160 ${hex} OP_EQUALVERIFY OP_CHECKSIG`);\n }\n sha256sha256(output) {\n return Hex.bytesToString(sha256(sha256(output)));\n }\n domain() {\n return 0;\n }\n}",{"deps":{}}]}]}
    https://whatsonchain.com/tx/5bb96f5df41def425ccb691123da3c205fc2530e5d145bb59c9421b6a611e633