Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

89a547cf3a48fc4e2c76a3ff419cd1059a5cb6037b72b06737ab82a17b6b6649
Timestamp (utc)
2021-04-05 02:11:19
Fee Paid
0.00001332 BSV
(
0.09996012 BSV
-
0.09994680 BSV
)
Fee Rate
500.5 sat/KB
Version
1
Confirmations
311,721
Size Stats
2,661 B

5 Outputs

Total Output:
0.09994680 BSV
  • jrunM) {"in":0,"ref":["native://Jig"],"out":["76d49279277c0130cd09a9ec6bf7044b008771c40dc7a5e0fff881254131ee72","5998e44fb70e7cfb7215ad8991d806e2a6c7faa90db7fa41ebc6990975db7f5b","46fe11d205407ea9173ef76c13a5cfd72e782c7d820174eeb035afe4c91aa1ac"],"del":[],"cre":["mhqm7TxnQb35pgbyFbFMfz9EN5NtyqygE8","mhqm7TxnQb35pgbyFbFMfz9EN5NtyqygE8","mhqm7TxnQb35pgbyFbFMfz9EN5NtyqygE8"],"exec":[{"op":"DEPLOY","data":["class Auction extends Jig {\n init(product, initialPrice, endDate) {\n // expect(product).toBeInstanceOf(Product)\n this.product = product;\n this.initialPrice = initialPrice;\n this.endDate = endDate;\n this.bids = []\n this.closed = false\n }\n canBid(){\n return !this.closed\n }\n makeBid(person, amount){\n if (!this.canBid()) {\n throw new Error('Cannot bid: auction is closed')\n }\n if (amount < this.initialPrice) {\n throw new Error('Cannot bid: amount should be greater then the initial price')\n }\n if (this.bids.length > 0 && this.winnerBid().amount >= amount) {\n throw new Error('Cannot bid: amount should be greater then the last bid: > ' + this.winnerBid().amount)\n }\n const bid = new Bid(this, person, amount)\n this.bids.push(bid)\n return bid\n }\n\n winnerBid(){\n return this.bids[this.bids.length - 1]\n }\n\n close(){\n this.closed = true\n }\n\n status(){\n if(this.closed == true)\n return \"closed\"\n return \"open\"\n }\n}",{"deps":{"Bid":{"$jig":2},"Jig":{"$jig":0}},"metadata":{"author":"Pino","emoji":"🤏","license":"MIT"}},"class Bid extends Jig {\n init(auction, person, amount) {\n // expect(auction).toBeInstanceOf(Auction)\n this.auction = auction;\n this.person = person;\n this.amount = amount;\n }\n}",{"deps":{"Jig":{"$dup":["1","deps","Jig"]}},"metadata":{"author":"Pino","emoji":"💰","license":"MIT"}}]},{"op":"DEPLOY","data":["class Product extends Jig {\n init(uid, nickname) {\n this.uid = uid;\n this.nickname = nickname;\n this.auctions = [];\n }\n\n setDescription(text) {\n this.description = text;\n }\n\n createAuction(price, date) {\n const auction = new Auction(this, price, date);\n this.auctions.push(auction);\n return auction;\n }\n}",{"deps":{"Auction":{"$jig":1},"Jig":{"$jig":0}},"metadata":{"author":"Pino","emoji":"📦","license":"MIT"}}]}]}
    https://whatsonchain.com/tx/89a547cf3a48fc4e2c76a3ff419cd1059a5cb6037b72b06737ab82a17b6b6649