Subgraph
GraphQL Queries
Games & Conditions Entities
Condition Entity

Condition Entity

Description

Represents a betting condition within a game. It defines the possible outcomes for a specific condition and tracks the status, turnover, and other attributes of the condition. List of condition statuses:

  • Created: The condition has been created and is available for betting.
  • Resolved: The condition has been resolved, and the outcomes have been determined.
  • Canceled: The condition has been canceled, and any associated bets may be voided.
  • Paused: The condition has been temporarily paused, likely due to game delays or other interruptions.

Usage

If you need to display or manage betting conditions within a game (e.g., over/under, match-winner), this is the entity to use. It allows you to track the status and outcomes of specific betting conditions.

Attributes

AttributeTypeDescription
idID!Unique identifier for the condition (Core contract address + Condition ID).
coreCoreContract!Reference to the core contract associated with this condition.
coreAddressString!Address of the core contract.
conditionIdBigInt!Numeric identifier of the condition.
gameGame!Reference to the game the condition is linked to.
outcomes[Outcome!]! @derivedFromList of outcomes related to this condition.
outcomesIds[BigInt!]List of outcome IDs associated with this condition.
wonOutcomes[Outcome!]List of outcomes that have been won.
wonOutcomeIds[BigInt!]IDs of the won outcomes.
marginBigInt!Margin value for the condition, used in calculating bets.
reinforcementBigInt!Reinforcement value used to back the condition.
statusConditionStatus!Status of the condition (Created, Resolved, Canceled, Paused).
turnoverBigInt!Total turnover generated by the condition.
providerBigInt!Provider associated with the condition.
createdBlockNumberBigInt!Block number when the condition was created.
createdBlockTimestampBigInt!Timestamp of the block when the condition was created.
createdTxHashString!Transaction hash for the creation of the condition.
resolvedBlockNumberBigIntBlock number when the condition was resolved (if applicable).
resolvedBlockTimestampBigIntTimestamp of the block when the condition was resolved.
resolvedTxHashStringTransaction hash for the resolution of the condition.
internalStartsAtBigIntInternal start time for the condition (timestamp).
isExpressForbiddenBoolean!Indicates if express betting is forbidden for this condition.
_winningOutcomesCountInt!Count of expecting winning outcomes for the condition.