LiveCondition Entity
Description
Represents a live betting condition for a game. It tracks real-time status, outcomes, and turnover, and is associated with a core contract and specific game.
Usage
Allows you to track conditions in real-time.
Attributes
Attribute | Type | Description |
---|---|---|
id | ID! | Unique identifier for the live condition (Core contract address + Condition ID). |
core | CoreContract! | Reference to the core contract associated with the condition. |
coreAddress | String! | Address of the core contract. |
conditionId | BigInt! | Numeric identifier of the condition. |
gameId | BigInt! | Numeric identifier of the game associated with the condition. |
outcomes | [LiveOutcome!]! @derivedFrom | List of live outcomes related to this condition. |
outcomesIds | [BigInt!] | List of outcome IDs related to this condition. |
wonOutcomes | [LiveOutcome!] | List of outcomes that have been won. |
wonOutcomeIds | [BigInt!] | List of IDs for won outcomes. |
status | ConditionStatus! | Status of the condition (Created , Resolved , Canceled , or Paused ). |
turnover | BigInt! | Total turnover generated by the condition. |
createdBlockNumber | BigInt! | Block number when the condition was created. |
createdBlockTimestamp | BigInt! | Timestamp of the block when the condition was created. |
createdTxHash | String! | Transaction hash for the creation of the condition. |
resolvedBlockNumber | BigInt | Block number when the condition was resolved. |
resolvedBlockTimestamp | BigInt | Timestamp of the block when the condition was resolved. |
resolvedTxHash | String | Transaction hash for the resolution of the condition. |