Smart Contracts (Testnet)

Module: tictactoebet
back to overview
tictactoebet
Methods: 4
Instances: 11
Initialization

Parameters
{
  "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "game_name": "<String>"
}
Errors
None
Event
None
Methods

Parameters
{
  "name": "<String>"
}
Errors
{
  "Enum": [
    {
      "OnlyAccount": []
    },
    {
      "LobbyFull": []
    },
    {
      "AlreadyAPlayer": []
    },
    {
      "MissingParameter": []
    }
  ]
}
Return
None

Parameters
{
  "name": "<String>",
  "player_to_bet_on": {
    "Enum": [
      {
        "One": []
      },
      {
        "Two": []
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "OnlyAccount": []
    },
    {
      "BetTooLate": []
    },
    {
      "BetClosed": []
    },
    {
      "AlreadyBet": []
    },
    {
      "MissingParameter": []
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
{
  "bets_player_one": [
    [
      "<String>",
      "<Amount in microCCD>"
    ]
  ],
  "bets_player_two": [
    [
      "<String>",
      "<Amount in microCCD>"
    ]
  ],
  "player_one_name": "<String>",
  "player_two_name": "<String>",
  "stake": "<Amount in microCCD>"
}

Parameters
None
Errors
None
Return
"<Amount in microCCD>"


Release: 2024.12
Support CCDExplorer.io Uptime Backend Status CCDExplorer is supported by AesirX - Decentralized Consent & Data Ownership