Subgraph
GraphQL Queries
Games & Conditions Entities
Game Entity

Game Entity

Description

Represents a sports game that users can bet on. It is linked to a league and sport and contains metadata such as status, participants, conditions, and turnover.

Usage

This entity is essential when you want to build systems that focus on individual sports events. Use it for applications that allow users to view game status, participants, betting conditions, and start times.

Attributes

AttributeTypeDescription
idID!Unique identifier for the game (LP contract address + game ID).
liquidityPoolLiquidityPoolContract!Reference to the liquidity pool associated with the game.
gameIdBigInt!Numeric ID of the game.
titleStringTitle of the game.
slugStringURL-friendly slug for the game.
leagueLeague!Reference to the league the game belongs to.
sportSport!Reference to the sport the game belongs to.
statusGameStatus!Status of the game (Created, Resolved, Canceled, or Paused).
participants[Participant!]! @derivedFromList of participants in the game.
conditions[Condition!]! @derivedFromList of conditions related to the game.
hasActiveConditionsBoolean!Indicates if the game has active betting conditions.
startsAtBigInt!Start time of the game (timestamp).
providerBigInt!Betting provider associated with the game.
turnoverBigInt!Turnover value generated by the game.
createdBlockNumberBigInt!Block number when the game was created.
createdBlockTimestampBigInt!Timestamp of the block when the game was created.
createdTxHashString!Transaction hash for the creation of the game.
shiftedBlockNumberBigIntBlock number of last game shift (if applicable).
shiftedBlockTimestampBigIntTimestamp of the game last shift.
shiftedTxHashStringTransaction hash of last game shift.
resolvedBlockNumberBigIntBlock number when the game was resolved.
resolvedBlockTimestampBigIntTimestamp for game resolution.
resolvedTxHashStringTransaction hash for game resolution.