Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

1bf5891b8e42b975e2e52d316cbfc14d0ae4c956e122c5066c143253b6726c63
Timestamp (utc)
2021-05-02 18:09:03
Fee Paid
0.00001283 BSV
(
0.09918346 BSV
-
0.09917063 BSV
)
Fee Rate
500.3 sat/KB
Version
1
Confirmations
307,919
Size Stats
2,564 B

4 Outputs

Total Output:
0.09917063 BSV
  • jrunMé{"in":0,"ref":["7d14c868fe39439edffe6982b669e7b4d3eb2729eee7c262ec2494ee3e310e99_o1"],"out":["2aa9fa549e5e8326c0c8817ea4ee5af06e3af0c4007b9f8191be66aaec835e00","e35f56445c1917ad173cbe9d0a36b1b41bca860da9afae2831d427a52e099953"],"del":[],"cre":["mzXGPBW15L2tR8sFwfkuM6os6UwUkvspRw","mzXGPBW15L2tR8sFwfkuM6os6UwUkvspRw"],"exec":[{"op":"DEPLOY","data":["class LearnSumBsv extends Token {\n init(owner, message, amount, friends) {\n\tthis.owner = owner\n this.message = message\n\tthis.amount = amount\n }\n static setFriends(friends) {\n this.friends = friends;\n }\n send (to) {\n this.owner = to;\n }\n}",{"decimals":2,"deps":{"Token":{"$jig":0}},"friends":[{"$jig":2}],"interactive":false,"metadata":{"emoji":"🎓"},"symbol":"TEACHnSHARE","total":21000000},"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/1bf5891b8e42b975e2e52d316cbfc14d0ae4c956e122c5066c143253b6726c63