Get Tournament

Fetches tournament details.

getTournament

Fetches tournament details.

Syntax

getTournament(tournamentID)

Parameters

  • tournamentID: Tournament ID.

Returns

  • Object: Tournament details.

Example

const details = await sdk.getTournament(1);
console.log(details);

Sample Return

{
  "participants": ["0x123...", "0x456..."],
  "stats": [30, 500],
  "fixtureDetails": [
    { "fixtureID": 123, "predictionCount": 10 }
  ]
}

Last updated