Parameters

The record_battle method in the SiriusnetSDK class takes three parameters:

  1. player_id (str): This is a unique identifier for each player. It is used to associate the battle record with a specific player on the Siriusnet Blockchain.

  2. game_id (str): This is a unique identifier for each game. It is used to associate the battle record with a specific game on the Siriusnet Blockchain.

  3. result (str): This represents the outcome of the battle. It should be a string, either 'win' or 'lose', indicating whether the player won or lost the battle.

These parameters are all required and should be provided as strings. If any of these parameters are missing or invalid, the method will likely throw an exception or return an error.

Last updated