Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

705abedc82c178c4d49fc780141c8c1bc846de1eeb74814b6ee4a4524638ba42
Timestamp (utc)
2021-04-05 02:52:01
Fee Paid
0.00001336 BSV
(
0.07000000 BSV
-
0.06998664 BSV
)
Fee Rate
500.5 sat/KB
Version
1
Confirmations
313,819
Size Stats
2,669 B

5 Outputs

Total Output:
0.06998664 BSV
  • jrunM1 {"in":0,"ref":["native://Jig"],"out":["23e5a05cbf206ff45775cfde417de0eefd85141476ec8fbf8d0f3e50d7e0c292","2ef61626dcb96e1102b6cea68e25a56ac996653d95d9f84658d9f3cf261c681a","086acc85d9a6e94e063dd0eabd2aa95e870746cab6e0d8496a91d121e06445b0"],"del":[],"cre":["mkstVtLn7PcwYkmuCJSFsYc8CWuQ767tfD","mkstVtLn7PcwYkmuCJSFsYc8CWuQ767tfD","mkstVtLn7PcwYkmuCJSFsYc8CWuQ767tfD"],"exec":[{"op":"DEPLOY","data":["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":{"$jig":0}},"metadata":{"author":"Pino","emoji":"💰","license":"MIT"}}]},{"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":1},"Jig":{"$jig":0}},"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":2},"Jig":{"$jig":0}},"metadata":{"author":"Pino","emoji":"📦","license":"MIT"}}]}]}
    https://whatsonchain.com/tx/705abedc82c178c4d49fc780141c8c1bc846de1eeb74814b6ee4a4524638ba42