Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

cf0c185930d2a71cebd18e5403ee8a955528c8bc938cea923bd229368023876a
Timestamp (utc)
2021-02-02 18:22:47
Fee Paid
0.00000237 BSV
(
0.06004000 BSV
-
0.06003763 BSV
)
Fee Rate
464.7 sat/KB
Version
1
Confirmations
318,499
Size Stats
510 B

2 Inputs

Total Input:
0.06004000 BSV
  • Q!g¹é4̀4N´‡¢¥OÉNÄ`<—2²êIYQ£·`¡YQ®M{"__cls":"class P2Pchess{\n constructor(){\n this.rooms = [];\n }\n addRoom(roomId,playerId){\n let r = {\n roomId : roomId,\n players : [playerId],\n createdBy : playerId,\n moves : [],\n state : 0,\n }\n this.rooms.push(r);\n \n }\n initPlay(roomId){\n let i = this.getRoomIndex(roomId);\n this.rooms[i].state = 1;\n }\n insertMove(roomId,playerId,data){\n let i = this.getRoomIndex(roomId);\n if(this.rooms[i].state != 0 && this.rooms[i].state != 6){\n let m = {\n playerId : playerId,\n move : data,\n lastUpdated : new Date().getTime()\n }\n this.rooms[i].moves.push(m);\n }else{\n throw new Error(JSON.stringify({error : \"ERROR_ROOM_OVERFLOW\",code:100}))\n\n }\n\n\n }\n joinRoom(roomId,playerId){\n let i = this.getRoomIndex(roomId);\n if(this.rooms[i].players.length<=1){\n this.rooms[i].players.push(playerId);\n }else{\n return {error : true}\n\n }\n \n }\n leaveRoom(roomId,playerId){\n let i = this.getRoomIndex(roomId);\n if(this.rooms[i].players.length>0){\n let roomIdIndex = this.rooms[i].players.indexOf(playerId);\n if(roomIdIndex > -1){\n this.rooms[i].players.splice(roomIdIndex,1);\n }\n }else{\n throw new Error(JSON.stringify({error : \"ERROR_EMPTY_ROOM\",code:102}))\n }\n }\n closeRoom(roomId,playerId){\n let i = this.getRoomIndex(roomId);\n if(this.rooms[i].createdBy == playerId){\n this.rooms[i].state = 6;\n }else{\n throw new Error(JSON.stringify({error : \"ERROR_UNAUTHORIZED_OP\",code:103}))\n\n } \n }\n getRoomIndex(roomId){\n let i;\n for(i=0;i<this.rooms.length;i++){\n if(this.rooms[i].roomId == roomId){\n return i;\n break;\n }\n }\n }\n}","__index":{"obj":0},"__func":"constructor","__args":[]}u
    https://whatsonchain.com/tx/undefined

3 Outputs

Total Output:
0.06003763 BSV
  • Q!g¹é4̀4N´‡¢¥OÉNÄ`<—2²êIYQ£·`¡YQ®Li{"rooms_0":1,"__index":{"obj":0},"__func":"addRoom","__args":["+qojoXadvjPM6Ld1Wt1JWg==","3MfJN9aTYyA="]}u
    https://whatsonchain.com/tx/cf0c185930d2a71cebd18e5403ee8a955528c8bc938cea923bd229368023876a
  • Q!g¹é4̀4N´‡¢¥OÉNÄ`<—2²êIYQ£·`¡YQ®{}u
    https://whatsonchain.com/tx/cf0c185930d2a71cebd18e5403ee8a955528c8bc938cea923bd229368023876a