Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

a28b463d6f9f2de563ac70b70e49e62fdd2d7441b206e5648f9fbec648e19dfd
Timestamp (utc)
2021-02-24 16:37:11
Fee Paid
0.00000272 BSV
(
0.00059551 BSV
-
0.00059279 BSV
)
Fee Rate
467.3 sat/KB
Version
1
Confirmations
315,003
Size Stats
582 B

2 Inputs

Total Input:
0.00059551 BSV
  • Q!óœÎ´ó‘ñK‚ M’ùfÎ ~}þ“© õ2Q®Mk{"__cls":"class GameContract{\n constructor(pKeyOwner,playerIdOwner,wagerAmount){\n this.gamePlayState = 0;\n this.pubKeyCreator = pKeyOwner;\n this.pubKeyOpponent = null;\n this.creatorId = playerIdOwner;\n this.opponentId = null;\n this.createdAt = new Date().getTime();\n this.updatedAt = new Date().getTime();\n this._amount = wagerAmount;\n this.moves = [];\n this._owners = [pKeyOwner];\n this.wagerState = 0;\n }\n addOpponent(pKey,playerId){\n if(!this.pubKeyOpponent){\n this.pubKeyOpponent = pKey;\n this.opponentId = playerId;\n this.gamePlayState = 1;\n this._owners.push(pKey);\n this.updatedAt = new Date().getTime();\n }\n \n }\n \n closeWager(amount,playerId){\n if(amount === this._amount && playerId === this.opponentId && this.gamePlayState == 1){\n this.wagerState = 1;\n this.updatedAt = new Date().getTime();\n }\n }\n \n isValidPayloadMove(move){\n return (move && (move['playerId'] == this.creatorId || move['playerId'] == this.opponentId) && move['fen']);\n }\n isValidMove(fen){\n return true;\n }\n addMove(move){\n if(this.isValidPayloadMove(move) && this.isValidMove(move) && this.wagerState == 1 && this.gamePlayState>=1 && this.gamePlayState<6 ){\n if(this.isWiningMove(move['fen'])){\n this.gamePlayState = 6;\n this.updatedAt = new Date().getTime();\n }else{\n let temp = {\n playerId : move['playerId'],\n fen : move['fen'],\n timestamp : new Date().getTime()\n }\n this.moves.push(temp);\n this.updatedAt = new Date().getTime();\n }\n }\n }\n isWiningMove(fen){\n return false;\n }\n \n \n }","__index":{"obj":0},"__func":"constructor","__args":["0206f3c29cce1ab4f391f14b0f82204d92f9021c66ce0a7e7d19fe93a90df5321a","ccf166419bc12644ef32cfb75a38f2cffda3ec894155eb173bf4c8c869e94566",7000]}u
    https://whatsonchain.com/tx/undefined

2 Outputs

Total Output:
0.00059279 BSV
  • Q!óœÎ´ó‘ñK‚ M’ùfÎ ~}þ“© õ2!ÎÎ+'Ã׃úÏÉ£BM䞒()b™‘Ðís© ÕFHÎR®L¿{"__index":{"obj":0},"__func":"addOpponent","__args":["02cece2b27c31dd783facfc9a3424de49e922829629991d0ed73a90dd5184648ce","f8aab7701dcb3c1783b93599875b0774a0a9d45453e9df5558ffa427339c8a85"]}u
    https://whatsonchain.com/tx/a28b463d6f9f2de563ac70b70e49e62fdd2d7441b206e5648f9fbec648e19dfd