LiveBet Entity
Description
Represents a live bet placed by a user. It stores real-time betting data such as odds, payout potential, and results, and is linked to live conditions and selections.
Usage
This entity is useful for managing and displaying live bet details, such as odds changes or potential payouts for ongoing games.
Attributes
Attribute | Type | Description |
---|---|---|
id | ID! | Unique identifier for the live bet (Core contract address + Bet ID). |
core | CoreContract! | Reference to the core contract associated with the bet. |
betId | BigInt! | Numeric identifier for the bet. |
bettor | String! | Address of the bettor who placed the live bet. |
owner | String! | Address of the owner of the live bet. |
actor | String! | Address of the actor (the account that executed the live bet). |
affiliate | String | Affiliate information associated with the live bet. |
rawAmount | BigInt! | Raw amount staked in the live bet. |
amount | BigDecimal! | Formatted value of the amount staked. |
rawPotentialPayout | BigInt! | Raw value of the potential payout. |
potentialPayout | BigDecimal! | Formatted value of the potential payout. |
rawPayout | BigInt | Raw value of the actual payout. |
payout | BigDecimal | Formatted value of the actual payout. |
rawPayoutLimit | BigInt! | Raw value of the payout limit for the bet. |
payoutLimit | BigDecimal! | Formatted payout limit. |
rawOdds | BigInt! | Raw odds of the live bet. |
odds | BigDecimal! | Formatted odds of the live bet. |
rawSettledOdds | BigInt | Raw odds after settlement. |
settledOdds | BigDecimal | Formatted odds after settlement. |
selections | [LiveSelection!]! @derivedFrom | List of selections tied to this live bet. |
createdBlockNumber | BigInt! | Block number when the live bet was created. |
createdBlockTimestamp | BigInt! | Timestamp when the live bet was created. |
createdTxHash | String! | Transaction hash for the creation of the live bet. |
resolvedBlockNumber | BigInt | Block number when the live bet was resolved. |
resolvedBlockTimestamp | BigInt | Timestamp for the resolution of the live bet. |
resolvedTxHash | String! | Transaction hash for the resolution of the live bet. |
status | BetStatus! | Status of the live bet (Accepted , Canceled , or Resolved ). |
result | BetResult | Result of the live bet (Won or Lost ). |
isRedeemable | Boolean! | Indicates if the live bet is redeemable. |
isRedeemed | Boolean! | Indicates if the live bet has been redeemed. |
redeemedBlockNumber | BigInt | Block number when the bet was redeemed. |
redeemedBlockTimestamp | BigInt | Timestamp when the bet was redeemed. |
redeemedTxHash | String! | Transaction hash for the redemption of the bet. |