Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

140834df9762dc5d6741f7b6b96d8dea73e8086a29add3054133a2cad6bd62d3
Timestamp (utc)
2021-06-20 16:12:40
Fee Paid
0.00001274 BSV
(
0.08000273 BSV
-
0.07998999 BSV
)
Fee Rate
500.5 sat/KB
Version
1
Confirmations
299,652
Size Stats
2,545 B

3 Outputs

Total Output:
0.07998999 BSV
  • jrunMe{"in":1,"ref":["1f0abf8d94477b1cb57629d861376616f6e1d7b78aba23a19da3e6169caf489e_o2"],"out":["24f8243d88e0b7a1b69a3f660d5498b1b57d28464910c41a390280a50386d664"],"del":[],"cre":[],"exec":[{"op":"UPGRADE","data":[{"$jig":0},"class OrderLock {\n constructor(address, satoshis) {\n var a = \"b\";\n console.log(a);\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 console.log(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":{"Hex":{"$jig":1}}}]}]}
    https://whatsonchain.com/tx/140834df9762dc5d6741f7b6b96d8dea73e8086a29add3054133a2cad6bd62d3