Subgraph
GraphQL Queries
Bets (pre-match, live, freebets) & Events
LiveBet Entity

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

AttributeTypeDescription
idID!Unique identifier for the live bet (Core contract address + Bet ID).
coreCoreContract!Reference to the core contract associated with the bet.
betIdBigInt!Numeric identifier for the bet.
bettorString!Address of the bettor who placed the live bet.
ownerString!Address of the owner of the live bet.
actorString!Address of the actor (the account that executed the live bet).
affiliateStringAffiliate information associated with the live bet.
rawAmountBigInt!Raw amount staked in the live bet.
amountBigDecimal!Formatted value of the amount staked.
rawPotentialPayoutBigInt!Raw value of the potential payout.
potentialPayoutBigDecimal!Formatted value of the potential payout.
rawPayoutBigIntRaw value of the actual payout.
payoutBigDecimalFormatted value of the actual payout.
rawPayoutLimitBigInt!Raw value of the payout limit for the bet.
payoutLimitBigDecimal!Formatted payout limit.
rawOddsBigInt!Raw odds of the live bet.
oddsBigDecimal!Formatted odds of the live bet.
rawSettledOddsBigIntRaw odds after settlement.
settledOddsBigDecimalFormatted odds after settlement.
selections[LiveSelection!]! @derivedFromList of selections tied to this live bet.
createdBlockNumberBigInt!Block number when the live bet was created.
createdBlockTimestampBigInt!Timestamp when the live bet was created.
createdTxHashString!Transaction hash for the creation of the live bet.
resolvedBlockNumberBigIntBlock number when the live bet was resolved.
resolvedBlockTimestampBigIntTimestamp for the resolution of the live bet.
resolvedTxHashString!Transaction hash for the resolution of the live bet.
statusBetStatus!Status of the live bet (Accepted, Canceled, or Resolved).
resultBetResultResult of the live bet (Won or Lost).
isRedeemableBoolean!Indicates if the live bet is redeemable.
isRedeemedBoolean!Indicates if the live bet has been redeemed.
redeemedBlockNumberBigIntBlock number when the bet was redeemed.
redeemedBlockTimestampBigIntTimestamp when the bet was redeemed.
redeemedTxHashString!Transaction hash for the redemption of the bet.