Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

2e15d2dafb4d1c37734c44e3f0c5ec983ebe3f3b62ec96ed734e08f09541db8a
Timestamp (utc)
2021-06-07 03:48:59
Fee Paid
0.00000954 BSV
(
0.02995697 BSV
-
0.02994743 BSV
)
Fee Rate
500.5 sat/KB
Version
1
Confirmations
295,903
Size Stats
1,906 B

3 Outputs

Total Output:
0.02994743 BSV
  • jrunMy{"in":0,"ref":[],"out":["810f157f29bbe386d676f19f91d3f85b5de4c50e5c8a502e1f35e35d02909bc6"],"del":[],"cre":["mmUjdFX4RsDp3H5W89VivQsjdR5BSVTkGF"],"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/2e15d2dafb4d1c37734c44e3f0c5ec983ebe3f3b62ec96ed734e08f09541db8a