Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

0272343d6019490547b00f8b1fae70fd277c4e38e06ea2290f5e1f90983b48ed
Timestamp (utc)
2021-02-25 16:56:20
Fee Paid
0.00001199 BSV
(
0.03000000 BSV
-
0.02998801 BSV
)
Fee Rate
500.4 sat/KB
Version
1
Confirmations
320,360
Size Stats
2,396 B

2 Outputs

Total Output:
0.02998801 BSV
  • Q!q7oîzÛ<„d‘³Ýs3¡;V_Ù@d]¤~¿O hJQ®Mh{"__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":["0371376fee9d7adb3c84640191b3dd7333a10f3b565fd940645da47ebf4f0b684a","f327c86db54a575a925428ccb2df8bdb3ffbe9efa270c92335bf1907f175a168",0]}u
    https://whatsonchain.com/tx/0272343d6019490547b00f8b1fae70fd277c4e38e06ea2290f5e1f90983b48ed