Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

209c700339d26572eb228fbcb7b4c8d01b4f553ba50ceb6c9be0c4c5f04345d0
Timestamp (utc)
2021-09-12 16:32:04
Fee Paid
0.00000954 BSV
(
0.01985744 BSV
-
0.01984790 BSV
)
Fee Rate
500.7 sat/KB
Version
1
Confirmations
282,754
Size Stats
1,905 B

3 Outputs

Total Output:
0.01984790 BSV
  • jrunMy{"in":0,"ref":[],"out":["f7eca60742431c05affe676ca635f1ec1d430f8ae334ce28970eda0551f3c433"],"del":[],"cre":["muL9tRTKjXPJKBiWfHTQvsFU5Lq9GxtJJQ"],"exec":[{"op":"DEPLOY","data":["class OrderLock { constructor(address, satoshis) { if (typeof address !== \"string\" || address.length < 27) { throw new TypeError(\"Invalid address\"); } if (typeof satoshis !== \"number\" || !Number.isInteger(satoshis)) { throw new Error(\"Invalid satoshis\"); } if (satoshis > Number.MAX_SAFE_INTEGER) { throw new Error(\"Invalid. Max: \" + Number.MAX_SAFE_INTEGER); } if (satoshis < 546) { throw new Error(\"Dust\"); } this.address = address; this.satoshis = satoshis; } script() { const output = this.serializeOutput(this.address, this.satoshis); const hashOutput = this.sha256sha256(output); return ( OrderLock.scriptTemplate.slice(0, 2) + hashOutput + OrderLock.scriptTemplate.slice(66) ); } serializeOutput(address, satoshis) { const satoshisHex = this.serializeSatoshis(satoshis); const satoshisHexBytes = Hex.stringToBytes(satoshisHex); const outputScriptBytes = Hex.stringToBytes(this.getP2PKHScript(address)); const lengthBytes = [25]; return satoshisHexBytes.concat(lengthBytes, outputScriptBytes); } serializeSatoshis(satoshis) { let numberHex = (\"0000000000000000\" + satoshis.toString(16)).slice(-16); return numberHex .match(/[a-fA-F0-9]{2}/g) .reverse() .join(\"\"); } getP2PKHScript(address) { const decoded = Base58.decode(address); const hex = Hex.bytesToString(decoded); return asm(`OP_DUP OP_HASH160 ${hex} OP_EQUALVERIFY OP_CHECKSIG`); } sha256sha256(output) { return Hex.bytesToString(sha256(sha256(output))); } domain() { return 0; } }",{"deps":{}}]}]}
    https://whatsonchain.com/tx/209c700339d26572eb228fbcb7b4c8d01b4f553ba50ceb6c9be0c4c5f04345d0